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>
624 gl_use_threads_default
=
626 ac_subst_vars
='LTLIBOBJS
678 INTL_LIBTOOL_SUFFIX_PREFIX
685 BUILD_INCLUDED_LIBINTL
695 INTL_DEFAULT_VERBOSITY
714 XGETTEXT_EXTRA_OPTIONS
722 GETTEXT_MACRO_VERSION
831 program_transform_name
842 ac_subst_files
='MCONFIG
848 PUBLIC_CONFIG_HEADER'
850 enable_option_checking
856 enable_maintainer_mode
857 enable_symlink_install
858 enable_relative_symlinks
859 enable_symlink_relative_symlinks
861 enable_verbose_makecmds
879 enable_e2initrd_helper
885 enable_bmap_stats_ops
892 with_included_gettext
897 ac_precious_vars
='build_alias
911 # Initialize some variables set by options.
913 ac_init_version
=false
914 ac_unrecognized_opts
=
916 # The variables have the same names as the options, with
917 # dashes changed to underlines.
925 program_transform_name
=s
,x
,x
,
933 # Installation directory options.
934 # These are left unexpanded so users can "make install exec_prefix=/foo"
935 # and all the variables that are supposed to be based on exec_prefix
936 # by default will actually change.
937 # Use braces instead of parens because sh, perl, etc. also accept them.
938 # (The list follows the same order as the GNU Coding Standards.)
939 bindir
='${exec_prefix}/bin'
940 sbindir
='${exec_prefix}/sbin'
941 libexecdir
='${exec_prefix}/libexec'
942 datarootdir
='${prefix}/share'
943 datadir
='${datarootdir}'
944 sysconfdir
='${prefix}/etc'
945 sharedstatedir
='${prefix}/com'
946 localstatedir
='${prefix}/var'
947 runstatedir
='${localstatedir}/run'
948 includedir
='${prefix}/include'
949 oldincludedir
='/usr/include'
950 docdir
='${datarootdir}/doc/${PACKAGE}'
951 infodir
='${datarootdir}/info'
956 libdir
='${exec_prefix}/lib'
957 localedir
='${datarootdir}/locale'
958 mandir
='${datarootdir}/man'
964 # If the previous option needs an argument, assign it.
965 if test -n "$ac_prev"; then
966 eval $ac_prev=\
$ac_option
972 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
977 # Accept the important Cygnus configure options, so we can diagnose typos.
979 case $ac_dashdash$ac_option in
983 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
985 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
988 -build |
--build |
--buil |
--bui |
--bu)
989 ac_prev
=build_alias
;;
990 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
991 build_alias
=$ac_optarg ;;
993 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
994 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
995 ac_prev
=cache_file
;;
996 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
997 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
998 cache_file
=$ac_optarg ;;
1000 --config-cache |
-C)
1001 cache_file
=config.cache
;;
1003 -datadir |
--datadir |
--datadi |
--datad)
1005 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1006 datadir
=$ac_optarg ;;
1008 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1009 |
--dataroo |
--dataro |
--datar)
1010 ac_prev
=datarootdir
;;
1011 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1012 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1013 datarootdir
=$ac_optarg ;;
1015 -disable-* |
--disable-*)
1016 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1017 # Reject names that are not valid shell variable names.
1018 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1019 as_fn_error $?
"invalid feature name: $ac_useropt"
1020 ac_useropt_orig
=$ac_useropt
1021 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1022 case $ac_user_opts in
1024 "enable_
$ac_useropt"
1026 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1027 ac_unrecognized_sep
=', ';;
1029 eval enable_
$ac_useropt=no
;;
1031 -docdir |
--docdir |
--docdi |
--doc |
--do)
1033 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1034 docdir
=$ac_optarg ;;
1036 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1038 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1039 dvidir
=$ac_optarg ;;
1041 -enable-* |
--enable-*)
1042 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1043 # Reject names that are not valid shell variable names.
1044 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1045 as_fn_error $?
"invalid feature name: $ac_useropt"
1046 ac_useropt_orig
=$ac_useropt
1047 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1048 case $ac_user_opts in
1050 "enable_
$ac_useropt"
1052 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1053 ac_unrecognized_sep
=', ';;
1055 eval enable_
$ac_useropt=\
$ac_optarg ;;
1057 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1058 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1059 |
--exec |
--exe |
--ex)
1060 ac_prev
=exec_prefix
;;
1061 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1062 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1063 |
--exec=* |
--exe=* |
--ex=*)
1064 exec_prefix
=$ac_optarg ;;
1066 -gas |
--gas |
--ga |
--g)
1067 # Obsolete; use --with-gas.
1070 -help |
--help |
--hel |
--he |
-h)
1071 ac_init_help
=long
;;
1072 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1073 ac_init_help
=recursive
;;
1074 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1075 ac_init_help
=short
;;
1077 -host |
--host |
--hos |
--ho)
1078 ac_prev
=host_alias
;;
1079 -host=* |
--host=* |
--hos=* |
--ho=*)
1080 host_alias
=$ac_optarg ;;
1082 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1084 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1086 htmldir
=$ac_optarg ;;
1088 -includedir |
--includedir |
--includedi |
--included |
--include \
1089 |
--includ |
--inclu |
--incl |
--inc)
1090 ac_prev
=includedir
;;
1091 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1092 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1093 includedir
=$ac_optarg ;;
1095 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1097 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1098 infodir
=$ac_optarg ;;
1100 -libdir |
--libdir |
--libdi |
--libd)
1102 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1103 libdir
=$ac_optarg ;;
1105 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1106 |
--libexe |
--libex |
--libe)
1107 ac_prev
=libexecdir
;;
1108 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1109 |
--libexe=* |
--libex=* |
--libe=*)
1110 libexecdir
=$ac_optarg ;;
1112 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1113 ac_prev
=localedir
;;
1114 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1115 localedir
=$ac_optarg ;;
1117 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1118 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1119 ac_prev
=localstatedir
;;
1120 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1121 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1122 localstatedir
=$ac_optarg ;;
1124 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1126 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1127 mandir
=$ac_optarg ;;
1129 -nfp |
--nfp |
--nf)
1130 # Obsolete; use --without-fp.
1133 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1134 |
--no-cr |
--no-c |
-n)
1137 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1138 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1141 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1142 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1143 |
--oldin |
--oldi |
--old |
--ol |
--o)
1144 ac_prev
=oldincludedir
;;
1145 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1146 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1147 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1148 oldincludedir
=$ac_optarg ;;
1150 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1152 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1153 prefix
=$ac_optarg ;;
1155 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1156 |
--program-pre |
--program-pr |
--program-p)
1157 ac_prev
=program_prefix
;;
1158 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1159 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1160 program_prefix
=$ac_optarg ;;
1162 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1163 |
--program-suf |
--program-su |
--program-s)
1164 ac_prev
=program_suffix
;;
1165 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1166 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1167 program_suffix
=$ac_optarg ;;
1169 -program-transform-name |
--program-transform-name \
1170 |
--program-transform-nam |
--program-transform-na \
1171 |
--program-transform-n |
--program-transform- \
1172 |
--program-transform |
--program-transfor \
1173 |
--program-transfo |
--program-transf \
1174 |
--program-trans |
--program-tran \
1175 |
--progr-tra |
--program-tr |
--program-t)
1176 ac_prev
=program_transform_name
;;
1177 -program-transform-name=* |
--program-transform-name=* \
1178 |
--program-transform-nam=* |
--program-transform-na=* \
1179 |
--program-transform-n=* |
--program-transform-=* \
1180 |
--program-transform=* |
--program-transfor=* \
1181 |
--program-transfo=* |
--program-transf=* \
1182 |
--program-trans=* |
--program-tran=* \
1183 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1184 program_transform_name
=$ac_optarg ;;
1186 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1188 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1189 pdfdir
=$ac_optarg ;;
1191 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1193 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1196 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1197 |
-silent |
--silent |
--silen |
--sile |
--sil)
1200 -runstatedir |
--runstatedir |
--runstatedi |
--runstated \
1201 |
--runstate |
--runstat |
--runsta |
--runst |
--runs \
1202 |
--run |
--ru |
--r)
1203 ac_prev
=runstatedir
;;
1204 -runstatedir=* |
--runstatedir=* |
--runstatedi=* |
--runstated=* \
1205 |
--runstate=* |
--runstat=* |
--runsta=* |
--runst=* |
--runs=* \
1206 |
--run=* |
--ru=* |
--r=*)
1207 runstatedir
=$ac_optarg ;;
1209 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1211 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1213 sbindir
=$ac_optarg ;;
1215 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1216 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1217 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1219 ac_prev
=sharedstatedir
;;
1220 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1221 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1222 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1224 sharedstatedir
=$ac_optarg ;;
1226 -site |
--site |
--sit)
1228 -site=* |
--site=* |
--sit=*)
1231 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1233 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1234 srcdir
=$ac_optarg ;;
1236 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1237 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1238 ac_prev
=sysconfdir
;;
1239 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1240 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1241 sysconfdir
=$ac_optarg ;;
1243 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1244 ac_prev
=target_alias
;;
1245 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1246 target_alias
=$ac_optarg ;;
1248 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1251 -version |
--version |
--versio |
--versi |
--vers |
-V)
1252 ac_init_version
=: ;;
1255 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1256 # Reject names that are not valid shell variable names.
1257 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1258 as_fn_error $?
"invalid package name: $ac_useropt"
1259 ac_useropt_orig
=$ac_useropt
1260 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1261 case $ac_user_opts in
1265 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1266 ac_unrecognized_sep
=', ';;
1268 eval with_
$ac_useropt=\
$ac_optarg ;;
1270 -without-* |
--without-*)
1271 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1272 # Reject names that are not valid shell variable names.
1273 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1274 as_fn_error $?
"invalid package name: $ac_useropt"
1275 ac_useropt_orig
=$ac_useropt
1276 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1277 case $ac_user_opts in
1281 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1282 ac_unrecognized_sep
=', ';;
1284 eval with_
$ac_useropt=no
;;
1287 # Obsolete; use --with-x.
1290 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1291 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1292 ac_prev
=x_includes
;;
1293 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1294 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1295 x_includes
=$ac_optarg ;;
1297 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1298 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1299 ac_prev
=x_libraries
;;
1300 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1301 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1302 x_libraries
=$ac_optarg ;;
1304 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1305 Try \`$0 --help' for more information"
1309 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1310 # Reject names that are not valid shell variable names.
1311 case $ac_envvar in #(
1312 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1313 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1315 eval $ac_envvar=\
$ac_optarg
1316 export $ac_envvar ;;
1319 # FIXME: should be removed in autoconf 3.0.
1320 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1321 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1322 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1323 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1329 if test -n "$ac_prev"; then
1330 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1331 as_fn_error $?
"missing argument to $ac_option"
1334 if test -n "$ac_unrecognized_opts"; then
1335 case $enable_option_checking in
1337 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1338 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1342 # Check all directory arguments for consistency.
1343 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1344 datadir sysconfdir sharedstatedir localstatedir includedir \
1345 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1346 libdir localedir mandir runstatedir
1348 eval ac_val
=\$
$ac_var
1349 # Remove trailing slashes.
1352 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1353 eval $ac_var=\
$ac_val;;
1355 # Be sure to have absolute directory names.
1357 [\\/$
]* | ?
:[\\/]* ) continue;;
1358 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1360 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1363 # There might be people who depend on the old broken behavior: `$host'
1364 # used to hold the argument of --host etc.
1365 # FIXME: To remove some day.
1368 target
=$target_alias
1370 # FIXME: To remove some day.
1371 if test "x$host_alias" != x
; then
1372 if test "x$build_alias" = x
; then
1373 cross_compiling
=maybe
1374 elif test "x$build_alias" != "x$host_alias"; then
1380 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1382 test "$silent" = yes && exec 6>/dev
/null
1385 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1386 ac_ls_di
=`ls -di .` &&
1387 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1388 as_fn_error $?
"working directory cannot be determined"
1389 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1390 as_fn_error $?
"pwd does not report name of working directory"
1393 # Find the source files, if location was not specified.
1394 if test -z "$srcdir"; then
1395 ac_srcdir_defaulted
=yes
1396 # Try the directory containing this script, then the parent directory.
1397 ac_confdir
=`$as_dirname -- "$as_myself" ||
1398 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1399 X"$as_myself" : 'X\(//\)[^/]' \| \
1400 X"$as_myself" : 'X\(//\)$' \| \
1401 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1402 $as_echo X"$as_myself" |
1403 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1421 if test ! -r "$srcdir/$ac_unique_file"; then
1425 ac_srcdir_defaulted
=no
1427 if test ! -r "$srcdir/$ac_unique_file"; then
1428 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1429 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1431 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1433 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1435 # When building in place, set srcdir=.
1436 if test "$ac_abs_confdir" = "$ac_pwd"; then
1439 # Remove unnecessary trailing slashes from srcdir.
1440 # Double slashes in file names in object file debugging info
1441 # mess up M-x gdb in Emacs.
1443 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1445 for ac_var
in $ac_precious_vars; do
1446 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1447 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1448 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1449 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1453 # Report the --help message.
1455 if test "$ac_init_help" = "long"; then
1456 # Omit some internal or obsolete options to make the list less imposing.
1457 # This message is too long to be a string in the A/UX 3.1 sh.
1459 \`configure' configures this package to adapt to many kinds of systems.
1461 Usage: $0 [OPTION]... [VAR=VALUE]...
1463 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1464 VAR=VALUE. See below for descriptions of some of the useful variables.
1466 Defaults for the options are specified in brackets.
1469 -h, --help display this help and exit
1470 --help=short display options specific to this package
1471 --help=recursive display the short help of all the included packages
1472 -V, --version display version information and exit
1473 -q, --quiet, --silent do not print \`checking ...' messages
1474 --cache-file=FILE cache test results in FILE [disabled]
1475 -C, --config-cache alias for \`--cache-file=config.cache'
1476 -n, --no-create do not create output files
1477 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1479 Installation directories:
1480 --prefix=PREFIX install architecture-independent files in PREFIX
1481 [$ac_default_prefix]
1482 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1485 By default, \`make install' will install all the files in
1486 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1487 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1488 for instance \`--prefix=\$HOME'.
1490 For better control, use the options below.
1492 Fine tuning of the installation directories:
1493 --bindir=DIR user executables [EPREFIX/bin]
1494 --sbindir=DIR system admin executables [EPREFIX/sbin]
1495 --libexecdir=DIR program executables [EPREFIX/libexec]
1496 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1497 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1498 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1499 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1500 --libdir=DIR object code libraries [EPREFIX/lib]
1501 --includedir=DIR C header files [PREFIX/include]
1502 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1503 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1504 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1505 --infodir=DIR info documentation [DATAROOTDIR/info]
1506 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1507 --mandir=DIR man documentation [DATAROOTDIR/man]
1508 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1509 --htmldir=DIR html documentation [DOCDIR]
1510 --dvidir=DIR dvi documentation [DOCDIR]
1511 --pdfdir=DIR pdf documentation [DOCDIR]
1512 --psdir=DIR ps documentation [DOCDIR]
1518 --build=BUILD configure
for building on BUILD
[guessed
]
1519 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1523 if test -n "$ac_init_help"; then
1528 --disable-option-checking ignore unrecognized
--enable/--with options
1529 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1530 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1531 --enable-maintainer-mode enable makefile rules useful
for maintainers
1532 --enable-symlink-install use symlinks when installing instead of hard links
1533 --enable-relative-symlinks use relative symlinks when installing
1535 --enable-symlink-build use symlinks
while building instead of hard links
1536 --enable-verbose-makecmds enable verbose
make command output
1537 --enable-elf-shlibs select ELF shared libraries
1538 --enable-bsd-shlibs select BSD shared libraries
1539 --enable-profile build profiling libraries
1540 --enable-gcov build
for coverage testing using gcov
1541 --enable-hardening build
for coverage testing using gcov
1542 --enable-jbd-debug enable journal debugging
1543 --enable-blkid-debug enable blkid debugging
1544 --disable-testio-debug disable the use of the
test I
/O manager
for debugging
1545 --enable-libuuid build and use private uuid library
1546 --enable-libblkid build and use private blkid library
1547 --enable-subset enable subset-only build
1548 --disable-backtrace disable use backtrace
1549 --disable-debugfs disable support of debugfs program
1550 --disable-imager disable support of e2image program
1551 --disable-resizer disable support of e2resize program
1552 --disable-defrag disable support of e4defrag program
1553 --enable-fsck build fsck wrapper program
1554 --enable-e2initrd-helper build e2initrd-helper program
1555 --disable-tls disable use of thread
local support
1556 --disable-uuidd disable building the uuid daemon
1557 --disable-mmp disable support mmp
, Multi Mount Protection
1558 --disable-tdb disable tdb support
1559 --disable-bmap-stats disable collection of bitmap stats.
1560 --enable-bmap-stats-ops enable collection of additional bitmap stats
1561 --disable-nls do not use Native Language Support
1562 --enable-threads={posix|solaris|pth|windows
}
1563 specify multithreading API
1564 --disable-threads build without multithread safety
1565 --disable-rpath do not hardcode runtime library paths
1566 --disable-fuse2fs do not build fuse2fs
1569 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1570 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1571 --with-diet-libc use diet libc
1572 --with-cc no longer supported
, use CC
= instead
1573 --with-ccopts no longer supported
, use CFLAGS
= instead
1574 --with-ldopts no longer supported
, use LDFLAGS
= instead
1575 --with-root-prefix=PREFIX override prefix variable
for files to be placed
in the root
1576 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1577 --with-libpth-prefix[=DIR
] search
for libpth
in DIR
/include and DIR
/lib
1578 --without-libpth-prefix don
't search for libpth in includedir and libdir
1579 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1580 --without-libiconv-prefix don't search
for libiconv
in includedir and libdir
1581 --with-included-gettext use the GNU
gettext library included here
1582 --with-libintl-prefix[=DIR
] search
for libintl
in DIR
/include and DIR
/lib
1583 --without-libintl-prefix don
't search for libintl in includedir and libdir
1584 --with-multiarch=ARCH specify the multiarch triplet
1586 Some influential environment variables:
1587 CC C compiler command
1588 CFLAGS C compiler flags
1589 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1590 nonstandard directory <lib dir>
1591 LIBS libraries to pass to the linker, e.g. -l<library>
1592 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1593 you have headers in a nonstandard directory <include dir>
1595 PKG_CONFIG path to pkg-config utility
1597 directories to add to pkg-config's search path
1599 path overriding pkg-config
's built-in search path
1601 Use these variables to override the choices made by `configure' or to
help
1602 it to
find libraries and programs with nonstandard names
/locations.
1604 Report bugs to the package provider.
1609 if test "$ac_init_help" = "recursive"; then
1610 # If there are subdirs, report their specific --help.
1611 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1612 test -d "$ac_dir" ||
1613 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1618 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1620 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1621 # A ".." for each directory in $ac_dir_suffix.
1622 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1623 case $ac_top_builddir_sub in
1624 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1625 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1628 ac_abs_top_builddir
=$ac_pwd
1629 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1630 # for backward compatibility:
1631 ac_top_builddir
=$ac_top_build_prefix
1634 .
) # We are building in place.
1636 ac_top_srcdir
=$ac_top_builddir_sub
1637 ac_abs_top_srcdir
=$ac_pwd ;;
1638 [\\/]* | ?
:[\\/]* ) # Absolute name.
1639 ac_srcdir
=$srcdir$ac_dir_suffix;
1640 ac_top_srcdir
=$srcdir
1641 ac_abs_top_srcdir
=$srcdir ;;
1643 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1644 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1645 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1647 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1649 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1650 # Check for guested configure.
1651 if test -f "$ac_srcdir/configure.gnu"; then
1653 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1654 elif test -f "$ac_srcdir/configure"; then
1656 $SHELL "$ac_srcdir/configure" --help=recursive
1658 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1660 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1664 test -n "$ac_init_help" && exit $ac_status
1665 if $ac_init_version; then
1668 generated by GNU Autoconf
2.69
1670 Copyright
(C
) 2012 Free Software Foundation
, Inc.
1671 This configure
script is free software
; the Free Software Foundation
1672 gives unlimited permission to copy
, distribute and modify it.
1677 ## ------------------------ ##
1678 ## Autoconf initialization. ##
1679 ## ------------------------ ##
1681 # ac_fn_c_try_compile LINENO
1682 # --------------------------
1683 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1684 ac_fn_c_try_compile
()
1686 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1687 rm -f conftest.
$ac_objext
1688 if { { ac_try
="$ac_compile"
1690 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1691 *) ac_try_echo=$ac_try;;
1693 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1694 $as_echo "$ac_try_echo"; } >&5
1695 (eval "$ac_compile") 2>conftest.err
1697 if test -s conftest.err; then
1698 grep -v '^ *+' conftest.err >conftest.er1
1699 cat conftest.er1 >&5
1700 mv -f conftest.er1 conftest.err
1702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1703 test $ac_status = 0; } && {
1704 test -z "$ac_c_werror_flag" ||
1705 test ! -s conftest.err
1706 } && test -s conftest.$ac_objext; then :
1709 $as_echo "$as_me: failed program was:" >&5
1710 sed 's/^/| /' conftest.$ac_ext >&5
1714 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1715 as_fn_set_status $ac_retval
1717 } # ac_fn_c_try_compile
1719 # ac_fn_c_try_link LINENO
1720 # -----------------------
1721 # Try to link conftest.$ac_ext, and return whether this succeeded.
1724 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1725 rm -f conftest.$ac_objext conftest$ac_exeext
1726 if { { ac_try="$ac_link"
1728 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1729 *) ac_try_echo
=$ac_try;;
1731 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1732 $as_echo "$ac_try_echo"; } >&5
1733 (eval "$ac_link") 2>conftest.err
1735 if test -s conftest.err
; then
1736 grep -v '^ *+' conftest.err
>conftest.er1
1737 cat conftest.er1
>&5
1738 mv -f conftest.er1 conftest.err
1740 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1741 test $ac_status = 0; } && {
1742 test -z "$ac_c_werror_flag" ||
1743 test ! -s conftest.err
1744 } && test -s conftest
$ac_exeext && {
1745 test "$cross_compiling" = yes ||
1746 test -x conftest
$ac_exeext
1750 $as_echo "$as_me: failed program was:" >&5
1751 sed 's/^/| /' conftest.
$ac_ext >&5
1755 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1756 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1757 # interfere with the next link command; also delete a directory that is
1758 # left behind by Apple's compiler. We do this before executing the actions.
1759 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1760 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1761 as_fn_set_status
$ac_retval
1763 } # ac_fn_c_try_link
1765 # ac_fn_c_try_cpp LINENO
1766 # ----------------------
1767 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1770 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1771 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1773 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1774 *) ac_try_echo=$ac_try;;
1776 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1777 $as_echo "$ac_try_echo"; } >&5
1778 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1780 if test -s conftest.err; then
1781 grep -v '^ *+' conftest.err >conftest.er1
1782 cat conftest.er1 >&5
1783 mv -f conftest.er1 conftest.err
1785 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1786 test $ac_status = 0; } > conftest.i && {
1787 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1788 test ! -s conftest.err
1792 $as_echo "$as_me: failed program was:" >&5
1793 sed 's/^/| /' conftest.$ac_ext >&5
1797 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1798 as_fn_set_status $ac_retval
1802 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1803 # -------------------------------------------------------
1804 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1805 # the include files in INCLUDES and setting the cache variable VAR
1807 ac_fn_c_check_header_mongrel ()
1809 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1810 if eval \${$3+:} false; then :
1811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1812 $as_echo_n "checking for $2... " >&6; }
1813 if eval \${$3+:} false; then :
1814 $as_echo_n "(cached) " >&6
1817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1818 $as_echo "$ac_res" >&6; }
1820 # Is the header compilable?
1821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1822 $as_echo_n "checking $2 usability... " >&6; }
1823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1824 /* end confdefs.h. */
1828 if ac_fn_c_try_compile "$LINENO"; then :
1829 ac_header_compiler=yes
1831 ac_header_compiler=no
1833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1835 $as_echo "$ac_header_compiler" >&6; }
1837 # Is the header present?
1838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1839 $as_echo_n "checking $2 presence... " >&6; }
1840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1841 /* end confdefs.h. */
1844 if ac_fn_c_try_cpp "$LINENO"; then :
1845 ac_header_preproc=yes
1847 ac_header_preproc=no
1849 rm -f conftest.err conftest.i conftest.$ac_ext
1850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1851 $as_echo "$ac_header_preproc" >&6; }
1853 # So? What about this header?
1854 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1856 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1857 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1858 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1859 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1862 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1863 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1864 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1865 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1866 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1867 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1868 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1869 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1870 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1871 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1875 $as_echo_n "checking for $2... " >&6; }
1876 if eval \${$3+:} false; then :
1877 $as_echo_n "(cached) " >&6
1879 eval "$3=\$ac_header_compiler"
1882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1883 $as_echo "$ac_res" >&6; }
1885 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1887 } # ac_fn_c_check_header_mongrel
1889 # ac_fn_c_try_run LINENO
1890 # ----------------------
1891 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1892 # that executables *can* be run.
1895 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1896 if { { ac_try="$ac_link"
1898 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1899 *) ac_try_echo
=$ac_try;;
1901 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1902 $as_echo "$ac_try_echo"; } >&5
1903 (eval "$ac_link") 2>&5
1905 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1906 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1907 { { case "(($ac_try" in
1908 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1909 *) ac_try_echo=$ac_try;;
1911 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1912 $as_echo "$ac_try_echo"; } >&5
1913 (eval "$ac_try") 2>&5
1915 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1916 test $ac_status = 0; }; }; then :
1919 $as_echo "$as_me: program exited with status $ac_status" >&5
1920 $as_echo "$as_me: failed program was:" >&5
1921 sed 's/^/| /' conftest.$ac_ext >&5
1923 ac_retval=$ac_status
1925 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1926 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1927 as_fn_set_status $ac_retval
1931 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1932 # -------------------------------------------------------
1933 # Tests whether HEADER exists and can be compiled using the include files in
1934 # INCLUDES, setting the cache variable VAR accordingly.
1935 ac_fn_c_check_header_compile ()
1937 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1939 $as_echo_n "checking for $2... " >&6; }
1940 if eval \${$3+:} false; then :
1941 $as_echo_n "(cached) " >&6
1943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1944 /* end confdefs.h. */
1948 if ac_fn_c_try_compile "$LINENO"; then :
1953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1957 $as_echo "$ac_res" >&6; }
1958 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1960 } # ac_fn_c_check_header_compile
1962 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1963 # -------------------------------------------
1964 # Tests whether TYPE exists after having included INCLUDES, setting cache
1965 # variable VAR accordingly.
1966 ac_fn_c_check_type ()
1968 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1970 $as_echo_n "checking for $2... " >&6; }
1971 if eval \${$3+:} false; then :
1972 $as_echo_n "(cached) " >&6
1975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1976 /* end confdefs.h. */
1987 if ac_fn_c_try_compile "$LINENO"; then :
1988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1989 /* end confdefs.h. */
2000 if ac_fn_c_try_compile "$LINENO"; then :
2005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2011 $as_echo "$ac_res" >&6; }
2012 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2014 } # ac_fn_c_check_type
2016 # ac_fn_c_check_func LINENO FUNC VAR
2017 # ----------------------------------
2018 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2019 ac_fn_c_check_func ()
2021 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2023 $as_echo_n "checking for $2... " >&6; }
2024 if eval \${$3+:} false; then :
2025 $as_echo_n "(cached) " >&6
2027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2028 /* end confdefs.h. */
2029 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2030 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2031 #define $2 innocuous_$2
2033 /* System header to define __stub macros and hopefully few prototypes,
2034 which can conflict with char $2 (); below.
2035 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2036 <limits.h> exists even on freestanding compilers. */
2039 # include <limits.h>
2041 # include <assert.h>
2046 /* Override any GCC internal prototype to avoid an error.
2047 Use char because int might match the return type of a GCC
2048 builtin and then its argument prototype would still apply. */
2053 /* The GNU C library defines this for functions which it implements
2054 to always fail with ENOSYS. Some functions are actually named
2055 something starting with __ and the normal name is an alias. */
2056 #if defined __stub_$2 || defined __stub___$2
2068 if ac_fn_c_try_link "$LINENO"; then :
2073 rm -f core conftest.err conftest.$ac_objext \
2074 conftest$ac_exeext conftest.$ac_ext
2077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2078 $as_echo "$ac_res" >&6; }
2079 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2081 } # ac_fn_c_check_func
2083 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2084 # ---------------------------------------------
2085 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2087 ac_fn_c_check_decl ()
2089 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2090 as_decl_name=`echo $2|
sed 's/ *(.*//'`
2091 as_decl_use=`echo $2|
sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2093 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2094 if eval \${$3+:} false; then :
2095 $as_echo_n "(cached) " >&6
2097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2098 /* end confdefs.h. */
2103 #ifndef $as_decl_name
2105 (void) $as_decl_use;
2107 (void) $as_decl_name;
2115 if ac_fn_c_try_compile "$LINENO"; then :
2120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2124 $as_echo "$ac_res" >&6; }
2125 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2127 } # ac_fn_c_check_decl
2129 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2130 # --------------------------------------------
2131 # Tries to find the compile-time value of EXPR in a program that includes
2132 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2134 ac_fn_c_compute_int ()
2136 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2137 if test "$cross_compiling" = yes; then
2138 # Depending upon the size, compute the lo and hi bounds.
2139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2140 /* end confdefs.h. */
2145 static int test_array [1 - 2 * !(($2) >= 0)];
2147 return test_array [0];
2153 if ac_fn_c_try_compile "$LINENO"; then :
2156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2157 /* end confdefs.h. */
2162 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2164 return test_array [0];
2170 if ac_fn_c_try_compile "$LINENO"; then :
2171 ac_hi=$ac_mid; break
2173 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2174 if test $ac_lo -le $ac_mid; then
2178 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2184 /* end confdefs.h. */
2189 static int test_array [1 - 2 * !(($2) < 0)];
2191 return test_array [0];
2197 if ac_fn_c_try_compile "$LINENO"; then :
2200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2201 /* end confdefs.h. */
2206 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2208 return test_array [0];
2214 if ac_fn_c_try_compile "$LINENO"; then :
2215 ac_lo=$ac_mid; break
2217 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2218 if test $ac_mid -le $ac_hi; then
2222 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2232 # Binary search between lo and hi bounds.
2233 while test "x$ac_lo" != "x$ac_hi"; do
2234 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2236 /* end confdefs.h. */
2241 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2243 return test_array [0];
2249 if ac_fn_c_try_compile "$LINENO"; then :
2252 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2257 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2262 /* end confdefs.h. */
2264 static long int longval () { return $2; }
2265 static unsigned long int ulongval () { return $2; }
2272 FILE *f = fopen ("conftest.val", "w");
2277 long int i = longval ();
2280 fprintf (f, "%ld", i);
2284 unsigned long int i = ulongval ();
2287 fprintf (f, "%lu", i);
2289 /* Do not output a trailing newline, as this causes \r\n confusion
2290 on some platforms. */
2291 return ferror (f) || fclose (f) != 0;
2297 if ac_fn_c_try_run "$LINENO"; then :
2298 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2302 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2303 conftest.$ac_objext conftest.beam conftest.$ac_ext
2307 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2308 as_fn_set_status $ac_retval
2310 } # ac_fn_c_compute_int
2312 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2313 # ----------------------------------------------------
2314 # Tries to find if the field MEMBER exists in type AGGR, after including
2315 # INCLUDES, setting cache variable VAR accordingly.
2316 ac_fn_c_check_member ()
2318 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2320 $as_echo_n "checking for $2.$3... " >&6; }
2321 if eval \${$4+:} false; then :
2322 $as_echo_n "(cached) " >&6
2324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2325 /* end confdefs.h. */
2337 if ac_fn_c_try_compile "$LINENO"; then :
2340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2341 /* end confdefs.h. */
2347 if (sizeof ac_aggr.$3)
2353 if ac_fn_c_try_compile "$LINENO"; then :
2358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2364 $as_echo "$ac_res" >&6; }
2365 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2367 } # ac_fn_c_check_member
2368 cat >config.log <<_ACEOF
2369 This file contains any messages produced by compilers while
2370 running configure, to aid debugging if configure makes a mistake.
2372 It was created by $as_me, which was
2373 generated by GNU Autoconf 2.69. Invocation command line was
2385 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2386 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2387 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2388 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2389 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2391 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2392 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2394 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2395 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2396 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2397 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2398 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2399 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2400 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2408 test -z "$as_dir" && as_dir=.
2409 $as_echo "PATH: $as_dir"
2425 # Keep a trace of the command line.
2426 # Strip out --no-create and --no-recursion so they do not pile up.
2427 # Strip out --silent because we don't want to record it for future runs.
2428 # Also quote any args containing shell meta-characters.
2429 # Make two passes to allow for proper duplicate-argument suppression.
2433 ac_must_keep_next=false
2439 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2440 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2441 | -silent | --silent | --silen | --sile | --sil)
2444 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2447 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2449 as_fn_append ac_configure_args1 " '$ac_arg'"
2450 if test $ac_must_keep_next = true; then
2451 ac_must_keep_next=false # Got value, back to normal.
2454 *=* | --config-cache | -C | -disable-* | --disable-* \
2455 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2456 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2457 | -with-* | --with-* | -without-* | --without-* | --x)
2458 case "$ac_configure_args0 " in
2459 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2462 -* ) ac_must_keep_next=true ;;
2465 as_fn_append ac_configure_args " '$ac_arg'"
2470 { ac_configure_args0=; unset ac_configure_args0;}
2471 { ac_configure_args1=; unset ac_configure_args1;}
2473 # When interrupted or exit'd, cleanup temporary files, and complete
2474 # config.log. We remove comments because anyway the quotes in there
2475 # would cause problems or look ugly.
2476 # WARNING: Use '\'' to represent an apostrophe within the trap.
2477 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2478 trap 'exit_status=$?
2479 # Save into config.log some information that might help in debugging.
2483 $as_echo "## ---------------- ##
2484 ## Cache variables. ##
2485 ## ---------------- ##"
2487 # The following way of writing the cache mishandles newlines in values,
2489 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2490 eval ac_val=\$$ac_var
2494 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2495 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2498 _ | IFS | as_nl) ;; #(
2499 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2500 *) { eval $ac_var=; unset $ac_var;} ;;
2505 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2506 *${as_nl}ac_space=\ *)
2508 "s/'\''/'\''\\\\'\'''\''/g;
2509 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2512 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2519 $as_echo "## ----------------- ##
2520 ## Output variables. ##
2521 ## ----------------- ##"
2523 for ac_var in $ac_subst_vars
2525 eval ac_val=\$$ac_var
2527 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2529 $as_echo "$ac_var='\''$ac_val'\''"
2533 if test -n "$ac_subst_files"; then
2534 $as_echo "## ------------------- ##
2535 ## File substitutions. ##
2536 ## ------------------- ##"
2538 for ac_var in $ac_subst_files
2540 eval ac_val=\$$ac_var
2542 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2544 $as_echo "$ac_var='\''$ac_val'\''"
2549 if test -s confdefs.h; then
2550 $as_echo "## ----------- ##
2557 test "$ac_signal" != 0 &&
2558 $as_echo "$as_me: caught signal $ac_signal"
2559 $as_echo "$as_me: exit $exit_status"
2561 rm -f core *.core core.conftest.* &&
2562 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2565 for ac_signal in 1 2 13 15; do
2566 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2570 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2571 rm -f -r conftest* confdefs.h
2573 $as_echo "/* confdefs.h */" > confdefs.h
2575 # Predefined preprocessor variables.
2577 cat >>confdefs.h <<_ACEOF
2578 #define PACKAGE_NAME "$PACKAGE_NAME"
2581 cat >>confdefs.h <<_ACEOF
2582 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2585 cat >>confdefs.h <<_ACEOF
2586 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2589 cat >>confdefs.h <<_ACEOF
2590 #define PACKAGE_STRING "$PACKAGE_STRING"
2593 cat >>confdefs.h <<_ACEOF
2594 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2597 cat >>confdefs.h <<_ACEOF
2598 #define PACKAGE_URL "$PACKAGE_URL"
2602 # Let the site file select an alternate cache file if it wants to.
2603 # Prefer an explicitly selected file to automatically selected ones.
2606 if test -n "$CONFIG_SITE"; then
2607 # We do not want a PATH search for config.site.
2608 case $CONFIG_SITE in #((
2609 -*) ac_site_file1=./$CONFIG_SITE;;
2610 */*) ac_site_file1=$CONFIG_SITE;;
2611 *) ac_site_file1=./$CONFIG_SITE;;
2613 elif test "x$prefix" != xNONE; then
2614 ac_site_file1=$prefix/share/config.site
2615 ac_site_file2=$prefix/etc/config.site
2617 ac_site_file1=$ac_default_prefix/share/config.site
2618 ac_site_file2=$ac_default_prefix/etc/config.site
2620 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2622 test "x$ac_site_file" = xNONE && continue
2623 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2624 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2625 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2626 sed 's/^/| /' "$ac_site_file" >&5
2628 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2629 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2630 as_fn_error $? "failed to load site
script $ac_site_file
2631 See \
`config.log' for more details" "$LINENO" 5; }
2635 if test -r "$cache_file"; then
2636 # Some versions of bash will fail to source /dev/null (special files
2637 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2638 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2639 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2640 $as_echo "$as_me: loading cache $cache_file" >&6;}
2642 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2643 *) . "./$cache_file";;
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2648 $as_echo "$as_me: creating cache $cache_file" >&6;}
2652 gt_needs="$gt_needs "
2653 as_fn_append ac_header_list " stdlib.h"
2654 as_fn_append ac_header_list " unistd.h"
2655 as_fn_append ac_header_list " sys/param.h"
2656 as_fn_append ac_func_list " symlink"
2657 # Check that the precious variables saved in the cache have kept the same
2659 ac_cache_corrupted=false
2660 for ac_var in $ac_precious_vars; do
2661 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2662 eval ac_new_set=\$ac_env_${ac_var}_set
2663 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2664 eval ac_new_val=\$ac_env_${ac_var}_value
2665 case $ac_old_set,$ac_new_set in
2667 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2668 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2669 ac_cache_corrupted=: ;;
2671 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2672 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2673 ac_cache_corrupted=: ;;
2676 if test "x$ac_old_val" != "x$ac_new_val"; then
2677 # differences in whitespace do not lead to failure.
2678 ac_old_val_w=`echo x
$ac_old_val`
2679 ac_new_val_w=`echo x
$ac_new_val`
2680 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2681 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2682 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2683 ac_cache_corrupted=:
2685 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2686 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2687 eval $ac_var=\$ac_old_val
2689 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2690 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2691 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2692 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2695 # Pass precious variables to config.status.
2696 if test "$ac_new_set" = set; then
2698 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2699 *) ac_arg=$ac_var=$ac_new_val ;;
2701 case " $ac_configure_args " in
2702 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2703 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2707 if $ac_cache_corrupted; then
2708 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2709 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2710 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2711 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2712 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2714 ## -------------------- ##
2715 ## Main body of script. ##
2716 ## -------------------- ##
2719 ac_cpp='$CPP $CPPFLAGS'
2720 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2721 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2722 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2727 for ac_dir in config "$srcdir"/config; do
2728 if test -f "$ac_dir/install-sh"; then
2730 ac_install_sh="$ac_aux_dir/install-sh -c"
2732 elif test -f "$ac_dir/install.sh"; then
2734 ac_install_sh="$ac_aux_dir/install.sh -c"
2736 elif test -f "$ac_dir/shtool"; then
2738 ac_install_sh="$ac_aux_dir/shtool install -c"
2742 if test -z "$ac_aux_dir"; then
2743 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2746 # These three variables are undocumented and unsupported,
2747 # and are intended to be withdrawn in a future Autoconf release.
2748 # They can cause serious problems if a builder's source tree is in a directory
2749 # whose full name contains unusual characters.
2750 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2751 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2752 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2755 ac_config_headers="$ac_config_headers lib/config.h"
2761 E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION
${srcdir}/version.h \
2762 |
awk '{print $3}' |
tr \" " " |
awk '{print $1}'`
2763 DATE=`grep E2FSPROGS_DATE
${srcdir}/version.h |
awk '{print $3}' \
2765 E2FSPROGS_DAY=$(echo $DATE | awk -F- '{print $1}' | sed -e '/^[1-9]$/s/^/0/')
2766 MONTH=`echo $DATE |
awk -F- '{print $2}'`
2767 YEAR=`echo $DATE |
awk -F- '{print $3}'`
2769 if expr $YEAR ">" 1900 > /dev/null ; then
2770 E2FSPROGS_YEAR=$YEAR
2771 elif expr $YEAR ">" 90 >/dev/null ; then
2772 E2FSPROGS_YEAR=19$YEAR
2774 E2FSPROGS_YEAR=20$YEAR
2778 Jan) MONTH_NUM=01; E2FSPROGS_MONTH="January" ;;
2779 Feb) MONTH_NUM=02; E2FSPROGS_MONTH="February" ;;
2780 Mar) MONTH_NUM=03; E2FSPROGS_MONTH="March" ;;
2781 Apr) MONTH_NUM=04; E2FSPROGS_MONTH="April" ;;
2782 May) MONTH_NUM=05; E2FSPROGS_MONTH="May" ;;
2783 Jun) MONTH_NUM=06; E2FSPROGS_MONTH="June" ;;
2784 Jul) MONTH_NUM=07; E2FSPROGS_MONTH="July" ;;
2785 Aug) MONTH_NUM=08; E2FSPROGS_MONTH="August" ;;
2786 Sep) MONTH_NUM=09; E2FSPROGS_MONTH="September" ;;
2787 Oct) MONTH_NUM=10; E2FSPROGS_MONTH="October" ;;
2788 Nov) MONTH_NUM=11; E2FSPROGS_MONTH="November" ;;
2789 Dec) MONTH_NUM=12; E2FSPROGS_MONTH="December" ;;
2790 *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown month $MONTH??" >&5
2791 $as_echo "$as_me: WARNING: Unknown month $MONTH??" >&2;} ;;
2794 base_ver=`echo $E2FSPROGS_VERSION | \
2795 sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'`
2797 date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
2799 case $E2FSPROGS_VERSION in
2801 E2FSPROGS_PKGVER="$base_ver~WIP.$date_spec"
2804 E2FSPROGS_PKGVER="$base_ver"
2808 unset DATE MONTH YEAR base_ver pre_vers date_spec
2809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&5
2810 $as_echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&6; }
2811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&5
2812 $as_echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&6; }
2820 # Check whether --with-diet-libc was given.
2821 if test "${with_diet_libc+set}" = set; then :
2822 withval=$with_diet_libc; CC="diet cc -nostdinc"
2828 LIBS="$LIBS -lcompat"
2830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: CC=$CC" >&5
2831 $as_echo "CC=$CC" >&6; }
2833 # Make sure we can run config.sub.
2834 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2835 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2838 $as_echo_n "checking build system type... " >&6; }
2839 if ${ac_cv_build+:} false; then :
2840 $as_echo_n "(cached) " >&6
2842 ac_build_alias=$build_alias
2843 test "x$ac_build_alias" = x &&
2844 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2845 test "x$ac_build_alias" = x &&
2846 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2847 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2848 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2852 $as_echo "$ac_cv_build" >&6; }
2853 case $ac_cv_build in
2855 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2858 ac_save_IFS=$IFS; IFS='-'
2864 # Remember, the first character of IFS is used to create $*,
2865 # except with old shells:
2868 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
2871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2872 $as_echo_n "checking host system type... " >&6; }
2873 if ${ac_cv_host+:} false; then :
2874 $as_echo_n "(cached) " >&6
2876 if test "x$host_alias" = x; then
2877 ac_cv_host=$ac_cv_build
2879 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2880 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2885 $as_echo "$ac_cv_host" >&6; }
2888 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2891 ac_save_IFS=$IFS; IFS='-'
2897 # Remember, the first character of IFS is used to create $*,
2898 # except with old shells:
2901 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
2906 ac_cpp='$CPP $CPPFLAGS'
2907 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2908 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2909 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2910 if test -n "$ac_tool_prefix"; then
2911 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2912 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2914 $as_echo_n "checking for $ac_word... " >&6; }
2915 if ${ac_cv_prog_CC+:} false; then :
2916 $as_echo_n "(cached) " >&6
2918 if test -n "$CC"; then
2919 ac_cv_prog_CC="$CC" # Let the user override the test.
2921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2925 test -z "$as_dir" && as_dir=.
2926 for ac_exec_ext in '' $ac_executable_extensions; do
2927 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2928 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2939 if test -n "$CC"; then
2940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2941 $as_echo "$CC" >&6; }
2943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2944 $as_echo "no" >&6; }
2949 if test -z "$ac_cv_prog_CC"; then
2951 # Extract the first word of "gcc", so it can be a program name with args.
2952 set dummy gcc; ac_word=$2
2953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2954 $as_echo_n "checking for $ac_word... " >&6; }
2955 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2956 $as_echo_n "(cached) " >&6
2958 if test -n "$ac_ct_CC"; then
2959 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2965 test -z "$as_dir" && as_dir=.
2966 for ac_exec_ext in '' $ac_executable_extensions; do
2967 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2968 ac_cv_prog_ac_ct_CC="gcc"
2969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2978 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2979 if test -n "$ac_ct_CC"; then
2980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2981 $as_echo "$ac_ct_CC" >&6; }
2983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2984 $as_echo "no" >&6; }
2987 if test "x$ac_ct_CC" = x; then
2990 case $cross_compiling:$ac_tool_warned in
2992 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2993 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2994 ac_tool_warned=yes ;;
3002 if test -z "$CC"; then
3003 if test -n "$ac_tool_prefix"; then
3004 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3005 set dummy ${ac_tool_prefix}cc; ac_word=$2
3006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3007 $as_echo_n "checking for $ac_word... " >&6; }
3008 if ${ac_cv_prog_CC+:} false; then :
3009 $as_echo_n "(cached) " >&6
3011 if test -n "$CC"; then
3012 ac_cv_prog_CC="$CC" # Let the user override the test.
3014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3018 test -z "$as_dir" && as_dir=.
3019 for ac_exec_ext in '' $ac_executable_extensions; do
3020 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3021 ac_cv_prog_CC="${ac_tool_prefix}cc"
3022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3032 if test -n "$CC"; then
3033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3034 $as_echo "$CC" >&6; }
3036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3037 $as_echo "no" >&6; }
3043 if test -z "$CC"; then
3044 # Extract the first word of "cc", so it can be a program name with args.
3045 set dummy cc; ac_word=$2
3046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3047 $as_echo_n "checking for $ac_word... " >&6; }
3048 if ${ac_cv_prog_CC+:} false; then :
3049 $as_echo_n "(cached) " >&6
3051 if test -n "$CC"; then
3052 ac_cv_prog_CC="$CC" # Let the user override the test.
3055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3059 test -z "$as_dir" && as_dir=.
3060 for ac_exec_ext in '' $ac_executable_extensions; do
3061 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3062 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3063 ac_prog_rejected=yes
3067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3074 if test $ac_prog_rejected = yes; then
3075 # We found a bogon in the path, so make sure we never use it.
3076 set dummy $ac_cv_prog_CC
3078 if test $# != 0; then
3079 # We chose a different compiler from the bogus one.
3080 # However, it has the same basename, so the bogon will be chosen
3081 # first if we set CC to just the basename; use the full file name.
3083 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3089 if test -n "$CC"; then
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3091 $as_echo "$CC" >&6; }
3093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3094 $as_echo "no" >&6; }
3099 if test -z "$CC"; then
3100 if test -n "$ac_tool_prefix"; then
3101 for ac_prog in cl.exe
3103 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3104 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3106 $as_echo_n "checking for $ac_word... " >&6; }
3107 if ${ac_cv_prog_CC+:} false; then :
3108 $as_echo_n "(cached) " >&6
3110 if test -n "$CC"; then
3111 ac_cv_prog_CC="$CC" # Let the user override the test.
3113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3117 test -z "$as_dir" && as_dir=.
3118 for ac_exec_ext in '' $ac_executable_extensions; do
3119 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3120 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3131 if test -n "$CC"; then
3132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3133 $as_echo "$CC" >&6; }
3135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3136 $as_echo "no" >&6; }
3140 test -n "$CC" && break
3143 if test -z "$CC"; then
3145 for ac_prog in cl.exe
3147 # Extract the first word of "$ac_prog", so it can be a program name with args.
3148 set dummy $ac_prog; ac_word=$2
3149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3150 $as_echo_n "checking for $ac_word... " >&6; }
3151 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3152 $as_echo_n "(cached) " >&6
3154 if test -n "$ac_ct_CC"; then
3155 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3161 test -z "$as_dir" && as_dir=.
3162 for ac_exec_ext in '' $ac_executable_extensions; do
3163 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3164 ac_cv_prog_ac_ct_CC="$ac_prog"
3165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3174 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3175 if test -n "$ac_ct_CC"; then
3176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3177 $as_echo "$ac_ct_CC" >&6; }
3179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3180 $as_echo "no" >&6; }
3184 test -n "$ac_ct_CC" && break
3187 if test "x$ac_ct_CC" = x; then
3190 case $cross_compiling:$ac_tool_warned in
3192 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3193 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3194 ac_tool_warned=yes ;;
3203 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3204 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3205 as_fn_error $? "no acceptable C compiler found
in \
$PATH
3206 See \
`config.log' for more details" "$LINENO" 5; }
3208 # Provide some information about the compiler.
3209 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3212 for ac_option in --version -v -V -qversion; do
3213 { { ac_try="$ac_compiler $ac_option >&5"
3215 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3216 *) ac_try_echo
=$ac_try;;
3218 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3219 $as_echo "$ac_try_echo"; } >&5
3220 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3222 if test -s conftest.err
; then
3224 ... rest of stderr output deleted ...
3225 10q' conftest.err
>conftest.er1
3226 cat conftest.er1
>&5
3228 rm -f conftest.er1 conftest.err
3229 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3230 test $ac_status = 0; }
3233 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3234 /* end confdefs.h. */
3244 ac_clean_files_save
=$ac_clean_files
3245 ac_clean_files
="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3246 # Try to create an executable without -o first, disregard a.out.
3247 # It will help us diagnose broken compilers, and finding out an intuition
3249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3250 $as_echo_n "checking whether the C compiler works... " >&6; }
3251 ac_link_default
=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3253 # The possible output files:
3254 ac_files
="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3257 for ac_file
in $ac_files
3260 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3261 * ) ac_rmfiles
="$ac_rmfiles $ac_file";;
3266 if { { ac_try
="$ac_link_default"
3268 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3269 *) ac_try_echo=$ac_try;;
3271 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3272 $as_echo "$ac_try_echo"; } >&5
3273 (eval "$ac_link_default") 2>&5
3275 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3276 test $ac_status = 0; }; then :
3277 # Autoconf-2.13 could set the ac_cv_exeext variable to `no
'.
3278 # So ignore a value of `no', otherwise this would lead to
`EXEEXT = no'
3279 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3280 # so that the user can short-circuit this test for compilers unknown to
3282 for ac_file in $ac_files ''
3284 test -f "$ac_file" || continue
3286 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3289 # We found the default executable, but exeext='' is most
3293 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3295 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3297 # We set ac_cv_exeext here because the later test for it is not
3298 # safe: cross compilers may not add the suffix if given an `-o'
3299 # argument, so we may need to know it at that point already.
3300 # Even if this section looks crufty: it has the advantage of
3307 test "$ac_cv_exeext" = no && ac_cv_exeext=
3312 if test -z "$ac_file"; then :
3313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3314 $as_echo "no" >&6; }
3315 $as_echo "$as_me: failed program was:" >&5
3316 sed 's
/^
/|
/' conftest.$ac_ext >&5
3318 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3319 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
3320 as_fn_error 77 "C compiler cannot create executables
3321 See \`config.log
' for more details" "$LINENO" 5; }
3323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3324 $as_echo "yes" >&6; }
3326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3327 $as_echo_n "checking for C compiler default output file name... " >&6; }
3328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3329 $as_echo "$ac_file" >&6; }
3330 ac_exeext=$ac_cv_exeext
3332 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3333 ac_clean_files=$ac_clean_files_save
3334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3335 $as_echo_n "checking for suffix of executables... " >&6; }
3336 if { { ac_try="$ac_link"
3338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3339 *) ac_try_echo=$ac_try;;
3341 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3342 $as_echo "$ac_try_echo"; } >&5
3343 (eval "$ac_link") 2>&5
3345 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3346 test $ac_status = 0; }; then :
3347 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3348 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3349 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3351 for ac_file
in conftest.exe conftest conftest.
*; do
3352 test -f "$ac_file" ||
continue
3354 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3355 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3361 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3362 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3363 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3364 See \`config.log' for more details" "$LINENO" 5; }
3366 rm -f conftest conftest
$ac_cv_exeext
3367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3368 $as_echo "$ac_cv_exeext" >&6; }
3370 rm -f conftest.
$ac_ext
3371 EXEEXT
=$ac_cv_exeext
3373 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3374 /* end confdefs.h. */
3379 FILE *f = fopen ("conftest.out", "w");
3380 return ferror (f) || fclose (f) != 0;
3386 ac_clean_files
="$ac_clean_files conftest.out"
3387 # Check that the compiler produces executables we can run. If not, either
3388 # the compiler is broken, or we cross compile.
3389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3390 $as_echo_n "checking whether we are cross compiling... " >&6; }
3391 if test "$cross_compiling" != yes; then
3392 { { ac_try
="$ac_link"
3394 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3395 *) ac_try_echo=$ac_try;;
3397 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3398 $as_echo "$ac_try_echo"; } >&5
3399 (eval "$ac_link") 2>&5
3401 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3402 test $ac_status = 0; }
3403 if { ac_try='./conftest$ac_cv_exeext'
3404 { { case "(($ac_try" in
3405 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3406 *) ac_try_echo
=$ac_try;;
3408 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3409 $as_echo "$ac_try_echo"; } >&5
3410 (eval "$ac_try") 2>&5
3412 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3413 test $ac_status = 0; }; }; then
3416 if test "$cross_compiling" = maybe
; then
3419 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3420 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3421 as_fn_error $?
"cannot run C compiled programs.
3422 If you meant to cross compile, use \`--host'.
3423 See \`config.log' for more details" "$LINENO" 5; }
3427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3428 $as_echo "$cross_compiling" >&6; }
3430 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3431 ac_clean_files
=$ac_clean_files_save
3432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3433 $as_echo_n "checking for suffix of object files... " >&6; }
3434 if ${ac_cv_objext+:} false
; then :
3435 $as_echo_n "(cached) " >&6
3437 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3438 /* end confdefs.h. */
3448 rm -f conftest.o conftest.obj
3449 if { { ac_try
="$ac_compile"
3451 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3452 *) ac_try_echo=$ac_try;;
3454 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3455 $as_echo "$ac_try_echo"; } >&5
3456 (eval "$ac_compile") 2>&5
3458 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3459 test $ac_status = 0; }; then :
3460 for ac_file in conftest.o conftest.obj conftest.*; do
3461 test -f "$ac_file" || continue;
3463 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3464 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3469 $as_echo "$as_me: failed program was:" >&5
3470 sed 's/^/| /' conftest.$ac_ext >&5
3472 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3473 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3474 as_fn_error $? "cannot compute suffix of object files
: cannot compile
3475 See \
`config.log' for more details" "$LINENO" 5; }
3477 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3480 $as_echo "$ac_cv_objext" >&6; }
3481 OBJEXT=$ac_cv_objext
3483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3484 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3485 if ${ac_cv_c_compiler_gnu+:} false; then :
3486 $as_echo_n "(cached) " >&6
3488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3489 /* end confdefs.h. */
3502 if ac_fn_c_try_compile "$LINENO"; then :
3507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3508 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3512 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3513 if test $ac_compiler_gnu = yes; then
3518 ac_test_CFLAGS=${CFLAGS+set}
3519 ac_save_CFLAGS=$CFLAGS
3520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3521 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3522 if ${ac_cv_prog_cc_g+:} false; then :
3523 $as_echo_n "(cached) " >&6
3525 ac_save_c_werror_flag=$ac_c_werror_flag
3526 ac_c_werror_flag=yes
3529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3530 /* end confdefs.h. */
3540 if ac_fn_c_try_compile "$LINENO"; then :
3544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3545 /* end confdefs.h. */
3555 if ac_fn_c_try_compile "$LINENO"; then :
3558 ac_c_werror_flag=$ac_save_c_werror_flag
3560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3561 /* end confdefs.h. */
3571 if ac_fn_c_try_compile "$LINENO"; then :
3574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3579 ac_c_werror_flag=$ac_save_c_werror_flag
3581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3582 $as_echo "$ac_cv_prog_cc_g" >&6; }
3583 if test "$ac_test_CFLAGS" = set; then
3584 CFLAGS=$ac_save_CFLAGS
3585 elif test $ac_cv_prog_cc_g = yes; then
3586 if test "$GCC" = yes; then
3592 if test "$GCC" = yes; then
3598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3599 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3600 if ${ac_cv_prog_cc_c89+:} false; then :
3601 $as_echo_n "(cached) " >&6
3603 ac_cv_prog_cc_c89=no
3605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3606 /* end confdefs.h. */
3610 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3611 struct buf { int x; };
3612 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3613 static char *e (p, i)
3619 static char *f (char * (*g) (char **, int), char **p, ...)
3624 s = g (p, va_arg (v,int));
3629 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3630 function prototypes and stuff, but not '\xHH' hex character constants.
3631 These don't provoke an error unfortunately, instead are silently treated
3632 as 'x'. The following induces an error, until -std is added to get
3633 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3634 array size at least. It's necessary to write '\x00'==0 to get something
3635 that's true only with -std. */
3636 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3638 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3639 inside strings and character constants. */
3641 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3643 int test (int i, double x);
3644 struct s1 {int (*f) (int a);};
3645 struct s2 {int (*f) (double a);};
3646 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3652 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3657 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3658 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3660 CC="$ac_save_CC $ac_arg"
3661 if ac_fn_c_try_compile "$LINENO"; then :
3662 ac_cv_prog_cc_c89=$ac_arg
3664 rm -f core conftest.err conftest.$ac_objext
3665 test "x$ac_cv_prog_cc_c89" != "xno" && break
3667 rm -f conftest.$ac_ext
3672 case "x$ac_cv_prog_cc_c89" in
3674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3675 $as_echo "none needed" >&6; } ;;
3677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3678 $as_echo "unsupported" >&6; } ;;
3680 CC="$CC $ac_cv_prog_cc_c89"
3681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3682 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3684 if test "x$ac_cv_prog_cc_c89" != xno; then :
3689 ac_cpp='$CPP $CPPFLAGS'
3690 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3691 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3692 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
3696 $as_echo_n "checking for dlopen in -ldl... " >&6; }
3697 if ${ac_cv_lib_dl_dlopen+:} false; then :
3698 $as_echo_n "(cached) " >&6
3700 ac_check_lib_save_LIBS=$LIBS
3702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3703 /* end confdefs.h. */
3705 /* Override any GCC internal prototype to avoid an error.
3706 Use char because int might match the return type of a GCC
3707 builtin and then its argument prototype would still apply. */
3720 if ac_fn_c_try_link "$LINENO"; then :
3721 ac_cv_lib_dl_dlopen=yes
3723 ac_cv_lib_dl_dlopen=no
3725 rm -f core conftest.err conftest.$ac_objext \
3726 conftest$ac_exeext conftest.$ac_ext
3727 LIBS=$ac_check_lib_save_LIBS
3729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
3730 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
3731 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
3737 # Check whether --with-cc was given.
3738 if test "${with_cc+set}" = set; then :
3739 withval=$with_cc; as_fn_error $? "--with-cc no longer supported; use CC= instead" "$LINENO" 5
3743 # Check whether --with-ccopts was given.
3744 if test "${with_ccopts+set}" = set; then :
3745 withval=$with_ccopts; as_fn_error $? "--with-ccopts no longer supported; use CFLAGS= instead" "$LINENO" 5
3749 # Check whether --with-ldopts was given.
3750 if test "${with_ldopts+set}" = set; then :
3751 withval=$with_ldopts; as_fn_error $? "--with-ldopts no longer supported; use LDFLAGS= instead" "$LINENO" 5
3755 ac_cpp='$CPP $CPPFLAGS'
3756 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3757 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3758 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3759 if test -n "$ac_tool_prefix"; then
3760 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3761 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3763 $as_echo_n "checking for $ac_word... " >&6; }
3764 if ${ac_cv_prog_CC+:} false; then :
3765 $as_echo_n "(cached) " >&6
3767 if test -n "$CC"; then
3768 ac_cv_prog_CC="$CC" # Let the user override the test.
3770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3774 test -z "$as_dir" && as_dir=.
3775 for ac_exec_ext in '' $ac_executable_extensions; do
3776 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3777 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3778 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3788 if test -n "$CC"; then
3789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3790 $as_echo "$CC" >&6; }
3792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3793 $as_echo "no" >&6; }
3798 if test -z "$ac_cv_prog_CC"; then
3800 # Extract the first word of "gcc", so it can be a program name with args.
3801 set dummy gcc; ac_word=$2
3802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3803 $as_echo_n "checking for $ac_word... " >&6; }
3804 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3805 $as_echo_n "(cached) " >&6
3807 if test -n "$ac_ct_CC"; then
3808 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3814 test -z "$as_dir" && as_dir=.
3815 for ac_exec_ext in '' $ac_executable_extensions; do
3816 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3817 ac_cv_prog_ac_ct_CC="gcc"
3818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3827 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3828 if test -n "$ac_ct_CC"; then
3829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3830 $as_echo "$ac_ct_CC" >&6; }
3832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3833 $as_echo "no" >&6; }
3836 if test "x$ac_ct_CC" = x; then
3839 case $cross_compiling:$ac_tool_warned in
3841 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3842 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3843 ac_tool_warned=yes ;;
3851 if test -z "$CC"; then
3852 if test -n "$ac_tool_prefix"; then
3853 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3854 set dummy ${ac_tool_prefix}cc; ac_word=$2
3855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3856 $as_echo_n "checking for $ac_word... " >&6; }
3857 if ${ac_cv_prog_CC+:} false; then :
3858 $as_echo_n "(cached) " >&6
3860 if test -n "$CC"; then
3861 ac_cv_prog_CC="$CC" # Let the user override the test.
3863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3867 test -z "$as_dir" && as_dir=.
3868 for ac_exec_ext in '' $ac_executable_extensions; do
3869 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3870 ac_cv_prog_CC="${ac_tool_prefix}cc"
3871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3881 if test -n "$CC"; then
3882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3883 $as_echo "$CC" >&6; }
3885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3886 $as_echo "no" >&6; }
3892 if test -z "$CC"; then
3893 # Extract the first word of "cc", so it can be a program name with args.
3894 set dummy cc; 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.
3904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3908 test -z "$as_dir" && as_dir=.
3909 for ac_exec_ext in '' $ac_executable_extensions; do
3910 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3911 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3912 ac_prog_rejected=yes
3916 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3923 if test $ac_prog_rejected = yes; then
3924 # We found a bogon in the path, so make sure we never use it.
3925 set dummy $ac_cv_prog_CC
3927 if test $# != 0; then
3928 # We chose a different compiler from the bogus one.
3929 # However, it has the same basename, so the bogon will be chosen
3930 # first if we set CC to just the basename; use the full file name.
3932 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3938 if test -n "$CC"; then
3939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3940 $as_echo "$CC" >&6; }
3942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3943 $as_echo "no" >&6; }
3948 if test -z "$CC"; then
3949 if test -n "$ac_tool_prefix"; then
3950 for ac_prog in cl.exe
3952 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3953 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3955 $as_echo_n "checking for $ac_word... " >&6; }
3956 if ${ac_cv_prog_CC+:} false; then :
3957 $as_echo_n "(cached) " >&6
3959 if test -n "$CC"; then
3960 ac_cv_prog_CC="$CC" # Let the user override the test.
3962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3966 test -z "$as_dir" && as_dir=.
3967 for ac_exec_ext in '' $ac_executable_extensions; do
3968 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3969 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3970 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3980 if test -n "$CC"; then
3981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3982 $as_echo "$CC" >&6; }
3984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3985 $as_echo "no" >&6; }
3989 test -n "$CC" && break
3992 if test -z "$CC"; then
3994 for ac_prog in cl.exe
3996 # Extract the first word of "$ac_prog", so it can be a program name with args.
3997 set dummy $ac_prog; ac_word=$2
3998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3999 $as_echo_n "checking for $ac_word... " >&6; }
4000 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4001 $as_echo_n "(cached) " >&6
4003 if test -n "$ac_ct_CC"; then
4004 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4010 test -z "$as_dir" && as_dir=.
4011 for ac_exec_ext in '' $ac_executable_extensions; do
4012 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4013 ac_cv_prog_ac_ct_CC="$ac_prog"
4014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4023 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4024 if test -n "$ac_ct_CC"; then
4025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4026 $as_echo "$ac_ct_CC" >&6; }
4028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4029 $as_echo "no" >&6; }
4033 test -n "$ac_ct_CC" && break
4036 if test "x$ac_ct_CC" = x; then
4039 case $cross_compiling:$ac_tool_warned in
4041 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4042 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4043 ac_tool_warned=yes ;;
4052 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4053 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4054 as_fn_error $? "no acceptable C compiler found
in \
$PATH
4055 See \
`config.log' for more details" "$LINENO" 5; }
4057 # Provide some information about the compiler.
4058 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4061 for ac_option in --version -v -V -qversion; do
4062 { { ac_try="$ac_compiler $ac_option >&5"
4064 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4065 *) ac_try_echo
=$ac_try;;
4067 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4068 $as_echo "$ac_try_echo"; } >&5
4069 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4071 if test -s conftest.err
; then
4073 ... rest of stderr output deleted ...
4074 10q' conftest.err
>conftest.er1
4075 cat conftest.er1
>&5
4077 rm -f conftest.er1 conftest.err
4078 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4079 test $ac_status = 0; }
4082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4083 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4084 if ${ac_cv_c_compiler_gnu+:} false
; then :
4085 $as_echo_n "(cached) " >&6
4087 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4088 /* end confdefs.h. */
4101 if ac_fn_c_try_compile
"$LINENO"; then :
4106 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4107 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
4110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4111 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4112 if test $ac_compiler_gnu = yes; then
4117 ac_test_CFLAGS
=${CFLAGS+set}
4118 ac_save_CFLAGS
=$CFLAGS
4119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4120 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4121 if ${ac_cv_prog_cc_g+:} false
; then :
4122 $as_echo_n "(cached) " >&6
4124 ac_save_c_werror_flag
=$ac_c_werror_flag
4125 ac_c_werror_flag
=yes
4128 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4129 /* end confdefs.h. */
4139 if ac_fn_c_try_compile
"$LINENO"; then :
4143 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4144 /* end confdefs.h. */
4154 if ac_fn_c_try_compile
"$LINENO"; then :
4157 ac_c_werror_flag
=$ac_save_c_werror_flag
4159 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4160 /* end confdefs.h. */
4170 if ac_fn_c_try_compile
"$LINENO"; then :
4173 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4175 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4177 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4178 ac_c_werror_flag
=$ac_save_c_werror_flag
4180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4181 $as_echo "$ac_cv_prog_cc_g" >&6; }
4182 if test "$ac_test_CFLAGS" = set; then
4183 CFLAGS
=$ac_save_CFLAGS
4184 elif test $ac_cv_prog_cc_g = yes; then
4185 if test "$GCC" = yes; then
4191 if test "$GCC" = yes; then
4197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4198 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4199 if ${ac_cv_prog_cc_c89+:} false
; then :
4200 $as_echo_n "(cached) " >&6
4202 ac_cv_prog_cc_c89
=no
4204 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4205 /* end confdefs.h. */
4209 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4210 struct buf { int x; };
4211 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4212 static char *e (p, i)
4218 static char *f (char * (*g) (char **, int), char **p, ...)
4223 s = g (p, va_arg (v,int));
4228 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4229 function prototypes and stuff, but not '\xHH' hex character constants.
4230 These don't provoke an error unfortunately, instead are silently treated
4231 as 'x'. The following induces an error, until -std is added to get
4232 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4233 array size at least. It's necessary to write '\x00'==0 to get something
4234 that's true only with -std. */
4235 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4237 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4238 inside strings and character constants. */
4240 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4242 int test (int i, double x);
4243 struct s1 {int (*f) (int a);};
4244 struct s2 {int (*f) (double a);};
4245 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4251 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4256 for ac_arg
in '' -qlanglvl=extc89
-qlanglvl=ansi
-std \
4257 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4259 CC
="$ac_save_CC $ac_arg"
4260 if ac_fn_c_try_compile
"$LINENO"; then :
4261 ac_cv_prog_cc_c89
=$ac_arg
4263 rm -f core conftest.err conftest.
$ac_objext
4264 test "x$ac_cv_prog_cc_c89" != "xno" && break
4266 rm -f conftest.
$ac_ext
4271 case "x$ac_cv_prog_cc_c89" in
4273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4274 $as_echo "none needed" >&6; } ;;
4276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4277 $as_echo "unsupported" >&6; } ;;
4279 CC
="$CC $ac_cv_prog_cc_c89"
4280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4281 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4283 if test "x$ac_cv_prog_cc_c89" != xno
; then :
4288 ac_cpp
='$CPP $CPPFLAGS'
4289 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4290 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4291 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4293 if test "$GCC" = yes; then
4294 RDYNAMIC
="-rdynamic"
4298 ac_cpp
='$CPP $CPPFLAGS'
4299 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4300 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4301 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4303 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4304 # On Suns, sometimes $CPP names a directory.
4305 if test -n "$CPP" && test -d "$CPP"; then
4308 if test -z "$CPP"; then
4309 if ${ac_cv_prog_CPP+:} false
; then :
4310 $as_echo_n "(cached) " >&6
4312 # Double quotes because CPP needs to be expanded
4313 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
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 :
4372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4373 $as_echo "$CPP" >&6; }
4375 for ac_c_preproc_warn_flag
in '' yes
4377 # Use a header file that comes with gcc, so configuring glibc
4378 # with a fresh cross-compiler works.
4379 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4380 # <limits.h> exists even on freestanding compilers.
4381 # On the NeXT, cc -E runs the code through the compiler's parser,
4382 # not just through cpp. "Syntax error" is here to catch this case.
4383 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4384 /* end confdefs.h. */
4386 # include <limits.h>
4388 # include <assert.h>
4392 if ac_fn_c_try_cpp
"$LINENO"; then :
4395 # Broken: fails on valid input.
4398 rm -f conftest.err conftest.i conftest.
$ac_ext
4400 # OK, works on sane cases. Now check whether nonexistent headers
4401 # can be detected and how.
4402 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4403 /* end confdefs.h. */
4404 #include <ac_nonexistent.h>
4406 if ac_fn_c_try_cpp
"$LINENO"; then :
4407 # Broken: success on invalid input.
4410 # Passes both tests.
4414 rm -f conftest.err conftest.i conftest.
$ac_ext
4417 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4418 rm -f conftest.i conftest.err conftest.
$ac_ext
4419 if $ac_preproc_ok; then :
4422 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4423 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4424 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
4425 See \`config.log' for more details" "$LINENO" 5; }
4429 ac_cpp
='$CPP $CPPFLAGS'
4430 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4431 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4432 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for additional special compiler flags" >&5
4435 $as_echo_n "checking for additional special compiler flags... " >&6; }
4436 if test "$GCC" = yes
4439 alpha
) addcflags
="-mieee" ;;
4442 if test "x$addcflags" != x
4444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $addcflags" >&5
4445 $as_echo "$addcflags" >&6; }
4446 CFLAGS
="$addcflags $CFLAGS"
4448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (none)" >&5
4449 $as_echo "(none)" >&6; }
4452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4453 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4454 if ${ac_cv_path_GREP+:} false
; then :
4455 $as_echo_n "(cached) " >&6
4457 if test -z "$GREP"; then
4458 ac_path_GREP_found
=false
4459 # Loop through the user's path and test for each of PROGNAME-LIST
4460 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4461 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4464 test -z "$as_dir" && as_dir
=.
4465 for ac_prog
in grep ggrep
; do
4466 for ac_exec_ext
in '' $ac_executable_extensions; do
4467 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4468 as_fn_executable_p
"$ac_path_GREP" ||
continue
4469 # Check for GNU ac_path_GREP and select it if it is found.
4470 # Check for GNU $ac_path_GREP
4471 case `"$ac_path_GREP" --version 2>&1` in
4473 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4476 $as_echo_n 0123456789 >"conftest.in"
4479 cat "conftest.in" "conftest.in" >"conftest.tmp"
4480 mv "conftest.tmp" "conftest.in"
4481 cp "conftest.in" "conftest.nl"
4482 $as_echo 'GREP' >> "conftest.nl"
4483 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4484 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4485 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4486 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4487 # Best one so far, save it but keep looking for a better one
4488 ac_cv_path_GREP
="$ac_path_GREP"
4489 ac_path_GREP_max
=$ac_count
4491 # 10*(2^10) chars as input seems more than enough
4492 test $ac_count -gt 10 && break
4494 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4497 $ac_path_GREP_found && break 3
4502 if test -z "$ac_cv_path_GREP"; then
4503 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4506 ac_cv_path_GREP
=$GREP
4510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4511 $as_echo "$ac_cv_path_GREP" >&6; }
4512 GREP
="$ac_cv_path_GREP"
4515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4516 $as_echo_n "checking for egrep... " >&6; }
4517 if ${ac_cv_path_EGREP+:} false
; then :
4518 $as_echo_n "(cached) " >&6
4520 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4521 then ac_cv_path_EGREP
="$GREP -E"
4523 if test -z "$EGREP"; then
4524 ac_path_EGREP_found
=false
4525 # Loop through the user's path and test for each of PROGNAME-LIST
4526 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4527 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4530 test -z "$as_dir" && as_dir
=.
4531 for ac_prog
in egrep; do
4532 for ac_exec_ext
in '' $ac_executable_extensions; do
4533 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4534 as_fn_executable_p
"$ac_path_EGREP" ||
continue
4535 # Check for GNU ac_path_EGREP and select it if it is found.
4536 # Check for GNU $ac_path_EGREP
4537 case `"$ac_path_EGREP" --version 2>&1` in
4539 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4542 $as_echo_n 0123456789 >"conftest.in"
4545 cat "conftest.in" "conftest.in" >"conftest.tmp"
4546 mv "conftest.tmp" "conftest.in"
4547 cp "conftest.in" "conftest.nl"
4548 $as_echo 'EGREP' >> "conftest.nl"
4549 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4550 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4551 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4552 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4553 # Best one so far, save it but keep looking for a better one
4554 ac_cv_path_EGREP
="$ac_path_EGREP"
4555 ac_path_EGREP_max
=$ac_count
4557 # 10*(2^10) chars as input seems more than enough
4558 test $ac_count -gt 10 && break
4560 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4563 $ac_path_EGREP_found && break 3
4568 if test -z "$ac_cv_path_EGREP"; then
4569 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4572 ac_cv_path_EGREP
=$EGREP
4577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4578 $as_echo "$ac_cv_path_EGREP" >&6; }
4579 EGREP
="$ac_cv_path_EGREP"
4582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4583 $as_echo_n "checking for ANSI C header files... " >&6; }
4584 if ${ac_cv_header_stdc+:} false
; then :
4585 $as_echo_n "(cached) " >&6
4587 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4588 /* end confdefs.h. */
4602 if ac_fn_c_try_compile
"$LINENO"; then :
4603 ac_cv_header_stdc
=yes
4605 ac_cv_header_stdc
=no
4607 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4609 if test $ac_cv_header_stdc = yes; then
4610 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4611 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4612 /* end confdefs.h. */
4616 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4617 $EGREP "memchr" >/dev
/null
2>&1; then :
4620 ac_cv_header_stdc
=no
4626 if test $ac_cv_header_stdc = yes; then
4627 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4628 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4629 /* end confdefs.h. */
4633 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4634 $EGREP "free" >/dev
/null
2>&1; then :
4637 ac_cv_header_stdc
=no
4643 if test $ac_cv_header_stdc = yes; then
4644 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4645 if test "$cross_compiling" = yes; then :
4648 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4649 /* end confdefs.h. */
4652 #if ((' ' & 0x0FF) == 0x020)
4653 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4654 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4656 # define ISLOWER(c) \
4657 (('a' <= (c) && (c) <= 'i') \
4658 || ('j' <= (c) && (c) <= 'r') \
4659 || ('s' <= (c) && (c) <= 'z'))
4660 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4663 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4668 for (i = 0; i < 256; i++)
4669 if (XOR (islower (i), ISLOWER (i))
4670 || toupper (i) != TOUPPER (i))
4675 if ac_fn_c_try_run
"$LINENO"; then :
4678 ac_cv_header_stdc
=no
4680 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4681 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4687 $as_echo "$ac_cv_header_stdc" >&6; }
4688 if test $ac_cv_header_stdc = yes; then
4690 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4694 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4695 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4696 inttypes.h stdint.h unistd.h
4698 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4699 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4701 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
4702 cat >>confdefs.h
<<_ACEOF
4703 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4712 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4713 if test "x$ac_cv_header_minix_config_h" = xyes
; then :
4720 if test "$MINIX" = yes; then
4722 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4725 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4728 $as_echo "#define _MINIX 1" >>confdefs.h
4733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4734 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4735 if ${ac_cv_safe_to_define___extensions__+:} false
; then :
4736 $as_echo_n "(cached) " >&6
4738 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4739 /* end confdefs.h. */
4741 # define __EXTENSIONS__ 1
4742 $ac_includes_default
4751 if ac_fn_c_try_compile
"$LINENO"; then :
4752 ac_cv_safe_to_define___extensions__
=yes
4754 ac_cv_safe_to_define___extensions__
=no
4756 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4759 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4760 test $ac_cv_safe_to_define___extensions__ = yes &&
4761 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4763 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4765 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4767 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4769 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4776 # Check whether --with-root-prefix was given.
4777 if test "${with_root_prefix+set}" = set; then :
4778 withval
=$with_root_prefix; root_prefix
=$withval
4782 # Check whether --enable-maintainer-mode was given.
4783 if test "${enable_maintainer_mode+set}" = set; then :
4784 enableval
=$enable_maintainer_mode; if test "$enableval" = "no"
4787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode" >&5
4788 $as_echo "Disabling maintainer mode" >&6; }
4791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling maintainer mode" >&5
4792 $as_echo "Enabling maintainer mode" >&6; }
4797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode by default" >&5
4798 $as_echo "Disabling maintainer mode by default" >&6; }
4803 # Check whether --enable-symlink-install was given.
4804 if test "${enable_symlink_install+set}" = set; then :
4805 enableval
=$enable_symlink_install; if test "$enableval" = "no"
4807 LINK_INSTALL_FLAGS
=-f
4808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install" >&5
4809 $as_echo "Disabling symlinks for install" >&6; }
4811 LINK_INSTALL_FLAGS
=-sf
4812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for install" >&5
4813 $as_echo "Enabling symlinks for install" >&6; }
4817 LINK_INSTALL_FLAGS
=-f
4818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install by default" >&5
4819 $as_echo "Disabling symlinks for install by default" >&6; }
4824 relative_symlink_defined
=
4825 # Check whether --enable-relative-symlinks was given.
4826 if test "${enable_relative_symlinks+set}" = set; then :
4827 enableval
=$enable_relative_symlinks; if test "$enableval" = "no"
4830 relative_symlink_defined
=yes
4831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4832 $as_echo "Disabling relative symlinks for install" >&6; }
4834 SYMLINK_RELATIVE
=--relative
4835 relative_symlink_defined
=yes
4836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
4837 $as_echo "Enabling relative symlinks for install" >&6; }
4841 # Check whether --enable-symlink-relative-symlinks was given.
4842 if test "${enable_symlink_relative_symlinks+set}" = set; then :
4843 enableval
=$enable_symlink_relative_symlinks; if test "$enableval" = "no"
4845 SYMLINK_RELATIVE
=yes
4846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4847 $as_echo "Disabling relative symlinks for install" >&6; }
4849 SYMLINK_RELATIVE
=--relative
4850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
4851 $as_echo "Enabling relative symlinks for install" >&6; }
4855 if test -z "$relative_symlink_defined"
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install by default" >&5
4859 $as_echo "Disabling relative symlinks for install by default" >&6; }
4865 # Check whether --enable-symlink-build was given.
4866 if test "${enable_symlink_build+set}" = set; then :
4867 enableval
=$enable_symlink_build; if test "$enableval" = "no"
4870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build" >&5
4871 $as_echo "Disabling symlinks for build" >&6; }
4874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for build" >&5
4875 $as_echo "Enabling symlinks for build" >&6; }
4880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build by default" >&5
4881 $as_echo "Disabling symlinks for build by default" >&6; }
4886 # Check whether --enable-verbose-makecmds was given.
4887 if test "${enable_verbose_makecmds+set}" = set; then :
4888 enableval
=$enable_verbose_makecmds; if test "$enableval" = "no"
4890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
4891 $as_echo "Disabling verbose make commands" >&6; }
4896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling verbose make commands" >&5
4897 $as_echo "Enabling verbose make commands" >&6; }
4904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
4905 $as_echo "Disabling verbose make commands" >&6; }
4915 E2_PKG_CONFIG_STATIC
=--static
4918 # Check whether --enable-elf-shlibs was given.
4919 if test "${enable_elf_shlibs+set}" = set; then :
4920 enableval
=$enable_elf_shlibs; if test "$enableval" = "no"
4923 MAKEFILE_ELF
=/dev
/null
4924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries" >&5
4925 $as_echo "Disabling ELF shared libraries" >&6; }
4927 E2_PKG_CONFIG_STATIC
=
4929 MAKEFILE_ELF
=$srcdir/lib
/Makefile.elf-lib
4932 MAKEFILE_ELF
=$srcdir/lib
/Makefile.solaris-lib
4938 LDFLAG_DYNAMIC
='-Wl,-rpath-link,$(top_builddir)/lib'
4939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling ELF shared libraries" >&5
4940 $as_echo "Enabling ELF shared libraries" >&6; }
4944 MAKEFILE_ELF
=/dev
/null
4946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries by default" >&5
4947 $as_echo "Disabling ELF shared libraries by default" >&6; }
4953 # Check whether --enable-bsd-shlibs was given.
4954 if test "${enable_bsd_shlibs+set}" = set; then :
4955 enableval
=$enable_bsd_shlibs; if test "$enableval" = "no"
4958 MAKEFILE_BSDLIB
=/dev
/null
4959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries" >&5
4960 $as_echo "Disabling BSD shared libraries" >&6; }
4962 E2_PKG_CONFIG_STATIC
=
4964 MAKEFILE_BSDLIB
=$srcdir/lib
/Makefile.bsd-lib
4968 MAKEFILE_BSDLIB
=$srcdir/lib
/Makefile.darwin-lib
4972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling BSD shared libraries" >&5
4973 $as_echo "Enabling BSD shared libraries" >&6; }
4977 MAKEFILE_BSDLIB
=/dev
/null
4979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries by default" >&5
4980 $as_echo "Disabling BSD shared libraries by default" >&6; }
4986 # Check whether --enable-profile was given.
4987 if test "${enable_profile+set}" = set; then :
4988 enableval
=$enable_profile; if test "$enableval" = "no"
4991 MAKEFILE_PROFILE
=/dev
/null
4992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries" >&5
4993 $as_echo "Disabling profiling libraries" >&6; }
4996 MAKEFILE_PROFILE
=$srcdir/lib
/Makefile.profile
4997 PROFILED_LIB_EXT
=_p.a
4998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building profiling libraries" >&5
4999 $as_echo "Building profiling libraries" >&6; }
5004 MAKEFILE_PROFILE
=/dev
/null
5005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries by default" >&5
5006 $as_echo "Disabling profiling libraries by default" >&6; }
5012 # Check whether --enable-gcov was given.
5013 if test "${enable_gcov+set}" = set; then :
5014 enableval
=$enable_gcov; if test "$enableval" = "yes"
5016 CFLAGS
="-g -fprofile-arcs -ftest-coverage"
5017 LDFLAGS
="-fprofile-arcs -ftest-coverage"
5018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling gcov support" >&5
5019 $as_echo "Enabling gcov support" >&6; }
5024 CFLAGS_SHLIB
="${CFLAGS_SHLIB:-$CFLAGS}"
5025 CFLAGS_STLIB
="${CFLAGS_STLIB:-$CFLAGS}"
5026 LDFLAGS_SHLIB
=${LDFLAGS_SHLIB:-$LDFLAGS}
5027 LDFLAGS_STATIC
=${LDFLAGS_STATIC:-$LDFLAGS}
5028 # Check whether --enable-hardening was given.
5029 if test "${enable_hardening+set}" = set; then :
5030 enableval
=$enable_hardening; if test "$enableval" = "yes"
5032 HARDEN_CFLAGS
="-D_FORTIFY_SOURCE=2 -fstack-protector-strong"
5033 HARDEN_LDFLAGS
="-Wl,-z,relro -Wl,-z,now"
5034 CFLAGS
="$CFLAGS $HARDEN_CFLAGS -fPIE"
5035 CFLAGS_SHLIB
="$CFLAGS_SHLIB $HARDEN_CFLAGS"
5036 CFLAGS_STLIB
="$CFLAGS_STLIB $HARDEN_CFLAGS -fPIE"
5037 LDFLAGS
="$LDFLAGS $HARDEN_LDFLAGS -fPIE -pie"
5038 LDFLAGS_STATIC
="$LDFLAGS_STATIC $HARDEN_LDFLAGS"
5039 LDFLAGS_SHLIB
="$LDFLAGS_SHLIB $HARDEN_LDFLAGS"
5040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling hardening support" >&5
5041 $as_echo "Enabling hardening support" >&6; }
5051 # Check whether --enable-jbd-debug was given.
5052 if test "${enable_jbd_debug+set}" = set; then :
5053 enableval
=$enable_jbd_debug; if test "$enableval" = "no"
5055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging" >&5
5056 $as_echo "Disabling journal debugging" >&6; }
5059 $as_echo "#define CONFIG_JBD_DEBUG 1" >>confdefs.h
5061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling journal debugging" >&5
5062 $as_echo "Enabling journal debugging" >&6; }
5066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging by default" >&5
5067 $as_echo "Disabling journal debugging by default" >&6; }
5071 # Check whether --enable-blkid-debug was given.
5072 if test "${enable_blkid_debug+set}" = set; then :
5073 enableval
=$enable_blkid_debug; if test "$enableval" = "no"
5075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging" >&5
5076 $as_echo "Disabling blkid debugging" >&6; }
5079 $as_echo "#define CONFIG_BLKID_DEBUG 1" >>confdefs.h
5081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling blkid debugging" >&5
5082 $as_echo "Enabling blkid debugging" >&6; }
5086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging by default" >&5
5087 $as_echo "Disabling blkid debugging by default" >&6; }
5091 # Check whether --enable-testio-debug was given.
5092 if test "${enable_testio_debug+set}" = set; then :
5093 enableval
=$enable_testio_debug;
5094 if test "$enableval" = "no"
5096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling testio debugging" >&5
5097 $as_echo "Disabling testio debugging" >&6; }
5101 $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
5103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging" >&5
5104 $as_echo "Enabling testio debugging" >&6; }
5108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging by default" >&5
5109 $as_echo "Enabling testio debugging by default" >&6; }
5110 $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
5124 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5125 if test -n "$ac_tool_prefix"; then
5126 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5127 set dummy
${ac_tool_prefix}pkg-config
; ac_word
=$2
5128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5129 $as_echo_n "checking for $ac_word... " >&6; }
5130 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
5131 $as_echo_n "(cached) " >&6
5135 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
5138 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5142 test -z "$as_dir" && as_dir
=.
5143 for ac_exec_ext
in '' $ac_executable_extensions; do
5144 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5145 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
5146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5156 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
5157 if test -n "$PKG_CONFIG"; then
5158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5159 $as_echo "$PKG_CONFIG" >&6; }
5161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5162 $as_echo "no" >&6; }
5167 if test -z "$ac_cv_path_PKG_CONFIG"; then
5168 ac_pt_PKG_CONFIG
=$PKG_CONFIG
5169 # Extract the first word of "pkg-config", so it can be a program name with args.
5170 set dummy pkg-config
; ac_word
=$2
5171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5172 $as_echo_n "checking for $ac_word... " >&6; }
5173 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false
; then :
5174 $as_echo_n "(cached) " >&6
5176 case $ac_pt_PKG_CONFIG in
5178 ac_cv_path_ac_pt_PKG_CONFIG
="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5181 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5185 test -z "$as_dir" && as_dir
=.
5186 for ac_exec_ext
in '' $ac_executable_extensions; do
5187 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5188 ac_cv_path_ac_pt_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
5189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5199 ac_pt_PKG_CONFIG
=$ac_cv_path_ac_pt_PKG_CONFIG
5200 if test -n "$ac_pt_PKG_CONFIG"; then
5201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5202 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5205 $as_echo "no" >&6; }
5208 if test "x$ac_pt_PKG_CONFIG" = x
; then
5211 case $cross_compiling:$ac_tool_warned in
5213 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5214 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5215 ac_tool_warned
=yes ;;
5217 PKG_CONFIG
=$ac_pt_PKG_CONFIG
5220 PKG_CONFIG
="$ac_cv_path_PKG_CONFIG"
5224 if test -n "$PKG_CONFIG"; then
5225 _pkg_min_version
=0.9.0
5226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5227 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5228 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5230 $as_echo "yes" >&6; }
5232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5233 $as_echo "no" >&6; }
5242 DEPPROFILED_LIBUUID
=
5244 # Check whether --enable-libuuid was given.
5245 if test "${enable_libuuid+set}" = set; then :
5246 enableval
=$enable_libuuid; if test "$enableval" = "no"
5248 if test -z "$PKG_CONFIG"; then
5249 as_fn_error $?
"pkg-config not installed; please install it." "$LINENO" 5
5252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
5253 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
5254 if ${ac_cv_lib_uuid_uuid_generate+:} false
; then :
5255 $as_echo_n "(cached) " >&6
5257 ac_check_lib_save_LIBS
=$LIBS
5259 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5260 /* end confdefs.h. */
5262 /* Override any GCC internal prototype to avoid an error.
5263 Use char because int might match the return type of a GCC
5264 builtin and then its argument prototype would still apply. */
5268 char uuid_generate ();
5272 return uuid_generate ();
5277 if ac_fn_c_try_link
"$LINENO"; then :
5278 ac_cv_lib_uuid_uuid_generate
=yes
5280 ac_cv_lib_uuid_uuid_generate
=no
5282 rm -f core conftest.err conftest.
$ac_objext \
5283 conftest
$ac_exeext conftest.
$ac_ext
5284 LIBS
=$ac_check_lib_save_LIBS
5286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
5287 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
5288 if test "x$ac_cv_lib_uuid_uuid_generate" = xyes
; then :
5289 LIBUUID
=`$PKG_CONFIG --libs uuid`;
5290 STATIC_LIBUUID
=`$PKG_CONFIG --static --libs uuid`
5292 as_fn_error $?
"external uuid library not found" "$LINENO" 5
5295 PROFILED_LIBUUID
=$LIBUUID
5297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private uuid library" >&5
5298 $as_echo "Disabling private uuid library" >&6; }
5300 LIBUUID
='$(LIB)/libuuid'$LIB_EXT
5302 STATIC_LIBUUID
='$(LIB)/libuuid'$STATIC_LIB_EXT
5303 DEPSTATIC_LIBUUID
=$STATIC_LIBUUID
5304 PROFILED_LIBUUID
='$(LIB)/libuuid'$PROFILED_LIB_EXT
5305 DEPPROFILED_LIBUUID
=$PROFILED_LIBUUID
5306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library" >&5
5307 $as_echo "Enabling private uuid library" >&6; }
5311 if test -n "$PKG_CONFIG"; then
5312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
5313 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
5314 if ${ac_cv_lib_uuid_uuid_generate+:} false
; then :
5315 $as_echo_n "(cached) " >&6
5317 ac_check_lib_save_LIBS
=$LIBS
5319 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5320 /* end confdefs.h. */
5322 /* Override any GCC internal prototype to avoid an error.
5323 Use char because int might match the return type of a GCC
5324 builtin and then its argument prototype would still apply. */
5328 char uuid_generate ();
5332 return uuid_generate ();
5337 if ac_fn_c_try_link
"$LINENO"; then :
5338 ac_cv_lib_uuid_uuid_generate
=yes
5340 ac_cv_lib_uuid_uuid_generate
=no
5342 rm -f core conftest.err conftest.
$ac_objext \
5343 conftest
$ac_exeext conftest.
$ac_ext
5344 LIBS
=$ac_check_lib_save_LIBS
5346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
5347 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
5348 if test "x$ac_cv_lib_uuid_uuid_generate" = xyes
; then :
5349 LIBUUID
=`$PKG_CONFIG --libs uuid`;
5350 STATIC_LIBUUID
=`$PKG_CONFIG --static --libs uuid`
5354 if test -n "$LIBUUID"; then
5355 PROFILED_LIBUUID
=$LIBUUID
5357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using system uuid by default" >&5
5358 $as_echo "Using system uuid by default" >&6; }
5360 LIBUUID
='$(LIB)/libuuid'$LIB_EXT
5362 STATIC_LIBUUID
='$(LIB)/libuuid'$STATIC_LIB_EXT
5363 DEPSTATIC_LIBUUID
=$STATIC_LIBUUID
5364 PROFILED_LIBUUID
='$(LIB)/libuuid'$PROFILED_LIB_EXT
5365 DEPPROFILED_LIBUUID
=$PROFILED_LIBUUID
5366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library by default" >&5
5367 $as_echo "Enabling private uuid library by default" >&6; }
5386 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5387 if test -n "$ac_tool_prefix"; then
5388 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5389 set dummy
${ac_tool_prefix}pkg-config
; ac_word
=$2
5390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5391 $as_echo_n "checking for $ac_word... " >&6; }
5392 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
5393 $as_echo_n "(cached) " >&6
5397 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
5400 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5404 test -z "$as_dir" && as_dir
=.
5405 for ac_exec_ext
in '' $ac_executable_extensions; do
5406 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5407 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
5408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5418 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
5419 if test -n "$PKG_CONFIG"; then
5420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5421 $as_echo "$PKG_CONFIG" >&6; }
5423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5424 $as_echo "no" >&6; }
5429 if test -z "$ac_cv_path_PKG_CONFIG"; then
5430 ac_pt_PKG_CONFIG
=$PKG_CONFIG
5431 # Extract the first word of "pkg-config", so it can be a program name with args.
5432 set dummy pkg-config
; ac_word
=$2
5433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5434 $as_echo_n "checking for $ac_word... " >&6; }
5435 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false
; then :
5436 $as_echo_n "(cached) " >&6
5438 case $ac_pt_PKG_CONFIG in
5440 ac_cv_path_ac_pt_PKG_CONFIG
="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5443 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5447 test -z "$as_dir" && as_dir
=.
5448 for ac_exec_ext
in '' $ac_executable_extensions; do
5449 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5450 ac_cv_path_ac_pt_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
5451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5461 ac_pt_PKG_CONFIG
=$ac_cv_path_ac_pt_PKG_CONFIG
5462 if test -n "$ac_pt_PKG_CONFIG"; then
5463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5464 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5467 $as_echo "no" >&6; }
5470 if test "x$ac_pt_PKG_CONFIG" = x
; then
5473 case $cross_compiling:$ac_tool_warned in
5475 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5476 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5477 ac_tool_warned
=yes ;;
5479 PKG_CONFIG
=$ac_pt_PKG_CONFIG
5482 PKG_CONFIG
="$ac_cv_path_PKG_CONFIG"
5486 if test -n "$PKG_CONFIG"; then
5487 _pkg_min_version
=0.9.0
5488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5489 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5490 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5492 $as_echo "yes" >&6; }
5494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5495 $as_echo "no" >&6; }
5504 DEPPROFILED_LIBBLKID
=
5507 # Check whether --enable-libblkid was given.
5508 if test "${enable_libblkid+set}" = set; then :
5509 enableval
=$enable_libblkid; if test "$enableval" = "no"
5511 if test -z "$PKG_CONFIG"; then
5512 as_fn_error $?
"pkg-config not installed; please install it." "$LINENO" 5
5515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
5516 $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
5517 if ${ac_cv_lib_blkid_blkid_get_cache+:} false
; then :
5518 $as_echo_n "(cached) " >&6
5520 ac_check_lib_save_LIBS
=$LIBS
5521 LIBS
="-lblkid -luuid $LIBS"
5522 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5523 /* end confdefs.h. */
5525 /* Override any GCC internal prototype to avoid an error.
5526 Use char because int might match the return type of a GCC
5527 builtin and then its argument prototype would still apply. */
5531 char blkid_get_cache ();
5535 return blkid_get_cache ();
5540 if ac_fn_c_try_link
"$LINENO"; then :
5541 ac_cv_lib_blkid_blkid_get_cache
=yes
5543 ac_cv_lib_blkid_blkid_get_cache
=no
5545 rm -f core conftest.err conftest.
$ac_objext \
5546 conftest
$ac_exeext conftest.
$ac_ext
5547 LIBS
=$ac_check_lib_save_LIBS
5549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
5550 $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
5551 if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes
; then :
5552 LIBBLKID
=`$PKG_CONFIG --libs blkid`;
5553 STATIC_LIBBLKID
=`$PKG_CONFIG --static --libs blkid`
5555 as_fn_error $?
"external blkid library not found" "$LINENO" 5
5559 PROFILED_LIBBLKID
=$LIBBLKID
5560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private blkid library" >&5
5561 $as_echo "Disabling private blkid library" >&6; }
5563 LIBBLKID
='$(LIB)/libblkid'$LIB_EXT
5564 DEPLIBBLKID
=$LIBBLKID
5565 STATIC_LIBBLKID
='$(LIB)/libblkid'$STATIC_LIB_EXT
5566 DEPSTATIC_LIBBLKID
=$STATIC_LIBBLKID
5567 PROFILED_LIBBLKID
='$(LIB)/libblkid'$PROFILED_LIB_EXT
5568 DEPPROFILED_LIBBLKID
=$PROFILED_LIBBLKID
5569 $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
5571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library" >&5
5572 $as_echo "Enabling private blkid library" >&6; }
5576 if test -n "$PKG_CONFIG"; then
5577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
5578 $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
5579 if ${ac_cv_lib_blkid_blkid_get_cache+:} false
; then :
5580 $as_echo_n "(cached) " >&6
5582 ac_check_lib_save_LIBS
=$LIBS
5583 LIBS
="-lblkid $LIBS"
5584 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5585 /* end confdefs.h. */
5587 /* Override any GCC internal prototype to avoid an error.
5588 Use char because int might match the return type of a GCC
5589 builtin and then its argument prototype would still apply. */
5593 char blkid_get_cache ();
5597 return blkid_get_cache ();
5602 if ac_fn_c_try_link
"$LINENO"; then :
5603 ac_cv_lib_blkid_blkid_get_cache
=yes
5605 ac_cv_lib_blkid_blkid_get_cache
=no
5607 rm -f core conftest.err conftest.
$ac_objext \
5608 conftest
$ac_exeext conftest.
$ac_ext
5609 LIBS
=$ac_check_lib_save_LIBS
5611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
5612 $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
5613 if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes
; then :
5614 LIBBLKID
=`$PKG_CONFIG --libs blkid`;
5615 STATIC_LIBBLKID
=`$PKG_CONFIG --static --libs blkid`
5619 if test -n "$LIBBLKID"; then
5621 PROFILED_LIBBLKID
=$LIBBLKID
5622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using system blkid library by default" >&5
5623 $as_echo "Using system blkid library by default" >&6; }
5625 LIBBLKID
='$(LIB)/libblkid'$LIB_EXT
5626 DEPLIBBLKID
=$LIBBLKID
5627 STATIC_LIBBLKID
='$(LIB)/libblkid'$STATIC_LIB_EXT
5628 DEPSTATIC_LIBBLKID
=$STATIC_LIBBLKID
5629 PROFILED_LIBBLKID
='$(LIB)/libblkid'$PROFILED_LIB_EXT
5630 DEPPROFILED_LIBBLKID
=$PROFILED_LIBBLKID
5631 $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
5633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library by default" >&5
5634 $as_echo "Enabling private blkid library by default" >&6; }
5647 # Check whether --enable-subset was given.
5648 if test "${enable_subset+set}" = set; then :
5649 enableval
=$enable_subset; if test "$enableval" = "no"
5651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling subset-only build" >&5
5652 $as_echo "Disabling subset-only build" >&6; }
5655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling subset-only-build" >&5
5656 $as_echo "Enabling subset-only-build" >&6; }
5663 # Check whether --enable-backtrace was given.
5664 if test "${enable_backtrace+set}" = set; then :
5665 enableval
=$enable_backtrace; if test "$enableval" = "no"
5667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling use of backtrace" >&5
5668 $as_echo "Disabling use of backtrace" >&6; }
5669 $as_echo "#define DISABLE_BACKTRACE 1" >>confdefs.h
5672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace" >&5
5673 $as_echo "Enabling use of backtrace" >&6; }
5677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace by default" >&5
5678 $as_echo "Enabling use of backtrace by default" >&6; }
5682 # Check whether --enable-debugfs was given.
5683 if test "${enable_debugfs+set}" = set; then :
5684 enableval
=$enable_debugfs; if test "$enableval" = "no"
5686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling debugfs support" >&5
5687 $as_echo "Disabling debugfs support" >&6; }
5691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support" >&5
5692 $as_echo "Enabling debugfs support" >&6; }
5696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support by default" >&5
5697 $as_echo "Enabling debugfs support by default" >&6; }
5703 # Check whether --enable-imager was given.
5704 if test "${enable_imager+set}" = set; then :
5705 enableval
=$enable_imager; if test "$enableval" = "no"
5707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2image support" >&5
5708 $as_echo "Disabling e2image support" >&6; }
5712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support" >&5
5713 $as_echo "Enabling e2image support" >&6; }
5717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support by default" >&5
5718 $as_echo "Enabling e2image support by default" >&6; }
5724 # Check whether --enable-resizer was given.
5725 if test "${enable_resizer+set}" = set; then :
5726 enableval
=$enable_resizer; if test "$enableval" = "no"
5728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2resize support" >&5
5729 $as_echo "Disabling e2resize support" >&6; }
5733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support" >&5
5734 $as_echo "Enabling e2resize support" >&6; }
5738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support by default" >&5
5739 $as_echo "Enabling e2resize support by default" >&6; }
5745 # Check whether --enable-defrag was given.
5746 if test "${enable_defrag+set}" = set; then :
5747 enableval
=$enable_defrag; if test "$enableval" = "no"
5749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support" >&5
5750 $as_echo "Disabling e4defrag support" >&6; }
5754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support" >&5
5755 $as_echo "Enabling e4defrag support" >&6; }
5759 if test -z "$WITH_DIET_LIBC"
5761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support by default" >&5
5762 $as_echo "Enabling e4defrag support by default" >&6; }
5765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support by default" >&5
5766 $as_echo "Disabling e4defrag support by default" >&6; }
5773 # Check whether --enable-fsck was given.
5774 if test "${enable_fsck+set}" = set; then :
5775 enableval
=$enable_fsck; if test "$enableval" = "no"
5777 FSCK_PROG
='' FSCK_MAN
=''
5778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper" >&5
5779 $as_echo "Not building fsck wrapper" >&6; }
5781 FSCK_PROG
=fsck FSCK_MAN
=fsck
.8
5782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper" >&5
5783 $as_echo "Building fsck wrapper" >&6; }
5789 FSCK_PROG
='' FSCK_MAN
=''
5790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper by default" >&5
5791 $as_echo "Not building fsck wrapper by default" >&6; }
5794 FSCK_PROG
=fsck FSCK_MAN
=fsck
.8
5795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper by default" >&5
5796 $as_echo "Building fsck wrapper by default" >&6; }
5803 # Check whether --enable-e2initrd-helper was given.
5804 if test "${enable_e2initrd_helper+set}" = set; then :
5805 enableval
=$enable_e2initrd_helper; if test "$enableval" = "no"
5807 E2INITRD_PROG
='' E2INITRD_MAN
=''
5808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building e2initrd helper" >&5
5809 $as_echo "Not building e2initrd helper" >&6; }
5811 E2INITRD_PROG
=e2initrd_helper E2INITRD_MAN
=e2initrd_helper
.8
5812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper" >&5
5813 $as_echo "Building e2initrd helper" >&6; }
5817 E2INITRD_PROG
=e2initrd_helper E2INITRD_MAN
=e2initrd_helper
.8
5818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper by default" >&5
5819 $as_echo "Building e2initrd helper by default" >&6; }
5825 # Check whether --enable-tls was given.
5826 if test "${enable_tls+set}" = set; then :
5827 enableval
=$enable_tls; if test "$enableval" = "no"
5830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling thread local support" >&5
5831 $as_echo "Disabling thread local support" >&6; }
5834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling thread local support" >&5
5835 $as_echo "Enabling thread local support" >&6; }
5839 if test -n "$WITH_DIET_LIBC"
5842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Diet libc does not support thread local support" >&5
5843 $as_echo "Diet libc does not support thread local support" >&6; }
5846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Try using thread local support by default" >&5
5847 $as_echo "Try using thread local support by default" >&6; }
5852 if test "$try_tls" = "yes"
5855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread local storage (TLS) class" >&5
5856 $as_echo_n "checking for thread local storage (TLS) class... " >&6; }
5857 if ${ac_cv_tls+:} false
; then :
5858 $as_echo_n "(cached) " >&6
5861 ax_tls_keywords
="__thread __declspec(thread) none"
5862 for ax_tls_keyword
in $ax_tls_keywords; do
5863 case $ax_tls_keyword in
5864 none
) ac_cv_tls
=none
; break ;;
5866 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5867 /* end confdefs.h. */
5871 static $ax_tls_keyword int bar;
5882 if ac_fn_c_try_compile
"$LINENO"; then :
5883 ac_cv_tls
=$ax_tls_keyword ; break
5888 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5895 if test "$ac_cv_tls" != "none"; then
5897 cat >>confdefs.h
<<_ACEOF
5898 #define TLS $ac_cv_tls
5902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tls" >&5
5903 $as_echo "$ac_cv_tls" >&6; }
5907 # Check whether --enable-uuidd was given.
5908 if test "${enable_uuidd+set}" = set; then :
5909 enableval
=$enable_uuidd; if test "$enableval" = "no"
5911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building uuidd" >&5
5912 $as_echo "Not building uuidd" >&6; }
5915 $as_echo "#define USE_UUIDD 1" >>confdefs.h
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd" >&5
5919 $as_echo "Building uuidd" >&6; }
5923 $as_echo "#define USE_UUIDD 1" >>confdefs.h
5925 if test -z "$UUID_CMT"
5928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd by default" >&5
5929 $as_echo "Building uuidd by default" >&6; }
5932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling uuidd by default" >&5
5933 $as_echo "Disabling uuidd by default" >&6; }
5940 # Check whether --enable-mmp was given.
5941 if test "${enable_mmp+set}" = set; then :
5942 enableval
=$enable_mmp; if test "$enableval" = "no"
5944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling mmp support" >&5
5945 $as_echo "Disabling mmp support" >&6; }
5947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support" >&5
5948 $as_echo "Enabling mmp support" >&6; }
5949 $as_echo "#define CONFIG_MMP 1" >>confdefs.h
5954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support by default" >&5
5955 $as_echo "Enabling mmp support by default" >&6; }
5956 $as_echo "#define CONFIG_MMP 1" >>confdefs.h
5962 # Check whether --enable-tdb was given.
5963 if test "${enable_tdb+set}" = set; then :
5964 enableval
=$enable_tdb; if test "$enableval" = "no"
5966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling tdb support" >&5
5967 $as_echo "Disabling tdb support" >&6; }
5969 TDB_MAN_COMMENT
='.\"'
5971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling tdb support" >&5
5972 $as_echo "Enabling tdb support" >&6; }
5973 $as_echo "#define CONFIG_TDB 1" >>confdefs.h
5980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support by default" >&5
5981 $as_echo "Enabling mmp support by default" >&6; }
5982 $as_echo "#define CONFIG_TDB 1" >>confdefs.h
5992 # Check whether --enable-bmap-stats was given.
5993 if test "${enable_bmap_stats+set}" = set; then :
5994 enableval
=$enable_bmap_stats; if test "$enableval" = "no"
5996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling bitmap statistics support" >&5
5997 $as_echo "Disabling bitmap statistics support" >&6; }
5999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling bitmap statistics support" >&5
6000 $as_echo "Enabling bitmap statistics support" >&6; }
6001 $as_echo "#define ENABLE_BMAP_STATS 1" >>confdefs.h
6006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling bitmap statistics support by default" >&5
6007 $as_echo "Enabling bitmap statistics support by default" >&6; }
6008 $as_echo "#define ENABLE_BMAP_STATS 1" >>confdefs.h
6014 # Check whether --enable-bmap-stats-ops was given.
6015 if test "${enable_bmap_stats_ops+set}" = set; then :
6016 enableval
=$enable_bmap_stats_ops; if test "$enableval" = "no"
6018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling additional bitmap statistics" >&5
6019 $as_echo "Disabling additional bitmap statistics" >&6; }
6021 if test "x${enable_bmap_stats}" = "xno"; then :
6022 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6023 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6024 as_fn_error $?
"Error --enable-bmap-stats-ops requires bmap-stats
6025 See \`config.log' for more details" "$LINENO" 5; }
6028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling additional bitmap statistics" >&5
6029 $as_echo "Enabling additional bitmap statistics" >&6; }
6030 $as_echo "#define ENABLE_BMAP_STATS_OPS 1" >>confdefs.h
6035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling additional bitmap statistics by default" >&5
6036 $as_echo "Disabling additional bitmap statistics by default" >&6; }
6040 MAKEFILE_LIBRARY
=$srcdir/lib
/Makefile.library
6042 GETTEXT_PACKAGE
=e2fsprogs
6044 VERSION
="$E2FSPROGS_VERSION"
6047 cat >>confdefs.h
<<_ACEOF
6048 #define PACKAGE "$PACKAGE"
6052 cat >>confdefs.h
<<_ACEOF
6053 #define VERSION "$VERSION"
6060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6061 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6063 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6064 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
6065 $as_echo_n "(cached) " >&6
6067 cat >conftest.
make <<\_ACEOF
6070 @
echo '@@@%%%=$(MAKE)=@@@%%%'
6072 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
6073 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6075 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
6077 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
6081 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
6082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6083 $as_echo "yes" >&6; }
6086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6087 $as_echo "no" >&6; }
6088 SET_MAKE
="MAKE=${MAKE-make}"
6091 # Find a good install program. We prefer a C program (faster),
6092 # so one script is as good as another. But avoid the broken or
6093 # incompatible versions:
6094 # SysV /etc/install, /usr/sbin/install
6095 # SunOS /usr/etc/install
6096 # IRIX /sbin/install
6098 # AmigaOS /C/install, which installs bootblocks on floppy discs
6099 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6100 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6101 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6102 # OS/2's system install, which has a completely different semantic
6103 # ./install, which can be erroneously created by make from ./install.sh.
6104 # Reject install programs that cannot install multiple files.
6105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
6106 $as_echo_n "checking for a BSD-compatible install... " >&6; }
6107 if test -z "$INSTALL"; then
6108 if ${ac_cv_path_install+:} false
; then :
6109 $as_echo_n "(cached) " >&6
6111 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6115 test -z "$as_dir" && as_dir
=.
6116 # Account for people who put trailing slashes in PATH elements.
6117 case $as_dir/ in #((
6118 .
/ | .
// |
/[cC
]/* | \
6119 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
6120 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
6123 # OSF1 and SCO ODT 3.0 have their own names for install.
6124 # Don't use installbsd from OSF since it installs stuff as root
6126 for ac_prog
in ginstall scoinst
install; do
6127 for ac_exec_ext
in '' $ac_executable_extensions; do
6128 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
6129 if test $ac_prog = install &&
6130 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
6131 # AIX install. It has an incompatible calling convention.
6133 elif test $ac_prog = install &&
6134 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
6135 # program-specific install script used by HP pwplus--don't use.
6138 rm -rf conftest.one conftest.two conftest.dir
6139 echo one
> conftest.one
6140 echo two
> conftest.two
6142 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
6143 test -s conftest.one
&& test -s conftest.two
&&
6144 test -s conftest.dir
/conftest.one
&&
6145 test -s conftest.dir
/conftest.two
6147 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
6160 rm -rf conftest.one conftest.two conftest.dir
6163 if test "${ac_cv_path_install+set}" = set; then
6164 INSTALL
=$ac_cv_path_install
6166 # As a last resort, use the slow shell script. Don't cache a
6167 # value for INSTALL within a source directory, because that will
6168 # break other packages using the cache if that directory is
6169 # removed, or if the value is a relative name.
6170 INSTALL
=$ac_install_sh
6173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
6174 $as_echo "$INSTALL" >&6; }
6176 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6177 # It thinks the first close brace ends the variable substitution.
6178 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
6180 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
6182 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
6184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
6185 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
6186 if test -z "$MKDIR_P"; then
6187 if ${ac_cv_path_mkdir+:} false
; then :
6188 $as_echo_n "(cached) " >&6
6190 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6191 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
6194 test -z "$as_dir" && as_dir
=.
6195 for ac_prog
in mkdir gmkdir
; do
6196 for ac_exec_ext
in '' $ac_executable_extensions; do
6197 as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext" ||
continue
6198 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
6199 'mkdir (GNU coreutils) '* | \
6200 'mkdir (coreutils) '* | \
6201 'mkdir (fileutils) '4.1*)
6202 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
6212 test -d .
/--version && rmdir .
/--version
6213 if test "${ac_cv_path_mkdir+set}" = set; then
6214 MKDIR_P
="$ac_cv_path_mkdir -p"
6216 # As a last resort, use the slow shell script. Don't cache a
6217 # value for MKDIR_P within a source directory, because that will
6218 # break other packages using the cache if that directory is
6219 # removed, or if the value is a relative name.
6220 MKDIR_P
="$ac_install_sh -d"
6223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
6224 $as_echo "$MKDIR_P" >&6; }
6226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6227 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6228 if ${ac_cv_path_SED+:} false
; then :
6229 $as_echo_n "(cached) " >&6
6231 ac_script
=s
/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
/
6232 for ac_i
in 1 2 3 4 5 6 7; do
6233 ac_script
="$ac_script$as_nl$ac_script"
6235 echo "$ac_script" 2>/dev
/null |
sed 99q
>conftest.
sed
6236 { ac_script
=; unset ac_script
;}
6237 if test -z "$SED"; then
6238 ac_path_SED_found
=false
6239 # Loop through the user's path and test for each of PROGNAME-LIST
6240 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6244 test -z "$as_dir" && as_dir
=.
6245 for ac_prog
in sed gsed
; do
6246 for ac_exec_ext
in '' $ac_executable_extensions; do
6247 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
6248 as_fn_executable_p
"$ac_path_SED" ||
continue
6249 # Check for GNU ac_path_SED and select it if it is found.
6250 # Check for GNU $ac_path_SED
6251 case `"$ac_path_SED" --version 2>&1` in
6253 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
6256 $as_echo_n 0123456789 >"conftest.in"
6259 cat "conftest.in" "conftest.in" >"conftest.tmp"
6260 mv "conftest.tmp" "conftest.in"
6261 cp "conftest.in" "conftest.nl"
6262 $as_echo '' >> "conftest.nl"
6263 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
6264 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
6265 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
6266 if test $ac_count -gt ${ac_path_SED_max-0}; then
6267 # Best one so far, save it but keep looking for a better one
6268 ac_cv_path_SED
="$ac_path_SED"
6269 ac_path_SED_max
=$ac_count
6271 # 10*(2^10) chars as input seems more than enough
6272 test $ac_count -gt 10 && break
6274 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
6277 $ac_path_SED_found && break 3
6282 if test -z "$ac_cv_path_SED"; then
6283 as_fn_error $?
"no acceptable sed could be found in \$PATH" "$LINENO" 5
6290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6291 $as_echo "$ac_cv_path_SED" >&6; }
6292 SED
="$ac_cv_path_SED"
6296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
6297 $as_echo_n "checking whether NLS is requested... " >&6; }
6298 # Check whether --enable-nls was given.
6299 if test "${enable_nls+set}" = set; then :
6300 enableval
=$enable_nls; USE_NLS
=$enableval
6305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
6306 $as_echo "$USE_NLS" >&6; }
6311 GETTEXT_MACRO_VERSION
=0.18
6316 # Prepare PATH_SEPARATOR.
6317 # The user is always right.
6318 if test "${PATH_SEPARATOR+set}" != set; then
6319 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6320 # contains only /bin. Note that ksh looks also at the FPATH variable,
6321 # so we have to set that as well for the test.
6323 (PATH
='/bin;/bin'; FPATH
=$PATH; sh
-c :) >/dev
/null
2>&1 \
6324 && { (PATH
='/bin:/bin'; FPATH
=$PATH; sh
-c :) >/dev
/null
2>&1 \
6325 || PATH_SEPARATOR
=';'
6329 # Find out how to test for executable files. Don't use a zero-byte file,
6330 # as systems may use methods other than mode bits to determine executability.
6331 cat >conf$$.
file <<_ASEOF
6335 chmod +x conf$$.
file
6336 if test -x conf$$.
file >/dev
/null
2>&1; then
6337 ac_executable_p
="test -x"
6339 ac_executable_p
="test -f"
6343 # Extract the first word of "msgfmt", so it can be a program name with args.
6344 set dummy msgfmt
; ac_word
=$2
6345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6346 $as_echo_n "checking for $ac_word... " >&6; }
6347 if ${ac_cv_path_MSGFMT+:} false
; then :
6348 $as_echo_n "(cached) " >&6
6352 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
6355 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
6356 for ac_dir
in $PATH; do
6358 test -z "$ac_dir" && ac_dir
=.
6359 for ac_exec_ext
in '' $ac_executable_extensions; do
6360 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6361 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6362 if $ac_dir/$ac_word --statistics /dev
/null
>&5 2>&1 &&
6363 (if $ac_dir/$ac_word --statistics /dev
/null
2>&1 >/dev
/null |
grep usage
>/dev
/null
; then exit 1; else exit 0; fi); then
6364 ac_cv_path_MSGFMT
="$ac_dir/$ac_word$ac_exec_ext"
6371 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
=":"
6375 MSGFMT
="$ac_cv_path_MSGFMT"
6376 if test "$MSGFMT" != ":"; then
6377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
6378 $as_echo "$MSGFMT" >&6; }
6380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6381 $as_echo "no" >&6; }
6384 # Extract the first word of "gmsgfmt", so it can be a program name with args.
6385 set dummy gmsgfmt
; ac_word
=$2
6386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6387 $as_echo_n "checking for $ac_word... " >&6; }
6388 if ${ac_cv_path_GMSGFMT+:} false
; then :
6389 $as_echo_n "(cached) " >&6
6393 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
6396 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6400 test -z "$as_dir" && as_dir
=.
6401 for ac_exec_ext
in '' $ac_executable_extensions; do
6402 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6403 ac_cv_path_GMSGFMT
="$as_dir/$ac_word$ac_exec_ext"
6404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6411 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
6415 GMSGFMT
=$ac_cv_path_GMSGFMT
6416 if test -n "$GMSGFMT"; then
6417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
6418 $as_echo "$GMSGFMT" >&6; }
6420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6421 $as_echo "no" >&6; }
6426 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6427 '' |
0.
[0-9] |
0.
[0-9].
* |
0.1[0-4] |
0.1[0-4].
*) MSGFMT_015
=: ;;
6428 *) MSGFMT_015
=$MSGFMT ;;
6431 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6432 '' |
0.
[0-9] |
0.
[0-9].
* |
0.1[0-4] |
0.1[0-4].
*) GMSGFMT_015
=: ;;
6433 *) GMSGFMT_015
=$GMSGFMT ;;
6438 # Prepare PATH_SEPARATOR.
6439 # The user is always right.
6440 if test "${PATH_SEPARATOR+set}" != set; then
6441 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6442 # contains only /bin. Note that ksh looks also at the FPATH variable,
6443 # so we have to set that as well for the test.
6445 (PATH
='/bin;/bin'; FPATH
=$PATH; sh
-c :) >/dev
/null
2>&1 \
6446 && { (PATH
='/bin:/bin'; FPATH
=$PATH; sh
-c :) >/dev
/null
2>&1 \
6447 || PATH_SEPARATOR
=';'
6451 # Find out how to test for executable files. Don't use a zero-byte file,
6452 # as systems may use methods other than mode bits to determine executability.
6453 cat >conf$$.
file <<_ASEOF
6457 chmod +x conf$$.
file
6458 if test -x conf$$.
file >/dev
/null
2>&1; then
6459 ac_executable_p
="test -x"
6461 ac_executable_p
="test -f"
6465 # Extract the first word of "xgettext", so it can be a program name with args.
6466 set dummy xgettext
; ac_word
=$2
6467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6468 $as_echo_n "checking for $ac_word... " >&6; }
6469 if ${ac_cv_path_XGETTEXT+:} false
; then :
6470 $as_echo_n "(cached) " >&6
6474 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
6477 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
6478 for ac_dir
in $PATH; do
6480 test -z "$ac_dir" && ac_dir
=.
6481 for ac_exec_ext
in '' $ac_executable_extensions; do
6482 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6483 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6484 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev
/null
>&5 2>&1 &&
6485 (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
6486 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word$ac_exec_ext"
6493 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
6497 XGETTEXT
="$ac_cv_path_XGETTEXT"
6498 if test "$XGETTEXT" != ":"; then
6499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
6500 $as_echo "$XGETTEXT" >&6; }
6502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6503 $as_echo "no" >&6; }
6508 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6509 '' |
0.
[0-9] |
0.
[0-9].
* |
0.1[0-4] |
0.1[0-4].
*) XGETTEXT_015
=: ;;
6510 *) XGETTEXT_015
=$XGETTEXT ;;
6515 # Prepare PATH_SEPARATOR.
6516 # The user is always right.
6517 if test "${PATH_SEPARATOR+set}" != set; then
6518 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6519 # contains only /bin. Note that ksh looks also at the FPATH variable,
6520 # so we have to set that as well for the test.
6522 (PATH
='/bin;/bin'; FPATH
=$PATH; sh
-c :) >/dev
/null
2>&1 \
6523 && { (PATH
='/bin:/bin'; FPATH
=$PATH; sh
-c :) >/dev
/null
2>&1 \
6524 || PATH_SEPARATOR
=';'
6528 # Find out how to test for executable files. Don't use a zero-byte file,
6529 # as systems may use methods other than mode bits to determine executability.
6530 cat >conf$$.
file <<_ASEOF
6534 chmod +x conf$$.
file
6535 if test -x conf$$.
file >/dev
/null
2>&1; then
6536 ac_executable_p
="test -x"
6538 ac_executable_p
="test -f"
6542 # Extract the first word of "msgmerge", so it can be a program name with args.
6543 set dummy msgmerge
; ac_word
=$2
6544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6545 $as_echo_n "checking for $ac_word... " >&6; }
6546 if ${ac_cv_path_MSGMERGE+:} false
; then :
6547 $as_echo_n "(cached) " >&6
6551 ac_cv_path_MSGMERGE
="$MSGMERGE" # Let the user override the test with a path.
6554 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
6555 for ac_dir
in $PATH; do
6557 test -z "$ac_dir" && ac_dir
=.
6558 for ac_exec_ext
in '' $ac_executable_extensions; do
6559 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6560 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6561 if $ac_dir/$ac_word --update -q /dev
/null
/dev
/null
>&5 2>&1; then
6562 ac_cv_path_MSGMERGE
="$ac_dir/$ac_word$ac_exec_ext"
6569 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE
=":"
6573 MSGMERGE
="$ac_cv_path_MSGMERGE"
6574 if test "$MSGMERGE" != ":"; then
6575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
6576 $as_echo "$MSGMERGE" >&6; }
6578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6579 $as_echo "no" >&6; }
6583 test -n "$localedir" || localedir
='${datadir}/locale'
6586 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS
=
6589 ac_config_commands
="$ac_config_commands po-directories"
6593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5
6594 $as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
6595 if ${ac_cv_gnu_library_2+:} false
; then :
6596 $as_echo_n "(cached) " >&6
6598 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6599 /* end confdefs.h. */
6601 #include <features.h>
6602 #ifdef __GNU_LIBRARY__
6603 #if (__GLIBC__ >= 2) && !defined __UCLIBC__
6609 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6610 $EGREP "Lucky GNU user" >/dev
/null
2>&1; then :
6611 ac_cv_gnu_library_2
=yes
6613 ac_cv_gnu_library_2
=no
6620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5
6621 $as_echo "$ac_cv_gnu_library_2" >&6; }
6623 GLIBC2
="$ac_cv_gnu_library_2"
6626 if test -n "$ac_tool_prefix"; then
6627 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6628 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
6629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6630 $as_echo_n "checking for $ac_word... " >&6; }
6631 if ${ac_cv_prog_RANLIB+:} false
; then :
6632 $as_echo_n "(cached) " >&6
6634 if test -n "$RANLIB"; then
6635 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
6637 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6641 test -z "$as_dir" && as_dir
=.
6642 for ac_exec_ext
in '' $ac_executable_extensions; do
6643 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6644 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
6645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6654 RANLIB
=$ac_cv_prog_RANLIB
6655 if test -n "$RANLIB"; then
6656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6657 $as_echo "$RANLIB" >&6; }
6659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6660 $as_echo "no" >&6; }
6665 if test -z "$ac_cv_prog_RANLIB"; then
6666 ac_ct_RANLIB
=$RANLIB
6667 # Extract the first word of "ranlib", so it can be a program name with args.
6668 set dummy ranlib
; ac_word
=$2
6669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6670 $as_echo_n "checking for $ac_word... " >&6; }
6671 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
6672 $as_echo_n "(cached) " >&6
6674 if test -n "$ac_ct_RANLIB"; then
6675 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
6677 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6681 test -z "$as_dir" && as_dir
=.
6682 for ac_exec_ext
in '' $ac_executable_extensions; do
6683 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6684 ac_cv_prog_ac_ct_RANLIB
="ranlib"
6685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6694 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
6695 if test -n "$ac_ct_RANLIB"; then
6696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6697 $as_echo "$ac_ct_RANLIB" >&6; }
6699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6700 $as_echo "no" >&6; }
6703 if test "x$ac_ct_RANLIB" = x
; then
6706 case $cross_compiling:$ac_tool_warned in
6708 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6709 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6710 ac_tool_warned
=yes ;;
6712 RANLIB
=$ac_ct_RANLIB
6715 RANLIB
="$ac_cv_prog_RANLIB"
6722 if test -n "$GCC"; then
6723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5
6724 $as_echo_n "checking whether the -Werror option is usable... " >&6; }
6725 if ${gl_cv_cc_vis_werror+:} false
; then :
6726 $as_echo_n "(cached) " >&6
6729 gl_save_CFLAGS
="$CFLAGS"
6730 CFLAGS
="$CFLAGS -Werror"
6731 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6732 /* end confdefs.h. */
6742 if ac_fn_c_try_compile
"$LINENO"; then :
6743 gl_cv_cc_vis_werror
=yes
6745 gl_cv_cc_vis_werror
=no
6747 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6748 CFLAGS
="$gl_save_CFLAGS"
6751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5
6752 $as_echo "$gl_cv_cc_vis_werror" >&6; }
6753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
6754 $as_echo_n "checking for simple visibility declarations... " >&6; }
6755 if ${gl_cv_cc_visibility+:} false
; then :
6756 $as_echo_n "(cached) " >&6
6759 gl_save_CFLAGS
="$CFLAGS"
6760 CFLAGS
="$CFLAGS -fvisibility=hidden"
6761 if test $gl_cv_cc_vis_werror = yes; then
6762 CFLAGS
="$CFLAGS -Werror"
6764 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6765 /* end confdefs.h. */
6766 extern __attribute__((__visibility__("hidden"))) int hiddenvar;
6767 extern __attribute__((__visibility__("default"))) int exportedvar;
6768 extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
6769 extern __attribute__((__visibility__("default"))) int exportedfunc (void);
6770 void dummyfunc (void) {}
6780 if ac_fn_c_try_compile
"$LINENO"; then :
6781 gl_cv_cc_visibility
=yes
6783 gl_cv_cc_visibility
=no
6785 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6786 CFLAGS
="$gl_save_CFLAGS"
6789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
6790 $as_echo "$gl_cv_cc_visibility" >&6; }
6791 if test $gl_cv_cc_visibility = yes; then
6792 CFLAG_VISIBILITY
="-fvisibility=hidden"
6799 cat >>confdefs.h
<<_ACEOF
6800 #define HAVE_VISIBILITY $HAVE_VISIBILITY
6804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
6805 $as_echo_n "checking for inline... " >&6; }
6806 if ${ac_cv_c_inline+:} false
; then :
6807 $as_echo_n "(cached) " >&6
6810 for ac_kw
in inline __inline__ __inline
; do
6811 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6812 /* end confdefs.h. */
6815 static $ac_kw foo_t static_foo () {return 0; }
6816 $ac_kw foo_t foo () {return 0; }
6820 if ac_fn_c_try_compile
"$LINENO"; then :
6821 ac_cv_c_inline
=$ac_kw
6823 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6824 test "$ac_cv_c_inline" != no
&& break
6828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
6829 $as_echo "$ac_cv_c_inline" >&6; }
6831 case $ac_cv_c_inline in
6834 case $ac_cv_c_inline in
6836 *) ac_val
=$ac_cv_c_inline;;
6838 cat >>confdefs.h
<<_ACEOF
6840 #define inline $ac_val
6846 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6847 if test "x$ac_cv_type_size_t" = xyes
; then :
6851 cat >>confdefs.h
<<_ACEOF
6852 #define size_t unsigned int
6858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
6859 $as_echo_n "checking for stdint.h... " >&6; }
6860 if ${gl_cv_header_stdint_h+:} false
; then :
6861 $as_echo_n "(cached) " >&6
6863 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6864 /* end confdefs.h. */
6865 #include <sys/types.h>
6870 uintmax_t i = (uintmax_t) -1; return !i;
6875 if ac_fn_c_try_compile
"$LINENO"; then :
6876 gl_cv_header_stdint_h
=yes
6878 gl_cv_header_stdint_h
=no
6880 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
6883 $as_echo "$gl_cv_header_stdint_h" >&6; }
6884 if test $gl_cv_header_stdint_h = yes; then
6886 cat >>confdefs.h
<<_ACEOF
6887 #define HAVE_STDINT_H_WITH_UINTMAX 1
6892 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6893 # for constant arguments. Useless!
6894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
6895 $as_echo_n "checking for working alloca.h... " >&6; }
6896 if ${ac_cv_working_alloca_h+:} false
; then :
6897 $as_echo_n "(cached) " >&6
6899 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6900 /* end confdefs.h. */
6905 char *p = (char *) alloca (2 * sizeof (int));
6911 if ac_fn_c_try_link
"$LINENO"; then :
6912 ac_cv_working_alloca_h
=yes
6914 ac_cv_working_alloca_h
=no
6916 rm -f core conftest.err conftest.
$ac_objext \
6917 conftest
$ac_exeext conftest.
$ac_ext
6919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
6920 $as_echo "$ac_cv_working_alloca_h" >&6; }
6921 if test $ac_cv_working_alloca_h = yes; then
6923 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
6927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
6928 $as_echo_n "checking for alloca... " >&6; }
6929 if ${ac_cv_func_alloca_works+:} false
; then :
6930 $as_echo_n "(cached) " >&6
6932 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6933 /* end confdefs.h. */
6935 # define alloca __builtin_alloca
6938 # include <malloc.h>
6939 # define alloca _alloca
6941 # ifdef HAVE_ALLOCA_H
6942 # include <alloca.h>
6947 # ifndef alloca /* predefined by HP cc +Olibcalls */
6948 void *alloca (size_t);
6958 char *p = (char *) alloca (1);
6964 if ac_fn_c_try_link
"$LINENO"; then :
6965 ac_cv_func_alloca_works
=yes
6967 ac_cv_func_alloca_works
=no
6969 rm -f core conftest.err conftest.
$ac_objext \
6970 conftest
$ac_exeext conftest.
$ac_ext
6972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
6973 $as_echo "$ac_cv_func_alloca_works" >&6; }
6975 if test $ac_cv_func_alloca_works = yes; then
6977 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
6980 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6981 # that cause trouble. Some versions do not even contain alloca or
6982 # contain a buggy version. If you still want to use their alloca,
6983 # use ar to extract alloca.o from them instead of compiling alloca.c.
6985 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
6987 $as_echo "#define C_ALLOCA 1" >>confdefs.h
6990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
6991 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
6992 if ${ac_cv_os_cray+:} false
; then :
6993 $as_echo_n "(cached) " >&6
6995 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6996 /* end confdefs.h. */
6997 #if defined CRAY && ! defined CRAY2
7004 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7005 $EGREP "webecray" >/dev
/null
2>&1; then :
7013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
7014 $as_echo "$ac_cv_os_cray" >&6; }
7015 if test $ac_cv_os_cray = yes; then
7016 for ac_func
in _getb67 GETB67 getb67
; do
7017 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7018 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
7019 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
7021 cat >>confdefs.h
<<_ACEOF
7022 #define CRAY_STACKSEG_END $ac_func
7031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
7032 $as_echo_n "checking stack direction for C alloca... " >&6; }
7033 if ${ac_cv_c_stack_direction+:} false
; then :
7034 $as_echo_n "(cached) " >&6
7036 if test "$cross_compiling" = yes; then :
7037 ac_cv_c_stack_direction
=0
7039 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7040 /* end confdefs.h. */
7041 $ac_includes_default
7043 find_stack_direction (int *addr, int depth)
7048 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
7049 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
7054 main (int argc, char **argv)
7056 return find_stack_direction (0, argc + !argv + 20) < 0;
7059 if ac_fn_c_try_run
"$LINENO"; then :
7060 ac_cv_c_stack_direction
=1
7062 ac_cv_c_stack_direction
=-1
7064 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7065 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
7070 $as_echo "$ac_cv_c_stack_direction" >&6; }
7071 cat >>confdefs.h
<<_ACEOF
7072 #define STACK_DIRECTION $ac_cv_c_stack_direction
7081 for ac_header
in $ac_header_list
7083 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7084 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7086 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
7087 cat >>confdefs.h
<<_ACEOF
7088 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7102 for ac_func
in getpagesize
7104 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7105 if test "x$ac_cv_func_getpagesize" = xyes
; then :
7106 cat >>confdefs.h
<<_ACEOF
7107 #define HAVE_GETPAGESIZE 1
7113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7114 $as_echo_n "checking for working mmap... " >&6; }
7115 if ${ac_cv_func_mmap_fixed_mapped+:} false
; then :
7116 $as_echo_n "(cached) " >&6
7118 if test "$cross_compiling" = yes; then :
7119 ac_cv_func_mmap_fixed_mapped
=no
7121 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7122 /* end confdefs.h. */
7123 $ac_includes_default
7124 /* malloc might have been renamed as rpl_malloc. */
7127 /* Thanks to Mike Haertel and Jim Avera for this test.
7128 Here is a matrix of mmap possibilities:
7129 mmap private not fixed
7130 mmap private fixed at somewhere currently unmapped
7131 mmap private fixed at somewhere already mapped
7132 mmap shared not fixed
7133 mmap shared fixed at somewhere currently unmapped
7134 mmap shared fixed at somewhere already mapped
7135 For private mappings, we should verify that changes cannot be read()
7136 back from the file, nor mmap's back from the file at a different
7137 address. (There have been systems where private was not correctly
7138 implemented like the infamous i386 svr4.0, and systems where the
7139 VM page cache was not coherent with the file system buffer cache
7140 like early versions of FreeBSD and possibly contemporary NetBSD.)
7141 For shared mappings, we should conversely verify that changes get
7142 propagated back to all the places they're supposed to be.
7144 Grep wants private fixed already mapped.
7145 The main things grep needs to know about mmap are:
7146 * does it exist and is it safe to write into the mmap'd area
7147 * how to use it (BSD variants) */
7150 #include <sys/mman.h>
7152 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7156 /* This mess was copied from the GNU getpagesize.h. */
7157 #ifndef HAVE_GETPAGESIZE
7158 # ifdef _SC_PAGESIZE
7159 # define getpagesize() sysconf(_SC_PAGESIZE)
7160 # else /* no _SC_PAGESIZE */
7161 # ifdef HAVE_SYS_PARAM_H
7162 # include <sys/param.h>
7163 # ifdef EXEC_PAGESIZE
7164 # define getpagesize() EXEC_PAGESIZE
7165 # else /* no EXEC_PAGESIZE */
7167 # define getpagesize() NBPG * CLSIZE
7170 # endif /* no CLSIZE */
7171 # else /* no NBPG */
7173 # define getpagesize() NBPC
7174 # else /* no NBPC */
7176 # define getpagesize() PAGESIZE
7177 # endif /* PAGESIZE */
7178 # endif /* no NBPC */
7179 # endif /* no NBPG */
7180 # endif /* no EXEC_PAGESIZE */
7181 # else /* no HAVE_SYS_PARAM_H */
7182 # define getpagesize() 8192 /* punt totally */
7183 # endif /* no HAVE_SYS_PARAM_H */
7184 # endif /* no _SC_PAGESIZE */
7186 #endif /* no HAVE_GETPAGESIZE */
7191 char *data, *data2, *data3;
7196 pagesize = getpagesize ();
7198 /* First, make a file with some known garbage in it. */
7199 data = (char *) malloc (pagesize);
7202 for (i = 0; i < pagesize; ++i)
7203 *(data + i) = rand ();
7205 fd = creat ("conftest.mmap", 0600);
7208 if (write (fd, data, pagesize) != pagesize)
7212 /* Next, check that the tail of a page is zero-filled. File must have
7213 non-zero length, otherwise we risk SIGBUS for entire page. */
7214 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7218 if (write (fd2, cdata2, 1) != 1)
7220 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7221 if (data2 == MAP_FAILED)
7223 for (i = 0; i < pagesize; ++i)
7227 if (munmap (data2, pagesize))
7230 /* Next, try to mmap the file at a fixed address which already has
7231 something else allocated at it. If we can, also make sure that
7232 we see the same garbage. */
7233 fd = open ("conftest.mmap", O_RDWR);
7236 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7237 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7239 for (i = 0; i < pagesize; ++i)
7240 if (*(data + i) != *(data2 + i))
7243 /* Finally, make sure that changes to the mapped area do not
7244 percolate back to the file as seen by read(). (This is a bug on
7245 some variants of i386 svr4.0.) */
7246 for (i = 0; i < pagesize; ++i)
7247 *(data2 + i) = *(data2 + i) + 1;
7248 data3 = (char *) malloc (pagesize);
7251 if (read (fd, data3, pagesize) != pagesize)
7253 for (i = 0; i < pagesize; ++i)
7254 if (*(data + i) != *(data3 + i))
7262 if ac_fn_c_try_run
"$LINENO"; then :
7263 ac_cv_func_mmap_fixed_mapped
=yes
7265 ac_cv_func_mmap_fixed_mapped
=no
7267 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7268 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7273 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7274 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7276 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7279 rm -f conftest.mmap conftest.txt
7283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
7284 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
7285 if ${gt_cv_int_divbyzero_sigfpe+:} false
; then :
7286 $as_echo_n "(cached) " >&6
7289 gt_cv_int_divbyzero_sigfpe
=
7291 macos
* | darwin
[6-9]* | darwin
[1-9][0-9]*)
7292 # On Mac OS X 10.2 or newer, just assume the same as when cross-
7293 # compiling. If we were to perform the real test, 1 Crash Report
7294 # dialog window would pop up.
7296 i
[34567]86 | x86_64
)
7297 gt_cv_int_divbyzero_sigfpe
="guessing yes" ;;
7301 if test -z "$gt_cv_int_divbyzero_sigfpe"; then
7302 if test "$cross_compiling" = yes; then :
7304 # Guess based on the CPU.
7306 alpha
* | i
[34567]86 | x86_64 | m68k | s390
*)
7307 gt_cv_int_divbyzero_sigfpe
="guessing yes";;
7309 gt_cv_int_divbyzero_sigfpe
="guessing no";;
7313 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7314 /* end confdefs.h. */
7320 sigfpe_handler (int sig)
7322 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
7323 exit (sig != SIGFPE);
7333 signal (SIGFPE, sigfpe_handler);
7334 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
7335 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
7336 signal (SIGTRAP, sigfpe_handler);
7338 /* Linux/SPARC yields signal SIGILL. */
7339 #if defined (__sparc__) && defined (__linux__)
7340 signal (SIGILL, sigfpe_handler);
7349 if ac_fn_c_try_run
"$LINENO"; then :
7350 gt_cv_int_divbyzero_sigfpe
=yes
7352 gt_cv_int_divbyzero_sigfpe
=no
7354 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7355 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
7362 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
7363 case "$gt_cv_int_divbyzero_sigfpe" in
7368 cat >>confdefs.h
<<_ACEOF
7369 #define INTDIV0_RAISES_SIGFPE $value
7374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
7375 $as_echo_n "checking for inttypes.h... " >&6; }
7376 if ${gl_cv_header_inttypes_h+:} false
; then :
7377 $as_echo_n "(cached) " >&6
7379 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7380 /* end confdefs.h. */
7382 #include <sys/types.h>
7383 #include <inttypes.h>
7388 uintmax_t i = (uintmax_t) -1; return !i;
7393 if ac_fn_c_try_compile
"$LINENO"; then :
7394 gl_cv_header_inttypes_h
=yes
7396 gl_cv_header_inttypes_h
=no
7398 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
7401 $as_echo "$gl_cv_header_inttypes_h" >&6; }
7402 if test $gl_cv_header_inttypes_h = yes; then
7404 cat >>confdefs.h
<<_ACEOF
7405 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
7411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
7412 $as_echo_n "checking for unsigned long long int... " >&6; }
7413 if ${ac_cv_type_unsigned_long_long_int+:} false
; then :
7414 $as_echo_n "(cached) " >&6
7416 ac_cv_type_unsigned_long_long_int
=yes
7417 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
7418 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7419 /* end confdefs.h. */
7421 /* For now, do not test the preprocessor; as of 2007 there are too many
7422 implementations with broken preprocessors. Perhaps this can
7423 be revisited in 2012. In the meantime, code should not expect
7424 #if to work with literals wider than 32 bits. */
7425 /* Test literals. */
7426 long long int ll = 9223372036854775807ll;
7427 long long int nll = -9223372036854775807LL;
7428 unsigned long long int ull = 18446744073709551615ULL;
7429 /* Test constant expressions. */
7430 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
7432 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
7438 /* Test availability of runtime routines for shift and division. */
7439 long long int llmax = 9223372036854775807ll;
7440 unsigned long long int ullmax = 18446744073709551615ull;
7441 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
7442 | (llmax / ll) | (llmax % ll)
7443 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
7444 | (ullmax / ull) | (ullmax % ull));
7450 if ac_fn_c_try_link
"$LINENO"; then :
7453 ac_cv_type_unsigned_long_long_int
=no
7455 rm -f core conftest.err conftest.
$ac_objext \
7456 conftest
$ac_exeext conftest.
$ac_ext
7459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
7460 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
7461 if test $ac_cv_type_unsigned_long_long_int = yes; then
7463 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
7470 if test $gl_cv_header_inttypes_h = no
&& test $gl_cv_header_stdint_h = no
; then
7472 test $ac_cv_type_unsigned_long_long_int = yes \
7473 && ac_type
='unsigned long long' \
7474 || ac_type
='unsigned long'
7476 cat >>confdefs.h
<<_ACEOF
7477 #define uintmax_t $ac_type
7482 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
7487 for ac_header
in inttypes.h
7489 ac_fn_c_check_header_mongrel
"$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
7490 if test "x$ac_cv_header_inttypes_h" = xyes
; then :
7491 cat >>confdefs.h
<<_ACEOF
7492 #define HAVE_INTTYPES_H 1
7499 if test $ac_cv_header_inttypes_h = yes; then
7500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
7501 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
7502 if ${gt_cv_inttypes_pri_broken+:} false
; then :
7503 $as_echo_n "(cached) " >&6
7506 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7507 /* end confdefs.h. */
7509 #include <inttypes.h>
7522 if ac_fn_c_try_compile
"$LINENO"; then :
7523 gt_cv_inttypes_pri_broken
=no
7525 gt_cv_inttypes_pri_broken
=yes
7527 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
7531 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
7533 if test "$gt_cv_inttypes_pri_broken" = yes; then
7535 cat >>confdefs.h
<<_ACEOF
7536 #define PRI_MACROS_BROKEN 1
7550 # Check whether --enable-threads was given.
7551 if test "${enable_threads+set}" = set; then :
7552 enableval
=$enable_threads; gl_use_threads
=$enableval
7554 if test -n "$gl_use_threads_default"; then
7555 gl_use_threads
="$gl_use_threads_default"
7558 osf
*) gl_use_threads
=no
;;
7561 1.
[0-5].
*) gl_use_threads
=no
;;
7562 *) gl_use_threads
=yes ;;
7565 *) gl_use_threads
=yes ;;
7571 if test "$gl_use_threads" = yes ||
test "$gl_use_threads" = posix
; then
7572 # For using <pthread.h>:
7575 # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
7576 # groks <pthread.h>. cc also understands the flag -pthread, but
7577 # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
7578 # 2. putting a flag into CPPFLAGS that has an effect on the linker
7579 # causes the AC_LINK_IFELSE test below to succeed unexpectedly,
7580 # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
7581 CPPFLAGS
="$CPPFLAGS -D_REENTRANT"
7584 # Some systems optimize for single-threaded programs by default, and
7585 # need special flags to disable these optimizations. For example, the
7586 # definition of 'errno' in <errno.h>.
7588 aix
* | freebsd
*) CPPFLAGS
="$CPPFLAGS -D_THREAD_SAFE" ;;
7589 solaris
*) CPPFLAGS
="$CPPFLAGS -D_REENTRANT" ;;
7597 if test "X$prefix" = "XNONE"; then
7598 acl_final_prefix
="$ac_default_prefix"
7600 acl_final_prefix
="$prefix"
7602 if test "X$exec_prefix" = "XNONE"; then
7603 acl_final_exec_prefix
='${prefix}'
7605 acl_final_exec_prefix
="$exec_prefix"
7607 acl_save_prefix
="$prefix"
7608 prefix
="$acl_final_prefix"
7609 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
7610 prefix
="$acl_save_prefix"
7614 # Check whether --with-gnu-ld was given.
7615 if test "${with_gnu_ld+set}" = set; then :
7616 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
7621 # Prepare PATH_SEPARATOR.
7622 # The user is always right.
7623 if test "${PATH_SEPARATOR+set}" != set; then
7624 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
7625 # contains only /bin. Note that ksh looks also at the FPATH variable,
7626 # so we have to set that as well for the test.
7628 (PATH
='/bin;/bin'; FPATH
=$PATH; sh
-c :) >/dev
/null
2>&1 \
7629 && { (PATH
='/bin:/bin'; FPATH
=$PATH; sh
-c :) >/dev
/null
2>&1 \
7630 || PATH_SEPARATOR
=';'
7635 if test "$GCC" = yes; then
7636 # Check if gcc -print-prog-name=ld gives a path.
7637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7638 $as_echo_n "checking for ld used by $CC... " >&6; }
7641 # gcc leaves a trailing carriage return which upsets mingw
7642 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7644 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
7647 # Accept absolute paths.
7649 re_direlt
='/[^/][^/]*/\.\./'
7650 # Canonicalize the pathname of ld
7651 ac_prog
=`echo "$ac_prog"| sed 's%\\\\%/%g'`
7652 while echo "$ac_prog" |
grep "$re_direlt" > /dev
/null
2>&1; do
7653 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
7655 test -z "$LD" && LD
="$ac_prog"
7658 # If it fails, then pretend we aren't using GCC.
7662 # If it is relative, then search for the first ld in PATH.
7666 elif test "$with_gnu_ld" = yes; then
7667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7668 $as_echo_n "checking for GNU ld... " >&6; }
7670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7671 $as_echo_n "checking for non-GNU ld... " >&6; }
7673 if ${acl_cv_path_LD+:} false
; then :
7674 $as_echo_n "(cached) " >&6
7676 if test -z "$LD"; then
7677 acl_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
7678 for ac_dir
in $PATH; do
7680 test -z "$ac_dir" && ac_dir
=.
7681 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
7682 acl_cv_path_LD
="$ac_dir/$ac_prog"
7683 # Check to see if the program is GNU ld. I'd rather use --version,
7684 # but apparently some variants of GNU ld only accept -v.
7685 # Break only if it was the GNU/non-GNU ld that we prefer.
7686 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
7687 *GNU
* |
*'with BFD'*)
7688 test "$with_gnu_ld" != no
&& break
7691 test "$with_gnu_ld" != yes && break
7698 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
7702 LD
="$acl_cv_path_LD"
7703 if test -n "$LD"; then
7704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7705 $as_echo "$LD" >&6; }
7707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7708 $as_echo "no" >&6; }
7710 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
7711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7712 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7713 if ${acl_cv_prog_gnu_ld+:} false
; then :
7714 $as_echo_n "(cached) " >&6
7716 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7717 case `$LD -v 2>&1 </dev/null` in
7718 *GNU
* |
*'with BFD'*)
7719 acl_cv_prog_gnu_ld
=yes
7722 acl_cv_prog_gnu_ld
=no
7726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
7727 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
7728 with_gnu_ld
=$acl_cv_prog_gnu_ld
7733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
7734 $as_echo_n "checking for shared library run path origin... " >&6; }
7735 if ${acl_cv_rpath+:} false
; then :
7736 $as_echo_n "(cached) " >&6
7739 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
7740 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
7747 $as_echo "$acl_cv_rpath" >&6; }
7749 acl_libext
="$acl_cv_libext"
7750 acl_shlibext
="$acl_cv_shlibext"
7751 acl_libname_spec
="$acl_cv_libname_spec"
7752 acl_library_names_spec
="$acl_cv_library_names_spec"
7753 acl_hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
7754 acl_hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
7755 acl_hardcode_direct
="$acl_cv_hardcode_direct"
7756 acl_hardcode_minus_L
="$acl_cv_hardcode_minus_L"
7757 # Check whether --enable-rpath was given.
7758 if test "${enable_rpath+set}" = set; then :
7759 enableval
=$enable_rpath; :
7771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
7772 $as_echo_n "checking for 64-bit host... " >&6; }
7773 if ${gl_cv_solaris_64bit+:} false
; then :
7774 $as_echo_n "(cached) " >&6
7776 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7777 /* end confdefs.h. */
7784 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7785 $EGREP "sixtyfour bits" >/dev
/null
2>&1; then :
7786 gl_cv_solaris_64bit
=yes
7788 gl_cv_solaris_64bit
=no
7794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
7795 $as_echo "$gl_cv_solaris_64bit" >&6; }
7796 if test $gl_cv_solaris_64bit = yes; then
7797 acl_libdirstem
=lib
/64
7799 sparc
*) acl_libdirstem2
=lib
/sparcv9
;;
7800 i
*86 | x86_64
) acl_libdirstem2
=lib
/amd64
;;
7805 searchpath
=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
7806 if test -n "$searchpath"; then
7807 acl_save_IFS
="${IFS= }"; IFS
=":"
7808 for searchdir
in $searchpath; do
7809 if test -d "$searchdir"; then
7810 case "$searchdir" in
7811 */lib64
/ |
*/lib64
) acl_libdirstem
=lib64
;;
7813 # Better ignore directories of this form. They are misleading.
7815 *) searchdir
=`cd "$searchdir" && pwd`
7816 case "$searchdir" in
7817 */lib64
) acl_libdirstem
=lib64
;;
7826 test -n "$acl_libdirstem2" || acl_libdirstem2
="$acl_libdirstem"
7835 if test "$gl_use_threads" != no
; then
7836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
7837 $as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
7838 if ${gl_cv_have_weak+:} false
; then :
7839 $as_echo_n "(cached) " >&6
7842 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7843 /* end confdefs.h. */
7844 extern void xyzzy ();
7854 if ac_fn_c_try_link
"$LINENO"; then :
7855 gl_cv_have_weak
=maybe
7857 rm -f core conftest.err conftest.
$ac_objext \
7858 conftest
$ac_exeext conftest.
$ac_ext
7859 if test $gl_cv_have_weak = maybe
; then
7860 if test "$cross_compiling" = yes; then :
7861 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7862 /* end confdefs.h. */
7864 Extensible Linking Format
7868 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7869 $EGREP "Extensible Linking Format" >/dev
/null
2>&1; then :
7870 gl_cv_have_weak
="guessing yes"
7872 gl_cv_have_weak
="guessing no"
7878 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7879 /* end confdefs.h. */
7885 return (fputs == NULL);
7888 if ac_fn_c_try_run
"$LINENO"; then :
7893 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7894 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5
7901 $as_echo "$gl_cv_have_weak" >&6; }
7902 if test "$gl_use_threads" = yes ||
test "$gl_use_threads" = posix
; then
7903 # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
7904 # it groks <pthread.h>. It's added above, in gl_THREADLIB_EARLY_BODY.
7905 ac_fn_c_check_header_mongrel
"$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
7906 if test "x$ac_cv_header_pthread_h" = xyes
; then :
7907 gl_have_pthread_h
=yes
7909 gl_have_pthread_h
=no
7913 if test "$gl_have_pthread_h" = yes; then
7914 # Other possible tests:
7915 # -lpthreads (FSU threads, PCthreads)
7918 # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
7919 # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
7920 # the second one only in libpthread, and lock.c needs it.
7921 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7922 /* end confdefs.h. */
7923 #include <pthread.h>
7927 pthread_mutex_lock((pthread_mutex_t*)0);
7928 pthread_mutexattr_init((pthread_mutexattr_t*)0);
7933 if ac_fn_c_try_link
"$LINENO"; then :
7936 rm -f core conftest.err conftest.
$ac_objext \
7937 conftest
$ac_exeext conftest.
$ac_ext
7938 # Test for libpthread by looking for pthread_kill. (Not pthread_self,
7939 # since it is defined as a macro on OSF/1.)
7940 if test -n "$gl_have_pthread"; then
7941 # The program links fine without libpthread. But it may actually
7942 # need to link with libpthread in order to create multiple threads.
7943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
7944 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
7945 if ${ac_cv_lib_pthread_pthread_kill+:} false
; then :
7946 $as_echo_n "(cached) " >&6
7948 ac_check_lib_save_LIBS
=$LIBS
7949 LIBS
="-lpthread $LIBS"
7950 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7951 /* end confdefs.h. */
7953 /* Override any GCC internal prototype to avoid an error.
7954 Use char because int might match the return type of a GCC
7955 builtin and then its argument prototype would still apply. */
7959 char pthread_kill ();
7963 return pthread_kill ();
7968 if ac_fn_c_try_link
"$LINENO"; then :
7969 ac_cv_lib_pthread_pthread_kill
=yes
7971 ac_cv_lib_pthread_pthread_kill
=no
7973 rm -f core conftest.err conftest.
$ac_objext \
7974 conftest
$ac_exeext conftest.
$ac_ext
7975 LIBS
=$ac_check_lib_save_LIBS
7977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
7978 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
7979 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes
; then :
7980 LIBMULTITHREAD
=-lpthread LTLIBMULTITHREAD
=-lpthread
7981 # On Solaris and HP-UX, most pthread functions exist also in libc.
7982 # Therefore pthread_in_use() needs to actually try to create a
7983 # thread: pthread_create from libc will fail, whereas
7984 # pthread_create will actually create a thread.
7988 $as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
7995 # Some library is needed. Try libpthread and libc_r.
7996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
7997 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
7998 if ${ac_cv_lib_pthread_pthread_kill+:} false
; then :
7999 $as_echo_n "(cached) " >&6
8001 ac_check_lib_save_LIBS
=$LIBS
8002 LIBS
="-lpthread $LIBS"
8003 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8004 /* end confdefs.h. */
8006 /* Override any GCC internal prototype to avoid an error.
8007 Use char because int might match the return type of a GCC
8008 builtin and then its argument prototype would still apply. */
8012 char pthread_kill ();
8016 return pthread_kill ();
8021 if ac_fn_c_try_link
"$LINENO"; then :
8022 ac_cv_lib_pthread_pthread_kill
=yes
8024 ac_cv_lib_pthread_pthread_kill
=no
8026 rm -f core conftest.err conftest.
$ac_objext \
8027 conftest
$ac_exeext conftest.
$ac_ext
8028 LIBS
=$ac_check_lib_save_LIBS
8030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
8031 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
8032 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes
; then :
8034 LIBTHREAD
=-lpthread LTLIBTHREAD
=-lpthread
8035 LIBMULTITHREAD
=-lpthread LTLIBMULTITHREAD
=-lpthread
8038 if test -z "$gl_have_pthread"; then
8040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
8041 $as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
8042 if ${ac_cv_lib_c_r_pthread_kill+:} false
; then :
8043 $as_echo_n "(cached) " >&6
8045 ac_check_lib_save_LIBS
=$LIBS
8047 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8048 /* end confdefs.h. */
8050 /* Override any GCC internal prototype to avoid an error.
8051 Use char because int might match the return type of a GCC
8052 builtin and then its argument prototype would still apply. */
8056 char pthread_kill ();
8060 return pthread_kill ();
8065 if ac_fn_c_try_link
"$LINENO"; then :
8066 ac_cv_lib_c_r_pthread_kill
=yes
8068 ac_cv_lib_c_r_pthread_kill
=no
8070 rm -f core conftest.err conftest.
$ac_objext \
8071 conftest
$ac_exeext conftest.
$ac_ext
8072 LIBS
=$ac_check_lib_save_LIBS
8074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
8075 $as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
8076 if test "x$ac_cv_lib_c_r_pthread_kill" = xyes
; then :
8078 LIBTHREAD
=-lc_r LTLIBTHREAD
=-lc_r
8079 LIBMULTITHREAD
=-lc_r LTLIBMULTITHREAD
=-lc_r
8084 if test -n "$gl_have_pthread"; then
8085 gl_threads_api
=posix
8087 $as_echo "#define USE_POSIX_THREADS 1" >>confdefs.h
8089 if test -n "$LIBMULTITHREAD" ||
test -n "$LTLIBMULTITHREAD"; then
8090 if case "$gl_cv_have_weak" in *yes) true
;; *) false
;; esac; then
8092 $as_echo "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h
8101 if test -z "$gl_have_pthread"; then
8102 if test "$gl_use_threads" = yes ||
test "$gl_use_threads" = solaris
; then
8103 gl_have_solaristhread
=
8104 gl_save_LIBS
="$LIBS"
8105 LIBS
="$LIBS -lthread"
8106 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8107 /* end confdefs.h. */
8120 if ac_fn_c_try_link
"$LINENO"; then :
8121 gl_have_solaristhread
=yes
8123 rm -f core conftest.err conftest.
$ac_objext \
8124 conftest
$ac_exeext conftest.
$ac_ext
8125 LIBS
="$gl_save_LIBS"
8126 if test -n "$gl_have_solaristhread"; then
8127 gl_threads_api
=solaris
8129 LTLIBTHREAD
=-lthread
8130 LIBMULTITHREAD
="$LIBTHREAD"
8131 LTLIBMULTITHREAD
="$LTLIBTHREAD"
8133 $as_echo "#define USE_SOLARIS_THREADS 1" >>confdefs.h
8135 if case "$gl_cv_have_weak" in *yes) true
;; *) false
;; esac; then
8137 $as_echo "#define USE_SOLARIS_THREADS_WEAK 1" >>confdefs.h
8145 if test "$gl_use_threads" = pth
; then
8146 gl_save_CPPFLAGS
="$CPPFLAGS"
8152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libpth" >&5
8153 $as_echo_n "checking how to link with libpth... " >&6; }
8154 if ${ac_cv_libpth_libs+:} false
; then :
8155 $as_echo_n "(cached) " >&6
8167 acl_save_prefix
="$prefix"
8168 prefix
="$acl_final_prefix"
8169 acl_save_exec_prefix
="$exec_prefix"
8170 exec_prefix
="$acl_final_exec_prefix"
8172 eval additional_includedir
=\"$includedir\"
8173 eval additional_libdir
=\"$libdir\"
8175 exec_prefix
="$acl_save_exec_prefix"
8176 prefix
="$acl_save_prefix"
8179 # Check whether --with-libpth-prefix was given.
8180 if test "${with_libpth_prefix+set}" = set; then :
8181 withval
=$with_libpth_prefix;
8182 if test "X$withval" = "Xno"; then
8185 if test "X$withval" = "X"; then
8187 acl_save_prefix
="$prefix"
8188 prefix
="$acl_final_prefix"
8189 acl_save_exec_prefix
="$exec_prefix"
8190 exec_prefix
="$acl_final_exec_prefix"
8192 eval additional_includedir
=\"$includedir\"
8193 eval additional_libdir
=\"$libdir\"
8195 exec_prefix
="$acl_save_exec_prefix"
8196 prefix
="$acl_save_prefix"
8199 additional_includedir
="$withval/include"
8200 additional_libdir
="$withval/$acl_libdirstem"
8201 if test "$acl_libdirstem2" != "$acl_libdirstem" \
8202 && ! test -d "$withval/$acl_libdirstem"; then
8203 additional_libdir
="$withval/$acl_libdirstem2"
8217 names_already_handled
=
8218 names_next_round
='pth '
8219 while test -n "$names_next_round"; do
8220 names_this_round
="$names_next_round"
8222 for name
in $names_this_round; do
8224 for n
in $names_already_handled; do
8225 if test "$n" = "$name"; then
8230 if test -z "$already_handled"; then
8231 names_already_handled
="$names_already_handled $name"
8232 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
8233 eval value
=\"\
$HAVE_LIB$uppername\"
8234 if test -n "$value"; then
8235 if test "$value" = yes; then
8236 eval value
=\"\
$LIB$uppername\"
8237 test -z "$value" || LIBPTH
="${LIBPTH}${LIBPTH:+ }$value"
8238 eval value
=\"\
$LTLIB$uppername\"
8239 test -z "$value" || LTLIBPTH
="${LTLIBPTH}${LTLIBPTH:+ }$value"
8248 eval libname
=\"$acl_libname_spec\" # typically: libname=lib$name
8249 if test -n "$acl_shlibext"; then
8250 shrext
=".$acl_shlibext" # typically: shrext=.so
8254 if test $use_additional = yes; then
8255 dir
="$additional_libdir"
8256 if test -n "$acl_shlibext"; then
8257 if test -f "$dir/$libname$shrext"; then
8259 found_so
="$dir/$libname$shrext"
8261 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8262 ver
=`(cd "$dir" && \
8263 for f in "$libname$shrext".*; do echo "$f"; done \
8264 | sed -e "s,^$libname$shrext\\\\.,," \
8265 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8266 | sed 1q ) 2>/dev/null`
8267 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8269 found_so
="$dir/$libname$shrext.$ver"
8272 eval library_names
=\"$acl_library_names_spec\"
8273 for f
in $library_names; do
8274 if test -f "$dir/$f"; then
8283 if test "X$found_dir" = "X"; then
8284 if test -f "$dir/$libname.$acl_libext"; then
8286 found_a
="$dir/$libname.$acl_libext"
8289 if test "X$found_dir" != "X"; then
8290 if test -f "$dir/$libname.la"; then
8291 found_la
="$dir/$libname.la"
8295 if test "X$found_dir" = "X"; then
8296 for x
in $LDFLAGS $LTLIBPTH; do
8298 acl_save_prefix
="$prefix"
8299 prefix
="$acl_final_prefix"
8300 acl_save_exec_prefix
="$exec_prefix"
8301 exec_prefix
="$acl_final_exec_prefix"
8303 exec_prefix
="$acl_save_exec_prefix"
8304 prefix
="$acl_save_prefix"
8308 dir
=`echo "X$x" | sed -e 's/^X-L//'`
8309 if test -n "$acl_shlibext"; then
8310 if test -f "$dir/$libname$shrext"; then
8312 found_so
="$dir/$libname$shrext"
8314 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8315 ver
=`(cd "$dir" && \
8316 for f in "$libname$shrext".*; do echo "$f"; done \
8317 | sed -e "s,^$libname$shrext\\\\.,," \
8318 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8319 | sed 1q ) 2>/dev/null`
8320 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8322 found_so
="$dir/$libname$shrext.$ver"
8325 eval library_names
=\"$acl_library_names_spec\"
8326 for f
in $library_names; do
8327 if test -f "$dir/$f"; then
8336 if test "X$found_dir" = "X"; then
8337 if test -f "$dir/$libname.$acl_libext"; then
8339 found_a
="$dir/$libname.$acl_libext"
8342 if test "X$found_dir" != "X"; then
8343 if test -f "$dir/$libname.la"; then
8344 found_la
="$dir/$libname.la"
8349 if test "X$found_dir" != "X"; then
8354 if test "X$found_dir" != "X"; then
8355 LTLIBPTH
="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
8356 if test "X$found_so" != "X"; then
8357 if test "$enable_rpath" = no \
8358 ||
test "X$found_dir" = "X/usr/$acl_libdirstem" \
8359 ||
test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
8360 LIBPTH
="${LIBPTH}${LIBPTH:+ }$found_so"
8363 for x
in $ltrpathdirs; do
8364 if test "X$x" = "X$found_dir"; then
8369 if test -z "$haveit"; then
8370 ltrpathdirs
="$ltrpathdirs $found_dir"
8372 if test "$acl_hardcode_direct" = yes; then
8373 LIBPTH
="${LIBPTH}${LIBPTH:+ }$found_so"
8375 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no
; then
8376 LIBPTH
="${LIBPTH}${LIBPTH:+ }$found_so"
8378 for x
in $rpathdirs; do
8379 if test "X$x" = "X$found_dir"; then
8384 if test -z "$haveit"; then
8385 rpathdirs
="$rpathdirs $found_dir"
8389 for x
in $LDFLAGS $LIBPTH; do
8391 acl_save_prefix
="$prefix"
8392 prefix
="$acl_final_prefix"
8393 acl_save_exec_prefix
="$exec_prefix"
8394 exec_prefix
="$acl_final_exec_prefix"
8396 exec_prefix
="$acl_save_exec_prefix"
8397 prefix
="$acl_save_prefix"
8399 if test "X$x" = "X-L$found_dir"; then
8404 if test -z "$haveit"; then
8405 LIBPTH
="${LIBPTH}${LIBPTH:+ }-L$found_dir"
8407 if test "$acl_hardcode_minus_L" != no
; then
8408 LIBPTH
="${LIBPTH}${LIBPTH:+ }$found_so"
8410 LIBPTH
="${LIBPTH}${LIBPTH:+ }-l$name"
8416 if test "X$found_a" != "X"; then
8417 LIBPTH
="${LIBPTH}${LIBPTH:+ }$found_a"
8419 LIBPTH
="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
8422 additional_includedir
=
8423 case "$found_dir" in
8424 */$acl_libdirstem |
*/$acl_libdirstem/)
8425 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
8426 if test "$name" = 'pth'; then
8427 LIBPTH_PREFIX
="$basedir"
8429 additional_includedir
="$basedir/include"
8431 */$acl_libdirstem2 |
*/$acl_libdirstem2/)
8432 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
8433 if test "$name" = 'pth'; then
8434 LIBPTH_PREFIX
="$basedir"
8436 additional_includedir
="$basedir/include"
8439 if test "X$additional_includedir" != "X"; then
8440 if test "X$additional_includedir" != "X/usr/include"; then
8442 if test "X$additional_includedir" = "X/usr/local/include"; then
8443 if test -n "$GCC"; then
8445 linux
* | gnu
* | k
*bsd
*-gnu) haveit
=yes;;
8449 if test -z "$haveit"; then
8450 for x
in $CPPFLAGS $INCPTH; do
8452 acl_save_prefix
="$prefix"
8453 prefix
="$acl_final_prefix"
8454 acl_save_exec_prefix
="$exec_prefix"
8455 exec_prefix
="$acl_final_exec_prefix"
8457 exec_prefix
="$acl_save_exec_prefix"
8458 prefix
="$acl_save_prefix"
8460 if test "X$x" = "X-I$additional_includedir"; then
8465 if test -z "$haveit"; then
8466 if test -d "$additional_includedir"; then
8467 INCPTH
="${INCPTH}${INCPTH:+ }-I$additional_includedir"
8473 if test -n "$found_la"; then
8474 save_libdir
="$libdir"
8476 */* |
*\\*) .
"$found_la" ;;
8477 *) .
"./$found_la" ;;
8479 libdir
="$save_libdir"
8480 for dep
in $dependency_libs; do
8483 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
8484 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
8485 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
8487 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
8488 ||
test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
8489 if test -n "$GCC"; then
8491 linux
* | gnu
* | k
*bsd
*-gnu) haveit
=yes;;
8495 if test -z "$haveit"; then
8497 for x
in $LDFLAGS $LIBPTH; do
8499 acl_save_prefix
="$prefix"
8500 prefix
="$acl_final_prefix"
8501 acl_save_exec_prefix
="$exec_prefix"
8502 exec_prefix
="$acl_final_exec_prefix"
8504 exec_prefix
="$acl_save_exec_prefix"
8505 prefix
="$acl_save_prefix"
8507 if test "X$x" = "X-L$additional_libdir"; then
8512 if test -z "$haveit"; then
8513 if test -d "$additional_libdir"; then
8514 LIBPTH
="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
8518 for x
in $LDFLAGS $LTLIBPTH; do
8520 acl_save_prefix
="$prefix"
8521 prefix
="$acl_final_prefix"
8522 acl_save_exec_prefix
="$exec_prefix"
8523 exec_prefix
="$acl_final_exec_prefix"
8525 exec_prefix
="$acl_save_exec_prefix"
8526 prefix
="$acl_save_prefix"
8528 if test "X$x" = "X-L$additional_libdir"; then
8533 if test -z "$haveit"; then
8534 if test -d "$additional_libdir"; then
8535 LTLIBPTH
="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
8542 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
8543 if test "$enable_rpath" != no
; then
8545 for x
in $rpathdirs; do
8546 if test "X$x" = "X$dir"; then
8551 if test -z "$haveit"; then
8552 rpathdirs
="$rpathdirs $dir"
8555 for x
in $ltrpathdirs; do
8556 if test "X$x" = "X$dir"; then
8561 if test -z "$haveit"; then
8562 ltrpathdirs
="$ltrpathdirs $dir"
8567 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8570 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8573 LIBPTH
="${LIBPTH}${LIBPTH:+ }$dep"
8574 LTLIBPTH
="${LTLIBPTH}${LTLIBPTH:+ }$dep"
8580 LIBPTH
="${LIBPTH}${LIBPTH:+ }-l$name"
8581 LTLIBPTH
="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
8587 if test "X$rpathdirs" != "X"; then
8588 if test -n "$acl_hardcode_libdir_separator"; then
8590 for found_dir
in $rpathdirs; do
8591 alldirs
="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
8593 acl_save_libdir
="$libdir"
8595 eval flag
=\"$acl_hardcode_libdir_flag_spec\"
8596 libdir
="$acl_save_libdir"
8597 LIBPTH
="${LIBPTH}${LIBPTH:+ }$flag"
8599 for found_dir
in $rpathdirs; do
8600 acl_save_libdir
="$libdir"
8602 eval flag
=\"$acl_hardcode_libdir_flag_spec\"
8603 libdir
="$acl_save_libdir"
8604 LIBPTH
="${LIBPTH}${LIBPTH:+ }$flag"
8608 if test "X$ltrpathdirs" != "X"; then
8609 for found_dir
in $ltrpathdirs; do
8610 LTLIBPTH
="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
8619 ac_cv_libpth_libs
="$LIBPTH"
8620 ac_cv_libpth_ltlibs
="$LTLIBPTH"
8621 ac_cv_libpth_cppflags
="$INCPTH"
8622 ac_cv_libpth_prefix
="$LIBPTH_PREFIX"
8625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libpth_libs" >&5
8626 $as_echo "$ac_cv_libpth_libs" >&6; }
8627 LIBPTH
="$ac_cv_libpth_libs"
8628 LTLIBPTH
="$ac_cv_libpth_ltlibs"
8629 INCPTH
="$ac_cv_libpth_cppflags"
8630 LIBPTH_PREFIX
="$ac_cv_libpth_prefix"
8632 for element
in $INCPTH; do
8634 for x
in $CPPFLAGS; do
8636 acl_save_prefix
="$prefix"
8637 prefix
="$acl_final_prefix"
8638 acl_save_exec_prefix
="$exec_prefix"
8639 exec_prefix
="$acl_final_exec_prefix"
8641 exec_prefix
="$acl_save_exec_prefix"
8642 prefix
="$acl_save_prefix"
8644 if test "X$x" = "X$element"; then
8649 if test -z "$haveit"; then
8650 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
8662 gl_save_LIBS
="$LIBS"
8663 LIBS
="$LIBS $LIBPTH"
8664 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8665 /* end confdefs.h. */
8675 if ac_fn_c_try_link
"$LINENO"; then :
8678 rm -f core conftest.err conftest.
$ac_objext \
8679 conftest
$ac_exeext conftest.
$ac_ext
8680 LIBS
="$gl_save_LIBS"
8681 if test -n "$gl_have_pth"; then
8684 LTLIBTHREAD
="$LTLIBPTH"
8685 LIBMULTITHREAD
="$LIBTHREAD"
8686 LTLIBMULTITHREAD
="$LTLIBTHREAD"
8688 $as_echo "#define USE_PTH_THREADS 1" >>confdefs.h
8690 if test -n "$LIBMULTITHREAD" ||
test -n "$LTLIBMULTITHREAD"; then
8691 if case "$gl_cv_have_weak" in *yes) true
;; *) false
;; esac; then
8693 $as_echo "#define USE_PTH_THREADS_WEAK 1" >>confdefs.h
8700 CPPFLAGS
="$gl_save_CPPFLAGS"
8703 if test -z "$gl_have_pthread"; then
8704 case "$gl_use_threads" in
8705 yes | windows | win32
) # The 'win32' is for backward compatibility.
8706 if { case "$host_os" in
8711 gl_threads_api
=windows
8713 $as_echo "#define USE_WINDOWS_THREADS 1" >>confdefs.h
8720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5
8721 $as_echo_n "checking for multithread API to use... " >&6; }
8722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5
8723 $as_echo "$gl_threads_api" >&6; }
8735 if test "$gl_threads_api" = posix
; then
8736 # OSF/1 4.0 and Mac OS X 10.1 lack the pthread_rwlock_t type and the
8737 # pthread_rwlock_* functions.
8738 ac_fn_c_check_type
"$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
8740 if test "x$ac_cv_type_pthread_rwlock_t" = xyes
; then :
8742 $as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h
8746 # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
8747 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8748 /* end confdefs.h. */
8750 #include <pthread.h>
8755 #if __FreeBSD__ == 4
8756 error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
8757 #elif (defined __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ \
8758 && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1070)
8759 error "No, in Mac OS X < 10.7 recursive mutexes actually don't work."
8761 int x = (int)PTHREAD_MUTEX_RECURSIVE;
8769 if ac_fn_c_try_compile
"$LINENO"; then :
8771 $as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
8774 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8791 acl_save_prefix
="$prefix"
8792 prefix
="$acl_final_prefix"
8793 acl_save_exec_prefix
="$exec_prefix"
8794 exec_prefix
="$acl_final_exec_prefix"
8796 eval additional_includedir
=\"$includedir\"
8797 eval additional_libdir
=\"$libdir\"
8799 exec_prefix
="$acl_save_exec_prefix"
8800 prefix
="$acl_save_prefix"
8803 # Check whether --with-libiconv-prefix was given.
8804 if test "${with_libiconv_prefix+set}" = set; then :
8805 withval
=$with_libiconv_prefix;
8806 if test "X$withval" = "Xno"; then
8809 if test "X$withval" = "X"; then
8811 acl_save_prefix
="$prefix"
8812 prefix
="$acl_final_prefix"
8813 acl_save_exec_prefix
="$exec_prefix"
8814 exec_prefix
="$acl_final_exec_prefix"
8816 eval additional_includedir
=\"$includedir\"
8817 eval additional_libdir
=\"$libdir\"
8819 exec_prefix
="$acl_save_exec_prefix"
8820 prefix
="$acl_save_prefix"
8823 additional_includedir
="$withval/include"
8824 additional_libdir
="$withval/$acl_libdirstem"
8825 if test "$acl_libdirstem2" != "$acl_libdirstem" \
8826 && ! test -d "$withval/$acl_libdirstem"; then
8827 additional_libdir
="$withval/$acl_libdirstem2"
8841 names_already_handled
=
8842 names_next_round
='iconv '
8843 while test -n "$names_next_round"; do
8844 names_this_round
="$names_next_round"
8846 for name
in $names_this_round; do
8848 for n
in $names_already_handled; do
8849 if test "$n" = "$name"; then
8854 if test -z "$already_handled"; then
8855 names_already_handled
="$names_already_handled $name"
8856 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
8857 eval value
=\"\
$HAVE_LIB$uppername\"
8858 if test -n "$value"; then
8859 if test "$value" = yes; then
8860 eval value
=\"\
$LIB$uppername\"
8861 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
8862 eval value
=\"\
$LTLIB$uppername\"
8863 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
8872 eval libname
=\"$acl_libname_spec\" # typically: libname=lib$name
8873 if test -n "$acl_shlibext"; then
8874 shrext
=".$acl_shlibext" # typically: shrext=.so
8878 if test $use_additional = yes; then
8879 dir
="$additional_libdir"
8880 if test -n "$acl_shlibext"; then
8881 if test -f "$dir/$libname$shrext"; then
8883 found_so
="$dir/$libname$shrext"
8885 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8886 ver
=`(cd "$dir" && \
8887 for f in "$libname$shrext".*; do echo "$f"; done \
8888 | sed -e "s,^$libname$shrext\\\\.,," \
8889 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8890 | sed 1q ) 2>/dev/null`
8891 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8893 found_so
="$dir/$libname$shrext.$ver"
8896 eval library_names
=\"$acl_library_names_spec\"
8897 for f
in $library_names; do
8898 if test -f "$dir/$f"; then
8907 if test "X$found_dir" = "X"; then
8908 if test -f "$dir/$libname.$acl_libext"; then
8910 found_a
="$dir/$libname.$acl_libext"
8913 if test "X$found_dir" != "X"; then
8914 if test -f "$dir/$libname.la"; then
8915 found_la
="$dir/$libname.la"
8919 if test "X$found_dir" = "X"; then
8920 for x
in $LDFLAGS $LTLIBICONV; do
8922 acl_save_prefix
="$prefix"
8923 prefix
="$acl_final_prefix"
8924 acl_save_exec_prefix
="$exec_prefix"
8925 exec_prefix
="$acl_final_exec_prefix"
8927 exec_prefix
="$acl_save_exec_prefix"
8928 prefix
="$acl_save_prefix"
8932 dir
=`echo "X$x" | sed -e 's/^X-L//'`
8933 if test -n "$acl_shlibext"; then
8934 if test -f "$dir/$libname$shrext"; then
8936 found_so
="$dir/$libname$shrext"
8938 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8939 ver
=`(cd "$dir" && \
8940 for f in "$libname$shrext".*; do echo "$f"; done \
8941 | sed -e "s,^$libname$shrext\\\\.,," \
8942 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8943 | sed 1q ) 2>/dev/null`
8944 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8946 found_so
="$dir/$libname$shrext.$ver"
8949 eval library_names
=\"$acl_library_names_spec\"
8950 for f
in $library_names; do
8951 if test -f "$dir/$f"; then
8960 if test "X$found_dir" = "X"; then
8961 if test -f "$dir/$libname.$acl_libext"; then
8963 found_a
="$dir/$libname.$acl_libext"
8966 if test "X$found_dir" != "X"; then
8967 if test -f "$dir/$libname.la"; then
8968 found_la
="$dir/$libname.la"
8973 if test "X$found_dir" != "X"; then
8978 if test "X$found_dir" != "X"; then
8979 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
8980 if test "X$found_so" != "X"; then
8981 if test "$enable_rpath" = no \
8982 ||
test "X$found_dir" = "X/usr/$acl_libdirstem" \
8983 ||
test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
8984 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
8987 for x
in $ltrpathdirs; do
8988 if test "X$x" = "X$found_dir"; then
8993 if test -z "$haveit"; then
8994 ltrpathdirs
="$ltrpathdirs $found_dir"
8996 if test "$acl_hardcode_direct" = yes; then
8997 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
8999 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no
; then
9000 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
9002 for x
in $rpathdirs; do
9003 if test "X$x" = "X$found_dir"; then
9008 if test -z "$haveit"; then
9009 rpathdirs
="$rpathdirs $found_dir"
9013 for x
in $LDFLAGS $LIBICONV; do
9015 acl_save_prefix
="$prefix"
9016 prefix
="$acl_final_prefix"
9017 acl_save_exec_prefix
="$exec_prefix"
9018 exec_prefix
="$acl_final_exec_prefix"
9020 exec_prefix
="$acl_save_exec_prefix"
9021 prefix
="$acl_save_prefix"
9023 if test "X$x" = "X-L$found_dir"; then
9028 if test -z "$haveit"; then
9029 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9031 if test "$acl_hardcode_minus_L" != no
; then
9032 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
9034 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
9040 if test "X$found_a" != "X"; then
9041 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
9043 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9046 additional_includedir
=
9047 case "$found_dir" in
9048 */$acl_libdirstem |
*/$acl_libdirstem/)
9049 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
9050 if test "$name" = 'iconv'; then
9051 LIBICONV_PREFIX
="$basedir"
9053 additional_includedir
="$basedir/include"
9055 */$acl_libdirstem2 |
*/$acl_libdirstem2/)
9056 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
9057 if test "$name" = 'iconv'; then
9058 LIBICONV_PREFIX
="$basedir"
9060 additional_includedir
="$basedir/include"
9063 if test "X$additional_includedir" != "X"; then
9064 if test "X$additional_includedir" != "X/usr/include"; then
9066 if test "X$additional_includedir" = "X/usr/local/include"; then
9067 if test -n "$GCC"; then
9069 linux
* | gnu
* | k
*bsd
*-gnu) haveit
=yes;;
9073 if test -z "$haveit"; then
9074 for x
in $CPPFLAGS $INCICONV; do
9076 acl_save_prefix
="$prefix"
9077 prefix
="$acl_final_prefix"
9078 acl_save_exec_prefix
="$exec_prefix"
9079 exec_prefix
="$acl_final_exec_prefix"
9081 exec_prefix
="$acl_save_exec_prefix"
9082 prefix
="$acl_save_prefix"
9084 if test "X$x" = "X-I$additional_includedir"; then
9089 if test -z "$haveit"; then
9090 if test -d "$additional_includedir"; then
9091 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9097 if test -n "$found_la"; then
9098 save_libdir
="$libdir"
9100 */* |
*\\*) .
"$found_la" ;;
9101 *) .
"./$found_la" ;;
9103 libdir
="$save_libdir"
9104 for dep
in $dependency_libs; do
9107 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
9108 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
9109 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
9111 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
9112 ||
test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
9113 if test -n "$GCC"; then
9115 linux
* | gnu
* | k
*bsd
*-gnu) haveit
=yes;;
9119 if test -z "$haveit"; then
9121 for x
in $LDFLAGS $LIBICONV; do
9123 acl_save_prefix
="$prefix"
9124 prefix
="$acl_final_prefix"
9125 acl_save_exec_prefix
="$exec_prefix"
9126 exec_prefix
="$acl_final_exec_prefix"
9128 exec_prefix
="$acl_save_exec_prefix"
9129 prefix
="$acl_save_prefix"
9131 if test "X$x" = "X-L$additional_libdir"; then
9136 if test -z "$haveit"; then
9137 if test -d "$additional_libdir"; then
9138 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9142 for x
in $LDFLAGS $LTLIBICONV; do
9144 acl_save_prefix
="$prefix"
9145 prefix
="$acl_final_prefix"
9146 acl_save_exec_prefix
="$exec_prefix"
9147 exec_prefix
="$acl_final_exec_prefix"
9149 exec_prefix
="$acl_save_exec_prefix"
9150 prefix
="$acl_save_prefix"
9152 if test "X$x" = "X-L$additional_libdir"; then
9157 if test -z "$haveit"; then
9158 if test -d "$additional_libdir"; then
9159 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9166 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
9167 if test "$enable_rpath" != no
; then
9169 for x
in $rpathdirs; do
9170 if test "X$x" = "X$dir"; then
9175 if test -z "$haveit"; then
9176 rpathdirs
="$rpathdirs $dir"
9179 for x
in $ltrpathdirs; do
9180 if test "X$x" = "X$dir"; then
9185 if test -z "$haveit"; then
9186 ltrpathdirs
="$ltrpathdirs $dir"
9191 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9194 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9197 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
9198 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9204 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
9205 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9211 if test "X$rpathdirs" != "X"; then
9212 if test -n "$acl_hardcode_libdir_separator"; then
9214 for found_dir
in $rpathdirs; do
9215 alldirs
="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
9217 acl_save_libdir
="$libdir"
9219 eval flag
=\"$acl_hardcode_libdir_flag_spec\"
9220 libdir
="$acl_save_libdir"
9221 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
9223 for found_dir
in $rpathdirs; do
9224 acl_save_libdir
="$libdir"
9226 eval flag
=\"$acl_hardcode_libdir_flag_spec\"
9227 libdir
="$acl_save_libdir"
9228 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
9232 if test "X$ltrpathdirs" != "X"; then
9233 for found_dir
in $ltrpathdirs; do
9234 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9249 am_save_CPPFLAGS
="$CPPFLAGS"
9251 for element
in $INCICONV; do
9253 for x
in $CPPFLAGS; do
9255 acl_save_prefix
="$prefix"
9256 prefix
="$acl_final_prefix"
9257 acl_save_exec_prefix
="$exec_prefix"
9258 exec_prefix
="$acl_final_exec_prefix"
9260 exec_prefix
="$acl_save_exec_prefix"
9261 prefix
="$acl_save_prefix"
9263 if test "X$x" = "X$element"; then
9268 if test -z "$haveit"; then
9269 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
9274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
9275 $as_echo_n "checking for iconv... " >&6; }
9276 if ${am_cv_func_iconv+:} false
; then :
9277 $as_echo_n "(cached) " >&6
9280 am_cv_func_iconv
="no, consider installing GNU libiconv"
9282 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9283 /* end confdefs.h. */
9291 iconv_t cd = iconv_open("","");
9292 iconv(cd,NULL,NULL,NULL,NULL);
9298 if ac_fn_c_try_link
"$LINENO"; then :
9299 am_cv_func_iconv
=yes
9301 rm -f core conftest.err conftest.
$ac_objext \
9302 conftest
$ac_exeext conftest.
$ac_ext
9303 if test "$am_cv_func_iconv" != yes; then
9304 am_save_LIBS
="$LIBS"
9305 LIBS
="$LIBS $LIBICONV"
9306 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9307 /* end confdefs.h. */
9315 iconv_t cd = iconv_open("","");
9316 iconv(cd,NULL,NULL,NULL,NULL);
9322 if ac_fn_c_try_link
"$LINENO"; then :
9324 am_cv_func_iconv
=yes
9326 rm -f core conftest.err conftest.
$ac_objext \
9327 conftest
$ac_exeext conftest.
$ac_ext
9328 LIBS
="$am_save_LIBS"
9332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
9333 $as_echo "$am_cv_func_iconv" >&6; }
9334 if test "$am_cv_func_iconv" = yes; then
9335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
9336 $as_echo_n "checking for working iconv... " >&6; }
9337 if ${am_cv_func_iconv_works+:} false
; then :
9338 $as_echo_n "(cached) " >&6
9341 am_save_LIBS
="$LIBS"
9342 if test $am_cv_lib_iconv = yes; then
9343 LIBS
="$LIBS $LIBICONV"
9345 if test "$cross_compiling" = yes; then :
9348 aix
* | hpux
*) am_cv_func_iconv_works
="guessing no" ;;
9349 *) am_cv_func_iconv_works
="guessing yes" ;;
9353 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9354 /* end confdefs.h. */
9361 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
9364 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
9365 if (cd_utf8_to_88591 != (iconv_t)(-1))
9367 static const char input[] = "\342\202\254"; /* EURO SIGN */
9369 const char *inptr = input;
9370 size_t inbytesleft = strlen (input);
9372 size_t outbytesleft = sizeof (buf);
9373 size_t res = iconv (cd_utf8_to_88591,
9374 (char **) &inptr, &inbytesleft,
9375 &outptr, &outbytesleft);
9378 iconv_close (cd_utf8_to_88591);
9381 /* Test against Solaris 10 bug: Failures are not distinguishable from
9382 successful returns. */
9384 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
9385 if (cd_ascii_to_88591 != (iconv_t)(-1))
9387 static const char input[] = "\263";
9389 const char *inptr = input;
9390 size_t inbytesleft = strlen (input);
9392 size_t outbytesleft = sizeof (buf);
9393 size_t res = iconv (cd_ascii_to_88591,
9394 (char **) &inptr, &inbytesleft,
9395 &outptr, &outbytesleft);
9398 iconv_close (cd_ascii_to_88591);
9401 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
9403 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
9404 if (cd_88591_to_utf8 != (iconv_t)(-1))
9406 static const char input[] = "\304";
9407 static char buf[2] = { (char)0xDE, (char)0xAD };
9408 const char *inptr = input;
9409 size_t inbytesleft = 1;
9411 size_t outbytesleft = 1;
9412 size_t res = iconv (cd_88591_to_utf8,
9413 (char **) &inptr, &inbytesleft,
9414 &outptr, &outbytesleft);
9415 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
9417 iconv_close (cd_88591_to_utf8);
9420 #if 0 /* This bug could be worked around by the caller. */
9421 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
9423 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
9424 if (cd_88591_to_utf8 != (iconv_t)(-1))
9426 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
9428 const char *inptr = input;
9429 size_t inbytesleft = strlen (input);
9431 size_t outbytesleft = sizeof (buf);
9432 size_t res = iconv (cd_88591_to_utf8,
9433 (char **) &inptr, &inbytesleft,
9434 &outptr, &outbytesleft);
9437 iconv_close (cd_88591_to_utf8);
9441 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
9443 if (/* Try standardized names. */
9444 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
9445 /* Try IRIX, OSF/1 names. */
9446 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
9447 /* Try AIX names. */
9448 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
9449 /* Try HP-UX names. */
9450 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
9455 if ac_fn_c_try_run
"$LINENO"; then :
9456 am_cv_func_iconv_works
=yes
9458 am_cv_func_iconv_works
=no
9460 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9461 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9464 LIBS
="$am_save_LIBS"
9467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
9468 $as_echo "$am_cv_func_iconv_works" >&6; }
9469 case "$am_cv_func_iconv_works" in
9470 *no
) am_func_iconv
=no am_cv_lib_iconv
=no
;;
9471 *) am_func_iconv
=yes ;;
9474 am_func_iconv
=no am_cv_lib_iconv
=no
9476 if test "$am_func_iconv" = yes; then
9478 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
9481 if test "$am_cv_lib_iconv" = yes; then
9482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
9483 $as_echo_n "checking how to link with libiconv... " >&6; }
9484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
9485 $as_echo "$LIBICONV" >&6; }
9487 CPPFLAGS
="$am_save_CPPFLAGS"
9494 if test "$am_cv_func_iconv" = yes; then
9495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
9496 $as_echo_n "checking for iconv declaration... " >&6; }
9497 if ${am_cv_proto_iconv+:} false
; then :
9498 $as_echo_n "(cached) " >&6
9501 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9502 /* end confdefs.h. */
9510 #if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus)
9511 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9524 if ac_fn_c_try_compile
"$LINENO"; then :
9525 am_cv_proto_iconv_arg1
=""
9527 am_cv_proto_iconv_arg1
="const"
9529 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9530 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);"
9533 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
9534 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
9535 $am_cv_proto_iconv" >&5
9537 $am_cv_proto_iconv" >&6; }
9539 cat >>confdefs.h
<<_ACEOF
9540 #define ICONV_CONST $am_cv_proto_iconv_arg1
9549 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9550 /* end confdefs.h. */
9551 int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; }
9560 if ac_fn_c_try_link
"$LINENO"; then :
9562 $as_echo "#define HAVE_BUILTIN_EXPECT 1" >>confdefs.h
9565 rm -f core conftest.err conftest.
$ac_objext \
9566 conftest
$ac_exeext conftest.
$ac_ext
9568 for ac_header
in argz.h inttypes.h limits.h unistd.h sys
/param.h
9570 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9571 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9572 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
9573 cat >>confdefs.h
<<_ACEOF
9574 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9581 for ac_func
in getcwd getegid geteuid getgid getuid mempcpy munmap \
9582 stpcpy strcasecmp strdup strtoul tsearch uselocale argz_count \
9583 argz_stringify argz_next __fsetlocking
9585 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9586 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9587 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
9588 cat >>confdefs.h
<<_ACEOF
9589 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9596 ac_fn_c_check_decl
"$LINENO" "feof_unlocked" "ac_cv_have_decl_feof_unlocked" "#include <stdio.h>
9598 if test "x$ac_cv_have_decl_feof_unlocked" = xyes
; then :
9604 cat >>confdefs.h
<<_ACEOF
9605 #define HAVE_DECL_FEOF_UNLOCKED $ac_have_decl
9607 ac_fn_c_check_decl
"$LINENO" "fgets_unlocked" "ac_cv_have_decl_fgets_unlocked" "#include <stdio.h>
9609 if test "x$ac_cv_have_decl_fgets_unlocked" = xyes
; then :
9615 cat >>confdefs.h
<<_ACEOF
9616 #define HAVE_DECL_FGETS_UNLOCKED $ac_have_decl
9622 for ac_prog
in bison
9624 # Extract the first word of "$ac_prog", so it can be a program name with args.
9625 set dummy
$ac_prog; ac_word
=$2
9626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9627 $as_echo_n "checking for $ac_word... " >&6; }
9628 if ${ac_cv_prog_INTLBISON+:} false
; then :
9629 $as_echo_n "(cached) " >&6
9631 if test -n "$INTLBISON"; then
9632 ac_cv_prog_INTLBISON
="$INTLBISON" # Let the user override the test.
9634 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9638 test -z "$as_dir" && as_dir
=.
9639 for ac_exec_ext
in '' $ac_executable_extensions; do
9640 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9641 ac_cv_prog_INTLBISON
="$ac_prog"
9642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9651 INTLBISON
=$ac_cv_prog_INTLBISON
9652 if test -n "$INTLBISON"; then
9653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
9654 $as_echo "$INTLBISON" >&6; }
9656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9657 $as_echo "no" >&6; }
9661 test -n "$INTLBISON" && break
9664 if test -z "$INTLBISON"; then
9667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
9668 $as_echo_n "checking version of bison... " >&6; }
9669 ac_prog_version
=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
9670 case $ac_prog_version in
9671 '') ac_prog_version
="v. ?.??, bad"; ac_verc_fail
=yes;;
9672 1.2[6-9]* |
1.
[3-9][0-9]* |
[2-9].
*)
9673 ac_prog_version
="$ac_prog_version, ok"; ac_verc_fail
=no
;;
9674 *) ac_prog_version
="$ac_prog_version, bad"; ac_verc_fail
=yes;;
9676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
9677 $as_echo "$ac_prog_version" >&6; }
9679 if test $ac_verc_fail = yes; then
9685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
9686 $as_echo_n "checking for long long int... " >&6; }
9687 if ${ac_cv_type_long_long_int+:} false
; then :
9688 $as_echo_n "(cached) " >&6
9690 ac_cv_type_long_long_int
=yes
9691 if test "x${ac_cv_prog_cc_c99-no}" = xno
; then
9692 ac_cv_type_long_long_int
=$ac_cv_type_unsigned_long_long_int
9693 if test $ac_cv_type_long_long_int = yes; then
9694 if test "$cross_compiling" = yes; then :
9697 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9698 /* end confdefs.h. */
9702 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
9703 # define LLONG_MAX (HALF - 1 + HALF)
9708 long long int n = 1;
9712 long long int m = n << i;
9715 if (LLONG_MAX / 2 < m)
9723 if ac_fn_c_try_run
"$LINENO"; then :
9726 ac_cv_type_long_long_int
=no
9728 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9729 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
9736 $as_echo "$ac_cv_type_long_long_int" >&6; }
9737 if test $ac_cv_type_long_long_int = yes; then
9739 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
9744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
9745 $as_echo_n "checking for wchar_t... " >&6; }
9746 if ${gt_cv_c_wchar_t+:} false
; then :
9747 $as_echo_n "(cached) " >&6
9749 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9750 /* end confdefs.h. */
9752 wchar_t foo = (wchar_t)'\0';
9761 if ac_fn_c_try_compile
"$LINENO"; then :
9766 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
9769 $as_echo "$gt_cv_c_wchar_t" >&6; }
9770 if test $gt_cv_c_wchar_t = yes; then
9772 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
9777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
9778 $as_echo_n "checking for wint_t... " >&6; }
9779 if ${gt_cv_c_wint_t+:} false
; then :
9780 $as_echo_n "(cached) " >&6
9782 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9783 /* end confdefs.h. */
9785 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
9787 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
9788 before <wchar.h>. */
9793 wint_t foo = (wchar_t)'\0';
9802 if ac_fn_c_try_compile
"$LINENO"; then :
9807 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
9810 $as_echo "$gt_cv_c_wint_t" >&6; }
9811 if test $gt_cv_c_wint_t = yes; then
9813 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
9820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
9821 $as_echo_n "checking for intmax_t... " >&6; }
9822 if ${gt_cv_c_intmax_t+:} false
; then :
9823 $as_echo_n "(cached) " >&6
9825 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9826 /* end confdefs.h. */
9830 #if HAVE_STDINT_H_WITH_UINTMAX
9833 #if HAVE_INTTYPES_H_WITH_UINTMAX
9834 #include <inttypes.h>
9846 if ac_fn_c_try_compile
"$LINENO"; then :
9847 gt_cv_c_intmax_t
=yes
9851 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
9854 $as_echo "$gt_cv_c_intmax_t" >&6; }
9855 if test $gt_cv_c_intmax_t = yes; then
9857 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
9863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
9864 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
9865 if ${gt_cv_func_printf_posix+:} false
; then :
9866 $as_echo_n "(cached) " >&6
9869 if test "$cross_compiling" = yes; then :
9871 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9872 /* end confdefs.h. */
9874 #if defined __NetBSD__ || defined __BEOS__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
9879 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9880 $EGREP "notposix" >/dev
/null
2>&1; then :
9881 gt_cv_func_printf_posix
="guessing no"
9883 gt_cv_func_printf_posix
="guessing yes"
9889 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9890 /* end confdefs.h. */
9894 /* The string "%2$d %1$d", with dollar characters protected from the shell's
9895 dollar expansion (possibly an autoconf bug). */
9896 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
9897 static char buf[100];
9900 sprintf (buf, format, 33, 55);
9901 return (strcmp (buf, "55 33") != 0);
9904 if ac_fn_c_try_run
"$LINENO"; then :
9905 gt_cv_func_printf_posix
=yes
9907 gt_cv_func_printf_posix
=no
9909 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9910 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
9916 $as_echo "$gt_cv_func_printf_posix" >&6; }
9917 case $gt_cv_func_printf_posix in
9920 $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
9926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library >= 2.1 or uClibc" >&5
9927 $as_echo_n "checking whether we are using the GNU C Library >= 2.1 or uClibc... " >&6; }
9928 if ${ac_cv_gnu_library_2_1+:} false
; then :
9929 $as_echo_n "(cached) " >&6
9931 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9932 /* end confdefs.h. */
9934 #include <features.h>
9935 #ifdef __GNU_LIBRARY__
9936 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
9945 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9946 $EGREP "Lucky" >/dev
/null
2>&1; then :
9947 ac_cv_gnu_library_2_1
=yes
9949 ac_cv_gnu_library_2_1
=no
9956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
9957 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
9959 GLIBC21
="$ac_cv_gnu_library_2_1"
9963 for ac_header
in stdint.h
9965 ac_fn_c_check_header_mongrel
"$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
9966 if test "x$ac_cv_header_stdint_h" = xyes
; then :
9967 cat >>confdefs.h
<<_ACEOF
9968 #define HAVE_STDINT_H 1
9975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
9976 $as_echo_n "checking for SIZE_MAX... " >&6; }
9977 if ${gl_cv_size_max+:} false
; then :
9978 $as_echo_n "(cached) " >&6
9982 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9983 /* end confdefs.h. */
9994 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9995 $EGREP "Found it" >/dev
/null
2>&1; then :
10000 if test -z "$gl_cv_size_max"; then
10001 if ac_fn_c_compute_int
"$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1" "#include <stddef.h>
10002 #include <limits.h>"; then :
10005 size_t_bits_minus_1
=
10008 if ac_fn_c_compute_int
"$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
10014 if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
10015 if test $fits_in_uint = 1; then
10016 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10017 /* end confdefs.h. */
10018 #include <stddef.h>
10020 extern unsigned long foo;
10030 if ac_fn_c_try_compile
"$LINENO"; then :
10033 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10035 if test $fits_in_uint = 1; then
10036 gl_cv_size_max
="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
10038 gl_cv_size_max
="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
10041 gl_cv_size_max
='((size_t)~(size_t)0)'
10046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
10047 $as_echo "$gl_cv_size_max" >&6; }
10048 if test "$gl_cv_size_max" != yes; then
10050 cat >>confdefs.h
<<_ACEOF
10051 #define SIZE_MAX $gl_cv_size_max
10059 for ac_header
in stdint.h
10061 ac_fn_c_check_header_mongrel
"$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
10062 if test "x$ac_cv_header_stdint_h" = xyes
; then :
10063 cat >>confdefs.h
<<_ACEOF
10064 #define HAVE_STDINT_H 1
10075 for ac_func
in $ac_func_list
10077 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10078 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10079 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
10080 cat >>confdefs.h
<<_ACEOF
10081 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
10095 $as_echo_n "checking for working fcntl.h... " >&6; }
10096 if ${gl_cv_header_working_fcntl_h+:} false
; then :
10097 $as_echo_n "(cached) " >&6
10099 if test "$cross_compiling" = yes; then :
10100 gl_cv_header_working_fcntl_h
=cross-compiling
10102 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10103 /* end confdefs.h. */
10104 #include <sys/types.h>
10105 #include <sys/stat.h>
10107 # include <unistd.h>
10108 #else /* on Windows with MSVC */
10110 # include <stdlib.h>
10111 # defined sleep(n) _sleep ((n) * 1000)
10115 #define O_NOATIME 0
10118 #define O_NOFOLLOW 0
10120 static int const constants[] =
10122 O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
10123 O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
10130 int result = !constants;
10133 static char const sym[] = "conftest.sym";
10134 if (symlink ("/dev/null", sym) != 0)
10138 int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0);
10145 if (unlink (sym) != 0 || symlink (".", sym) != 0)
10149 int fd = open (sym, O_RDONLY | O_NOFOLLOW);
10160 static char const file[] = "confdefs.h";
10161 int fd = open (file, O_RDONLY | O_NOATIME);
10167 if (fstat (fd, &st0) != 0)
10173 if (read (fd, &c, 1) != 1)
10177 if (close (fd) != 0)
10182 if (stat (file, &st1) != 0)
10185 if (st0.st_atime != st1.st_atime)
10197 if ac_fn_c_try_run
"$LINENO"; then :
10198 gl_cv_header_working_fcntl_h
=yes
10201 4) gl_cv_header_working_fcntl_h
='no (bad O_NOFOLLOW)';; #(
10202 64) gl_cv_header_working_fcntl_h
='no (bad O_NOATIME)';; #(
10203 68) gl_cv_header_working_fcntl_h
='no (bad O_NOATIME, O_NOFOLLOW)';; #(
10204 *) gl_cv_header_working_fcntl_h
='no';;
10207 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10208 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
10213 $as_echo "$gl_cv_header_working_fcntl_h" >&6; }
10215 case $gl_cv_header_working_fcntl_h in #(
10216 *O_NOATIME
* | no | cross-compiling
) ac_val
=0;; #(
10220 cat >>confdefs.h
<<_ACEOF
10221 #define HAVE_WORKING_O_NOATIME $ac_val
10225 case $gl_cv_header_working_fcntl_h in #(
10226 *O_NOFOLLOW
* | no | cross-compiling
) ac_val
=0;; #(
10230 cat >>confdefs.h
<<_ACEOF
10231 #define HAVE_WORKING_O_NOFOLLOW $ac_val
10236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
10237 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
10238 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false
; then :
10239 $as_echo_n "(cached) " >&6
10241 gt_save_LIBS
="$LIBS"
10242 LIBS
="$LIBS -Wl,-framework -Wl,CoreFoundation"
10243 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10244 /* end confdefs.h. */
10245 #include <CoreFoundation/CFPreferences.h>
10249 CFPreferencesCopyAppValue(NULL, NULL)
10254 if ac_fn_c_try_link
"$LINENO"; then :
10255 gt_cv_func_CFPreferencesCopyAppValue
=yes
10257 gt_cv_func_CFPreferencesCopyAppValue
=no
10259 rm -f core conftest.err conftest.
$ac_objext \
10260 conftest
$ac_exeext conftest.
$ac_ext
10261 LIBS
="$gt_save_LIBS"
10263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
10264 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
10265 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
10267 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
10270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
10271 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
10272 if ${gt_cv_func_CFLocaleCopyCurrent+:} false
; then :
10273 $as_echo_n "(cached) " >&6
10275 gt_save_LIBS
="$LIBS"
10276 LIBS
="$LIBS -Wl,-framework -Wl,CoreFoundation"
10277 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10278 /* end confdefs.h. */
10279 #include <CoreFoundation/CFLocale.h>
10283 CFLocaleCopyCurrent();
10288 if ac_fn_c_try_link
"$LINENO"; then :
10289 gt_cv_func_CFLocaleCopyCurrent
=yes
10291 gt_cv_func_CFLocaleCopyCurrent
=no
10293 rm -f core conftest.err conftest.
$ac_objext \
10294 conftest
$ac_exeext conftest.
$ac_ext
10295 LIBS
="$gt_save_LIBS"
10297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
10298 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
10299 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10301 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
10305 if test $gt_cv_func_CFPreferencesCopyAppValue = yes ||
test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10306 INTL_MACOSX_LIBS
="-Wl,-framework -Wl,CoreFoundation"
10318 case "$enable_silent_rules" in
10319 yes) INTL_DEFAULT_VERBOSITY
=0;;
10320 no
) INTL_DEFAULT_VERBOSITY
=1;;
10321 *) INTL_DEFAULT_VERBOSITY
=1;;
10325 ac_fn_c_check_type
"$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
10326 if test "x$ac_cv_type_ptrdiff_t" = xyes
; then :
10330 $as_echo "#define ptrdiff_t long" >>confdefs.h
10335 for ac_header
in features.h stddef.h stdlib.h string.h
10337 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10338 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10339 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
10340 cat >>confdefs.h
<<_ACEOF
10341 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10348 for ac_func
in asprintf fwprintf newlocale putenv setenv setlocale \
10349 snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb
10351 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10352 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10353 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
10354 cat >>confdefs.h
<<_ACEOF
10355 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10362 ac_fn_c_check_decl
"$LINENO" "_snprintf" "ac_cv_have_decl__snprintf" "#include <stdio.h>
10364 if test "x$ac_cv_have_decl__snprintf" = xyes
; then :
10370 cat >>confdefs.h
<<_ACEOF
10371 #define HAVE_DECL__SNPRINTF $ac_have_decl
10373 ac_fn_c_check_decl
"$LINENO" "_snwprintf" "ac_cv_have_decl__snwprintf" "#include <stdio.h>
10375 if test "x$ac_cv_have_decl__snwprintf" = xyes
; then :
10381 cat >>confdefs.h
<<_ACEOF
10382 #define HAVE_DECL__SNWPRINTF $ac_have_decl
10386 ac_fn_c_check_decl
"$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "#include <stdio.h>
10388 if test "x$ac_cv_have_decl_getc_unlocked" = xyes
; then :
10394 cat >>confdefs.h
<<_ACEOF
10395 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
10399 case $gt_cv_func_printf_posix in
10400 *yes) HAVE_POSIX_PRINTF
=1 ;;
10401 *) HAVE_POSIX_PRINTF
=0 ;;
10404 if test "$ac_cv_func_asprintf" = yes; then
10410 if test "$ac_cv_func_snprintf" = yes; then
10416 if test "$ac_cv_func_newlocale" = yes; then
10422 if test "$ac_cv_func_wprintf" = yes; then
10430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10431 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10432 if ${am_cv_langinfo_codeset+:} false
; then :
10433 $as_echo_n "(cached) " >&6
10435 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10436 /* end confdefs.h. */
10437 #include <langinfo.h>
10441 char* cs = nl_langinfo(CODESET); return !cs;
10446 if ac_fn_c_try_link
"$LINENO"; then :
10447 am_cv_langinfo_codeset
=yes
10449 am_cv_langinfo_codeset
=no
10451 rm -f core conftest.err conftest.
$ac_objext \
10452 conftest
$ac_exeext conftest.
$ac_ext
10455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10456 $as_echo "$am_cv_langinfo_codeset" >&6; }
10457 if test $am_cv_langinfo_codeset = yes; then
10459 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10465 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10466 if ${gt_cv_val_LC_MESSAGES+:} false
; then :
10467 $as_echo_n "(cached) " >&6
10469 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10470 /* end confdefs.h. */
10471 #include <locale.h>
10480 if ac_fn_c_try_link
"$LINENO"; then :
10481 gt_cv_val_LC_MESSAGES
=yes
10483 gt_cv_val_LC_MESSAGES
=no
10485 rm -f core conftest.err conftest.
$ac_objext \
10486 conftest
$ac_exeext conftest.
$ac_ext
10488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
10489 $as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
10490 if test $gt_cv_val_LC_MESSAGES = yes; then
10492 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10497 if test "$enable_shared" = yes; then
10499 mingw
* | cygwin
*) is_woe32dll
=yes ;;
10500 *) is_woe32dll
=no
;;
10505 WOE32DLL
=$is_woe32dll
10509 mingw
* | cygwin
*) is_woe32
=yes ;;
10514 if test $WOE32 = yes; then
10515 if test -n "$ac_tool_prefix"; then
10516 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
10517 set dummy
${ac_tool_prefix}windres
; ac_word
=$2
10518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10519 $as_echo_n "checking for $ac_word... " >&6; }
10520 if ${ac_cv_prog_WINDRES+:} false
; then :
10521 $as_echo_n "(cached) " >&6
10523 if test -n "$WINDRES"; then
10524 ac_cv_prog_WINDRES
="$WINDRES" # Let the user override the test.
10526 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10527 for as_dir
in $PATH
10530 test -z "$as_dir" && as_dir
=.
10531 for ac_exec_ext
in '' $ac_executable_extensions; do
10532 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10533 ac_cv_prog_WINDRES
="${ac_tool_prefix}windres"
10534 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10543 WINDRES
=$ac_cv_prog_WINDRES
10544 if test -n "$WINDRES"; then
10545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
10546 $as_echo "$WINDRES" >&6; }
10548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10549 $as_echo "no" >&6; }
10554 if test -z "$ac_cv_prog_WINDRES"; then
10555 ac_ct_WINDRES
=$WINDRES
10556 # Extract the first word of "windres", so it can be a program name with args.
10557 set dummy windres
; ac_word
=$2
10558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10559 $as_echo_n "checking for $ac_word... " >&6; }
10560 if ${ac_cv_prog_ac_ct_WINDRES+:} false
; then :
10561 $as_echo_n "(cached) " >&6
10563 if test -n "$ac_ct_WINDRES"; then
10564 ac_cv_prog_ac_ct_WINDRES
="$ac_ct_WINDRES" # Let the user override the test.
10566 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10567 for as_dir
in $PATH
10570 test -z "$as_dir" && as_dir
=.
10571 for ac_exec_ext
in '' $ac_executable_extensions; do
10572 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10573 ac_cv_prog_ac_ct_WINDRES
="windres"
10574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10583 ac_ct_WINDRES
=$ac_cv_prog_ac_ct_WINDRES
10584 if test -n "$ac_ct_WINDRES"; then
10585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
10586 $as_echo "$ac_ct_WINDRES" >&6; }
10588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10589 $as_echo "no" >&6; }
10592 if test "x$ac_ct_WINDRES" = x
; then
10595 case $cross_compiling:$ac_tool_warned in
10597 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10598 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10599 ac_tool_warned
=yes ;;
10601 WINDRES
=$ac_ct_WINDRES
10604 WINDRES
="$ac_cv_prog_WINDRES"
10610 hpux
*) LTLIBC
="" ;;
10640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
10641 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
10642 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false
; then :
10643 $as_echo_n "(cached) " >&6
10645 gt_save_LIBS
="$LIBS"
10646 LIBS
="$LIBS -Wl,-framework -Wl,CoreFoundation"
10647 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10648 /* end confdefs.h. */
10649 #include <CoreFoundation/CFPreferences.h>
10653 CFPreferencesCopyAppValue(NULL, NULL)
10658 if ac_fn_c_try_link
"$LINENO"; then :
10659 gt_cv_func_CFPreferencesCopyAppValue
=yes
10661 gt_cv_func_CFPreferencesCopyAppValue
=no
10663 rm -f core conftest.err conftest.
$ac_objext \
10664 conftest
$ac_exeext conftest.
$ac_ext
10665 LIBS
="$gt_save_LIBS"
10667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
10668 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
10669 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
10671 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
10674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
10675 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
10676 if ${gt_cv_func_CFLocaleCopyCurrent+:} false
; then :
10677 $as_echo_n "(cached) " >&6
10679 gt_save_LIBS
="$LIBS"
10680 LIBS
="$LIBS -Wl,-framework -Wl,CoreFoundation"
10681 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10682 /* end confdefs.h. */
10683 #include <CoreFoundation/CFLocale.h>
10687 CFLocaleCopyCurrent();
10692 if ac_fn_c_try_link
"$LINENO"; then :
10693 gt_cv_func_CFLocaleCopyCurrent
=yes
10695 gt_cv_func_CFLocaleCopyCurrent
=no
10697 rm -f core conftest.err conftest.
$ac_objext \
10698 conftest
$ac_exeext conftest.
$ac_ext
10699 LIBS
="$gt_save_LIBS"
10701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
10702 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
10703 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10705 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
10709 if test $gt_cv_func_CFPreferencesCopyAppValue = yes ||
test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10710 INTL_MACOSX_LIBS
="-Wl,-framework -Wl,CoreFoundation"
10718 BUILD_INCLUDED_LIBINTL
=no
10719 USE_INCLUDED_LIBINTL
=no
10725 case " $gt_needs " in
10726 *" need-formatstring-macros "*) gt_api_version
=3 ;;
10727 *" need-ngettext "*) gt_api_version
=2 ;;
10728 *) gt_api_version
=1 ;;
10730 gt_func_gnugettext_libc
="gt_cv_func_gnugettext${gt_api_version}_libc"
10731 gt_func_gnugettext_libintl
="gt_cv_func_gnugettext${gt_api_version}_libintl"
10733 if test "$USE_NLS" = "yes"; then
10734 gt_use_preinstalled_gnugettext
=no
10736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
10737 $as_echo_n "checking whether included gettext is requested... " >&6; }
10739 # Check whether --with-included-gettext was given.
10740 if test "${with_included_gettext+set}" = set; then :
10741 withval
=$with_included_gettext; nls_cv_force_use_gnu_gettext
=$withval
10743 nls_cv_force_use_gnu_gettext
=no
10746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
10747 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
10749 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
10750 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
10753 if test $gt_api_version -ge 3; then
10754 gt_revision_test_code
='
10755 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
10756 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
10758 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
10761 gt_revision_test_code
=
10763 if test $gt_api_version -ge 2; then
10764 gt_expression_test_code
=' + * ngettext ("", "", 0)'
10766 gt_expression_test_code
=
10769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
10770 $as_echo_n "checking for GNU gettext in libc... " >&6; }
10771 if eval \
${$gt_func_gnugettext_libc+:} false
; then :
10772 $as_echo_n "(cached) " >&6
10774 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10775 /* end confdefs.h. */
10777 #include <libintl.h>
10778 $gt_revision_test_code
10779 extern int _nl_msg_cat_cntr;
10780 extern int *_nl_domain_bindings;
10786 bindtextdomain ("", "");
10787 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
10793 if ac_fn_c_try_link
"$LINENO"; then :
10794 eval "$gt_func_gnugettext_libc=yes"
10796 eval "$gt_func_gnugettext_libc=no"
10798 rm -f core conftest.err conftest.
$ac_objext \
10799 conftest
$ac_exeext conftest.
$ac_ext
10801 eval ac_res
=\$
$gt_func_gnugettext_libc
10802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10803 $as_echo "$ac_res" >&6; }
10805 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
10816 acl_save_prefix
="$prefix"
10817 prefix
="$acl_final_prefix"
10818 acl_save_exec_prefix
="$exec_prefix"
10819 exec_prefix
="$acl_final_exec_prefix"
10821 eval additional_includedir
=\"$includedir\"
10822 eval additional_libdir
=\"$libdir\"
10824 exec_prefix
="$acl_save_exec_prefix"
10825 prefix
="$acl_save_prefix"
10828 # Check whether --with-libintl-prefix was given.
10829 if test "${with_libintl_prefix+set}" = set; then :
10830 withval
=$with_libintl_prefix;
10831 if test "X$withval" = "Xno"; then
10834 if test "X$withval" = "X"; then
10836 acl_save_prefix
="$prefix"
10837 prefix
="$acl_final_prefix"
10838 acl_save_exec_prefix
="$exec_prefix"
10839 exec_prefix
="$acl_final_exec_prefix"
10841 eval additional_includedir
=\"$includedir\"
10842 eval additional_libdir
=\"$libdir\"
10844 exec_prefix
="$acl_save_exec_prefix"
10845 prefix
="$acl_save_prefix"
10848 additional_includedir
="$withval/include"
10849 additional_libdir
="$withval/$acl_libdirstem"
10850 if test "$acl_libdirstem2" != "$acl_libdirstem" \
10851 && ! test -d "$withval/$acl_libdirstem"; then
10852 additional_libdir
="$withval/$acl_libdirstem2"
10866 names_already_handled
=
10867 names_next_round
='intl '
10868 while test -n "$names_next_round"; do
10869 names_this_round
="$names_next_round"
10871 for name
in $names_this_round; do
10873 for n
in $names_already_handled; do
10874 if test "$n" = "$name"; then
10875 already_handled
=yes
10879 if test -z "$already_handled"; then
10880 names_already_handled
="$names_already_handled $name"
10881 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
10882 eval value
=\"\
$HAVE_LIB$uppername\"
10883 if test -n "$value"; then
10884 if test "$value" = yes; then
10885 eval value
=\"\
$LIB$uppername\"
10886 test -z "$value" || LIBINTL
="${LIBINTL}${LIBINTL:+ }$value"
10887 eval value
=\"\
$LTLIB$uppername\"
10888 test -z "$value" || LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }$value"
10897 eval libname
=\"$acl_libname_spec\" # typically: libname=lib$name
10898 if test -n "$acl_shlibext"; then
10899 shrext
=".$acl_shlibext" # typically: shrext=.so
10903 if test $use_additional = yes; then
10904 dir
="$additional_libdir"
10905 if test -n "$acl_shlibext"; then
10906 if test -f "$dir/$libname$shrext"; then
10908 found_so
="$dir/$libname$shrext"
10910 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
10911 ver
=`(cd "$dir" && \
10912 for f in "$libname$shrext".*; do echo "$f"; done \
10913 | sed -e "s,^$libname$shrext\\\\.,," \
10914 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
10915 | sed 1q ) 2>/dev/null`
10916 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
10918 found_so
="$dir/$libname$shrext.$ver"
10921 eval library_names
=\"$acl_library_names_spec\"
10922 for f
in $library_names; do
10923 if test -f "$dir/$f"; then
10932 if test "X$found_dir" = "X"; then
10933 if test -f "$dir/$libname.$acl_libext"; then
10935 found_a
="$dir/$libname.$acl_libext"
10938 if test "X$found_dir" != "X"; then
10939 if test -f "$dir/$libname.la"; then
10940 found_la
="$dir/$libname.la"
10944 if test "X$found_dir" = "X"; then
10945 for x
in $LDFLAGS $LTLIBINTL; do
10947 acl_save_prefix
="$prefix"
10948 prefix
="$acl_final_prefix"
10949 acl_save_exec_prefix
="$exec_prefix"
10950 exec_prefix
="$acl_final_exec_prefix"
10952 exec_prefix
="$acl_save_exec_prefix"
10953 prefix
="$acl_save_prefix"
10957 dir
=`echo "X$x" | sed -e 's/^X-L//'`
10958 if test -n "$acl_shlibext"; then
10959 if test -f "$dir/$libname$shrext"; then
10961 found_so
="$dir/$libname$shrext"
10963 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
10964 ver
=`(cd "$dir" && \
10965 for f in "$libname$shrext".*; do echo "$f"; done \
10966 | sed -e "s,^$libname$shrext\\\\.,," \
10967 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
10968 | sed 1q ) 2>/dev/null`
10969 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
10971 found_so
="$dir/$libname$shrext.$ver"
10974 eval library_names
=\"$acl_library_names_spec\"
10975 for f
in $library_names; do
10976 if test -f "$dir/$f"; then
10985 if test "X$found_dir" = "X"; then
10986 if test -f "$dir/$libname.$acl_libext"; then
10988 found_a
="$dir/$libname.$acl_libext"
10991 if test "X$found_dir" != "X"; then
10992 if test -f "$dir/$libname.la"; then
10993 found_la
="$dir/$libname.la"
10998 if test "X$found_dir" != "X"; then
11003 if test "X$found_dir" != "X"; then
11004 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
11005 if test "X$found_so" != "X"; then
11006 if test "$enable_rpath" = no \
11007 ||
test "X$found_dir" = "X/usr/$acl_libdirstem" \
11008 ||
test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
11009 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
11012 for x
in $ltrpathdirs; do
11013 if test "X$x" = "X$found_dir"; then
11018 if test -z "$haveit"; then
11019 ltrpathdirs
="$ltrpathdirs $found_dir"
11021 if test "$acl_hardcode_direct" = yes; then
11022 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
11024 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no
; then
11025 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
11027 for x
in $rpathdirs; do
11028 if test "X$x" = "X$found_dir"; then
11033 if test -z "$haveit"; then
11034 rpathdirs
="$rpathdirs $found_dir"
11038 for x
in $LDFLAGS $LIBINTL; do
11040 acl_save_prefix
="$prefix"
11041 prefix
="$acl_final_prefix"
11042 acl_save_exec_prefix
="$exec_prefix"
11043 exec_prefix
="$acl_final_exec_prefix"
11045 exec_prefix
="$acl_save_exec_prefix"
11046 prefix
="$acl_save_prefix"
11048 if test "X$x" = "X-L$found_dir"; then
11053 if test -z "$haveit"; then
11054 LIBINTL
="${LIBINTL}${LIBINTL:+ }-L$found_dir"
11056 if test "$acl_hardcode_minus_L" != no
; then
11057 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
11059 LIBINTL
="${LIBINTL}${LIBINTL:+ }-l$name"
11065 if test "X$found_a" != "X"; then
11066 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_a"
11068 LIBINTL
="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
11071 additional_includedir
=
11072 case "$found_dir" in
11073 */$acl_libdirstem |
*/$acl_libdirstem/)
11074 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
11075 if test "$name" = 'intl'; then
11076 LIBINTL_PREFIX
="$basedir"
11078 additional_includedir
="$basedir/include"
11080 */$acl_libdirstem2 |
*/$acl_libdirstem2/)
11081 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
11082 if test "$name" = 'intl'; then
11083 LIBINTL_PREFIX
="$basedir"
11085 additional_includedir
="$basedir/include"
11088 if test "X$additional_includedir" != "X"; then
11089 if test "X$additional_includedir" != "X/usr/include"; then
11091 if test "X$additional_includedir" = "X/usr/local/include"; then
11092 if test -n "$GCC"; then
11094 linux
* | gnu
* | k
*bsd
*-gnu) haveit
=yes;;
11098 if test -z "$haveit"; then
11099 for x
in $CPPFLAGS $INCINTL; do
11101 acl_save_prefix
="$prefix"
11102 prefix
="$acl_final_prefix"
11103 acl_save_exec_prefix
="$exec_prefix"
11104 exec_prefix
="$acl_final_exec_prefix"
11106 exec_prefix
="$acl_save_exec_prefix"
11107 prefix
="$acl_save_prefix"
11109 if test "X$x" = "X-I$additional_includedir"; then
11114 if test -z "$haveit"; then
11115 if test -d "$additional_includedir"; then
11116 INCINTL
="${INCINTL}${INCINTL:+ }-I$additional_includedir"
11122 if test -n "$found_la"; then
11123 save_libdir
="$libdir"
11124 case "$found_la" in
11125 */* |
*\\*) .
"$found_la" ;;
11126 *) .
"./$found_la" ;;
11128 libdir
="$save_libdir"
11129 for dep
in $dependency_libs; do
11132 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
11133 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
11134 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
11136 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
11137 ||
test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
11138 if test -n "$GCC"; then
11140 linux
* | gnu
* | k
*bsd
*-gnu) haveit
=yes;;
11144 if test -z "$haveit"; then
11146 for x
in $LDFLAGS $LIBINTL; do
11148 acl_save_prefix
="$prefix"
11149 prefix
="$acl_final_prefix"
11150 acl_save_exec_prefix
="$exec_prefix"
11151 exec_prefix
="$acl_final_exec_prefix"
11153 exec_prefix
="$acl_save_exec_prefix"
11154 prefix
="$acl_save_prefix"
11156 if test "X$x" = "X-L$additional_libdir"; then
11161 if test -z "$haveit"; then
11162 if test -d "$additional_libdir"; then
11163 LIBINTL
="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
11167 for x
in $LDFLAGS $LTLIBINTL; do
11169 acl_save_prefix
="$prefix"
11170 prefix
="$acl_final_prefix"
11171 acl_save_exec_prefix
="$exec_prefix"
11172 exec_prefix
="$acl_final_exec_prefix"
11174 exec_prefix
="$acl_save_exec_prefix"
11175 prefix
="$acl_save_prefix"
11177 if test "X$x" = "X-L$additional_libdir"; then
11182 if test -z "$haveit"; then
11183 if test -d "$additional_libdir"; then
11184 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
11191 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
11192 if test "$enable_rpath" != no
; then
11194 for x
in $rpathdirs; do
11195 if test "X$x" = "X$dir"; then
11200 if test -z "$haveit"; then
11201 rpathdirs
="$rpathdirs $dir"
11204 for x
in $ltrpathdirs; do
11205 if test "X$x" = "X$dir"; then
11210 if test -z "$haveit"; then
11211 ltrpathdirs
="$ltrpathdirs $dir"
11216 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11219 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11222 LIBINTL
="${LIBINTL}${LIBINTL:+ }$dep"
11223 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }$dep"
11229 LIBINTL
="${LIBINTL}${LIBINTL:+ }-l$name"
11230 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
11236 if test "X$rpathdirs" != "X"; then
11237 if test -n "$acl_hardcode_libdir_separator"; then
11239 for found_dir
in $rpathdirs; do
11240 alldirs
="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
11242 acl_save_libdir
="$libdir"
11244 eval flag
=\"$acl_hardcode_libdir_flag_spec\"
11245 libdir
="$acl_save_libdir"
11246 LIBINTL
="${LIBINTL}${LIBINTL:+ }$flag"
11248 for found_dir
in $rpathdirs; do
11249 acl_save_libdir
="$libdir"
11250 libdir
="$found_dir"
11251 eval flag
=\"$acl_hardcode_libdir_flag_spec\"
11252 libdir
="$acl_save_libdir"
11253 LIBINTL
="${LIBINTL}${LIBINTL:+ }$flag"
11257 if test "X$ltrpathdirs" != "X"; then
11258 for found_dir
in $ltrpathdirs; do
11259 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
11268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
11269 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
11270 if eval \
${$gt_func_gnugettext_libintl+:} false
; then :
11271 $as_echo_n "(cached) " >&6
11273 gt_save_CPPFLAGS
="$CPPFLAGS"
11274 CPPFLAGS
="$CPPFLAGS $INCINTL"
11275 gt_save_LIBS
="$LIBS"
11276 LIBS
="$LIBS $LIBINTL"
11277 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11278 /* end confdefs.h. */
11280 #include <libintl.h>
11281 $gt_revision_test_code
11282 extern int _nl_msg_cat_cntr;
11287 const char *_nl_expand_alias (const char *);
11293 bindtextdomain ("", "");
11294 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
11300 if ac_fn_c_try_link
"$LINENO"; then :
11301 eval "$gt_func_gnugettext_libintl=yes"
11303 eval "$gt_func_gnugettext_libintl=no"
11305 rm -f core conftest.err conftest.
$ac_objext \
11306 conftest
$ac_exeext conftest.
$ac_ext
11307 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
11308 LIBS
="$LIBS $LIBICONV"
11309 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11310 /* end confdefs.h. */
11312 #include <libintl.h>
11313 $gt_revision_test_code
11314 extern int _nl_msg_cat_cntr;
11319 const char *_nl_expand_alias (const char *);
11325 bindtextdomain ("", "");
11326 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
11332 if ac_fn_c_try_link
"$LINENO"; then :
11333 LIBINTL
="$LIBINTL $LIBICONV"
11334 LTLIBINTL
="$LTLIBINTL $LTLIBICONV"
11335 eval "$gt_func_gnugettext_libintl=yes"
11338 rm -f core conftest.err conftest.
$ac_objext \
11339 conftest
$ac_exeext conftest.
$ac_ext
11341 CPPFLAGS
="$gt_save_CPPFLAGS"
11342 LIBS
="$gt_save_LIBS"
11344 eval ac_res
=\$
$gt_func_gnugettext_libintl
11345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11346 $as_echo "$ac_res" >&6; }
11349 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
11350 ||
{ { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
11351 && test "$PACKAGE" != gettext-runtime \
11352 && test "$PACKAGE" != gettext-tools
; }; then
11353 gt_use_preinstalled_gnugettext
=yes
11361 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
11362 nls_cv_use_gnu_gettext
=yes
11366 if test "$nls_cv_use_gnu_gettext" = "yes"; then
11367 BUILD_INCLUDED_LIBINTL
=yes
11368 USE_INCLUDED_LIBINTL
=yes
11369 LIBINTL
="\${top_builddir}/intl/libintl.a $LIBICONV $LIBTHREAD"
11370 LTLIBINTL
="\${top_builddir}/intl/libintl.a $LTLIBICONV $LTLIBTHREAD"
11371 LIBS
=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
11375 if test "$gt_use_preinstalled_gnugettext" = "yes" \
11376 ||
test "$nls_cv_use_gnu_gettext" = "yes"; then
11381 if test -n "$INTL_MACOSX_LIBS"; then
11382 if test "$gt_use_preinstalled_gnugettext" = "yes" \
11383 ||
test "$nls_cv_use_gnu_gettext" = "yes"; then
11384 LIBINTL
="$LIBINTL $INTL_MACOSX_LIBS"
11385 LTLIBINTL
="$LTLIBINTL $INTL_MACOSX_LIBS"
11389 if test "$gt_use_preinstalled_gnugettext" = "yes" \
11390 ||
test "$nls_cv_use_gnu_gettext" = "yes"; then
11392 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
11400 $as_echo_n "checking whether to use NLS... " >&6; }
11401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
11402 $as_echo "$USE_NLS" >&6; }
11403 if test "$USE_NLS" = "yes"; then
11404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
11405 $as_echo_n "checking where the gettext function comes from... " >&6; }
11406 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
11407 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
11408 gt_source
="external libintl"
11413 gt_source
="included intl directory"
11415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
11416 $as_echo "$gt_source" >&6; }
11419 if test "$USE_NLS" = "yes"; then
11421 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
11422 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
11423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
11424 $as_echo_n "checking how to link with libintl... " >&6; }
11425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
11426 $as_echo "$LIBINTL" >&6; }
11428 for element
in $INCINTL; do
11430 for x
in $CPPFLAGS; do
11432 acl_save_prefix
="$prefix"
11433 prefix
="$acl_final_prefix"
11434 acl_save_exec_prefix
="$exec_prefix"
11435 exec_prefix
="$acl_final_exec_prefix"
11437 exec_prefix
="$acl_save_exec_prefix"
11438 prefix
="$acl_save_prefix"
11440 if test "X$x" = "X$element"; then
11445 if test -z "$haveit"; then
11446 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
11453 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
11456 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
11464 if test "$PACKAGE" = gettext-runtime ||
test "$PACKAGE" = gettext-tools
; then
11465 BUILD_INCLUDED_LIBINTL
=yes
11472 nls_cv_header_intl
=
11473 nls_cv_header_libgt
=
11485 if test "$USE_INCLUDED_LIBINTL" = yes; then
11486 INTLOBJS
="\$(GETTOBJS)"
11490 INTL_LIBTOOL_SUFFIX_PREFIX
=
11494 INTLLIBS
="$LIBINTL"
11502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
11503 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
11505 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
11506 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
11507 $as_echo_n "(cached) " >&6
11509 cat >conftest.
make <<\_ACEOF
11512 @
echo '@@@%%%=$(MAKE)=@@@%%%'
11514 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
11515 case `${MAKE-make} -f conftest.make 2>/dev/null` in
11516 *@@@
%%%=?
*=@@@
%%%*)
11517 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
11519 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
11521 rm -f conftest.
make
11523 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
11524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11525 $as_echo "yes" >&6; }
11528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11529 $as_echo "no" >&6; }
11530 SET_MAKE
="MAKE=${MAKE-make}"
11533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
11534 $as_echo_n "checking for GNU make... " >&6; }
11535 if ${_cv_gnu_make_command+:} false
; then :
11536 $as_echo_n "(cached) " >&6
11538 _cv_gnu_make_command
='' ;
11539 if test -n "$FORCE_NATIVE_MAKE" ; then
11542 MAKES
="make gmake gnumake"
11544 for a
in "$MAKE" $MAKES ; do
11545 if test -z "$a" ; then continue ; fi ;
11546 if ( sh
-c "$a --version" 2> /dev
/null |
grep GNU
2>&1 > /dev
/null
) ; then
11547 _cv_gnu_make_command
=$a ;
11553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5
11554 $as_echo "$_cv_gnu_make_command" >&6; } ;
11555 if test "x$_cv_gnu_make_command" != "x" ; then
11561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5
11562 $as_echo "\"Not found\"" >&6; };
11567 # Extract the first word of "ln", so it can be a program name with args.
11568 set dummy
ln; ac_word
=$2
11569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11570 $as_echo_n "checking for $ac_word... " >&6; }
11571 if ${ac_cv_path_LN+:} false
; then :
11572 $as_echo_n "(cached) " >&6
11576 ac_cv_path_LN
="$LN" # Let the user override the test with a path.
11579 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11580 for as_dir
in $PATH
11583 test -z "$as_dir" && as_dir
=.
11584 for ac_exec_ext
in '' $ac_executable_extensions; do
11585 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11586 ac_cv_path_LN
="$as_dir/$ac_word$ac_exec_ext"
11587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11594 test -z "$ac_cv_path_LN" && ac_cv_path_LN
="ln"
11599 if test -n "$LN"; then
11600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
11601 $as_echo "$LN" >&6; }
11603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11604 $as_echo "no" >&6; }
11609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
11610 $as_echo_n "checking whether ln -s works... " >&6; }
11612 if test "$LN_S" = "ln -s"; then
11613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11614 $as_echo "yes" >&6; }
11616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
11617 $as_echo "no, using $LN_S" >&6; }
11620 # Extract the first word of "mv", so it can be a program name with args.
11621 set dummy
mv; ac_word
=$2
11622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11623 $as_echo_n "checking for $ac_word... " >&6; }
11624 if ${ac_cv_path_MV+:} false
; then :
11625 $as_echo_n "(cached) " >&6
11629 ac_cv_path_MV
="$MV" # Let the user override the test with a path.
11632 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11633 for as_dir
in $PATH
11636 test -z "$as_dir" && as_dir
=.
11637 for ac_exec_ext
in '' $ac_executable_extensions; do
11638 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11639 ac_cv_path_MV
="$as_dir/$ac_word$ac_exec_ext"
11640 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11647 test -z "$ac_cv_path_MV" && ac_cv_path_MV
="mv"
11652 if test -n "$MV"; then
11653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
11654 $as_echo "$MV" >&6; }
11656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11657 $as_echo "no" >&6; }
11661 # Extract the first word of "cp", so it can be a program name with args.
11662 set dummy
cp; ac_word
=$2
11663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11664 $as_echo_n "checking for $ac_word... " >&6; }
11665 if ${ac_cv_path_CP+:} false
; then :
11666 $as_echo_n "(cached) " >&6
11670 ac_cv_path_CP
="$CP" # Let the user override the test with a path.
11673 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11674 for as_dir
in $PATH
11677 test -z "$as_dir" && as_dir
=.
11678 for ac_exec_ext
in '' $ac_executable_extensions; do
11679 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11680 ac_cv_path_CP
="$as_dir/$ac_word$ac_exec_ext"
11681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11688 test -z "$ac_cv_path_CP" && ac_cv_path_CP
="cp"
11693 if test -n "$CP"; then
11694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
11695 $as_echo "$CP" >&6; }
11697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11698 $as_echo "no" >&6; }
11702 # Extract the first word of "rm", so it can be a program name with args.
11703 set dummy
rm; ac_word
=$2
11704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11705 $as_echo_n "checking for $ac_word... " >&6; }
11706 if ${ac_cv_path_RM+:} false
; then :
11707 $as_echo_n "(cached) " >&6
11711 ac_cv_path_RM
="$RM" # Let the user override the test with a path.
11714 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11715 for as_dir
in $PATH
11718 test -z "$as_dir" && as_dir
=.
11719 for ac_exec_ext
in '' $ac_executable_extensions; do
11720 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11721 ac_cv_path_RM
="$as_dir/$ac_word$ac_exec_ext"
11722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11729 test -z "$ac_cv_path_RM" && ac_cv_path_RM
="rm"
11734 if test -n "$RM"; then
11735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
11736 $as_echo "$RM" >&6; }
11738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11739 $as_echo "no" >&6; }
11743 # Extract the first word of "chmod", so it can be a program name with args.
11744 set dummy
chmod; ac_word
=$2
11745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11746 $as_echo_n "checking for $ac_word... " >&6; }
11747 if ${ac_cv_path_CHMOD+:} false
; then :
11748 $as_echo_n "(cached) " >&6
11752 ac_cv_path_CHMOD
="$CHMOD" # Let the user override the test with a path.
11755 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11756 for as_dir
in $PATH
11759 test -z "$as_dir" && as_dir
=.
11760 for ac_exec_ext
in '' $ac_executable_extensions; do
11761 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11762 ac_cv_path_CHMOD
="$as_dir/$ac_word$ac_exec_ext"
11763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11770 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD
=":"
11774 CHMOD
=$ac_cv_path_CHMOD
11775 if test -n "$CHMOD"; then
11776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
11777 $as_echo "$CHMOD" >&6; }
11779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11780 $as_echo "no" >&6; }
11784 for ac_prog
in gawk mawk nawk
awk
11786 # Extract the first word of "$ac_prog", so it can be a program name with args.
11787 set dummy
$ac_prog; ac_word
=$2
11788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11789 $as_echo_n "checking for $ac_word... " >&6; }
11790 if ${ac_cv_prog_AWK+:} false
; then :
11791 $as_echo_n "(cached) " >&6
11793 if test -n "$AWK"; then
11794 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
11796 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11797 for as_dir
in $PATH
11800 test -z "$as_dir" && as_dir
=.
11801 for ac_exec_ext
in '' $ac_executable_extensions; do
11802 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11803 ac_cv_prog_AWK
="$ac_prog"
11804 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11813 AWK
=$ac_cv_prog_AWK
11814 if test -n "$AWK"; then
11815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
11816 $as_echo "$AWK" >&6; }
11818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11819 $as_echo "no" >&6; }
11823 test -n "$AWK" && break
11826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
11827 $as_echo_n "checking for egrep... " >&6; }
11828 if ${ac_cv_path_EGREP+:} false
; then :
11829 $as_echo_n "(cached) " >&6
11831 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
11832 then ac_cv_path_EGREP
="$GREP -E"
11834 if test -z "$EGREP"; then
11835 ac_path_EGREP_found
=false
11836 # Loop through the user's path and test for each of PROGNAME-LIST
11837 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11838 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
11841 test -z "$as_dir" && as_dir
=.
11842 for ac_prog
in egrep; do
11843 for ac_exec_ext
in '' $ac_executable_extensions; do
11844 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
11845 as_fn_executable_p
"$ac_path_EGREP" ||
continue
11846 # Check for GNU ac_path_EGREP and select it if it is found.
11847 # Check for GNU $ac_path_EGREP
11848 case `"$ac_path_EGREP" --version 2>&1` in
11850 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
11853 $as_echo_n 0123456789 >"conftest.in"
11856 cat "conftest.in" "conftest.in" >"conftest.tmp"
11857 mv "conftest.tmp" "conftest.in"
11858 cp "conftest.in" "conftest.nl"
11859 $as_echo 'EGREP' >> "conftest.nl"
11860 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
11861 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
11862 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
11863 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11864 # Best one so far, save it but keep looking for a better one
11865 ac_cv_path_EGREP
="$ac_path_EGREP"
11866 ac_path_EGREP_max
=$ac_count
11868 # 10*(2^10) chars as input seems more than enough
11869 test $ac_count -gt 10 && break
11871 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
11874 $ac_path_EGREP_found && break 3
11879 if test -z "$ac_cv_path_EGREP"; then
11880 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11883 ac_cv_path_EGREP
=$EGREP
11888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
11889 $as_echo "$ac_cv_path_EGREP" >&6; }
11890 EGREP
="$ac_cv_path_EGREP"
11893 # Extract the first word of "sed", so it can be a program name with args.
11894 set dummy
sed; ac_word
=$2
11895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11896 $as_echo_n "checking for $ac_word... " >&6; }
11897 if ${ac_cv_path_SED+:} false
; then :
11898 $as_echo_n "(cached) " >&6
11902 ac_cv_path_SED
="$SED" # Let the user override the test with a path.
11905 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11906 for as_dir
in $PATH
11909 test -z "$as_dir" && as_dir
=.
11910 for ac_exec_ext
in '' $ac_executable_extensions; do
11911 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11912 ac_cv_path_SED
="$as_dir/$ac_word$ac_exec_ext"
11913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11920 test -z "$ac_cv_path_SED" && ac_cv_path_SED
="sed"
11924 SED
=$ac_cv_path_SED
11925 if test -n "$SED"; then
11926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
11927 $as_echo "$SED" >&6; }
11929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11930 $as_echo "no" >&6; }
11934 # Extract the first word of "perl", so it can be a program name with args.
11935 set dummy perl
; ac_word
=$2
11936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11937 $as_echo_n "checking for $ac_word... " >&6; }
11938 if ${ac_cv_path_PERL+:} false
; then :
11939 $as_echo_n "(cached) " >&6
11943 ac_cv_path_PERL
="$PERL" # Let the user override the test with a path.
11946 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11947 for as_dir
in $PATH
11950 test -z "$as_dir" && as_dir
=.
11951 for ac_exec_ext
in '' $ac_executable_extensions; do
11952 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11953 ac_cv_path_PERL
="$as_dir/$ac_word$ac_exec_ext"
11954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11961 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL
="perl"
11965 PERL
=$ac_cv_path_PERL
11966 if test -n "$PERL"; then
11967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
11968 $as_echo "$PERL" >&6; }
11970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11971 $as_echo "no" >&6; }
11975 # Extract the first word of "ldconfig", so it can be a program name with args.
11976 set dummy ldconfig
; ac_word
=$2
11977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11978 $as_echo_n "checking for $ac_word... " >&6; }
11979 if ${ac_cv_path_LDCONFIG+:} false
; then :
11980 $as_echo_n "(cached) " >&6
11984 ac_cv_path_LDCONFIG
="$LDCONFIG" # Let the user override the test with a path.
11987 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11988 for as_dir
in $PATH
11991 test -z "$as_dir" && as_dir
=.
11992 for ac_exec_ext
in '' $ac_executable_extensions; do
11993 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11994 ac_cv_path_LDCONFIG
="$as_dir/$ac_word$ac_exec_ext"
11995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12002 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG
=":"
12006 LDCONFIG
=$ac_cv_path_LDCONFIG
12007 if test -n "$LDCONFIG"; then
12008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
12009 $as_echo "$LDCONFIG" >&6; }
12011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12012 $as_echo "no" >&6; }
12016 if test -n "$ac_tool_prefix"; then
12017 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
12018 set dummy
${ac_tool_prefix}ar; ac_word
=$2
12019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12020 $as_echo_n "checking for $ac_word... " >&6; }
12021 if ${ac_cv_prog_AR+:} false
; then :
12022 $as_echo_n "(cached) " >&6
12024 if test -n "$AR"; then
12025 ac_cv_prog_AR
="$AR" # Let the user override the test.
12027 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12028 for as_dir
in $PATH
12031 test -z "$as_dir" && as_dir
=.
12032 for ac_exec_ext
in '' $ac_executable_extensions; do
12033 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12034 ac_cv_prog_AR
="${ac_tool_prefix}ar"
12035 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12045 if test -n "$AR"; then
12046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12047 $as_echo "$AR" >&6; }
12049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12050 $as_echo "no" >&6; }
12055 if test -z "$ac_cv_prog_AR"; then
12057 # Extract the first word of "ar", so it can be a program name with args.
12058 set dummy
ar; ac_word
=$2
12059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12060 $as_echo_n "checking for $ac_word... " >&6; }
12061 if ${ac_cv_prog_ac_ct_AR+:} false
; then :
12062 $as_echo_n "(cached) " >&6
12064 if test -n "$ac_ct_AR"; then
12065 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
12067 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12068 for as_dir
in $PATH
12071 test -z "$as_dir" && as_dir
=.
12072 for ac_exec_ext
in '' $ac_executable_extensions; do
12073 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12074 ac_cv_prog_ac_ct_AR
="ar"
12075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12084 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
12085 if test -n "$ac_ct_AR"; then
12086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12087 $as_echo "$ac_ct_AR" >&6; }
12089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12090 $as_echo "no" >&6; }
12093 if test "x$ac_ct_AR" = x
; then
12096 case $cross_compiling:$ac_tool_warned in
12098 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12099 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12100 ac_tool_warned
=yes ;;
12105 AR
="$ac_cv_prog_AR"
12108 if test -n "$ac_tool_prefix"; then
12109 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12110 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
12111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12112 $as_echo_n "checking for $ac_word... " >&6; }
12113 if ${ac_cv_prog_RANLIB+:} false
; then :
12114 $as_echo_n "(cached) " >&6
12116 if test -n "$RANLIB"; then
12117 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
12119 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12120 for as_dir
in $PATH
12123 test -z "$as_dir" && as_dir
=.
12124 for ac_exec_ext
in '' $ac_executable_extensions; do
12125 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12126 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
12127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12136 RANLIB
=$ac_cv_prog_RANLIB
12137 if test -n "$RANLIB"; then
12138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12139 $as_echo "$RANLIB" >&6; }
12141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12142 $as_echo "no" >&6; }
12147 if test -z "$ac_cv_prog_RANLIB"; then
12148 ac_ct_RANLIB
=$RANLIB
12149 # Extract the first word of "ranlib", so it can be a program name with args.
12150 set dummy ranlib
; ac_word
=$2
12151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12152 $as_echo_n "checking for $ac_word... " >&6; }
12153 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
12154 $as_echo_n "(cached) " >&6
12156 if test -n "$ac_ct_RANLIB"; then
12157 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
12159 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12160 for as_dir
in $PATH
12163 test -z "$as_dir" && as_dir
=.
12164 for ac_exec_ext
in '' $ac_executable_extensions; do
12165 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12166 ac_cv_prog_ac_ct_RANLIB
="ranlib"
12167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12176 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
12177 if test -n "$ac_ct_RANLIB"; then
12178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12179 $as_echo "$ac_ct_RANLIB" >&6; }
12181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12182 $as_echo "no" >&6; }
12185 if test "x$ac_ct_RANLIB" = x
; then
12188 case $cross_compiling:$ac_tool_warned in
12190 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12191 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12192 ac_tool_warned
=yes ;;
12194 RANLIB
=$ac_ct_RANLIB
12197 RANLIB
="$ac_cv_prog_RANLIB"
12200 if test -n "$ac_tool_prefix"; then
12201 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12202 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
12203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12204 $as_echo_n "checking for $ac_word... " >&6; }
12205 if ${ac_cv_prog_STRIP+:} false
; then :
12206 $as_echo_n "(cached) " >&6
12208 if test -n "$STRIP"; then
12209 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
12211 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12212 for as_dir
in $PATH
12215 test -z "$as_dir" && as_dir
=.
12216 for ac_exec_ext
in '' $ac_executable_extensions; do
12217 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12218 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
12219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12228 STRIP
=$ac_cv_prog_STRIP
12229 if test -n "$STRIP"; then
12230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12231 $as_echo "$STRIP" >&6; }
12233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12234 $as_echo "no" >&6; }
12239 if test -z "$ac_cv_prog_STRIP"; then
12241 # Extract the first word of "strip", so it can be a program name with args.
12242 set dummy strip
; ac_word
=$2
12243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12244 $as_echo_n "checking for $ac_word... " >&6; }
12245 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
12246 $as_echo_n "(cached) " >&6
12248 if test -n "$ac_ct_STRIP"; then
12249 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
12251 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12252 for as_dir
in $PATH
12255 test -z "$as_dir" && as_dir
=.
12256 for ac_exec_ext
in '' $ac_executable_extensions; do
12257 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12258 ac_cv_prog_ac_ct_STRIP
="strip"
12259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12268 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
12269 if test -n "$ac_ct_STRIP"; then
12270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12271 $as_echo "$ac_ct_STRIP" >&6; }
12273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12274 $as_echo "no" >&6; }
12277 if test "x$ac_ct_STRIP" = x
; then
12280 case $cross_compiling:$ac_tool_warned in
12282 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12283 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12284 ac_tool_warned
=yes ;;
12289 STRIP
="$ac_cv_prog_STRIP"
12292 # Extract the first word of "makeinfo", so it can be a program name with args.
12293 set dummy makeinfo
; ac_word
=$2
12294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12295 $as_echo_n "checking for $ac_word... " >&6; }
12296 if ${ac_cv_prog_MAKEINFO+:} false
; then :
12297 $as_echo_n "(cached) " >&6
12299 if test -n "$MAKEINFO"; then
12300 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
12302 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12303 for as_dir
in $PATH
12306 test -z "$as_dir" && as_dir
=.
12307 for ac_exec_ext
in '' $ac_executable_extensions; do
12308 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12309 ac_cv_prog_MAKEINFO
="makeinfo"
12310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12319 MAKEINFO
=$ac_cv_prog_MAKEINFO
12320 if test -n "$MAKEINFO"; then
12321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
12322 $as_echo "$MAKEINFO" >&6; }
12324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12325 $as_echo "no" >&6; }
12329 if test "_$MAKEINFO" = "_"; then
12330 MAKEINFO
="echo Makeinfo is missing. Info documentation will not be built."
12332 case "$MAKEINFO" in
12334 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
12335 *** Makeinfo is missing. Info documentation will not be built." >&5
12336 $as_echo "$as_me: WARNING:
12337 *** Makeinfo is missing. Info documentation will not be built." >&2;}
12345 # See if we need a separate native compiler.
12346 if test $cross_compiling = no
; then
12350 for ac_prog
in gcc cc
12352 # Extract the first word of "$ac_prog", so it can be a program name with args.
12353 set dummy
$ac_prog; ac_word
=$2
12354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12355 $as_echo_n "checking for $ac_word... " >&6; }
12356 if ${ac_cv_prog_BUILD_CC+:} false
; then :
12357 $as_echo_n "(cached) " >&6
12359 if test -n "$BUILD_CC"; then
12360 ac_cv_prog_BUILD_CC
="$BUILD_CC" # Let the user override the test.
12362 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12363 for as_dir
in $PATH
12366 test -z "$as_dir" && as_dir
=.
12367 for ac_exec_ext
in '' $ac_executable_extensions; do
12368 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
12369 ac_cv_prog_BUILD_CC
="$ac_prog"
12370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12379 BUILD_CC
=$ac_cv_prog_BUILD_CC
12380 if test -n "$BUILD_CC"; then
12381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
12382 $as_echo "$BUILD_CC" >&6; }
12384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12385 $as_echo "no" >&6; }
12389 test -n "$BUILD_CC" && break
12393 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 attr
/xattr.h linux
/falloc.h linux
/fd.h linux
/fsmap.h linux
/major.h linux
/loop.h linux
/types.h net
/if_dl.h netinet
/in.h sys
/acl.h sys
/disklabel.h sys
/disk.h sys
/file.h sys
/ioctl.h sys
/key.h sys
/mkdev.h sys
/mman.h sys
/mount.h sys
/prctl.h sys
/resource.h sys
/select.h sys
/socket.h sys
/sockio.h sys
/stat.h sys
/syscall.h sys
/sysctl.h sys
/sysmacros.h sys
/time.h sys
/types.h sys
/un.h sys
/wait.h sys
/xattr.h
12395 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12396 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12397 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
12398 cat >>confdefs.h
<<_ACEOF
12399 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a dd(1) program that supports iflag=fullblock" >&5
12407 $as_echo_n "checking for a dd(1) program that supports iflag=fullblock... " >&6; }
12409 for i
in dd gdd
; do
12410 if "$i" if=/dev
/null of
=/dev
/null count
=1 bs
=10k
2>/dev
/null iflag
=fullblock oflag
=append
; then
12415 if test -n "$DD" ; then
12416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DD" >&5
12417 $as_echo "$DD" >&6; }
12419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found, using dd" >&5
12420 $as_echo "not found, using dd" >&6; }
12422 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No GNU-compatible dd(1) program found, expect some self-test failures." >&5
12423 $as_echo "$as_me: WARNING: No GNU-compatible dd(1) program found, expect some self-test failures." >&2;}
12427 for ac_header
in net
/if.h
12429 ac_fn_c_check_header_compile
"$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
12430 #if HAVE_SYS_TYPES_H
12431 #include <sys/types.h>
12433 #if HAVE_SYS_SOCKET
12434 #include <sys/socket.h>
12438 if test "x$ac_cv_header_net_if_h" = xyes
; then :
12439 cat >>confdefs.h
<<_ACEOF
12440 #define HAVE_NET_IF_H 1
12447 for ac_func
in vprintf
12449 ac_fn_c_check_func
"$LINENO" "vprintf" "ac_cv_func_vprintf"
12450 if test "x$ac_cv_func_vprintf" = xyes
; then :
12451 cat >>confdefs.h
<<_ACEOF
12452 #define HAVE_VPRINTF 1
12455 ac_fn_c_check_func
"$LINENO" "_doprnt" "ac_cv_func__doprnt"
12456 if test "x$ac_cv_func__doprnt" = xyes
; then :
12458 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
12466 ac_fn_c_check_member
"$LINENO" "struct dirent" "d_reclen" "ac_cv_member_struct_dirent_d_reclen" "#include <dirent.h>
12468 if test "x$ac_cv_member_struct_dirent_d_reclen" = xyes
; then :
12470 $as_echo "#define HAVE_RECLEN_DIRENT 1" >>confdefs.h
12474 ac_fn_c_check_member
"$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default"
12475 if test "x$ac_cv_member_struct_stat_st_atim" = xyes
; then :
12477 cat >>confdefs.h
<<_ACEOF
12478 #define HAVE_STRUCT_STAT_ST_ATIM 1
12484 ac_fn_c_check_type
"$LINENO" "ssize_t" "ac_cv_type_ssize_t" "#include <sys/types.h>
12486 if test "x$ac_cv_type_ssize_t" = xyes
; then :
12488 $as_echo "#define HAVE_TYPE_SSIZE_T 1" >>confdefs.h
12492 ac_fn_c_check_decl
"$LINENO" "llseek" "ac_cv_have_decl_llseek" "#include <unistd.h>
12494 if test "x$ac_cv_have_decl_llseek" = xyes
; then :
12496 $as_echo "#define HAVE_LLSEEK_PROTOTYPE 1" >>confdefs.h
12500 ac_fn_c_check_decl
"$LINENO" "lseek64" "ac_cv_have_decl_lseek64" "#define _LARGEFILE_SOURCE
12501 #define _LARGEFILE64_SOURCE
12502 #include <unistd.h>
12504 if test "x$ac_cv_have_decl_lseek64" = xyes
; then :
12506 $as_echo "#define HAVE_LSEEK64_PROTOTYPE 1" >>confdefs.h
12510 # The cast to long int works around a bug in the HP C Compiler
12511 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12512 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12513 # This bug is HP SR number 8606223364.
12514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
12515 $as_echo_n "checking size of short... " >&6; }
12516 if ${ac_cv_sizeof_short+:} false
; then :
12517 $as_echo_n "(cached) " >&6
12519 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
12522 if test "$ac_cv_type_short" = yes; then
12523 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12524 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12525 as_fn_error
77 "cannot compute sizeof (short)
12526 See \`config.log' for more details" "$LINENO" 5; }
12528 ac_cv_sizeof_short
=0
12533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
12534 $as_echo "$ac_cv_sizeof_short" >&6; }
12538 cat >>confdefs.h
<<_ACEOF
12539 #define SIZEOF_SHORT $ac_cv_sizeof_short
12543 # The cast to long int works around a bug in the HP C Compiler
12544 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12545 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12546 # This bug is HP SR number 8606223364.
12547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
12548 $as_echo_n "checking size of int... " >&6; }
12549 if ${ac_cv_sizeof_int+:} false
; then :
12550 $as_echo_n "(cached) " >&6
12552 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
12555 if test "$ac_cv_type_int" = yes; then
12556 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12557 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12558 as_fn_error
77 "cannot compute sizeof (int)
12559 See \`config.log' for more details" "$LINENO" 5; }
12566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
12567 $as_echo "$ac_cv_sizeof_int" >&6; }
12571 cat >>confdefs.h
<<_ACEOF
12572 #define SIZEOF_INT $ac_cv_sizeof_int
12576 # The cast to long int works around a bug in the HP C Compiler
12577 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12578 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12579 # This bug is HP SR number 8606223364.
12580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
12581 $as_echo_n "checking size of long... " >&6; }
12582 if ${ac_cv_sizeof_long+:} false
; then :
12583 $as_echo_n "(cached) " >&6
12585 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
12588 if test "$ac_cv_type_long" = yes; then
12589 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12590 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12591 as_fn_error
77 "cannot compute sizeof (long)
12592 See \`config.log' for more details" "$LINENO" 5; }
12594 ac_cv_sizeof_long
=0
12599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
12600 $as_echo "$ac_cv_sizeof_long" >&6; }
12604 cat >>confdefs.h
<<_ACEOF
12605 #define SIZEOF_LONG $ac_cv_sizeof_long
12609 # The cast to long int works around a bug in the HP C Compiler
12610 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12611 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12612 # This bug is HP SR number 8606223364.
12613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
12614 $as_echo_n "checking size of long long... " >&6; }
12615 if ${ac_cv_sizeof_long_long+:} false
; then :
12616 $as_echo_n "(cached) " >&6
12618 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
12621 if test "$ac_cv_type_long_long" = yes; then
12622 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12623 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12624 as_fn_error
77 "cannot compute sizeof (long long)
12625 See \`config.log' for more details" "$LINENO" 5; }
12627 ac_cv_sizeof_long_long
=0
12632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
12633 $as_echo "$ac_cv_sizeof_long_long" >&6; }
12637 cat >>confdefs.h
<<_ACEOF
12638 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
12642 # The cast to long int works around a bug in the HP C Compiler
12643 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12644 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12645 # This bug is HP SR number 8606223364.
12646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
12647 $as_echo_n "checking size of off_t... " >&6; }
12648 if ${ac_cv_sizeof_off_t+:} false
; then :
12649 $as_echo_n "(cached) " >&6
12651 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
12654 if test "$ac_cv_type_off_t" = yes; then
12655 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12656 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12657 as_fn_error
77 "cannot compute sizeof (off_t)
12658 See \`config.log' for more details" "$LINENO" 5; }
12660 ac_cv_sizeof_off_t
=0
12665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
12666 $as_echo "$ac_cv_sizeof_off_t" >&6; }
12670 cat >>confdefs.h
<<_ACEOF
12671 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
12675 # The cast to long int works around a bug in the HP C Compiler
12676 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12677 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12678 # This bug is HP SR number 8606223364.
12679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
12680 $as_echo_n "checking size of time_t... " >&6; }
12681 if ${ac_cv_sizeof_time_t+:} false
; then :
12682 $as_echo_n "(cached) " >&6
12684 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "$ac_includes_default"; then :
12687 if test "$ac_cv_type_time_t" = yes; then
12688 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12689 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12690 as_fn_error
77 "cannot compute sizeof (time_t)
12691 See \`config.log' for more details" "$LINENO" 5; }
12693 ac_cv_sizeof_time_t
=0
12698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
12699 $as_echo "$ac_cv_sizeof_time_t" >&6; }
12703 cat >>confdefs.h
<<_ACEOF
12704 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
12708 SIZEOF_SHORT
=$ac_cv_sizeof_short
12709 SIZEOF_INT
=$ac_cv_sizeof_int
12710 SIZEOF_LONG
=$ac_cv_sizeof_long
12711 SIZEOF_LONG_LONG
=$ac_cv_sizeof_long_long
12712 SIZEOF_OFF_T
=$ac_cv_sizeof_off_t
12713 SIZEOF_TIME_T
=$ac_cv_sizeof_time_t
12720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
12721 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
12722 if ${ac_cv_c_bigendian+:} false
; then :
12723 $as_echo_n "(cached) " >&6
12725 ac_cv_c_bigendian
=unknown
12726 # See if we're dealing with a universal compiler.
12727 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12728 /* end confdefs.h. */
12729 #ifndef __APPLE_CC__
12730 not a universal capable compiler
12735 if ac_fn_c_try_compile
"$LINENO"; then :
12737 # Check for potential -arch flags. It is not universal unless
12738 # there are at least two -arch flags with different values.
12741 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12742 if test -n "$ac_prev"; then
12744 i?
86 | x86_64 | ppc | ppc64
)
12745 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
12748 ac_cv_c_bigendian
=universal
12754 elif test "x$ac_word" = "x-arch"; then
12759 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12760 if test $ac_cv_c_bigendian = unknown
; then
12761 # See if sys/param.h defines the BYTE_ORDER macro.
12762 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12763 /* end confdefs.h. */
12764 #include <sys/types.h>
12765 #include <sys/param.h>
12770 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12771 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12773 bogus endian macros
12780 if ac_fn_c_try_compile
"$LINENO"; then :
12781 # It does; now see whether it defined to BIG_ENDIAN or not.
12782 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12783 /* end confdefs.h. */
12784 #include <sys/types.h>
12785 #include <sys/param.h>
12790 #if BYTE_ORDER != BIG_ENDIAN
12798 if ac_fn_c_try_compile
"$LINENO"; then :
12799 ac_cv_c_bigendian
=yes
12801 ac_cv_c_bigendian
=no
12803 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12805 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12807 if test $ac_cv_c_bigendian = unknown
; then
12808 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
12809 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12810 /* end confdefs.h. */
12811 #include <limits.h>
12816 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12817 bogus endian macros
12824 if ac_fn_c_try_compile
"$LINENO"; then :
12825 # It does; now see whether it defined to _BIG_ENDIAN or not.
12826 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12827 /* end confdefs.h. */
12828 #include <limits.h>
12833 #ifndef _BIG_ENDIAN
12841 if ac_fn_c_try_compile
"$LINENO"; then :
12842 ac_cv_c_bigendian
=yes
12844 ac_cv_c_bigendian
=no
12846 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12848 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12850 if test $ac_cv_c_bigendian = unknown
; then
12851 # Compile a test program.
12852 if test "$cross_compiling" = yes; then :
12853 # Try to guess by grepping values from an object file.
12854 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12855 /* end confdefs.h. */
12856 short int ascii_mm[] =
12857 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12858 short int ascii_ii[] =
12859 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12860 int use_ascii (int i) {
12861 return ascii_mm[i] + ascii_ii[i];
12863 short int ebcdic_ii[] =
12864 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12865 short int ebcdic_mm[] =
12866 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12867 int use_ebcdic (int i) {
12868 return ebcdic_mm[i] + ebcdic_ii[i];
12875 return use_ascii (foo) == use_ebcdic (foo);
12880 if ac_fn_c_try_compile
"$LINENO"; then :
12881 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
12882 ac_cv_c_bigendian
=yes
12884 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
12885 if test "$ac_cv_c_bigendian" = unknown
; then
12886 ac_cv_c_bigendian
=no
12888 # finding both strings is unlikely to happen, but who knows?
12889 ac_cv_c_bigendian
=unknown
12893 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12895 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12896 /* end confdefs.h. */
12897 $ac_includes_default
12902 /* Are we little or big endian? From Harbison&Steele. */
12906 char c[sizeof (long int)];
12909 return u.c[sizeof (long int) - 1] == 1;
12915 if ac_fn_c_try_run
"$LINENO"; then :
12916 ac_cv_c_bigendian
=no
12918 ac_cv_c_bigendian
=yes
12920 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12921 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12927 $as_echo "$ac_cv_c_bigendian" >&6; }
12928 case $ac_cv_c_bigendian in #(
12930 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
12936 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12940 as_fn_error $?
"unknown endianness
12941 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
12944 if test $cross_compiling = no
; then
12945 BUILD_CC
="$BUILD_CC" CPP
="$CPP" /bin
/sh
$ac_aux_dir/parse-types.sh
12947 CROSS_COMPILE
="1" BUILD_CC
="$BUILD_CC" CPP
="$CPP" /bin
/sh
$ac_aux_dir/parse-types.sh
12949 ASM_TYPES_HEADER
=.
/asm_types.h
12951 echo "/* These defines are needed for the public ext2fs.h header file */" \
12953 if grep HAVE_SYS_TYPES_H confdefs.h
> tmp_config.$$
; then
12954 uniq tmp_config.$$
>> public_config.h
12956 echo "#undef HAVE_SYS_TYPES_H" >> public_config.h
12958 if grep WORDS_BIGENDIAN confdefs.h
> tmp_config.$$
; then
12959 uniq tmp_config.$$
>> public_config.h
12961 echo "#undef WORDS_BIGENDIAN" >> public_config.h
12963 rm -f tmp_config.$$
12964 PUBLIC_CONFIG_HEADER
=.
/public_config.h
12966 for ac_header
in inttypes.h
12968 ac_fn_c_check_header_mongrel
"$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
12969 if test "x$ac_cv_header_inttypes_h" = xyes
; then :
12970 cat >>confdefs.h
<<_ACEOF
12971 #define HAVE_INTTYPES_H 1
12978 ac_fn_c_check_type
"$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
12979 if test "x$ac_cv_type_intptr_t" = xyes
; then :
12981 cat >>confdefs.h
<<_ACEOF
12982 #define HAVE_INTPTR_T 1
12988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat has a st_flags field" >&5
12989 $as_echo_n "checking whether struct stat has a st_flags field... " >&6; }
12990 if ${e2fsprogs_cv_struct_st_flags+:} false
; then :
12991 $as_echo_n "(cached) " >&6
12993 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12994 /* end confdefs.h. */
12995 #include <sys/stat.h>
12999 struct stat stat; stat.st_flags = 0;
13004 if ac_fn_c_try_compile
"$LINENO"; then :
13005 e2fsprogs_cv_struct_st_flags
=yes
13007 e2fsprogs_cv_struct_st_flags
=no
13009 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags" >&5
13013 $as_echo "$e2fsprogs_cv_struct_st_flags" >&6; }
13014 if test "$e2fsprogs_cv_struct_st_flags" = yes; then
13015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether st_flags field is useful" >&5
13016 $as_echo_n "checking whether st_flags field is useful... " >&6; }
13017 if ${e2fsprogs_cv_struct_st_flags_immut+:} false
; then :
13018 $as_echo_n "(cached) " >&6
13020 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13021 /* end confdefs.h. */
13022 #include <sys/stat.h>
13026 struct stat stat; stat.st_flags |= UF_IMMUTABLE;
13031 if ac_fn_c_try_compile
"$LINENO"; then :
13032 e2fsprogs_cv_struct_st_flags_immut
=yes
13034 e2fsprogs_cv_struct_st_flags_immut
=no
13036 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
13040 $as_echo "$e2fsprogs_cv_struct_st_flags_immut" >&6; }
13041 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
13043 $as_echo "#define HAVE_STAT_FLAGS 1" >>confdefs.h
13047 ac_fn_c_check_member
"$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
13048 #include <sys/socket.h>
13050 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes
; then :
13052 cat >>confdefs.h
<<_ACEOF
13053 #define HAVE_SA_LEN 1
13058 if test -n "$BLKID_CMT"; then
13059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing blkid_probe_all" >&5
13060 $as_echo_n "checking for library containing blkid_probe_all... " >&6; }
13061 if ${ac_cv_search_blkid_probe_all+:} false
; then :
13062 $as_echo_n "(cached) " >&6
13064 ac_func_search_save_LIBS
=$LIBS
13065 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13066 /* end confdefs.h. */
13068 /* Override any GCC internal prototype to avoid an error.
13069 Use char because int might match the return type of a GCC
13070 builtin and then its argument prototype would still apply. */
13074 char blkid_probe_all ();
13078 return blkid_probe_all ();
13083 for ac_lib
in '' blkid
; do
13084 if test -z "$ac_lib"; then
13085 ac_res
="none required"
13088 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
13090 if ac_fn_c_try_link
"$LINENO"; then :
13091 ac_cv_search_blkid_probe_all
=$ac_res
13093 rm -f core conftest.err conftest.
$ac_objext \
13095 if ${ac_cv_search_blkid_probe_all+:} false
; then :
13099 if ${ac_cv_search_blkid_probe_all+:} false
; then :
13102 ac_cv_search_blkid_probe_all
=no
13104 rm conftest.
$ac_ext
13105 LIBS
=$ac_func_search_save_LIBS
13107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_blkid_probe_all" >&5
13108 $as_echo "$ac_cv_search_blkid_probe_all" >&6; }
13109 ac_res
=$ac_cv_search_blkid_probe_all
13110 if test "$ac_res" != no
; then :
13111 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
13116 if test -n "$DLOPEN_LIB" ; then
13117 ac_cv_func_dlopen
=yes
13119 for ac_func
in __secure_getenv add_key backtrace blkid_probe_get_topology blkid_probe_enable_partitions chflags dlopen fadvise64 fallocate fallocate64 fchown fcntl fdatasync fstat64 fsync ftruncate64 futimes getcwd getdtablesize gethostname getmntinfo getpwuid_r getrlimit getrusage jrand48 keyctl llistxattr llseek lseek64 mallinfo mbstowcs memalign mempcpy mmap msync nanosleep open64 pathconf posix_fadvise posix_fadvise64 posix_memalign prctl pread pwrite pread64 pwrite64 secure_getenv setmntent setresgid setresuid snprintf srandom stpcpy strcasecmp strdup strnlen strptime strtoull sync_file_range sysconf
usleep utime utimes valloc
13121 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13122 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13123 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
13124 cat >>confdefs.h
<<_ACEOF
13125 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
13133 $as_echo_n "checking for socket in -lsocket... " >&6; }
13134 if ${ac_cv_lib_socket_socket+:} false
; then :
13135 $as_echo_n "(cached) " >&6
13137 ac_check_lib_save_LIBS
=$LIBS
13138 LIBS
="-lsocket $LIBS"
13139 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13140 /* end confdefs.h. */
13142 /* Override any GCC internal prototype to avoid an error.
13143 Use char because int might match the return type of a GCC
13144 builtin and then its argument prototype would still apply. */
13157 if ac_fn_c_try_link
"$LINENO"; then :
13158 ac_cv_lib_socket_socket
=yes
13160 ac_cv_lib_socket_socket
=no
13162 rm -f core conftest.err conftest.
$ac_objext \
13163 conftest
$ac_exeext conftest.
$ac_ext
13164 LIBS
=$ac_check_lib_save_LIBS
13166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
13167 $as_echo "$ac_cv_lib_socket_socket" >&6; }
13168 if test "x$ac_cv_lib_socket_socket" = xyes
; then :
13169 SOCKET_LIB
=-lsocket
13173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for magic_file in -lmagic" >&5
13174 $as_echo_n "checking for magic_file in -lmagic... " >&6; }
13175 if ${ac_cv_lib_magic_magic_file+:} false
; then :
13176 $as_echo_n "(cached) " >&6
13178 ac_check_lib_save_LIBS
=$LIBS
13179 LIBS
="-lmagic $LIBS"
13180 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13181 /* end confdefs.h. */
13183 /* Override any GCC internal prototype to avoid an error.
13184 Use char because int might match the return type of a GCC
13185 builtin and then its argument prototype would still apply. */
13189 char magic_file ();
13193 return magic_file ();
13198 if ac_fn_c_try_link
"$LINENO"; then :
13199 ac_cv_lib_magic_magic_file
=yes
13201 ac_cv_lib_magic_magic_file
=no
13203 rm -f core conftest.err conftest.
$ac_objext \
13204 conftest
$ac_exeext conftest.
$ac_ext
13205 LIBS
=$ac_check_lib_save_LIBS
13207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_magic_magic_file" >&5
13208 $as_echo "$ac_cv_lib_magic_magic_file" >&6; }
13209 if test "x$ac_cv_lib_magic_magic_file" = xyes
; then :
13211 for ac_header
in magic.h
13213 ac_fn_c_check_header_mongrel
"$LINENO" "magic.h" "ac_cv_header_magic_h" "$ac_includes_default"
13214 if test "x$ac_cv_header_magic_h" = xyes
; then :
13215 cat >>confdefs.h
<<_ACEOF
13216 #define HAVE_MAGIC_H 1
13225 if test "$ac_cv_func_dlopen" = yes ; then
13226 MAGIC_LIB
=$DLOPEN_LIB
13229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
13230 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
13231 if ${ac_cv_lib_rt_clock_gettime+:} false
; then :
13232 $as_echo_n "(cached) " >&6
13234 ac_check_lib_save_LIBS
=$LIBS
13236 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13237 /* end confdefs.h. */
13239 /* Override any GCC internal prototype to avoid an error.
13240 Use char because int might match the return type of a GCC
13241 builtin and then its argument prototype would still apply. */
13245 char clock_gettime ();
13249 return clock_gettime ();
13254 if ac_fn_c_try_link
"$LINENO"; then :
13255 ac_cv_lib_rt_clock_gettime
=yes
13257 ac_cv_lib_rt_clock_gettime
=no
13259 rm -f core conftest.err conftest.
$ac_objext \
13260 conftest
$ac_exeext conftest.
$ac_ext
13261 LIBS
=$ac_check_lib_save_LIBS
13263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
13264 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
13265 if test "x$ac_cv_lib_rt_clock_gettime" = xyes
; then :
13266 CLOCK_GETTIME_LIB
=-lrt
13272 # Check whether --enable-fuse2fs was given.
13273 if test "${enable_fuse2fs+set}" = set; then :
13274 enableval
=$enable_fuse2fs; if test "$enableval" = "no"
13277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling fuse2fs" >&5
13278 $as_echo "Disabling fuse2fs" >&6; }
13280 for ac_header
in pthread.h fuse.h
13282 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13283 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "#define _FILE_OFFSET_BITS 64
13284 #define FUSE_USE_VERSION 29
13286 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
13287 cat >>confdefs.h
<<_ACEOF
13288 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13292 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13293 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13294 as_fn_error $?
"Cannot find fuse2fs headers.
13295 See \`config.log' for more details" "$LINENO" 5; }
13301 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13302 /* end confdefs.h. */
13303 #define FUSE_USE_VERSION 29
13305 #include <linux/fs.h>
13306 #include <linux/falloc.h>
13307 #include <linux/xattr.h>
13318 if ac_fn_c_try_cpp
"$LINENO"; then :
13321 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13322 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13323 as_fn_error $?
"Cannot find fuse2fs Linux headers.
13324 See \`config.log' for more details" "$LINENO" 5; }
13326 rm -f conftest.err conftest.i conftest.
$ac_ext
13328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -losxfuse" >&5
13329 $as_echo_n "checking for fuse_main in -losxfuse... " >&6; }
13330 if ${ac_cv_lib_osxfuse_fuse_main+:} false
; then :
13331 $as_echo_n "(cached) " >&6
13333 ac_check_lib_save_LIBS
=$LIBS
13334 LIBS
="-losxfuse $LIBS"
13335 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13336 /* end confdefs.h. */
13338 /* Override any GCC internal prototype to avoid an error.
13339 Use char because int might match the return type of a GCC
13340 builtin and then its argument prototype would still apply. */
13348 return fuse_main ();
13353 if ac_fn_c_try_link
"$LINENO"; then :
13354 ac_cv_lib_osxfuse_fuse_main
=yes
13356 ac_cv_lib_osxfuse_fuse_main
=no
13358 rm -f core conftest.err conftest.
$ac_objext \
13359 conftest
$ac_exeext conftest.
$ac_ext
13360 LIBS
=$ac_check_lib_save_LIBS
13362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_osxfuse_fuse_main" >&5
13363 $as_echo "$ac_cv_lib_osxfuse_fuse_main" >&6; }
13364 if test "x$ac_cv_lib_osxfuse_fuse_main" = xyes
; then :
13367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -lfuse" >&5
13368 $as_echo_n "checking for fuse_main in -lfuse... " >&6; }
13369 if ${ac_cv_lib_fuse_fuse_main+:} false
; then :
13370 $as_echo_n "(cached) " >&6
13372 ac_check_lib_save_LIBS
=$LIBS
13373 LIBS
="-lfuse $LIBS"
13374 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13375 /* end confdefs.h. */
13377 /* Override any GCC internal prototype to avoid an error.
13378 Use char because int might match the return type of a GCC
13379 builtin and then its argument prototype would still apply. */
13387 return fuse_main ();
13392 if ac_fn_c_try_link
"$LINENO"; then :
13393 ac_cv_lib_fuse_fuse_main
=yes
13395 ac_cv_lib_fuse_fuse_main
=no
13397 rm -f core conftest.err conftest.
$ac_objext \
13398 conftest
$ac_exeext conftest.
$ac_ext
13399 LIBS
=$ac_check_lib_save_LIBS
13401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fuse_fuse_main" >&5
13402 $as_echo "$ac_cv_lib_fuse_fuse_main" >&6; }
13403 if test "x$ac_cv_lib_fuse_fuse_main" = xyes
; then :
13406 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13407 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13408 as_fn_error $?
"Cannot find fuse library.
13409 See \`config.log' for more details" "$LINENO" 5; }
13414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling fuse2fs" >&5
13415 $as_echo "Enabling fuse2fs" >&6; }
13419 for ac_header
in pthread.h fuse.h
13421 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13422 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "#define _FILE_OFFSET_BITS 64
13423 #define FUSE_USE_VERSION 29
13425 # include <linux/fs.h>
13426 # include <linux/falloc.h>
13427 # include <linux/xattr.h>
13430 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
13431 cat >>confdefs.h
<<_ACEOF
13432 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13441 if test -z "$FUSE_CMT"
13443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -losxfuse" >&5
13444 $as_echo_n "checking for fuse_main in -losxfuse... " >&6; }
13445 if ${ac_cv_lib_osxfuse_fuse_main+:} false
; then :
13446 $as_echo_n "(cached) " >&6
13448 ac_check_lib_save_LIBS
=$LIBS
13449 LIBS
="-losxfuse $LIBS"
13450 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13451 /* end confdefs.h. */
13453 /* Override any GCC internal prototype to avoid an error.
13454 Use char because int might match the return type of a GCC
13455 builtin and then its argument prototype would still apply. */
13463 return fuse_main ();
13468 if ac_fn_c_try_link
"$LINENO"; then :
13469 ac_cv_lib_osxfuse_fuse_main
=yes
13471 ac_cv_lib_osxfuse_fuse_main
=no
13473 rm -f core conftest.err conftest.
$ac_objext \
13474 conftest
$ac_exeext conftest.
$ac_ext
13475 LIBS
=$ac_check_lib_save_LIBS
13477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_osxfuse_fuse_main" >&5
13478 $as_echo "$ac_cv_lib_osxfuse_fuse_main" >&6; }
13479 if test "x$ac_cv_lib_osxfuse_fuse_main" = xyes
; then :
13482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -lfuse" >&5
13483 $as_echo_n "checking for fuse_main in -lfuse... " >&6; }
13484 if ${ac_cv_lib_fuse_fuse_main+:} false
; then :
13485 $as_echo_n "(cached) " >&6
13487 ac_check_lib_save_LIBS
=$LIBS
13488 LIBS
="-lfuse $LIBS"
13489 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13490 /* end confdefs.h. */
13492 /* Override any GCC internal prototype to avoid an error.
13493 Use char because int might match the return type of a GCC
13494 builtin and then its argument prototype would still apply. */
13502 return fuse_main ();
13507 if ac_fn_c_try_link
"$LINENO"; then :
13508 ac_cv_lib_fuse_fuse_main
=yes
13510 ac_cv_lib_fuse_fuse_main
=no
13512 rm -f core conftest.err conftest.
$ac_objext \
13513 conftest
$ac_exeext conftest.
$ac_ext
13514 LIBS
=$ac_check_lib_save_LIBS
13516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fuse_fuse_main" >&5
13517 $as_echo "$ac_cv_lib_fuse_fuse_main" >&6; }
13518 if test "x$ac_cv_lib_fuse_fuse_main" = xyes
; then :
13527 if test -z "$FUSE_CMT"
13529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling fuse2fs by default." >&5
13530 $as_echo "Enabling fuse2fs by default." >&6; }
13537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optreset" >&5
13538 $as_echo_n "checking for optreset... " >&6; }
13539 if ${ac_cv_have_optreset+:} false
; then :
13540 $as_echo_n "(cached) " >&6
13542 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13543 /* end confdefs.h. */
13544 #include <unistd.h>
13547 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13548 $EGREP "optreset" >/dev
/null
2>&1; then :
13549 ac_cv_have_optreset
=yes
13551 ac_cv_have_optreset
=no
13556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_optreset" >&5
13557 $as_echo "$ac_cv_have_optreset" >&6; }
13558 if test $ac_cv_have_optreset = yes; then
13560 $as_echo "#define HAVE_OPTRESET 1" >>confdefs.h
13565 echo GL_THREADS_API
: ${gl_threads_api}
13566 if test "${gl_threads_api}" != none
13568 ac_fn_c_check_func
"$LINENO" "sem_init" "ac_cv_func_sem_init"
13569 if test "x$ac_cv_func_sem_init" = xyes
; then :
13572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lpthread" >&5
13573 $as_echo_n "checking for sem_init in -lpthread... " >&6; }
13574 if ${ac_cv_lib_pthread_sem_init+:} false
; then :
13575 $as_echo_n "(cached) " >&6
13577 ac_check_lib_save_LIBS
=$LIBS
13578 LIBS
="-lpthread $LIBS"
13579 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13580 /* end confdefs.h. */
13582 /* Override any GCC internal prototype to avoid an error.
13583 Use char because int might match the return type of a GCC
13584 builtin and then its argument prototype would still apply. */
13592 return sem_init ();
13597 if ac_fn_c_try_link
"$LINENO"; then :
13598 ac_cv_lib_pthread_sem_init
=yes
13600 ac_cv_lib_pthread_sem_init
=no
13602 rm -f core conftest.err conftest.
$ac_objext \
13603 conftest
$ac_exeext conftest.
$ac_ext
13604 LIBS
=$ac_check_lib_save_LIBS
13606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sem_init" >&5
13607 $as_echo "$ac_cv_lib_pthread_sem_init" >&6; }
13608 if test "x$ac_cv_lib_pthread_sem_init" = xyes
; then :
13609 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
13611 SEM_INIT_LIB
=-lpthread
13613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lrt" >&5
13614 $as_echo_n "checking for sem_init in -lrt... " >&6; }
13615 if ${ac_cv_lib_rt_sem_init+:} false
; then :
13616 $as_echo_n "(cached) " >&6
13618 ac_check_lib_save_LIBS
=$LIBS
13620 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13621 /* end confdefs.h. */
13623 /* Override any GCC internal prototype to avoid an error.
13624 Use char because int might match the return type of a GCC
13625 builtin and then its argument prototype would still apply. */
13633 return sem_init ();
13638 if ac_fn_c_try_link
"$LINENO"; then :
13639 ac_cv_lib_rt_sem_init
=yes
13641 ac_cv_lib_rt_sem_init
=no
13643 rm -f core conftest.err conftest.
$ac_objext \
13644 conftest
$ac_exeext conftest.
$ac_ext
13645 LIBS
=$ac_check_lib_save_LIBS
13647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sem_init" >&5
13648 $as_echo "$ac_cv_lib_rt_sem_init" >&6; }
13649 if test "x$ac_cv_lib_rt_sem_init" = xyes
; then :
13650 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
13654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lposix4" >&5
13655 $as_echo_n "checking for sem_init in -lposix4... " >&6; }
13656 if ${ac_cv_lib_posix4_sem_init+:} false
; then :
13657 $as_echo_n "(cached) " >&6
13659 ac_check_lib_save_LIBS
=$LIBS
13660 LIBS
="-lposix4 $LIBS"
13661 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13662 /* end confdefs.h. */
13664 /* Override any GCC internal prototype to avoid an error.
13665 Use char because int might match the return type of a GCC
13666 builtin and then its argument prototype would still apply. */
13674 return sem_init ();
13679 if ac_fn_c_try_link
"$LINENO"; then :
13680 ac_cv_lib_posix4_sem_init
=yes
13682 ac_cv_lib_posix4_sem_init
=no
13684 rm -f core conftest.err conftest.
$ac_objext \
13685 conftest
$ac_exeext conftest.
$ac_ext
13686 LIBS
=$ac_check_lib_save_LIBS
13688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sem_init" >&5
13689 $as_echo "$ac_cv_lib_posix4_sem_init" >&6; }
13690 if test "x$ac_cv_lib_posix4_sem_init" = xyes
; then :
13691 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
13693 SEM_INIT_LIB
=-lposix4
13703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unified diff option" >&5
13704 $as_echo_n "checking for unified diff option... " >&6; }
13705 if diff -u $0 $0 > /dev
/null
2>&1 ; then
13710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNI_DIFF_OPTS" >&5
13711 $as_echo "$UNI_DIFF_OPTS" >&6; }
13716 $as_echo "#define HAVE_EXT2_IOCTLS 1" >>confdefs.h
13736 linux
* | gnu
* | k
*bsd
*-gnu)
13737 if test "$prefix" = NONE
-a "$root_prefix" = NONE
; then
13739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, root_prefix defaults to ''" >&5
13740 $as_echo "On $host_os systems, root_prefix defaults to ''" >&6; }
13745 linux
* | gnu
* | k
*bsd
*-gnu)
13746 if test "$prefix" = NONE
; then
13748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, prefix defaults to /usr" >&5
13749 $as_echo "On $host_os systems, prefix defaults to /usr" >&6; }
13750 if test "$mandir" = '${prefix}/man' ; then
13751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ...and mandir defaults to /usr/share/man" >&5
13752 $as_echo "...and mandir defaults to /usr/share/man" >&6; }
13753 mandir
=/usr
/share
/man
13758 if test "$root_prefix" = NONE
; then
13759 if test "$prefix" = NONE
; then
13760 root_prefix
="$ac_default_prefix"
13762 root_prefix
="$prefix"
13764 root_bindir
=$bindir
13765 root_sbindir
=$sbindir
13766 root_libdir
=$libdir
13767 root_sysconfdir
=$sysconfdir
13769 root_bindir
='${root_prefix}/bin'
13770 root_sbindir
='${root_prefix}/sbin'
13771 root_libdir
='${root_prefix}/lib'
13772 root_sysconfdir
='${root_prefix}/etc'
13774 if test "$bindir" != '${exec_prefix}/bin'; then
13775 root_bindir
=$bindir
13776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_bindir to $root_bindir" >&5
13777 $as_echo "Setting root_bindir to $root_bindir" >&6; }
13779 if test "$sbindir" != '${exec_prefix}/sbin'; then
13780 root_sbindir
=$sbindir
13781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sbindir to $root_sbindir" >&5
13782 $as_echo "Setting root_sbindir to $root_sbindir" >&6; }
13784 if test "$libdir" != '${exec_prefix}/lib'; then
13785 root_libdir
=$libdir
13786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_libdir to $root_libdir" >&5
13787 $as_echo "Setting root_libdir to $root_libdir" >&6; }
13789 if test "$sysconfdir" != '${prefix}/etc'; then
13790 root_sysconfdir
=$sysconfdir
13791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sysconfdir to $root_sysconfdir" >&5
13792 $as_echo "Setting root_sysconfdir to $root_sysconfdir" >&6; }
13800 # Check whether --with-multiarch was given.
13801 if test "${with_multiarch+set}" = set; then :
13802 withval
=$with_multiarch; if test "$withval" = "lib64"; then
13806 libdir
=$libdir/$withval
13807 root_libdir
=$root_libdir/$withval
13811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can link with -static" >&5
13812 $as_echo_n "checking whether we can link with -static... " >&6; }
13813 if ${ac_cv_e2fsprogs_use_static+:} false
; then :
13814 $as_echo_n "(cached) " >&6
13816 SAVE_LDFLAGS
=$LDFLAGS; LDFLAGS
="$LDFLAGS_STATIC -static"
13817 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13818 /* end confdefs.h. */
13828 if ac_fn_c_try_link
"$LINENO"; then :
13829 ac_cv_e2fsprogs_use_static
=yes
13831 ac_cv_e2fsprogs_use_static
=no
13833 rm -f core conftest.err conftest.
$ac_objext \
13834 conftest
$ac_exeext conftest.
$ac_ext
13835 LDFLAGS
=$SAVE_LDFLAGS
13840 ac_cv_e2fsprogs_use_static
=no
13843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_e2fsprogs_use_static" >&5
13844 $as_echo "$ac_cv_e2fsprogs_use_static" >&6; }
13845 if test $ac_cv_e2fsprogs_use_static = yes; then
13846 LDFLAGS_STATIC
="$LDFLAGS_STATIC -static"
13851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using Apple Darwin / GNU libintl workaround" >&5
13852 $as_echo "Using Apple Darwin / GNU libintl workaround" >&6; }
13854 $as_echo "#define _INTL_REDIRECT_MACROS 1" >>confdefs.h
13858 if test "$cross_compiling" = yes ; then
13861 DO_TEST_SUITE
=check
13864 INCLUDES
='-I. -I$(top_builddir)/lib -I$(top_srcdir)/lib'
13865 if test -n "$CPPFLAGS" ; then
13866 INCLUDES
="$INCLUDES $CPPFLAGS"
13868 if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
13869 INCLUDES
=$INCLUDES' -I$(top_builddir)/intl -I$(top_srcdir)/intl'
13871 if test -n "$WITH_DIET_LIBC" ; then
13872 INCLUDES
="$INCLUDES -D_REENTRANT"
13875 if test $cross_compiling = no
; then
13876 BUILD_CFLAGS
="$CFLAGS $CPPFLAGS $INCLUDES -DHAVE_CONFIG_H"
13877 BUILD_LDFLAGS
="$LDFLAGS"
13881 CFLAGS_SHLIB
=${CFLAGS_SHLIB:-$CFLAGS}
13882 CFLAGS_STLIB
=${CFLAGS_STLIB:-$CFLAGS}
13883 LDFLAGS_SHLIB
=${LDFLAGS_SHLIB:-$LDFLAGS}
13887 test -d lib || mkdir lib
13888 test -d include || mkdir include
13889 test -d include
/linux || mkdir include
/linux
13890 test -d include
/asm || mkdir include
/asm
13891 if test -z "$UUID_CMT" ; then
13892 uuid_out_list
="lib/uuid/Makefile lib/uuid/uuid.pc \
13893 lib/uuid/uuid_types.h"
13895 if test -z "$BLKID_CMT" ; then
13896 blkid_out_list
="lib/blkid/Makefile lib/blkid/blkid.pc \
13897 lib/blkid/blkid_types.h"
13899 for i
in MCONFIG Makefile \
13900 util
/Makefile util
/subst.conf util
/gen-tarball util
/install-symlink \
13901 lib
/et
/Makefile lib
/ss
/Makefile lib
/e2p
/Makefile \
13902 lib
/ext2fs
/Makefile lib
/ext2fs
/ext2_types.h \
13903 $uuid_out_list $blkid_out_list lib
/support
/Makefile \
13904 lib
/ss
/ss.pc lib
/et
/com_err.pc lib
/e2p
/e2p.pc lib
/ext2fs
/ext2fs.pc \
13905 misc
/Makefile ext2ed
/Makefile e2fsck
/Makefile \
13906 debugfs
/Makefile
tests
/Makefile
tests
/progs
/Makefile \
13907 resize
/Makefile
doc
/Makefile intl
/Makefile \
13908 intl
/libgnuintl.h po
/Makefile.
in ; do
13909 if test -d `dirname ${srcdir}/$i` ; then
13910 outlist
="$outlist $i"
13913 ac_config_files
="$ac_config_files $outlist"
13915 cat >confcache
<<\_ACEOF
13916 # This file is a shell script that caches the results of configure
13917 # tests run on this system so they can be shared between configure
13918 # scripts and configure runs, see configure's option --config-cache.
13919 # It is not useful on other systems. If it contains results you don't
13920 # want to keep, you may remove or edit it.
13922 # config.status only pays attention to the cache file if you give it
13923 # the --recheck option to rerun configure.
13925 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13926 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13927 # following values.
13931 # The following way of writing the cache mishandles newlines in values,
13932 # but we know of no workaround that is simple, portable, and efficient.
13933 # So, we kill variables containing newlines.
13934 # Ultrix sh set writes to stderr and can't be redirected directly,
13935 # and sets the high bit in the cache file unless we assign to the vars.
13937 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13938 eval ac_val
=\$
$ac_var
13942 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13943 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13946 _ | IFS | as_nl
) ;; #(
13947 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
13948 *) { eval $ac_var=; unset $ac_var;} ;;
13954 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13955 *${as_nl}ac_space
=\
*)
13956 # `set' does not quote correctly, so add quotes: double-quote
13957 # substitution turns \\\\ into \\, and sed turns \\ into \.
13960 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13963 # `set' quotes correctly as required by POSIX, so do not add quotes.
13964 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13973 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13975 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13977 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
13978 if test -w "$cache_file"; then
13979 if test "x$cache_file" != "x/dev/null"; then
13980 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13981 $as_echo "$as_me: updating cache $cache_file" >&6;}
13982 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
13983 cat confcache
>"$cache_file"
13985 case $cache_file in #(
13987 mv -f confcache
"$cache_file"$$
&&
13988 mv -f "$cache_file"$$
"$cache_file" ;; #(
13990 mv -f confcache
"$cache_file" ;;
13995 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13996 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14001 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
14002 # Let make expand exec_prefix.
14003 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
14005 DEFS
=-DHAVE_CONFIG_H
14010 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
14011 # 1. Remove the extension, and $U if already installed.
14012 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
14013 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
14014 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14015 # will be set to the directory where LIBOBJS objects are built.
14016 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14017 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
14019 LIBOBJS
=$ac_libobjs
14021 LTLIBOBJS
=$ac_ltlibobjs
14026 : "${CONFIG_STATUS=./config.status}"
14028 ac_clean_files_save
=$ac_clean_files
14029 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
14030 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14031 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14033 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14035 # Generated by $as_me.
14036 # Run this file to recreate the current configuration.
14037 # Compiler output produced by configure, useful for debugging
14038 # configure, is in config.log if it exists.
14041 ac_cs_recheck=false
14044 SHELL=\${CONFIG_SHELL-$SHELL}
14047 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
14048 ## -------------------- ##
14049 ## M4sh Initialization. ##
14050 ## -------------------- ##
14052 # Be more Bourne compatible
14053 DUALCASE
=1; export DUALCASE
# for MKS sh
14054 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
14057 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14058 # is contrary to our usage. Disable this feature.
14059 alias -g '${1+"$@"}'='"$@"'
14060 setopt NO_GLOB_SUBST
14062 case `(set -o) 2>/dev/null` in #(
14074 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14075 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14076 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14077 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14078 # Prefer a ksh shell builtin over an external printf program on Solaris,
14079 # but without wasting forks for bash or zsh.
14080 if test -z "$BASH_VERSION$ZSH_VERSION" \
14081 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14082 as_echo='print
-r --'
14083 as_echo_n='print
-rn --'
14084 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14085 as_echo='printf %s
\n'
14086 as_echo_n='printf %s
'
14088 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14089 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
14090 as_echo_n='/usr
/ucb
/echo -n'
14092 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14093 as_echo_n_body='eval
14097 expr "X$arg" : "X\\(.*\\)$as_nl";
14098 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14100 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
14102 export as_echo_n_body
14103 as_echo_n='sh
-c $as_echo_n_body as_echo
'
14105 export as_echo_body
14106 as_echo='sh
-c $as_echo_body as_echo
'
14109 # The user is always right.
14110 if test "${PATH_SEPARATOR+set}" != set; then
14112 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14113 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14120 # We need space, tab and new line, in precisely that order. Quoting is
14121 # there to prevent editors from complaining about space-tab.
14122 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14123 # splitting by setting IFS to empty value.)
14126 # Find who we are. Look in the path if we contain no directory separator.
14129 *[\\/]* ) as_myself=$0 ;;
14130 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14131 for as_dir in $PATH
14134 test -z "$as_dir" && as_dir=.
14135 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14141 # We did not find ourselves, most probably we were run as `sh COMMAND'
14142 # in which case we are not to be found in the path.
14143 if test "x$as_myself" = x
; then
14146 if test ! -f "$as_myself"; then
14147 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14151 # Unset variables that we do not need and which cause bugs (e.g. in
14152 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14153 # suppresses any "Segmentation fault" message there. '((' could
14154 # trigger a bug in pdksh 5.2.14.
14155 for as_var
in BASH_ENV ENV MAIL MAILPATH
14156 do eval test x\
${$as_var+set} = xset \
14157 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
14170 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
14173 # as_fn_error STATUS ERROR [LINENO LOG_FD]
14174 # ----------------------------------------
14175 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14176 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14177 # script with STATUS, using 1 if that was 0.
14180 as_status
=$1; test $as_status -eq 0 && as_status
=1
14182 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
14183 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14185 $as_echo "$as_me: error: $2" >&2
14186 as_fn_exit
$as_status
14190 # as_fn_set_status STATUS
14191 # -----------------------
14192 # Set $? to STATUS, without forking.
14193 as_fn_set_status
()
14196 } # as_fn_set_status
14198 # as_fn_exit STATUS
14199 # -----------------
14200 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14204 as_fn_set_status
$1
14210 # Portably unset VAR.
14213 { eval $1=; unset $1;}
14215 as_unset
=as_fn_unset
14216 # as_fn_append VAR VALUE
14217 # ----------------------
14218 # Append the text in VALUE to the end of the definition contained in VAR. Take
14219 # advantage of any shell optimizations that allow amortized linear growth over
14220 # repeated appends, instead of the typical quadratic growth present in naive
14222 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
14223 eval 'as_fn_append ()
14234 # as_fn_arith ARG...
14235 # ------------------
14236 # Perform arithmetic evaluation on the ARGs, and store the result in the
14237 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14238 # must be portable across $(()) and expr.
14239 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
14240 eval 'as_fn_arith ()
14247 as_val
=`expr "$@" || test $? -eq 1`
14252 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
14253 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
14259 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14260 as_basename
=basename
14265 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
14271 as_me
=`$as_basename -- "$0" ||
14272 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14273 X"$0" : 'X\(//\)$' \| \
14274 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14276 sed '/^.*\/\([^/][^/]*\)\/*$/{
14290 # Avoid depending upon Character Ranges.
14291 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
14292 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14293 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
14294 as_cr_digits
='0123456789'
14295 as_cr_alnum
=$as_cr_Letters$as_cr_digits
14297 ECHO_C
= ECHO_N
= ECHO_T
=
14298 case `echo -n x` in #(((((
14300 case `echo 'xy\c'` in
14301 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
14303 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
14310 rm -f conf$$ conf$$.exe conf$$.
file
14311 if test -d conf$$.dir
; then
14312 rm -f conf$$.dir
/conf$$.
file
14315 mkdir conf$$.dir
2>/dev
/null
14317 if (echo >conf$$.
file) 2>/dev
/null
; then
14318 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
14320 # ... but there are two gotchas:
14321 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14322 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14323 # In both cases, we have to default to `cp -pR'.
14324 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
14326 elif ln conf$$.
file conf$$
2>/dev
/null
; then
14334 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
14335 rmdir conf$$.dir
2>/dev
/null
14340 # Create "$as_dir" as a directory, including parents if necessary.
14345 -*) as_dir
=.
/$as_dir;;
14347 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
14351 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14352 *) as_qdir
=$as_dir;;
14354 as_dirs
="'$as_qdir' $as_dirs"
14355 as_dir
=`$as_dirname -- "$as_dir" ||
14356 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14357 X"$as_dir" : 'X\(//\)[^/]' \| \
14358 X"$as_dir" : 'X\(//\)$' \| \
14359 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14360 $as_echo X"$as_dir" |
14361 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14365 /^X\(\/\/\)[^/].*/{
14378 test -d "$as_dir" && break
14380 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
14381 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
14385 if mkdir
-p .
2>/dev
/null
; then
14386 as_mkdir_p
='mkdir -p "$as_dir"'
14388 test -d .
/-p && rmdir .
/-p
14393 # as_fn_executable_p FILE
14394 # -----------------------
14395 # Test if FILE is an executable regular file.
14396 as_fn_executable_p
()
14398 test -f "$1" && test -x "$1"
14399 } # as_fn_executable_p
14400 as_test_x
='test -x'
14401 as_executable_p
=as_fn_executable_p
14403 # Sed expression to map a string onto a valid CPP name.
14404 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14406 # Sed expression to map a string onto a valid variable name.
14407 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14411 ## ----------------------------------- ##
14412 ## Main body of $CONFIG_STATUS script. ##
14413 ## ----------------------------------- ##
14415 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
14417 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
14418 # Save the log message, to keep $0 and so on meaningful, and to
14419 # report actual input values of CONFIG_FILES etc. instead of their
14420 # values after options handling.
14422 This file was extended by $as_me, which was
14423 generated by GNU Autoconf 2.69. Invocation command line was
14425 CONFIG_FILES = $CONFIG_FILES
14426 CONFIG_HEADERS = $CONFIG_HEADERS
14427 CONFIG_LINKS = $CONFIG_LINKS
14428 CONFIG_COMMANDS = $CONFIG_COMMANDS
14431 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14436 case $ac_config_files in *"
14437 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
14440 case $ac_config_headers in *"
14441 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
14445 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14446 # Files that config.status was made for.
14447 config_files="$ac_config_files"
14448 config_headers="$ac_config_headers"
14449 config_commands="$ac_config_commands"
14453 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
14455 \`$as_me' instantiates files and other configuration actions
14456 from templates according to the current configuration. Unless the files
14457 and actions are specified as TAGs, all are instantiated by default.
14459 Usage: $0 [OPTION]... [TAG]...
14461 -h, --help print this help, then exit
14462 -V, --version print version number and configuration settings, then exit
14463 --config print configuration, then exit
14464 -q, --quiet, --silent
14465 do not print progress messages
14466 -d, --debug don't remove temporary files
14467 --recheck update $as_me by reconfiguring in the same conditions
14468 --file=FILE[:TEMPLATE]
14469 instantiate the configuration file FILE
14470 --header=FILE[:TEMPLATE]
14471 instantiate the configuration header FILE
14473 Configuration files:
14476 Configuration headers:
14479 Configuration commands:
14482 Report bugs to the package provider."
14485 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14486 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14489 configured by $0, generated by GNU Autoconf 2.69,
14490 with options \\"\$ac_cs_config\\"
14492 Copyright (C) 2012 Free Software Foundation, Inc.
14493 This config.status script is free software; the Free Software Foundation
14494 gives unlimited permission to copy, distribute and modify it."
14501 test -n "\$AWK" || AWK=awk
14504 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
14505 # The default lists apply if the user does not specify any file.
14511 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
14512 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
14516 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
14528 # Handling of the options.
14529 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
14531 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
14532 $as_echo "$ac_cs_version"; exit ;;
14533 --config |
--confi |
--conf |
--con |
--co |
--c )
14534 $as_echo "$ac_cs_config"; exit ;;
14535 --debug |
--debu |
--deb |
--de |
--d |
-d )
14537 --file |
--fil |
--fi |
--f )
14540 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14541 '') as_fn_error $?
"missing file argument" ;;
14543 as_fn_append CONFIG_FILES
" '$ac_optarg'"
14544 ac_need_defaults
=false
;;
14545 --header |
--heade |
--head |
--hea )
14548 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14550 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
14551 ac_need_defaults
=false
;;
14553 # Conflict between --help and --header
14554 as_fn_error $?
"ambiguous option: \`$1'
14555 Try \`$0 --help' for more information.";;
14556 --help |
--hel |
-h )
14557 $as_echo "$ac_cs_usage"; exit ;;
14558 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
14559 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
14562 # This is an error.
14563 -*) as_fn_error $?
"unrecognized option: \`$1'
14564 Try \`$0 --help' for more information." ;;
14566 *) as_fn_append ac_config_targets
" $1"
14567 ac_need_defaults
=false
;;
14573 ac_configure_extra_args
=
14575 if $ac_cs_silent; then
14577 ac_configure_extra_args
="$ac_configure_extra_args --silent"
14581 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14582 if \$ac_cs_recheck; then
14583 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14585 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14586 CONFIG_SHELL='$SHELL'
14587 export CONFIG_SHELL
14592 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
14596 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14597 ## Running $as_me. ##
14603 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14607 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
14608 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
14609 # from automake < 1.5.
14610 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
14611 # Capture the value of LINGUAS because we need it to compute CATALOGS.
14612 LINGUAS="${LINGUAS-%UNSET%}"
14617 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
14619 # Handling of arguments.
14620 for ac_config_target
in $ac_config_targets
14622 case $ac_config_target in
14623 "lib/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS lib/config.h" ;;
14624 "po-directories") CONFIG_COMMANDS
="$CONFIG_COMMANDS po-directories" ;;
14625 "$outlist") CONFIG_FILES
="$CONFIG_FILES $outlist" ;;
14627 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14632 # If the user did not use the arguments to specify the items to instantiate,
14633 # then the envvar interface is used. Set only those that are not.
14634 # We use the long form for the default assignment because of an extremely
14635 # bizarre bug on SunOS 4.1.3.
14636 if $ac_need_defaults; then
14637 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
14638 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
14639 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
14642 # Have a temporary directory for convenience. Make it in the build tree
14643 # simply because there is no reason against having it here, and in addition,
14644 # creating and moving files from /tmp can sometimes cause problems.
14645 # Hook for its removal unless debugging.
14646 # Note that there is a small window in which the directory will not be cleaned:
14647 # after its creation but before its name has been assigned to `$tmp'.
14651 trap 'exit_status=$?
14652 : "${ac_tmp:=$tmp}"
14653 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14655 trap 'as_fn_exit 1' 1 2 13 15
14657 # Create a (secure) tmp directory for tmp files.
14660 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14664 tmp
=.
/conf$$
-$RANDOM
14665 (umask 077 && mkdir
"$tmp")
14666 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
14669 # Set up the scripts for CONFIG_FILES section.
14670 # No need to generate them if there are no CONFIG_FILES.
14671 # This happens for instance with `./config.status config.h'.
14672 if test -n "$CONFIG_FILES"; then
14674 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
14675 ac_cs_awk_getline
=:
14676 ac_cs_awk_pipe_init
=
14677 ac_cs_awk_read_file
='
14678 while ((getline aline < (F[key])) > 0)
14681 ac_cs_awk_pipe_fini
=
14683 ac_cs_awk_getline
=false
14684 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
14685 ac_cs_awk_read_file
='
14687 print "cat " F[key] " &&"
14688 '$ac_cs_awk_pipe_init
14689 # The final `:' finishes the AND list.
14690 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
14692 ac_cr
=`echo X | tr X '\015'`
14693 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14694 # But we know of no other shell where ac_cr would be empty at this
14695 # point, so we can use a bashism as a fallback.
14696 if test "x$ac_cr" = x
; then
14697 eval ac_cr
=\$
\'\\r
\'
14699 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14700 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14703 ac_cs_awk_cr
=$ac_cr
14706 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14709 # Create commands to substitute file output variables.
14711 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
14712 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
14713 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
14716 } >conf$
$files.sh
&&
14717 . .
/conf$
$files.sh ||
14718 as_fn_error $?
"could not make $CONFIG_STATUS" "$LINENO" 5
14719 rm -f conf$
$files.sh
14722 echo "cat >conf$$subs.awk <<_ACEOF" &&
14723 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14725 } >conf$$subs.sh ||
14726 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
14727 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14729 for ac_last_try in false false false false false :; do
14730 . ./conf$$subs.sh ||
14731 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
14733 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
14734 if test $ac_delim_n = $ac_delim_num; then
14736 elif $ac_last_try; then
14737 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
14739 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
14742 rm -f conf$$subs.sh
14744 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14745 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
14749 s/^/S["/; s
/!.
*/"]=/
14759 s/\(.\{148\}\)..*/\1/
14761 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
14766 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
14773 s/\(.\{148\}\)..*/\1/
14775 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
14779 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
14784 ' <conf$$subs.awk | sed '
14789 ' >>$CONFIG_STATUS || ac_write_fail=1
14790 rm -f conf$$subs.awk
14791 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14793 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
14794 for (key in S) S_is_set[key] = 1
14796 \$ac_cs_awk_pipe_init
14800 nfields = split(line, field, "@
")
14802 len = length(field[1])
14803 for (i = 2; i < nfields; i++) {
14805 keylen = length(key)
14806 if (S_is_set[key]) {
14808 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14809 len += length(value) + length(field[++i])
14814 if (nfields == 3 && !substed) {
14816 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
14817 \$ac_cs_awk_read_file
14823 \$ac_cs_awk_pipe_fini
14826 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14827 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14828 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
14831 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
14832 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
14835 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14836 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
14837 # trailing colons and then remove the whole line if VPATH becomes empty
14838 # (actually we leave an empty line to preserve line numbers).
14839 if test "x
$srcdir" = x.; then
14840 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14858 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14859 fi # test -n "$CONFIG_FILES"
14861 # Set up the scripts for CONFIG_HEADERS section.
14862 # No need to generate them if there are no CONFIG_HEADERS.
14863 # This happens for instance with `./config.status Makefile'.
14864 if test -n "$CONFIG_HEADERS"; then
14865 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
14869 # Transform confdefs.h into an awk script `defines.awk', embedded as
14870 # here-document in config.status, that substitutes the proper values into
14871 # config.h.in to produce config.h.
14873 # Create a delimiter string that does not exist in confdefs.h, to ease
14874 # handling of long lines.
14876 for ac_last_try in false false :; do
14877 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
14878 if test -z "$ac_tt"; then
14880 elif $ac_last_try; then
14881 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
14883 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
14887 # For the awk script, D is an array of macro values keyed by name,
14888 # likewise P contains macro parameters if any. Preserve backslash
14889 # newline sequences.
14891 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14893 s/.\{148\}/&'"$ac_delim"'/g
14896 s/^[ ]*#[ ]*define[ ][ ]*/ /
14903 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
14905 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
14909 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
14910 D["\
1"]=" \
3\\\\\\n
"\\/p
14912 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
14917 s/.\{148\}/&'"$ac_delim"'/g
14922 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
14925 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
14927 ' <confdefs.h | sed '
14928 s/'"$ac_delim"'/"\\\
14929 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14931 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14932 for (key in D) D_is_set[key] = 1
14935 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14937 split(line, arg, " ")
14938 if (arg[1] == "#") {
14942 defundef
= substr
(arg
[1], 2)
14945 split(mac1
, mac2
, "(") #)
14947 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
14948 if (D_is_set
[macro
]) {
14949 # Preserve the white space surrounding the "#".
14950 print prefix
"define", macro P
[macro
] D
[macro
]
14953 # Replace #undef with comments. This is necessary, for example,
14954 # in the case of _POSIX_SOURCE, which is predefined and required
14955 # on some systems where configure will not decide to define it.
14956 if (defundef
== "undef") {
14957 print
"/*", prefix defundef
, macro
, "*/"
14965 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
14966 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
14967 fi # test -n "$CONFIG_HEADERS"
14970 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14975 :[FHLC
]) ac_mode
=$ac_tag; continue;;
14977 case $ac_mode$ac_tag in
14979 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
14980 :[FH
]-) ac_tag
=-:-;;
14981 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
14998 -) ac_f
="$ac_tmp/stdin";;
14999 *) # Look for the file first in the build tree, then in the source tree
15000 # (if the path is not absolute). The absolute path cannot be DOS-style,
15001 # because $ac_f cannot contain `:'.
15005 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
15007 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15009 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15010 as_fn_append ac_file_inputs
" '$ac_f'"
15013 # Let's still pretend it is `configure' which instantiates (i.e., don't
15014 # use $as_me), people would be surprised to read:
15015 # /* config.h. Generated by config.status. */
15016 configure_input
='Generated from '`
15017 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15019 if test x
"$ac_file" != x-
; then
15020 configure_input
="$ac_file. $configure_input"
15021 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15022 $as_echo "$as_me: creating $ac_file" >&6;}
15024 # Neutralize special characters interpreted by sed in replacement strings.
15025 case $configure_input in #(
15026 *\
&* |
*\|
* |
*\\* )
15027 ac_sed_conf_input
=`$as_echo "$configure_input" |
15028 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15029 *) ac_sed_conf_input
=$configure_input;;
15033 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
15034 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
15039 ac_dir
=`$as_dirname -- "$ac_file" ||
15040 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15041 X"$ac_file" : 'X\(//\)[^/]' \| \
15042 X"$ac_file" : 'X\(//\)$' \| \
15043 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15044 $as_echo X"$ac_file" |
15045 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15049 /^X\(\/\/\)[^/].*/{
15062 as_dir
="$ac_dir"; as_fn_mkdir_p
15066 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
15068 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15069 # A ".." for each directory in $ac_dir_suffix.
15070 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15071 case $ac_top_builddir_sub in
15072 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
15073 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
15076 ac_abs_top_builddir
=$ac_pwd
15077 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
15078 # for backward compatibility:
15079 ac_top_builddir
=$ac_top_build_prefix
15082 .
) # We are building in place.
15084 ac_top_srcdir
=$ac_top_builddir_sub
15085 ac_abs_top_srcdir
=$ac_pwd ;;
15086 [\\/]* | ?
:[\\/]* ) # Absolute name.
15087 ac_srcdir
=$srcdir$ac_dir_suffix;
15088 ac_top_srcdir
=$srcdir
15089 ac_abs_top_srcdir
=$srcdir ;;
15090 *) # Relative name.
15091 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
15092 ac_top_srcdir
=$ac_top_build_prefix$srcdir
15093 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
15095 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
15105 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
15106 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
15108 ac_MKDIR_P
=$MKDIR_P
15110 [\\/$
]* | ?
:[\\/]* ) ;;
15111 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
15115 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15116 # If the template does not know about datarootdir, expand it.
15117 # FIXME: This hack should be removed a few years after 2.60.
15118 ac_datarootdir_hack
=; ac_datarootdir_seen
=
15129 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15130 *datarootdir
*) ac_datarootdir_seen
=yes;;
15131 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
15132 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15133 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15135 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15136 ac_datarootdir_hack='
15137 s&@datadir@&$datadir&g
15138 s&@docdir@&$docdir&g
15139 s&@infodir@&$infodir&g
15140 s&@localedir@&$localedir&g
15141 s&@mandir@&$mandir&g
15142 s&\\\${datarootdir}&$datarootdir&g' ;;
15146 # Neutralize VPATH when `$srcdir' = `.'.
15147 # Shell code in configure.ac might set extrasub.
15148 # FIXME: do we really want to maintain this feature?
15149 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15150 ac_sed_extra="$ac_vpsub
15153 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15155 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
15156 s|@configure_input@|
$ac_sed_conf_input|
;t t
15157 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
15158 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
15159 s
&@srcdir@
&$ac_srcdir&;t t
15160 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
15161 s
&@top_srcdir@
&$ac_top_srcdir&;t t
15162 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
15163 s
&@builddir@
&$ac_builddir&;t t
15164 s
&@abs_builddir@
&$ac_abs_builddir&;t t
15165 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
15166 s
&@INSTALL@
&$ac_INSTALL&;t t
15167 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
15168 $ac_datarootdir_hack
15170 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15171 if $ac_cs_awk_getline; then
15172 $AWK -f "$ac_tmp/subs.
awk"
15174 $AWK -f "$ac_tmp/subs.
awk" | $SHELL
15176 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
15178 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15179 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
15180 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
15181 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
15182 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
15183 which seems to be undefined. Please make sure it is defined" >&5
15184 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
15185 which seems to be undefined. Please make sure it is defined" >&2;}
15187 rm -f "$ac_tmp/stdin"
15189 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15190 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15192 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15198 if test x"$ac_file" != x-; then
15200 $as_echo "/* $configure_input */" \
15201 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15202 } >"$ac_tmp/config.h" \
15203 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15204 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15205 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15206 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15209 mv "$ac_tmp/config.h" "$ac_file" \
15210 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15213 $as_echo "/* $configure_input */" \
15214 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15215 || as_fn_error $? "could not create -" "$LINENO" 5
15219 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15220 $as_echo "$as_me: executing $ac_file commands" >&6;}
15225 case $ac_file$ac_mode in
15226 "po-directories":C)
15227 for ac_file in $CONFIG_FILES; do
15228 # Support "outfile[:infile[:infile...]]"
15230 *:*) ac_file=`echo "$ac_file"|sed 's
%:.
*%%'` ;;
15232 # PO directories have a Makefile.in generated from Makefile.in.in.
15233 case "$ac_file" in */Makefile.in)
15234 # Adjust a relative srcdir.
15235 ac_dir=`echo "$ac_file"|sed 's
%/[^
/][^
/]*$
%%'`
15236 ac_dir_suffix=/`echo "$ac_dir"|sed 's
%^\.
/%%'`
15237 ac_dots=`echo "$ac_dir_suffix"|sed 's
%/[^
/]*%..
/%g
'`
15238 # In autoconf-2.13 it is called $ac_given_srcdir.
15239 # In autoconf-2.50 it is called $srcdir.
15240 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
15241 case "$ac_given_srcdir" in
15242 .) top_srcdir=`echo $ac_dots|sed 's
%/$
%%'` ;;
15243 /*) top_srcdir="$ac_given_srcdir" ;;
15244 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
15246 # Treat a directory as a PO directory if and only if it has a
15247 # POTFILES.in file. This allows packages to have multiple PO
15248 # directories under different names or in different locations.
15249 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
15250 rm -f "$ac_dir/POTFILES"
15251 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
15252 gt_tab=`printf '\t'`
15253 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ${gt_tab}]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
15254 POMAKEFILEDEPS="POTFILES.in"
15255 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
15256 # on $ac_dir but don't depend on user-specified configuration
15258 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
15259 # The LINGUAS file contains the set of available languages.
15260 if test -n "$OBSOLETE_ALL_LINGUAS"; then
15261 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" ||
echo "setting ALL_LINGUAS in configure.in is obsolete"
15263 ALL_LINGUAS_
=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
15264 # Hide the ALL_LINGUAS assignment from automake < 1.5.
15265 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
15266 POMAKEFILEDEPS
="$POMAKEFILEDEPS LINGUAS"
15268 # The set of available languages was given in configure.in.
15269 # Hide the ALL_LINGUAS assignment from automake < 1.5.
15270 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
15273 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
15274 # Compute UPDATEPOFILES
15275 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
15276 # Compute DUMMYPOFILES
15277 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
15279 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
15280 case "$ac_given_srcdir" in
15282 *) srcdirpre
='$(srcdir)/' ;;
15288 for lang
in $ALL_LINGUAS; do
15289 POFILES
="$POFILES $srcdirpre$lang.po"
15290 UPDATEPOFILES
="$UPDATEPOFILES $lang.po-update"
15291 DUMMYPOFILES
="$DUMMYPOFILES $lang.nop"
15292 GMOFILES
="$GMOFILES $srcdirpre$lang.gmo"
15294 # CATALOGS depends on both $ac_dir and the user's LINGUAS
15295 # environment variable.
15297 if test -n "$ALL_LINGUAS"; then
15298 for presentlang
in $ALL_LINGUAS; do
15300 if test "%UNSET%" != "$LINGUAS"; then
15301 desiredlanguages
="$LINGUAS"
15303 desiredlanguages
="$ALL_LINGUAS"
15305 for desiredlang
in $desiredlanguages; do
15306 # Use the presentlang catalog if desiredlang is
15307 # a. equal to presentlang, or
15308 # b. a variant of presentlang (because in this case,
15309 # presentlang can be used as a fallback for messages
15310 # which are not translated in the desiredlang catalog).
15311 case "$desiredlang" in
15312 "$presentlang"*) useit
=yes;;
15315 if test $useit = yes; then
15316 INST_LINGUAS
="$INST_LINGUAS $presentlang"
15321 if test -n "$INST_LINGUAS"; then
15322 for lang
in $INST_LINGUAS; do
15323 CATALOGS
="$CATALOGS $lang.gmo"
15326 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" ||
echo "creating $ac_dir/Makefile"
15327 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"
15328 for f
in "$ac_given_srcdir/$ac_dir"/Rules-
*; do
15329 if test -f "$f"; then
15331 *.orig |
*.bak |
*~
) ;;
15332 *) cat "$f" >> "$ac_dir/Makefile" ;;
15347 ac_clean_files
=$ac_clean_files_save
15349 test $ac_write_fail = 0 ||
15350 as_fn_error $?
"write failure creating $CONFIG_STATUS" "$LINENO" 5
15353 # configure is writing to config.log, and then calls config.status.
15354 # config.status does its own redirection, appending to config.log.
15355 # Unfortunately, on DOS this fails, as config.log is still kept open
15356 # by configure, so config.status won't be able to write to it; its
15357 # output is simply discarded. So we exec the FD to /dev/null,
15358 # effectively closing config.log, so it can be properly (re)opened and
15359 # appended to by config.status. When coming back to configure, we
15360 # need to make the FD available again.
15361 if test "$no_create" != yes; then
15363 ac_config_status_args
=
15364 test "$silent" = yes &&
15365 ac_config_status_args
="$ac_config_status_args --quiet"
15367 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
15369 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15370 # would make configure fail if this is the last instruction.
15371 $ac_cs_success || as_fn_exit
1
15373 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
15374 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15375 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15378 if test -f util
/gen-tarball
; then chmod +x util
/gen-tarball
; fi