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 # Factoring default headers for most tests.
586 ac_includes_default
="\
588 #ifdef HAVE_SYS_TYPES_H
589 # include <sys/types.h>
591 #ifdef HAVE_SYS_STAT_H
592 # include <sys/stat.h>
598 # ifdef HAVE_STDLIB_H
603 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
608 #ifdef HAVE_STRINGS_H
609 # include <strings.h>
611 #ifdef HAVE_INTTYPES_H
612 # include <inttypes.h>
621 ac_unique_file
="gettext.c"
623 ac_subst_vars
='LTLIBOBJS
637 INTL_LIBTOOL_SUFFIX_PREFIX
644 BUILD_INCLUDED_LIBINTL
706 program_transform_name
719 enable_option_checking
725 with_included_gettext
728 enable_maintainer_mode
730 ac_precious_vars
='build_alias
741 # Initialize some variables set by options.
743 ac_init_version
=false
744 ac_unrecognized_opts
=
746 # The variables have the same names as the options, with
747 # dashes changed to underlines.
755 program_transform_name
=s
,x
,x
,
763 # Installation directory options.
764 # These are left unexpanded so users can "make install exec_prefix=/foo"
765 # and all the variables that are supposed to be based on exec_prefix
766 # by default will actually change.
767 # Use braces instead of parens because sh, perl, etc. also accept them.
768 # (The list follows the same order as the GNU Coding Standards.)
769 bindir
='${exec_prefix}/bin'
770 sbindir
='${exec_prefix}/sbin'
771 libexecdir
='${exec_prefix}/libexec'
772 datarootdir
='${prefix}/share'
773 datadir
='${datarootdir}'
774 sysconfdir
='${prefix}/etc'
775 sharedstatedir
='${prefix}/com'
776 localstatedir
='${prefix}/var'
777 includedir
='${prefix}/include'
778 oldincludedir
='/usr/include'
779 docdir
='${datarootdir}/doc/${PACKAGE}'
780 infodir
='${datarootdir}/info'
785 libdir
='${exec_prefix}/lib'
786 localedir
='${datarootdir}/locale'
787 mandir
='${datarootdir}/man'
793 # If the previous option needs an argument, assign it.
794 if test -n "$ac_prev"; then
795 eval $ac_prev=\
$ac_option
801 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
806 # Accept the important Cygnus configure options, so we can diagnose typos.
808 case $ac_dashdash$ac_option in
812 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
814 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
817 -build |
--build |
--buil |
--bui |
--bu)
818 ac_prev
=build_alias
;;
819 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
820 build_alias
=$ac_optarg ;;
822 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
823 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
824 ac_prev
=cache_file
;;
825 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
826 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
827 cache_file
=$ac_optarg ;;
830 cache_file
=config.cache
;;
832 -datadir |
--datadir |
--datadi |
--datad)
834 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
835 datadir
=$ac_optarg ;;
837 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
838 |
--dataroo |
--dataro |
--datar)
839 ac_prev
=datarootdir
;;
840 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
841 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
842 datarootdir
=$ac_optarg ;;
844 -disable-* |
--disable-*)
845 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
846 # Reject names that are not valid shell variable names.
847 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
848 as_fn_error $?
"invalid feature name: $ac_useropt"
849 ac_useropt_orig
=$ac_useropt
850 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
851 case $ac_user_opts in
855 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
856 ac_unrecognized_sep
=', ';;
858 eval enable_
$ac_useropt=no
;;
860 -docdir |
--docdir |
--docdi |
--doc |
--do)
862 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
865 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
867 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
870 -enable-* |
--enable-*)
871 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
872 # Reject names that are not valid shell variable names.
873 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
874 as_fn_error $?
"invalid feature name: $ac_useropt"
875 ac_useropt_orig
=$ac_useropt
876 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
877 case $ac_user_opts in
881 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
882 ac_unrecognized_sep
=', ';;
884 eval enable_
$ac_useropt=\
$ac_optarg ;;
886 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
887 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
888 |
--exec |
--exe |
--ex)
889 ac_prev
=exec_prefix
;;
890 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
891 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
892 |
--exec=* |
--exe=* |
--ex=*)
893 exec_prefix
=$ac_optarg ;;
895 -gas |
--gas |
--ga |
--g)
896 # Obsolete; use --with-gas.
899 -help |
--help |
--hel |
--he |
-h)
901 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
902 ac_init_help
=recursive
;;
903 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
904 ac_init_help
=short
;;
906 -host |
--host |
--hos |
--ho)
907 ac_prev
=host_alias
;;
908 -host=* |
--host=* |
--hos=* |
--ho=*)
909 host_alias
=$ac_optarg ;;
911 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
913 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
915 htmldir
=$ac_optarg ;;
917 -includedir |
--includedir |
--includedi |
--included |
--include \
918 |
--includ |
--inclu |
--incl |
--inc)
919 ac_prev
=includedir
;;
920 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
921 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
922 includedir
=$ac_optarg ;;
924 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
926 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
927 infodir
=$ac_optarg ;;
929 -libdir |
--libdir |
--libdi |
--libd)
931 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
934 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
935 |
--libexe |
--libex |
--libe)
936 ac_prev
=libexecdir
;;
937 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
938 |
--libexe=* |
--libex=* |
--libe=*)
939 libexecdir
=$ac_optarg ;;
941 -localedir |
--localedir |
--localedi |
--localed |
--locale)
943 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
944 localedir
=$ac_optarg ;;
946 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
947 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
948 ac_prev
=localstatedir
;;
949 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
950 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
951 localstatedir
=$ac_optarg ;;
953 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
955 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
959 # Obsolete; use --without-fp.
962 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
963 |
--no-cr |
--no-c |
-n)
966 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
967 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
970 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
971 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
972 |
--oldin |
--oldi |
--old |
--ol |
--o)
973 ac_prev
=oldincludedir
;;
974 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
975 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
976 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
977 oldincludedir
=$ac_optarg ;;
979 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
981 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
984 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
985 |
--program-pre |
--program-pr |
--program-p)
986 ac_prev
=program_prefix
;;
987 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
988 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
989 program_prefix
=$ac_optarg ;;
991 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
992 |
--program-suf |
--program-su |
--program-s)
993 ac_prev
=program_suffix
;;
994 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
995 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
996 program_suffix
=$ac_optarg ;;
998 -program-transform-name |
--program-transform-name \
999 |
--program-transform-nam |
--program-transform-na \
1000 |
--program-transform-n |
--program-transform- \
1001 |
--program-transform |
--program-transfor \
1002 |
--program-transfo |
--program-transf \
1003 |
--program-trans |
--program-tran \
1004 |
--progr-tra |
--program-tr |
--program-t)
1005 ac_prev
=program_transform_name
;;
1006 -program-transform-name=* |
--program-transform-name=* \
1007 |
--program-transform-nam=* |
--program-transform-na=* \
1008 |
--program-transform-n=* |
--program-transform-=* \
1009 |
--program-transform=* |
--program-transfor=* \
1010 |
--program-transfo=* |
--program-transf=* \
1011 |
--program-trans=* |
--program-tran=* \
1012 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1013 program_transform_name
=$ac_optarg ;;
1015 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1017 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1018 pdfdir
=$ac_optarg ;;
1020 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1022 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1025 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1026 |
-silent |
--silent |
--silen |
--sile |
--sil)
1029 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1031 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1033 sbindir
=$ac_optarg ;;
1035 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1036 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1037 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1039 ac_prev
=sharedstatedir
;;
1040 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1041 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1042 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1044 sharedstatedir
=$ac_optarg ;;
1046 -site |
--site |
--sit)
1048 -site=* |
--site=* |
--sit=*)
1051 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1053 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1054 srcdir
=$ac_optarg ;;
1056 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1057 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1058 ac_prev
=sysconfdir
;;
1059 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1060 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1061 sysconfdir
=$ac_optarg ;;
1063 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1064 ac_prev
=target_alias
;;
1065 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1066 target_alias
=$ac_optarg ;;
1068 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1071 -version |
--version |
--versio |
--versi |
--vers |
-V)
1072 ac_init_version
=: ;;
1075 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1076 # Reject names that are not valid shell variable names.
1077 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1078 as_fn_error $?
"invalid package name: $ac_useropt"
1079 ac_useropt_orig
=$ac_useropt
1080 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1081 case $ac_user_opts in
1085 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1086 ac_unrecognized_sep
=', ';;
1088 eval with_
$ac_useropt=\
$ac_optarg ;;
1090 -without-* |
--without-*)
1091 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1092 # Reject names that are not valid shell variable names.
1093 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1094 as_fn_error $?
"invalid package name: $ac_useropt"
1095 ac_useropt_orig
=$ac_useropt
1096 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1097 case $ac_user_opts in
1101 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1102 ac_unrecognized_sep
=', ';;
1104 eval with_
$ac_useropt=no
;;
1107 # Obsolete; use --with-x.
1110 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1111 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1112 ac_prev
=x_includes
;;
1113 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1114 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1115 x_includes
=$ac_optarg ;;
1117 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1118 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1119 ac_prev
=x_libraries
;;
1120 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1121 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1122 x_libraries
=$ac_optarg ;;
1124 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1125 Try \`$0 --help' for more information"
1129 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1130 # Reject names that are not valid shell variable names.
1131 case $ac_envvar in #(
1132 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1133 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1135 eval $ac_envvar=\
$ac_optarg
1136 export $ac_envvar ;;
1139 # FIXME: should be removed in autoconf 3.0.
1140 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1141 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1142 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1143 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1149 if test -n "$ac_prev"; then
1150 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1151 as_fn_error $?
"missing argument to $ac_option"
1154 if test -n "$ac_unrecognized_opts"; then
1155 case $enable_option_checking in
1157 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1158 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1162 # Check all directory arguments for consistency.
1163 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1164 datadir sysconfdir sharedstatedir localstatedir includedir \
1165 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1166 libdir localedir mandir
1168 eval ac_val
=\$
$ac_var
1169 # Remove trailing slashes.
1172 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1173 eval $ac_var=\
$ac_val;;
1175 # Be sure to have absolute directory names.
1177 [\\/$
]* | ?
:[\\/]* ) continue;;
1178 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1180 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1183 # There might be people who depend on the old broken behavior: `$host'
1184 # used to hold the argument of --host etc.
1185 # FIXME: To remove some day.
1188 target
=$target_alias
1190 # FIXME: To remove some day.
1191 if test "x$host_alias" != x
; then
1192 if test "x$build_alias" = x
; then
1193 cross_compiling
=maybe
1194 elif test "x$build_alias" != "x$host_alias"; then
1200 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1202 test "$silent" = yes && exec 6>/dev
/null
1205 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1206 ac_ls_di
=`ls -di .` &&
1207 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1208 as_fn_error $?
"working directory cannot be determined"
1209 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1210 as_fn_error $?
"pwd does not report name of working directory"
1213 # Find the source files, if location was not specified.
1214 if test -z "$srcdir"; then
1215 ac_srcdir_defaulted
=yes
1216 # Try the directory containing this script, then the parent directory.
1217 ac_confdir
=`$as_dirname -- "$as_myself" ||
1218 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1219 X"$as_myself" : 'X\(//\)[^/]' \| \
1220 X"$as_myself" : 'X\(//\)$' \| \
1221 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1222 $as_echo X"$as_myself" |
1223 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1241 if test ! -r "$srcdir/$ac_unique_file"; then
1245 ac_srcdir_defaulted
=no
1247 if test ! -r "$srcdir/$ac_unique_file"; then
1248 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1249 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1251 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1253 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1255 # When building in place, set srcdir=.
1256 if test "$ac_abs_confdir" = "$ac_pwd"; then
1259 # Remove unnecessary trailing slashes from srcdir.
1260 # Double slashes in file names in object file debugging info
1261 # mess up M-x gdb in Emacs.
1263 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1265 for ac_var
in $ac_precious_vars; do
1266 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1267 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1268 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1269 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1273 # Report the --help message.
1275 if test "$ac_init_help" = "long"; then
1276 # Omit some internal or obsolete options to make the list less imposing.
1277 # This message is too long to be a string in the A/UX 3.1 sh.
1279 \`configure' configures this package to adapt to many kinds of systems.
1281 Usage: $0 [OPTION]... [VAR=VALUE]...
1283 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1284 VAR=VALUE. See below for descriptions of some of the useful variables.
1286 Defaults for the options are specified in brackets.
1289 -h, --help display this help and exit
1290 --help=short display options specific to this package
1291 --help=recursive display the short help of all the included packages
1292 -V, --version display version information and exit
1293 -q, --quiet, --silent do not print \`checking ...' messages
1294 --cache-file=FILE cache test results in FILE [disabled]
1295 -C, --config-cache alias for \`--cache-file=config.cache'
1296 -n, --no-create do not create output files
1297 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1299 Installation directories:
1300 --prefix=PREFIX install architecture-independent files in PREFIX
1301 [$ac_default_prefix]
1302 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1305 By default, \`make install' will install all the files in
1306 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1307 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1308 for instance \`--prefix=\$HOME'.
1310 For better control, use the options below.
1312 Fine tuning of the installation directories:
1313 --bindir=DIR user executables [EPREFIX/bin]
1314 --sbindir=DIR system admin executables [EPREFIX/sbin]
1315 --libexecdir=DIR program executables [EPREFIX/libexec]
1316 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1317 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1318 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1319 --libdir=DIR object code libraries [EPREFIX/lib]
1320 --includedir=DIR C header files [PREFIX/include]
1321 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1322 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1323 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1324 --infodir=DIR info documentation [DATAROOTDIR/info]
1325 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1326 --mandir=DIR man documentation [DATAROOTDIR/man]
1327 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1328 --htmldir=DIR html documentation [DOCDIR]
1329 --dvidir=DIR dvi documentation [DOCDIR]
1330 --pdfdir=DIR pdf documentation [DOCDIR]
1331 --psdir=DIR ps documentation [DOCDIR]
1337 --build=BUILD configure
for building on BUILD
[guessed
]
1338 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1342 if test -n "$ac_init_help"; then
1347 --disable-option-checking ignore unrecognized
--enable/--with options
1348 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1349 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1350 --disable-nls do not use Native Language Support
1351 --disable-rpath do not hardcode runtime library paths
1352 --enable-maintainer-mode enable rules only needed by maintainers
1355 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1356 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1357 --with-gnu-ld assume the C compiler uses GNU ld default
=no
1358 --with-libiconv-prefix[=DIR
] search
for libiconv
in DIR
/include and DIR
/lib
1359 --without-libiconv-prefix don
't search for libiconv in includedir and libdir
1360 --with-libiconv-type=TYPE type of library to search for (auto/static/shared)
1361 --with-included-gettext use the GNU gettext library included here
1362 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1363 --without-libintl-prefix don't search
for libintl
in includedir and libdir
1364 --with-libintl-type=TYPE
type of library to search
for (auto
/static
/shared
)
1366 Some influential environment variables
:
1367 CC C compiler
command
1368 CFLAGS C compiler flags
1369 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1370 nonstandard directory
<lib dir
>
1371 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1372 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1373 you have headers
in a nonstandard directory
<include dir
>
1376 Use these variables to override the choices made by
`configure' or to help
1377 it to find libraries and programs with nonstandard names/locations.
1379 Report bugs to the package provider.
1384 if test "$ac_init_help" = "recursive"; then
1385 # If there are subdirs, report their specific --help.
1386 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1387 test -d "$ac_dir" ||
1388 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1393 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1395 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1396 # A ".." for each directory in $ac_dir_suffix.
1397 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1398 case $ac_top_builddir_sub in
1399 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1400 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1403 ac_abs_top_builddir=$ac_pwd
1404 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1405 # for backward compatibility:
1406 ac_top_builddir=$ac_top_build_prefix
1409 .) # We are building in place.
1411 ac_top_srcdir=$ac_top_builddir_sub
1412 ac_abs_top_srcdir=$ac_pwd ;;
1413 [\\/]* | ?:[\\/]* ) # Absolute name.
1414 ac_srcdir=$srcdir$ac_dir_suffix;
1415 ac_top_srcdir=$srcdir
1416 ac_abs_top_srcdir=$srcdir ;;
1418 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1419 ac_top_srcdir=$ac_top_build_prefix$srcdir
1420 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1422 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1424 cd "$ac_dir" || { ac_status=$?; continue; }
1425 # Check for guested configure.
1426 if test -f "$ac_srcdir/configure.gnu"; then
1428 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1429 elif test -f "$ac_srcdir/configure"; then
1431 $SHELL "$ac_srcdir/configure" --help=recursive
1433 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1435 cd "$ac_pwd" || { ac_status=$?; break; }
1439 test -n "$ac_init_help" && exit $ac_status
1440 if $ac_init_version; then
1443 generated by GNU Autoconf 2.69
1445 Copyright (C) 2012 Free Software Foundation, Inc.
1446 This configure script is free software; the Free Software Foundation
1447 gives unlimited permission to copy, distribute and modify it.
1452 ## ------------------------ ##
1453 ## Autoconf initialization. ##
1454 ## ------------------------ ##
1456 # ac_fn_c_try_compile LINENO
1457 # --------------------------
1458 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1459 ac_fn_c_try_compile ()
1461 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1462 rm -f conftest.$ac_objext
1463 if { { ac_try="$ac_compile"
1465 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1466 *) ac_try_echo
=$ac_try;;
1468 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1469 $as_echo "$ac_try_echo"; } >&5
1470 (eval "$ac_compile") 2>conftest.err
1472 if test -s conftest.err
; then
1473 grep -v '^ *+' conftest.err
>conftest.er1
1474 cat conftest.er1
>&5
1475 mv -f conftest.er1 conftest.err
1477 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1478 test $ac_status = 0; } && {
1479 test -z "$ac_c_werror_flag" ||
1480 test ! -s conftest.err
1481 } && test -s conftest.
$ac_objext; then :
1484 $as_echo "$as_me: failed program was:" >&5
1485 sed 's/^/| /' conftest.
$ac_ext >&5
1489 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1490 as_fn_set_status
$ac_retval
1492 } # ac_fn_c_try_compile
1494 # ac_fn_c_try_cpp LINENO
1495 # ----------------------
1496 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1499 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1500 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1502 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1503 *) ac_try_echo=$ac_try;;
1505 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1506 $as_echo "$ac_try_echo"; } >&5
1507 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1509 if test -s conftest.err; then
1510 grep -v '^ *+' conftest.err >conftest.er1
1511 cat conftest.er1 >&5
1512 mv -f conftest.er1 conftest.err
1514 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1515 test $ac_status = 0; } > conftest.i && {
1516 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1517 test ! -s conftest.err
1521 $as_echo "$as_me: failed program was:" >&5
1522 sed 's/^/| /' conftest.$ac_ext >&5
1526 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1527 as_fn_set_status $ac_retval
1531 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1532 # -------------------------------------------------------
1533 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1534 # the include files in INCLUDES and setting the cache variable VAR
1536 ac_fn_c_check_header_mongrel ()
1538 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1539 if eval \${$3+:} false; then :
1540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1541 $as_echo_n "checking for $2... " >&6; }
1542 if eval \${$3+:} false; then :
1543 $as_echo_n "(cached) " >&6
1546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1547 $as_echo "$ac_res" >&6; }
1549 # Is the header compilable?
1550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1551 $as_echo_n "checking $2 usability... " >&6; }
1552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1553 /* end confdefs.h. */
1557 if ac_fn_c_try_compile "$LINENO"; then :
1558 ac_header_compiler=yes
1560 ac_header_compiler=no
1562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1564 $as_echo "$ac_header_compiler" >&6; }
1566 # Is the header present?
1567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1568 $as_echo_n "checking $2 presence... " >&6; }
1569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1570 /* end confdefs.h. */
1573 if ac_fn_c_try_cpp "$LINENO"; then :
1574 ac_header_preproc=yes
1576 ac_header_preproc=no
1578 rm -f conftest.err conftest.i conftest.$ac_ext
1579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1580 $as_echo "$ac_header_preproc" >&6; }
1582 # So? What about this header?
1583 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1585 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1586 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1587 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1588 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1591 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1592 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1593 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1594 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1595 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1596 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1597 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1598 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1599 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1600 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1604 $as_echo_n "checking for $2... " >&6; }
1605 if eval \${$3+:} false; then :
1606 $as_echo_n "(cached) " >&6
1608 eval "$3=\$ac_header_compiler"
1611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1612 $as_echo "$ac_res" >&6; }
1614 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1616 } # ac_fn_c_check_header_mongrel
1618 # ac_fn_c_try_run LINENO
1619 # ----------------------
1620 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1621 # that executables *can* be run.
1624 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1625 if { { ac_try="$ac_link"
1627 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1628 *) ac_try_echo
=$ac_try;;
1630 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1631 $as_echo "$ac_try_echo"; } >&5
1632 (eval "$ac_link") 2>&5
1634 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1635 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1636 { { case "(($ac_try" in
1637 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1638 *) ac_try_echo=$ac_try;;
1640 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1641 $as_echo "$ac_try_echo"; } >&5
1642 (eval "$ac_try") 2>&5
1644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1645 test $ac_status = 0; }; }; then :
1648 $as_echo "$as_me: program exited with status $ac_status" >&5
1649 $as_echo "$as_me: failed program was:" >&5
1650 sed 's/^/| /' conftest.$ac_ext >&5
1652 ac_retval=$ac_status
1654 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1655 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1656 as_fn_set_status $ac_retval
1660 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1661 # -------------------------------------------------------
1662 # Tests whether HEADER exists and can be compiled using the include files in
1663 # INCLUDES, setting the cache variable VAR accordingly.
1664 ac_fn_c_check_header_compile ()
1666 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1668 $as_echo_n "checking for $2... " >&6; }
1669 if eval \${$3+:} false; then :
1670 $as_echo_n "(cached) " >&6
1672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1673 /* end confdefs.h. */
1677 if ac_fn_c_try_compile "$LINENO"; then :
1682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1686 $as_echo "$ac_res" >&6; }
1687 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1689 } # ac_fn_c_check_header_compile
1691 # ac_fn_c_try_link LINENO
1692 # -----------------------
1693 # Try to link conftest.$ac_ext, and return whether this succeeded.
1696 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1697 rm -f conftest.$ac_objext conftest$ac_exeext
1698 if { { ac_try="$ac_link"
1700 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1701 *) ac_try_echo
=$ac_try;;
1703 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1704 $as_echo "$ac_try_echo"; } >&5
1705 (eval "$ac_link") 2>conftest.err
1707 if test -s conftest.err
; then
1708 grep -v '^ *+' conftest.err
>conftest.er1
1709 cat conftest.er1
>&5
1710 mv -f conftest.er1 conftest.err
1712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1713 test $ac_status = 0; } && {
1714 test -z "$ac_c_werror_flag" ||
1715 test ! -s conftest.err
1716 } && test -s conftest
$ac_exeext && {
1717 test "$cross_compiling" = yes ||
1718 test -x conftest
$ac_exeext
1722 $as_echo "$as_me: failed program was:" >&5
1723 sed 's/^/| /' conftest.
$ac_ext >&5
1727 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1728 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1729 # interfere with the next link command; also delete a directory that is
1730 # left behind by Apple's compiler. We do this before executing the actions.
1731 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1732 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1733 as_fn_set_status
$ac_retval
1735 } # ac_fn_c_try_link
1737 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1738 # -------------------------------------------
1739 # Tests whether TYPE exists after having included INCLUDES, setting cache
1740 # variable VAR accordingly.
1741 ac_fn_c_check_type
()
1743 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1745 $as_echo_n "checking for $2... " >&6; }
1746 if eval \
${$3+:} false
; then :
1747 $as_echo_n "(cached) " >&6
1750 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1751 /* end confdefs.h. */
1762 if ac_fn_c_try_compile
"$LINENO"; then :
1763 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1764 /* end confdefs.h. */
1775 if ac_fn_c_try_compile
"$LINENO"; then :
1780 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1782 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1786 $as_echo "$ac_res" >&6; }
1787 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1789 } # ac_fn_c_check_type
1791 # ac_fn_c_check_func LINENO FUNC VAR
1792 # ----------------------------------
1793 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1794 ac_fn_c_check_func
()
1796 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1798 $as_echo_n "checking for $2... " >&6; }
1799 if eval \
${$3+:} false
; then :
1800 $as_echo_n "(cached) " >&6
1802 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1803 /* end confdefs.h. */
1804 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1805 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1806 #define $2 innocuous_$2
1808 /* System header to define __stub macros and hopefully few prototypes,
1809 which can conflict with char $2 (); below.
1810 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1811 <limits.h> exists even on freestanding compilers. */
1814 # include <limits.h>
1816 # include <assert.h>
1821 /* Override any GCC internal prototype to avoid an error.
1822 Use char because int might match the return type of a GCC
1823 builtin and then its argument prototype would still apply. */
1828 /* The GNU C library defines this for functions which it implements
1829 to always fail with ENOSYS. Some functions are actually named
1830 something starting with __ and the normal name is an alias. */
1831 #if defined __stub_$2 || defined __stub___$2
1843 if ac_fn_c_try_link
"$LINENO"; then :
1848 rm -f core conftest.err conftest.
$ac_objext \
1849 conftest
$ac_exeext conftest.
$ac_ext
1852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1853 $as_echo "$ac_res" >&6; }
1854 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1856 } # ac_fn_c_check_func
1857 cat >config.log
<<_ACEOF
1858 This file contains any messages produced by compilers while
1859 running configure, to aid debugging if configure makes a mistake.
1861 It was created by $as_me, which was
1862 generated by GNU Autoconf 2.69. Invocation command line was
1874 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1875 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1876 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1877 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1878 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1880 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1881 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1883 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1884 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1885 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1886 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1887 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1888 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1889 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1893 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1897 test -z "$as_dir" && as_dir
=.
1898 $as_echo "PATH: $as_dir"
1914 # Keep a trace of the command line.
1915 # Strip out --no-create and --no-recursion so they do not pile up.
1916 # Strip out --silent because we don't want to record it for future runs.
1917 # Also quote any args containing shell meta-characters.
1918 # Make two passes to allow for proper duplicate-argument suppression.
1922 ac_must_keep_next
=false
1928 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
1929 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1930 |
-silent |
--silent |
--silen |
--sile |
--sil)
1933 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1936 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
1938 as_fn_append ac_configure_args1
" '$ac_arg'"
1939 if test $ac_must_keep_next = true
; then
1940 ac_must_keep_next
=false
# Got value, back to normal.
1943 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
1944 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
1945 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
1946 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
1947 case "$ac_configure_args0 " in
1948 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1951 -* ) ac_must_keep_next
=true
;;
1954 as_fn_append ac_configure_args
" '$ac_arg'"
1959 { ac_configure_args0
=; unset ac_configure_args0
;}
1960 { ac_configure_args1
=; unset ac_configure_args1
;}
1962 # When interrupted or exit'd, cleanup temporary files, and complete
1963 # config.log. We remove comments because anyway the quotes in there
1964 # would cause problems or look ugly.
1965 # WARNING: Use '\'' to represent an apostrophe within the trap.
1966 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1967 trap 'exit_status=$?
1968 # Save into config.log some information that might help in debugging.
1972 $as_echo "## ---------------- ##
1973 ## Cache variables. ##
1974 ## ---------------- ##"
1976 # The following way of writing the cache mishandles newlines in values,
1978 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1979 eval ac_val=\$$ac_var
1983 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1984 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1987 _ | IFS | as_nl) ;; #(
1988 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1989 *) { eval $ac_var=; unset $ac_var;} ;;
1994 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1995 *${as_nl}ac_space=\ *)
1997 "s/'\''/'\''\\\\'\'''\''/g;
1998 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2001 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2008 $as_echo "## ----------------- ##
2009 ## Output variables. ##
2010 ## ----------------- ##"
2012 for ac_var in $ac_subst_vars
2014 eval ac_val=\$$ac_var
2016 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2018 $as_echo "$ac_var='\''$ac_val'\''"
2022 if test -n "$ac_subst_files"; then
2023 $as_echo "## ------------------- ##
2024 ## File substitutions. ##
2025 ## ------------------- ##"
2027 for ac_var
in $ac_subst_files
2029 eval ac_val
=\$
$ac_var
2031 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2033 $as_echo "$ac_var='\''$ac_val'\''"
2038 if test -s confdefs.h; then
2039 $as_echo "## ----------- ##
2046 test "$ac_signal" != 0 &&
2047 $as_echo "$as_me: caught signal $ac_signal"
2048 $as_echo "$as_me: exit $exit_status"
2050 rm -f core *.core core.conftest.* &&
2051 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2054 for ac_signal
in 1 2 13 15; do
2055 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2059 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2060 rm -f -r conftest
* confdefs.h
2062 $as_echo "/* confdefs.h */" > confdefs.h
2064 # Predefined preprocessor variables.
2066 cat >>confdefs.h
<<_ACEOF
2067 #define PACKAGE_NAME "$PACKAGE_NAME"
2070 cat >>confdefs.h
<<_ACEOF
2071 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2074 cat >>confdefs.h
<<_ACEOF
2075 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2078 cat >>confdefs.h
<<_ACEOF
2079 #define PACKAGE_STRING "$PACKAGE_STRING"
2082 cat >>confdefs.h
<<_ACEOF
2083 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2086 cat >>confdefs.h
<<_ACEOF
2087 #define PACKAGE_URL "$PACKAGE_URL"
2091 # Let the site file select an alternate cache file if it wants to.
2092 # Prefer an explicitly selected file to automatically selected ones.
2095 if test -n "$CONFIG_SITE"; then
2096 # We do not want a PATH search for config.site.
2097 case $CONFIG_SITE in #((
2098 -*) ac_site_file1
=.
/$CONFIG_SITE;;
2099 */*) ac_site_file1
=$CONFIG_SITE;;
2100 *) ac_site_file1
=.
/$CONFIG_SITE;;
2102 elif test "x$prefix" != xNONE
; then
2103 ac_site_file1
=$prefix/share
/config.site
2104 ac_site_file2
=$prefix/etc
/config.site
2106 ac_site_file1
=$ac_default_prefix/share
/config.site
2107 ac_site_file2
=$ac_default_prefix/etc
/config.site
2109 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2111 test "x$ac_site_file" = xNONE
&& continue
2112 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
2113 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2114 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2115 sed 's/^/| /' "$ac_site_file" >&5
2117 ||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2118 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2119 as_fn_error $?
"failed to load site script $ac_site_file
2120 See \`config.log' for more details" "$LINENO" 5; }
2124 if test -r "$cache_file"; then
2125 # Some versions of bash will fail to source /dev/null (special files
2126 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2127 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
2128 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2129 $as_echo "$as_me: loading cache $cache_file" >&6;}
2131 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2132 *) .
"./$cache_file";;
2136 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2137 $as_echo "$as_me: creating cache $cache_file" >&6;}
2141 as_fn_append ac_header_list
" stdlib.h"
2142 as_fn_append ac_header_list
" unistd.h"
2143 as_fn_append ac_header_list
" sys/param.h"
2144 # Check that the precious variables saved in the cache have kept the same
2146 ac_cache_corrupted
=false
2147 for ac_var
in $ac_precious_vars; do
2148 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2149 eval ac_new_set
=\
$ac_env_${ac_var}_set
2150 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2151 eval ac_new_val
=\
$ac_env_${ac_var}_value
2152 case $ac_old_set,$ac_new_set in
2154 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2155 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2156 ac_cache_corrupted
=: ;;
2158 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2159 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2160 ac_cache_corrupted
=: ;;
2163 if test "x$ac_old_val" != "x$ac_new_val"; then
2164 # differences in whitespace do not lead to failure.
2165 ac_old_val_w
=`echo x $ac_old_val`
2166 ac_new_val_w
=`echo x $ac_new_val`
2167 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2168 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2169 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2170 ac_cache_corrupted
=:
2172 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2173 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2174 eval $ac_var=\
$ac_old_val
2176 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2177 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2178 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2179 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2182 # Pass precious variables to config.status.
2183 if test "$ac_new_set" = set; then
2185 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2186 *) ac_arg
=$ac_var=$ac_new_val ;;
2188 case " $ac_configure_args " in
2189 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2190 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2194 if $ac_cache_corrupted; then
2195 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2196 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2197 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2198 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2199 as_fn_error $?
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2201 ## -------------------- ##
2202 ## Main body of script. ##
2203 ## -------------------- ##
2206 ac_cpp
='$CPP $CPPFLAGS'
2207 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2208 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2209 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2216 ac_cpp
='$CPP $CPPFLAGS'
2217 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2218 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2219 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2220 if test -n "$ac_tool_prefix"; then
2221 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2222 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2224 $as_echo_n "checking for $ac_word... " >&6; }
2225 if ${ac_cv_prog_CC+:} false
; then :
2226 $as_echo_n "(cached) " >&6
2228 if test -n "$CC"; then
2229 ac_cv_prog_CC
="$CC" # Let the user override the test.
2231 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2235 test -z "$as_dir" && as_dir
=.
2236 for ac_exec_ext
in '' $ac_executable_extensions; do
2237 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2238 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2249 if test -n "$CC"; then
2250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2251 $as_echo "$CC" >&6; }
2253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2254 $as_echo "no" >&6; }
2259 if test -z "$ac_cv_prog_CC"; then
2261 # Extract the first word of "gcc", so it can be a program name with args.
2262 set dummy gcc
; ac_word
=$2
2263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2264 $as_echo_n "checking for $ac_word... " >&6; }
2265 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
2266 $as_echo_n "(cached) " >&6
2268 if test -n "$ac_ct_CC"; then
2269 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2271 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2275 test -z "$as_dir" && as_dir
=.
2276 for ac_exec_ext
in '' $ac_executable_extensions; do
2277 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2278 ac_cv_prog_ac_ct_CC
="gcc"
2279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2288 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2289 if test -n "$ac_ct_CC"; then
2290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2291 $as_echo "$ac_ct_CC" >&6; }
2293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2294 $as_echo "no" >&6; }
2297 if test "x$ac_ct_CC" = x
; then
2300 case $cross_compiling:$ac_tool_warned in
2302 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2303 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2304 ac_tool_warned
=yes ;;
2312 if test -z "$CC"; then
2313 if test -n "$ac_tool_prefix"; then
2314 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2315 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2317 $as_echo_n "checking for $ac_word... " >&6; }
2318 if ${ac_cv_prog_CC+:} false
; then :
2319 $as_echo_n "(cached) " >&6
2321 if test -n "$CC"; then
2322 ac_cv_prog_CC
="$CC" # Let the user override the test.
2324 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2328 test -z "$as_dir" && as_dir
=.
2329 for ac_exec_ext
in '' $ac_executable_extensions; do
2330 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2331 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2342 if test -n "$CC"; then
2343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2344 $as_echo "$CC" >&6; }
2346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2347 $as_echo "no" >&6; }
2353 if test -z "$CC"; then
2354 # Extract the first word of "cc", so it can be a program name with args.
2355 set dummy cc
; ac_word
=$2
2356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2357 $as_echo_n "checking for $ac_word... " >&6; }
2358 if ${ac_cv_prog_CC+:} false
; then :
2359 $as_echo_n "(cached) " >&6
2361 if test -n "$CC"; then
2362 ac_cv_prog_CC
="$CC" # Let the user override the test.
2365 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2369 test -z "$as_dir" && as_dir
=.
2370 for ac_exec_ext
in '' $ac_executable_extensions; do
2371 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2372 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2373 ac_prog_rejected
=yes
2377 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2384 if test $ac_prog_rejected = yes; then
2385 # We found a bogon in the path, so make sure we never use it.
2386 set dummy
$ac_cv_prog_CC
2388 if test $# != 0; then
2389 # We chose a different compiler from the bogus one.
2390 # However, it has the same basename, so the bogon will be chosen
2391 # first if we set CC to just the basename; use the full file name.
2393 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2399 if test -n "$CC"; then
2400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2401 $as_echo "$CC" >&6; }
2403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2404 $as_echo "no" >&6; }
2409 if test -z "$CC"; then
2410 if test -n "$ac_tool_prefix"; then
2411 for ac_prog
in cl.exe
2413 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2414 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2416 $as_echo_n "checking for $ac_word... " >&6; }
2417 if ${ac_cv_prog_CC+:} false
; then :
2418 $as_echo_n "(cached) " >&6
2420 if test -n "$CC"; then
2421 ac_cv_prog_CC
="$CC" # Let the user override the test.
2423 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2427 test -z "$as_dir" && as_dir
=.
2428 for ac_exec_ext
in '' $ac_executable_extensions; do
2429 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2430 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2441 if test -n "$CC"; then
2442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2443 $as_echo "$CC" >&6; }
2445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2446 $as_echo "no" >&6; }
2450 test -n "$CC" && break
2453 if test -z "$CC"; then
2455 for ac_prog
in cl.exe
2457 # Extract the first word of "$ac_prog", so it can be a program name with args.
2458 set dummy
$ac_prog; ac_word
=$2
2459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2460 $as_echo_n "checking for $ac_word... " >&6; }
2461 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
2462 $as_echo_n "(cached) " >&6
2464 if test -n "$ac_ct_CC"; then
2465 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2467 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2471 test -z "$as_dir" && as_dir
=.
2472 for ac_exec_ext
in '' $ac_executable_extensions; do
2473 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2474 ac_cv_prog_ac_ct_CC
="$ac_prog"
2475 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2484 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2485 if test -n "$ac_ct_CC"; then
2486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2487 $as_echo "$ac_ct_CC" >&6; }
2489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2490 $as_echo "no" >&6; }
2494 test -n "$ac_ct_CC" && break
2497 if test "x$ac_ct_CC" = x
; then
2500 case $cross_compiling:$ac_tool_warned in
2502 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2503 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2504 ac_tool_warned
=yes ;;
2513 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2514 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2515 as_fn_error $?
"no acceptable C compiler found in \$PATH
2516 See \`config.log' for more details" "$LINENO" 5; }
2518 # Provide some information about the compiler.
2519 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2522 for ac_option
in --version -v -V -qversion; do
2523 { { ac_try
="$ac_compiler $ac_option >&5"
2525 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2526 *) ac_try_echo=$ac_try;;
2528 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2529 $as_echo "$ac_try_echo"; } >&5
2530 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2532 if test -s conftest.err; then
2534 ... rest of stderr output deleted ...
2535 10q' conftest.err >conftest.er1
2536 cat conftest.er1 >&5
2538 rm -f conftest.er1 conftest.err
2539 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2540 test $ac_status = 0; }
2543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2544 /* end confdefs.h. */
2554 ac_clean_files_save=$ac_clean_files
2555 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2556 # Try to create an executable without -o first, disregard a.out.
2557 # It will help us diagnose broken compilers, and finding out an intuition
2559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2560 $as_echo_n "checking whether the C compiler works... " >&6; }
2561 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
2563 # The possible output files:
2564 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2567 for ac_file in $ac_files
2570 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2571 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2576 if { { ac_try="$ac_link_default"
2578 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2579 *) ac_try_echo
=$ac_try;;
2581 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2582 $as_echo "$ac_try_echo"; } >&5
2583 (eval "$ac_link_default") 2>&5
2585 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2586 test $ac_status = 0; }; then :
2587 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2588 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2589 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2590 # so that the user can short-circuit this test for compilers unknown to
2592 for ac_file
in $ac_files ''
2594 test -f "$ac_file" ||
continue
2596 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
2599 # We found the default executable, but exeext='' is most
2603 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
2605 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2607 # We set ac_cv_exeext here because the later test for it is not
2608 # safe: cross compilers may not add the suffix if given an `-o'
2609 # argument, so we may need to know it at that point already.
2610 # Even if this section looks crufty: it has the advantage of
2617 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
2622 if test -z "$ac_file"; then :
2623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2624 $as_echo "no" >&6; }
2625 $as_echo "$as_me: failed program was:" >&5
2626 sed 's/^/| /' conftest.
$ac_ext >&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
77 "C compiler cannot create executables
2631 See \`config.log' for more details" "$LINENO" 5; }
2633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2634 $as_echo "yes" >&6; }
2636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2637 $as_echo_n "checking for C compiler default output file name... " >&6; }
2638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2639 $as_echo "$ac_file" >&6; }
2640 ac_exeext
=$ac_cv_exeext
2642 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
2643 ac_clean_files
=$ac_clean_files_save
2644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2645 $as_echo_n "checking for suffix of executables... " >&6; }
2646 if { { ac_try
="$ac_link"
2648 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2649 *) ac_try_echo=$ac_try;;
2651 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2652 $as_echo "$ac_try_echo"; } >&5
2653 (eval "$ac_link") 2>&5
2655 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2656 test $ac_status = 0; }; then :
2657 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
2658 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
2659 # work properly (i.e., refer to `conftest.exe'), while it won't with
2661 for ac_file
in conftest.exe conftest conftest.
*; do
2662 test -f "$ac_file" ||
continue
2664 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
2665 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2671 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2672 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2673 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
2674 See \`config.log' for more details" "$LINENO" 5; }
2676 rm -f conftest conftest
$ac_cv_exeext
2677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2678 $as_echo "$ac_cv_exeext" >&6; }
2680 rm -f conftest.
$ac_ext
2681 EXEEXT
=$ac_cv_exeext
2683 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2684 /* end confdefs.h. */
2689 FILE *f = fopen ("conftest.out", "w");
2690 return ferror (f) || fclose (f) != 0;
2696 ac_clean_files
="$ac_clean_files conftest.out"
2697 # Check that the compiler produces executables we can run. If not, either
2698 # the compiler is broken, or we cross compile.
2699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2700 $as_echo_n "checking whether we are cross compiling... " >&6; }
2701 if test "$cross_compiling" != yes; then
2702 { { ac_try
="$ac_link"
2704 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2705 *) ac_try_echo=$ac_try;;
2707 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2708 $as_echo "$ac_try_echo"; } >&5
2709 (eval "$ac_link") 2>&5
2711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2712 test $ac_status = 0; }
2713 if { ac_try='./conftest$ac_cv_exeext'
2714 { { case "(($ac_try" in
2715 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2716 *) ac_try_echo
=$ac_try;;
2718 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2719 $as_echo "$ac_try_echo"; } >&5
2720 (eval "$ac_try") 2>&5
2722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2723 test $ac_status = 0; }; }; then
2726 if test "$cross_compiling" = maybe
; then
2729 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2730 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2731 as_fn_error $?
"cannot run C compiled programs.
2732 If you meant to cross compile, use \`--host'.
2733 See \`config.log' for more details" "$LINENO" 5; }
2737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2738 $as_echo "$cross_compiling" >&6; }
2740 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
2741 ac_clean_files
=$ac_clean_files_save
2742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2743 $as_echo_n "checking for suffix of object files... " >&6; }
2744 if ${ac_cv_objext+:} false
; then :
2745 $as_echo_n "(cached) " >&6
2747 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2748 /* end confdefs.h. */
2758 rm -f conftest.o conftest.obj
2759 if { { ac_try
="$ac_compile"
2761 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2762 *) ac_try_echo=$ac_try;;
2764 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2765 $as_echo "$ac_try_echo"; } >&5
2766 (eval "$ac_compile") 2>&5
2768 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2769 test $ac_status = 0; }; then :
2770 for ac_file in conftest.o conftest.obj conftest.*; do
2771 test -f "$ac_file" || continue;
2773 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2774 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2779 $as_echo "$as_me: failed program was:" >&5
2780 sed 's/^/| /' conftest.$ac_ext >&5
2782 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2783 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2784 as_fn_error $? "cannot compute suffix of object files
: cannot compile
2785 See \
`config.log' for more details" "$LINENO" 5; }
2787 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2790 $as_echo "$ac_cv_objext" >&6; }
2791 OBJEXT=$ac_cv_objext
2793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2794 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2795 if ${ac_cv_c_compiler_gnu+:} false; then :
2796 $as_echo_n "(cached) " >&6
2798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2799 /* end confdefs.h. */
2812 if ac_fn_c_try_compile "$LINENO"; then :
2817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2818 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2822 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2823 if test $ac_compiler_gnu = yes; then
2828 ac_test_CFLAGS=${CFLAGS+set}
2829 ac_save_CFLAGS=$CFLAGS
2830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2831 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2832 if ${ac_cv_prog_cc_g+:} false; then :
2833 $as_echo_n "(cached) " >&6
2835 ac_save_c_werror_flag=$ac_c_werror_flag
2836 ac_c_werror_flag=yes
2839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2840 /* end confdefs.h. */
2850 if ac_fn_c_try_compile "$LINENO"; then :
2854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2855 /* end confdefs.h. */
2865 if ac_fn_c_try_compile "$LINENO"; then :
2868 ac_c_werror_flag=$ac_save_c_werror_flag
2870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2871 /* end confdefs.h. */
2881 if ac_fn_c_try_compile "$LINENO"; then :
2884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2889 ac_c_werror_flag=$ac_save_c_werror_flag
2891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2892 $as_echo "$ac_cv_prog_cc_g" >&6; }
2893 if test "$ac_test_CFLAGS" = set; then
2894 CFLAGS=$ac_save_CFLAGS
2895 elif test $ac_cv_prog_cc_g = yes; then
2896 if test "$GCC" = yes; then
2902 if test "$GCC" = yes; then
2908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2909 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2910 if ${ac_cv_prog_cc_c89+:} false; then :
2911 $as_echo_n "(cached) " >&6
2913 ac_cv_prog_cc_c89=no
2915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2916 /* end confdefs.h. */
2920 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2921 struct buf { int x; };
2922 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2923 static char *e (p, i)
2929 static char *f (char * (*g) (char **, int), char **p, ...)
2934 s = g (p, va_arg (v,int));
2939 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2940 function prototypes and stuff, but not '\xHH' hex character constants.
2941 These don't provoke an error unfortunately, instead are silently treated
2942 as 'x'. The following induces an error, until -std is added to get
2943 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2944 array size at least. It's necessary to write '\x00'==0 to get something
2945 that's true only with -std. */
2946 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2948 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2949 inside strings and character constants. */
2951 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2953 int test (int i, double x);
2954 struct s1 {int (*f) (int a);};
2955 struct s2 {int (*f) (double a);};
2956 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2962 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2967 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2968 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2970 CC="$ac_save_CC $ac_arg"
2971 if ac_fn_c_try_compile "$LINENO"; then :
2972 ac_cv_prog_cc_c89=$ac_arg
2974 rm -f core conftest.err conftest.$ac_objext
2975 test "x$ac_cv_prog_cc_c89" != "xno" && break
2977 rm -f conftest.$ac_ext
2982 case "x$ac_cv_prog_cc_c89" in
2984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
2985 $as_echo "none needed" >&6; } ;;
2987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
2988 $as_echo "unsupported" >&6; } ;;
2990 CC="$CC $ac_cv_prog_cc_c89"
2991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
2992 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2994 if test "x$ac_cv_prog_cc_c89" != xno; then :
2999 ac_cpp='$CPP $CPPFLAGS'
3000 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3001 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3002 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3006 ac_cpp='$CPP $CPPFLAGS'
3007 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3008 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3009 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3011 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3012 # On Suns, sometimes $CPP names a directory.
3013 if test -n "$CPP" && test -d "$CPP"; then
3016 if test -z "$CPP"; then
3017 if ${ac_cv_prog_CPP+:} false; then :
3018 $as_echo_n "(cached) " >&6
3020 # Double quotes because CPP needs to be expanded
3021 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3024 for ac_c_preproc_warn_flag in '' yes
3026 # Use a header file that comes with gcc, so configuring glibc
3027 # with a fresh cross-compiler works.
3028 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3029 # <limits.h> exists even on freestanding compilers.
3030 # On the NeXT, cc -E runs the code through the compiler's parser,
3031 # not just through cpp. "Syntax error" is here to catch this case.
3032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3033 /* end confdefs.h. */
3035 # include <limits.h>
3037 # include <assert.h>
3041 if ac_fn_c_try_cpp "$LINENO"; then :
3044 # Broken: fails on valid input.
3047 rm -f conftest.err conftest.i conftest.$ac_ext
3049 # OK, works on sane cases. Now check whether nonexistent headers
3050 # can be detected and how.
3051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3052 /* end confdefs.h. */
3053 #include <ac_nonexistent.h>
3055 if ac_fn_c_try_cpp "$LINENO"; then :
3056 # Broken: success on invalid input.
3059 # Passes both tests.
3063 rm -f conftest.err conftest.i conftest.$ac_ext
3066 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3067 rm -f conftest.i conftest.err conftest.
$ac_ext
3068 if $ac_preproc_ok; then :
3080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3081 $as_echo "$CPP" >&6; }
3083 for ac_c_preproc_warn_flag
in '' yes
3085 # Use a header file that comes with gcc, so configuring glibc
3086 # with a fresh cross-compiler works.
3087 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3088 # <limits.h> exists even on freestanding compilers.
3089 # On the NeXT, cc -E runs the code through the compiler's parser,
3090 # not just through cpp. "Syntax error" is here to catch this case.
3091 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3092 /* end confdefs.h. */
3094 # include <limits.h>
3096 # include <assert.h>
3100 if ac_fn_c_try_cpp
"$LINENO"; then :
3103 # Broken: fails on valid input.
3106 rm -f conftest.err conftest.i conftest.
$ac_ext
3108 # OK, works on sane cases. Now check whether nonexistent headers
3109 # can be detected and how.
3110 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3111 /* end confdefs.h. */
3112 #include <ac_nonexistent.h>
3114 if ac_fn_c_try_cpp
"$LINENO"; then :
3115 # Broken: success on invalid input.
3118 # Passes both tests.
3122 rm -f conftest.err conftest.i conftest.
$ac_ext
3125 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3126 rm -f conftest.i conftest.err conftest.
$ac_ext
3127 if $ac_preproc_ok; then :
3130 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3131 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3132 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
3133 See \`config.log' for more details" "$LINENO" 5; }
3137 ac_cpp
='$CPP $CPPFLAGS'
3138 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3139 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3140 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3144 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3145 if ${ac_cv_path_GREP+:} false
; then :
3146 $as_echo_n "(cached) " >&6
3148 if test -z "$GREP"; then
3149 ac_path_GREP_found
=false
3150 # Loop through the user's path and test for each of PROGNAME-LIST
3151 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3152 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3155 test -z "$as_dir" && as_dir
=.
3156 for ac_prog
in grep ggrep
; do
3157 for ac_exec_ext
in '' $ac_executable_extensions; do
3158 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3159 as_fn_executable_p
"$ac_path_GREP" ||
continue
3160 # Check for GNU ac_path_GREP and select it if it is found.
3161 # Check for GNU $ac_path_GREP
3162 case `"$ac_path_GREP" --version 2>&1` in
3164 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3167 $as_echo_n 0123456789 >"conftest.in"
3170 cat "conftest.in" "conftest.in" >"conftest.tmp"
3171 mv "conftest.tmp" "conftest.in"
3172 cp "conftest.in" "conftest.nl"
3173 $as_echo 'GREP' >> "conftest.nl"
3174 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3175 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3176 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
3177 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3178 # Best one so far, save it but keep looking for a better one
3179 ac_cv_path_GREP
="$ac_path_GREP"
3180 ac_path_GREP_max
=$ac_count
3182 # 10*(2^10) chars as input seems more than enough
3183 test $ac_count -gt 10 && break
3185 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3188 $ac_path_GREP_found && break 3
3193 if test -z "$ac_cv_path_GREP"; then
3194 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3197 ac_cv_path_GREP
=$GREP
3201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3202 $as_echo "$ac_cv_path_GREP" >&6; }
3203 GREP
="$ac_cv_path_GREP"
3206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3207 $as_echo_n "checking for egrep... " >&6; }
3208 if ${ac_cv_path_EGREP+:} false
; then :
3209 $as_echo_n "(cached) " >&6
3211 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3212 then ac_cv_path_EGREP
="$GREP -E"
3214 if test -z "$EGREP"; then
3215 ac_path_EGREP_found
=false
3216 # Loop through the user's path and test for each of PROGNAME-LIST
3217 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3218 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3221 test -z "$as_dir" && as_dir
=.
3222 for ac_prog
in egrep; do
3223 for ac_exec_ext
in '' $ac_executable_extensions; do
3224 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3225 as_fn_executable_p
"$ac_path_EGREP" ||
continue
3226 # Check for GNU ac_path_EGREP and select it if it is found.
3227 # Check for GNU $ac_path_EGREP
3228 case `"$ac_path_EGREP" --version 2>&1` in
3230 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3233 $as_echo_n 0123456789 >"conftest.in"
3236 cat "conftest.in" "conftest.in" >"conftest.tmp"
3237 mv "conftest.tmp" "conftest.in"
3238 cp "conftest.in" "conftest.nl"
3239 $as_echo 'EGREP' >> "conftest.nl"
3240 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3241 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3242 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
3243 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3244 # Best one so far, save it but keep looking for a better one
3245 ac_cv_path_EGREP
="$ac_path_EGREP"
3246 ac_path_EGREP_max
=$ac_count
3248 # 10*(2^10) chars as input seems more than enough
3249 test $ac_count -gt 10 && break
3251 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3254 $ac_path_EGREP_found && break 3
3259 if test -z "$ac_cv_path_EGREP"; then
3260 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3263 ac_cv_path_EGREP
=$EGREP
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3269 $as_echo "$ac_cv_path_EGREP" >&6; }
3270 EGREP
="$ac_cv_path_EGREP"
3273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3274 $as_echo_n "checking for ANSI C header files... " >&6; }
3275 if ${ac_cv_header_stdc+:} false
; then :
3276 $as_echo_n "(cached) " >&6
3278 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3279 /* end confdefs.h. */
3293 if ac_fn_c_try_compile
"$LINENO"; then :
3294 ac_cv_header_stdc
=yes
3296 ac_cv_header_stdc
=no
3298 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3300 if test $ac_cv_header_stdc = yes; then
3301 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3302 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3303 /* end confdefs.h. */
3307 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3308 $EGREP "memchr" >/dev
/null
2>&1; then :
3311 ac_cv_header_stdc
=no
3317 if test $ac_cv_header_stdc = yes; then
3318 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3319 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3320 /* end confdefs.h. */
3324 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3325 $EGREP "free" >/dev
/null
2>&1; then :
3328 ac_cv_header_stdc
=no
3334 if test $ac_cv_header_stdc = yes; then
3335 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3336 if test "$cross_compiling" = yes; then :
3339 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3340 /* end confdefs.h. */
3343 #if ((' ' & 0x0FF) == 0x020)
3344 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3345 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3347 # define ISLOWER(c) \
3348 (('a' <= (c) && (c) <= 'i') \
3349 || ('j' <= (c) && (c) <= 'r') \
3350 || ('s' <= (c) && (c) <= 'z'))
3351 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3354 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3359 for (i = 0; i < 256; i++)
3360 if (XOR (islower (i), ISLOWER (i))
3361 || toupper (i) != TOUPPER (i))
3366 if ac_fn_c_try_run
"$LINENO"; then :
3369 ac_cv_header_stdc
=no
3371 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
3372 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
3377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3378 $as_echo "$ac_cv_header_stdc" >&6; }
3379 if test $ac_cv_header_stdc = yes; then
3381 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3385 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3386 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
3387 inttypes.h stdint.h unistd.h
3389 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3390 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3392 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
3393 cat >>confdefs.h
<<_ACEOF
3394 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3403 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3404 if test "x$ac_cv_header_minix_config_h" = xyes
; then :
3411 if test "$MINIX" = yes; then
3413 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3416 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3419 $as_echo "#define _MINIX 1" >>confdefs.h
3424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3425 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3426 if ${ac_cv_safe_to_define___extensions__+:} false
; then :
3427 $as_echo_n "(cached) " >&6
3429 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3430 /* end confdefs.h. */
3432 # define __EXTENSIONS__ 1
3433 $ac_includes_default
3442 if ac_fn_c_try_compile
"$LINENO"; then :
3443 ac_cv_safe_to_define___extensions__
=yes
3445 ac_cv_safe_to_define___extensions__
=no
3447 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3450 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3451 test $ac_cv_safe_to_define___extensions__ = yes &&
3452 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3454 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3456 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3458 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3460 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3464 ac_config_headers
="$ac_config_headers config.h"
3468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3469 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3471 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3472 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
3473 $as_echo_n "(cached) " >&6
3475 cat >conftest.
make <<\_ACEOF
3478 @
echo '@@@%%%=$(MAKE)=@@@%%%'
3480 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3481 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3483 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
3485 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
3489 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
3490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3491 $as_echo "yes" >&6; }
3494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3495 $as_echo "no" >&6; }
3496 SET_MAKE
="MAKE=${MAKE-make}"
3500 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3501 if test -f "$ac_dir/install-sh"; then
3503 ac_install_sh
="$ac_aux_dir/install-sh -c"
3505 elif test -f "$ac_dir/install.sh"; then
3507 ac_install_sh
="$ac_aux_dir/install.sh -c"
3509 elif test -f "$ac_dir/shtool"; then
3511 ac_install_sh
="$ac_aux_dir/shtool install -c"
3515 if test -z "$ac_aux_dir"; then
3516 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3519 # These three variables are undocumented and unsupported,
3520 # and are intended to be withdrawn in a future Autoconf release.
3521 # They can cause serious problems if a builder's source tree is in a directory
3522 # whose full name contains unusual characters.
3523 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3524 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3525 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3528 # Find a good install program. We prefer a C program (faster),
3529 # so one script is as good as another. But avoid the broken or
3530 # incompatible versions:
3531 # SysV /etc/install, /usr/sbin/install
3532 # SunOS /usr/etc/install
3533 # IRIX /sbin/install
3535 # AmigaOS /C/install, which installs bootblocks on floppy discs
3536 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3537 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3538 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3539 # OS/2's system install, which has a completely different semantic
3540 # ./install, which can be erroneously created by make from ./install.sh.
3541 # Reject install programs that cannot install multiple files.
3542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3543 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3544 if test -z "$INSTALL"; then
3545 if ${ac_cv_path_install+:} false
; then :
3546 $as_echo_n "(cached) " >&6
3548 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3552 test -z "$as_dir" && as_dir
=.
3553 # Account for people who put trailing slashes in PATH elements.
3554 case $as_dir/ in #((
3555 .
/ | .
// |
/[cC
]/* | \
3556 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
3557 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
3560 # OSF1 and SCO ODT 3.0 have their own names for install.
3561 # Don't use installbsd from OSF since it installs stuff as root
3563 for ac_prog
in ginstall scoinst
install; do
3564 for ac_exec_ext
in '' $ac_executable_extensions; do
3565 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
3566 if test $ac_prog = install &&
3567 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3568 # AIX install. It has an incompatible calling convention.
3570 elif test $ac_prog = install &&
3571 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3572 # program-specific install script used by HP pwplus--don't use.
3575 rm -rf conftest.one conftest.two conftest.dir
3576 echo one
> conftest.one
3577 echo two
> conftest.two
3579 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
3580 test -s conftest.one
&& test -s conftest.two
&&
3581 test -s conftest.dir
/conftest.one
&&
3582 test -s conftest.dir
/conftest.two
3584 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
3597 rm -rf conftest.one conftest.two conftest.dir
3600 if test "${ac_cv_path_install+set}" = set; then
3601 INSTALL
=$ac_cv_path_install
3603 # As a last resort, use the slow shell script. Don't cache a
3604 # value for INSTALL within a source directory, because that will
3605 # break other packages using the cache if that directory is
3606 # removed, or if the value is a relative name.
3607 INSTALL
=$ac_install_sh
3610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3611 $as_echo "$INSTALL" >&6; }
3613 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3614 # It thinks the first close brace ends the variable substitution.
3615 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3617 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
3619 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3623 if test -n "$ac_aux_dir"; then
3624 case "$ac_aux_dir" in
3625 /*) MKINSTALLDIRS
="$ac_aux_dir/mkinstalldirs" ;;
3626 *) MKINSTALLDIRS
="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
3629 if test -z "$MKINSTALLDIRS"; then
3630 MKINSTALLDIRS
="\$(top_srcdir)/mkinstalldirs"
3635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
3636 $as_echo_n "checking whether NLS is requested... " >&6; }
3637 # Check whether --enable-nls was given.
3638 if test "${enable_nls+set}" = set; then :
3639 enableval
=$enable_nls; USE_NLS
=$enableval
3644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
3645 $as_echo "$USE_NLS" >&6; }
3652 # Prepare PATH_SEPARATOR.
3653 # The user is always right.
3654 if test "${PATH_SEPARATOR+set}" != set; then
3655 echo "#! /bin/sh" >conf$$.sh
3656 echo "exit 0" >>conf$$.sh
3658 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
3666 # Find out how to test for executable files. Don't use a zero-byte file,
3667 # as systems may use methods other than mode bits to determine executability.
3668 cat >conf$$.
file <<_ASEOF
3672 chmod +x conf$$.
file
3673 if test -x conf$$.
file >/dev
/null
2>&1; then
3674 ac_executable_p
="test -x"
3676 ac_executable_p
="test -f"
3680 # Extract the first word of "msgfmt", so it can be a program name with args.
3681 set dummy msgfmt
; ac_word
=$2
3682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3683 $as_echo_n "checking for $ac_word... " >&6; }
3684 if ${ac_cv_path_MSGFMT+:} false
; then :
3685 $as_echo_n "(cached) " >&6
3689 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
3692 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
3693 for ac_dir
in $PATH; do
3695 test -z "$ac_dir" && ac_dir
=.
3696 for ac_exec_ext
in '' $ac_executable_extensions; do
3697 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
3698 if $ac_dir/$ac_word --statistics /dev
/null
>/dev
/null
2>&1 &&
3699 (if $ac_dir/$ac_word --statistics /dev
/null
2>&1 >/dev
/null |
grep usage
>/dev
/null
; then exit 1; else exit 0; fi); then
3700 ac_cv_path_MSGFMT
="$ac_dir/$ac_word$ac_exec_ext"
3707 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
=":"
3711 MSGFMT
="$ac_cv_path_MSGFMT"
3712 if test "$MSGFMT" != ":"; then
3713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
3714 $as_echo "$MSGFMT" >&6; }
3716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3717 $as_echo "no" >&6; }
3720 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3721 set dummy gmsgfmt
; ac_word
=$2
3722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3723 $as_echo_n "checking for $ac_word... " >&6; }
3724 if ${ac_cv_path_GMSGFMT+:} false
; then :
3725 $as_echo_n "(cached) " >&6
3729 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
3732 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3736 test -z "$as_dir" && as_dir
=.
3737 for ac_exec_ext
in '' $ac_executable_extensions; do
3738 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3739 ac_cv_path_GMSGFMT
="$as_dir/$ac_word$ac_exec_ext"
3740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3747 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
3751 GMSGFMT
=$ac_cv_path_GMSGFMT
3752 if test -n "$GMSGFMT"; then
3753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
3754 $as_echo "$GMSGFMT" >&6; }
3756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3757 $as_echo "no" >&6; }
3763 # Prepare PATH_SEPARATOR.
3764 # The user is always right.
3765 if test "${PATH_SEPARATOR+set}" != set; then
3766 echo "#! /bin/sh" >conf$$.sh
3767 echo "exit 0" >>conf$$.sh
3769 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
3777 # Find out how to test for executable files. Don't use a zero-byte file,
3778 # as systems may use methods other than mode bits to determine executability.
3779 cat >conf$$.
file <<_ASEOF
3783 chmod +x conf$$.
file
3784 if test -x conf$$.
file >/dev
/null
2>&1; then
3785 ac_executable_p
="test -x"
3787 ac_executable_p
="test -f"
3791 # Extract the first word of "xgettext", so it can be a program name with args.
3792 set dummy xgettext
; ac_word
=$2
3793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3794 $as_echo_n "checking for $ac_word... " >&6; }
3795 if ${ac_cv_path_XGETTEXT+:} false
; then :
3796 $as_echo_n "(cached) " >&6
3800 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
3803 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
3804 for ac_dir
in $PATH; do
3806 test -z "$ac_dir" && ac_dir
=.
3807 for ac_exec_ext
in '' $ac_executable_extensions; do
3808 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
3809 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev
/null
>/dev
/null
2>&1 &&
3810 (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
3811 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word$ac_exec_ext"
3818 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
3822 XGETTEXT
="$ac_cv_path_XGETTEXT"
3823 if test "$XGETTEXT" != ":"; then
3824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
3825 $as_echo "$XGETTEXT" >&6; }
3827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3828 $as_echo "no" >&6; }
3834 # Prepare PATH_SEPARATOR.
3835 # The user is always right.
3836 if test "${PATH_SEPARATOR+set}" != set; then
3837 echo "#! /bin/sh" >conf$$.sh
3838 echo "exit 0" >>conf$$.sh
3840 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
3848 # Find out how to test for executable files. Don't use a zero-byte file,
3849 # as systems may use methods other than mode bits to determine executability.
3850 cat >conf$$.
file <<_ASEOF
3854 chmod +x conf$$.
file
3855 if test -x conf$$.
file >/dev
/null
2>&1; then
3856 ac_executable_p
="test -x"
3858 ac_executable_p
="test -f"
3862 # Extract the first word of "msgmerge", so it can be a program name with args.
3863 set dummy msgmerge
; ac_word
=$2
3864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3865 $as_echo_n "checking for $ac_word... " >&6; }
3866 if ${ac_cv_path_MSGMERGE+:} false
; then :
3867 $as_echo_n "(cached) " >&6
3871 ac_cv_path_MSGMERGE
="$MSGMERGE" # Let the user override the test with a path.
3874 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
3875 for ac_dir
in $PATH; do
3877 test -z "$ac_dir" && ac_dir
=.
3878 for ac_exec_ext
in '' $ac_executable_extensions; do
3879 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
3880 if $ac_dir/$ac_word --update -q /dev
/null
/dev
/null
>/dev
/null
2>&1; then
3881 ac_cv_path_MSGMERGE
="$ac_dir/$ac_word$ac_exec_ext"
3888 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE
=":"
3892 MSGMERGE
="$ac_cv_path_MSGMERGE"
3893 if test "$MSGMERGE" != ":"; then
3894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
3895 $as_echo "$MSGMERGE" >&6; }
3897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3898 $as_echo "no" >&6; }
3902 if test "$GMSGFMT" != ":"; then
3903 if $GMSGFMT --statistics /dev
/null
>/dev
/null
2>&1 &&
3904 (if $GMSGFMT --statistics /dev
/null
2>&1 >/dev
/null |
grep usage
>/dev
/null
; then exit 1; else exit 0; fi); then
3907 GMSGFMT
=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
3908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
3909 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
3914 if test "$XGETTEXT" != ":"; then
3915 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev
/null
>/dev
/null
2>&1 &&
3916 (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev
/null
2>&1 >/dev
/null |
grep usage
>/dev
/null
; then exit 1; else exit 0; fi); then
3919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
3920 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
3926 ac_config_commands
="$ac_config_commands default-1"
3929 # Make sure we can run config.sub.
3930 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
3931 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3934 $as_echo_n "checking build system type... " >&6; }
3935 if ${ac_cv_build+:} false
; then :
3936 $as_echo_n "(cached) " >&6
3938 ac_build_alias
=$build_alias
3939 test "x$ac_build_alias" = x
&&
3940 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
3941 test "x$ac_build_alias" = x
&&
3942 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
3943 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3944 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3948 $as_echo "$ac_cv_build" >&6; }
3949 case $ac_cv_build in
3951 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
3954 ac_save_IFS
=$IFS; IFS
='-'
3960 # Remember, the first character of IFS is used to create $*,
3961 # except with old shells:
3964 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
3967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3968 $as_echo_n "checking host system type... " >&6; }
3969 if ${ac_cv_host+:} false
; then :
3970 $as_echo_n "(cached) " >&6
3972 if test "x$host_alias" = x
; then
3973 ac_cv_host
=$ac_cv_build
3975 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3976 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3981 $as_echo "$ac_cv_host" >&6; }
3984 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
3987 ac_save_IFS
=$IFS; IFS
='-'
3993 # Remember, the first character of IFS is used to create $*,
3994 # except with old shells:
3997 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
4000 if test -n "$ac_tool_prefix"; then
4001 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4002 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
4003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4004 $as_echo_n "checking for $ac_word... " >&6; }
4005 if ${ac_cv_prog_RANLIB+:} false
; then :
4006 $as_echo_n "(cached) " >&6
4008 if test -n "$RANLIB"; then
4009 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4011 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4015 test -z "$as_dir" && as_dir
=.
4016 for ac_exec_ext
in '' $ac_executable_extensions; do
4017 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4018 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
4019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4028 RANLIB
=$ac_cv_prog_RANLIB
4029 if test -n "$RANLIB"; then
4030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4031 $as_echo "$RANLIB" >&6; }
4033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4034 $as_echo "no" >&6; }
4039 if test -z "$ac_cv_prog_RANLIB"; then
4040 ac_ct_RANLIB
=$RANLIB
4041 # Extract the first word of "ranlib", so it can be a program name with args.
4042 set dummy ranlib
; ac_word
=$2
4043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4044 $as_echo_n "checking for $ac_word... " >&6; }
4045 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
4046 $as_echo_n "(cached) " >&6
4048 if test -n "$ac_ct_RANLIB"; then
4049 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
4051 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4055 test -z "$as_dir" && as_dir
=.
4056 for ac_exec_ext
in '' $ac_executable_extensions; do
4057 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4058 ac_cv_prog_ac_ct_RANLIB
="ranlib"
4059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4068 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
4069 if test -n "$ac_ct_RANLIB"; then
4070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4071 $as_echo "$ac_ct_RANLIB" >&6; }
4073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4074 $as_echo "no" >&6; }
4077 if test "x$ac_ct_RANLIB" = x
; then
4080 case $cross_compiling:$ac_tool_warned in
4082 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4083 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4084 ac_tool_warned
=yes ;;
4086 RANLIB
=$ac_ct_RANLIB
4089 RANLIB
="$ac_cv_prog_RANLIB"
4092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
4093 $as_echo_n "checking for library containing strerror... " >&6; }
4094 if ${ac_cv_search_strerror+:} false
; then :
4095 $as_echo_n "(cached) " >&6
4097 ac_func_search_save_LIBS
=$LIBS
4098 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4099 /* end confdefs.h. */
4101 /* Override any GCC internal prototype to avoid an error.
4102 Use char because int might match the return type of a GCC
4103 builtin and then its argument prototype would still apply. */
4116 for ac_lib
in '' cposix
; do
4117 if test -z "$ac_lib"; then
4118 ac_res
="none required"
4121 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
4123 if ac_fn_c_try_link
"$LINENO"; then :
4124 ac_cv_search_strerror
=$ac_res
4126 rm -f core conftest.err conftest.
$ac_objext \
4128 if ${ac_cv_search_strerror+:} false
; then :
4132 if ${ac_cv_search_strerror+:} false
; then :
4135 ac_cv_search_strerror
=no
4138 LIBS
=$ac_func_search_save_LIBS
4140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
4141 $as_echo "$ac_cv_search_strerror" >&6; }
4142 ac_res
=$ac_cv_search_strerror
4143 if test "$ac_res" != no
; then :
4144 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
4148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
4149 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
4150 if ${ac_cv_c_const+:} false
; then :
4151 $as_echo_n "(cached) " >&6
4153 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4154 /* end confdefs.h. */
4161 /* Ultrix mips cc rejects this sort of thing. */
4162 typedef int charset[2];
4163 const charset cs = { 0, 0 };
4164 /* SunOS 4.1.1 cc rejects this. */
4165 char const *const *pcpcc;
4167 /* NEC SVR4.0.2 mips cc rejects this. */
4168 struct point {int x, y;};
4169 static struct point const zero = {0,0};
4170 /* AIX XL C 1.02.0.0 rejects this.
4171 It does not let you subtract one const X* pointer from another in
4172 an arm of an if-expression whose if-part is not a constant
4174 const char *g = "string";
4175 pcpcc = &g + (g ? g-g : 0);
4176 /* HPUX 7.0 cc rejects these. */
4178 ppc = (char**) pcpcc;
4179 pcpcc = (char const *const *) ppc;
4180 { /* SCO 3.2v4 cc rejects this sort of thing. */
4183 char const *s = 0 ? (char *) 0 : (char const *) 0;
4188 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4190 const int *foo = &x[0];
4193 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4194 typedef const int *iptr;
4198 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
4199 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4200 struct s { int j; const int *ap[3]; } bx;
4201 struct s *b = &bx; b->j = 5;
4203 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4207 return !cs[0] && !zero.x;
4214 if ac_fn_c_try_compile
"$LINENO"; then :
4219 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
4222 $as_echo "$ac_cv_c_const" >&6; }
4223 if test $ac_cv_c_const = no
; then
4225 $as_echo "#define const /**/" >>confdefs.h
4229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
4230 $as_echo_n "checking for inline... " >&6; }
4231 if ${ac_cv_c_inline+:} false
; then :
4232 $as_echo_n "(cached) " >&6
4235 for ac_kw
in inline __inline__ __inline
; do
4236 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4237 /* end confdefs.h. */
4240 static $ac_kw foo_t static_foo () {return 0; }
4241 $ac_kw foo_t foo () {return 0; }
4245 if ac_fn_c_try_compile
"$LINENO"; then :
4246 ac_cv_c_inline
=$ac_kw
4248 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4249 test "$ac_cv_c_inline" != no
&& break
4253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
4254 $as_echo "$ac_cv_c_inline" >&6; }
4256 case $ac_cv_c_inline in
4259 case $ac_cv_c_inline in
4261 *) ac_val
=$ac_cv_c_inline;;
4263 cat >>confdefs.h
<<_ACEOF
4265 #define inline $ac_val
4271 ac_fn_c_check_type
"$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
4272 if test "x$ac_cv_type_off_t" = xyes
; then :
4276 cat >>confdefs.h
<<_ACEOF
4277 #define off_t long int
4282 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
4283 if test "x$ac_cv_type_size_t" = xyes
; then :
4287 cat >>confdefs.h
<<_ACEOF
4288 #define size_t unsigned int
4293 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4294 # for constant arguments. Useless!
4295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
4296 $as_echo_n "checking for working alloca.h... " >&6; }
4297 if ${ac_cv_working_alloca_h+:} false
; then :
4298 $as_echo_n "(cached) " >&6
4300 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4301 /* end confdefs.h. */
4306 char *p = (char *) alloca (2 * sizeof (int));
4312 if ac_fn_c_try_link
"$LINENO"; then :
4313 ac_cv_working_alloca_h
=yes
4315 ac_cv_working_alloca_h
=no
4317 rm -f core conftest.err conftest.
$ac_objext \
4318 conftest
$ac_exeext conftest.
$ac_ext
4320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
4321 $as_echo "$ac_cv_working_alloca_h" >&6; }
4322 if test $ac_cv_working_alloca_h = yes; then
4324 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
4328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
4329 $as_echo_n "checking for alloca... " >&6; }
4330 if ${ac_cv_func_alloca_works+:} false
; then :
4331 $as_echo_n "(cached) " >&6
4333 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4334 /* end confdefs.h. */
4336 # define alloca __builtin_alloca
4339 # include <malloc.h>
4340 # define alloca _alloca
4342 # ifdef HAVE_ALLOCA_H
4343 # include <alloca.h>
4348 # ifndef alloca /* predefined by HP cc +Olibcalls */
4349 void *alloca (size_t);
4359 char *p = (char *) alloca (1);
4365 if ac_fn_c_try_link
"$LINENO"; then :
4366 ac_cv_func_alloca_works
=yes
4368 ac_cv_func_alloca_works
=no
4370 rm -f core conftest.err conftest.
$ac_objext \
4371 conftest
$ac_exeext conftest.
$ac_ext
4373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
4374 $as_echo "$ac_cv_func_alloca_works" >&6; }
4376 if test $ac_cv_func_alloca_works = yes; then
4378 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
4381 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
4382 # that cause trouble. Some versions do not even contain alloca or
4383 # contain a buggy version. If you still want to use their alloca,
4384 # use ar to extract alloca.o from them instead of compiling alloca.c.
4386 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
4388 $as_echo "#define C_ALLOCA 1" >>confdefs.h
4391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
4392 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
4393 if ${ac_cv_os_cray+:} false
; then :
4394 $as_echo_n "(cached) " >&6
4396 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4397 /* end confdefs.h. */
4398 #if defined CRAY && ! defined CRAY2
4405 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4406 $EGREP "webecray" >/dev
/null
2>&1; then :
4414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
4415 $as_echo "$ac_cv_os_cray" >&6; }
4416 if test $ac_cv_os_cray = yes; then
4417 for ac_func
in _getb67 GETB67 getb67
; do
4418 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4419 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
4420 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
4422 cat >>confdefs.h
<<_ACEOF
4423 #define CRAY_STACKSEG_END $ac_func
4432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
4433 $as_echo_n "checking stack direction for C alloca... " >&6; }
4434 if ${ac_cv_c_stack_direction+:} false
; then :
4435 $as_echo_n "(cached) " >&6
4437 if test "$cross_compiling" = yes; then :
4438 ac_cv_c_stack_direction
=0
4440 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4441 /* end confdefs.h. */
4442 $ac_includes_default
4444 find_stack_direction (int *addr, int depth)
4449 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
4450 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
4455 main (int argc, char **argv)
4457 return find_stack_direction (0, argc + !argv + 20) < 0;
4460 if ac_fn_c_try_run
"$LINENO"; then :
4461 ac_cv_c_stack_direction
=1
4463 ac_cv_c_stack_direction
=-1
4465 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4466 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
4471 $as_echo "$ac_cv_c_stack_direction" >&6; }
4472 cat >>confdefs.h
<<_ACEOF
4473 #define STACK_DIRECTION $ac_cv_c_stack_direction
4482 for ac_header
in $ac_header_list
4484 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4485 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4487 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
4488 cat >>confdefs.h
<<_ACEOF
4489 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4503 for ac_func
in getpagesize
4505 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
4506 if test "x$ac_cv_func_getpagesize" = xyes
; then :
4507 cat >>confdefs.h
<<_ACEOF
4508 #define HAVE_GETPAGESIZE 1
4514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
4515 $as_echo_n "checking for working mmap... " >&6; }
4516 if ${ac_cv_func_mmap_fixed_mapped+:} false
; then :
4517 $as_echo_n "(cached) " >&6
4519 if test "$cross_compiling" = yes; then :
4520 ac_cv_func_mmap_fixed_mapped
=no
4522 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4523 /* end confdefs.h. */
4524 $ac_includes_default
4525 /* malloc might have been renamed as rpl_malloc. */
4528 /* Thanks to Mike Haertel and Jim Avera for this test.
4529 Here is a matrix of mmap possibilities:
4530 mmap private not fixed
4531 mmap private fixed at somewhere currently unmapped
4532 mmap private fixed at somewhere already mapped
4533 mmap shared not fixed
4534 mmap shared fixed at somewhere currently unmapped
4535 mmap shared fixed at somewhere already mapped
4536 For private mappings, we should verify that changes cannot be read()
4537 back from the file, nor mmap's back from the file at a different
4538 address. (There have been systems where private was not correctly
4539 implemented like the infamous i386 svr4.0, and systems where the
4540 VM page cache was not coherent with the file system buffer cache
4541 like early versions of FreeBSD and possibly contemporary NetBSD.)
4542 For shared mappings, we should conversely verify that changes get
4543 propagated back to all the places they're supposed to be.
4545 Grep wants private fixed already mapped.
4546 The main things grep needs to know about mmap are:
4547 * does it exist and is it safe to write into the mmap'd area
4548 * how to use it (BSD variants) */
4551 #include <sys/mman.h>
4553 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
4557 /* This mess was copied from the GNU getpagesize.h. */
4558 #ifndef HAVE_GETPAGESIZE
4559 # ifdef _SC_PAGESIZE
4560 # define getpagesize() sysconf(_SC_PAGESIZE)
4561 # else /* no _SC_PAGESIZE */
4562 # ifdef HAVE_SYS_PARAM_H
4563 # include <sys/param.h>
4564 # ifdef EXEC_PAGESIZE
4565 # define getpagesize() EXEC_PAGESIZE
4566 # else /* no EXEC_PAGESIZE */
4568 # define getpagesize() NBPG * CLSIZE
4571 # endif /* no CLSIZE */
4572 # else /* no NBPG */
4574 # define getpagesize() NBPC
4575 # else /* no NBPC */
4577 # define getpagesize() PAGESIZE
4578 # endif /* PAGESIZE */
4579 # endif /* no NBPC */
4580 # endif /* no NBPG */
4581 # endif /* no EXEC_PAGESIZE */
4582 # else /* no HAVE_SYS_PARAM_H */
4583 # define getpagesize() 8192 /* punt totally */
4584 # endif /* no HAVE_SYS_PARAM_H */
4585 # endif /* no _SC_PAGESIZE */
4587 #endif /* no HAVE_GETPAGESIZE */
4592 char *data, *data2, *data3;
4597 pagesize = getpagesize ();
4599 /* First, make a file with some known garbage in it. */
4600 data = (char *) malloc (pagesize);
4603 for (i = 0; i < pagesize; ++i)
4604 *(data + i) = rand ();
4606 fd = creat ("conftest.mmap", 0600);
4609 if (write (fd, data, pagesize) != pagesize)
4613 /* Next, check that the tail of a page is zero-filled. File must have
4614 non-zero length, otherwise we risk SIGBUS for entire page. */
4615 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
4619 if (write (fd2, cdata2, 1) != 1)
4621 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
4622 if (data2 == MAP_FAILED)
4624 for (i = 0; i < pagesize; ++i)
4628 if (munmap (data2, pagesize))
4631 /* Next, try to mmap the file at a fixed address which already has
4632 something else allocated at it. If we can, also make sure that
4633 we see the same garbage. */
4634 fd = open ("conftest.mmap", O_RDWR);
4637 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
4638 MAP_PRIVATE | MAP_FIXED, fd, 0L))
4640 for (i = 0; i < pagesize; ++i)
4641 if (*(data + i) != *(data2 + i))
4644 /* Finally, make sure that changes to the mapped area do not
4645 percolate back to the file as seen by read(). (This is a bug on
4646 some variants of i386 svr4.0.) */
4647 for (i = 0; i < pagesize; ++i)
4648 *(data2 + i) = *(data2 + i) + 1;
4649 data3 = (char *) malloc (pagesize);
4652 if (read (fd, data3, pagesize) != pagesize)
4654 for (i = 0; i < pagesize; ++i)
4655 if (*(data + i) != *(data3 + i))
4661 if ac_fn_c_try_run
"$LINENO"; then :
4662 ac_cv_func_mmap_fixed_mapped
=yes
4664 ac_cv_func_mmap_fixed_mapped
=no
4666 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4667 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
4672 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
4673 if test $ac_cv_func_mmap_fixed_mapped = yes; then
4675 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
4678 rm -f conftest.mmap conftest.txt
4681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
4682 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
4683 if ${ac_cv_gnu_library_2_1+:} false
; then :
4684 $as_echo_n "(cached) " >&6
4686 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4687 /* end confdefs.h. */
4689 #include <features.h>
4690 #ifdef __GNU_LIBRARY__
4691 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
4697 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4698 $EGREP "Lucky GNU user" >/dev
/null
2>&1; then :
4699 ac_cv_gnu_library_2_1
=yes
4701 ac_cv_gnu_library_2_1
=no
4708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
4709 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
4711 GLIBC21
="$ac_cv_gnu_library_2_1"
4716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
4717 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
4718 if ${gt_cv_int_divbyzero_sigfpe+:} false
; then :
4719 $as_echo_n "(cached) " >&6
4722 if test "$cross_compiling" = yes; then :
4724 # Guess based on the CPU.
4726 alpha
* | i3456786 | m68k | s390
*)
4727 gt_cv_int_divbyzero_sigfpe
="guessing yes";;
4729 gt_cv_int_divbyzero_sigfpe
="guessing no";;
4733 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4734 /* end confdefs.h. */
4741 sigfpe_handler (int sig)
4743 sigfpe_handler (sig) int sig;
4746 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
4747 exit (sig != SIGFPE);
4757 signal (SIGFPE, sigfpe_handler);
4758 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
4759 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
4760 signal (SIGTRAP, sigfpe_handler);
4762 /* Linux/SPARC yields signal SIGILL. */
4763 #if defined (__sparc__) && defined (__linux__)
4764 signal (SIGILL, sigfpe_handler);
4773 if ac_fn_c_try_run
"$LINENO"; then :
4774 gt_cv_int_divbyzero_sigfpe
=yes
4776 gt_cv_int_divbyzero_sigfpe
=no
4778 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4779 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
4785 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
4786 case "$gt_cv_int_divbyzero_sigfpe" in
4791 cat >>confdefs.h
<<_ACEOF
4792 #define INTDIV0_RAISES_SIGFPE $value
4797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
4798 $as_echo_n "checking for inttypes.h... " >&6; }
4799 if ${jm_ac_cv_header_inttypes_h+:} false
; then :
4800 $as_echo_n "(cached) " >&6
4802 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4803 /* end confdefs.h. */
4804 #include <sys/types.h>
4805 #include <inttypes.h>
4809 uintmax_t i = (uintmax_t) -1;
4814 if ac_fn_c_try_compile
"$LINENO"; then :
4815 jm_ac_cv_header_inttypes_h
=yes
4817 jm_ac_cv_header_inttypes_h
=no
4819 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_inttypes_h" >&5
4822 $as_echo "$jm_ac_cv_header_inttypes_h" >&6; }
4823 if test $jm_ac_cv_header_inttypes_h = yes; then
4825 cat >>confdefs.h
<<_ACEOF
4826 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
4832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
4833 $as_echo_n "checking for stdint.h... " >&6; }
4834 if ${jm_ac_cv_header_stdint_h+:} false
; then :
4835 $as_echo_n "(cached) " >&6
4837 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4838 /* end confdefs.h. */
4839 #include <sys/types.h>
4844 uintmax_t i = (uintmax_t) -1;
4849 if ac_fn_c_try_compile
"$LINENO"; then :
4850 jm_ac_cv_header_stdint_h
=yes
4852 jm_ac_cv_header_stdint_h
=no
4854 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_stdint_h" >&5
4857 $as_echo "$jm_ac_cv_header_stdint_h" >&6; }
4858 if test $jm_ac_cv_header_stdint_h = yes; then
4860 cat >>confdefs.h
<<_ACEOF
4861 #define HAVE_STDINT_H_WITH_UINTMAX 1
4867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5
4868 $as_echo_n "checking for unsigned long long... " >&6; }
4869 if ${ac_cv_type_unsigned_long_long+:} false
; then :
4870 $as_echo_n "(cached) " >&6
4872 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4873 /* end confdefs.h. */
4874 unsigned long long ull = 1; int i = 63;
4878 unsigned long long ullmax = (unsigned long long) -1;
4879 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
4884 if ac_fn_c_try_link
"$LINENO"; then :
4885 ac_cv_type_unsigned_long_long
=yes
4887 ac_cv_type_unsigned_long_long
=no
4889 rm -f core conftest.err conftest.
$ac_objext \
4890 conftest
$ac_exeext conftest.
$ac_ext
4892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5
4893 $as_echo "$ac_cv_type_unsigned_long_long" >&6; }
4894 if test $ac_cv_type_unsigned_long_long = yes; then
4896 $as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
4903 if test $jm_ac_cv_header_inttypes_h = no
&& test $jm_ac_cv_header_stdint_h = no
; then
4905 test $ac_cv_type_unsigned_long_long = yes \
4906 && ac_type
='unsigned long long' \
4907 || ac_type
='unsigned long'
4909 cat >>confdefs.h
<<_ACEOF
4910 #define uintmax_t $ac_type
4915 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
4920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
4921 $as_echo_n "checking for inttypes.h... " >&6; }
4922 if ${gt_cv_header_inttypes_h+:} false
; then :
4923 $as_echo_n "(cached) " >&6
4926 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4927 /* end confdefs.h. */
4928 #include <sys/types.h>
4929 #include <inttypes.h>
4938 if ac_fn_c_try_compile
"$LINENO"; then :
4939 gt_cv_header_inttypes_h
=yes
4941 gt_cv_header_inttypes_h
=no
4943 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5
4947 $as_echo "$gt_cv_header_inttypes_h" >&6; }
4948 if test $gt_cv_header_inttypes_h = yes; then
4950 cat >>confdefs.h
<<_ACEOF
4951 #define HAVE_INTTYPES_H 1
4958 if test $gt_cv_header_inttypes_h = yes; then
4959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
4960 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
4961 if ${gt_cv_inttypes_pri_broken+:} false
; then :
4962 $as_echo_n "(cached) " >&6
4965 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4966 /* end confdefs.h. */
4967 #include <inttypes.h>
4980 if ac_fn_c_try_compile
"$LINENO"; then :
4981 gt_cv_inttypes_pri_broken
=no
4983 gt_cv_inttypes_pri_broken
=yes
4985 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
4989 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
4991 if test "$gt_cv_inttypes_pri_broken" = yes; then
4993 cat >>confdefs.h
<<_ACEOF
4994 #define PRI_MACROS_BROKEN 1
5000 if test "X$prefix" = "XNONE"; then
5001 acl_final_prefix
="$ac_default_prefix"
5003 acl_final_prefix
="$prefix"
5005 if test "X$exec_prefix" = "XNONE"; then
5006 acl_final_exec_prefix
='${prefix}'
5008 acl_final_exec_prefix
="$exec_prefix"
5010 acl_save_prefix
="$prefix"
5011 prefix
="$acl_final_prefix"
5012 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
5013 prefix
="$acl_save_prefix"
5016 # Check whether --with-gnu-ld was given.
5017 if test "${with_gnu_ld+set}" = set; then :
5018 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
5023 # Prepare PATH_SEPARATOR.
5024 # The user is always right.
5025 if test "${PATH_SEPARATOR+set}" != set; then
5026 echo "#! /bin/sh" >conf$$.sh
5027 echo "exit 0" >>conf$$.sh
5029 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
5037 if test "$GCC" = yes; then
5038 # Check if gcc -print-prog-name=ld gives a path.
5039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
5040 $as_echo_n "checking for ld used by GCC... " >&6; }
5043 # gcc leaves a trailing carriage return which upsets mingw
5044 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5046 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
5049 # Accept absolute paths.
5050 [\\/]* |
[A-Za-z
]:[\\/]*)
5051 re_direlt
='/[^/][^/]*/\.\./'
5052 # Canonicalize the path of ld
5053 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
5054 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
5055 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
5057 test -z "$LD" && LD
="$ac_prog"
5060 # If it fails, then pretend we aren't using GCC.
5064 # If it is relative, then search for the first ld in PATH.
5068 elif test "$with_gnu_ld" = yes; then
5069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5070 $as_echo_n "checking for GNU ld... " >&6; }
5072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5073 $as_echo_n "checking for non-GNU ld... " >&6; }
5075 if ${acl_cv_path_LD+:} false
; then :
5076 $as_echo_n "(cached) " >&6
5078 if test -z "$LD"; then
5079 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5080 for ac_dir
in $PATH; do
5081 test -z "$ac_dir" && ac_dir
=.
5082 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
5083 acl_cv_path_LD
="$ac_dir/$ac_prog"
5084 # Check to see if the program is GNU ld. I'd rather use --version,
5085 # but apparently some GNU ld's only accept -v.
5086 # Break only if it was the GNU/non-GNU ld that we prefer.
5087 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
5088 test "$with_gnu_ld" != no
&& break
5090 test "$with_gnu_ld" != yes && break
5096 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
5100 LD
="$acl_cv_path_LD"
5101 if test -n "$LD"; then
5102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5103 $as_echo "$LD" >&6; }
5105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5106 $as_echo "no" >&6; }
5108 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
5109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5110 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5111 if ${acl_cv_prog_gnu_ld+:} false
; then :
5112 $as_echo_n "(cached) " >&6
5114 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5115 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
5116 acl_cv_prog_gnu_ld
=yes
5118 acl_cv_prog_gnu_ld
=no
5121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
5122 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
5123 with_gnu_ld
=$acl_cv_prog_gnu_ld
5127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
5128 $as_echo_n "checking for shared library run path origin... " >&6; }
5129 if ${acl_cv_rpath+:} false
; then :
5130 $as_echo_n "(cached) " >&6
5133 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
5134 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
5140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
5141 $as_echo "$acl_cv_rpath" >&6; }
5143 libext
="$acl_cv_libext"
5144 shlibext
="$acl_cv_shlibext"
5145 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
5146 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
5147 hardcode_direct
="$acl_cv_hardcode_direct"
5148 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
5149 # Check whether --enable-rpath was given.
5150 if test "${enable_rpath+set}" = set; then :
5151 enableval
=$enable_rpath; :
5165 acl_save_prefix
="$prefix"
5166 prefix
="$acl_final_prefix"
5167 acl_save_exec_prefix
="$exec_prefix"
5168 exec_prefix
="$acl_final_exec_prefix"
5170 eval additional_includedir
=\"$includedir\"
5171 eval additional_libdir
=\"$libdir\"
5173 exec_prefix
="$acl_save_exec_prefix"
5174 prefix
="$acl_save_prefix"
5177 # Check whether --with-libiconv-prefix was given.
5178 if test "${with_libiconv_prefix+set}" = set; then :
5179 withval
=$with_libiconv_prefix;
5180 if test "X$withval" = "Xno"; then
5183 if test "X$withval" = "X"; then
5185 acl_save_prefix
="$prefix"
5186 prefix
="$acl_final_prefix"
5187 acl_save_exec_prefix
="$exec_prefix"
5188 exec_prefix
="$acl_final_exec_prefix"
5190 eval additional_includedir
=\"$includedir\"
5191 eval additional_libdir
=\"$libdir\"
5193 exec_prefix
="$acl_save_exec_prefix"
5194 prefix
="$acl_save_prefix"
5197 additional_includedir
="$withval/include"
5198 additional_libdir
="$withval/lib"
5205 # Check whether --with-libiconv-type was given.
5206 if test "${with_libiconv_type+set}" = set; then :
5207 withval
=$with_libiconv_type; with_libiconv_type
=$withval
5209 with_libiconv_type
=auto
5212 lib_type
=`eval echo \$with_libiconv_type`
5219 names_already_handled
=
5220 names_next_round
='iconv '
5221 while test -n "$names_next_round"; do
5222 names_this_round
="$names_next_round"
5224 for name
in $names_this_round; do
5226 for n
in $names_already_handled; do
5227 if test "$n" = "$name"; then
5232 if test -z "$already_handled"; then
5233 names_already_handled
="$names_already_handled $name"
5234 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
5235 eval value
=\"\
$HAVE_LIB$uppername\"
5236 if test -n "$value"; then
5237 if test "$value" = yes; then
5238 eval value
=\"\
$LIB$uppername\"
5239 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
5240 eval value
=\"\
$LTLIB$uppername\"
5241 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
5250 if test $use_additional = yes; then
5251 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
5252 found_dir
="$additional_libdir"
5253 found_so
="$additional_libdir/lib$name.$shlibext"
5254 if test -f "$additional_libdir/lib$name.la"; then
5255 found_la
="$additional_libdir/lib$name.la"
5257 elif test x
$lib_type != xshared
; then
5258 if test -f "$additional_libdir/lib$name.$libext"; then
5259 found_dir
="$additional_libdir"
5260 found_a
="$additional_libdir/lib$name.$libext"
5261 if test -f "$additional_libdir/lib$name.la"; then
5262 found_la
="$additional_libdir/lib$name.la"
5267 if test "X$found_dir" = "X"; then
5268 for x
in $LDFLAGS $LTLIBICONV; do
5270 acl_save_prefix
="$prefix"
5271 prefix
="$acl_final_prefix"
5272 acl_save_exec_prefix
="$exec_prefix"
5273 exec_prefix
="$acl_final_exec_prefix"
5275 exec_prefix
="$acl_save_exec_prefix"
5276 prefix
="$acl_save_prefix"
5280 dir
=`echo "X$x" | sed -e 's/^X-L//'`
5281 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
5283 found_so
="$dir/lib$name.$shlibext"
5284 if test -f "$dir/lib$name.la"; then
5285 found_la
="$dir/lib$name.la"
5287 elif test x
$lib_type != xshared
; then
5288 if test -f "$dir/lib$name.$libext"; then
5290 found_a
="$dir/lib$name.$libext"
5291 if test -f "$dir/lib$name.la"; then
5292 found_la
="$dir/lib$name.la"
5298 if test "X$found_dir" != "X"; then
5303 if test "X$found_dir" != "X"; then
5304 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
5305 if test "X$found_so" != "X"; then
5306 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
5307 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
5310 for x
in $ltrpathdirs; do
5311 if test "X$x" = "X$found_dir"; then
5316 if test -z "$haveit"; then
5317 ltrpathdirs
="$ltrpathdirs $found_dir"
5319 if test "$hardcode_direct" = yes; then
5320 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
5322 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
5323 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
5325 for x
in $rpathdirs; do
5326 if test "X$x" = "X$found_dir"; then
5331 if test -z "$haveit"; then
5332 rpathdirs
="$rpathdirs $found_dir"
5336 for x
in $LDFLAGS $LIBICONV; do
5338 acl_save_prefix
="$prefix"
5339 prefix
="$acl_final_prefix"
5340 acl_save_exec_prefix
="$exec_prefix"
5341 exec_prefix
="$acl_final_exec_prefix"
5343 exec_prefix
="$acl_save_exec_prefix"
5344 prefix
="$acl_save_prefix"
5346 if test "X$x" = "X-L$found_dir"; then
5351 if test -z "$haveit"; then
5352 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
5354 if test "$hardcode_minus_L" != no
; then
5355 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
5357 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
5363 if test "X$found_a" != "X"; then
5364 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
5366 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
5369 additional_includedir
=
5370 case "$found_dir" in
5372 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
5373 additional_includedir
="$basedir/include"
5376 if test "X$additional_includedir" != "X"; then
5377 if test "X$additional_includedir" != "X/usr/include"; then
5379 if test "X$additional_includedir" = "X/usr/local/include"; then
5380 if test -n "$GCC"; then
5382 linux
*) haveit
=yes;;
5386 if test -z "$haveit"; then
5387 for x
in $CPPFLAGS $INCICONV; do
5389 acl_save_prefix
="$prefix"
5390 prefix
="$acl_final_prefix"
5391 acl_save_exec_prefix
="$exec_prefix"
5392 exec_prefix
="$acl_final_exec_prefix"
5394 exec_prefix
="$acl_save_exec_prefix"
5395 prefix
="$acl_save_prefix"
5397 if test "X$x" = "X-I$additional_includedir"; then
5402 if test -z "$haveit"; then
5403 if test -d "$additional_includedir"; then
5404 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
5410 if test -n "$found_la"; then
5411 save_libdir
="$libdir"
5413 */* |
*\\*) .
"$found_la" ;;
5414 *) .
"./$found_la" ;;
5416 libdir
="$save_libdir"
5417 for dep
in $dependency_libs; do
5420 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
5421 if test "X$additional_libdir" != "X/usr/lib"; then
5423 if test "X$additional_libdir" = "X/usr/local/lib"; then
5424 if test -n "$GCC"; then
5426 linux
*) haveit
=yes;;
5430 if test -z "$haveit"; then
5432 for x
in $LDFLAGS $LIBICONV; do
5434 acl_save_prefix
="$prefix"
5435 prefix
="$acl_final_prefix"
5436 acl_save_exec_prefix
="$exec_prefix"
5437 exec_prefix
="$acl_final_exec_prefix"
5439 exec_prefix
="$acl_save_exec_prefix"
5440 prefix
="$acl_save_prefix"
5442 if test "X$x" = "X-L$additional_libdir"; then
5447 if test -z "$haveit"; then
5448 if test -d "$additional_libdir"; then
5449 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
5453 for x
in $LDFLAGS $LTLIBICONV; do
5455 acl_save_prefix
="$prefix"
5456 prefix
="$acl_final_prefix"
5457 acl_save_exec_prefix
="$exec_prefix"
5458 exec_prefix
="$acl_final_exec_prefix"
5460 exec_prefix
="$acl_save_exec_prefix"
5461 prefix
="$acl_save_prefix"
5463 if test "X$x" = "X-L$additional_libdir"; then
5468 if test -z "$haveit"; then
5469 if test -d "$additional_libdir"; then
5470 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
5477 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
5478 if test "$enable_rpath" != no
; then
5480 for x
in $rpathdirs; do
5481 if test "X$x" = "X$dir"; then
5486 if test -z "$haveit"; then
5487 rpathdirs
="$rpathdirs $dir"
5490 for x
in $ltrpathdirs; do
5491 if test "X$x" = "X$dir"; then
5496 if test -z "$haveit"; then
5497 ltrpathdirs
="$ltrpathdirs $dir"
5502 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
5505 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
5508 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
5509 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
5515 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
5516 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
5517 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
5519 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l:lib$name.$libext"
5520 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l:lib$name.$libext"
5527 if test "X$rpathdirs" != "X"; then
5528 if test -n "$hardcode_libdir_separator"; then
5530 for found_dir
in $rpathdirs; do
5531 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
5533 acl_save_libdir
="$libdir"
5535 eval flag
=\"$hardcode_libdir_flag_spec\"
5536 libdir
="$acl_save_libdir"
5537 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
5539 for found_dir
in $rpathdirs; do
5540 acl_save_libdir
="$libdir"
5542 eval flag
=\"$hardcode_libdir_flag_spec\"
5543 libdir
="$acl_save_libdir"
5544 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
5548 if test "X$ltrpathdirs" != "X"; then
5549 for found_dir
in $ltrpathdirs; do
5550 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
5557 for ac_header
in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
5558 stdlib.h string.h unistd.h sys
/param.h
5560 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5561 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5562 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
5563 cat >>confdefs.h
<<_ACEOF
5564 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5571 for ac_func
in feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \
5572 geteuid getgid getuid mempcpy munmap putenv setenv setlocale stpcpy \
5573 strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next \
5576 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5577 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
5578 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
5579 cat >>confdefs.h
<<_ACEOF
5580 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
5593 $as_echo_n "checking for iconv... " >&6; }
5594 if ${am_cv_func_iconv+:} false
; then :
5595 $as_echo_n "(cached) " >&6
5598 am_cv_func_iconv
="no, consider installing GNU libiconv"
5600 am_save_CPPFLAGS
="$CPPFLAGS"
5601 CPPFLAGS
="$CPPFLAGS $INCICONV"
5602 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5603 /* end confdefs.h. */
5609 iconv_t cd = iconv_open("","");
5610 iconv(cd,NULL,NULL,NULL,NULL);
5616 if ac_fn_c_try_link
"$LINENO"; then :
5617 am_cv_func_iconv
=yes
5619 rm -f core conftest.err conftest.
$ac_objext \
5620 conftest
$ac_exeext conftest.
$ac_ext
5621 CPPFLAGS
="$am_save_CPPFLAGS"
5623 if test "$am_cv_func_iconv" != yes && test -d ..
/libiconv
; then
5624 for _libs
in .libs _libs
; do
5625 am_save_CPPFLAGS
="$CPPFLAGS"
5626 am_save_LIBS
="$LIBS"
5627 CPPFLAGS
="$CPPFLAGS -I../libiconv/include"
5628 LIBS
="$LIBS ../libiconv/lib/$_libs/libiconv.a"
5629 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5630 /* end confdefs.h. */
5636 iconv_t cd = iconv_open("","");
5637 iconv(cd,NULL,NULL,NULL,NULL);
5643 if ac_fn_c_try_link
"$LINENO"; then :
5644 INCICONV
="-I../libiconv/include"
5645 LIBICONV
='${top_builddir}'/..
/libiconv
/lib
/$_libs/libiconv.a
5646 LTLIBICONV
='${top_builddir}'/..
/libiconv
/lib
/libiconv.la
5648 am_cv_func_iconv
=yes
5650 rm -f core conftest.err conftest.
$ac_objext \
5651 conftest
$ac_exeext conftest.
$ac_ext
5652 CPPFLAGS
="$am_save_CPPFLAGS"
5653 LIBS
="$am_save_LIBS"
5654 if test "$am_cv_func_iconv" = "yes"; then
5660 if test "$am_cv_func_iconv" != yes; then
5661 am_save_CPPFLAGS
="$CPPFLAGS"
5662 am_save_LIBS
="$LIBS"
5663 CPPFLAGS
="$CPPFLAGS $INCICONV"
5664 LIBS
="$LIBS $LIBICONV"
5665 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5666 /* end confdefs.h. */
5672 iconv_t cd = iconv_open("","");
5673 iconv(cd,NULL,NULL,NULL,NULL);
5679 if ac_fn_c_try_link
"$LINENO"; then :
5681 am_cv_func_iconv
=yes
5683 rm -f core conftest.err conftest.
$ac_objext \
5684 conftest
$ac_exeext conftest.
$ac_ext
5685 CPPFLAGS
="$am_save_CPPFLAGS"
5686 LIBS
="$am_save_LIBS"
5690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
5691 $as_echo "$am_cv_func_iconv" >&6; }
5692 if test "$am_cv_func_iconv" = yes; then
5694 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
5697 if test "$am_cv_lib_iconv" = yes; then
5699 for element
in $INCICONV; do
5701 for x
in $CPPFLAGS; do
5703 acl_save_prefix
="$prefix"
5704 prefix
="$acl_final_prefix"
5705 acl_save_exec_prefix
="$exec_prefix"
5706 exec_prefix
="$acl_final_exec_prefix"
5708 exec_prefix
="$acl_save_exec_prefix"
5709 prefix
="$acl_save_prefix"
5711 if test "X$x" = "X$element"; then
5716 if test -z "$haveit"; then
5717 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
5721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
5722 $as_echo_n "checking how to link with libiconv... " >&6; }
5723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
5724 $as_echo "$LIBICONV" >&6; }
5732 if test "$am_cv_func_iconv" = yes; then
5733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
5734 $as_echo_n "checking for iconv declaration... " >&6; }
5735 if ${am_cv_proto_iconv+:} false
; then :
5736 $as_echo_n "(cached) " >&6
5739 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5740 /* end confdefs.h. */
5748 #if defined(__STDC__) || defined(__cplusplus)
5749 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
5762 if ac_fn_c_try_compile
"$LINENO"; then :
5763 am_cv_proto_iconv_arg1
=""
5765 am_cv_proto_iconv_arg1
="const"
5767 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5768 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);"
5771 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
5772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
5773 }$am_cv_proto_iconv" >&5
5775 }$am_cv_proto_iconv" >&6; }
5777 cat >>confdefs.h
<<_ACEOF
5778 #define ICONV_CONST $am_cv_proto_iconv_arg1
5784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
5785 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
5786 if ${am_cv_langinfo_codeset+:} false
; then :
5787 $as_echo_n "(cached) " >&6
5789 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5790 /* end confdefs.h. */
5791 #include <langinfo.h>
5795 char* cs = nl_langinfo(CODESET);
5800 if ac_fn_c_try_link
"$LINENO"; then :
5801 am_cv_langinfo_codeset
=yes
5803 am_cv_langinfo_codeset
=no
5805 rm -f core conftest.err conftest.
$ac_objext \
5806 conftest
$ac_exeext conftest.
$ac_ext
5809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
5810 $as_echo "$am_cv_langinfo_codeset" >&6; }
5811 if test $am_cv_langinfo_codeset = yes; then
5813 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
5817 if test $ac_cv_header_locale_h = yes; then
5819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
5820 $as_echo_n "checking for LC_MESSAGES... " >&6; }
5821 if ${am_cv_val_LC_MESSAGES+:} false
; then :
5822 $as_echo_n "(cached) " >&6
5824 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5825 /* end confdefs.h. */
5835 if ac_fn_c_try_link
"$LINENO"; then :
5836 am_cv_val_LC_MESSAGES
=yes
5838 am_cv_val_LC_MESSAGES
=no
5840 rm -f core conftest.err conftest.
$ac_objext \
5841 conftest
$ac_exeext conftest.
$ac_ext
5843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
5844 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
5845 if test $am_cv_val_LC_MESSAGES = yes; then
5847 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
5853 for ac_prog
in bison
5855 # Extract the first word of "$ac_prog", so it can be a program name with args.
5856 set dummy
$ac_prog; ac_word
=$2
5857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5858 $as_echo_n "checking for $ac_word... " >&6; }
5859 if ${ac_cv_prog_INTLBISON+:} false
; then :
5860 $as_echo_n "(cached) " >&6
5862 if test -n "$INTLBISON"; then
5863 ac_cv_prog_INTLBISON
="$INTLBISON" # Let the user override the test.
5865 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5869 test -z "$as_dir" && as_dir
=.
5870 for ac_exec_ext
in '' $ac_executable_extensions; do
5871 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5872 ac_cv_prog_INTLBISON
="$ac_prog"
5873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5882 INTLBISON
=$ac_cv_prog_INTLBISON
5883 if test -n "$INTLBISON"; then
5884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
5885 $as_echo "$INTLBISON" >&6; }
5887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5888 $as_echo "no" >&6; }
5892 test -n "$INTLBISON" && break
5895 if test -z "$INTLBISON"; then
5898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
5899 $as_echo_n "checking version of bison... " >&6; }
5900 ac_prog_version
=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
5901 case $ac_prog_version in
5902 '') ac_prog_version
="v. ?.??, bad"; ac_verc_fail
=yes;;
5903 1.2[6-9]* |
1.
[3-9][0-9]* |
[2-9].
*)
5904 ac_prog_version
="$ac_prog_version, ok"; ac_verc_fail
=no
;;
5905 *) ac_prog_version
="$ac_prog_version, bad"; ac_verc_fail
=yes;;
5907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
5908 $as_echo "$ac_prog_version" >&6; }
5910 if test $ac_verc_fail = yes; then
5929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
5930 $as_echo_n "checking whether NLS is requested... " >&6; }
5931 # Check whether --enable-nls was given.
5932 if test "${enable_nls+set}" = set; then :
5933 enableval
=$enable_nls; USE_NLS
=$enableval
5938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
5939 $as_echo "$USE_NLS" >&6; }
5944 BUILD_INCLUDED_LIBINTL
=no
5945 USE_INCLUDED_LIBINTL
=no
5951 if test "$USE_NLS" = "yes"; then
5952 gt_use_preinstalled_gnugettext
=no
5954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
5955 $as_echo_n "checking whether included gettext is requested... " >&6; }
5957 # Check whether --with-included-gettext was given.
5958 if test "${with_included_gettext+set}" = set; then :
5959 withval
=$with_included_gettext; nls_cv_force_use_gnu_gettext
=$withval
5961 nls_cv_force_use_gnu_gettext
=no
5964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
5965 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
5967 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
5968 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
5975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
5976 $as_echo_n "checking for GNU gettext in libc... " >&6; }
5977 if ${gt_cv_func_gnugettext2_libc+:} false
; then :
5978 $as_echo_n "(cached) " >&6
5980 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5981 /* end confdefs.h. */
5982 #include <libintl.h>
5983 extern int _nl_msg_cat_cntr;
5984 extern int *_nl_domain_bindings;
5988 bindtextdomain ("", "");
5989 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_domain_bindings
5994 if ac_fn_c_try_link
"$LINENO"; then :
5995 gt_cv_func_gnugettext2_libc
=yes
5997 gt_cv_func_gnugettext2_libc
=no
5999 rm -f core conftest.err conftest.
$ac_objext \
6000 conftest
$ac_exeext conftest.
$ac_ext
6002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext2_libc" >&5
6003 $as_echo "$gt_cv_func_gnugettext2_libc" >&6; }
6005 if test "$gt_cv_func_gnugettext2_libc" != "yes"; then
6011 acl_save_prefix
="$prefix"
6012 prefix
="$acl_final_prefix"
6013 acl_save_exec_prefix
="$exec_prefix"
6014 exec_prefix
="$acl_final_exec_prefix"
6016 eval additional_includedir
=\"$includedir\"
6017 eval additional_libdir
=\"$libdir\"
6019 exec_prefix
="$acl_save_exec_prefix"
6020 prefix
="$acl_save_prefix"
6023 # Check whether --with-libintl-prefix was given.
6024 if test "${with_libintl_prefix+set}" = set; then :
6025 withval
=$with_libintl_prefix;
6026 if test "X$withval" = "Xno"; then
6029 if test "X$withval" = "X"; then
6031 acl_save_prefix
="$prefix"
6032 prefix
="$acl_final_prefix"
6033 acl_save_exec_prefix
="$exec_prefix"
6034 exec_prefix
="$acl_final_exec_prefix"
6036 eval additional_includedir
=\"$includedir\"
6037 eval additional_libdir
=\"$libdir\"
6039 exec_prefix
="$acl_save_exec_prefix"
6040 prefix
="$acl_save_prefix"
6043 additional_includedir
="$withval/include"
6044 additional_libdir
="$withval/lib"
6051 # Check whether --with-libintl-type was given.
6052 if test "${with_libintl_type+set}" = set; then :
6053 withval
=$with_libintl_type; with_libintl_type
=$withval
6055 with_libintl_type
=auto
6058 lib_type
=`eval echo \$with_libintl_type`
6065 names_already_handled
=
6066 names_next_round
='intl '
6067 while test -n "$names_next_round"; do
6068 names_this_round
="$names_next_round"
6070 for name
in $names_this_round; do
6072 for n
in $names_already_handled; do
6073 if test "$n" = "$name"; then
6078 if test -z "$already_handled"; then
6079 names_already_handled
="$names_already_handled $name"
6080 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6081 eval value
=\"\
$HAVE_LIB$uppername\"
6082 if test -n "$value"; then
6083 if test "$value" = yes; then
6084 eval value
=\"\
$LIB$uppername\"
6085 test -z "$value" || LIBINTL
="${LIBINTL}${LIBINTL:+ }$value"
6086 eval value
=\"\
$LTLIB$uppername\"
6087 test -z "$value" || LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }$value"
6096 if test $use_additional = yes; then
6097 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
6098 found_dir
="$additional_libdir"
6099 found_so
="$additional_libdir/lib$name.$shlibext"
6100 if test -f "$additional_libdir/lib$name.la"; then
6101 found_la
="$additional_libdir/lib$name.la"
6103 elif test x
$lib_type != xshared
; then
6104 if test -f "$additional_libdir/lib$name.$libext"; then
6105 found_dir
="$additional_libdir"
6106 found_a
="$additional_libdir/lib$name.$libext"
6107 if test -f "$additional_libdir/lib$name.la"; then
6108 found_la
="$additional_libdir/lib$name.la"
6113 if test "X$found_dir" = "X"; then
6114 for x
in $LDFLAGS $LTLIBINTL; do
6116 acl_save_prefix
="$prefix"
6117 prefix
="$acl_final_prefix"
6118 acl_save_exec_prefix
="$exec_prefix"
6119 exec_prefix
="$acl_final_exec_prefix"
6121 exec_prefix
="$acl_save_exec_prefix"
6122 prefix
="$acl_save_prefix"
6126 dir
=`echo "X$x" | sed -e 's/^X-L//'`
6127 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
6129 found_so
="$dir/lib$name.$shlibext"
6130 if test -f "$dir/lib$name.la"; then
6131 found_la
="$dir/lib$name.la"
6133 elif test x
$lib_type != xshared
; then
6134 if test -f "$dir/lib$name.$libext"; then
6136 found_a
="$dir/lib$name.$libext"
6137 if test -f "$dir/lib$name.la"; then
6138 found_la
="$dir/lib$name.la"
6144 if test "X$found_dir" != "X"; then
6149 if test "X$found_dir" != "X"; then
6150 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
6151 if test "X$found_so" != "X"; then
6152 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
6153 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
6156 for x
in $ltrpathdirs; do
6157 if test "X$x" = "X$found_dir"; then
6162 if test -z "$haveit"; then
6163 ltrpathdirs
="$ltrpathdirs $found_dir"
6165 if test "$hardcode_direct" = yes; then
6166 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
6168 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
6169 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
6171 for x
in $rpathdirs; do
6172 if test "X$x" = "X$found_dir"; then
6177 if test -z "$haveit"; then
6178 rpathdirs
="$rpathdirs $found_dir"
6182 for x
in $LDFLAGS $LIBINTL; do
6184 acl_save_prefix
="$prefix"
6185 prefix
="$acl_final_prefix"
6186 acl_save_exec_prefix
="$exec_prefix"
6187 exec_prefix
="$acl_final_exec_prefix"
6189 exec_prefix
="$acl_save_exec_prefix"
6190 prefix
="$acl_save_prefix"
6192 if test "X$x" = "X-L$found_dir"; then
6197 if test -z "$haveit"; then
6198 LIBINTL
="${LIBINTL}${LIBINTL:+ }-L$found_dir"
6200 if test "$hardcode_minus_L" != no
; then
6201 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
6203 LIBINTL
="${LIBINTL}${LIBINTL:+ }-l$name"
6209 if test "X$found_a" != "X"; then
6210 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_a"
6212 LIBINTL
="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
6215 additional_includedir
=
6216 case "$found_dir" in
6218 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
6219 additional_includedir
="$basedir/include"
6222 if test "X$additional_includedir" != "X"; then
6223 if test "X$additional_includedir" != "X/usr/include"; then
6225 if test "X$additional_includedir" = "X/usr/local/include"; then
6226 if test -n "$GCC"; then
6228 linux
*) haveit
=yes;;
6232 if test -z "$haveit"; then
6233 for x
in $CPPFLAGS $INCINTL; do
6235 acl_save_prefix
="$prefix"
6236 prefix
="$acl_final_prefix"
6237 acl_save_exec_prefix
="$exec_prefix"
6238 exec_prefix
="$acl_final_exec_prefix"
6240 exec_prefix
="$acl_save_exec_prefix"
6241 prefix
="$acl_save_prefix"
6243 if test "X$x" = "X-I$additional_includedir"; then
6248 if test -z "$haveit"; then
6249 if test -d "$additional_includedir"; then
6250 INCINTL
="${INCINTL}${INCINTL:+ }-I$additional_includedir"
6256 if test -n "$found_la"; then
6257 save_libdir
="$libdir"
6259 */* |
*\\*) .
"$found_la" ;;
6260 *) .
"./$found_la" ;;
6262 libdir
="$save_libdir"
6263 for dep
in $dependency_libs; do
6266 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
6267 if test "X$additional_libdir" != "X/usr/lib"; then
6269 if test "X$additional_libdir" = "X/usr/local/lib"; then
6270 if test -n "$GCC"; then
6272 linux
*) haveit
=yes;;
6276 if test -z "$haveit"; then
6278 for x
in $LDFLAGS $LIBINTL; do
6280 acl_save_prefix
="$prefix"
6281 prefix
="$acl_final_prefix"
6282 acl_save_exec_prefix
="$exec_prefix"
6283 exec_prefix
="$acl_final_exec_prefix"
6285 exec_prefix
="$acl_save_exec_prefix"
6286 prefix
="$acl_save_prefix"
6288 if test "X$x" = "X-L$additional_libdir"; then
6293 if test -z "$haveit"; then
6294 if test -d "$additional_libdir"; then
6295 LIBINTL
="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
6299 for x
in $LDFLAGS $LTLIBINTL; do
6301 acl_save_prefix
="$prefix"
6302 prefix
="$acl_final_prefix"
6303 acl_save_exec_prefix
="$exec_prefix"
6304 exec_prefix
="$acl_final_exec_prefix"
6306 exec_prefix
="$acl_save_exec_prefix"
6307 prefix
="$acl_save_prefix"
6309 if test "X$x" = "X-L$additional_libdir"; then
6314 if test -z "$haveit"; then
6315 if test -d "$additional_libdir"; then
6316 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
6323 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
6324 if test "$enable_rpath" != no
; then
6326 for x
in $rpathdirs; do
6327 if test "X$x" = "X$dir"; then
6332 if test -z "$haveit"; then
6333 rpathdirs
="$rpathdirs $dir"
6336 for x
in $ltrpathdirs; do
6337 if test "X$x" = "X$dir"; then
6342 if test -z "$haveit"; then
6343 ltrpathdirs
="$ltrpathdirs $dir"
6348 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6351 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6354 LIBINTL
="${LIBINTL}${LIBINTL:+ }$dep"
6355 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }$dep"
6361 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
6362 LIBINTL
="${LIBINTL}${LIBINTL:+ }-l$name"
6363 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
6365 LIBINTL
="${LIBINTL}${LIBINTL:+ }-l:lib$name.$libext"
6366 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-l:lib$name.$libext"
6373 if test "X$rpathdirs" != "X"; then
6374 if test -n "$hardcode_libdir_separator"; then
6376 for found_dir
in $rpathdirs; do
6377 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
6379 acl_save_libdir
="$libdir"
6381 eval flag
=\"$hardcode_libdir_flag_spec\"
6382 libdir
="$acl_save_libdir"
6383 LIBINTL
="${LIBINTL}${LIBINTL:+ }$flag"
6385 for found_dir
in $rpathdirs; do
6386 acl_save_libdir
="$libdir"
6388 eval flag
=\"$hardcode_libdir_flag_spec\"
6389 libdir
="$acl_save_libdir"
6390 LIBINTL
="${LIBINTL}${LIBINTL:+ }$flag"
6394 if test "X$ltrpathdirs" != "X"; then
6395 for found_dir
in $ltrpathdirs; do
6396 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
6400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
6401 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
6402 if ${gt_cv_func_gnugettext2_libintl+:} false
; then :
6403 $as_echo_n "(cached) " >&6
6405 gt_save_CPPFLAGS
="$CPPFLAGS"
6406 CPPFLAGS
="$CPPFLAGS $INCINTL"
6407 gt_save_LIBS
="$LIBS"
6408 LIBS
="$LIBS $LIBINTL"
6409 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6410 /* end confdefs.h. */
6411 #include <libintl.h>
6412 extern int _nl_msg_cat_cntr;
6417 const char *_nl_expand_alias ();
6421 bindtextdomain ("", "");
6422 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
6427 if ac_fn_c_try_link
"$LINENO"; then :
6428 gt_cv_func_gnugettext2_libintl
=yes
6430 gt_cv_func_gnugettext2_libintl
=no
6432 rm -f core conftest.err conftest.
$ac_objext \
6433 conftest
$ac_exeext conftest.
$ac_ext
6434 if test "$gt_cv_func_gnugettext2_libintl" != yes && test -n "$LIBICONV"; then
6435 LIBS
="$LIBS $LIBICONV"
6436 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6437 /* end confdefs.h. */
6438 #include <libintl.h>
6439 extern int _nl_msg_cat_cntr;
6444 const char *_nl_expand_alias ();
6448 bindtextdomain ("", "");
6449 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
6454 if ac_fn_c_try_link
"$LINENO"; then :
6455 LIBINTL
="$LIBINTL $LIBICONV"
6456 LTLIBINTL
="$LTLIBINTL $LTLIBICONV"
6457 gt_cv_func_gnugettext2_libintl
=yes
6460 rm -f core conftest.err conftest.
$ac_objext \
6461 conftest
$ac_exeext conftest.
$ac_ext
6463 CPPFLAGS
="$gt_save_CPPFLAGS"
6464 LIBS
="$gt_save_LIBS"
6466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext2_libintl" >&5
6467 $as_echo "$gt_cv_func_gnugettext2_libintl" >&6; }
6470 if test "$gt_cv_func_gnugettext2_libc" = "yes" \
6471 ||
{ test "$gt_cv_func_gnugettext2_libintl" = "yes" \
6472 && test "$PACKAGE" != gettext-runtime \
6473 && test "$PACKAGE" != gettext-tools
; }; then
6474 gt_use_preinstalled_gnugettext
=yes
6482 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
6483 nls_cv_use_gnu_gettext
=yes
6487 if test "$nls_cv_use_gnu_gettext" = "yes"; then
6488 BUILD_INCLUDED_LIBINTL
=yes
6489 USE_INCLUDED_LIBINTL
=yes
6490 LIBINTL
="\${top_builddir}/intl/libintl.a $LIBICONV"
6491 LTLIBINTL
="\${top_builddir}/intl/libintl.a $LTLIBICONV"
6492 LIBS
=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
6495 if test "$gt_use_preinstalled_gnugettext" = "yes" \
6496 ||
test "$nls_cv_use_gnu_gettext" = "yes"; then
6501 if test "$gt_use_preinstalled_gnugettext" = "yes" \
6502 ||
test "$nls_cv_use_gnu_gettext" = "yes"; then
6504 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
6511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
6512 $as_echo_n "checking whether to use NLS... " >&6; }
6513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
6514 $as_echo "$USE_NLS" >&6; }
6515 if test "$USE_NLS" = "yes"; then
6516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
6517 $as_echo_n "checking where the gettext function comes from... " >&6; }
6518 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
6519 if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
6520 gt_source
="external libintl"
6525 gt_source
="included intl directory"
6527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
6528 $as_echo "$gt_source" >&6; }
6531 if test "$USE_NLS" = "yes"; then
6533 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
6534 if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
6535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
6536 $as_echo_n "checking how to link with libintl... " >&6; }
6537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
6538 $as_echo "$LIBINTL" >&6; }
6540 for element
in $INCINTL; do
6542 for x
in $CPPFLAGS; do
6544 acl_save_prefix
="$prefix"
6545 prefix
="$acl_final_prefix"
6546 acl_save_exec_prefix
="$exec_prefix"
6547 exec_prefix
="$acl_final_exec_prefix"
6549 exec_prefix
="$acl_save_exec_prefix"
6550 prefix
="$acl_save_prefix"
6552 if test "X$x" = "X$element"; then
6557 if test -z "$haveit"; then
6558 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
6565 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
6568 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
6576 if test "$PACKAGE" = gettext-runtime ||
test "$PACKAGE" = gettext-tools
; then
6577 BUILD_INCLUDED_LIBINTL
=yes
6585 nls_cv_header_libgt
=
6596 if test "$USE_INCLUDED_LIBINTL" = yes; then
6597 INTLOBJS
="\$(GETTOBJS)"
6601 INTL_LIBTOOL_SUFFIX_PREFIX
=
6613 # This replaces the extensive use of DEFS in the original Makefile.in.
6615 $as_echo "#define IN_LIBINTL 1" >>confdefs.h
6618 $as_echo "#define IN_LIBRARY 1" >>confdefs.h
6621 $as_echo "#define DEPENDS_ON_LIBICONV 1" >>confdefs.h
6624 $as_echo "#define ENABLE_RELOCATABLE 1" >>confdefs.h
6627 $as_echo "#define NO_XMALLOC 1" >>confdefs.h
6630 $as_echo "#define set_relocation_prefix libintl_set_relocation_prefix" >>confdefs.h
6633 $as_echo "#define relocate libintl_relocate" >>confdefs.h
6636 MISSING
=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
6637 for ac_prog
in aclocal
6639 # Extract the first word of "$ac_prog", so it can be a program name with args.
6640 set dummy
$ac_prog; ac_word
=$2
6641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6642 $as_echo_n "checking for $ac_word... " >&6; }
6643 if ${ac_cv_prog_ACLOCAL+:} false
; then :
6644 $as_echo_n "(cached) " >&6
6646 if test -n "$ACLOCAL"; then
6647 ac_cv_prog_ACLOCAL
="$ACLOCAL" # Let the user override the test.
6649 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6653 test -z "$as_dir" && as_dir
=.
6654 for ac_exec_ext
in '' $ac_executable_extensions; do
6655 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6656 ac_cv_prog_ACLOCAL
="$ac_prog"
6657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6666 ACLOCAL
=$ac_cv_prog_ACLOCAL
6667 if test -n "$ACLOCAL"; then
6668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ACLOCAL" >&5
6669 $as_echo "$ACLOCAL" >&6; }
6671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6672 $as_echo "no" >&6; }
6676 test -n "$ACLOCAL" && break
6678 test -n "$ACLOCAL" || ACLOCAL
="$MISSING aclocal"
6680 for ac_prog
in autoconf
6682 # Extract the first word of "$ac_prog", so it can be a program name with args.
6683 set dummy
$ac_prog; ac_word
=$2
6684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6685 $as_echo_n "checking for $ac_word... " >&6; }
6686 if ${ac_cv_prog_AUTOCONF+:} false
; then :
6687 $as_echo_n "(cached) " >&6
6689 if test -n "$AUTOCONF"; then
6690 ac_cv_prog_AUTOCONF
="$AUTOCONF" # Let the user override the test.
6692 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6696 test -z "$as_dir" && as_dir
=.
6697 for ac_exec_ext
in '' $ac_executable_extensions; do
6698 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6699 ac_cv_prog_AUTOCONF
="$ac_prog"
6700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6709 AUTOCONF
=$ac_cv_prog_AUTOCONF
6710 if test -n "$AUTOCONF"; then
6711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOCONF" >&5
6712 $as_echo "$AUTOCONF" >&6; }
6714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6715 $as_echo "no" >&6; }
6719 test -n "$AUTOCONF" && break
6721 test -n "$AUTOCONF" || AUTOCONF
="$MISSING autoconf"
6723 for ac_prog
in autoheader
6725 # Extract the first word of "$ac_prog", so it can be a program name with args.
6726 set dummy
$ac_prog; ac_word
=$2
6727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6728 $as_echo_n "checking for $ac_word... " >&6; }
6729 if ${ac_cv_prog_AUTOHEADER+:} false
; then :
6730 $as_echo_n "(cached) " >&6
6732 if test -n "$AUTOHEADER"; then
6733 ac_cv_prog_AUTOHEADER
="$AUTOHEADER" # Let the user override the test.
6735 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6739 test -z "$as_dir" && as_dir
=.
6740 for ac_exec_ext
in '' $ac_executable_extensions; do
6741 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6742 ac_cv_prog_AUTOHEADER
="$ac_prog"
6743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6752 AUTOHEADER
=$ac_cv_prog_AUTOHEADER
6753 if test -n "$AUTOHEADER"; then
6754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOHEADER" >&5
6755 $as_echo "$AUTOHEADER" >&6; }
6757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6758 $as_echo "no" >&6; }
6762 test -n "$AUTOHEADER" && break
6764 test -n "$AUTOHEADER" || AUTOHEADER
="$MISSING autoheader"
6767 # Check whether --enable-maintainer-mode was given.
6768 if test "${enable_maintainer_mode+set}" = set; then :
6769 enableval
=$enable_maintainer_mode;
6771 enable_maintainer_mode
=no
6774 if test "x$enable_maintainer_mode" = xno
; then
6781 # Additional info for config.intl.
6787 case $USE_INCLUDED_LIBINTL in
6789 LIBINTL
=`echo $LIBINTL | sed 's,${top_builddir},&/..,' `
6790 LTLIBINTL
=`echo $LTLIBINTL | sed 's,${top_builddir},&/..,' `
6791 LIBINTL_DEP
='${top_builddir}/../intl/libintl.a'
6792 INCINTL
='-I${top_builddir}/../intl'
6798 if test "$INTLBISON" != :; then
6800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking bison 3 or later" >&5
6801 $as_echo_n "checking bison 3 or later... " >&6; }
6802 ac_prog_version
=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
6803 case $ac_prog_version in
6805 ac_prog_version
="$ac_prog_version, bison3"; ac_bison3
=yes;;
6806 *) ac_prog_version
="$ac_prog_version, old";;
6808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
6809 $as_echo "$ac_prog_version" >&6; }
6810 if test $ac_bison3 = yes; then
6818 ac_config_files
="$ac_config_files Makefile config.intl"
6820 cat >confcache
<<\_ACEOF
6821 # This file is a shell script that caches the results of configure
6822 # tests run on this system so they can be shared between configure
6823 # scripts and configure runs, see configure's option --config-cache.
6824 # It is not useful on other systems. If it contains results you don't
6825 # want to keep, you may remove or edit it.
6827 # config.status only pays attention to the cache file if you give it
6828 # the --recheck option to rerun configure.
6830 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6831 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6836 # The following way of writing the cache mishandles newlines in values,
6837 # but we know of no workaround that is simple, portable, and efficient.
6838 # So, we kill variables containing newlines.
6839 # Ultrix sh set writes to stderr and can't be redirected directly,
6840 # and sets the high bit in the cache file unless we assign to the vars.
6842 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
6843 eval ac_val
=\$
$ac_var
6847 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
6848 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
6851 _ | IFS | as_nl
) ;; #(
6852 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
6853 *) { eval $ac_var=; unset $ac_var;} ;;
6859 case $as_nl`(ac_space=' '; set) 2>&1` in #(
6860 *${as_nl}ac_space
=\
*)
6861 # `set' does not quote correctly, so add quotes: double-quote
6862 # substitution turns \\\\ into \\, and sed turns \\ into \.
6865 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6868 # `set' quotes correctly as required by POSIX, so do not add quotes.
6869 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6878 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6880 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6882 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
6883 if test -w "$cache_file"; then
6884 if test "x$cache_file" != "x/dev/null"; then
6885 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
6886 $as_echo "$as_me: updating cache $cache_file" >&6;}
6887 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
6888 cat confcache
>"$cache_file"
6890 case $cache_file in #(
6892 mv -f confcache
"$cache_file"$$
&&
6893 mv -f "$cache_file"$$
"$cache_file" ;; #(
6895 mv -f confcache
"$cache_file" ;;
6900 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
6901 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
6906 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
6907 # Let make expand exec_prefix.
6908 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6910 DEFS
=-DHAVE_CONFIG_H
6915 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
6916 # 1. Remove the extension, and $U if already installed.
6917 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
6918 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
6919 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
6920 # will be set to the directory where LIBOBJS objects are built.
6921 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6922 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
6926 LTLIBOBJS
=$ac_ltlibobjs
6930 : "${CONFIG_STATUS=./config.status}"
6932 ac_clean_files_save
=$ac_clean_files
6933 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
6934 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
6935 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
6937 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
6939 # Generated by $as_me.
6940 # Run this file to recreate the current configuration.
6941 # Compiler output produced by configure, useful for debugging
6942 # configure, is in config.log if it exists.
6948 SHELL=\${CONFIG_SHELL-$SHELL}
6951 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
6952 ## -------------------- ##
6953 ## M4sh Initialization. ##
6954 ## -------------------- ##
6956 # Be more Bourne compatible
6957 DUALCASE
=1; export DUALCASE
# for MKS sh
6958 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
6961 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
6962 # is contrary to our usage. Disable this feature.
6963 alias -g '${1+"$@"}'='"$@"'
6964 setopt NO_GLOB_SUBST
6966 case `(set -o) 2>/dev/null` in #(
6978 # Printing a long string crashes Solaris 7 /usr/bin/printf.
6979 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6980 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
6981 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
6982 # Prefer a ksh shell builtin over an external printf program on Solaris,
6983 # but without wasting forks for bash or zsh.
6984 if test -z "$BASH_VERSION$ZSH_VERSION" \
6985 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
6986 as_echo='print
-r --'
6987 as_echo_n='print
-rn --'
6988 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
6989 as_echo='printf %s
\n'
6990 as_echo_n='printf %s
'
6992 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
6993 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
6994 as_echo_n='/usr
/ucb
/echo -n'
6996 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
6997 as_echo_n_body='eval
7001 expr "X$arg" : "X\\(.*\\)$as_nl";
7002 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
7004 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
7006 export as_echo_n_body
7007 as_echo_n='sh
-c $as_echo_n_body as_echo
'
7010 as_echo='sh
-c $as_echo_body as_echo
'
7013 # The user is always right.
7014 if test "${PATH_SEPARATOR+set}" != set; then
7016 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
7017 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
7024 # We need space, tab and new line, in precisely that order. Quoting is
7025 # there to prevent editors from complaining about space-tab.
7026 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
7027 # splitting by setting IFS to empty value.)
7030 # Find who we are. Look in the path if we contain no directory separator.
7033 *[\\/]* ) as_myself=$0 ;;
7034 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7038 test -z "$as_dir" && as_dir=.
7039 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7045 # We did not find ourselves, most probably we were run as `sh COMMAND'
7046 # in which case we are not to be found in the path.
7047 if test "x$as_myself" = x
; then
7050 if test ! -f "$as_myself"; then
7051 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7055 # Unset variables that we do not need and which cause bugs (e.g. in
7056 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
7057 # suppresses any "Segmentation fault" message there. '((' could
7058 # trigger a bug in pdksh 5.2.14.
7059 for as_var
in BASH_ENV ENV MAIL MAILPATH
7060 do eval test x\
${$as_var+set} = xset \
7061 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
7074 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
7077 # as_fn_error STATUS ERROR [LINENO LOG_FD]
7078 # ----------------------------------------
7079 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
7080 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
7081 # script with STATUS, using 1 if that was 0.
7084 as_status
=$1; test $as_status -eq 0 && as_status
=1
7086 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
7087 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
7089 $as_echo "$as_me: error: $2" >&2
7090 as_fn_exit
$as_status
7094 # as_fn_set_status STATUS
7095 # -----------------------
7096 # Set $? to STATUS, without forking.
7100 } # as_fn_set_status
7104 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
7114 # Portably unset VAR.
7117 { eval $1=; unset $1;}
7119 as_unset
=as_fn_unset
7120 # as_fn_append VAR VALUE
7121 # ----------------------
7122 # Append the text in VALUE to the end of the definition contained in VAR. Take
7123 # advantage of any shell optimizations that allow amortized linear growth over
7124 # repeated appends, instead of the typical quadratic growth present in naive
7126 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
7127 eval 'as_fn_append ()
7138 # as_fn_arith ARG...
7139 # ------------------
7140 # Perform arithmetic evaluation on the ARGs, and store the result in the
7141 # global $as_val. Take advantage of shells that can avoid forks. The arguments
7142 # must be portable across $(()) and expr.
7143 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
7144 eval 'as_fn_arith ()
7151 as_val
=`expr "$@" || test $? -eq 1`
7156 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
7157 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
7163 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7164 as_basename
=basename
7169 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
7175 as_me
=`$as_basename -- "$0" ||
7176 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7177 X"$0" : 'X\(//\)$' \| \
7178 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7180 sed '/^.*\/\([^/][^/]*\)\/*$/{
7194 # Avoid depending upon Character Ranges.
7195 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
7196 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7197 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
7198 as_cr_digits
='0123456789'
7199 as_cr_alnum
=$as_cr_Letters$as_cr_digits
7201 ECHO_C
= ECHO_N
= ECHO_T
=
7202 case `echo -n x` in #(((((
7204 case `echo 'xy\c'` in
7205 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
7207 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
7214 rm -f conf$$ conf$$.exe conf$$.
file
7215 if test -d conf$$.dir
; then
7216 rm -f conf$$.dir
/conf$$.
file
7219 mkdir conf$$.dir
2>/dev
/null
7221 if (echo >conf$$.
file) 2>/dev
/null
; then
7222 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
7224 # ... but there are two gotchas:
7225 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7226 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
7227 # In both cases, we have to default to `cp -pR'.
7228 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
7230 elif ln conf$$.
file conf$$
2>/dev
/null
; then
7238 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
7239 rmdir conf$$.dir
2>/dev
/null
7244 # Create "$as_dir" as a directory, including parents if necessary.
7249 -*) as_dir
=.
/$as_dir;;
7251 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
7255 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7256 *) as_qdir
=$as_dir;;
7258 as_dirs
="'$as_qdir' $as_dirs"
7259 as_dir
=`$as_dirname -- "$as_dir" ||
7260 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7261 X"$as_dir" : 'X\(//\)[^/]' \| \
7262 X"$as_dir" : 'X\(//\)$' \| \
7263 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7264 $as_echo X"$as_dir" |
7265 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7282 test -d "$as_dir" && break
7284 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
7285 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
7289 if mkdir
-p .
2>/dev
/null
; then
7290 as_mkdir_p
='mkdir -p "$as_dir"'
7292 test -d .
/-p && rmdir .
/-p
7297 # as_fn_executable_p FILE
7298 # -----------------------
7299 # Test if FILE is an executable regular file.
7300 as_fn_executable_p
()
7302 test -f "$1" && test -x "$1"
7303 } # as_fn_executable_p
7305 as_executable_p
=as_fn_executable_p
7307 # Sed expression to map a string onto a valid CPP name.
7308 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7310 # Sed expression to map a string onto a valid variable name.
7311 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7315 ## ----------------------------------- ##
7316 ## Main body of $CONFIG_STATUS script. ##
7317 ## ----------------------------------- ##
7319 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
7321 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
7322 # Save the log message, to keep $0 and so on meaningful, and to
7323 # report actual input values of CONFIG_FILES etc. instead of their
7324 # values after options handling.
7326 This file was extended by $as_me, which was
7327 generated by GNU Autoconf 2.69. Invocation command line was
7329 CONFIG_FILES = $CONFIG_FILES
7330 CONFIG_HEADERS = $CONFIG_HEADERS
7331 CONFIG_LINKS = $CONFIG_LINKS
7332 CONFIG_COMMANDS = $CONFIG_COMMANDS
7335 on `(hostname || uname -n) 2>/dev/null | sed 1q`
7340 case $ac_config_files in *"
7341 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
7344 case $ac_config_headers in *"
7345 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
7349 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7350 # Files that config.status was made for.
7351 config_files="$ac_config_files"
7352 config_headers="$ac_config_headers"
7353 config_commands="$ac_config_commands"
7357 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
7359 \`$as_me' instantiates files and other configuration actions
7360 from templates according to the current configuration. Unless the files
7361 and actions are specified as TAGs, all are instantiated by default.
7363 Usage: $0 [OPTION]... [TAG]...
7365 -h, --help print this help, then exit
7366 -V, --version print version number and configuration settings, then exit
7367 --config print configuration, then exit
7368 -q, --quiet, --silent
7369 do not print progress messages
7370 -d, --debug don't remove temporary files
7371 --recheck update $as_me by reconfiguring in the same conditions
7372 --file=FILE[:TEMPLATE]
7373 instantiate the configuration file FILE
7374 --header=FILE[:TEMPLATE]
7375 instantiate the configuration header FILE
7377 Configuration files:
7380 Configuration headers:
7383 Configuration commands:
7386 Report bugs to the package provider."
7389 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7390 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
7393 configured by $0, generated by GNU Autoconf 2.69,
7394 with options \\"\$ac_cs_config\\"
7396 Copyright (C) 2012 Free Software Foundation, Inc.
7397 This config.status script is free software; the Free Software Foundation
7398 gives unlimited permission to copy, distribute and modify it."
7403 test -n "\$AWK" || AWK=awk
7406 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
7407 # The default lists apply if the user does not specify any file.
7413 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
7414 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
7418 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
7430 # Handling of the options.
7431 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
7433 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
7434 $as_echo "$ac_cs_version"; exit ;;
7435 --config |
--confi |
--conf |
--con |
--co |
--c )
7436 $as_echo "$ac_cs_config"; exit ;;
7437 --debug |
--debu |
--deb |
--de |
--d |
-d )
7439 --file |
--fil |
--fi |
--f )
7442 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7443 '') as_fn_error $?
"missing file argument" ;;
7445 as_fn_append CONFIG_FILES
" '$ac_optarg'"
7446 ac_need_defaults
=false
;;
7447 --header |
--heade |
--head |
--hea )
7450 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7452 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
7453 ac_need_defaults
=false
;;
7455 # Conflict between --help and --header
7456 as_fn_error $?
"ambiguous option: \`$1'
7457 Try \`$0 --help' for more information.";;
7458 --help |
--hel |
-h )
7459 $as_echo "$ac_cs_usage"; exit ;;
7460 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
7461 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
7465 -*) as_fn_error $?
"unrecognized option: \`$1'
7466 Try \`$0 --help' for more information." ;;
7468 *) as_fn_append ac_config_targets
" $1"
7469 ac_need_defaults
=false
;;
7475 ac_configure_extra_args
=
7477 if $ac_cs_silent; then
7479 ac_configure_extra_args
="$ac_configure_extra_args --silent"
7483 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7484 if \$ac_cs_recheck; then
7485 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7487 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
7488 CONFIG_SHELL='$SHELL'
7494 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
7498 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7499 ## Running $as_me. ##
7505 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7509 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
7510 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
7512 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
7513 # Capture the value of LINGUAS because we need it to compute CATALOGS.
7514 LINGUAS="${LINGUAS-%UNSET%}"
7519 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
7521 # Handling of arguments.
7522 for ac_config_target
in $ac_config_targets
7524 case $ac_config_target in
7525 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
7526 "default-1") CONFIG_COMMANDS
="$CONFIG_COMMANDS default-1" ;;
7527 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
7528 "config.intl") CONFIG_FILES
="$CONFIG_FILES config.intl" ;;
7530 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
7535 # If the user did not use the arguments to specify the items to instantiate,
7536 # then the envvar interface is used. Set only those that are not.
7537 # We use the long form for the default assignment because of an extremely
7538 # bizarre bug on SunOS 4.1.3.
7539 if $ac_need_defaults; then
7540 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
7541 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
7542 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
7545 # Have a temporary directory for convenience. Make it in the build tree
7546 # simply because there is no reason against having it here, and in addition,
7547 # creating and moving files from /tmp can sometimes cause problems.
7548 # Hook for its removal unless debugging.
7549 # Note that there is a small window in which the directory will not be cleaned:
7550 # after its creation but before its name has been assigned to `$tmp'.
7554 trap 'exit_status=$?
7556 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
7558 trap 'as_fn_exit 1' 1 2 13 15
7560 # Create a (secure) tmp directory for tmp files.
7563 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
7567 tmp
=.
/conf$$
-$RANDOM
7568 (umask 077 && mkdir
"$tmp")
7569 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
7572 # Set up the scripts for CONFIG_FILES section.
7573 # No need to generate them if there are no CONFIG_FILES.
7574 # This happens for instance with `./config.status config.h'.
7575 if test -n "$CONFIG_FILES"; then
7578 ac_cr
=`echo X | tr X '\015'`
7579 # On cygwin, bash can eat \r inside `` if the user requested igncr.
7580 # But we know of no other shell where ac_cr would be empty at this
7581 # point, so we can use a bashism as a fallback.
7582 if test "x$ac_cr" = x
; then
7583 eval ac_cr
=\$
\'\\r
\'
7585 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
7586 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
7592 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
7597 echo "cat >conf$$subs.awk <<_ACEOF" &&
7598 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
7601 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
7602 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
7604 for ac_last_try in false false false false false :; do
7605 . ./conf$$subs.sh ||
7606 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
7608 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
7609 if test $ac_delim_n = $ac_delim_num; then
7611 elif $ac_last_try; then
7612 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
7614 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
7619 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7620 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
7624 s/^/S["/; s
/!.
*/"]=/
7634 s/\(.\{148\}\)..*/\1/
7636 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
7641 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
7648 s/\(.\{148\}\)..*/\1/
7650 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
7654 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
7659 ' <conf$$subs.awk | sed '
7664 ' >>$CONFIG_STATUS || ac_write_fail=1
7665 rm -f conf$$subs.awk
7666 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7668 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
7669 for (key in S) S_is_set[key] = 1
7675 nfields = split(line, field, "@
")
7677 len = length(field[1])
7678 for (i = 2; i < nfields; i++) {
7680 keylen = length(key)
7681 if (S_is_set[key]) {
7683 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
7684 len += length(value) + length(field[++i])
7695 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7696 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
7697 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
7700 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
7701 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
7704 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
7705 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
7706 # trailing colons and then remove the whole line if VPATH becomes empty
7707 # (actually we leave an empty line to preserve line numbers).
7708 if test "x
$srcdir" = x.; then
7709 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
7727 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7728 fi # test -n "$CONFIG_FILES"
7730 # Set up the scripts for CONFIG_HEADERS section.
7731 # No need to generate them if there are no CONFIG_HEADERS.
7732 # This happens for instance with `./config.status Makefile'.
7733 if test -n "$CONFIG_HEADERS"; then
7734 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
7738 # Transform confdefs.h into an awk script `defines.awk', embedded as
7739 # here-document in config.status, that substitutes the proper values into
7740 # config.h.in to produce config.h.
7742 # Create a delimiter string that does not exist in confdefs.h, to ease
7743 # handling of long lines.
7745 for ac_last_try in false false :; do
7746 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
7747 if test -z "$ac_tt"; then
7749 elif $ac_last_try; then
7750 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
7752 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
7756 # For the awk script, D is an array of macro values keyed by name,
7757 # likewise P contains macro parameters if any. Preserve backslash
7758 # newline sequences.
7760 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
7762 s/.\{148\}/&'"$ac_delim"'/g
7765 s/^[ ]*#[ ]*define[ ][ ]*/ /
7772 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
7774 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
7778 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
7779 D["\
1"]=" \
3\\\\\\n
"\\/p
7781 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
7786 s/.\{148\}/&'"$ac_delim"'/g
7791 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
7794 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
7796 ' <confdefs.h | sed '
7797 s/'"$ac_delim"'/"\\\
7798 "/g' >>$CONFIG_STATUS || ac_write_fail=1
7800 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7801 for (key in D) D_is_set[key] = 1
7804 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
7806 split(line, arg, " ")
7807 if (arg[1] == "#") {
7811 defundef
= substr
(arg
[1], 2)
7814 split(mac1
, mac2
, "(") #)
7816 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
7817 if (D_is_set
[macro
]) {
7818 # Preserve the white space surrounding the "#".
7819 print prefix
"define", macro P
[macro
] D
[macro
]
7822 # Replace #undef with comments. This is necessary, for example,
7823 # in the case of _POSIX_SOURCE, which is predefined and required
7824 # on some systems where configure will not decide to define it.
7825 if (defundef
== "undef") {
7826 print
"/*", prefix defundef
, macro
, "*/"
7834 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
7835 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
7836 fi # test -n "$CONFIG_HEADERS"
7839 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
7844 :[FHLC
]) ac_mode
=$ac_tag; continue;;
7846 case $ac_mode$ac_tag in
7848 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
7849 :[FH
]-) ac_tag
=-:-;;
7850 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
7867 -) ac_f
="$ac_tmp/stdin";;
7868 *) # Look for the file first in the build tree, then in the source tree
7869 # (if the path is not absolute). The absolute path cannot be DOS-style,
7870 # because $ac_f cannot contain `:'.
7874 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
7876 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
7878 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
7879 as_fn_append ac_file_inputs
" '$ac_f'"
7882 # Let's still pretend it is `configure' which instantiates (i.e., don't
7883 # use $as_me), people would be surprised to read:
7884 # /* config.h. Generated by config.status. */
7885 configure_input
='Generated from '`
7886 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
7888 if test x
"$ac_file" != x-
; then
7889 configure_input
="$ac_file. $configure_input"
7890 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
7891 $as_echo "$as_me: creating $ac_file" >&6;}
7893 # Neutralize special characters interpreted by sed in replacement strings.
7894 case $configure_input in #(
7895 *\
&* |
*\|
* |
*\\* )
7896 ac_sed_conf_input
=`$as_echo "$configure_input" |
7897 sed 's/[\\\\&|]/\\\\&/g'`;; #(
7898 *) ac_sed_conf_input
=$configure_input;;
7902 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
7903 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
7908 ac_dir
=`$as_dirname -- "$ac_file" ||
7909 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7910 X"$ac_file" : 'X\(//\)[^/]' \| \
7911 X"$ac_file" : 'X\(//\)$' \| \
7912 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
7913 $as_echo X"$ac_file" |
7914 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7931 as_dir
="$ac_dir"; as_fn_mkdir_p
7935 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
7937 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7938 # A ".." for each directory in $ac_dir_suffix.
7939 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7940 case $ac_top_builddir_sub in
7941 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
7942 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
7945 ac_abs_top_builddir
=$ac_pwd
7946 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
7947 # for backward compatibility:
7948 ac_top_builddir
=$ac_top_build_prefix
7951 .
) # We are building in place.
7953 ac_top_srcdir
=$ac_top_builddir_sub
7954 ac_abs_top_srcdir
=$ac_pwd ;;
7955 [\\/]* | ?
:[\\/]* ) # Absolute name.
7956 ac_srcdir
=$srcdir$ac_dir_suffix;
7957 ac_top_srcdir
=$srcdir
7958 ac_abs_top_srcdir
=$srcdir ;;
7960 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
7961 ac_top_srcdir
=$ac_top_build_prefix$srcdir
7962 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
7964 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
7974 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
7975 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
7979 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
7980 # If the template does not know about datarootdir, expand it.
7981 # FIXME: This hack should be removed a few years after 2.60.
7982 ac_datarootdir_hack
=; ac_datarootdir_seen
=
7993 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
7994 *datarootdir
*) ac_datarootdir_seen
=yes;;
7995 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
7996 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
7997 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
7999 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8000 ac_datarootdir_hack='
8001 s&@datadir@&$datadir&g
8002 s&@docdir@&$docdir&g
8003 s&@infodir@&$infodir&g
8004 s&@localedir@&$localedir&g
8005 s&@mandir@&$mandir&g
8006 s&\\\${datarootdir}&$datarootdir&g' ;;
8010 # Neutralize VPATH when `$srcdir' = `.'.
8011 # Shell code in configure.ac might set extrasub.
8012 # FIXME: do we really want to maintain this feature?
8013 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8014 ac_sed_extra="$ac_vpsub
8017 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8019 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
8020 s|@configure_input@|
$ac_sed_conf_input|
;t t
8021 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
8022 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
8023 s
&@srcdir@
&$ac_srcdir&;t t
8024 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
8025 s
&@top_srcdir@
&$ac_top_srcdir&;t t
8026 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
8027 s
&@builddir@
&$ac_builddir&;t t
8028 s
&@abs_builddir@
&$ac_abs_builddir&;t t
8029 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
8030 s
&@INSTALL@
&$ac_INSTALL&;t t
8031 $ac_datarootdir_hack
8033 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
8034 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
8036 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
8037 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
8038 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
8039 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
8040 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
8041 which seems to be undefined. Please make sure it is defined" >&5
8042 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
8043 which seems to be undefined. Please make sure it is defined" >&2;}
8045 rm -f "$ac_tmp/stdin"
8047 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
8048 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
8050 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8056 if test x"$ac_file" != x-; then
8058 $as_echo "/* $configure_input */" \
8059 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
8060 } >"$ac_tmp/config.h" \
8061 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8062 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
8063 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
8064 $as_echo "$as_me: $ac_file is unchanged" >&6;}
8067 mv "$ac_tmp/config.h" "$ac_file" \
8068 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8071 $as_echo "/* $configure_input */" \
8072 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
8073 || as_fn_error $? "could not create -" "$LINENO" 5
8077 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
8078 $as_echo "$as_me: executing $ac_file commands" >&6;}
8083 case $ac_file$ac_mode in
8085 for ac_file in $CONFIG_FILES; do
8086 # Support "outfile[:infile[:infile...]]"
8088 *:*) ac_file=`echo "$ac_file"|sed 's
%:.
*%%'` ;;
8090 # PO directories have a Makefile.in generated from Makefile.in.in.
8091 case "$ac_file" in */Makefile.in)
8092 # Adjust a relative srcdir.
8093 ac_dir=`echo "$ac_file"|sed 's
%/[^
/][^
/]*$
%%'`
8094 ac_dir_suffix=/`echo "$ac_dir"|sed 's
%^\.
/%%'`
8095 ac_dots=`echo "$ac_dir_suffix"|sed 's
%/[^
/]*%..
/%g
'`
8096 # In autoconf-2.13 it is called $ac_given_srcdir.
8097 # In autoconf-2.50 it is called $srcdir.
8098 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
8099 case "$ac_given_srcdir" in
8100 .) top_srcdir=`echo $ac_dots|sed 's
%/$
%%'` ;;
8101 /*) top_srcdir="$ac_given_srcdir" ;;
8102 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
8104 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
8105 rm -f "$ac_dir/POTFILES"
8106 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
8107 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
8108 POMAKEFILEDEPS="POTFILES.in"
8109 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
8110 # on $ac_dir but don't depend on user-specified configuration
8112 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
8113 # The LINGUAS file contains the set of available languages.
8114 if test -n "$OBSOLETE_ALL_LINGUAS"; then
8115 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.ac is obsolete" ||
echo "setting ALL_LINGUAS in configure.ac is obsolete"
8117 ALL_LINGUAS_
=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
8118 # Hide the ALL_LINGUAS assigment from automake.
8119 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
8120 POMAKEFILEDEPS
="$POMAKEFILEDEPS LINGUAS"
8122 # The set of available languages was given in configure.ac.
8123 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
8125 case "$ac_given_srcdir" in
8127 *) srcdirpre
='$(srcdir)/' ;;
8133 for lang
in $ALL_LINGUAS; do
8134 POFILES
="$POFILES $srcdirpre$lang.po"
8135 GMOFILES
="$GMOFILES $srcdirpre$lang.gmo"
8136 UPDATEPOFILES
="$UPDATEPOFILES $lang.po-update"
8137 DUMMYPOFILES
="$DUMMYPOFILES $lang.nop"
8139 # CATALOGS depends on both $ac_dir and the user's LINGUAS
8140 # environment variable.
8142 if test -n "$ALL_LINGUAS"; then
8143 for presentlang
in $ALL_LINGUAS; do
8145 if test "%UNSET%" != "$LINGUAS"; then
8146 desiredlanguages
="$LINGUAS"
8148 desiredlanguages
="$ALL_LINGUAS"
8150 for desiredlang
in $desiredlanguages; do
8151 # Use the presentlang catalog if desiredlang is
8152 # a. equal to presentlang, or
8153 # b. a variant of presentlang (because in this case,
8154 # presentlang can be used as a fallback for messages
8155 # which are not translated in the desiredlang catalog).
8156 case "$desiredlang" in
8157 "$presentlang"*) useit
=yes;;
8160 if test $useit = yes; then
8161 INST_LINGUAS
="$INST_LINGUAS $presentlang"
8166 if test -n "$INST_LINGUAS"; then
8167 for lang
in $INST_LINGUAS; do
8168 CATALOGS
="$CATALOGS $lang.gmo"
8171 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" ||
echo "creating $ac_dir/Makefile"
8172 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
8173 for f
in "$ac_given_srcdir/$ac_dir"/Rules-
*; do
8174 if test -f "$f"; then
8176 *.orig |
*.bak |
*~
) ;;
8177 *) cat "$f" >> "$ac_dir/Makefile" ;;
8192 ac_clean_files
=$ac_clean_files_save
8194 test $ac_write_fail = 0 ||
8195 as_fn_error $?
"write failure creating $CONFIG_STATUS" "$LINENO" 5
8198 # configure is writing to config.log, and then calls config.status.
8199 # config.status does its own redirection, appending to config.log.
8200 # Unfortunately, on DOS this fails, as config.log is still kept open
8201 # by configure, so config.status won't be able to write to it; its
8202 # output is simply discarded. So we exec the FD to /dev/null,
8203 # effectively closing config.log, so it can be properly (re)opened and
8204 # appended to by config.status. When coming back to configure, we
8205 # need to make the FD available again.
8206 if test "$no_create" != yes; then
8208 ac_config_status_args
=
8209 test "$silent" = yes &&
8210 ac_config_status_args
="$ac_config_status_args --quiet"
8212 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
8214 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8215 # would make configure fail if this is the last instruction.
8216 $ac_cs_success || as_fn_exit
1
8218 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
8219 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
8220 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}