2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for gold 0.1.
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.
579 PACKAGE_TARNAME
='gold'
580 PACKAGE_VERSION
='0.1'
581 PACKAGE_STRING
='gold 0.1'
585 ac_unique_file
="gold.cc"
586 # Factoring default headers for most tests.
587 ac_includes_default
="\
589 #ifdef HAVE_SYS_TYPES_H
590 # include <sys/types.h>
592 #ifdef HAVE_SYS_STAT_H
593 # include <sys/stat.h>
599 # ifdef HAVE_STDLIB_H
604 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
609 #ifdef HAVE_STRINGS_H
610 # include <strings.h>
612 #ifdef HAVE_INTTYPES_H
613 # include <inttypes.h>
623 ac_subst_vars
='am__EXEEXT_FALSE
627 MAINTAINER_MODE_FALSE
632 HAVE_NO_USE_LINKER_PLUGIN_FALSE
633 HAVE_NO_USE_LINKER_PLUGIN_TRUE
661 WARN_CFLAGS_FOR_BUILD
668 TLS_DESCRIPTORS_FALSE
670 TLS_GNU2_DIALECT_FALSE
671 TLS_GNU2_DIALECT_TRUE
679 CFLAGS_CF_PROTECTION_FALSE
680 CFLAGS_CF_PROTECTION_TRUE
685 FN_PTRS_IN_SO_WITHOUT_PIC_FALSE
686 FN_PTRS_IN_SO_WITHOUT_PIC_TRUE
689 NATIVE_OR_CROSS_LINKER_FALSE
690 NATIVE_OR_CROSS_LINKER_TRUE
728 DEFAULT_TARGET_MIPS_FALSE
729 DEFAULT_TARGET_MIPS_TRUE
730 DEFAULT_TARGET_TILEGX_FALSE
731 DEFAULT_TARGET_TILEGX_TRUE
732 DEFAULT_TARGET_X86_64_OR_X32_FALSE
733 DEFAULT_TARGET_X86_64_OR_X32_TRUE
734 DEFAULT_TARGET_X32_FALSE
735 DEFAULT_TARGET_X32_TRUE
736 DEFAULT_TARGET_X86_64_FALSE
737 DEFAULT_TARGET_X86_64_TRUE
738 DEFAULT_TARGET_S390_FALSE
739 DEFAULT_TARGET_S390_TRUE
740 DEFAULT_TARGET_SPARC_FALSE
741 DEFAULT_TARGET_SPARC_TRUE
742 DEFAULT_TARGET_POWERPC_FALSE
743 DEFAULT_TARGET_POWERPC_TRUE
744 DEFAULT_TARGET_I386_FALSE
745 DEFAULT_TARGET_I386_TRUE
746 DEFAULT_TARGET_ARM_FALSE
747 DEFAULT_TARGET_ARM_TRUE
748 DEFAULT_TARGET_AARCH64_FALSE
749 DEFAULT_TARGET_AARCH64_TRUE
786 INSTALL_STRIP_PROGRAM
840 program_transform_name
853 enable_option_checking
855 enable_dependency_tracking
861 enable_default_hash_style
871 enable_build_warnings
878 enable_maintainer_mode
880 ac_precious_vars
='build_alias
904 # Initialize some variables set by options.
906 ac_init_version
=false
907 ac_unrecognized_opts
=
909 # The variables have the same names as the options, with
910 # dashes changed to underlines.
918 program_transform_name
=s
,x
,x
,
926 # Installation directory options.
927 # These are left unexpanded so users can "make install exec_prefix=/foo"
928 # and all the variables that are supposed to be based on exec_prefix
929 # by default will actually change.
930 # Use braces instead of parens because sh, perl, etc. also accept them.
931 # (The list follows the same order as the GNU Coding Standards.)
932 bindir
='${exec_prefix}/bin'
933 sbindir
='${exec_prefix}/sbin'
934 libexecdir
='${exec_prefix}/libexec'
935 datarootdir
='${prefix}/share'
936 datadir
='${datarootdir}'
937 sysconfdir
='${prefix}/etc'
938 sharedstatedir
='${prefix}/com'
939 localstatedir
='${prefix}/var'
940 includedir
='${prefix}/include'
941 oldincludedir
='/usr/include'
942 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
943 infodir
='${datarootdir}/info'
948 libdir
='${exec_prefix}/lib'
949 localedir
='${datarootdir}/locale'
950 mandir
='${datarootdir}/man'
956 # If the previous option needs an argument, assign it.
957 if test -n "$ac_prev"; then
958 eval $ac_prev=\
$ac_option
964 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
969 # Accept the important Cygnus configure options, so we can diagnose typos.
971 case $ac_dashdash$ac_option in
975 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
977 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
980 -build |
--build |
--buil |
--bui |
--bu)
981 ac_prev
=build_alias
;;
982 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
983 build_alias
=$ac_optarg ;;
985 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
986 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
987 ac_prev
=cache_file
;;
988 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
989 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
990 cache_file
=$ac_optarg ;;
993 cache_file
=config.cache
;;
995 -datadir |
--datadir |
--datadi |
--datad)
997 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
998 datadir
=$ac_optarg ;;
1000 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1001 |
--dataroo |
--dataro |
--datar)
1002 ac_prev
=datarootdir
;;
1003 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1004 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1005 datarootdir
=$ac_optarg ;;
1007 -disable-* |
--disable-*)
1008 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1009 # Reject names that are not valid shell variable names.
1010 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1011 as_fn_error $?
"invalid feature name: $ac_useropt"
1012 ac_useropt_orig
=$ac_useropt
1013 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1014 case $ac_user_opts in
1016 "enable_
$ac_useropt"
1018 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1019 ac_unrecognized_sep
=', ';;
1021 eval enable_
$ac_useropt=no
;;
1023 -docdir |
--docdir |
--docdi |
--doc |
--do)
1025 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1026 docdir
=$ac_optarg ;;
1028 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1030 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1031 dvidir
=$ac_optarg ;;
1033 -enable-* |
--enable-*)
1034 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1035 # Reject names that are not valid shell variable names.
1036 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1037 as_fn_error $?
"invalid feature name: $ac_useropt"
1038 ac_useropt_orig
=$ac_useropt
1039 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1040 case $ac_user_opts in
1042 "enable_
$ac_useropt"
1044 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1045 ac_unrecognized_sep
=', ';;
1047 eval enable_
$ac_useropt=\
$ac_optarg ;;
1049 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1050 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1051 |
--exec |
--exe |
--ex)
1052 ac_prev
=exec_prefix
;;
1053 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1054 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1055 |
--exec=* |
--exe=* |
--ex=*)
1056 exec_prefix
=$ac_optarg ;;
1058 -gas |
--gas |
--ga |
--g)
1059 # Obsolete; use --with-gas.
1062 -help |
--help |
--hel |
--he |
-h)
1063 ac_init_help
=long
;;
1064 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1065 ac_init_help
=recursive
;;
1066 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1067 ac_init_help
=short
;;
1069 -host |
--host |
--hos |
--ho)
1070 ac_prev
=host_alias
;;
1071 -host=* |
--host=* |
--hos=* |
--ho=*)
1072 host_alias
=$ac_optarg ;;
1074 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1076 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1078 htmldir
=$ac_optarg ;;
1080 -includedir |
--includedir |
--includedi |
--included |
--include \
1081 |
--includ |
--inclu |
--incl |
--inc)
1082 ac_prev
=includedir
;;
1083 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1084 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1085 includedir
=$ac_optarg ;;
1087 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1089 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1090 infodir
=$ac_optarg ;;
1092 -libdir |
--libdir |
--libdi |
--libd)
1094 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1095 libdir
=$ac_optarg ;;
1097 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1098 |
--libexe |
--libex |
--libe)
1099 ac_prev
=libexecdir
;;
1100 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1101 |
--libexe=* |
--libex=* |
--libe=*)
1102 libexecdir
=$ac_optarg ;;
1104 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1105 ac_prev
=localedir
;;
1106 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1107 localedir
=$ac_optarg ;;
1109 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1110 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1111 ac_prev
=localstatedir
;;
1112 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1113 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1114 localstatedir
=$ac_optarg ;;
1116 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1118 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1119 mandir
=$ac_optarg ;;
1121 -nfp |
--nfp |
--nf)
1122 # Obsolete; use --without-fp.
1125 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1126 |
--no-cr |
--no-c |
-n)
1129 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1130 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1133 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1134 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1135 |
--oldin |
--oldi |
--old |
--ol |
--o)
1136 ac_prev
=oldincludedir
;;
1137 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1138 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1139 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1140 oldincludedir
=$ac_optarg ;;
1142 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1144 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1145 prefix
=$ac_optarg ;;
1147 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1148 |
--program-pre |
--program-pr |
--program-p)
1149 ac_prev
=program_prefix
;;
1150 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1151 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1152 program_prefix
=$ac_optarg ;;
1154 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1155 |
--program-suf |
--program-su |
--program-s)
1156 ac_prev
=program_suffix
;;
1157 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1158 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1159 program_suffix
=$ac_optarg ;;
1161 -program-transform-name |
--program-transform-name \
1162 |
--program-transform-nam |
--program-transform-na \
1163 |
--program-transform-n |
--program-transform- \
1164 |
--program-transform |
--program-transfor \
1165 |
--program-transfo |
--program-transf \
1166 |
--program-trans |
--program-tran \
1167 |
--progr-tra |
--program-tr |
--program-t)
1168 ac_prev
=program_transform_name
;;
1169 -program-transform-name=* |
--program-transform-name=* \
1170 |
--program-transform-nam=* |
--program-transform-na=* \
1171 |
--program-transform-n=* |
--program-transform-=* \
1172 |
--program-transform=* |
--program-transfor=* \
1173 |
--program-transfo=* |
--program-transf=* \
1174 |
--program-trans=* |
--program-tran=* \
1175 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1176 program_transform_name
=$ac_optarg ;;
1178 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1180 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1181 pdfdir
=$ac_optarg ;;
1183 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1185 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1188 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1189 |
-silent |
--silent |
--silen |
--sile |
--sil)
1192 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1194 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1196 sbindir
=$ac_optarg ;;
1198 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1199 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1200 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1202 ac_prev
=sharedstatedir
;;
1203 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1204 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1205 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1207 sharedstatedir
=$ac_optarg ;;
1209 -site |
--site |
--sit)
1211 -site=* |
--site=* |
--sit=*)
1214 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1216 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1217 srcdir
=$ac_optarg ;;
1219 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1220 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1221 ac_prev
=sysconfdir
;;
1222 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1223 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1224 sysconfdir
=$ac_optarg ;;
1226 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1227 ac_prev
=target_alias
;;
1228 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1229 target_alias
=$ac_optarg ;;
1231 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1234 -version |
--version |
--versio |
--versi |
--vers |
-V)
1235 ac_init_version
=: ;;
1238 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1239 # Reject names that are not valid shell variable names.
1240 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1241 as_fn_error $?
"invalid package name: $ac_useropt"
1242 ac_useropt_orig
=$ac_useropt
1243 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1244 case $ac_user_opts in
1248 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1249 ac_unrecognized_sep
=', ';;
1251 eval with_
$ac_useropt=\
$ac_optarg ;;
1253 -without-* |
--without-*)
1254 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1255 # Reject names that are not valid shell variable names.
1256 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1257 as_fn_error $?
"invalid package name: $ac_useropt"
1258 ac_useropt_orig
=$ac_useropt
1259 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1260 case $ac_user_opts in
1264 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1265 ac_unrecognized_sep
=', ';;
1267 eval with_
$ac_useropt=no
;;
1270 # Obsolete; use --with-x.
1273 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1274 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1275 ac_prev
=x_includes
;;
1276 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1277 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1278 x_includes
=$ac_optarg ;;
1280 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1281 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1282 ac_prev
=x_libraries
;;
1283 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1284 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1285 x_libraries
=$ac_optarg ;;
1287 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1288 Try \`$0 --help' for more information"
1292 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1293 # Reject names that are not valid shell variable names.
1294 case $ac_envvar in #(
1295 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1296 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1298 eval $ac_envvar=\
$ac_optarg
1299 export $ac_envvar ;;
1302 # FIXME: should be removed in autoconf 3.0.
1303 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1304 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1305 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1306 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1312 if test -n "$ac_prev"; then
1313 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1314 as_fn_error $?
"missing argument to $ac_option"
1317 if test -n "$ac_unrecognized_opts"; then
1318 case $enable_option_checking in
1320 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1321 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1325 # Check all directory arguments for consistency.
1326 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1327 datadir sysconfdir sharedstatedir localstatedir includedir \
1328 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1329 libdir localedir mandir
1331 eval ac_val
=\$
$ac_var
1332 # Remove trailing slashes.
1335 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1336 eval $ac_var=\
$ac_val;;
1338 # Be sure to have absolute directory names.
1340 [\\/$
]* | ?
:[\\/]* ) continue;;
1341 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1343 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1346 # There might be people who depend on the old broken behavior: `$host'
1347 # used to hold the argument of --host etc.
1348 # FIXME: To remove some day.
1351 target
=$target_alias
1353 # FIXME: To remove some day.
1354 if test "x$host_alias" != x
; then
1355 if test "x$build_alias" = x
; then
1356 cross_compiling
=maybe
1357 elif test "x$build_alias" != "x$host_alias"; then
1363 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1365 test "$silent" = yes && exec 6>/dev
/null
1368 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1369 ac_ls_di
=`ls -di .` &&
1370 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1371 as_fn_error $?
"working directory cannot be determined"
1372 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1373 as_fn_error $?
"pwd does not report name of working directory"
1376 # Find the source files, if location was not specified.
1377 if test -z "$srcdir"; then
1378 ac_srcdir_defaulted
=yes
1379 # Try the directory containing this script, then the parent directory.
1380 ac_confdir
=`$as_dirname -- "$as_myself" ||
1381 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1382 X"$as_myself" : 'X\(//\)[^/]' \| \
1383 X"$as_myself" : 'X\(//\)$' \| \
1384 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1385 $as_echo X"$as_myself" |
1386 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1404 if test ! -r "$srcdir/$ac_unique_file"; then
1408 ac_srcdir_defaulted
=no
1410 if test ! -r "$srcdir/$ac_unique_file"; then
1411 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1412 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1414 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1416 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1418 # When building in place, set srcdir=.
1419 if test "$ac_abs_confdir" = "$ac_pwd"; then
1422 # Remove unnecessary trailing slashes from srcdir.
1423 # Double slashes in file names in object file debugging info
1424 # mess up M-x gdb in Emacs.
1426 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1428 for ac_var
in $ac_precious_vars; do
1429 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1430 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1431 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1432 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1436 # Report the --help message.
1438 if test "$ac_init_help" = "long"; then
1439 # Omit some internal or obsolete options to make the list less imposing.
1440 # This message is too long to be a string in the A/UX 3.1 sh.
1442 \`configure' configures gold 0.1 to adapt to many kinds of systems.
1444 Usage: $0 [OPTION]... [VAR=VALUE]...
1446 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1447 VAR=VALUE. See below for descriptions of some of the useful variables.
1449 Defaults for the options are specified in brackets.
1452 -h, --help display this help and exit
1453 --help=short display options specific to this package
1454 --help=recursive display the short help of all the included packages
1455 -V, --version display version information and exit
1456 -q, --quiet, --silent do not print \`checking ...' messages
1457 --cache-file=FILE cache test results in FILE [disabled]
1458 -C, --config-cache alias for \`--cache-file=config.cache'
1459 -n, --no-create do not create output files
1460 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1462 Installation directories:
1463 --prefix=PREFIX install architecture-independent files in PREFIX
1464 [$ac_default_prefix]
1465 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1468 By default, \`make install' will install all the files in
1469 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1470 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1471 for instance \`--prefix=\$HOME'.
1473 For better control, use the options below.
1475 Fine tuning of the installation directories:
1476 --bindir=DIR user executables [EPREFIX/bin]
1477 --sbindir=DIR system admin executables [EPREFIX/sbin]
1478 --libexecdir=DIR program executables [EPREFIX/libexec]
1479 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1480 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1481 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1482 --libdir=DIR object code libraries [EPREFIX/lib]
1483 --includedir=DIR C header files [PREFIX/include]
1484 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1485 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1486 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1487 --infodir=DIR info documentation [DATAROOTDIR/info]
1488 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1489 --mandir=DIR man documentation [DATAROOTDIR/man]
1490 --docdir=DIR documentation root [DATAROOTDIR/doc/gold]
1491 --htmldir=DIR html documentation [DOCDIR]
1492 --dvidir=DIR dvi documentation [DOCDIR]
1493 --pdfdir=DIR pdf documentation [DOCDIR]
1494 --psdir=DIR ps documentation [DOCDIR]
1500 --program-prefix=PREFIX prepend PREFIX to installed program names
1501 --program-suffix=SUFFIX append SUFFIX to installed program names
1502 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1505 --build=BUILD configure
for building on BUILD
[guessed
]
1506 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1507 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1511 if test -n "$ac_init_help"; then
1512 case $ac_init_help in
1513 short | recursive
) echo "Configuration of gold 0.1:";;
1518 --disable-option-checking ignore unrecognized
--enable/--with options
1519 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1520 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1521 --enable-silent-rules less verbose build output
(undo
: "make V=1")
1522 --disable-silent-rules verbose build output
(undo
: "make V=0")
1523 --enable-dependency-tracking
1524 do not reject slow dependency extractors
1525 --disable-dependency-tracking
1526 speeds up one-time build
1527 --enable-gold[=ARG
] build gold
[ARG
={default
,yes,no
}]
1528 --enable-plugins Enable support
for plugins
1529 --enable-relro enable -z relro
in ELF linker by default
1530 --enable-targets alternative target configurations
1531 --enable-default-hash-style={sysv
,gnu
,both
}
1532 use this default
hash style
1533 --disable-nls do not use Native Language Support
1534 --disable-rpath do not hardcode runtime library paths
1535 --enable-werror treat compile warnings as errors
1536 --enable-build-warnings enable build-time compiler warnings
1537 --enable-threads[=ARG
] multi-threaded linking
[ARG
={auto
,yes,no
}]
1538 --enable-jansson enable jansson
[default
=no
]
1539 --enable-maintainer-mode
1540 enable make rules and dependencies not useful
(and
1541 sometimes confusing
) to the casual installer
1544 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1545 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1546 --with-sysroot=DIR search
for usr
/lib et al within DIR
1547 --with-lib-path=dir1
:dir2...
set default LIB_PATH
1548 --with-gnu-ld assume the C compiler uses GNU ld default
=no
1549 --with-libiconv-prefix[=DIR
] search
for libiconv
in DIR
/include and DIR
/lib
1550 --without-libiconv-prefix don
't search for libiconv in includedir and libdir
1551 --with-libiconv-type=TYPE type of library to search for (auto/static/shared)
1552 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1553 --without-libintl-prefix don't search
for libintl
in includedir and libdir
1554 --with-libintl-type=TYPE
type of library to search
for (auto
/static
/shared
)
1555 --with-gold-ldflags=FLAGS additional link flags
for gold
1556 --with-gold-ldadd=LIBS additional libraries
for gold
1557 --with-system-zlib use installed libz
1558 --with-zstd support zstd compressed debug sections
1561 Some influential environment variables
:
1562 CC C compiler
command
1563 CFLAGS C compiler flags
1564 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1565 nonstandard directory
<lib dir
>
1566 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1567 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1568 you have headers
in a nonstandard directory
<include dir
>
1570 CXX C
++ compiler
command
1571 CXXFLAGS C
++ compiler flags
1572 YACC The
`Yet Another Compiler Compiler' implementation to use.
1573 Defaults to the first program found out of: `bison
-y', `byacc',
1575 YFLAGS The list of arguments that will be passed by default to $YACC.
1576 This script will default YFLAGS to the empty string to avoid a
1577 default value of `-d' given by some make applications.
1578 PKG_CONFIG path to pkg-config utility
1580 directories to add to pkg-config's search path
1582 path overriding pkg-config
's built-in search path
1583 ZSTD_CFLAGS C compiler flags for ZSTD, overriding pkg-config
1584 ZSTD_LIBS linker flags for ZSTD, overriding pkg-config
1586 C compiler flags for JANSSON, overriding pkg-config
1588 linker flags for JANSSON, overriding pkg-config
1589 CXXCPP C++ preprocessor
1591 Use these variables to override the choices made by `configure' or to
help
1592 it to
find libraries and programs with nonstandard names
/locations.
1594 Report bugs to the package provider.
1599 if test "$ac_init_help" = "recursive"; then
1600 # If there are subdirs, report their specific --help.
1601 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1602 test -d "$ac_dir" ||
1603 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1608 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1610 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1611 # A ".." for each directory in $ac_dir_suffix.
1612 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1613 case $ac_top_builddir_sub in
1614 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1615 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1618 ac_abs_top_builddir
=$ac_pwd
1619 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1620 # for backward compatibility:
1621 ac_top_builddir
=$ac_top_build_prefix
1624 .
) # We are building in place.
1626 ac_top_srcdir
=$ac_top_builddir_sub
1627 ac_abs_top_srcdir
=$ac_pwd ;;
1628 [\\/]* | ?
:[\\/]* ) # Absolute name.
1629 ac_srcdir
=$srcdir$ac_dir_suffix;
1630 ac_top_srcdir
=$srcdir
1631 ac_abs_top_srcdir
=$srcdir ;;
1633 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1634 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1635 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1637 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1639 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1640 # Check for guested configure.
1641 if test -f "$ac_srcdir/configure.gnu"; then
1643 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1644 elif test -f "$ac_srcdir/configure"; then
1646 $SHELL "$ac_srcdir/configure" --help=recursive
1648 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1650 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1654 test -n "$ac_init_help" && exit $ac_status
1655 if $ac_init_version; then
1658 generated by GNU Autoconf
2.69
1660 Copyright
(C
) 2012 Free Software Foundation
, Inc.
1661 This configure
script is free software
; the Free Software Foundation
1662 gives unlimited permission to copy
, distribute and modify it.
1667 ## ------------------------ ##
1668 ## Autoconf initialization. ##
1669 ## ------------------------ ##
1671 # ac_fn_c_try_compile LINENO
1672 # --------------------------
1673 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1674 ac_fn_c_try_compile
()
1676 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1677 rm -f conftest.
$ac_objext
1678 if { { ac_try
="$ac_compile"
1680 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1681 *) ac_try_echo=$ac_try;;
1683 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1684 $as_echo "$ac_try_echo"; } >&5
1685 (eval "$ac_compile") 2>conftest.err
1687 if test -s conftest.err; then
1688 grep -v '^ *+' conftest.err >conftest.er1
1689 cat conftest.er1 >&5
1690 mv -f conftest.er1 conftest.err
1692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1693 test $ac_status = 0; } && {
1694 test -z "$ac_c_werror_flag" ||
1695 test ! -s conftest.err
1696 } && test -s conftest.$ac_objext; then :
1699 $as_echo "$as_me: failed program was:" >&5
1700 sed 's/^/| /' conftest.$ac_ext >&5
1704 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1705 as_fn_set_status $ac_retval
1707 } # ac_fn_c_try_compile
1709 # ac_fn_c_try_cpp LINENO
1710 # ----------------------
1711 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1714 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1715 if { { ac_try="$ac_cpp conftest.$ac_ext"
1717 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1718 *) ac_try_echo
=$ac_try;;
1720 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1721 $as_echo "$ac_try_echo"; } >&5
1722 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1724 if test -s conftest.err
; then
1725 grep -v '^ *+' conftest.err
>conftest.er1
1726 cat conftest.er1
>&5
1727 mv -f conftest.er1 conftest.err
1729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1730 test $ac_status = 0; } > conftest.i
&& {
1731 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1732 test ! -s conftest.err
1736 $as_echo "$as_me: failed program was:" >&5
1737 sed 's/^/| /' conftest.
$ac_ext >&5
1741 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1742 as_fn_set_status
$ac_retval
1746 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1747 # -------------------------------------------------------
1748 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1749 # the include files in INCLUDES and setting the cache variable VAR
1751 ac_fn_c_check_header_mongrel
()
1753 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1754 if eval \
${$3+:} false
; then :
1755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1756 $as_echo_n "checking for $2... " >&6; }
1757 if eval \
${$3+:} false
; then :
1758 $as_echo_n "(cached) " >&6
1761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1762 $as_echo "$ac_res" >&6; }
1764 # Is the header compilable?
1765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1766 $as_echo_n "checking $2 usability... " >&6; }
1767 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1768 /* end confdefs.h. */
1772 if ac_fn_c_try_compile
"$LINENO"; then :
1773 ac_header_compiler
=yes
1775 ac_header_compiler
=no
1777 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1779 $as_echo "$ac_header_compiler" >&6; }
1781 # Is the header present?
1782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1783 $as_echo_n "checking $2 presence... " >&6; }
1784 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1785 /* end confdefs.h. */
1788 if ac_fn_c_try_cpp
"$LINENO"; then :
1789 ac_header_preproc
=yes
1791 ac_header_preproc
=no
1793 rm -f conftest.err conftest.i conftest.
$ac_ext
1794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1795 $as_echo "$ac_header_preproc" >&6; }
1797 # So? What about this header?
1798 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1800 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1801 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1802 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1803 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1806 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1807 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1808 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1809 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1810 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1811 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1812 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1813 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1814 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1815 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1819 $as_echo_n "checking for $2... " >&6; }
1820 if eval \
${$3+:} false
; then :
1821 $as_echo_n "(cached) " >&6
1823 eval "$3=\$ac_header_compiler"
1826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1827 $as_echo "$ac_res" >&6; }
1829 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1831 } # ac_fn_c_check_header_mongrel
1833 # ac_fn_c_try_run LINENO
1834 # ----------------------
1835 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1836 # that executables *can* be run.
1839 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1840 if { { ac_try
="$ac_link"
1842 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1843 *) ac_try_echo=$ac_try;;
1845 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1846 $as_echo "$ac_try_echo"; } >&5
1847 (eval "$ac_link") 2>&5
1849 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1850 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1851 { { case "(($ac_try" in
1852 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1853 *) ac_try_echo
=$ac_try;;
1855 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1856 $as_echo "$ac_try_echo"; } >&5
1857 (eval "$ac_try") 2>&5
1859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1860 test $ac_status = 0; }; }; then :
1863 $as_echo "$as_me: program exited with status $ac_status" >&5
1864 $as_echo "$as_me: failed program was:" >&5
1865 sed 's/^/| /' conftest.
$ac_ext >&5
1867 ac_retval
=$ac_status
1869 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1870 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1871 as_fn_set_status
$ac_retval
1875 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1876 # -------------------------------------------------------
1877 # Tests whether HEADER exists and can be compiled using the include files in
1878 # INCLUDES, setting the cache variable VAR accordingly.
1879 ac_fn_c_check_header_compile
()
1881 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1883 $as_echo_n "checking for $2... " >&6; }
1884 if eval \
${$3+:} false
; then :
1885 $as_echo_n "(cached) " >&6
1887 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1888 /* end confdefs.h. */
1892 if ac_fn_c_try_compile
"$LINENO"; then :
1897 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1901 $as_echo "$ac_res" >&6; }
1902 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1904 } # ac_fn_c_check_header_compile
1906 # ac_fn_c_try_link LINENO
1907 # -----------------------
1908 # Try to link conftest.$ac_ext, and return whether this succeeded.
1911 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1912 rm -f conftest.
$ac_objext conftest
$ac_exeext
1913 if { { ac_try
="$ac_link"
1915 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1916 *) ac_try_echo=$ac_try;;
1918 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1919 $as_echo "$ac_try_echo"; } >&5
1920 (eval "$ac_link") 2>conftest.err
1922 if test -s conftest.err; then
1923 grep -v '^ *+' conftest.err >conftest.er1
1924 cat conftest.er1 >&5
1925 mv -f conftest.er1 conftest.err
1927 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1928 test $ac_status = 0; } && {
1929 test -z "$ac_c_werror_flag" ||
1930 test ! -s conftest.err
1931 } && test -s conftest$ac_exeext && {
1932 test "$cross_compiling" = yes ||
1933 test -x conftest$ac_exeext
1937 $as_echo "$as_me: failed program was:" >&5
1938 sed 's/^/| /' conftest.$ac_ext >&5
1942 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1943 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1944 # interfere with the next link command; also delete a directory that is
1945 # left behind by Apple's compiler. We do this before executing the actions.
1946 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1947 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1948 as_fn_set_status $ac_retval
1950 } # ac_fn_c_try_link
1952 # ac_fn_cxx_try_compile LINENO
1953 # ----------------------------
1954 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1955 ac_fn_cxx_try_compile ()
1957 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1958 rm -f conftest.$ac_objext
1959 if { { ac_try="$ac_compile"
1961 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1962 *) ac_try_echo
=$ac_try;;
1964 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1965 $as_echo "$ac_try_echo"; } >&5
1966 (eval "$ac_compile") 2>conftest.err
1968 if test -s conftest.err
; then
1969 grep -v '^ *+' conftest.err
>conftest.er1
1970 cat conftest.er1
>&5
1971 mv -f conftest.er1 conftest.err
1973 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1974 test $ac_status = 0; } && {
1975 test -z "$ac_cxx_werror_flag" ||
1976 test ! -s conftest.err
1977 } && test -s conftest.
$ac_objext; then :
1980 $as_echo "$as_me: failed program was:" >&5
1981 sed 's/^/| /' conftest.
$ac_ext >&5
1985 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1986 as_fn_set_status
$ac_retval
1988 } # ac_fn_cxx_try_compile
1990 # ac_fn_c_check_func LINENO FUNC VAR
1991 # ----------------------------------
1992 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1993 ac_fn_c_check_func
()
1995 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1997 $as_echo_n "checking for $2... " >&6; }
1998 if eval \
${$3+:} false
; then :
1999 $as_echo_n "(cached) " >&6
2001 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2002 /* end confdefs.h. */
2003 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2004 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2005 #define $2 innocuous_$2
2007 /* System header to define __stub macros and hopefully few prototypes,
2008 which can conflict with char $2 (); below.
2009 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2010 <limits.h> exists even on freestanding compilers. */
2013 # include <limits.h>
2015 # include <assert.h>
2020 /* Override any GCC internal prototype to avoid an error.
2021 Use char because int might match the return type of a GCC
2022 builtin and then its argument prototype would still apply. */
2027 /* The GNU C library defines this for functions which it implements
2028 to always fail with ENOSYS. Some functions are actually named
2029 something starting with __ and the normal name is an alias. */
2030 #if defined __stub_$2 || defined __stub___$2
2042 if ac_fn_c_try_link
"$LINENO"; then :
2047 rm -f core conftest.err conftest.
$ac_objext \
2048 conftest
$ac_exeext conftest.
$ac_ext
2051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2052 $as_echo "$ac_res" >&6; }
2053 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2055 } # ac_fn_c_check_func
2057 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2058 # ---------------------------------------------
2059 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2061 ac_fn_c_check_decl
()
2063 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2064 as_decl_name
=`echo $2|sed 's/ *(.*//'`
2065 as_decl_use
=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2067 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2068 if eval \
${$3+:} false
; then :
2069 $as_echo_n "(cached) " >&6
2071 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2072 /* end confdefs.h. */
2077 #ifndef $as_decl_name
2079 (void) $as_decl_use;
2081 (void) $as_decl_name;
2089 if ac_fn_c_try_compile
"$LINENO"; then :
2094 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2098 $as_echo "$ac_res" >&6; }
2099 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2101 } # ac_fn_c_check_decl
2103 # ac_fn_cxx_try_cpp LINENO
2104 # ------------------------
2105 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2106 ac_fn_cxx_try_cpp
()
2108 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2109 if { { ac_try
="$ac_cpp conftest.$ac_ext"
2111 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2112 *) ac_try_echo=$ac_try;;
2114 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2115 $as_echo "$ac_try_echo"; } >&5
2116 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2118 if test -s conftest.err; then
2119 grep -v '^ *+' conftest.err >conftest.er1
2120 cat conftest.er1 >&5
2121 mv -f conftest.er1 conftest.err
2123 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2124 test $ac_status = 0; } > conftest.i && {
2125 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2126 test ! -s conftest.err
2130 $as_echo "$as_me: failed program was:" >&5
2131 sed 's/^/| /' conftest.$ac_ext >&5
2135 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2136 as_fn_set_status $ac_retval
2138 } # ac_fn_cxx_try_cpp
2140 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2141 # ---------------------------------------------------------
2142 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2143 # the include files in INCLUDES and setting the cache variable VAR
2145 ac_fn_cxx_check_header_mongrel ()
2147 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2148 if eval \${$3+:} false; then :
2149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2150 $as_echo_n "checking for $2... " >&6; }
2151 if eval \${$3+:} false; then :
2152 $as_echo_n "(cached) " >&6
2155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2156 $as_echo "$ac_res" >&6; }
2158 # Is the header compilable?
2159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2160 $as_echo_n "checking $2 usability... " >&6; }
2161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2162 /* end confdefs.h. */
2166 if ac_fn_cxx_try_compile "$LINENO"; then :
2167 ac_header_compiler=yes
2169 ac_header_compiler=no
2171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2173 $as_echo "$ac_header_compiler" >&6; }
2175 # Is the header present?
2176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2177 $as_echo_n "checking $2 presence... " >&6; }
2178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2179 /* end confdefs.h. */
2182 if ac_fn_cxx_try_cpp "$LINENO"; then :
2183 ac_header_preproc=yes
2185 ac_header_preproc=no
2187 rm -f conftest.err conftest.i conftest.$ac_ext
2188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2189 $as_echo "$ac_header_preproc" >&6; }
2191 # So? What about this header?
2192 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2194 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2195 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2196 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2197 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2200 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2201 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2202 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2203 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2204 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2205 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2206 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2207 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2208 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2209 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2213 $as_echo_n "checking for $2... " >&6; }
2214 if eval \${$3+:} false; then :
2215 $as_echo_n "(cached) " >&6
2217 eval "$3=\$ac_header_compiler"
2220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2221 $as_echo "$ac_res" >&6; }
2223 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2225 } # ac_fn_cxx_check_header_mongrel
2227 # ac_fn_cxx_check_decl LINENO SYMBOL VAR INCLUDES
2228 # -----------------------------------------------
2229 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2231 ac_fn_cxx_check_decl ()
2233 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2234 as_decl_name=`echo $2|
sed 's/ *(.*//'`
2235 as_decl_use=`echo $2|
sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2237 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2238 if eval \${$3+:} false; then :
2239 $as_echo_n "(cached) " >&6
2241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2242 /* end confdefs.h. */
2247 #ifndef $as_decl_name
2249 (void) $as_decl_use;
2251 (void) $as_decl_name;
2259 if ac_fn_cxx_try_compile "$LINENO"; then :
2264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2268 $as_echo "$ac_res" >&6; }
2269 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2271 } # ac_fn_cxx_check_decl
2273 # ac_fn_cxx_try_link LINENO
2274 # -------------------------
2275 # Try to link conftest.$ac_ext, and return whether this succeeded.
2276 ac_fn_cxx_try_link ()
2278 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2279 rm -f conftest.$ac_objext conftest$ac_exeext
2280 if { { ac_try="$ac_link"
2282 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2283 *) ac_try_echo
=$ac_try;;
2285 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2286 $as_echo "$ac_try_echo"; } >&5
2287 (eval "$ac_link") 2>conftest.err
2289 if test -s conftest.err
; then
2290 grep -v '^ *+' conftest.err
>conftest.er1
2291 cat conftest.er1
>&5
2292 mv -f conftest.er1 conftest.err
2294 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2295 test $ac_status = 0; } && {
2296 test -z "$ac_cxx_werror_flag" ||
2297 test ! -s conftest.err
2298 } && test -s conftest
$ac_exeext && {
2299 test "$cross_compiling" = yes ||
2300 test -x conftest
$ac_exeext
2304 $as_echo "$as_me: failed program was:" >&5
2305 sed 's/^/| /' conftest.
$ac_ext >&5
2309 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2310 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2311 # interfere with the next link command; also delete a directory that is
2312 # left behind by Apple's compiler. We do this before executing the actions.
2313 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2314 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2315 as_fn_set_status
$ac_retval
2317 } # ac_fn_cxx_try_link
2319 # ac_fn_cxx_check_func LINENO FUNC VAR
2320 # ------------------------------------
2321 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2322 ac_fn_cxx_check_func
()
2324 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2326 $as_echo_n "checking for $2... " >&6; }
2327 if eval \
${$3+:} false
; then :
2328 $as_echo_n "(cached) " >&6
2330 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2331 /* end confdefs.h. */
2332 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2333 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2334 #define $2 innocuous_$2
2336 /* System header to define __stub macros and hopefully few prototypes,
2337 which can conflict with char $2 (); below.
2338 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2339 <limits.h> exists even on freestanding compilers. */
2342 # include <limits.h>
2344 # include <assert.h>
2349 /* Override any GCC internal prototype to avoid an error.
2350 Use char because int might match the return type of a GCC
2351 builtin and then its argument prototype would still apply. */
2356 /* The GNU C library defines this for functions which it implements
2357 to always fail with ENOSYS. Some functions are actually named
2358 something starting with __ and the normal name is an alias. */
2359 #if defined __stub_$2 || defined __stub___$2
2371 if ac_fn_cxx_try_link
"$LINENO"; then :
2376 rm -f core conftest.err conftest.
$ac_objext \
2377 conftest
$ac_exeext conftest.
$ac_ext
2380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2381 $as_echo "$ac_res" >&6; }
2382 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2384 } # ac_fn_cxx_check_func
2385 cat >config.log
<<_ACEOF
2386 This file contains any messages produced by compilers while
2387 running configure, to aid debugging if configure makes a mistake.
2389 It was created by gold $as_me 0.1, which was
2390 generated by GNU Autoconf 2.69. Invocation command line was
2402 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2403 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2404 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2405 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2406 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2408 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2409 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2411 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2412 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2413 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2414 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2415 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2416 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2417 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2421 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2425 test -z "$as_dir" && as_dir
=.
2426 $as_echo "PATH: $as_dir"
2442 # Keep a trace of the command line.
2443 # Strip out --no-create and --no-recursion so they do not pile up.
2444 # Strip out --silent because we don't want to record it for future runs.
2445 # Also quote any args containing shell meta-characters.
2446 # Make two passes to allow for proper duplicate-argument suppression.
2450 ac_must_keep_next
=false
2456 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2457 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2458 |
-silent |
--silent |
--silen |
--sile |
--sil)
2461 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2464 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2466 as_fn_append ac_configure_args1
" '$ac_arg'"
2467 if test $ac_must_keep_next = true
; then
2468 ac_must_keep_next
=false
# Got value, back to normal.
2471 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2472 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2473 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2474 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2475 case "$ac_configure_args0 " in
2476 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2479 -* ) ac_must_keep_next
=true
;;
2482 as_fn_append ac_configure_args
" '$ac_arg'"
2487 { ac_configure_args0
=; unset ac_configure_args0
;}
2488 { ac_configure_args1
=; unset ac_configure_args1
;}
2490 # When interrupted or exit'd, cleanup temporary files, and complete
2491 # config.log. We remove comments because anyway the quotes in there
2492 # would cause problems or look ugly.
2493 # WARNING: Use '\'' to represent an apostrophe within the trap.
2494 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2495 trap 'exit_status=$?
2496 # Save into config.log some information that might help in debugging.
2500 $as_echo "## ---------------- ##
2501 ## Cache variables. ##
2502 ## ---------------- ##"
2504 # The following way of writing the cache mishandles newlines in values,
2506 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2507 eval ac_val=\$$ac_var
2511 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2512 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2515 _ | IFS | as_nl) ;; #(
2516 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2517 *) { eval $ac_var=; unset $ac_var;} ;;
2522 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2523 *${as_nl}ac_space=\ *)
2525 "s/'\''/'\''\\\\'\'''\''/g;
2526 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2529 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2536 $as_echo "## ----------------- ##
2537 ## Output variables. ##
2538 ## ----------------- ##"
2540 for ac_var in $ac_subst_vars
2542 eval ac_val=\$$ac_var
2544 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2546 $as_echo "$ac_var='\''$ac_val'\''"
2550 if test -n "$ac_subst_files"; then
2551 $as_echo "## ------------------- ##
2552 ## File substitutions. ##
2553 ## ------------------- ##"
2555 for ac_var
in $ac_subst_files
2557 eval ac_val
=\$
$ac_var
2559 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2561 $as_echo "$ac_var='\''$ac_val'\''"
2566 if test -s confdefs.h; then
2567 $as_echo "## ----------- ##
2574 test "$ac_signal" != 0 &&
2575 $as_echo "$as_me: caught signal $ac_signal"
2576 $as_echo "$as_me: exit $exit_status"
2578 rm -f core *.core core.conftest.* &&
2579 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2582 for ac_signal
in 1 2 13 15; do
2583 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2587 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2588 rm -f -r conftest
* confdefs.h
2590 $as_echo "/* confdefs.h */" > confdefs.h
2592 # Predefined preprocessor variables.
2594 cat >>confdefs.h
<<_ACEOF
2595 #define PACKAGE_NAME "$PACKAGE_NAME"
2598 cat >>confdefs.h
<<_ACEOF
2599 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2602 cat >>confdefs.h
<<_ACEOF
2603 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2606 cat >>confdefs.h
<<_ACEOF
2607 #define PACKAGE_STRING "$PACKAGE_STRING"
2610 cat >>confdefs.h
<<_ACEOF
2611 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2614 cat >>confdefs.h
<<_ACEOF
2615 #define PACKAGE_URL "$PACKAGE_URL"
2619 # Let the site file select an alternate cache file if it wants to.
2620 # Prefer an explicitly selected file to automatically selected ones.
2623 if test -n "$CONFIG_SITE"; then
2624 # We do not want a PATH search for config.site.
2625 case $CONFIG_SITE in #((
2626 -*) ac_site_file1
=.
/$CONFIG_SITE;;
2627 */*) ac_site_file1
=$CONFIG_SITE;;
2628 *) ac_site_file1
=.
/$CONFIG_SITE;;
2630 elif test "x$prefix" != xNONE
; then
2631 ac_site_file1
=$prefix/share
/config.site
2632 ac_site_file2
=$prefix/etc
/config.site
2634 ac_site_file1
=$ac_default_prefix/share
/config.site
2635 ac_site_file2
=$ac_default_prefix/etc
/config.site
2637 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2639 test "x$ac_site_file" = xNONE
&& continue
2640 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2642 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2643 sed 's/^/| /' "$ac_site_file" >&5
2645 ||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2646 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2647 as_fn_error $?
"failed to load site script $ac_site_file
2648 See \`config.log' for more details" "$LINENO" 5; }
2652 if test -r "$cache_file"; then
2653 # Some versions of bash will fail to source /dev/null (special files
2654 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2655 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
2656 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2657 $as_echo "$as_me: loading cache $cache_file" >&6;}
2659 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2660 *) .
"./$cache_file";;
2664 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2665 $as_echo "$as_me: creating cache $cache_file" >&6;}
2669 gt_needs
="$gt_needs "
2670 # Check that the precious variables saved in the cache have kept the same
2672 ac_cache_corrupted
=false
2673 for ac_var
in $ac_precious_vars; do
2674 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2675 eval ac_new_set
=\
$ac_env_${ac_var}_set
2676 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2677 eval ac_new_val
=\
$ac_env_${ac_var}_value
2678 case $ac_old_set,$ac_new_set in
2680 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2681 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2682 ac_cache_corrupted
=: ;;
2684 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2685 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2686 ac_cache_corrupted
=: ;;
2689 if test "x$ac_old_val" != "x$ac_new_val"; then
2690 # differences in whitespace do not lead to failure.
2691 ac_old_val_w
=`echo x $ac_old_val`
2692 ac_new_val_w
=`echo x $ac_new_val`
2693 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2694 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2695 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2696 ac_cache_corrupted
=:
2698 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2699 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2700 eval $ac_var=\
$ac_old_val
2702 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2703 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2704 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2705 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2708 # Pass precious variables to config.status.
2709 if test "$ac_new_set" = set; then
2711 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2712 *) ac_arg
=$ac_var=$ac_new_val ;;
2714 case " $ac_configure_args " in
2715 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2716 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2720 if $ac_cache_corrupted; then
2721 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2722 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2723 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2724 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2725 as_fn_error $?
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2727 ## -------------------- ##
2728 ## Main body of script. ##
2729 ## -------------------- ##
2732 ac_cpp
='$CPP $CPPFLAGS'
2733 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2734 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2735 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2744 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2745 if test -f "$ac_dir/install-sh"; then
2747 ac_install_sh
="$ac_aux_dir/install-sh -c"
2749 elif test -f "$ac_dir/install.sh"; then
2751 ac_install_sh
="$ac_aux_dir/install.sh -c"
2753 elif test -f "$ac_dir/shtool"; then
2755 ac_install_sh
="$ac_aux_dir/shtool install -c"
2759 if test -z "$ac_aux_dir"; then
2760 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2763 # These three variables are undocumented and unsupported,
2764 # and are intended to be withdrawn in a future Autoconf release.
2765 # They can cause serious problems if a builder's source tree is in a directory
2766 # whose full name contains unusual characters.
2767 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2768 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2769 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2772 # Make sure we can run config.sub.
2773 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2774 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2777 $as_echo_n "checking build system type... " >&6; }
2778 if ${ac_cv_build+:} false
; then :
2779 $as_echo_n "(cached) " >&6
2781 ac_build_alias
=$build_alias
2782 test "x$ac_build_alias" = x
&&
2783 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2784 test "x$ac_build_alias" = x
&&
2785 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
2786 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2787 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2791 $as_echo "$ac_cv_build" >&6; }
2792 case $ac_cv_build in
2794 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
2797 ac_save_IFS
=$IFS; IFS
='-'
2803 # Remember, the first character of IFS is used to create $*,
2804 # except with old shells:
2807 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2811 $as_echo_n "checking host system type... " >&6; }
2812 if ${ac_cv_host+:} false
; then :
2813 $as_echo_n "(cached) " >&6
2815 if test "x$host_alias" = x
; then
2816 ac_cv_host
=$ac_cv_build
2818 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2819 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2824 $as_echo "$ac_cv_host" >&6; }
2827 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
2830 ac_save_IFS
=$IFS; IFS
='-'
2836 # Remember, the first character of IFS is used to create $*,
2837 # except with old shells:
2840 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2844 $as_echo_n "checking target system type... " >&6; }
2845 if ${ac_cv_target+:} false
; then :
2846 $as_echo_n "(cached) " >&6
2848 if test "x$target_alias" = x
; then
2849 ac_cv_target
=$ac_cv_host
2851 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2852 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2857 $as_echo "$ac_cv_target" >&6; }
2858 case $ac_cv_target in
2860 *) as_fn_error $?
"invalid value of canonical target" "$LINENO" 5;;
2862 target
=$ac_cv_target
2863 ac_save_IFS
=$IFS; IFS
='-'
2869 # Remember, the first character of IFS is used to create $*,
2870 # except with old shells:
2873 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
2876 # The aliases save the names the user supplied, while $host etc.
2877 # will get canonicalized.
2878 test -n "$target_alias" &&
2879 test "$program_prefix$program_suffix$program_transform_name" = \
2881 program_prefix
=${target_alias}-
2883 am__api_version
='1.15'
2885 # Find a good install program. We prefer a C program (faster),
2886 # so one script is as good as another. But avoid the broken or
2887 # incompatible versions:
2888 # SysV /etc/install, /usr/sbin/install
2889 # SunOS /usr/etc/install
2890 # IRIX /sbin/install
2892 # AmigaOS /C/install, which installs bootblocks on floppy discs
2893 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2894 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2895 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2896 # OS/2's system install, which has a completely different semantic
2897 # ./install, which can be erroneously created by make from ./install.sh.
2898 # Reject install programs that cannot install multiple files.
2899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2900 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2901 if test -z "$INSTALL"; then
2902 if ${ac_cv_path_install+:} false
; then :
2903 $as_echo_n "(cached) " >&6
2905 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2909 test -z "$as_dir" && as_dir
=.
2910 # Account for people who put trailing slashes in PATH elements.
2911 case $as_dir/ in #((
2912 .
/ | .
// |
/[cC
]/* | \
2913 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
2914 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
2917 # OSF1 and SCO ODT 3.0 have their own names for install.
2918 # Don't use installbsd from OSF since it installs stuff as root
2920 for ac_prog
in ginstall scoinst
install; do
2921 for ac_exec_ext
in '' $ac_executable_extensions; do
2922 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
2923 if test $ac_prog = install &&
2924 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2925 # AIX install. It has an incompatible calling convention.
2927 elif test $ac_prog = install &&
2928 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2929 # program-specific install script used by HP pwplus--don't use.
2932 rm -rf conftest.one conftest.two conftest.dir
2933 echo one
> conftest.one
2934 echo two
> conftest.two
2936 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
2937 test -s conftest.one
&& test -s conftest.two
&&
2938 test -s conftest.dir
/conftest.one
&&
2939 test -s conftest.dir
/conftest.two
2941 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
2954 rm -rf conftest.one conftest.two conftest.dir
2957 if test "${ac_cv_path_install+set}" = set; then
2958 INSTALL
=$ac_cv_path_install
2960 # As a last resort, use the slow shell script. Don't cache a
2961 # value for INSTALL within a source directory, because that will
2962 # break other packages using the cache if that directory is
2963 # removed, or if the value is a relative name.
2964 INSTALL
=$ac_install_sh
2967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2968 $as_echo "$INSTALL" >&6; }
2970 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2971 # It thinks the first close brace ends the variable substitution.
2972 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2974 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
2976 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2979 $as_echo_n "checking whether build environment is sane... " >&6; }
2980 # Reject unsafe characters in $srcdir or the absolute working directory
2981 # name. Accept space and tab only in the latter.
2985 *[\\\"\
#\$\&\'\`$am_lf]*)
2986 as_fn_error $?
"unsafe absolute working directory name" "$LINENO" 5;;
2989 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
2990 as_fn_error $?
"unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2993 # Do 'set' in a subshell so we don't clobber the current shell's
2994 # arguments. Must try -L first in case configure is actually a
2995 # symlink; some systems play weird games with the mod time of symlinks
2996 # (eg FreeBSD returns the mod time of the symlink's containing
3000 for am_try
in 1 2; do
3001 echo "timestamp, slept: $am_has_slept" > conftest.
file
3002 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3003 if test "$*" = "X"; then
3005 set X
`ls -t "$srcdir/configure" conftest.file`
3007 if test "$*" != "X $srcdir/configure conftest.file" \
3008 && test "$*" != "X conftest.file $srcdir/configure"; then
3010 # If neither matched, then we have a broken ls. This can happen
3011 # if, for instance, CONFIG_SHELL is bash and it inherits a
3012 # broken ls alias from the environment. This has actually
3013 # happened. Such a system could not be considered "sane".
3014 as_fn_error $?
"ls -t appears to fail. Make sure there is not a broken
3015 alias in your environment" "$LINENO" 5
3017 if test "$2" = conftest.
file ||
test $am_try -eq 2; then
3024 test "$2" = conftest.
file
3030 as_fn_error $?
"newly created file is older than distributed files!
3031 Check your system clock" "$LINENO" 5
3033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3034 $as_echo "yes" >&6; }
3035 # If we didn't sleep, we still need to ensure time stamps of config.status and
3036 # generated files are strictly newer.
3038 if grep 'slept: no' conftest.
file >/dev
/null
2>&1; then
3045 test "$program_prefix" != NONE
&&
3046 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
3047 # Use a double $ so make ignores it.
3048 test "$program_suffix" != NONE
&&
3049 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
3050 # Double any \ or $.
3051 # By default was `s,x,x', remove it if useless.
3052 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
3053 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
3055 # Expand $ac_aux_dir to an absolute path.
3056 am_aux_dir
=`cd "$ac_aux_dir" && pwd`
3058 if test x
"${MISSING+set}" != xset
; then
3061 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
3063 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
3066 # Use eval to expand $SHELL
3067 if eval "$MISSING --is-lightweight"; then
3068 am_missing_run
="$MISSING "
3071 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3072 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3075 if test x
"${install_sh+set}" != xset
; then
3078 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
3080 install_sh
="\${SHELL} $am_aux_dir/install-sh"
3084 # Installed binaries are usually stripped using 'strip' when the user
3085 # run "make install-strip". However 'strip' might not be the right
3086 # tool to use in cross-compilation environments, therefore Automake
3087 # will honor the 'STRIP' environment variable to overrule this program.
3088 if test "$cross_compiling" != no
; then
3089 if test -n "$ac_tool_prefix"; then
3090 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3091 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
3092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3093 $as_echo_n "checking for $ac_word... " >&6; }
3094 if ${ac_cv_prog_STRIP+:} false
; then :
3095 $as_echo_n "(cached) " >&6
3097 if test -n "$STRIP"; then
3098 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
3100 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3104 test -z "$as_dir" && as_dir
=.
3105 for ac_exec_ext
in '' $ac_executable_extensions; do
3106 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3107 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
3108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3117 STRIP
=$ac_cv_prog_STRIP
3118 if test -n "$STRIP"; then
3119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3120 $as_echo "$STRIP" >&6; }
3122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3123 $as_echo "no" >&6; }
3128 if test -z "$ac_cv_prog_STRIP"; then
3130 # Extract the first word of "strip", so it can be a program name with args.
3131 set dummy strip
; ac_word
=$2
3132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3133 $as_echo_n "checking for $ac_word... " >&6; }
3134 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
3135 $as_echo_n "(cached) " >&6
3137 if test -n "$ac_ct_STRIP"; then
3138 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
3140 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3144 test -z "$as_dir" && as_dir
=.
3145 for ac_exec_ext
in '' $ac_executable_extensions; do
3146 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3147 ac_cv_prog_ac_ct_STRIP
="strip"
3148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3157 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
3158 if test -n "$ac_ct_STRIP"; then
3159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3160 $as_echo "$ac_ct_STRIP" >&6; }
3162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3163 $as_echo "no" >&6; }
3166 if test "x$ac_ct_STRIP" = x
; then
3169 case $cross_compiling:$ac_tool_warned in
3171 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3172 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3173 ac_tool_warned
=yes ;;
3178 STRIP
="$ac_cv_prog_STRIP"
3182 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
3184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3185 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3186 if test -z "$MKDIR_P"; then
3187 if ${ac_cv_path_mkdir+:} false
; then :
3188 $as_echo_n "(cached) " >&6
3190 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3191 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
3194 test -z "$as_dir" && as_dir
=.
3195 for ac_prog
in mkdir gmkdir
; do
3196 for ac_exec_ext
in '' $ac_executable_extensions; do
3197 as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext" ||
continue
3198 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3199 'mkdir (GNU coreutils) '* | \
3200 'mkdir (coreutils) '* | \
3201 'mkdir (fileutils) '4.1*)
3202 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
3212 test -d .
/--version && rmdir .
/--version
3213 if test "${ac_cv_path_mkdir+set}" = set; then
3214 MKDIR_P
="$ac_cv_path_mkdir -p"
3216 # As a last resort, use the slow shell script. Don't cache a
3217 # value for MKDIR_P within a source directory, because that will
3218 # break other packages using the cache if that directory is
3219 # removed, or if the value is a relative name.
3220 MKDIR_P
="$ac_install_sh -d"
3223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3224 $as_echo "$MKDIR_P" >&6; }
3226 for ac_prog
in gawk mawk nawk
awk
3228 # Extract the first word of "$ac_prog", so it can be a program name with args.
3229 set dummy
$ac_prog; ac_word
=$2
3230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3231 $as_echo_n "checking for $ac_word... " >&6; }
3232 if ${ac_cv_prog_AWK+:} false
; then :
3233 $as_echo_n "(cached) " >&6
3235 if test -n "$AWK"; then
3236 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
3238 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3242 test -z "$as_dir" && as_dir
=.
3243 for ac_exec_ext
in '' $ac_executable_extensions; do
3244 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3245 ac_cv_prog_AWK
="$ac_prog"
3246 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3256 if test -n "$AWK"; then
3257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3258 $as_echo "$AWK" >&6; }
3260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3261 $as_echo "no" >&6; }
3265 test -n "$AWK" && break
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3269 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3271 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3272 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
3273 $as_echo_n "(cached) " >&6
3275 cat >conftest.
make <<\_ACEOF
3278 @
echo '@@@%%%=$(MAKE)=@@@%%%'
3280 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3281 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3283 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
3285 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
3289 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
3290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3291 $as_echo "yes" >&6; }
3294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3295 $as_echo "no" >&6; }
3296 SET_MAKE
="MAKE=${MAKE-make}"
3299 rm -rf .tst
2>/dev
/null
3300 mkdir .tst
2>/dev
/null
3301 if test -d .tst
; then
3306 rmdir .tst
2>/dev
/null
3308 # Check whether --enable-silent-rules was given.
3309 if test "${enable_silent_rules+set}" = set; then :
3310 enableval
=$enable_silent_rules;
3313 case $enable_silent_rules in # (((
3314 yes) AM_DEFAULT_VERBOSITY
=0;;
3315 no
) AM_DEFAULT_VERBOSITY
=1;;
3316 *) AM_DEFAULT_VERBOSITY
=1;;
3318 am_make
=${MAKE-make}
3319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3320 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3321 if ${am_cv_make_support_nested_variables+:} false
; then :
3322 $as_echo_n "(cached) " >&6
3324 if $as_echo 'TRUE=$(BAR$(V))
3330 .PHONY: am__doit' |
$am_make -f - >/dev
/null
2>&1; then
3331 am_cv_make_support_nested_variables
=yes
3333 am_cv_make_support_nested_variables
=no
3336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3337 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3338 if test $am_cv_make_support_nested_variables = yes; then
3340 AM_DEFAULT_V
='$(AM_DEFAULT_VERBOSITY)'
3342 AM_V
=$AM_DEFAULT_VERBOSITY
3343 AM_DEFAULT_V
=$AM_DEFAULT_VERBOSITY
3347 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3348 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3349 # is not polluted with repeated "-I."
3350 am__isrc
=' -I$(srcdir)'
3351 # test to see if srcdir already configured
3352 if test -f $srcdir/config.status
; then
3353 as_fn_error $?
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3357 # test whether we have cygpath
3358 if test -z "$CYGPATH_W"; then
3359 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
3360 CYGPATH_W
='cygpath -w'
3367 # Define the identity of the package.
3372 cat >>confdefs.h
<<_ACEOF
3373 #define PACKAGE "$PACKAGE"
3377 cat >>confdefs.h
<<_ACEOF
3378 #define VERSION "$VERSION"
3381 # Some tools Automake needs.
3383 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3386 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
3389 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3392 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
3395 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
3397 # For better backward compatibility. To be removed once Automake 1.9.x
3398 # dies out for good. For more background, see:
3399 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3400 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3401 mkdir_p
='$(MKDIR_P)'
3403 # We need awk for the "check" target (and possibly the TAP driver). The
3404 # system "awk" is bad on some platforms.
3405 # Always define AMTAR for backward compatibility. Yes, it's still used
3406 # in the wild :-( We should find a proper way to deprecate it ...
3410 # We'll loop over all known methods to create a tar archive until one works.
3411 _am_tools
='gnutar pax cpio none'
3413 am__tar
='$${TAR-tar} chof - "$$tardir"' am__untar
='$${TAR-tar} xf -'
3420 # POSIX will say in a future version that running "rm -f" with no argument
3421 # is OK; and we want to be able to make that assumption in our Makefile
3422 # recipes. So use an aggressive probe to check that the usage we want is
3423 # actually supported "in the wild" to an acceptable degree.
3424 # See automake bug#10828.
3425 # To make any issue more visible, cause the running configure to be aborted
3426 # by default if the 'rm' program in use doesn't match our expectations; the
3427 # user can still override this though.
3428 if rm -f && rm -fr && rm -rf; then : OK
; else
3432 Your 'rm' program seems unable to run without file operands specified
3433 on the command line, even when the '-f' option is present. This is contrary
3434 to the behaviour of most rm programs out there, and not conforming with
3435 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3437 Please tell bug-automake@gnu.org about your system, including the value
3438 of your $PATH and any error possibly output before this message. This
3439 can help us improve future automake versions.
3442 if test x
"$ACCEPT_INFERIOR_RM_PROGRAM" = x
"yes"; then
3443 echo 'Configuration will proceed anyway, since you have set the' >&2
3444 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3448 Aborting the configuration process, to ensure you take notice of the issue.
3450 You can download and install GNU coreutils to get an 'rm' implementation
3451 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3453 If you want to complete the configuration process using your problematic
3454 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3455 to "yes", and re-run configure.
3458 as_fn_error $?
"Your 'rm' program is bad, sorry." "$LINENO" 5
3462 # Check whether --enable-silent-rules was given.
3463 if test "${enable_silent_rules+set}" = set; then :
3464 enableval
=$enable_silent_rules;
3467 case $enable_silent_rules in # (((
3468 yes) AM_DEFAULT_VERBOSITY
=0;;
3469 no
) AM_DEFAULT_VERBOSITY
=1;;
3470 *) AM_DEFAULT_VERBOSITY
=0;;
3472 am_make
=${MAKE-make}
3473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3474 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3475 if ${am_cv_make_support_nested_variables+:} false
; then :
3476 $as_echo_n "(cached) " >&6
3478 if $as_echo 'TRUE=$(BAR$(V))
3484 .PHONY: am__doit' |
$am_make -f - >/dev
/null
2>&1; then
3485 am_cv_make_support_nested_variables
=yes
3487 am_cv_make_support_nested_variables
=no
3490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3491 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3492 if test $am_cv_make_support_nested_variables = yes; then
3494 AM_DEFAULT_V
='$(AM_DEFAULT_VERBOSITY)'
3496 AM_V
=$AM_DEFAULT_VERBOSITY
3497 AM_DEFAULT_V
=$AM_DEFAULT_VERBOSITY
3502 ac_config_headers="$ac_config_headers config.h:config.in"
3505 DEPDIR="${am__leading_dot}deps"
3507 ac_config_commands="$ac_config_commands depfiles"
3510 am_make=${MAKE-make}
3511 cat > confinc << 'END
'
3513 @echo this is the am__doit target
3516 # If we don't
find an include directive
, just comment out the code.
3517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3518 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3522 # First try GNU make style include.
3523 echo "include confinc" > confmf
3524 # Ignore all kinds of additional output from 'make'.
3525 case `$am_make -s -f confmf 2> /dev/null` in #(
3526 *the\ am__doit\ target
*)
3532 # Now try BSD make style include.
3533 if test "$am__include" = "#"; then
3534 echo '.include "confinc"' > confmf
3535 case `$am_make -s -f confmf 2> /dev/null` in #(
3536 *the\ am__doit\ target
*)
3537 am__include
=.include
3545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3546 $as_echo "$_am_result" >&6; }
3547 rm -f confinc confmf
3549 # Check whether --enable-dependency-tracking was given.
3550 if test "${enable_dependency_tracking+set}" = set; then :
3551 enableval
=$enable_dependency_tracking;
3554 if test "x$enable_dependency_tracking" != xno
; then
3555 am_depcomp
="$ac_aux_dir/depcomp"
3559 if test "x$enable_dependency_tracking" != xno; then
3569 ac_cpp
='$CPP $CPPFLAGS'
3570 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3571 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3572 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3573 if test -n "$ac_tool_prefix"; then
3574 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3575 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3577 $as_echo_n "checking for $ac_word... " >&6; }
3578 if ${ac_cv_prog_CC+:} false
; then :
3579 $as_echo_n "(cached) " >&6
3581 if test -n "$CC"; then
3582 ac_cv_prog_CC
="$CC" # Let the user override the test.
3584 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3588 test -z "$as_dir" && as_dir
=.
3589 for ac_exec_ext
in '' $ac_executable_extensions; do
3590 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3591 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3602 if test -n "$CC"; then
3603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3604 $as_echo "$CC" >&6; }
3606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3607 $as_echo "no" >&6; }
3612 if test -z "$ac_cv_prog_CC"; then
3614 # Extract the first word of "gcc", so it can be a program name with args.
3615 set dummy gcc
; ac_word
=$2
3616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3617 $as_echo_n "checking for $ac_word... " >&6; }
3618 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3619 $as_echo_n "(cached) " >&6
3621 if test -n "$ac_ct_CC"; then
3622 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3624 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3628 test -z "$as_dir" && as_dir
=.
3629 for ac_exec_ext
in '' $ac_executable_extensions; do
3630 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3631 ac_cv_prog_ac_ct_CC
="gcc"
3632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3641 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3642 if test -n "$ac_ct_CC"; then
3643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3644 $as_echo "$ac_ct_CC" >&6; }
3646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3647 $as_echo "no" >&6; }
3650 if test "x$ac_ct_CC" = x
; then
3653 case $cross_compiling:$ac_tool_warned in
3655 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3656 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3657 ac_tool_warned
=yes ;;
3665 if test -z "$CC"; then
3666 if test -n "$ac_tool_prefix"; then
3667 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3668 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3670 $as_echo_n "checking for $ac_word... " >&6; }
3671 if ${ac_cv_prog_CC+:} false
; then :
3672 $as_echo_n "(cached) " >&6
3674 if test -n "$CC"; then
3675 ac_cv_prog_CC
="$CC" # Let the user override the test.
3677 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3681 test -z "$as_dir" && as_dir
=.
3682 for ac_exec_ext
in '' $ac_executable_extensions; do
3683 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3684 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3695 if test -n "$CC"; then
3696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3697 $as_echo "$CC" >&6; }
3699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3700 $as_echo "no" >&6; }
3706 if test -z "$CC"; then
3707 # Extract the first word of "cc", so it can be a program name with args.
3708 set dummy cc
; ac_word
=$2
3709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3710 $as_echo_n "checking for $ac_word... " >&6; }
3711 if ${ac_cv_prog_CC+:} false
; then :
3712 $as_echo_n "(cached) " >&6
3714 if test -n "$CC"; then
3715 ac_cv_prog_CC
="$CC" # Let the user override the test.
3718 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3722 test -z "$as_dir" && as_dir
=.
3723 for ac_exec_ext
in '' $ac_executable_extensions; do
3724 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3725 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3726 ac_prog_rejected
=yes
3730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3737 if test $ac_prog_rejected = yes; then
3738 # We found a bogon in the path, so make sure we never use it.
3739 set dummy
$ac_cv_prog_CC
3741 if test $# != 0; then
3742 # We chose a different compiler from the bogus one.
3743 # However, it has the same basename, so the bogon will be chosen
3744 # first if we set CC to just the basename; use the full file name.
3746 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3752 if test -n "$CC"; then
3753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3754 $as_echo "$CC" >&6; }
3756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3757 $as_echo "no" >&6; }
3762 if test -z "$CC"; then
3763 if test -n "$ac_tool_prefix"; then
3764 for ac_prog
in cl.exe
3766 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3767 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3769 $as_echo_n "checking for $ac_word... " >&6; }
3770 if ${ac_cv_prog_CC+:} false
; then :
3771 $as_echo_n "(cached) " >&6
3773 if test -n "$CC"; then
3774 ac_cv_prog_CC
="$CC" # Let the user override the test.
3776 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3780 test -z "$as_dir" && as_dir
=.
3781 for ac_exec_ext
in '' $ac_executable_extensions; do
3782 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3783 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3794 if test -n "$CC"; then
3795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3796 $as_echo "$CC" >&6; }
3798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3799 $as_echo "no" >&6; }
3803 test -n "$CC" && break
3806 if test -z "$CC"; then
3808 for ac_prog
in cl.exe
3810 # Extract the first word of "$ac_prog", so it can be a program name with args.
3811 set dummy
$ac_prog; ac_word
=$2
3812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3813 $as_echo_n "checking for $ac_word... " >&6; }
3814 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3815 $as_echo_n "(cached) " >&6
3817 if test -n "$ac_ct_CC"; then
3818 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3820 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3824 test -z "$as_dir" && as_dir
=.
3825 for ac_exec_ext
in '' $ac_executable_extensions; do
3826 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3827 ac_cv_prog_ac_ct_CC
="$ac_prog"
3828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3837 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3838 if test -n "$ac_ct_CC"; then
3839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3840 $as_echo "$ac_ct_CC" >&6; }
3842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3843 $as_echo "no" >&6; }
3847 test -n "$ac_ct_CC" && break
3850 if test "x$ac_ct_CC" = x
; then
3853 case $cross_compiling:$ac_tool_warned in
3855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3856 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3857 ac_tool_warned
=yes ;;
3866 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3867 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3868 as_fn_error $?
"no acceptable C compiler found in \$PATH
3869 See \`config.log' for more details" "$LINENO" 5; }
3871 # Provide some information about the compiler.
3872 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3875 for ac_option
in --version -v -V -qversion; do
3876 { { ac_try
="$ac_compiler $ac_option >&5"
3878 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3879 *) ac_try_echo=$ac_try;;
3881 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3882 $as_echo "$ac_try_echo"; } >&5
3883 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3885 if test -s conftest.err; then
3887 ... rest of stderr output deleted ...
3888 10q' conftest.err >conftest.er1
3889 cat conftest.er1 >&5
3891 rm -f conftest.er1 conftest.err
3892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3893 test $ac_status = 0; }
3896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3897 /* end confdefs.h. */
3907 ac_clean_files_save=$ac_clean_files
3908 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3909 # Try to create an executable without -o first, disregard a.out.
3910 # It will help us diagnose broken compilers, and finding out an intuition
3912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3913 $as_echo_n "checking whether the C compiler works... " >&6; }
3914 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3916 # The possible output files:
3917 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3920 for ac_file in $ac_files
3923 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3924 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3929 if { { ac_try="$ac_link_default"
3931 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3932 *) ac_try_echo
=$ac_try;;
3934 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3935 $as_echo "$ac_try_echo"; } >&5
3936 (eval "$ac_link_default") 2>&5
3938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3939 test $ac_status = 0; }; then :
3940 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3941 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3942 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3943 # so that the user can short-circuit this test for compilers unknown to
3945 for ac_file
in $ac_files ''
3947 test -f "$ac_file" ||
continue
3949 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3952 # We found the default executable, but exeext='' is most
3956 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3958 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3960 # We set ac_cv_exeext here because the later test for it is not
3961 # safe: cross compilers may not add the suffix if given an `-o'
3962 # argument, so we may need to know it at that point already.
3963 # Even if this section looks crufty: it has the advantage of
3970 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3975 if test -z "$ac_file"; then :
3976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3977 $as_echo "no" >&6; }
3978 $as_echo "$as_me: failed program was:" >&5
3979 sed 's/^/| /' conftest.
$ac_ext >&5
3981 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3982 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3983 as_fn_error
77 "C compiler cannot create executables
3984 See \`config.log' for more details" "$LINENO" 5; }
3986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3987 $as_echo "yes" >&6; }
3989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3990 $as_echo_n "checking for C compiler default output file name... " >&6; }
3991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3992 $as_echo "$ac_file" >&6; }
3993 ac_exeext
=$ac_cv_exeext
3995 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
3996 ac_clean_files
=$ac_clean_files_save
3997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3998 $as_echo_n "checking for suffix of executables... " >&6; }
3999 if { { ac_try
="$ac_link"
4001 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4002 *) ac_try_echo=$ac_try;;
4004 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4005 $as_echo "$ac_try_echo"; } >&5
4006 (eval "$ac_link") 2>&5
4008 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4009 test $ac_status = 0; }; then :
4010 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
4011 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
4012 # work properly (i.e., refer to `conftest.exe'), while it won't with
4014 for ac_file
in conftest.exe conftest conftest.
*; do
4015 test -f "$ac_file" ||
continue
4017 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
4018 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4024 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4025 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4026 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
4027 See \`config.log' for more details" "$LINENO" 5; }
4029 rm -f conftest conftest
$ac_cv_exeext
4030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4031 $as_echo "$ac_cv_exeext" >&6; }
4033 rm -f conftest.
$ac_ext
4034 EXEEXT
=$ac_cv_exeext
4036 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4037 /* end confdefs.h. */
4042 FILE *f = fopen ("conftest.out", "w");
4043 return ferror (f) || fclose (f) != 0;
4049 ac_clean_files
="$ac_clean_files conftest.out"
4050 # Check that the compiler produces executables we can run. If not, either
4051 # the compiler is broken, or we cross compile.
4052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4053 $as_echo_n "checking whether we are cross compiling... " >&6; }
4054 if test "$cross_compiling" != yes; then
4055 { { ac_try
="$ac_link"
4057 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4058 *) ac_try_echo=$ac_try;;
4060 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4061 $as_echo "$ac_try_echo"; } >&5
4062 (eval "$ac_link") 2>&5
4064 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4065 test $ac_status = 0; }
4066 if { ac_try='./conftest$ac_cv_exeext'
4067 { { case "(($ac_try" in
4068 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4069 *) ac_try_echo
=$ac_try;;
4071 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4072 $as_echo "$ac_try_echo"; } >&5
4073 (eval "$ac_try") 2>&5
4075 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4076 test $ac_status = 0; }; }; then
4079 if test "$cross_compiling" = maybe
; then
4082 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4083 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4084 as_fn_error $?
"cannot run C compiled programs.
4085 If you meant to cross compile, use \`--host'.
4086 See \`config.log' for more details" "$LINENO" 5; }
4090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4091 $as_echo "$cross_compiling" >&6; }
4093 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
4094 ac_clean_files
=$ac_clean_files_save
4095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4096 $as_echo_n "checking for suffix of object files... " >&6; }
4097 if ${ac_cv_objext+:} false
; then :
4098 $as_echo_n "(cached) " >&6
4100 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4101 /* end confdefs.h. */
4111 rm -f conftest.o conftest.obj
4112 if { { ac_try
="$ac_compile"
4114 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4115 *) ac_try_echo=$ac_try;;
4117 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4118 $as_echo "$ac_try_echo"; } >&5
4119 (eval "$ac_compile") 2>&5
4121 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4122 test $ac_status = 0; }; then :
4123 for ac_file in conftest.o conftest.obj conftest.*; do
4124 test -f "$ac_file" || continue;
4126 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4127 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4132 $as_echo "$as_me: failed program was:" >&5
4133 sed 's/^/| /' conftest.$ac_ext >&5
4135 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4136 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4137 as_fn_error $? "cannot compute suffix of object files
: cannot compile
4138 See \
`config.log' for more details" "$LINENO" 5; }
4140 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4143 $as_echo "$ac_cv_objext" >&6; }
4144 OBJEXT=$ac_cv_objext
4146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4147 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4148 if ${ac_cv_c_compiler_gnu+:} false; then :
4149 $as_echo_n "(cached) " >&6
4151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4152 /* end confdefs.h. */
4165 if ac_fn_c_try_compile "$LINENO"; then :
4170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4171 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4175 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4176 if test $ac_compiler_gnu = yes; then
4181 ac_test_CFLAGS=${CFLAGS+set}
4182 ac_save_CFLAGS=$CFLAGS
4183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4184 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4185 if ${ac_cv_prog_cc_g+:} false; then :
4186 $as_echo_n "(cached) " >&6
4188 ac_save_c_werror_flag=$ac_c_werror_flag
4189 ac_c_werror_flag=yes
4192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4193 /* end confdefs.h. */
4203 if ac_fn_c_try_compile "$LINENO"; then :
4207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4208 /* end confdefs.h. */
4218 if ac_fn_c_try_compile "$LINENO"; then :
4221 ac_c_werror_flag=$ac_save_c_werror_flag
4223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4224 /* end confdefs.h. */
4234 if ac_fn_c_try_compile "$LINENO"; then :
4237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4242 ac_c_werror_flag=$ac_save_c_werror_flag
4244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4245 $as_echo "$ac_cv_prog_cc_g" >&6; }
4246 if test "$ac_test_CFLAGS" = set; then
4247 CFLAGS=$ac_save_CFLAGS
4248 elif test $ac_cv_prog_cc_g = yes; then
4249 if test "$GCC" = yes; then
4255 if test "$GCC" = yes; then
4261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4262 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4263 if ${ac_cv_prog_cc_c89+:} false; then :
4264 $as_echo_n "(cached) " >&6
4266 ac_cv_prog_cc_c89=no
4268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4269 /* end confdefs.h. */
4273 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4274 struct buf { int x; };
4275 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4276 static char *e (p, i)
4282 static char *f (char * (*g) (char **, int), char **p, ...)
4287 s = g (p, va_arg (v,int));
4292 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4293 function prototypes and stuff, but not '\xHH' hex character constants.
4294 These don't provoke an error unfortunately, instead are silently treated
4295 as 'x'. The following induces an error, until -std is added to get
4296 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4297 array size at least. It's necessary to write '\x00'==0 to get something
4298 that's true only with -std. */
4299 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4301 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4302 inside strings and character constants. */
4304 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4306 int test (int i, double x);
4307 struct s1 {int (*f) (int a);};
4308 struct s2 {int (*f) (double a);};
4309 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4315 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4320 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4321 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4323 CC="$ac_save_CC $ac_arg"
4324 if ac_fn_c_try_compile "$LINENO"; then :
4325 ac_cv_prog_cc_c89=$ac_arg
4327 rm -f core conftest.err conftest.$ac_objext
4328 test "x$ac_cv_prog_cc_c89" != "xno" && break
4330 rm -f conftest.$ac_ext
4335 case "x$ac_cv_prog_cc_c89" in
4337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4338 $as_echo "none needed" >&6; } ;;
4340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4341 $as_echo "unsupported" >&6; } ;;
4343 CC="$CC $ac_cv_prog_cc_c89"
4344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4345 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4347 if test "x$ac_cv_prog_cc_c89" != xno; then :
4352 ac_cpp='$CPP $CPPFLAGS'
4353 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4354 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4355 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4358 ac_cpp='$CPP $CPPFLAGS'
4359 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4360 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4361 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4363 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4364 if ${am_cv_prog_cc_c_o+:} false; then :
4365 $as_echo_n "(cached) " >&6
4367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4368 /* end confdefs.h. */
4378 # Make sure it works both with $CC and with simple cc.
4379 # Following AC_PROG_CC_C_O, we do the test twice because some
4380 # compilers refuse to overwrite an existing .o file with -o,
4381 # though they will create one.
4382 am_cv_prog_cc_c_o=yes
4384 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4385 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4388 (exit $ac_status); } \
4389 && test -f conftest2.$ac_objext; then
4392 am_cv_prog_cc_c_o=no
4396 rm -f core conftest*
4399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4400 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4401 if test "$am_cv_prog_cc_c_o" != yes; then
4402 # Losing compiler, so override with the script.
4403 # FIXME: It is wrong to rewrite CC.
4404 # But if we don't then we get into trouble of one sort or another.
4405 # A longer-term fix would be to have automake use am__CC in this case,
4406 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4407 CC="$am_aux_dir/compile $CC"
4410 ac_cpp='$CPP $CPPFLAGS'
4411 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4412 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4413 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4416 depcc="$CC" am_compiler_list=
4418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4419 $as_echo_n "checking dependency style of $depcc... " >&6; }
4420 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4421 $as_echo_n "(cached) " >&6
4423 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4424 # We make a subdir and do the tests there. Otherwise we can end up
4425 # making bogus files that we don't know about and never remove. For
4426 # instance it was reported that on HP-UX the gcc test will end up
4427 # making a dummy file named 'D' -- because '-MD' means "put the output
4431 # Copy depcomp to subdir because otherwise we won't find it if we're
4432 # using a relative directory.
4433 cp "$am_depcomp" conftest.dir
4435 # We will build objects and dependencies in a subdirectory because
4436 # it helps to detect inapplicable dependency modes. For instance
4437 # both Tru64's cc and ICC support -MD to output dependencies as a
4438 # side effect of compilation, but ICC will put the dependencies in
4439 # the current directory while Tru64 will put them in the object
4443 am_cv_CC_dependencies_compiler_type=none
4444 if test "$am_compiler_list" = ""; then
4445 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < .
/depcomp
`
4448 case " $depcc " in #(
4449 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4452 for depmode in $am_compiler_list; do
4453 # Setup a source with many dependencies, because some compilers
4454 # like to wrap large dependency lists on column 80 (with \), and
4455 # we should not choose a depcomp mode which is confused by this.
4457 # We need to recreate these files for each test, as the compiler may
4458 # overwrite some of them when testing with obscure command lines.
4459 # This happens at least with the AIX C compiler.
4461 for i in 1 2 3 4 5 6; do
4462 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4463 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4464 # Solaris 10 /bin/sh.
4465 echo '/* dummy */' > sub/conftst$i.h
4467 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4469 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4470 # mode. It turns out that the SunPro C++ compiler does not properly
4471 # handle '-M -o', and we need to detect this. Also, some Intel
4472 # versions had trouble with output in subdirs.
4473 am__obj=sub/conftest.${OBJEXT-o}
4474 am__minus_obj="-o $am__obj"
4477 # This depmode causes a compiler race in universal mode.
4478 test "$am__universal" = false || continue
4481 # After this tag, mechanisms are not by side-effect, so they'll
4482 # only be used when explicitly requested.
4483 if test "x$enable_dependency_tracking" = xyes; then
4489 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4490 # This compiler won't grok '-c -o', but also, the minuso test has
4491 # not run yet. These depmodes are late enough in the game, and
4492 # so weak that their functioning should not be impacted.
4493 am__obj=conftest.${OBJEXT-o}
4498 if depmode=$depmode \
4499 source=sub/conftest.c object=$am__obj \
4500 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4501 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4502 >/dev/null 2>conftest.err &&
4503 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4504 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4505 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4506 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4507 # icc doesn't choke on unknown options, it will just issue warnings
4508 # or remarks (even with -Werror). So we grep stderr for any message
4509 # that says an option was ignored or not supported.
4510 # When given -MP, icc 7.0 and 7.1 complain thusly:
4511 # icc: Command line warning: ignoring option '-M'; no argument required
4512 # The diagnosis changed in icc 8.0:
4513 # icc: Command line remark: option '-MP' not supported
4514 if (grep 'ignoring option' conftest.err ||
4515 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4516 am_cv_CC_dependencies_compiler_type=$depmode
4525 am_cv_CC_dependencies_compiler_type=none
4529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4530 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4531 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4534 test "x$enable_dependency_tracking" != xno \
4535 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4537 am__fastdepCC_FALSE='#'
4539 am__fastdepCC_TRUE='#'
4540 am__fastdepCC_FALSE=
4546 ac_cpp='$CPP $CPPFLAGS'
4547 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4548 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4549 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4551 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4552 # On Suns, sometimes $CPP names a directory.
4553 if test -n "$CPP" && test -d "$CPP"; then
4556 if test -z "$CPP"; then
4557 if ${ac_cv_prog_CPP+:} false; then :
4558 $as_echo_n "(cached) " >&6
4560 # Double quotes because CPP needs to be expanded
4561 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4564 for ac_c_preproc_warn_flag in '' yes
4566 # Use a header file that comes with gcc, so configuring glibc
4567 # with a fresh cross-compiler works.
4568 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4569 # <limits.h> exists even on freestanding compilers.
4570 # On the NeXT, cc -E runs the code through the compiler's parser,
4571 # not just through cpp. "Syntax error" is here to catch this case.
4572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4573 /* end confdefs.h. */
4575 # include <limits.h>
4577 # include <assert.h>
4581 if ac_fn_c_try_cpp "$LINENO"; then :
4584 # Broken: fails on valid input.
4587 rm -f conftest.err conftest.i conftest.$ac_ext
4589 # OK, works on sane cases. Now check whether nonexistent headers
4590 # can be detected and how.
4591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4592 /* end confdefs.h. */
4593 #include <ac_nonexistent.h>
4595 if ac_fn_c_try_cpp "$LINENO"; then :
4596 # Broken: success on invalid input.
4599 # Passes both tests.
4603 rm -f conftest.err conftest.i conftest.$ac_ext
4606 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4607 rm -f conftest.i conftest.err conftest.
$ac_ext
4608 if $ac_preproc_ok; then :
4620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4621 $as_echo "$CPP" >&6; }
4623 for ac_c_preproc_warn_flag
in '' yes
4625 # Use a header file that comes with gcc, so configuring glibc
4626 # with a fresh cross-compiler works.
4627 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4628 # <limits.h> exists even on freestanding compilers.
4629 # On the NeXT, cc -E runs the code through the compiler's parser,
4630 # not just through cpp. "Syntax error" is here to catch this case.
4631 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4632 /* end confdefs.h. */
4634 # include <limits.h>
4636 # include <assert.h>
4640 if ac_fn_c_try_cpp
"$LINENO"; then :
4643 # Broken: fails on valid input.
4646 rm -f conftest.err conftest.i conftest.
$ac_ext
4648 # OK, works on sane cases. Now check whether nonexistent headers
4649 # can be detected and how.
4650 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4651 /* end confdefs.h. */
4652 #include <ac_nonexistent.h>
4654 if ac_fn_c_try_cpp
"$LINENO"; then :
4655 # Broken: success on invalid input.
4658 # Passes both tests.
4662 rm -f conftest.err conftest.i conftest.
$ac_ext
4665 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4666 rm -f conftest.i conftest.err conftest.
$ac_ext
4667 if $ac_preproc_ok; then :
4670 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4671 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4672 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
4673 See \`config.log' for more details" "$LINENO" 5; }
4677 ac_cpp
='$CPP $CPPFLAGS'
4678 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4679 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4680 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4684 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4685 if ${ac_cv_path_GREP+:} false
; then :
4686 $as_echo_n "(cached) " >&6
4688 if test -z "$GREP"; then
4689 ac_path_GREP_found
=false
4690 # Loop through the user's path and test for each of PROGNAME-LIST
4691 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4692 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4695 test -z "$as_dir" && as_dir
=.
4696 for ac_prog
in grep ggrep
; do
4697 for ac_exec_ext
in '' $ac_executable_extensions; do
4698 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4699 as_fn_executable_p
"$ac_path_GREP" ||
continue
4700 # Check for GNU ac_path_GREP and select it if it is found.
4701 # Check for GNU $ac_path_GREP
4702 case `"$ac_path_GREP" --version 2>&1` in
4704 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4707 $as_echo_n 0123456789 >"conftest.in"
4710 cat "conftest.in" "conftest.in" >"conftest.tmp"
4711 mv "conftest.tmp" "conftest.in"
4712 cp "conftest.in" "conftest.nl"
4713 $as_echo 'GREP' >> "conftest.nl"
4714 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4715 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4716 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4717 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4718 # Best one so far, save it but keep looking for a better one
4719 ac_cv_path_GREP
="$ac_path_GREP"
4720 ac_path_GREP_max
=$ac_count
4722 # 10*(2^10) chars as input seems more than enough
4723 test $ac_count -gt 10 && break
4725 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4728 $ac_path_GREP_found && break 3
4733 if test -z "$ac_cv_path_GREP"; then
4734 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4737 ac_cv_path_GREP
=$GREP
4741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4742 $as_echo "$ac_cv_path_GREP" >&6; }
4743 GREP
="$ac_cv_path_GREP"
4746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4747 $as_echo_n "checking for egrep... " >&6; }
4748 if ${ac_cv_path_EGREP+:} false
; then :
4749 $as_echo_n "(cached) " >&6
4751 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4752 then ac_cv_path_EGREP
="$GREP -E"
4754 if test -z "$EGREP"; then
4755 ac_path_EGREP_found
=false
4756 # Loop through the user's path and test for each of PROGNAME-LIST
4757 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4758 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4761 test -z "$as_dir" && as_dir
=.
4762 for ac_prog
in egrep; do
4763 for ac_exec_ext
in '' $ac_executable_extensions; do
4764 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4765 as_fn_executable_p
"$ac_path_EGREP" ||
continue
4766 # Check for GNU ac_path_EGREP and select it if it is found.
4767 # Check for GNU $ac_path_EGREP
4768 case `"$ac_path_EGREP" --version 2>&1` in
4770 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4773 $as_echo_n 0123456789 >"conftest.in"
4776 cat "conftest.in" "conftest.in" >"conftest.tmp"
4777 mv "conftest.tmp" "conftest.in"
4778 cp "conftest.in" "conftest.nl"
4779 $as_echo 'EGREP' >> "conftest.nl"
4780 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4781 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4782 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4783 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4784 # Best one so far, save it but keep looking for a better one
4785 ac_cv_path_EGREP
="$ac_path_EGREP"
4786 ac_path_EGREP_max
=$ac_count
4788 # 10*(2^10) chars as input seems more than enough
4789 test $ac_count -gt 10 && break
4791 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4794 $ac_path_EGREP_found && break 3
4799 if test -z "$ac_cv_path_EGREP"; then
4800 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4803 ac_cv_path_EGREP
=$EGREP
4808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4809 $as_echo "$ac_cv_path_EGREP" >&6; }
4810 EGREP
="$ac_cv_path_EGREP"
4813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4814 $as_echo_n "checking for ANSI C header files... " >&6; }
4815 if ${ac_cv_header_stdc+:} false
; then :
4816 $as_echo_n "(cached) " >&6
4818 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4819 /* end confdefs.h. */
4833 if ac_fn_c_try_compile
"$LINENO"; then :
4834 ac_cv_header_stdc
=yes
4836 ac_cv_header_stdc
=no
4838 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4840 if test $ac_cv_header_stdc = yes; then
4841 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4842 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4843 /* end confdefs.h. */
4847 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4848 $EGREP "memchr" >/dev
/null
2>&1; then :
4851 ac_cv_header_stdc
=no
4857 if test $ac_cv_header_stdc = yes; then
4858 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4859 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4860 /* end confdefs.h. */
4864 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4865 $EGREP "free" >/dev
/null
2>&1; then :
4868 ac_cv_header_stdc
=no
4874 if test $ac_cv_header_stdc = yes; then
4875 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4876 if test "$cross_compiling" = yes; then :
4879 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4880 /* end confdefs.h. */
4883 #if ((' ' & 0x0FF) == 0x020)
4884 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4885 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4887 # define ISLOWER(c) \
4888 (('a' <= (c) && (c) <= 'i') \
4889 || ('j' <= (c) && (c) <= 'r') \
4890 || ('s' <= (c) && (c) <= 'z'))
4891 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4894 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4899 for (i = 0; i < 256; i++)
4900 if (XOR (islower (i), ISLOWER (i))
4901 || toupper (i) != TOUPPER (i))
4906 if ac_fn_c_try_run
"$LINENO"; then :
4909 ac_cv_header_stdc
=no
4911 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4912 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4918 $as_echo "$ac_cv_header_stdc" >&6; }
4919 if test $ac_cv_header_stdc = yes; then
4921 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4925 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4926 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4927 inttypes.h stdint.h unistd.h
4929 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4930 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4932 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
4933 cat >>confdefs.h
<<_ACEOF
4934 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4943 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4944 if test "x$ac_cv_header_minix_config_h" = xyes
; then :
4951 if test "$MINIX" = yes; then
4953 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4956 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4959 $as_echo "#define _MINIX 1" >>confdefs.h
4964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4965 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4966 if ${ac_cv_safe_to_define___extensions__+:} false
; then :
4967 $as_echo_n "(cached) " >&6
4969 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4970 /* end confdefs.h. */
4972 # define __EXTENSIONS__ 1
4973 $ac_includes_default
4982 if ac_fn_c_try_compile
"$LINENO"; then :
4983 ac_cv_safe_to_define___extensions__
=yes
4985 ac_cv_safe_to_define___extensions__
=no
4987 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4990 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4991 test $ac_cv_safe_to_define___extensions__ = yes &&
4992 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4994 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4996 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4998 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5000 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5008 # Check whether --with-sysroot was given.
5009 if test "${with_sysroot+set}" = set; then :
5010 withval
=$with_sysroot; sysroot
=$withval
5016 if test "$sysroot" = "yes"; then
5017 sysroot
='${exec_prefix}/${target_alias}/sys-root'
5018 elif test "$sysroot" = "no"; then
5022 sysroot_relocatable
=0
5023 if test -n "$sysroot"; then
5025 "${prefix}" |
"${prefix}/"* | \
5026 "${exec_prefix}" |
"${exec_prefix}/"* | \
5027 '${prefix}' |
'${prefix}/'*| \
5028 '${exec_prefix}' |
'${exec_prefix}/'*)
5029 sysroot_relocatable
=1
5035 cat >>confdefs.h
<<_ACEOF
5036 #define TARGET_SYSTEM_ROOT "$sysroot"
5040 cat >>confdefs.h
<<_ACEOF
5041 #define TARGET_SYSTEM_ROOT_RELOCATABLE $sysroot_relocatable
5046 installed_linker
=ld.gold
5047 # Check whether --enable-gold was given.
5048 if test "${enable_gold+set}" = set; then :
5049 enableval
=$enable_gold; case "${enableval}" in
5051 install_as_default
=yes
5054 if test x
${enable_ld} = xno
; then
5055 install_as_default
=yes
5060 install_as_default
=no
5068 for ac_header
in dlfcn.h
5070 ac_fn_c_check_header_compile
"$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
5072 if test "x$ac_cv_header_dlfcn_h" = xyes
; then :
5073 cat >>confdefs.h
<<_ACEOF
5074 #define HAVE_DLFCN_H 1
5081 for ac_header
in windows.h
5083 ac_fn_c_check_header_compile
"$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
5085 if test "x$ac_cv_header_windows_h" = xyes
; then :
5086 cat >>confdefs.h
<<_ACEOF
5087 #define HAVE_WINDOWS_H 1
5095 # Check whether --enable-plugins was given.
5096 if test "${enable_plugins+set}" = set; then :
5097 enableval
=$enable_plugins; case "${enableval}" in
5100 if test "$maybe_plugins" != "yes" ; then
5101 as_fn_error $?
"Building with plugin support requires a host that supports dlopen." "$LINENO" 5
5105 plugins
=$maybe_plugins
5109 if test "$plugins" = "yes"; then
5110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
5111 $as_echo_n "checking for library containing dlsym... " >&6; }
5112 if ${ac_cv_search_dlsym+:} false
; then :
5113 $as_echo_n "(cached) " >&6
5115 ac_func_search_save_LIBS
=$LIBS
5116 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5117 /* end confdefs.h. */
5119 /* Override any GCC internal prototype to avoid an error.
5120 Use char because int might match the return type of a GCC
5121 builtin and then its argument prototype would still apply. */
5134 for ac_lib
in '' dl
; do
5135 if test -z "$ac_lib"; then
5136 ac_res
="none required"
5139 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
5141 if ac_fn_c_try_link
"$LINENO"; then :
5142 ac_cv_search_dlsym
=$ac_res
5144 rm -f core conftest.err conftest.
$ac_objext \
5146 if ${ac_cv_search_dlsym+:} false
; then :
5150 if ${ac_cv_search_dlsym+:} false
; then :
5153 ac_cv_search_dlsym
=no
5156 LIBS
=$ac_func_search_save_LIBS
5158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
5159 $as_echo "$ac_cv_search_dlsym" >&6; }
5160 ac_res
=$ac_cv_search_dlsym
5161 if test "$ac_res" != no
; then :
5162 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
5168 if test "$plugins" = "yes"; then
5170 $as_echo "#define ENABLE_PLUGINS 1" >>confdefs.h
5173 if test "$plugins" = "yes"; then
5182 # Decide if -z relro should be enabled in ELF linker by default.
5183 ac_default_ld_z_relro
=unset
5184 # Provide a configure time option to override our default.
5185 # Check whether --enable-relro was given.
5186 if test "${enable_relro+set}" = set; then :
5187 enableval
=$enable_relro; case "${enableval}" in
5188 yes) ac_default_ld_z_relro
=1 ;;
5189 no
) ac_default_ld_z_relro
=0 ;;
5192 if test "${ac_default_ld_z_relro}" = unset; then
5193 ac_default_ld_z_relro
=1
5196 cat >>confdefs.h
<<_ACEOF
5197 #define DEFAULT_LD_Z_RELRO $ac_default_ld_z_relro
5201 # Check whether --enable-targets was given.
5202 if test "${enable_targets+set}" = set; then :
5203 enableval
=$enable_targets; case "${enableval}" in
5205 as_fn_error $?
"--enable-targets option must specify target names or 'all'" "$LINENO" 5
5211 enable_targets
=$enableval
5215 # For now, enable all targets by default
5221 # Canonicalize the enabled targets.
5222 if test -n "$enable_targets"; then
5223 for targ
in `echo $enable_targets | sed -e 's/,/ /g'`; do
5224 result
=`$ac_config_sub $targ 2>/dev/null`
5225 if test -n "$result"; then
5226 canon_targets
="$canon_targets $result"
5228 # Permit unrecognized target names, like "all".
5229 canon_targets
="$canon_targets $targ"
5234 # Decide which "--hash-style" to use by default
5235 # Provide a configure time option to override our default.
5236 # Check whether --enable-default-hash-style was given.
5237 if test "${enable_default_hash_style+set}" = set; then :
5238 enableval
=$enable_default_hash_style; case "${enable_default_hash_style}" in
5239 sysv | gnu | both
) ;;
5240 *) as_fn_error $?
"bad value ${enable_default_hash_style} for enable-default-hash-style option" "$LINENO" 5 ;;
5244 # Enable gnu hash only on GNU targets, but not mips
5245 mips
*-*-*) enable_default_hash_style
=sysv
;;
5246 *-*-gnu* |
*-*-linux* |
*-*-nacl*) enable_default_hash_style
=both
;;
5247 *) enable_default_hash_style
=sysv
;;
5253 cat >>confdefs.h
<<_ACEOF
5254 #define DEFAULT_HASH_STYLE "${enable_default_hash_style}"
5258 # See which specific instantiations we need.
5264 default_osabi
=ELFOSABI_NONE
5269 for targ
in $target $canon_targets; do
5270 if test "$targ" = "all"; then
5277 .
${srcdir}/configure.tgt
5279 if test "$targ_obj" = "UNKNOWN"; then
5280 as_fn_error $?
"\"unsupported target $targ\"" "$LINENO" 5
5282 targetobjs
="$targetobjs ${targ_obj}.\$(OBJEXT)"
5283 if test "$targ_extra_obj" != ""; then
5284 targetobjs
="$targetobjs ${targ_extra_obj}.\$(OBJEXT)"
5286 if test "$targ_size" = "32" -o "$targ_extra_size" = "32"; then
5287 if test "$targ_big_endian" = "true" \
5288 -o "$targ_extra_big_endian" = "true"; then
5291 if test "$targ_big_endian" = "false" \
5292 -o "$targ_extra_big_endian" = "false"; then
5296 if test "$targ_size" = "64" -o "$targ_extra_size" = "64"; then
5297 if test "$targ_big_endian" = "true" \
5298 -o "$targ_extra_big_endian" = "true"; then
5301 if test "$targ_big_endian" = "false" \
5302 -o "$targ_extra_big_endian" = "false"; then
5307 if test "$target" = "$targ"; then
5308 default_machine
=$targ_machine
5309 default_size
=$targ_size
5310 default_big_endian
=$targ_big_endian
5311 default_osabi
=$targ_osabi
5313 if test "$targ_obj" = "aarch64"; then
5314 DEFAULT_TARGET_AARCH64_TRUE
=
5315 DEFAULT_TARGET_AARCH64_FALSE
='#'
5317 DEFAULT_TARGET_AARCH64_TRUE
='#'
5318 DEFAULT_TARGET_AARCH64_FALSE
=
5321 if test "$targ_obj" = "arm"; then
5322 DEFAULT_TARGET_ARM_TRUE
=
5323 DEFAULT_TARGET_ARM_FALSE
='#'
5325 DEFAULT_TARGET_ARM_TRUE
='#'
5326 DEFAULT_TARGET_ARM_FALSE
=
5329 if test "$targ_obj" = "i386"; then
5330 DEFAULT_TARGET_I386_TRUE
=
5331 DEFAULT_TARGET_I386_FALSE
='#'
5333 DEFAULT_TARGET_I386_TRUE
='#'
5334 DEFAULT_TARGET_I386_FALSE
=
5337 if test "$targ_obj" = "powerpc"; then
5338 DEFAULT_TARGET_POWERPC_TRUE
=
5339 DEFAULT_TARGET_POWERPC_FALSE
='#'
5341 DEFAULT_TARGET_POWERPC_TRUE
='#'
5342 DEFAULT_TARGET_POWERPC_FALSE
=
5345 if test "$targ_obj" = "sparc"; then
5346 DEFAULT_TARGET_SPARC_TRUE
=
5347 DEFAULT_TARGET_SPARC_FALSE
='#'
5349 DEFAULT_TARGET_SPARC_TRUE
='#'
5350 DEFAULT_TARGET_SPARC_FALSE
=
5353 if test "$targ_obj" = "s390"; then
5354 DEFAULT_TARGET_S390_TRUE
=
5355 DEFAULT_TARGET_S390_FALSE
='#'
5357 DEFAULT_TARGET_S390_TRUE
='#'
5358 DEFAULT_TARGET_S390_FALSE
=
5363 if test "$targ_obj" = "x86_64"; then
5365 x86_64
*-linux-gnux32)
5374 if test "$target_x86_64" = "yes"; then
5375 DEFAULT_TARGET_X86_64_TRUE
=
5376 DEFAULT_TARGET_X86_64_FALSE
='#'
5378 DEFAULT_TARGET_X86_64_TRUE
='#'
5379 DEFAULT_TARGET_X86_64_FALSE
=
5382 if test "$target_x32" = "yes"; then
5383 DEFAULT_TARGET_X32_TRUE
=
5384 DEFAULT_TARGET_X32_FALSE
='#'
5386 DEFAULT_TARGET_X32_TRUE
='#'
5387 DEFAULT_TARGET_X32_FALSE
=
5390 if test "$target_x86_64" = "yes" -o "$target_x32" = "yes"; then
5391 DEFAULT_TARGET_X86_64_OR_X32_TRUE
=
5392 DEFAULT_TARGET_X86_64_OR_X32_FALSE
='#'
5394 DEFAULT_TARGET_X86_64_OR_X32_TRUE
='#'
5395 DEFAULT_TARGET_X86_64_OR_X32_FALSE
=
5398 if test "$targ_obj" = "tilegx"; then
5399 DEFAULT_TARGET_TILEGX_TRUE
=
5400 DEFAULT_TARGET_TILEGX_FALSE
='#'
5402 DEFAULT_TARGET_TILEGX_TRUE
='#'
5403 DEFAULT_TARGET_TILEGX_FALSE
=
5406 if test "$targ_obj" = "mips"; then
5407 DEFAULT_TARGET_MIPS_TRUE
=
5408 DEFAULT_TARGET_MIPS_FALSE
='#'
5410 DEFAULT_TARGET_MIPS_TRUE
='#'
5411 DEFAULT_TARGET_MIPS_FALSE
=
5414 DEFAULT_TARGET
=${targ_obj}
5421 # Remove any duplicates.
5423 for t
in $targetobjs; do
5431 if test -n "$targ_32_little"; then
5433 $as_echo "#define HAVE_TARGET_32_LITTLE 1" >>confdefs.h
5436 if test -n "$targ_32_big"; then
5438 $as_echo "#define HAVE_TARGET_32_BIG 1" >>confdefs.h
5441 if test -n "$targ_64_little"; then
5443 $as_echo "#define HAVE_TARGET_64_LITTLE 1" >>confdefs.h
5446 if test -n "$targ_64_big"; then
5448 $as_echo "#define HAVE_TARGET_64_BIG 1" >>confdefs.h
5452 if test -n "$all_targets"; then
5453 TARGETOBJS
='$(ALL_TARGETOBJS)'
5455 TARGETOBJS
="$targetobjs"
5460 cat >>confdefs.h
<<_ACEOF
5461 #define GOLD_DEFAULT_MACHINE $default_machine
5465 cat >>confdefs.h
<<_ACEOF
5466 #define GOLD_DEFAULT_SIZE $default_size
5470 cat >>confdefs.h
<<_ACEOF
5471 #define GOLD_DEFAULT_BIG_ENDIAN $default_big_endian
5475 cat >>confdefs.h
<<_ACEOF
5476 #define GOLD_DEFAULT_OSABI $default_osabi
5481 # Check whether --with-lib-path was given.
5482 if test "${with_lib_path+set}" = set; then :
5483 withval
=$with_lib_path; case "$withval" in
5484 yes) LIB_PATH
='"/lib:/usr/lib"' ;;
5485 no
) LIB_PATH
='""' ;;
5486 *) LIB_PATH
='"'"$withval"'"' ;;
5489 LIB_PATH
='"::DEFAULT::"'
5493 cat >>confdefs.h
<<_ACEOF
5494 #define LIB_PATH $LIB_PATH
5497 if test "x$target_alias" = "x" -o "x$host_alias" = "x$target_alias"; then
5499 $as_echo "#define NATIVE_LINKER 1" >>confdefs.h
5503 if test -n "$ac_tool_prefix"; then
5504 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
5505 set dummy
${ac_tool_prefix}nm
; ac_word
=$2
5506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5507 $as_echo_n "checking for $ac_word... " >&6; }
5508 if ${ac_cv_prog_NM+:} false
; then :
5509 $as_echo_n "(cached) " >&6
5511 if test -n "$NM"; then
5512 ac_cv_prog_NM
="$NM" # Let the user override the test.
5514 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5518 test -z "$as_dir" && as_dir
=.
5519 for ac_exec_ext
in '' $ac_executable_extensions; do
5520 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5521 ac_cv_prog_NM
="${ac_tool_prefix}nm"
5522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5532 if test -n "$NM"; then
5533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
5534 $as_echo "$NM" >&6; }
5536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5537 $as_echo "no" >&6; }
5542 if test -z "$ac_cv_prog_NM"; then
5544 # Extract the first word of "nm", so it can be a program name with args.
5545 set dummy nm
; ac_word
=$2
5546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5547 $as_echo_n "checking for $ac_word... " >&6; }
5548 if ${ac_cv_prog_ac_ct_NM+:} false
; then :
5549 $as_echo_n "(cached) " >&6
5551 if test -n "$ac_ct_NM"; then
5552 ac_cv_prog_ac_ct_NM
="$ac_ct_NM" # Let the user override the test.
5554 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5558 test -z "$as_dir" && as_dir
=.
5559 for ac_exec_ext
in '' $ac_executable_extensions; do
5560 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5561 ac_cv_prog_ac_ct_NM
="nm"
5562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5571 ac_ct_NM
=$ac_cv_prog_ac_ct_NM
5572 if test -n "$ac_ct_NM"; then
5573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5
5574 $as_echo "$ac_ct_NM" >&6; }
5576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5577 $as_echo "no" >&6; }
5580 if test "x$ac_ct_NM" = x
; then
5583 case $cross_compiling:$ac_tool_warned in
5585 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5586 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5587 ac_tool_warned
=yes ;;
5597 ac_cpp
='$CPP $CPPFLAGS'
5598 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5599 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5600 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5601 if test -n "$ac_tool_prefix"; then
5602 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5603 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
5604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5605 $as_echo_n "checking for $ac_word... " >&6; }
5606 if ${ac_cv_prog_CC+:} false
; then :
5607 $as_echo_n "(cached) " >&6
5609 if test -n "$CC"; then
5610 ac_cv_prog_CC
="$CC" # Let the user override the test.
5612 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5616 test -z "$as_dir" && as_dir
=.
5617 for ac_exec_ext
in '' $ac_executable_extensions; do
5618 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5619 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
5620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5630 if test -n "$CC"; then
5631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5632 $as_echo "$CC" >&6; }
5634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5635 $as_echo "no" >&6; }
5640 if test -z "$ac_cv_prog_CC"; then
5642 # Extract the first word of "gcc", so it can be a program name with args.
5643 set dummy gcc
; ac_word
=$2
5644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5645 $as_echo_n "checking for $ac_word... " >&6; }
5646 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
5647 $as_echo_n "(cached) " >&6
5649 if test -n "$ac_ct_CC"; then
5650 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
5652 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5656 test -z "$as_dir" && as_dir
=.
5657 for ac_exec_ext
in '' $ac_executable_extensions; do
5658 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5659 ac_cv_prog_ac_ct_CC
="gcc"
5660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5669 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
5670 if test -n "$ac_ct_CC"; then
5671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5672 $as_echo "$ac_ct_CC" >&6; }
5674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5675 $as_echo "no" >&6; }
5678 if test "x$ac_ct_CC" = x
; then
5681 case $cross_compiling:$ac_tool_warned in
5683 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5684 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5685 ac_tool_warned
=yes ;;
5693 if test -z "$CC"; then
5694 if test -n "$ac_tool_prefix"; then
5695 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5696 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
5697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5698 $as_echo_n "checking for $ac_word... " >&6; }
5699 if ${ac_cv_prog_CC+:} false
; then :
5700 $as_echo_n "(cached) " >&6
5702 if test -n "$CC"; then
5703 ac_cv_prog_CC
="$CC" # Let the user override the test.
5705 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5709 test -z "$as_dir" && as_dir
=.
5710 for ac_exec_ext
in '' $ac_executable_extensions; do
5711 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5712 ac_cv_prog_CC
="${ac_tool_prefix}cc"
5713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5723 if test -n "$CC"; then
5724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5725 $as_echo "$CC" >&6; }
5727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5728 $as_echo "no" >&6; }
5734 if test -z "$CC"; then
5735 # Extract the first word of "cc", so it can be a program name with args.
5736 set dummy cc
; ac_word
=$2
5737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5738 $as_echo_n "checking for $ac_word... " >&6; }
5739 if ${ac_cv_prog_CC+:} false
; then :
5740 $as_echo_n "(cached) " >&6
5742 if test -n "$CC"; then
5743 ac_cv_prog_CC
="$CC" # Let the user override the test.
5746 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5750 test -z "$as_dir" && as_dir
=.
5751 for ac_exec_ext
in '' $ac_executable_extensions; do
5752 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5753 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5754 ac_prog_rejected
=yes
5758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5765 if test $ac_prog_rejected = yes; then
5766 # We found a bogon in the path, so make sure we never use it.
5767 set dummy
$ac_cv_prog_CC
5769 if test $# != 0; then
5770 # We chose a different compiler from the bogus one.
5771 # However, it has the same basename, so the bogon will be chosen
5772 # first if we set CC to just the basename; use the full file name.
5774 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
5780 if test -n "$CC"; then
5781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5782 $as_echo "$CC" >&6; }
5784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5785 $as_echo "no" >&6; }
5790 if test -z "$CC"; then
5791 if test -n "$ac_tool_prefix"; then
5792 for ac_prog
in cl.exe
5794 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5795 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
5796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5797 $as_echo_n "checking for $ac_word... " >&6; }
5798 if ${ac_cv_prog_CC+:} false
; then :
5799 $as_echo_n "(cached) " >&6
5801 if test -n "$CC"; then
5802 ac_cv_prog_CC
="$CC" # Let the user override the test.
5804 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5808 test -z "$as_dir" && as_dir
=.
5809 for ac_exec_ext
in '' $ac_executable_extensions; do
5810 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5811 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
5812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5822 if test -n "$CC"; then
5823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5824 $as_echo "$CC" >&6; }
5826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5827 $as_echo "no" >&6; }
5831 test -n "$CC" && break
5834 if test -z "$CC"; then
5836 for ac_prog
in cl.exe
5838 # Extract the first word of "$ac_prog", so it can be a program name with args.
5839 set dummy
$ac_prog; ac_word
=$2
5840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5841 $as_echo_n "checking for $ac_word... " >&6; }
5842 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
5843 $as_echo_n "(cached) " >&6
5845 if test -n "$ac_ct_CC"; then
5846 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
5848 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5852 test -z "$as_dir" && as_dir
=.
5853 for ac_exec_ext
in '' $ac_executable_extensions; do
5854 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5855 ac_cv_prog_ac_ct_CC
="$ac_prog"
5856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5865 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
5866 if test -n "$ac_ct_CC"; then
5867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5868 $as_echo "$ac_ct_CC" >&6; }
5870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5871 $as_echo "no" >&6; }
5875 test -n "$ac_ct_CC" && break
5878 if test "x$ac_ct_CC" = x
; then
5881 case $cross_compiling:$ac_tool_warned in
5883 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5884 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5885 ac_tool_warned
=yes ;;
5894 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5895 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5896 as_fn_error $?
"no acceptable C compiler found in \$PATH
5897 See \`config.log' for more details" "$LINENO" 5; }
5899 # Provide some information about the compiler.
5900 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5903 for ac_option
in --version -v -V -qversion; do
5904 { { ac_try
="$ac_compiler $ac_option >&5"
5906 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5907 *) ac_try_echo=$ac_try;;
5909 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5910 $as_echo "$ac_try_echo"; } >&5
5911 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5913 if test -s conftest.err; then
5915 ... rest of stderr output deleted ...
5916 10q' conftest.err >conftest.er1
5917 cat conftest.er1 >&5
5919 rm -f conftest.er1 conftest.err
5920 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5921 test $ac_status = 0; }
5924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5925 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5926 if ${ac_cv_c_compiler_gnu+:} false; then :
5927 $as_echo_n "(cached) " >&6
5929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5930 /* end confdefs.h. */
5943 if ac_fn_c_try_compile "$LINENO"; then :
5948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5949 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5953 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5954 if test $ac_compiler_gnu = yes; then
5959 ac_test_CFLAGS=${CFLAGS+set}
5960 ac_save_CFLAGS=$CFLAGS
5961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5962 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5963 if ${ac_cv_prog_cc_g+:} false; then :
5964 $as_echo_n "(cached) " >&6
5966 ac_save_c_werror_flag=$ac_c_werror_flag
5967 ac_c_werror_flag=yes
5970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5971 /* end confdefs.h. */
5981 if ac_fn_c_try_compile "$LINENO"; then :
5985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5986 /* end confdefs.h. */
5996 if ac_fn_c_try_compile "$LINENO"; then :
5999 ac_c_werror_flag=$ac_save_c_werror_flag
6001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6002 /* end confdefs.h. */
6012 if ac_fn_c_try_compile "$LINENO"; then :
6015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6020 ac_c_werror_flag=$ac_save_c_werror_flag
6022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6023 $as_echo "$ac_cv_prog_cc_g" >&6; }
6024 if test "$ac_test_CFLAGS" = set; then
6025 CFLAGS=$ac_save_CFLAGS
6026 elif test $ac_cv_prog_cc_g = yes; then
6027 if test "$GCC" = yes; then
6033 if test "$GCC" = yes; then
6039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6040 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6041 if ${ac_cv_prog_cc_c89+:} false; then :
6042 $as_echo_n "(cached) " >&6
6044 ac_cv_prog_cc_c89=no
6046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6047 /* end confdefs.h. */
6051 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6052 struct buf { int x; };
6053 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6054 static char *e (p, i)
6060 static char *f (char * (*g) (char **, int), char **p, ...)
6065 s = g (p, va_arg (v,int));
6070 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6071 function prototypes and stuff, but not '\xHH' hex character constants.
6072 These don't provoke an error unfortunately, instead are silently treated
6073 as 'x'. The following induces an error, until -std is added to get
6074 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6075 array size at least. It's necessary to write '\x00'==0 to get something
6076 that's true only with -std. */
6077 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6079 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6080 inside strings and character constants. */
6082 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6084 int test (int i, double x);
6085 struct s1 {int (*f) (int a);};
6086 struct s2 {int (*f) (double a);};
6087 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6093 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6098 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6099 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6101 CC="$ac_save_CC $ac_arg"
6102 if ac_fn_c_try_compile "$LINENO"; then :
6103 ac_cv_prog_cc_c89=$ac_arg
6105 rm -f core conftest.err conftest.$ac_objext
6106 test "x$ac_cv_prog_cc_c89" != "xno" && break
6108 rm -f conftest.$ac_ext
6113 case "x$ac_cv_prog_cc_c89" in
6115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6116 $as_echo "none needed" >&6; } ;;
6118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6119 $as_echo "unsupported" >&6; } ;;
6121 CC="$CC $ac_cv_prog_cc_c89"
6122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6123 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6125 if test "x$ac_cv_prog_cc_c89" != xno; then :
6130 ac_cpp='$CPP $CPPFLAGS'
6131 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6132 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6133 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6136 ac_cpp='$CPP $CPPFLAGS'
6137 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6138 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6139 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
6141 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
6142 if ${am_cv_prog_cc_c_o+:} false; then :
6143 $as_echo_n "(cached) " >&6
6145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6146 /* end confdefs.h. */
6156 # Make sure it works both with $CC and with simple cc.
6157 # Following AC_PROG_CC_C_O, we do the test twice because some
6158 # compilers refuse to overwrite an existing .o file with -o,
6159 # though they will create one.
6160 am_cv_prog_cc_c_o=yes
6162 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
6163 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
6165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6166 (exit $ac_status); } \
6167 && test -f conftest2.$ac_objext; then
6170 am_cv_prog_cc_c_o=no
6174 rm -f core conftest*
6177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
6178 $as_echo "$am_cv_prog_cc_c_o" >&6; }
6179 if test "$am_cv_prog_cc_c_o" != yes; then
6180 # Losing compiler, so override with the script.
6181 # FIXME: It is wrong to rewrite CC.
6182 # But if we don't then we get into trouble of one sort or another.
6183 # A longer-term fix would be to have automake use am__CC in this case,
6184 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6185 CC="$am_aux_dir/compile $CC"
6188 ac_cpp='$CPP $CPPFLAGS'
6189 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6190 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6191 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6194 depcc="$CC" am_compiler_list=
6196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6197 $as_echo_n "checking dependency style of $depcc... " >&6; }
6198 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
6199 $as_echo_n "(cached) " >&6
6201 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6202 # We make a subdir and do the tests there. Otherwise we can end up
6203 # making bogus files that we don't know about and never remove. For
6204 # instance it was reported that on HP-UX the gcc test will end up
6205 # making a dummy file named 'D' -- because '-MD' means "put the output
6209 # Copy depcomp to subdir because otherwise we won't find it if we're
6210 # using a relative directory.
6211 cp "$am_depcomp" conftest.dir
6213 # We will build objects and dependencies in a subdirectory because
6214 # it helps to detect inapplicable dependency modes. For instance
6215 # both Tru64's cc and ICC support -MD to output dependencies as a
6216 # side effect of compilation, but ICC will put the dependencies in
6217 # the current directory while Tru64 will put them in the object
6221 am_cv_CC_dependencies_compiler_type=none
6222 if test "$am_compiler_list" = ""; then
6223 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < .
/depcomp
`
6226 case " $depcc " in #(
6227 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6230 for depmode in $am_compiler_list; do
6231 # Setup a source with many dependencies, because some compilers
6232 # like to wrap large dependency lists on column 80 (with \), and
6233 # we should not choose a depcomp mode which is confused by this.
6235 # We need to recreate these files for each test, as the compiler may
6236 # overwrite some of them when testing with obscure command lines.
6237 # This happens at least with the AIX C compiler.
6239 for i in 1 2 3 4 5 6; do
6240 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6241 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6242 # Solaris 10 /bin/sh.
6243 echo '/* dummy */' > sub/conftst$i.h
6245 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6247 # We check with '-c' and '-o' for the sake of the "dashmstdout"
6248 # mode. It turns out that the SunPro C++ compiler does not properly
6249 # handle '-M -o', and we need to detect this. Also, some Intel
6250 # versions had trouble with output in subdirs.
6251 am__obj=sub/conftest.${OBJEXT-o}
6252 am__minus_obj="-o $am__obj"
6255 # This depmode causes a compiler race in universal mode.
6256 test "$am__universal" = false || continue
6259 # After this tag, mechanisms are not by side-effect, so they'll
6260 # only be used when explicitly requested.
6261 if test "x$enable_dependency_tracking" = xyes; then
6267 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6268 # This compiler won't grok '-c -o', but also, the minuso test has
6269 # not run yet. These depmodes are late enough in the game, and
6270 # so weak that their functioning should not be impacted.
6271 am__obj=conftest.${OBJEXT-o}
6276 if depmode=$depmode \
6277 source=sub/conftest.c object=$am__obj \
6278 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6279 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6280 >/dev/null 2>conftest.err &&
6281 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6282 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6283 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6284 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6285 # icc doesn't choke on unknown options, it will just issue warnings
6286 # or remarks (even with -Werror). So we grep stderr for any message
6287 # that says an option was ignored or not supported.
6288 # When given -MP, icc 7.0 and 7.1 complain thusly:
6289 # icc: Command line warning: ignoring option '-M'; no argument required
6290 # The diagnosis changed in icc 8.0:
6291 # icc: Command line remark: option '-MP' not supported
6292 if (grep 'ignoring option' conftest.err ||
6293 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6294 am_cv_CC_dependencies_compiler_type=$depmode
6303 am_cv_CC_dependencies_compiler_type=none
6307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6308 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6309 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6312 test "x$enable_dependency_tracking" != xno \
6313 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6315 am__fastdepCC_FALSE='#'
6317 am__fastdepCC_TRUE='#'
6318 am__fastdepCC_FALSE=
6323 ac_cpp='$CXXCPP $CPPFLAGS'
6324 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6325 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6326 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6327 if test -z "$CXX"; then
6328 if test -n "$CCC"; then
6331 if test -n "$ac_tool_prefix"; then
6332 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6334 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6335 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6337 $as_echo_n "checking for $ac_word... " >&6; }
6338 if ${ac_cv_prog_CXX+:} false; then :
6339 $as_echo_n "(cached) " >&6
6341 if test -n "$CXX"; then
6342 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6348 test -z "$as_dir" && as_dir=.
6349 for ac_exec_ext in '' $ac_executable_extensions; do
6350 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6351 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6362 if test -n "$CXX"; then
6363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6364 $as_echo "$CXX" >&6; }
6366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6367 $as_echo "no" >&6; }
6371 test -n "$CXX" && break
6374 if test -z "$CXX"; then
6376 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6378 # Extract the first word of "$ac_prog", so it can be a program name with args.
6379 set dummy $ac_prog; ac_word=$2
6380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6381 $as_echo_n "checking for $ac_word... " >&6; }
6382 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
6383 $as_echo_n "(cached) " >&6
6385 if test -n "$ac_ct_CXX"; then
6386 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6392 test -z "$as_dir" && as_dir=.
6393 for ac_exec_ext in '' $ac_executable_extensions; do
6394 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6395 ac_cv_prog_ac_ct_CXX="$ac_prog"
6396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6405 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6406 if test -n "$ac_ct_CXX"; then
6407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6408 $as_echo "$ac_ct_CXX" >&6; }
6410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6411 $as_echo "no" >&6; }
6415 test -n "$ac_ct_CXX" && break
6418 if test "x$ac_ct_CXX" = x; then
6421 case $cross_compiling:$ac_tool_warned in
6423 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6424 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6425 ac_tool_warned=yes ;;
6433 # Provide some information about the compiler.
6434 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6437 for ac_option in --version -v -V -qversion; do
6438 { { ac_try="$ac_compiler $ac_option >&5"
6440 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6441 *) ac_try_echo
=$ac_try;;
6443 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6444 $as_echo "$ac_try_echo"; } >&5
6445 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6447 if test -s conftest.err
; then
6449 ... rest of stderr output deleted ...
6450 10q' conftest.err
>conftest.er1
6451 cat conftest.er1
>&5
6453 rm -f conftest.er1 conftest.err
6454 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6455 test $ac_status = 0; }
6458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6459 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
6460 if ${ac_cv_cxx_compiler_gnu+:} false
; then :
6461 $as_echo_n "(cached) " >&6
6463 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6464 /* end confdefs.h. */
6477 if ac_fn_cxx_try_compile
"$LINENO"; then :
6482 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6483 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
6486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6487 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6488 if test $ac_compiler_gnu = yes; then
6493 ac_test_CXXFLAGS
=${CXXFLAGS+set}
6494 ac_save_CXXFLAGS
=$CXXFLAGS
6495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6496 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
6497 if ${ac_cv_prog_cxx_g+:} false
; then :
6498 $as_echo_n "(cached) " >&6
6500 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
6501 ac_cxx_werror_flag
=yes
6504 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6505 /* end confdefs.h. */
6515 if ac_fn_cxx_try_compile
"$LINENO"; then :
6516 ac_cv_prog_cxx_g
=yes
6519 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6520 /* end confdefs.h. */
6530 if ac_fn_cxx_try_compile
"$LINENO"; then :
6533 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
6535 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6536 /* end confdefs.h. */
6546 if ac_fn_cxx_try_compile
"$LINENO"; then :
6547 ac_cv_prog_cxx_g
=yes
6549 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6551 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6553 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6554 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
6556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6557 $as_echo "$ac_cv_prog_cxx_g" >&6; }
6558 if test "$ac_test_CXXFLAGS" = set; then
6559 CXXFLAGS
=$ac_save_CXXFLAGS
6560 elif test $ac_cv_prog_cxx_g = yes; then
6561 if test "$GXX" = yes; then
6567 if test "$GXX" = yes; then
6574 ac_cpp
='$CPP $CPPFLAGS'
6575 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6576 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6577 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6579 depcc
="$CXX" am_compiler_list
=
6581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6582 $as_echo_n "checking dependency style of $depcc... " >&6; }
6583 if ${am_cv_CXX_dependencies_compiler_type+:} false
; then :
6584 $as_echo_n "(cached) " >&6
6586 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6587 # We make a subdir and do the tests there. Otherwise we can end up
6588 # making bogus files that we don't know about and never remove. For
6589 # instance it was reported that on HP-UX the gcc test will end up
6590 # making a dummy file named 'D' -- because '-MD' means "put the output
6594 # Copy depcomp to subdir because otherwise we won't find it if we're
6595 # using a relative directory.
6596 cp "$am_depcomp" conftest.dir
6598 # We will build objects and dependencies in a subdirectory because
6599 # it helps to detect inapplicable dependency modes. For instance
6600 # both Tru64's cc and ICC support -MD to output dependencies as a
6601 # side effect of compilation, but ICC will put the dependencies in
6602 # the current directory while Tru64 will put them in the object
6606 am_cv_CXX_dependencies_compiler_type
=none
6607 if test "$am_compiler_list" = ""; then
6608 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6611 case " $depcc " in #(
6612 *\
-arch\
*\
-arch\
*) am__universal
=true
;;
6615 for depmode
in $am_compiler_list; do
6616 # Setup a source with many dependencies, because some compilers
6617 # like to wrap large dependency lists on column 80 (with \), and
6618 # we should not choose a depcomp mode which is confused by this.
6620 # We need to recreate these files for each test, as the compiler may
6621 # overwrite some of them when testing with obscure command lines.
6622 # This happens at least with the AIX C compiler.
6624 for i
in 1 2 3 4 5 6; do
6625 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
6626 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6627 # Solaris 10 /bin/sh.
6628 echo '/* dummy */' > sub
/conftst
$i.h
6630 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6632 # We check with '-c' and '-o' for the sake of the "dashmstdout"
6633 # mode. It turns out that the SunPro C++ compiler does not properly
6634 # handle '-M -o', and we need to detect this. Also, some Intel
6635 # versions had trouble with output in subdirs.
6636 am__obj
=sub
/conftest.
${OBJEXT-o}
6637 am__minus_obj
="-o $am__obj"
6640 # This depmode causes a compiler race in universal mode.
6641 test "$am__universal" = false ||
continue
6644 # After this tag, mechanisms are not by side-effect, so they'll
6645 # only be used when explicitly requested.
6646 if test "x$enable_dependency_tracking" = xyes
; then
6652 msvc7 | msvc7msys | msvisualcpp | msvcmsys
)
6653 # This compiler won't grok '-c -o', but also, the minuso test has
6654 # not run yet. These depmodes are late enough in the game, and
6655 # so weak that their functioning should not be impacted.
6656 am__obj
=conftest.
${OBJEXT-o}
6661 if depmode
=$depmode \
6662 source=sub
/conftest.c object
=$am__obj \
6663 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
6664 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
6665 >/dev
/null
2>conftest.err
&&
6666 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
6667 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
6668 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
6669 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
6670 # icc doesn't choke on unknown options, it will just issue warnings
6671 # or remarks (even with -Werror). So we grep stderr for any message
6672 # that says an option was ignored or not supported.
6673 # When given -MP, icc 7.0 and 7.1 complain thusly:
6674 # icc: Command line warning: ignoring option '-M'; no argument required
6675 # The diagnosis changed in icc 8.0:
6676 # icc: Command line remark: option '-MP' not supported
6677 if (grep 'ignoring option' conftest.err ||
6678 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
6679 am_cv_CXX_dependencies_compiler_type
=$depmode
6688 am_cv_CXX_dependencies_compiler_type
=none
6692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6693 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6694 CXXDEPMODE
=depmode
=$am_cv_CXX_dependencies_compiler_type
6697 test "x$enable_dependency_tracking" != xno \
6698 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3
; then
6699 am__fastdepCXX_TRUE
=
6700 am__fastdepCXX_FALSE
='#'
6702 am__fastdepCXX_TRUE
='#'
6703 am__fastdepCXX_FALSE
=
6707 for ac_prog
in 'bison -y' byacc
6709 # Extract the first word of "$ac_prog", so it can be a program name with args.
6710 set dummy
$ac_prog; ac_word
=$2
6711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6712 $as_echo_n "checking for $ac_word... " >&6; }
6713 if ${ac_cv_prog_YACC+:} false
; then :
6714 $as_echo_n "(cached) " >&6
6716 if test -n "$YACC"; then
6717 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
6719 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6723 test -z "$as_dir" && as_dir
=.
6724 for ac_exec_ext
in '' $ac_executable_extensions; do
6725 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6726 ac_cv_prog_YACC
="$ac_prog"
6727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6736 YACC
=$ac_cv_prog_YACC
6737 if test -n "$YACC"; then
6738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
6739 $as_echo "$YACC" >&6; }
6741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6742 $as_echo "no" >&6; }
6746 test -n "$YACC" && break
6748 test -n "$YACC" || YACC
="yacc"
6750 if test -n "$ac_tool_prefix"; then
6751 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6752 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
6753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6754 $as_echo_n "checking for $ac_word... " >&6; }
6755 if ${ac_cv_prog_RANLIB+:} false
; then :
6756 $as_echo_n "(cached) " >&6
6758 if test -n "$RANLIB"; then
6759 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
6761 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6765 test -z "$as_dir" && as_dir
=.
6766 for ac_exec_ext
in '' $ac_executable_extensions; do
6767 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6768 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
6769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6778 RANLIB
=$ac_cv_prog_RANLIB
6779 if test -n "$RANLIB"; then
6780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6781 $as_echo "$RANLIB" >&6; }
6783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6784 $as_echo "no" >&6; }
6789 if test -z "$ac_cv_prog_RANLIB"; then
6790 ac_ct_RANLIB
=$RANLIB
6791 # Extract the first word of "ranlib", so it can be a program name with args.
6792 set dummy ranlib
; ac_word
=$2
6793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6794 $as_echo_n "checking for $ac_word... " >&6; }
6795 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
6796 $as_echo_n "(cached) " >&6
6798 if test -n "$ac_ct_RANLIB"; then
6799 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
6801 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6805 test -z "$as_dir" && as_dir
=.
6806 for ac_exec_ext
in '' $ac_executable_extensions; do
6807 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6808 ac_cv_prog_ac_ct_RANLIB
="ranlib"
6809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6818 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
6819 if test -n "$ac_ct_RANLIB"; then
6820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6821 $as_echo "$ac_ct_RANLIB" >&6; }
6823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6824 $as_echo "no" >&6; }
6827 if test "x$ac_ct_RANLIB" = x
; then
6830 case $cross_compiling:$ac_tool_warned in
6832 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6833 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6834 ac_tool_warned
=yes ;;
6836 RANLIB
=$ac_ct_RANLIB
6839 RANLIB
="$ac_cv_prog_RANLIB"
6843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6844 $as_echo_n "checking whether ln -s works... " >&6; }
6846 if test "$LN_S" = "ln -s"; then
6847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6848 $as_echo "yes" >&6; }
6850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6851 $as_echo "no, using $LN_S" >&6; }
6857 if test -n "$ac_aux_dir"; then
6858 case "$ac_aux_dir" in
6859 /*) MKINSTALLDIRS
="$ac_aux_dir/mkinstalldirs" ;;
6860 *) MKINSTALLDIRS
="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
6863 if test -z "$MKINSTALLDIRS"; then
6864 MKINSTALLDIRS
="\$(top_srcdir)/mkinstalldirs"
6869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
6870 $as_echo_n "checking whether NLS is requested... " >&6; }
6871 # Check whether --enable-nls was given.
6872 if test "${enable_nls+set}" = set; then :
6873 enableval
=$enable_nls; USE_NLS
=$enableval
6878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
6879 $as_echo "$USE_NLS" >&6; }
6886 # Prepare PATH_SEPARATOR.
6887 # The user is always right.
6888 if test "${PATH_SEPARATOR+set}" != set; then
6889 echo "#! /bin/sh" >conf$$.sh
6890 echo "exit 0" >>conf$$.sh
6892 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
6900 # Find out how to test for executable files. Don't use a zero-byte file,
6901 # as systems may use methods other than mode bits to determine executability.
6902 cat >conf$$.
file <<_ASEOF
6906 chmod +x conf$$.
file
6907 if test -x conf$$.
file >/dev
/null
2>&1; then
6908 ac_executable_p
="test -x"
6910 ac_executable_p
="test -f"
6914 # Extract the first word of "msgfmt", so it can be a program name with args.
6915 set dummy msgfmt
; ac_word
=$2
6916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6917 $as_echo_n "checking for $ac_word... " >&6; }
6918 if ${ac_cv_path_MSGFMT+:} false
; then :
6919 $as_echo_n "(cached) " >&6
6923 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
6926 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
6927 for ac_dir
in $PATH; do
6929 test -z "$ac_dir" && ac_dir
=.
6930 for ac_exec_ext
in '' $ac_executable_extensions; do
6931 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6932 if $ac_dir/$ac_word --statistics /dev
/null
>/dev
/null
2>&1 &&
6933 (if $ac_dir/$ac_word --statistics /dev
/null
2>&1 >/dev
/null |
grep usage
>/dev
/null
; then exit 1; else exit 0; fi); then
6934 ac_cv_path_MSGFMT
="$ac_dir/$ac_word$ac_exec_ext"
6941 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
=":"
6945 MSGFMT
="$ac_cv_path_MSGFMT"
6946 if test "$MSGFMT" != ":"; then
6947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
6948 $as_echo "$MSGFMT" >&6; }
6950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6951 $as_echo "no" >&6; }
6954 # Extract the first word of "gmsgfmt", so it can be a program name with args.
6955 set dummy gmsgfmt
; ac_word
=$2
6956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6957 $as_echo_n "checking for $ac_word... " >&6; }
6958 if ${ac_cv_path_GMSGFMT+:} false
; then :
6959 $as_echo_n "(cached) " >&6
6963 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
6966 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6970 test -z "$as_dir" && as_dir
=.
6971 for ac_exec_ext
in '' $ac_executable_extensions; do
6972 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6973 ac_cv_path_GMSGFMT
="$as_dir/$ac_word$ac_exec_ext"
6974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6981 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
6985 GMSGFMT
=$ac_cv_path_GMSGFMT
6986 if test -n "$GMSGFMT"; then
6987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
6988 $as_echo "$GMSGFMT" >&6; }
6990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6991 $as_echo "no" >&6; }
6997 # Prepare PATH_SEPARATOR.
6998 # The user is always right.
6999 if test "${PATH_SEPARATOR+set}" != set; then
7000 echo "#! /bin/sh" >conf$$.sh
7001 echo "exit 0" >>conf$$.sh
7003 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
7011 # Find out how to test for executable files. Don't use a zero-byte file,
7012 # as systems may use methods other than mode bits to determine executability.
7013 cat >conf$$.
file <<_ASEOF
7017 chmod +x conf$$.
file
7018 if test -x conf$$.
file >/dev
/null
2>&1; then
7019 ac_executable_p
="test -x"
7021 ac_executable_p
="test -f"
7025 # Extract the first word of "xgettext", so it can be a program name with args.
7026 set dummy xgettext
; ac_word
=$2
7027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7028 $as_echo_n "checking for $ac_word... " >&6; }
7029 if ${ac_cv_path_XGETTEXT+:} false
; then :
7030 $as_echo_n "(cached) " >&6
7034 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
7037 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
7038 for ac_dir
in $PATH; do
7040 test -z "$ac_dir" && ac_dir
=.
7041 for ac_exec_ext
in '' $ac_executable_extensions; do
7042 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7043 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev
/null
>/dev
/null
2>&1 &&
7044 (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
7045 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word$ac_exec_ext"
7052 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
7056 XGETTEXT
="$ac_cv_path_XGETTEXT"
7057 if test "$XGETTEXT" != ":"; then
7058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
7059 $as_echo "$XGETTEXT" >&6; }
7061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7062 $as_echo "no" >&6; }
7068 # Prepare PATH_SEPARATOR.
7069 # The user is always right.
7070 if test "${PATH_SEPARATOR+set}" != set; then
7071 echo "#! /bin/sh" >conf$$.sh
7072 echo "exit 0" >>conf$$.sh
7074 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
7082 # Find out how to test for executable files. Don't use a zero-byte file,
7083 # as systems may use methods other than mode bits to determine executability.
7084 cat >conf$$.
file <<_ASEOF
7088 chmod +x conf$$.
file
7089 if test -x conf$$.
file >/dev
/null
2>&1; then
7090 ac_executable_p
="test -x"
7092 ac_executable_p
="test -f"
7096 # Extract the first word of "msgmerge", so it can be a program name with args.
7097 set dummy msgmerge
; ac_word
=$2
7098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7099 $as_echo_n "checking for $ac_word... " >&6; }
7100 if ${ac_cv_path_MSGMERGE+:} false
; then :
7101 $as_echo_n "(cached) " >&6
7105 ac_cv_path_MSGMERGE
="$MSGMERGE" # Let the user override the test with a path.
7108 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
7109 for ac_dir
in $PATH; do
7111 test -z "$ac_dir" && ac_dir
=.
7112 for ac_exec_ext
in '' $ac_executable_extensions; do
7113 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7114 if $ac_dir/$ac_word --update -q /dev
/null
/dev
/null
>/dev
/null
2>&1; then
7115 ac_cv_path_MSGMERGE
="$ac_dir/$ac_word$ac_exec_ext"
7122 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE
=":"
7126 MSGMERGE
="$ac_cv_path_MSGMERGE"
7127 if test "$MSGMERGE" != ":"; then
7128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
7129 $as_echo "$MSGMERGE" >&6; }
7131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7132 $as_echo "no" >&6; }
7136 if test "$GMSGFMT" != ":"; then
7137 if $GMSGFMT --statistics /dev
/null
>/dev
/null
2>&1 &&
7138 (if $GMSGFMT --statistics /dev
/null
2>&1 >/dev
/null |
grep usage
>/dev
/null
; then exit 1; else exit 0; fi); then
7141 GMSGFMT
=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
7142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
7143 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
7148 if test "$XGETTEXT" != ":"; then
7149 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev
/null
>/dev
/null
2>&1 &&
7150 (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
7153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
7154 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
7160 ac_config_commands
="$ac_config_commands default-1"
7164 if test "X$prefix" = "XNONE"; then
7165 acl_final_prefix
="$ac_default_prefix"
7167 acl_final_prefix
="$prefix"
7169 if test "X$exec_prefix" = "XNONE"; then
7170 acl_final_exec_prefix
='${prefix}'
7172 acl_final_exec_prefix
="$exec_prefix"
7174 acl_save_prefix
="$prefix"
7175 prefix
="$acl_final_prefix"
7176 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
7177 prefix
="$acl_save_prefix"
7180 # Check whether --with-gnu-ld was given.
7181 if test "${with_gnu_ld+set}" = set; then :
7182 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
7187 # Prepare PATH_SEPARATOR.
7188 # The user is always right.
7189 if test "${PATH_SEPARATOR+set}" != set; then
7190 echo "#! /bin/sh" >conf$$.sh
7191 echo "exit 0" >>conf$$.sh
7193 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
7201 if test "$GCC" = yes; then
7202 # Check if gcc -print-prog-name=ld gives a path.
7203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
7204 $as_echo_n "checking for ld used by GCC... " >&6; }
7207 # gcc leaves a trailing carriage return which upsets mingw
7208 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7210 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
7213 # Accept absolute paths.
7214 [\\/]* |
[A-Za-z
]:[\\/]*)
7215 re_direlt
='/[^/][^/]*/\.\./'
7216 # Canonicalize the path of ld
7217 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
7218 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
7219 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
7221 test -z "$LD" && LD
="$ac_prog"
7224 # If it fails, then pretend we aren't using GCC.
7228 # If it is relative, then search for the first ld in PATH.
7232 elif test "$with_gnu_ld" = yes; then
7233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7234 $as_echo_n "checking for GNU ld... " >&6; }
7236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7237 $as_echo_n "checking for non-GNU ld... " >&6; }
7239 if ${acl_cv_path_LD+:} false
; then :
7240 $as_echo_n "(cached) " >&6
7242 if test -z "$LD"; then
7243 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
7244 for ac_dir
in $PATH; do
7245 test -z "$ac_dir" && ac_dir
=.
7246 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
7247 acl_cv_path_LD
="$ac_dir/$ac_prog"
7248 # Check to see if the program is GNU ld. I'd rather use --version,
7249 # but apparently some GNU ld's only accept -v.
7250 # Break only if it was the GNU/non-GNU ld that we prefer.
7251 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
$EGREP '(GNU|with BFD)' > /dev
/null
; then
7252 test "$with_gnu_ld" != no
&& break
7254 test "$with_gnu_ld" != yes && break
7260 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
7264 LD
="$acl_cv_path_LD"
7265 if test -n "$LD"; then
7266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7267 $as_echo "$LD" >&6; }
7269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7270 $as_echo "no" >&6; }
7272 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
7273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7274 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7275 if ${acl_cv_prog_gnu_ld+:} false
; then :
7276 $as_echo_n "(cached) " >&6
7278 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
7279 if $LD -v 2>&1 </dev
/null |
$EGREP '(GNU|with BFD)' 1>&5; then
7280 acl_cv_prog_gnu_ld
=yes
7282 acl_cv_prog_gnu_ld
=no
7285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
7286 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
7287 with_gnu_ld
=$acl_cv_prog_gnu_ld
7291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
7292 $as_echo_n "checking for shared library run path origin... " >&6; }
7293 if ${acl_cv_rpath+:} false
; then :
7294 $as_echo_n "(cached) " >&6
7297 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
7298 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
7305 $as_echo "$acl_cv_rpath" >&6; }
7307 libext
="$acl_cv_libext"
7308 shlibext
="$acl_cv_shlibext"
7309 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
7310 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
7311 hardcode_direct
="$acl_cv_hardcode_direct"
7312 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
7313 # Check whether --enable-rpath was given.
7314 if test "${enable_rpath+set}" = set; then :
7315 enableval
=$enable_rpath; :
7329 acl_save_prefix
="$prefix"
7330 prefix
="$acl_final_prefix"
7331 acl_save_exec_prefix
="$exec_prefix"
7332 exec_prefix
="$acl_final_exec_prefix"
7334 eval additional_includedir
=\"$includedir\"
7335 eval additional_libdir
=\"$libdir\"
7337 exec_prefix
="$acl_save_exec_prefix"
7338 prefix
="$acl_save_prefix"
7341 # Check whether --with-libiconv-prefix was given.
7342 if test "${with_libiconv_prefix+set}" = set; then :
7343 withval
=$with_libiconv_prefix;
7344 if test "X$withval" = "Xno"; then
7347 if test "X$withval" = "X"; then
7349 acl_save_prefix
="$prefix"
7350 prefix
="$acl_final_prefix"
7351 acl_save_exec_prefix
="$exec_prefix"
7352 exec_prefix
="$acl_final_exec_prefix"
7354 eval additional_includedir
=\"$includedir\"
7355 eval additional_libdir
=\"$libdir\"
7357 exec_prefix
="$acl_save_exec_prefix"
7358 prefix
="$acl_save_prefix"
7361 additional_includedir
="$withval/include"
7362 additional_libdir
="$withval/lib"
7369 # Check whether --with-libiconv-type was given.
7370 if test "${with_libiconv_type+set}" = set; then :
7371 withval
=$with_libiconv_type; with_libiconv_type
=$withval
7373 with_libiconv_type
=auto
7376 lib_type
=`eval echo \$with_libiconv_type`
7383 names_already_handled
=
7384 names_next_round
='iconv '
7385 while test -n "$names_next_round"; do
7386 names_this_round
="$names_next_round"
7388 for name
in $names_this_round; do
7390 for n
in $names_already_handled; do
7391 if test "$n" = "$name"; then
7396 if test -z "$already_handled"; then
7397 names_already_handled
="$names_already_handled $name"
7398 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7399 eval value
=\"\
$HAVE_LIB$uppername\"
7400 if test -n "$value"; then
7401 if test "$value" = yes; then
7402 eval value
=\"\
$LIB$uppername\"
7403 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
7404 eval value
=\"\
$LTLIB$uppername\"
7405 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
7414 if test $use_additional = yes; then
7415 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
7416 found_dir
="$additional_libdir"
7417 found_so
="$additional_libdir/lib$name.$shlibext"
7418 if test -f "$additional_libdir/lib$name.la"; then
7419 found_la
="$additional_libdir/lib$name.la"
7421 elif test x
$lib_type != xshared
; then
7422 if test -f "$additional_libdir/lib$name.$libext"; then
7423 found_dir
="$additional_libdir"
7424 found_a
="$additional_libdir/lib$name.$libext"
7425 if test -f "$additional_libdir/lib$name.la"; then
7426 found_la
="$additional_libdir/lib$name.la"
7431 if test "X$found_dir" = "X"; then
7432 for x
in $LDFLAGS $LTLIBICONV; do
7434 acl_save_prefix
="$prefix"
7435 prefix
="$acl_final_prefix"
7436 acl_save_exec_prefix
="$exec_prefix"
7437 exec_prefix
="$acl_final_exec_prefix"
7439 exec_prefix
="$acl_save_exec_prefix"
7440 prefix
="$acl_save_prefix"
7444 dir
=`echo "X$x" | sed -e 's/^X-L//'`
7445 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
7447 found_so
="$dir/lib$name.$shlibext"
7448 if test -f "$dir/lib$name.la"; then
7449 found_la
="$dir/lib$name.la"
7451 elif test x
$lib_type != xshared
; then
7452 if test -f "$dir/lib$name.$libext"; then
7454 found_a
="$dir/lib$name.$libext"
7455 if test -f "$dir/lib$name.la"; then
7456 found_la
="$dir/lib$name.la"
7462 if test "X$found_dir" != "X"; then
7467 if test "X$found_dir" != "X"; then
7468 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
7469 if test "X$found_so" != "X"; then
7470 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
7471 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
7474 for x
in $ltrpathdirs; do
7475 if test "X$x" = "X$found_dir"; then
7480 if test -z "$haveit"; then
7481 ltrpathdirs
="$ltrpathdirs $found_dir"
7483 if test "$hardcode_direct" = yes; then
7484 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
7486 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
7487 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
7489 for x
in $rpathdirs; do
7490 if test "X$x" = "X$found_dir"; then
7495 if test -z "$haveit"; then
7496 rpathdirs
="$rpathdirs $found_dir"
7500 for x
in $LDFLAGS $LIBICONV; do
7502 acl_save_prefix
="$prefix"
7503 prefix
="$acl_final_prefix"
7504 acl_save_exec_prefix
="$exec_prefix"
7505 exec_prefix
="$acl_final_exec_prefix"
7507 exec_prefix
="$acl_save_exec_prefix"
7508 prefix
="$acl_save_prefix"
7510 if test "X$x" = "X-L$found_dir"; then
7515 if test -z "$haveit"; then
7516 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
7518 if test "$hardcode_minus_L" != no
; then
7519 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
7521 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
7527 if test "X$found_a" != "X"; then
7528 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
7530 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
7533 additional_includedir
=
7534 case "$found_dir" in
7536 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
7537 additional_includedir
="$basedir/include"
7540 if test "X$additional_includedir" != "X"; then
7541 if test "X$additional_includedir" != "X/usr/include"; then
7543 if test "X$additional_includedir" = "X/usr/local/include"; then
7544 if test -n "$GCC"; then
7546 linux
*) haveit
=yes;;
7550 if test -z "$haveit"; then
7551 for x
in $CPPFLAGS $INCICONV; do
7553 acl_save_prefix
="$prefix"
7554 prefix
="$acl_final_prefix"
7555 acl_save_exec_prefix
="$exec_prefix"
7556 exec_prefix
="$acl_final_exec_prefix"
7558 exec_prefix
="$acl_save_exec_prefix"
7559 prefix
="$acl_save_prefix"
7561 if test "X$x" = "X-I$additional_includedir"; then
7566 if test -z "$haveit"; then
7567 if test -d "$additional_includedir"; then
7568 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
7574 if test -n "$found_la"; then
7575 save_libdir
="$libdir"
7577 */* |
*\\*) .
"$found_la" ;;
7578 *) .
"./$found_la" ;;
7580 libdir
="$save_libdir"
7581 for dep
in $dependency_libs; do
7584 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
7585 if test "X$additional_libdir" != "X/usr/lib"; then
7587 if test "X$additional_libdir" = "X/usr/local/lib"; then
7588 if test -n "$GCC"; then
7590 linux
*) haveit
=yes;;
7594 if test -z "$haveit"; then
7596 for x
in $LDFLAGS $LIBICONV; do
7598 acl_save_prefix
="$prefix"
7599 prefix
="$acl_final_prefix"
7600 acl_save_exec_prefix
="$exec_prefix"
7601 exec_prefix
="$acl_final_exec_prefix"
7603 exec_prefix
="$acl_save_exec_prefix"
7604 prefix
="$acl_save_prefix"
7606 if test "X$x" = "X-L$additional_libdir"; then
7611 if test -z "$haveit"; then
7612 if test -d "$additional_libdir"; then
7613 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
7617 for x
in $LDFLAGS $LTLIBICONV; do
7619 acl_save_prefix
="$prefix"
7620 prefix
="$acl_final_prefix"
7621 acl_save_exec_prefix
="$exec_prefix"
7622 exec_prefix
="$acl_final_exec_prefix"
7624 exec_prefix
="$acl_save_exec_prefix"
7625 prefix
="$acl_save_prefix"
7627 if test "X$x" = "X-L$additional_libdir"; then
7632 if test -z "$haveit"; then
7633 if test -d "$additional_libdir"; then
7634 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
7641 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
7642 if test "$enable_rpath" != no
; then
7644 for x
in $rpathdirs; do
7645 if test "X$x" = "X$dir"; then
7650 if test -z "$haveit"; then
7651 rpathdirs
="$rpathdirs $dir"
7654 for x
in $ltrpathdirs; do
7655 if test "X$x" = "X$dir"; then
7660 if test -z "$haveit"; then
7661 ltrpathdirs
="$ltrpathdirs $dir"
7666 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7669 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7672 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
7673 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
7679 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
7680 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
7681 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
7683 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l:lib$name.$libext"
7684 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l:lib$name.$libext"
7691 if test "X$rpathdirs" != "X"; then
7692 if test -n "$hardcode_libdir_separator"; then
7694 for found_dir
in $rpathdirs; do
7695 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
7697 acl_save_libdir
="$libdir"
7699 eval flag
=\"$hardcode_libdir_flag_spec\"
7700 libdir
="$acl_save_libdir"
7701 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
7703 for found_dir
in $rpathdirs; do
7704 acl_save_libdir
="$libdir"
7706 eval flag
=\"$hardcode_libdir_flag_spec\"
7707 libdir
="$acl_save_libdir"
7708 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
7712 if test "X$ltrpathdirs" != "X"; then
7713 for found_dir
in $ltrpathdirs; do
7714 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
7722 if test -f ..
/gettext
/uninstalled-config.sh
; then
7723 relative_builddir
='$(top_builddir)/../gettext'
7724 . ..
/gettext
/uninstalled-config.sh
7726 # The sister gettext directory doesn't exist and won't collect information on
7727 # using gettext for us. Call a bundled AM_GNU_GETTEXT.
7751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
7752 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
7753 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false
; then :
7754 $as_echo_n "(cached) " >&6
7756 gt_save_LIBS
="$LIBS"
7757 LIBS
="$LIBS -Wl,-framework -Wl,CoreFoundation"
7758 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7759 /* end confdefs.h. */
7760 #include <CoreFoundation/CFPreferences.h>
7764 CFPreferencesCopyAppValue(NULL, NULL)
7769 if ac_fn_c_try_link
"$LINENO"; then :
7770 gt_cv_func_CFPreferencesCopyAppValue
=yes
7772 gt_cv_func_CFPreferencesCopyAppValue
=no
7774 rm -f core conftest.err conftest.
$ac_objext \
7775 conftest
$ac_exeext conftest.
$ac_ext
7776 LIBS
="$gt_save_LIBS"
7778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
7779 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
7780 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
7782 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
7785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyPreferredLanguages" >&5
7786 $as_echo_n "checking for CFLocaleCopyPreferredLanguages... " >&6; }
7787 if ${gt_cv_func_CFLocaleCopyPreferredLanguages+:} false
; then :
7788 $as_echo_n "(cached) " >&6
7790 gt_save_LIBS
="$LIBS"
7791 LIBS
="$LIBS -Wl,-framework -Wl,CoreFoundation"
7792 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7793 /* end confdefs.h. */
7794 #include <CoreFoundation/CFLocale.h>
7798 CFLocaleCopyPreferredLanguages();
7803 if ac_fn_c_try_link
"$LINENO"; then :
7804 gt_cv_func_CFLocaleCopyPreferredLanguages
=yes
7806 gt_cv_func_CFLocaleCopyPreferredLanguages
=no
7808 rm -f core conftest.err conftest.
$ac_objext \
7809 conftest
$ac_exeext conftest.
$ac_ext
7810 LIBS
="$gt_save_LIBS"
7812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyPreferredLanguages" >&5
7813 $as_echo "$gt_cv_func_CFLocaleCopyPreferredLanguages" >&6; }
7814 if test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
7816 $as_echo "#define HAVE_CFLOCALECOPYPREFERREDLANGUAGES 1" >>confdefs.h
7820 if test $gt_cv_func_CFPreferencesCopyAppValue = yes \
7821 ||
test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
7822 INTL_MACOSX_LIBS
="-Wl,-framework -Wl,CoreFoundation -Wl,-framework -Wl,CoreServices"
7834 case " $gt_needs " in
7835 *" need-formatstring-macros "*) gt_api_version
=3 ;;
7836 *" need-ngettext "*) gt_api_version
=2 ;;
7837 *) gt_api_version
=1 ;;
7839 gt_func_gnugettext_libc
="gt_cv_func_gnugettext${gt_api_version}_libc"
7840 gt_func_gnugettext_libintl
="gt_cv_func_gnugettext${gt_api_version}_libintl"
7842 if test "$USE_NLS" = "yes"; then
7843 gt_use_preinstalled_gnugettext
=no
7846 if test $gt_api_version -ge 3; then
7847 gt_revision_test_code
='
7848 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
7849 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
7851 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
7854 gt_revision_test_code
=
7856 if test $gt_api_version -ge 2; then
7857 gt_expression_test_code
=' + * ngettext ("", "", 0)'
7859 gt_expression_test_code
=
7862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
7863 $as_echo_n "checking for GNU gettext in libc... " >&6; }
7864 if eval \
${$gt_func_gnugettext_libc+:} false
; then :
7865 $as_echo_n "(cached) " >&6
7867 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7868 /* end confdefs.h. */
7870 #include <libintl.h>
7871 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
7872 extern int _nl_msg_cat_cntr;
7873 extern int *_nl_domain_bindings;
7874 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_domain_bindings)
7876 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
7878 $gt_revision_test_code
7884 bindtextdomain ("", "");
7885 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
7891 if ac_fn_c_try_link
"$LINENO"; then :
7892 eval "$gt_func_gnugettext_libc=yes"
7894 eval "$gt_func_gnugettext_libc=no"
7896 rm -f core conftest.err conftest.
$ac_objext \
7897 conftest
$ac_exeext conftest.
$ac_ext
7899 eval ac_res
=\$
$gt_func_gnugettext_libc
7900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7901 $as_echo "$ac_res" >&6; }
7903 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
7909 am_save_CPPFLAGS
="$CPPFLAGS"
7911 for element
in $INCICONV; do
7913 for x
in $CPPFLAGS; do
7915 acl_save_prefix
="$prefix"
7916 prefix
="$acl_final_prefix"
7917 acl_save_exec_prefix
="$exec_prefix"
7918 exec_prefix
="$acl_final_exec_prefix"
7920 exec_prefix
="$acl_save_exec_prefix"
7921 prefix
="$acl_save_prefix"
7923 if test "X$x" = "X$element"; then
7928 if test -z "$haveit"; then
7929 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
7934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
7935 $as_echo_n "checking for iconv... " >&6; }
7936 if ${am_cv_func_iconv+:} false
; then :
7937 $as_echo_n "(cached) " >&6
7940 am_cv_func_iconv
="no, consider installing GNU libiconv"
7942 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7943 /* end confdefs.h. */
7951 iconv_t cd = iconv_open("","");
7952 iconv(cd,NULL,NULL,NULL,NULL);
7958 if ac_fn_c_try_link
"$LINENO"; then :
7959 am_cv_func_iconv
=yes
7961 rm -f core conftest.err conftest.
$ac_objext \
7962 conftest
$ac_exeext conftest.
$ac_ext
7963 if test "$am_cv_func_iconv" != yes; then
7964 am_save_LIBS
="$LIBS"
7965 LIBS
="$LIBS $LIBICONV"
7966 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7967 /* end confdefs.h. */
7975 iconv_t cd = iconv_open("","");
7976 iconv(cd,NULL,NULL,NULL,NULL);
7982 if ac_fn_c_try_link
"$LINENO"; then :
7984 am_cv_func_iconv
=yes
7986 rm -f core conftest.err conftest.
$ac_objext \
7987 conftest
$ac_exeext conftest.
$ac_ext
7988 LIBS
="$am_save_LIBS"
7992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
7993 $as_echo "$am_cv_func_iconv" >&6; }
7994 if test "$am_cv_func_iconv" = yes; then
7995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
7996 $as_echo_n "checking for working iconv... " >&6; }
7997 if ${am_cv_func_iconv_works+:} false
; then :
7998 $as_echo_n "(cached) " >&6
8001 am_save_LIBS
="$LIBS"
8002 if test $am_cv_lib_iconv = yes; then
8003 LIBS
="$LIBS $LIBICONV"
8005 am_cv_func_iconv_works
=no
8006 for ac_iconv_const
in '' 'const'; do
8007 if test "$cross_compiling" = yes; then :
8009 aix
* | hpux
*) am_cv_func_iconv_works
="guessing no" ;;
8010 *) am_cv_func_iconv_works
="guessing yes" ;;
8013 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8014 /* end confdefs.h. */
8020 # define ICONV_CONST $ac_iconv_const
8027 /* Test against AIX 5.1...7.2 bug: Failures are not distinguishable from
8028 successful returns. This is even documented in
8029 <https://www.ibm.com/support/knowledgecenter/ssw_aix_72/i_bostechref/iconv.html> */
8031 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
8032 if (cd_utf8_to_88591 != (iconv_t)(-1))
8034 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
8036 ICONV_CONST char *inptr = input;
8037 size_t inbytesleft = strlen (input);
8039 size_t outbytesleft = sizeof (buf);
8040 size_t res = iconv (cd_utf8_to_88591,
8041 &inptr, &inbytesleft,
8042 &outptr, &outbytesleft);
8045 iconv_close (cd_utf8_to_88591);
8048 /* Test against Solaris 10 bug: Failures are not distinguishable from
8049 successful returns. */
8051 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
8052 if (cd_ascii_to_88591 != (iconv_t)(-1))
8054 static ICONV_CONST char input[] = "\263";
8056 ICONV_CONST char *inptr = input;
8057 size_t inbytesleft = strlen (input);
8059 size_t outbytesleft = sizeof (buf);
8060 size_t res = iconv (cd_ascii_to_88591,
8061 &inptr, &inbytesleft,
8062 &outptr, &outbytesleft);
8065 iconv_close (cd_ascii_to_88591);
8068 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
8070 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
8071 if (cd_88591_to_utf8 != (iconv_t)(-1))
8073 static ICONV_CONST char input[] = "\304";
8074 static char buf[2] = { (char)0xDE, (char)0xAD };
8075 ICONV_CONST char *inptr = input;
8076 size_t inbytesleft = 1;
8078 size_t outbytesleft = 1;
8079 size_t res = iconv (cd_88591_to_utf8,
8080 &inptr, &inbytesleft,
8081 &outptr, &outbytesleft);
8082 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
8084 iconv_close (cd_88591_to_utf8);
8087 #if 0 /* This bug could be worked around by the caller. */
8088 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
8090 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
8091 if (cd_88591_to_utf8 != (iconv_t)(-1))
8093 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
8095 ICONV_CONST char *inptr = input;
8096 size_t inbytesleft = strlen (input);
8098 size_t outbytesleft = sizeof (buf);
8099 size_t res = iconv (cd_88591_to_utf8,
8100 &inptr, &inbytesleft,
8101 &outptr, &outbytesleft);
8104 iconv_close (cd_88591_to_utf8);
8108 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
8111 /* Try standardized names. */
8112 iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP");
8113 /* Try IRIX, OSF/1 names. */
8114 iconv_t cd2 = iconv_open ("UTF-8", "eucJP");
8115 /* Try AIX names. */
8116 iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP");
8117 /* Try HP-UX names. */
8118 iconv_t cd4 = iconv_open ("utf8", "eucJP");
8119 if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1)
8120 && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1))
8122 if (cd1 != (iconv_t)(-1))
8124 if (cd2 != (iconv_t)(-1))
8126 if (cd3 != (iconv_t)(-1))
8128 if (cd4 != (iconv_t)(-1))
8137 if ac_fn_c_try_run
"$LINENO"; then :
8138 am_cv_func_iconv_works
=yes
8140 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8141 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8144 test "$am_cv_func_iconv_works" = no ||
break
8146 LIBS
="$am_save_LIBS"
8149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
8150 $as_echo "$am_cv_func_iconv_works" >&6; }
8151 case "$am_cv_func_iconv_works" in
8152 *no
) am_func_iconv
=no am_cv_lib_iconv
=no
;;
8153 *) am_func_iconv
=yes ;;
8156 am_func_iconv
=no am_cv_lib_iconv
=no
8158 if test "$am_func_iconv" = yes; then
8160 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
8163 if test "$am_cv_lib_iconv" = yes; then
8164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
8165 $as_echo_n "checking how to link with libiconv... " >&6; }
8166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
8167 $as_echo "$LIBICONV" >&6; }
8169 CPPFLAGS
="$am_save_CPPFLAGS"
8181 acl_save_prefix
="$prefix"
8182 prefix
="$acl_final_prefix"
8183 acl_save_exec_prefix
="$exec_prefix"
8184 exec_prefix
="$acl_final_exec_prefix"
8186 eval additional_includedir
=\"$includedir\"
8187 eval additional_libdir
=\"$libdir\"
8189 exec_prefix
="$acl_save_exec_prefix"
8190 prefix
="$acl_save_prefix"
8193 # Check whether --with-libintl-prefix was given.
8194 if test "${with_libintl_prefix+set}" = set; then :
8195 withval
=$with_libintl_prefix;
8196 if test "X$withval" = "Xno"; then
8199 if test "X$withval" = "X"; then
8201 acl_save_prefix
="$prefix"
8202 prefix
="$acl_final_prefix"
8203 acl_save_exec_prefix
="$exec_prefix"
8204 exec_prefix
="$acl_final_exec_prefix"
8206 eval additional_includedir
=\"$includedir\"
8207 eval additional_libdir
=\"$libdir\"
8209 exec_prefix
="$acl_save_exec_prefix"
8210 prefix
="$acl_save_prefix"
8213 additional_includedir
="$withval/include"
8214 additional_libdir
="$withval/lib"
8221 # Check whether --with-libintl-type was given.
8222 if test "${with_libintl_type+set}" = set; then :
8223 withval
=$with_libintl_type; with_libintl_type
=$withval
8225 with_libintl_type
=auto
8228 lib_type
=`eval echo \$with_libintl_type`
8235 names_already_handled
=
8236 names_next_round
='intl '
8237 while test -n "$names_next_round"; do
8238 names_this_round
="$names_next_round"
8240 for name
in $names_this_round; do
8242 for n
in $names_already_handled; do
8243 if test "$n" = "$name"; then
8248 if test -z "$already_handled"; then
8249 names_already_handled
="$names_already_handled $name"
8250 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8251 eval value
=\"\
$HAVE_LIB$uppername\"
8252 if test -n "$value"; then
8253 if test "$value" = yes; then
8254 eval value
=\"\
$LIB$uppername\"
8255 test -z "$value" || LIBINTL
="${LIBINTL}${LIBINTL:+ }$value"
8256 eval value
=\"\
$LTLIB$uppername\"
8257 test -z "$value" || LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }$value"
8266 if test $use_additional = yes; then
8267 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
8268 found_dir
="$additional_libdir"
8269 found_so
="$additional_libdir/lib$name.$shlibext"
8270 if test -f "$additional_libdir/lib$name.la"; then
8271 found_la
="$additional_libdir/lib$name.la"
8273 elif test x
$lib_type != xshared
; then
8274 if test -f "$additional_libdir/lib$name.$libext"; then
8275 found_dir
="$additional_libdir"
8276 found_a
="$additional_libdir/lib$name.$libext"
8277 if test -f "$additional_libdir/lib$name.la"; then
8278 found_la
="$additional_libdir/lib$name.la"
8283 if test "X$found_dir" = "X"; then
8284 for x
in $LDFLAGS $LTLIBINTL; do
8286 acl_save_prefix
="$prefix"
8287 prefix
="$acl_final_prefix"
8288 acl_save_exec_prefix
="$exec_prefix"
8289 exec_prefix
="$acl_final_exec_prefix"
8291 exec_prefix
="$acl_save_exec_prefix"
8292 prefix
="$acl_save_prefix"
8296 dir
=`echo "X$x" | sed -e 's/^X-L//'`
8297 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x
$lib_type != xstatic
; then
8299 found_so
="$dir/lib$name.$shlibext"
8300 if test -f "$dir/lib$name.la"; then
8301 found_la
="$dir/lib$name.la"
8303 elif test x
$lib_type != xshared
; then
8304 if test -f "$dir/lib$name.$libext"; then
8306 found_a
="$dir/lib$name.$libext"
8307 if test -f "$dir/lib$name.la"; then
8308 found_la
="$dir/lib$name.la"
8314 if test "X$found_dir" != "X"; then
8319 if test "X$found_dir" != "X"; then
8320 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
8321 if test "X$found_so" != "X"; then
8322 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
8323 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
8326 for x
in $ltrpathdirs; do
8327 if test "X$x" = "X$found_dir"; then
8332 if test -z "$haveit"; then
8333 ltrpathdirs
="$ltrpathdirs $found_dir"
8335 if test "$hardcode_direct" = yes; then
8336 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
8338 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
8339 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
8341 for x
in $rpathdirs; do
8342 if test "X$x" = "X$found_dir"; then
8347 if test -z "$haveit"; then
8348 rpathdirs
="$rpathdirs $found_dir"
8352 for x
in $LDFLAGS $LIBINTL; do
8354 acl_save_prefix
="$prefix"
8355 prefix
="$acl_final_prefix"
8356 acl_save_exec_prefix
="$exec_prefix"
8357 exec_prefix
="$acl_final_exec_prefix"
8359 exec_prefix
="$acl_save_exec_prefix"
8360 prefix
="$acl_save_prefix"
8362 if test "X$x" = "X-L$found_dir"; then
8367 if test -z "$haveit"; then
8368 LIBINTL
="${LIBINTL}${LIBINTL:+ }-L$found_dir"
8370 if test "$hardcode_minus_L" != no
; then
8371 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
8373 LIBINTL
="${LIBINTL}${LIBINTL:+ }-l$name"
8379 if test "X$found_a" != "X"; then
8380 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_a"
8382 LIBINTL
="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
8385 additional_includedir
=
8386 case "$found_dir" in
8388 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8389 additional_includedir
="$basedir/include"
8392 if test "X$additional_includedir" != "X"; then
8393 if test "X$additional_includedir" != "X/usr/include"; then
8395 if test "X$additional_includedir" = "X/usr/local/include"; then
8396 if test -n "$GCC"; then
8398 linux
*) haveit
=yes;;
8402 if test -z "$haveit"; then
8403 for x
in $CPPFLAGS $INCINTL; do
8405 acl_save_prefix
="$prefix"
8406 prefix
="$acl_final_prefix"
8407 acl_save_exec_prefix
="$exec_prefix"
8408 exec_prefix
="$acl_final_exec_prefix"
8410 exec_prefix
="$acl_save_exec_prefix"
8411 prefix
="$acl_save_prefix"
8413 if test "X$x" = "X-I$additional_includedir"; then
8418 if test -z "$haveit"; then
8419 if test -d "$additional_includedir"; then
8420 INCINTL
="${INCINTL}${INCINTL:+ }-I$additional_includedir"
8426 if test -n "$found_la"; then
8427 save_libdir
="$libdir"
8429 */* |
*\\*) .
"$found_la" ;;
8430 *) .
"./$found_la" ;;
8432 libdir
="$save_libdir"
8433 for dep
in $dependency_libs; do
8436 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
8437 if test "X$additional_libdir" != "X/usr/lib"; then
8439 if test "X$additional_libdir" = "X/usr/local/lib"; then
8440 if test -n "$GCC"; then
8442 linux
*) haveit
=yes;;
8446 if test -z "$haveit"; then
8448 for x
in $LDFLAGS $LIBINTL; do
8450 acl_save_prefix
="$prefix"
8451 prefix
="$acl_final_prefix"
8452 acl_save_exec_prefix
="$exec_prefix"
8453 exec_prefix
="$acl_final_exec_prefix"
8455 exec_prefix
="$acl_save_exec_prefix"
8456 prefix
="$acl_save_prefix"
8458 if test "X$x" = "X-L$additional_libdir"; then
8463 if test -z "$haveit"; then
8464 if test -d "$additional_libdir"; then
8465 LIBINTL
="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
8469 for x
in $LDFLAGS $LTLIBINTL; do
8471 acl_save_prefix
="$prefix"
8472 prefix
="$acl_final_prefix"
8473 acl_save_exec_prefix
="$exec_prefix"
8474 exec_prefix
="$acl_final_exec_prefix"
8476 exec_prefix
="$acl_save_exec_prefix"
8477 prefix
="$acl_save_prefix"
8479 if test "X$x" = "X-L$additional_libdir"; then
8484 if test -z "$haveit"; then
8485 if test -d "$additional_libdir"; then
8486 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
8493 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
8494 if test "$enable_rpath" != no
; then
8496 for x
in $rpathdirs; do
8497 if test "X$x" = "X$dir"; then
8502 if test -z "$haveit"; then
8503 rpathdirs
="$rpathdirs $dir"
8506 for x
in $ltrpathdirs; do
8507 if test "X$x" = "X$dir"; then
8512 if test -z "$haveit"; then
8513 ltrpathdirs
="$ltrpathdirs $dir"
8518 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8521 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8524 LIBINTL
="${LIBINTL}${LIBINTL:+ }$dep"
8525 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }$dep"
8531 if test "x$lib_type" = "xauto" ||
test "x$lib_type" = "xshared"; then
8532 LIBINTL
="${LIBINTL}${LIBINTL:+ }-l$name"
8533 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
8535 LIBINTL
="${LIBINTL}${LIBINTL:+ }-l:lib$name.$libext"
8536 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-l:lib$name.$libext"
8543 if test "X$rpathdirs" != "X"; then
8544 if test -n "$hardcode_libdir_separator"; then
8546 for found_dir
in $rpathdirs; do
8547 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8549 acl_save_libdir
="$libdir"
8551 eval flag
=\"$hardcode_libdir_flag_spec\"
8552 libdir
="$acl_save_libdir"
8553 LIBINTL
="${LIBINTL}${LIBINTL:+ }$flag"
8555 for found_dir
in $rpathdirs; do
8556 acl_save_libdir
="$libdir"
8558 eval flag
=\"$hardcode_libdir_flag_spec\"
8559 libdir
="$acl_save_libdir"
8560 LIBINTL
="${LIBINTL}${LIBINTL:+ }$flag"
8564 if test "X$ltrpathdirs" != "X"; then
8565 for found_dir
in $ltrpathdirs; do
8566 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
8570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
8571 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
8572 if eval \
${$gt_func_gnugettext_libintl+:} false
; then :
8573 $as_echo_n "(cached) " >&6
8575 gt_save_CPPFLAGS
="$CPPFLAGS"
8576 CPPFLAGS
="$CPPFLAGS $INCINTL"
8577 gt_save_LIBS
="$LIBS"
8578 LIBS
="$LIBS $LIBINTL"
8579 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8580 /* end confdefs.h. */
8582 #include <libintl.h>
8583 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
8584 extern int _nl_msg_cat_cntr;
8589 const char *_nl_expand_alias (const char *);
8590 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
8592 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
8594 $gt_revision_test_code
8600 bindtextdomain ("", "");
8601 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
8607 if ac_fn_c_try_link
"$LINENO"; then :
8608 eval "$gt_func_gnugettext_libintl=yes"
8610 eval "$gt_func_gnugettext_libintl=no"
8612 rm -f core conftest.err conftest.
$ac_objext \
8613 conftest
$ac_exeext conftest.
$ac_ext
8614 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
8615 LIBS
="$LIBS $LIBICONV"
8616 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8617 /* end confdefs.h. */
8619 #include <libintl.h>
8620 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
8621 extern int _nl_msg_cat_cntr;
8626 const char *_nl_expand_alias (const char *);
8627 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
8629 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
8631 $gt_revision_test_code
8637 bindtextdomain ("", "");
8638 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
8644 if ac_fn_c_try_link
"$LINENO"; then :
8645 LIBINTL
="$LIBINTL $LIBICONV"
8646 LTLIBINTL
="$LTLIBINTL $LTLIBICONV"
8647 eval "$gt_func_gnugettext_libintl=yes"
8650 rm -f core conftest.err conftest.
$ac_objext \
8651 conftest
$ac_exeext conftest.
$ac_ext
8653 CPPFLAGS
="$gt_save_CPPFLAGS"
8654 LIBS
="$gt_save_LIBS"
8656 eval ac_res
=\$
$gt_func_gnugettext_libintl
8657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8658 $as_echo "$ac_res" >&6; }
8661 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
8662 ||
{ { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
8663 && test "$PACKAGE" != gettext-runtime \
8664 && test "$PACKAGE" != gettext-tools
; }; then
8665 gt_use_preinstalled_gnugettext
=yes
8674 if test -n "$INTL_MACOSX_LIBS"; then
8675 if test "$gt_use_preinstalled_gnugettext" = "yes" \
8676 ||
test "$nls_cv_use_gnu_gettext" = "yes"; then
8677 LIBINTL
="$LIBINTL $INTL_MACOSX_LIBS"
8678 LTLIBINTL
="$LTLIBINTL $INTL_MACOSX_LIBS"
8682 if test "$gt_use_preinstalled_gnugettext" = "yes" \
8683 ||
test "$nls_cv_use_gnu_gettext" = "yes"; then
8685 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
8692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
8693 $as_echo_n "checking whether to use NLS... " >&6; }
8694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
8695 $as_echo "$USE_NLS" >&6; }
8696 if test "$USE_NLS" = "yes"; then
8697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
8698 $as_echo_n "checking where the gettext function comes from... " >&6; }
8699 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
8700 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
8701 gt_source
="external libintl"
8706 gt_source
="included intl directory"
8708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
8709 $as_echo "$gt_source" >&6; }
8712 if test "$USE_NLS" = "yes"; then
8714 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
8715 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
8716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
8717 $as_echo_n "checking how to link with libintl... " >&6; }
8718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
8719 $as_echo "$LIBINTL" >&6; }
8721 for element
in $INCINTL; do
8723 for x
in $CPPFLAGS; do
8725 acl_save_prefix
="$prefix"
8726 prefix
="$acl_final_prefix"
8727 acl_save_exec_prefix
="$exec_prefix"
8728 exec_prefix
="$acl_final_exec_prefix"
8730 exec_prefix
="$acl_save_exec_prefix"
8731 prefix
="$acl_save_prefix"
8733 if test "X$x" = "X$element"; then
8738 if test -z "$haveit"; then
8739 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
8746 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
8749 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
8777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
8778 $as_echo_n "checking whether NLS is requested... " >&6; }
8779 if test x
"$USE_NLS" != xyes
; then
8780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8781 $as_echo "no" >&6; }
8783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8784 $as_echo "yes" >&6; }
8786 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
8789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
8790 $as_echo_n "checking for catalogs to be installed... " >&6; }
8791 # Look for .po and .gmo files in the source directory.
8794 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
8795 # If there aren't any .gmo files the shell will give us the
8796 # literal string "../path/to/srcdir/po/*.gmo" which has to be
8798 case "$cat" in *\
**)
8801 # The quadruple backslash is collapsed to a double backslash
8802 # by the backticks, then collapsed again by the double quotes,
8803 # leaving us with one backslash in the sed expression (right
8804 # before the dot that mustn't act as a wildcard).
8805 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
8806 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
8807 # The user is allowed to set LINGUAS to a list of languages to
8808 # install catalogs for. If it's empty that means "all of them."
8809 if test "x$LINGUAS" = x
; then
8810 CATALOGS
="$CATALOGS $cat"
8811 XLINGUAS
="$XLINGUAS $lang"
8813 case "$LINGUAS" in *$lang*)
8814 CATALOGS
="$CATALOGS $cat"
8815 XLINGUAS
="$XLINGUAS $lang"
8821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
8822 $as_echo "$LINGUAS" >&6; }
8838 # Prepare PATH_SEPARATOR.
8839 # The user is always right.
8840 if test "${PATH_SEPARATOR+set}" != set; then
8841 echo "#! /bin/sh" >conf$$.sh
8842 echo "exit 0" >>conf$$.sh
8844 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
8852 # Find out how to test for executable files. Don't use a zero-byte file,
8853 # as systems may use methods other than mode bits to determine executability.
8854 cat >conf$$.
file <<_ASEOF
8858 chmod +x conf$$.
file
8859 if test -x conf$$.
file >/dev
/null
2>&1; then
8860 ac_executable_p
="test -x"
8862 ac_executable_p
="test -f"
8866 # Extract the first word of "msgfmt", so it can be a program name with args.
8867 set dummy msgfmt
; ac_word
=$2
8868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8869 $as_echo_n "checking for $ac_word... " >&6; }
8870 if ${ac_cv_path_MSGFMT+:} false
; then :
8871 $as_echo_n "(cached) " >&6
8875 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
8878 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
8879 for ac_dir
in $PATH; do
8881 test -z "$ac_dir" && ac_dir
=.
8882 for ac_exec_ext
in '' $ac_executable_extensions; do
8883 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
8884 if $ac_dir/$ac_word --statistics /dev
/null
>/dev
/null
2>&1 &&
8885 (if $ac_dir/$ac_word --statistics /dev
/null
2>&1 >/dev
/null |
grep usage
>/dev
/null
; then exit 1; else exit 0; fi); then
8886 ac_cv_path_MSGFMT
="$ac_dir/$ac_word$ac_exec_ext"
8893 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
=":"
8897 MSGFMT
="$ac_cv_path_MSGFMT"
8898 if test "$MSGFMT" != ":"; then
8899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
8900 $as_echo "$MSGFMT" >&6; }
8902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8903 $as_echo "no" >&6; }
8906 # Extract the first word of "gmsgfmt", so it can be a program name with args.
8907 set dummy gmsgfmt
; ac_word
=$2
8908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8909 $as_echo_n "checking for $ac_word... " >&6; }
8910 if ${ac_cv_path_GMSGFMT+:} false
; then :
8911 $as_echo_n "(cached) " >&6
8915 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
8918 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8922 test -z "$as_dir" && as_dir
=.
8923 for ac_exec_ext
in '' $ac_executable_extensions; do
8924 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8925 ac_cv_path_GMSGFMT
="$as_dir/$ac_word$ac_exec_ext"
8926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8933 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
8937 GMSGFMT
=$ac_cv_path_GMSGFMT
8938 if test -n "$GMSGFMT"; then
8939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
8940 $as_echo "$GMSGFMT" >&6; }
8942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8943 $as_echo "no" >&6; }
8949 # Prepare PATH_SEPARATOR.
8950 # The user is always right.
8951 if test "${PATH_SEPARATOR+set}" != set; then
8952 echo "#! /bin/sh" >conf$$.sh
8953 echo "exit 0" >>conf$$.sh
8955 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
8963 # Find out how to test for executable files. Don't use a zero-byte file,
8964 # as systems may use methods other than mode bits to determine executability.
8965 cat >conf$$.
file <<_ASEOF
8969 chmod +x conf$$.
file
8970 if test -x conf$$.
file >/dev
/null
2>&1; then
8971 ac_executable_p
="test -x"
8973 ac_executable_p
="test -f"
8977 # Extract the first word of "xgettext", so it can be a program name with args.
8978 set dummy xgettext
; ac_word
=$2
8979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8980 $as_echo_n "checking for $ac_word... " >&6; }
8981 if ${ac_cv_path_XGETTEXT+:} false
; then :
8982 $as_echo_n "(cached) " >&6
8986 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
8989 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
8990 for ac_dir
in $PATH; do
8992 test -z "$ac_dir" && ac_dir
=.
8993 for ac_exec_ext
in '' $ac_executable_extensions; do
8994 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
8995 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev
/null
>/dev
/null
2>&1 &&
8996 (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
8997 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word$ac_exec_ext"
9004 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
9008 XGETTEXT
="$ac_cv_path_XGETTEXT"
9009 if test "$XGETTEXT" != ":"; then
9010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
9011 $as_echo "$XGETTEXT" >&6; }
9013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9014 $as_echo "no" >&6; }
9020 # Prepare PATH_SEPARATOR.
9021 # The user is always right.
9022 if test "${PATH_SEPARATOR+set}" != set; then
9023 echo "#! /bin/sh" >conf$$.sh
9024 echo "exit 0" >>conf$$.sh
9026 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
9034 # Find out how to test for executable files. Don't use a zero-byte file,
9035 # as systems may use methods other than mode bits to determine executability.
9036 cat >conf$$.
file <<_ASEOF
9040 chmod +x conf$$.
file
9041 if test -x conf$$.
file >/dev
/null
2>&1; then
9042 ac_executable_p
="test -x"
9044 ac_executable_p
="test -f"
9048 # Extract the first word of "msgmerge", so it can be a program name with args.
9049 set dummy msgmerge
; ac_word
=$2
9050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9051 $as_echo_n "checking for $ac_word... " >&6; }
9052 if ${ac_cv_path_MSGMERGE+:} false
; then :
9053 $as_echo_n "(cached) " >&6
9057 ac_cv_path_MSGMERGE
="$MSGMERGE" # Let the user override the test with a path.
9060 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
9061 for ac_dir
in $PATH; do
9063 test -z "$ac_dir" && ac_dir
=.
9064 for ac_exec_ext
in '' $ac_executable_extensions; do
9065 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
9066 if $ac_dir/$ac_word --update -q /dev
/null
/dev
/null
>/dev
/null
2>&1; then
9067 ac_cv_path_MSGMERGE
="$ac_dir/$ac_word$ac_exec_ext"
9074 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE
=":"
9078 MSGMERGE
="$ac_cv_path_MSGMERGE"
9079 if test "$MSGMERGE" != ":"; then
9080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
9081 $as_echo "$MSGMERGE" >&6; }
9083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9084 $as_echo "no" >&6; }
9088 if test "$GMSGFMT" != ":"; then
9089 if $GMSGFMT --statistics /dev
/null
>/dev
/null
2>&1 &&
9090 (if $GMSGFMT --statistics /dev
/null
2>&1 >/dev
/null |
grep usage
>/dev
/null
; then exit 1; else exit 0; fi); then
9093 GMSGFMT
=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
9094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
9095 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
9100 if test "$XGETTEXT" != ":"; then
9101 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev
/null
>/dev
/null
2>&1 &&
9102 (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
9105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
9106 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
9112 ac_config_commands
="$ac_config_commands default-2"
9116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
9117 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
9118 if ${ac_cv_c_bigendian+:} false
; then :
9119 $as_echo_n "(cached) " >&6
9121 ac_cv_c_bigendian
=unknown
9122 # See if we're dealing with a universal compiler.
9123 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9124 /* end confdefs.h. */
9125 #ifndef __APPLE_CC__
9126 not a universal capable compiler
9131 if ac_fn_c_try_compile
"$LINENO"; then :
9133 # Check for potential -arch flags. It is not universal unless
9134 # there are at least two -arch flags with different values.
9137 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
9138 if test -n "$ac_prev"; then
9140 i?
86 | x86_64 | ppc | ppc64
)
9141 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
9144 ac_cv_c_bigendian
=universal
9150 elif test "x$ac_word" = "x-arch"; then
9155 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9156 if test $ac_cv_c_bigendian = unknown
; then
9157 # See if sys/param.h defines the BYTE_ORDER macro.
9158 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9159 /* end confdefs.h. */
9160 #include <sys/types.h>
9161 #include <sys/param.h>
9166 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
9167 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
9176 if ac_fn_c_try_compile
"$LINENO"; then :
9177 # It does; now see whether it defined to BIG_ENDIAN or not.
9178 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9179 /* end confdefs.h. */
9180 #include <sys/types.h>
9181 #include <sys/param.h>
9186 #if BYTE_ORDER != BIG_ENDIAN
9194 if ac_fn_c_try_compile
"$LINENO"; then :
9195 ac_cv_c_bigendian
=yes
9197 ac_cv_c_bigendian
=no
9199 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9201 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9203 if test $ac_cv_c_bigendian = unknown
; then
9204 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
9205 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9206 /* end confdefs.h. */
9212 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
9220 if ac_fn_c_try_compile
"$LINENO"; then :
9221 # It does; now see whether it defined to _BIG_ENDIAN or not.
9222 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9223 /* end confdefs.h. */
9237 if ac_fn_c_try_compile
"$LINENO"; then :
9238 ac_cv_c_bigendian
=yes
9240 ac_cv_c_bigendian
=no
9242 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9244 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9246 if test $ac_cv_c_bigendian = unknown
; then
9247 # Compile a test program.
9248 if test "$cross_compiling" = yes; then :
9249 # Try to guess by grepping values from an object file.
9250 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9251 /* end confdefs.h. */
9252 short int ascii_mm[] =
9253 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9254 short int ascii_ii[] =
9255 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9256 int use_ascii (int i) {
9257 return ascii_mm[i] + ascii_ii[i];
9259 short int ebcdic_ii[] =
9260 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9261 short int ebcdic_mm[] =
9262 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9263 int use_ebcdic (int i) {
9264 return ebcdic_mm[i] + ebcdic_ii[i];
9271 return use_ascii (foo) == use_ebcdic (foo);
9276 if ac_fn_c_try_compile
"$LINENO"; then :
9277 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
9278 ac_cv_c_bigendian
=yes
9280 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
9281 if test "$ac_cv_c_bigendian" = unknown
; then
9282 ac_cv_c_bigendian
=no
9284 # finding both strings is unlikely to happen, but who knows?
9285 ac_cv_c_bigendian
=unknown
9289 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9291 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9292 /* end confdefs.h. */
9293 $ac_includes_default
9298 /* Are we little or big endian? From Harbison&Steele. */
9302 char c[sizeof (long int)];
9305 return u.c[sizeof (long int) - 1] == 1;
9311 if ac_fn_c_try_run
"$LINENO"; then :
9312 ac_cv_c_bigendian
=no
9314 ac_cv_c_bigendian
=yes
9316 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9317 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9323 $as_echo "$ac_cv_c_bigendian" >&6; }
9324 case $ac_cv_c_bigendian in #(
9326 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9332 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9336 as_fn_error $?
"unknown endianness
9337 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9343 if test "x$target_alias" = "x" -o "x$host_alias" = "x$target_alias"; then
9345 NATIVE_LINKER_FALSE
='#'
9347 NATIVE_LINKER_TRUE
='#'
9348 NATIVE_LINKER_FALSE
=
9351 if test "$GCC" = yes; then
9360 if test "x$target_alias" = "x" -o "x$host_alias" = "x$target_alias" -o "x$host_alias" = "x$build_alias"; then
9361 NATIVE_OR_CROSS_LINKER_TRUE
=
9362 NATIVE_OR_CROSS_LINKER_FALSE
='#'
9364 NATIVE_OR_CROSS_LINKER_TRUE
='#'
9365 NATIVE_OR_CROSS_LINKER_FALSE
=
9369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether static linking works" >&5
9370 $as_echo_n "checking whether static linking works... " >&6; }
9371 if ${gold_cv_lib_static+:} false
; then :
9372 $as_echo_n "(cached) " >&6
9374 LDFLAGS_hold
=$LDFLAGS
9375 LDFLAGS
="$LDFLAGS -static"
9376 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9377 /* end confdefs.h. */
9388 if ac_fn_c_try_link
"$LINENO"; then :
9389 gold_cv_lib_static
=yes
9391 gold_cv_lib_static
=no
9393 rm -f core conftest.err conftest.
$ac_objext \
9394 conftest
$ac_exeext conftest.
$ac_ext
9395 LDFLAGS
=$LDFLAGS_hold
9397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_lib_static" >&5
9398 $as_echo "$gold_cv_lib_static" >&6; }
9399 if test "$gold_cv_lib_static" = "yes"; then
9401 HAVE_STATIC_FALSE
='#'
9403 HAVE_STATIC_TRUE
='#'
9416 FN_PTRS_IN_SO_WITHOUT_PIC_TRUE
=
9417 FN_PTRS_IN_SO_WITHOUT_PIC_FALSE
='#'
9419 FN_PTRS_IN_SO_WITHOUT_PIC_TRUE
='#'
9420 FN_PTRS_IN_SO_WITHOUT_PIC_FALSE
=
9424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc >= 4.1" >&5
9425 $as_echo_n "checking for gcc >= 4.1... " >&6; }
9426 if ${gold_cv_prog_gcc41+:} false
; then :
9427 $as_echo_n "(cached) " >&6
9429 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9430 /* end confdefs.h. */
9432 #if !defined __GNUC__
9434 #elif __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 1)
9439 if ac_fn_c_try_compile
"$LINENO"; then :
9440 gold_cv_prog_gcc41
=yes
9442 gold_cv_prog_gcc41
=no
9444 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_prog_gcc41" >&5
9447 $as_echo "$gold_cv_prog_gcc41" >&6; }
9449 save_CFLAGS
="$CFLAGS"
9450 CFLAGS
="$CFLAGS -mcmodel=medium"
9451 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9452 /* end confdefs.h. */
9455 if ac_fn_c_try_compile
"$LINENO"; then :
9456 have_mcmodel_medium
=yes
9458 have_mcmodel_medium
=no
9460 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9461 CFLAGS
="$save_CFLAGS"
9462 if test "$target_cpu" = "x86_64" -a "$have_mcmodel_medium" = "yes" -a "$gold_cv_prog_gcc41" = "yes"; then
9463 MCMODEL_MEDIUM_TRUE
=
9464 MCMODEL_MEDIUM_FALSE
='#'
9466 MCMODEL_MEDIUM_TRUE
='#'
9467 MCMODEL_MEDIUM_FALSE
=
9471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc >= 9" >&5
9472 $as_echo_n "checking for gcc >= 9... " >&6; }
9473 if ${gold_cv_prog_gcc9+:} false
; then :
9474 $as_echo_n "(cached) " >&6
9476 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9477 /* end confdefs.h. */
9479 #if !defined __GNUC__ || __GNUC__ < 9
9484 if ac_fn_c_try_compile
"$LINENO"; then :
9485 gold_cv_prog_gcc9
=yes
9487 gold_cv_prog_gcc9
=no
9489 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_prog_gcc9" >&5
9492 $as_echo "$gold_cv_prog_gcc9" >&6; }
9493 if test "$gold_cv_prog_gcc9" = "yes"; then
9502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fcf-protection" >&5
9503 $as_echo_n "checking for -fcf-protection... " >&6; }
9504 if ${gold_cv_cflags_cf_protection+:} false
; then :
9505 $as_echo_n "(cached) " >&6
9507 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9508 /* end confdefs.h. */
9510 #if !defined __x86_64__ || !defined __CET__
9515 if ac_fn_c_try_compile
"$LINENO"; then :
9516 gold_cv_cflags_cf_protection
=yes
9518 gold_cv_cflags_cf_protection
=no
9520 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_cflags_cf_protection" >&5
9523 $as_echo "$gold_cv_cflags_cf_protection" >&6; }
9524 if test "$gold_cv_cflags_cf_protection" = "yes"; then
9525 CFLAGS_CF_PROTECTION_TRUE
=
9526 CFLAGS_CF_PROTECTION_FALSE
='#'
9528 CFLAGS_CF_PROTECTION_TRUE
='#'
9529 CFLAGS_CF_PROTECTION_FALSE
=
9533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -fmerge-constants" >&5
9534 $as_echo_n "checking whether $CC supports -fmerge-constants... " >&6; }
9535 if ${gold_cv_merge_constants+:} false
; then :
9536 $as_echo_n "(cached) " >&6
9539 save_CFLAGS
="$CFLAGS"
9540 CFLAGS
="$CFLAGS -fmerge-constants"
9541 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9542 /* end confdefs.h. */
9543 const char *s = "foo";
9545 if ac_fn_c_try_compile
"$LINENO"; then :
9546 gold_cv_merge_constants
=yes
9548 gold_cv_merge_constants
=no
9550 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9551 CFLAGS
="$save_CFLAGS"
9553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_merge_constants" >&5
9554 $as_echo "$gold_cv_merge_constants" >&6; }
9556 if test "$gold_cv_merge_constants" = yes; then :
9557 MERGE_CONSTANTS_FLAG
=-fmerge-constants
9559 MERGE_CONSTANTS_FLAG
=
9562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread support" >&5
9563 $as_echo_n "checking for thread support... " >&6; }
9564 if ${gold_cv_c_thread+:} false
; then :
9565 $as_echo_n "(cached) " >&6
9567 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9568 /* end confdefs.h. */
9571 if ac_fn_c_try_compile
"$LINENO"; then :
9572 gold_cv_c_thread
=yes
9576 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_c_thread" >&5
9579 $as_echo "$gold_cv_c_thread" >&6; }
9581 if test "$gold_cv_c_thread" = "yes"; then
9590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc >= 2.4" >&5
9591 $as_echo_n "checking for glibc >= 2.4... " >&6; }
9592 if ${gold_cv_lib_glibc24+:} false
; then :
9593 $as_echo_n "(cached) " >&6
9595 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9596 /* end confdefs.h. */
9598 #include <features.h>
9599 #if !defined __GLIBC__
9601 #elif __GLIBC__ < 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ < 4)
9606 if ac_fn_c_try_compile
"$LINENO"; then :
9607 gold_cv_lib_glibc24
=yes
9609 gold_cv_lib_glibc24
=no
9611 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_lib_glibc24" >&5
9614 $as_echo "$gold_cv_lib_glibc24" >&6; }
9616 if test "$gold_cv_lib_glibc24" = "yes"; then
9618 STATIC_TLS_FALSE
='#'
9625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for omp support" >&5
9626 $as_echo_n "checking for omp support... " >&6; }
9627 if ${gold_cv_c_threadprivate+:} false
; then :
9628 $as_echo_n "(cached) " >&6
9630 save_CFLAGS
="$CFLAGS"
9631 CFLAGS
="$CFLAGS -fopenmp"
9632 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9633 /* end confdefs.h. */
9637 #pragma omp threadprivate (i)
9640 if ac_fn_c_try_compile
"$LINENO"; then :
9641 gold_cv_c_threadprivate
=yes
9643 gold_cv_c_threadprivate
=no
9645 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9646 CFLAGS
="$save_CFLAGS"
9648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_c_threadprivate" >&5
9649 $as_echo "$gold_cv_c_threadprivate" >&6; }
9650 if test "$gold_cv_c_threadprivate" = "yes"; then
9652 $as_echo "#define HAVE_OMP_SUPPORT 1" >>confdefs.h
9655 if test "$gold_cv_c_threadprivate" = "yes"; then
9657 OMP_SUPPORT_FALSE
='#'
9659 OMP_SUPPORT_TRUE
='#'
9664 save_CFLAGS
="$CFLAGS"
9665 CFLAGS
="$CFLAGS -Werror -fpic -mtls-dialect=gnu2"
9666 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9667 /* end confdefs.h. */
9676 if ac_fn_c_try_compile
"$LINENO"; then :
9681 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9682 CFLAGS
="$save_CFLAGS"
9683 if test "$have_tls_gnu2" = "yes"; then
9684 TLS_GNU2_DIALECT_TRUE
=
9685 TLS_GNU2_DIALECT_FALSE
='#'
9687 TLS_GNU2_DIALECT_TRUE
='#'
9688 TLS_GNU2_DIALECT_FALSE
=
9692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc >= 2.9" >&5
9693 $as_echo_n "checking for glibc >= 2.9... " >&6; }
9694 if ${gold_cv_lib_glibc29+:} false
; then :
9695 $as_echo_n "(cached) " >&6
9697 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9698 /* end confdefs.h. */
9700 #include <features.h>
9701 #if !defined __GLIBC__
9703 #elif __GLIBC__ < 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ < 9)
9708 if ac_fn_c_try_compile
"$LINENO"; then :
9709 gold_cv_lib_glibc29
=yes
9711 gold_cv_lib_glibc29
=no
9713 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_lib_glibc29" >&5
9716 $as_echo "$gold_cv_lib_glibc29" >&6; }
9718 if test "$gold_cv_lib_glibc29" = "yes"; then
9719 TLS_DESCRIPTORS_TRUE
=
9720 TLS_DESCRIPTORS_FALSE
='#'
9722 TLS_DESCRIPTORS_TRUE
='#'
9723 TLS_DESCRIPTORS_FALSE
=
9727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -frandom-seed support" >&5
9728 $as_echo_n "checking for -frandom-seed support... " >&6; }
9729 if ${gold_cv_c_random_seed+:} false
; then :
9730 $as_echo_n "(cached) " >&6
9732 save_CFLAGS
="$CFLAGS"
9733 CFLAGS
="$CFLAGS -frandom-seed=foo"
9734 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9735 /* end confdefs.h. */
9738 if ac_fn_c_try_compile
"$LINENO"; then :
9739 gold_cv_c_random_seed
=yes
9741 gold_cv_c_random_seed
=no
9743 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9744 CFLAGS
="$save_CFLAGS"
9746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_c_random_seed" >&5
9747 $as_echo "$gold_cv_c_random_seed" >&6; }
9748 if test "$gold_cv_c_random_seed" = "yes"; then
9749 # In Makefile, '$@' will be expanded to be the name of the file
9750 # being built, providing a unique seed for each file.
9751 RANDOM_SEED_CFLAGS
=-frandom-seed=\$@
9755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc ifunc support" >&5
9756 $as_echo_n "checking for glibc ifunc support... " >&6; }
9757 if ${gold_cv_lib_glibc_ifunc+:} false
; then :
9758 $as_echo_n "(cached) " >&6
9760 save_LDFLAGS
="$LDFLAGS"
9761 LDFLAGS
="$LDFLAGS -static"
9762 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9763 /* end confdefs.h. */
9765 #include <features.h>
9766 #if !defined __GLIBC__
9768 #elif __GLIBC__ < 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ < 11)
9771 void func (void) { }
9773 __asm__(".type invoke, %gnu_indirect_function");
9774 typedef void (*funcptr) (void);
9775 funcptr dispatch (void) __asm__ ("invoke");
9776 funcptr dispatch (void) { return &func; }
9786 if ac_fn_c_try_link
"$LINENO"; then :
9788 if ${NM} conftest
$EXEEXT |
grep "__rela\?_iplt_start" >/dev
/null
2>&1; then
9789 gold_cv_lib_glibc_ifunc
=both
9791 gold_cv_lib_glibc_ifunc
=dyn
9794 gold_cv_lib_glibc_ifunc
=no
9796 rm -f core conftest.err conftest.
$ac_objext \
9797 conftest
$ac_exeext conftest.
$ac_ext
9798 LDFLAGS
="$save_LDFLAGS"
9800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_lib_glibc_ifunc" >&5
9801 $as_echo "$gold_cv_lib_glibc_ifunc" >&6; }
9803 if test "$gold_cv_lib_glibc_ifunc" != "no"; then
9811 if test "$gold_cv_lib_glibc_ifunc" = "both"; then
9813 IFUNC_STATIC_FALSE
='#'
9815 IFUNC_STATIC_TRUE
='#'
9821 # Set the 'development' global.
9822 .
$srcdir/..
/bfd
/development.sh
9824 # Set acp_cpp_for_build variable
9825 ac_cpp_for_build
="$CC_FOR_BUILD -E $CPPFLAGS_FOR_BUILD"
9827 # Default set of GCC warnings to enable.
9828 GCC_WARN_CFLAGS
="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
9829 GCC_WARN_CFLAGS_FOR_BUILD
="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
9831 # Add -Wshadow if the compiler is a sufficiently recent version of GCC.
9832 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9833 /* end confdefs.h. */
9836 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9837 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev
/null
2>&1; then :
9840 GCC_WARN_CFLAGS
="$GCC_WARN_CFLAGS -Wshadow"
9845 # Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
9846 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9847 /* end confdefs.h. */
9850 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9851 $EGREP "(^[0-4]$|^__GNUC__$)" >/dev
/null
2>&1; then :
9854 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9855 /* end confdefs.h. */
9858 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9859 $EGREP "^__clang__$" >/dev
/null
2>&1; then :
9860 GCC_WARN_CFLAGS
="$GCC_WARN_CFLAGS -Wstack-usage=262144"
9868 # Set WARN_WRITE_STRINGS if the compiler supports -Wwrite-strings.
9869 WARN_WRITE_STRINGS
=""
9870 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9871 /* end confdefs.h. */
9874 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9875 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev
/null
2>&1; then :
9878 WARN_WRITE_STRINGS
="-Wwrite-strings"
9883 # Verify CC_FOR_BUILD to be compatible with warning flags
9885 # Add -Wshadow if the compiler is a sufficiently recent version of GCC.
9886 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9887 /* end confdefs.h. */
9890 if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
9891 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev
/null
2>&1; then :
9894 GCC_WARN_CFLAGS_FOR_BUILD
="$GCC_WARN_CFLAGS_FOR_BUILD -Wshadow"
9899 # Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
9900 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9901 /* end confdefs.h. */
9904 if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
9905 $EGREP "(^[0-4]$|^__GNUC__$)" >/dev
/null
2>&1; then :
9908 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9909 /* end confdefs.h. */
9912 if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
9913 $EGREP "^__clang__$" >/dev
/null
2>&1; then :
9914 GCC_WARN_CFLAGS_FOR_BUILD
="$GCC_WARN_CFLAGS_FOR_BUILD -Wstack-usage=262144"
9922 # Check whether --enable-werror was given.
9923 if test "${enable_werror+set}" = set; then :
9924 enableval
=$enable_werror; case "${enableval}" in
9925 yes | y
) ERROR_ON_WARNING
="yes" ;;
9926 no | n
) ERROR_ON_WARNING
="no" ;;
9927 *) as_fn_error $?
"bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
9932 # Disable -Wformat by default when using gcc on mingw
9935 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
9936 GCC_WARN_CFLAGS
="$GCC_WARN_CFLAGS -Wno-format"
9937 GCC_WARN_CFLAGS_FOR_BUILD
="$GCC_WARN_CFLAGS_FOR_BUILD -Wno-format"
9943 # Enable -Werror by default when using gcc. Turn it off for releases.
9944 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" -a "$development" = true
; then
9945 ERROR_ON_WARNING
=yes
9949 if test "${ERROR_ON_WARNING}" = yes ; then
9950 GCC_WARN_CFLAGS
="$GCC_WARN_CFLAGS -Werror"
9951 GCC_WARN_CFLAGS_FOR_BUILD
="$GCC_WARN_CFLAGS_FOR_BUILD -Werror"
9952 NO_WERROR
="-Wno-error"
9955 if test "${GCC}" = yes ; then
9956 WARN_CFLAGS
="${GCC_WARN_CFLAGS}"
9957 WARN_CFLAGS_FOR_BUILD
="${GCC_WARN_CFLAGS_FOR_BUILD}"
9960 # Check whether --enable-build-warnings was given.
9961 if test "${enable_build_warnings+set}" = set; then :
9962 enableval
=$enable_build_warnings; case "${enableval}" in
9963 yes) WARN_CFLAGS
="${GCC_WARN_CFLAGS}"
9964 WARN_CFLAGS_FOR_BUILD
="${GCC_WARN_CFLAGS_FOR_BUILD}";;
9965 no
) if test "${GCC}" = yes ; then
9967 WARN_CFLAGS_FOR_BUILD
="-w"
9969 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
9970 WARN_CFLAGS
="${GCC_WARN_CFLAGS} ${t}"
9971 WARN_CFLAGS_FOR_BUILD
="${GCC_WARN_CFLAGS_FOR_BUILD} ${t}";;
9972 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
9973 WARN_CFLAGS
="${t} ${GCC_WARN_CFLAGS}"
9974 WARN_CFLAGS_FOR_BUILD
="${t} ${GCC_WARN_CFLAGS_FOR_BUILD}";;
9975 *) WARN_CFLAGS
=`echo "${enableval}" | sed -e "s/,/ /g"`
9976 WARN_CFLAGS_FOR_BUILD
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
9981 if test x
"$silent" != x
"yes" && test x
"$WARN_CFLAGS" != x
""; then
9982 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
9991 WARN_CXXFLAGS
=`echo ${WARN_CFLAGS} | sed -e 's/-Wstrict-prototypes//' -e 's/-Wmissing-prototypes//' -e 's/-Wshadow//'`
9995 # Check whether --with-gold-ldflags was given.
9996 if test "${with_gold_ldflags+set}" = set; then :
9997 withval
=$with_gold_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
10000 GOLD_LDFLAGS
=$withval
10009 # Check whether --with-gold-ldadd was given.
10010 if test "${with_gold_ldadd+set}" = set; then :
10011 withval
=$with_gold_ldadd; if test "$withval" = "no" -o "$withval" = "yes"; then
10014 GOLD_LDADD
=$withval
10022 LFS_CFLAGS
="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
10025 for ac_header
in sys
/mman.h
10027 ac_fn_c_check_header_mongrel
"$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
10028 if test "x$ac_cv_header_sys_mman_h" = xyes
; then :
10029 cat >>confdefs.h
<<_ACEOF
10030 #define HAVE_SYS_MMAN_H 1
10037 for ac_func
in chsize mmap link
10039 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10040 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10041 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
10042 cat >>confdefs.h
<<_ACEOF
10043 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10049 ac_fn_c_check_func
"$LINENO" "pread" "ac_cv_func_pread"
10050 if test "x$ac_cv_func_pread" = xyes
; then :
10051 $as_echo "#define HAVE_PREAD 1" >>confdefs.h
10054 case " $LIBOBJS " in
10055 *" pread.$ac_objext "* ) ;;
10056 *) LIBOBJS
="$LIBOBJS pread.$ac_objext"
10062 ac_fn_c_check_func
"$LINENO" "ftruncate" "ac_cv_func_ftruncate"
10063 if test "x$ac_cv_func_ftruncate" = xyes
; then :
10064 $as_echo "#define HAVE_FTRUNCATE 1" >>confdefs.h
10067 case " $LIBOBJS " in
10068 *" ftruncate.$ac_objext "* ) ;;
10069 *) LIBOBJS
="$LIBOBJS ftruncate.$ac_objext"
10075 ac_fn_c_check_func
"$LINENO" "ffsll" "ac_cv_func_ffsll"
10076 if test "x$ac_cv_func_ffsll" = xyes
; then :
10077 $as_echo "#define HAVE_FFSLL 1" >>confdefs.h
10080 case " $LIBOBJS " in
10081 *" ffsll.$ac_objext "* ) ;;
10082 *) LIBOBJS
="$LIBOBJS ffsll.$ac_objext"
10090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking mremap with MREMAP_MAYMOVE" >&5
10091 $as_echo_n "checking mremap with MREMAP_MAYMOVE... " >&6; }
10092 if ${gold_cv_lib_mremap_maymove+:} false
; then :
10093 $as_echo_n "(cached) " >&6
10095 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10096 /* end confdefs.h. */
10099 #include <sys/mman.h>
10100 void f() { mremap (0, 0, 0, MREMAP_MAYMOVE); }
10110 if ac_fn_c_try_link
"$LINENO"; then :
10111 gold_cv_lib_mremap_maymove
=yes
10113 gold_cv_lib_mremap_maymove
=no
10115 rm -f core conftest.err conftest.
$ac_objext \
10116 conftest
$ac_exeext conftest.
$ac_ext
10118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_lib_mremap_maymove" >&5
10119 $as_echo "$gold_cv_lib_mremap_maymove" >&6; }
10120 if test "$gold_cv_lib_mremap_maymove" = "yes"; then
10122 $as_echo "#define HAVE_MREMAP 1" >>confdefs.h
10125 case " $LIBOBJS " in
10126 *" mremap.$ac_objext "* ) ;;
10127 *) LIBOBJS
="$LIBOBJS mremap.$ac_objext"
10133 # Link in zlib/zstd if we can. This allows us to write compressed sections.
10135 # Use the system's zlib library.
10136 zlibdir
="-L\$(top_builddir)/../zlib"
10137 zlibinc
="-I\$(top_srcdir)/../zlib"
10139 # Check whether --with-system-zlib was given.
10140 if test "${with_system_zlib+set}" = set; then :
10141 withval
=$with_system_zlib; if test x
$with_system_zlib = xyes
; then
10158 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
10159 if test -n "$ac_tool_prefix"; then
10160 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
10161 set dummy
${ac_tool_prefix}pkg-config
; ac_word
=$2
10162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10163 $as_echo_n "checking for $ac_word... " >&6; }
10164 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
10165 $as_echo_n "(cached) " >&6
10167 case $PKG_CONFIG in
10169 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10172 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10173 for as_dir
in $PATH
10176 test -z "$as_dir" && as_dir
=.
10177 for ac_exec_ext
in '' $ac_executable_extensions; do
10178 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10179 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10190 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10191 if test -n "$PKG_CONFIG"; then
10192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10193 $as_echo "$PKG_CONFIG" >&6; }
10195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10196 $as_echo "no" >&6; }
10201 if test -z "$ac_cv_path_PKG_CONFIG"; then
10202 ac_pt_PKG_CONFIG
=$PKG_CONFIG
10203 # Extract the first word of "pkg-config", so it can be a program name with args.
10204 set dummy pkg-config
; ac_word
=$2
10205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10206 $as_echo_n "checking for $ac_word... " >&6; }
10207 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false
; then :
10208 $as_echo_n "(cached) " >&6
10210 case $ac_pt_PKG_CONFIG in
10212 ac_cv_path_ac_pt_PKG_CONFIG
="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
10215 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10216 for as_dir
in $PATH
10219 test -z "$as_dir" && as_dir
=.
10220 for ac_exec_ext
in '' $ac_executable_extensions; do
10221 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10222 ac_cv_path_ac_pt_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10233 ac_pt_PKG_CONFIG
=$ac_cv_path_ac_pt_PKG_CONFIG
10234 if test -n "$ac_pt_PKG_CONFIG"; then
10235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
10236 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
10238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10239 $as_echo "no" >&6; }
10242 if test "x$ac_pt_PKG_CONFIG" = x
; then
10245 case $cross_compiling:$ac_tool_warned in
10247 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10248 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10249 ac_tool_warned
=yes ;;
10251 PKG_CONFIG
=$ac_pt_PKG_CONFIG
10254 PKG_CONFIG
="$ac_cv_path_PKG_CONFIG"
10258 if test -n "$PKG_CONFIG"; then
10259 _pkg_min_version
=0.9.0
10260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
10261 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
10262 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
10263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10264 $as_echo "yes" >&6; }
10266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10267 $as_echo "no" >&6; }
10273 # Check whether --with-zstd was given.
10274 if test "${with_zstd+set}" = set; then :
10275 withval
=$with_zstd;
10281 if test "$with_zstd" != no
; then :
10284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libzstd >= 1.4.0" >&5
10285 $as_echo_n "checking for libzstd >= 1.4.0... " >&6; }
10287 if test -n "$ZSTD_CFLAGS"; then
10288 pkg_cv_ZSTD_CFLAGS
="$ZSTD_CFLAGS"
10289 elif test -n "$PKG_CONFIG"; then
10290 if test -n "$PKG_CONFIG" && \
10291 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libzstd >= 1.4.0\""; } >&5
10292 ($PKG_CONFIG --exists --print-errors "libzstd >= 1.4.0") 2>&5
10294 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10295 test $ac_status = 0; }; then
10296 pkg_cv_ZSTD_CFLAGS
=`$PKG_CONFIG --cflags "libzstd >= 1.4.0" 2>/dev/null`
10297 test "x$?" != "x0" && pkg_failed
=yes
10304 if test -n "$ZSTD_LIBS"; then
10305 pkg_cv_ZSTD_LIBS
="$ZSTD_LIBS"
10306 elif test -n "$PKG_CONFIG"; then
10307 if test -n "$PKG_CONFIG" && \
10308 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libzstd >= 1.4.0\""; } >&5
10309 ($PKG_CONFIG --exists --print-errors "libzstd >= 1.4.0") 2>&5
10311 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10312 test $ac_status = 0; }; then
10313 pkg_cv_ZSTD_LIBS
=`$PKG_CONFIG --libs "libzstd >= 1.4.0" 2>/dev/null`
10314 test "x$?" != "x0" && pkg_failed
=yes
10322 if test $pkg_failed = no
; then
10323 pkg_save_LDFLAGS
="$LDFLAGS"
10324 LDFLAGS
="$LDFLAGS $pkg_cv_ZSTD_LIBS"
10325 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10326 /* end confdefs.h. */
10336 if ac_fn_c_try_link
"$LINENO"; then :
10341 rm -f core conftest.err conftest.
$ac_objext \
10342 conftest
$ac_exeext conftest.
$ac_ext
10343 LDFLAGS
=$pkg_save_LDFLAGS
10348 if test $pkg_failed = yes; then
10349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10350 $as_echo "no" >&6; }
10352 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10353 _pkg_short_errors_supported
=yes
10355 _pkg_short_errors_supported
=no
10357 if test $_pkg_short_errors_supported = yes; then
10358 ZSTD_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libzstd >= 1.4.0" 2>&1`
10360 ZSTD_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "libzstd >= 1.4.0" 2>&1`
10362 # Put the nasty error message in config.log where it belongs
10363 echo "$ZSTD_PKG_ERRORS" >&5
10366 if test "$with_zstd" = yes; then
10367 as_fn_error $?
"--with-zstd was given, but pkgconfig/libzstd.pc is not found" "$LINENO" 5
10370 elif test $pkg_failed = untried
; then
10371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10372 $as_echo "no" >&6; }
10374 if test "$with_zstd" = yes; then
10375 as_fn_error $?
"--with-zstd was given, but pkgconfig/libzstd.pc is not found" "$LINENO" 5
10379 ZSTD_CFLAGS
=$pkg_cv_ZSTD_CFLAGS
10380 ZSTD_LIBS
=$pkg_cv_ZSTD_LIBS
10381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10382 $as_echo "yes" >&6; }
10385 $as_echo "#define HAVE_ZSTD 1" >>confdefs.h
10392 if test "$pkg_cv_ZSTD_LIBS" != ""; then
10394 HAVE_ZSTD_FALSE
='#'
10401 # Check whether --enable-threads was given.
10402 if test "${enable_threads+set}" = set; then :
10403 enableval
=$enable_threads; case "${enableval}" in
10404 yes |
"") threads
=yes ;;
10406 auto
) threads
=auto
;;
10414 if test "$threads" = "yes"; then
10415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
10416 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
10417 if ${ac_cv_path_SED+:} false
; then :
10418 $as_echo_n "(cached) " >&6
10420 ac_script
=s
/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
/
10421 for ac_i
in 1 2 3 4 5 6 7; do
10422 ac_script
="$ac_script$as_nl$ac_script"
10424 echo "$ac_script" 2>/dev
/null |
sed 99q
>conftest.
sed
10425 { ac_script
=; unset ac_script
;}
10426 if test -z "$SED"; then
10427 ac_path_SED_found
=false
10428 # Loop through the user's path and test for each of PROGNAME-LIST
10429 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10430 for as_dir
in $PATH
10433 test -z "$as_dir" && as_dir
=.
10434 for ac_prog
in sed gsed
; do
10435 for ac_exec_ext
in '' $ac_executable_extensions; do
10436 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
10437 as_fn_executable_p
"$ac_path_SED" ||
continue
10438 # Check for GNU ac_path_SED and select it if it is found.
10439 # Check for GNU $ac_path_SED
10440 case `"$ac_path_SED" --version 2>&1` in
10442 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
10445 $as_echo_n 0123456789 >"conftest.in"
10448 cat "conftest.in" "conftest.in" >"conftest.tmp"
10449 mv "conftest.tmp" "conftest.in"
10450 cp "conftest.in" "conftest.nl"
10451 $as_echo '' >> "conftest.nl"
10452 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
10453 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
10454 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
10455 if test $ac_count -gt ${ac_path_SED_max-0}; then
10456 # Best one so far, save it but keep looking for a better one
10457 ac_cv_path_SED
="$ac_path_SED"
10458 ac_path_SED_max
=$ac_count
10460 # 10*(2^10) chars as input seems more than enough
10461 test $ac_count -gt 10 && break
10463 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
10466 $ac_path_SED_found && break 3
10471 if test -z "$ac_cv_path_SED"; then
10472 as_fn_error $?
"no acceptable sed could be found in \$PATH" "$LINENO" 5
10475 ac_cv_path_SED
=$SED
10479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
10480 $as_echo "$ac_cv_path_SED" >&6; }
10481 SED
="$ac_cv_path_SED"
10489 ac_cpp
='$CPP $CPPFLAGS'
10490 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10491 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10492 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
10496 # We used to check for pthread.h first, but this fails if pthread.h
10497 # requires special compiler flags (e.g. on Tru64 or Sequent).
10498 # It gets checked for in the link test anyway.
10500 # First of all, check if the user has set any of the PTHREAD_LIBS,
10501 # etcetera environment variables, and if threads linking works using
10503 if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
10504 ax_pthread_save_CC
="$CC"
10505 ax_pthread_save_CFLAGS
="$CFLAGS"
10506 ax_pthread_save_LIBS
="$LIBS"
10507 if test "x$PTHREAD_CC" != "x"; then :
10510 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
10511 LIBS
="$PTHREAD_LIBS $LIBS"
10512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
10513 $as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
10514 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10515 /* end confdefs.h. */
10517 /* Override any GCC internal prototype to avoid an error.
10518 Use char because int might match the return type of a GCC
10519 builtin and then its argument prototype would still apply. */
10523 char pthread_join ();
10527 return pthread_join ();
10532 if ac_fn_c_try_link
"$LINENO"; then :
10535 rm -f core conftest.err conftest.
$ac_objext \
10536 conftest
$ac_exeext conftest.
$ac_ext
10537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
10538 $as_echo "$ax_pthread_ok" >&6; }
10539 if test "x$ax_pthread_ok" = "xno"; then
10543 CC
="$ax_pthread_save_CC"
10544 CFLAGS
="$ax_pthread_save_CFLAGS"
10545 LIBS
="$ax_pthread_save_LIBS"
10548 # We must check for the threads library under a number of different
10549 # names; the ordering is very important because some systems
10550 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
10551 # libraries is broken (non-POSIX).
10553 # Create a list of thread flags to try. Items starting with a "-" are
10554 # C compiler flags, and other items are library names, except for "none"
10555 # which indicates that we try without any flags at all, and "pthread-config"
10556 # which is a program returning the flags for the Pth emulation library.
10558 ax_pthread_flags
="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
10560 # The ordering *is* (sometimes) important. Some notes on the
10561 # individual items follow:
10563 # pthreads: AIX (must check this before -lpthread)
10564 # none: in case threads are in libc; should be tried before -Kthread and
10565 # other compiler flags to prevent continual compiler warnings
10566 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
10567 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
10568 # (Note: HP C rejects this with "bad form for `-t' option")
10569 # -pthreads: Solaris/gcc (Note: HP C also rejects)
10570 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
10571 # doesn't hurt to check since this sometimes defines pthreads and
10572 # -D_REENTRANT too), HP C (must be checked before -lpthread, which
10573 # is present but should not be used directly; and before -mthreads,
10574 # because the compiler interprets this as "-mt" + "-hreads")
10575 # -mthreads: Mingw32/gcc, Lynx/gcc
10576 # pthread: Linux, etcetera
10577 # --thread-safe: KAI C++
10578 # pthread-config: use pthread-config program (for GNU Pth library)
10584 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
10585 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
10587 ax_pthread_flags
="-kthread lthread $ax_pthread_flags"
10592 # From the cc(1) man page: "[-mt] Sets various -D flags to enable
10593 # multi-threading and also sets -lpthread."
10595 ax_pthread_flags
="-mt -pthread pthread $ax_pthread_flags"
10600 # IBM z/OS requires a feature-test macro to be defined in order to
10601 # enable POSIX threads at all, so give the user a hint if this is
10602 # not set. (We don't define these ourselves, as they can affect
10603 # other portions of the system API in unpredictable ways.)
10605 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10606 /* end confdefs.h. */
10608 # if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
10609 AX_PTHREAD_ZOS_MISSING
10613 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10614 $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev
/null
2>&1; then :
10615 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
10616 $as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
10624 # On Solaris (at least, for some versions), libc contains stubbed
10625 # (non-functional) versions of the pthreads routines, so link-based
10626 # tests will erroneously succeed. (N.B.: The stubs are missing
10627 # pthread_cleanup_push, or rather a function called by this macro,
10628 # so we could check for that, but who knows whether they'll stub
10629 # that too in a future libc.) So we'll check first for the
10630 # standard Solaris way of linking pthreads (-mt -lpthread).
10632 ax_pthread_flags
="-mt,pthread pthread $ax_pthread_flags"
10636 # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
10638 if test "x$GCC" = "xyes"; then :
10639 ax_pthread_flags
="-pthread -pthreads $ax_pthread_flags"
10642 # The presence of a feature test macro requesting re-entrant function
10643 # definitions is, on some systems, a strong hint that pthreads support is
10644 # correctly enabled
10647 darwin
* | hpux
* | linux
* | osf
* | solaris
*)
10648 ax_pthread_check_macro
="_REENTRANT"
10652 ax_pthread_check_macro
="_THREAD_SAFE"
10656 ax_pthread_check_macro
="--"
10659 if test "x$ax_pthread_check_macro" = "x--"; then :
10660 ax_pthread_check_cond
=0
10662 ax_pthread_check_cond
="!defined($ax_pthread_check_macro)"
10665 # Are we compiling with Clang?
10667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
10668 $as_echo_n "checking whether $CC is Clang... " >&6; }
10669 if ${ax_cv_PTHREAD_CLANG+:} false
; then :
10670 $as_echo_n "(cached) " >&6
10672 ax_cv_PTHREAD_CLANG
=no
10673 # Note that Autoconf sets GCC=yes for Clang as well as GCC
10674 if test "x$GCC" = "xyes"; then
10675 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10676 /* end confdefs.h. */
10677 /* Note: Clang 2.7 lacks __clang_[a-z]+__ */
10678 # if defined(__clang__) && defined(__llvm__)
10679 AX_PTHREAD_CC_IS_CLANG
10683 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10684 $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev
/null
2>&1; then :
10685 ax_cv_PTHREAD_CLANG
=yes
10692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
10693 $as_echo "$ax_cv_PTHREAD_CLANG" >&6; }
10694 ax_pthread_clang
="$ax_cv_PTHREAD_CLANG"
10696 ax_pthread_clang_warning
=no
10698 # Clang needs special handling, because older versions handle the -pthread
10699 # option in a rather... idiosyncratic way
10701 if test "x$ax_pthread_clang" = "xyes"; then
10703 # Clang takes -pthread; it has never supported any other flag
10705 # (Note 1: This will need to be revisited if a system that Clang
10706 # supports has POSIX threads in a separate library. This tends not
10707 # to be the way of modern systems, but it's conceivable.)
10709 # (Note 2: On some systems, notably Darwin, -pthread is not needed
10710 # to get POSIX threads support; the API is always present and
10711 # active. We could reasonably leave PTHREAD_CFLAGS empty. But
10712 # -pthread does define _REENTRANT, and while the Darwin headers
10713 # ignore this macro, third-party headers might not.)
10715 PTHREAD_CFLAGS
="-pthread"
10720 # However, older versions of Clang make a point of warning the user
10721 # that, in an invocation where only linking and no compilation is
10722 # taking place, the -pthread option has no effect ("argument unused
10723 # during compilation"). They expect -pthread to be passed in only
10724 # when source code is being compiled.
10726 # Problem is, this is at odds with the way Automake and most other
10727 # C build frameworks function, which is that the same flags used in
10728 # compilation (CFLAGS) are also used in linking. Many systems
10729 # supported by AX_PTHREAD require exactly this for POSIX threads
10730 # support, and in fact it is often not straightforward to specify a
10731 # flag that is used only in the compilation phase and not in
10732 # linking. Such a scenario is extremely rare in practice.
10734 # Even though use of the -pthread flag in linking would only print
10735 # a warning, this can be a nuisance for well-run software projects
10736 # that build with -Werror. So if the active version of Clang has
10737 # this misfeature, we search for an option to squash it.
10739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
10740 $as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
10741 if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false
; then :
10742 $as_echo_n "(cached) " >&6
10744 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG
=unknown
10745 # Create an alternate version of $ac_link that compiles and
10746 # links in two steps (.c -> .o, .o -> exe) instead of one
10747 # (.c -> exe), because the warning occurs only in the second
10749 ax_pthread_save_ac_link
="$ac_link"
10750 ax_pthread_sed
='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
10751 ax_pthread_link_step
=`$as_echo "$ac_link" | sed "$ax_pthread_sed"`
10752 ax_pthread_2step_ac_link
="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
10753 ax_pthread_save_CFLAGS
="$CFLAGS"
10754 for ax_pthread_try
in '' -Qunused-arguments -Wno-unused-command-line-argument unknown
; do
10755 if test "x$ax_pthread_try" = "xunknown"; then :
10758 CFLAGS
="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
10759 ac_link
="$ax_pthread_save_ac_link"
10760 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10761 /* end confdefs.h. */
10762 int main(void){return 0;}
10764 if ac_fn_c_try_link
"$LINENO"; then :
10765 ac_link
="$ax_pthread_2step_ac_link"
10766 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10767 /* end confdefs.h. */
10768 int main(void){return 0;}
10770 if ac_fn_c_try_link
"$LINENO"; then :
10773 rm -f core conftest.err conftest.
$ac_objext \
10774 conftest
$ac_exeext conftest.
$ac_ext
10777 rm -f core conftest.err conftest.
$ac_objext \
10778 conftest
$ac_exeext conftest.
$ac_ext
10780 ac_link
="$ax_pthread_save_ac_link"
10781 CFLAGS
="$ax_pthread_save_CFLAGS"
10782 if test "x$ax_pthread_try" = "x"; then :
10785 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG
="$ax_pthread_try"
10788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
10789 $as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
10791 case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
10793 *) PTHREAD_CFLAGS
="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
10796 fi # $ax_pthread_clang = yes
10798 if test "x$ax_pthread_ok" = "xno"; then
10799 for ax_pthread_try_flag
in $ax_pthread_flags; do
10801 case $ax_pthread_try_flag in
10803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
10804 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
10808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
10809 $as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
10810 PTHREAD_CFLAGS
="-mt"
10811 PTHREAD_LIBS
="-lpthread"
10815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
10816 $as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
10817 PTHREAD_CFLAGS
="$ax_pthread_try_flag"
10821 # Extract the first word of "pthread-config", so it can be a program name with args.
10822 set dummy pthread-config
; ac_word
=$2
10823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10824 $as_echo_n "checking for $ac_word... " >&6; }
10825 if ${ac_cv_prog_ax_pthread_config+:} false
; then :
10826 $as_echo_n "(cached) " >&6
10828 if test -n "$ax_pthread_config"; then
10829 ac_cv_prog_ax_pthread_config
="$ax_pthread_config" # Let the user override the test.
10831 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10832 for as_dir
in $PATH
10835 test -z "$as_dir" && as_dir
=.
10836 for ac_exec_ext
in '' $ac_executable_extensions; do
10837 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10838 ac_cv_prog_ax_pthread_config
="yes"
10839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10846 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config
="no"
10849 ax_pthread_config
=$ac_cv_prog_ax_pthread_config
10850 if test -n "$ax_pthread_config"; then
10851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
10852 $as_echo "$ax_pthread_config" >&6; }
10854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10855 $as_echo "no" >&6; }
10859 if test "x$ax_pthread_config" = "xno"; then :
10862 PTHREAD_CFLAGS
="`pthread-config --cflags`"
10863 PTHREAD_LIBS
="`pthread-config --ldflags` `pthread-config --libs`"
10867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
10868 $as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
10869 PTHREAD_LIBS
="-l$ax_pthread_try_flag"
10873 ax_pthread_save_CFLAGS
="$CFLAGS"
10874 ax_pthread_save_LIBS
="$LIBS"
10875 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
10876 LIBS
="$PTHREAD_LIBS $LIBS"
10878 # Check for various functions. We must include pthread.h,
10879 # since some functions may be macros. (On the Sequent, we
10880 # need a special flag -Kthread to make this header compile.)
10881 # We check for pthread_join because it is in -lpthread on IRIX
10882 # while pthread_create is in libc. We check for pthread_attr_init
10883 # due to DEC craziness with -lpthreads. We check for
10884 # pthread_cleanup_push because it is one of the few pthread
10885 # functions on Solaris that doesn't have a non-functional libc stub.
10886 # We try pthread_create on general principles.
10888 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10889 /* end confdefs.h. */
10890 #include <pthread.h>
10891 # if $ax_pthread_check_cond
10892 # error "$ax_pthread_check_macro must be defined"
10894 static void routine(void *a) { a = 0; }
10895 static void *start_routine(void *a) { return a; }
10899 pthread_t th; pthread_attr_t attr;
10900 pthread_create(&th, 0, start_routine, 0);
10901 pthread_join(th, 0);
10902 pthread_attr_init(&attr);
10903 pthread_cleanup_push(routine, 0);
10904 pthread_cleanup_pop(0) /* ; */
10909 if ac_fn_c_try_link
"$LINENO"; then :
10912 rm -f core conftest.err conftest.
$ac_objext \
10913 conftest
$ac_exeext conftest.
$ac_ext
10915 CFLAGS
="$ax_pthread_save_CFLAGS"
10916 LIBS
="$ax_pthread_save_LIBS"
10918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
10919 $as_echo "$ax_pthread_ok" >&6; }
10920 if test "x$ax_pthread_ok" = "xyes"; then :
10929 # Various other checks:
10930 if test "x$ax_pthread_ok" = "xyes"; then
10931 ax_pthread_save_CFLAGS
="$CFLAGS"
10932 ax_pthread_save_LIBS
="$LIBS"
10933 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
10934 LIBS
="$PTHREAD_LIBS $LIBS"
10936 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
10937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
10938 $as_echo_n "checking for joinable pthread attribute... " >&6; }
10939 if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false
; then :
10940 $as_echo_n "(cached) " >&6
10942 ax_cv_PTHREAD_JOINABLE_ATTR
=unknown
10943 for ax_pthread_attr
in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED
; do
10944 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10945 /* end confdefs.h. */
10946 #include <pthread.h>
10950 int attr = $ax_pthread_attr; return attr /* ; */
10955 if ac_fn_c_try_link
"$LINENO"; then :
10956 ax_cv_PTHREAD_JOINABLE_ATTR
=$ax_pthread_attr; break
10958 rm -f core conftest.err conftest.
$ac_objext \
10959 conftest
$ac_exeext conftest.
$ac_ext
10963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
10964 $as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
10965 if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
10966 test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
10967 test "x$ax_pthread_joinable_attr_defined" != "xyes"; then :
10969 cat >>confdefs.h
<<_ACEOF
10970 #define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
10973 ax_pthread_joinable_attr_defined
=yes
10977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
10978 $as_echo_n "checking whether more special flags are required for pthreads... " >&6; }
10979 if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false
; then :
10980 $as_echo_n "(cached) " >&6
10982 ax_cv_PTHREAD_SPECIAL_FLAGS
=no
10985 ax_cv_PTHREAD_SPECIAL_FLAGS
="-D_POSIX_PTHREAD_SEMANTICS"
10990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
10991 $as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
10992 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
10993 test "x$ax_pthread_special_flags_added" != "xyes"; then :
10994 PTHREAD_CFLAGS
="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
10995 ax_pthread_special_flags_added
=yes
10998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
10999 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
11000 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false
; then :
11001 $as_echo_n "(cached) " >&6
11003 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11004 /* end confdefs.h. */
11005 #include <pthread.h>
11009 int i = PTHREAD_PRIO_INHERIT;
11014 if ac_fn_c_try_link
"$LINENO"; then :
11015 ax_cv_PTHREAD_PRIO_INHERIT
=yes
11017 ax_cv_PTHREAD_PRIO_INHERIT
=no
11019 rm -f core conftest.err conftest.
$ac_objext \
11020 conftest
$ac_exeext conftest.
$ac_ext
11023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
11024 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
11025 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
11026 test "x$ax_pthread_prio_inherit_defined" != "xyes"; then :
11028 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
11030 ax_pthread_prio_inherit_defined
=yes
11034 CFLAGS
="$ax_pthread_save_CFLAGS"
11035 LIBS
="$ax_pthread_save_LIBS"
11037 # More AIX lossage: compile with *_r variant
11038 if test "x$GCC" != "xyes"; then
11042 x
*/c89|x
*/c89_128|x
*/c99|x
*/c99_128|x
*/cc|x
*/cc128|x
*/xlc|x
*/xlc_v6|x
*/xlc128|x
*/xlc128_v6
) :
11043 #handle absolute path differently from PATH based program lookup
11046 if as_fn_executable_p
${CC}_r
; then :
11047 PTHREAD_CC
="${CC}_r"
11050 for ac_prog
in ${CC}_r
11052 # Extract the first word of "$ac_prog", so it can be a program name with args.
11053 set dummy
$ac_prog; ac_word
=$2
11054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11055 $as_echo_n "checking for $ac_word... " >&6; }
11056 if ${ac_cv_prog_PTHREAD_CC+:} false
; then :
11057 $as_echo_n "(cached) " >&6
11059 if test -n "$PTHREAD_CC"; then
11060 ac_cv_prog_PTHREAD_CC
="$PTHREAD_CC" # Let the user override the test.
11062 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11063 for as_dir
in $PATH
11066 test -z "$as_dir" && as_dir
=.
11067 for ac_exec_ext
in '' $ac_executable_extensions; do
11068 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11069 ac_cv_prog_PTHREAD_CC
="$ac_prog"
11070 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11079 PTHREAD_CC
=$ac_cv_prog_PTHREAD_CC
11080 if test -n "$PTHREAD_CC"; then
11081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
11082 $as_echo "$PTHREAD_CC" >&6; }
11084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11085 $as_echo "no" >&6; }
11089 test -n "$PTHREAD_CC" && break
11091 test -n "$PTHREAD_CC" || PTHREAD_CC
="$CC"
11102 test -n "$PTHREAD_CC" || PTHREAD_CC
="$CC"
11108 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
11109 if test "x$ax_pthread_ok" = "xyes"; then
11114 as_fn_error $?
"pthread not found" "$LINENO" 5
11117 ac_cpp
='$CPP $CPPFLAGS'
11118 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11119 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11120 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
11123 elif test "$threads" = "auto"; then
11129 ac_cpp
='$CPP $CPPFLAGS'
11130 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11131 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11132 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
11136 # We used to check for pthread.h first, but this fails if pthread.h
11137 # requires special compiler flags (e.g. on Tru64 or Sequent).
11138 # It gets checked for in the link test anyway.
11140 # First of all, check if the user has set any of the PTHREAD_LIBS,
11141 # etcetera environment variables, and if threads linking works using
11143 if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
11144 ax_pthread_save_CC
="$CC"
11145 ax_pthread_save_CFLAGS
="$CFLAGS"
11146 ax_pthread_save_LIBS
="$LIBS"
11147 if test "x$PTHREAD_CC" != "x"; then :
11150 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
11151 LIBS
="$PTHREAD_LIBS $LIBS"
11152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
11153 $as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
11154 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11155 /* end confdefs.h. */
11157 /* Override any GCC internal prototype to avoid an error.
11158 Use char because int might match the return type of a GCC
11159 builtin and then its argument prototype would still apply. */
11163 char pthread_join ();
11167 return pthread_join ();
11172 if ac_fn_c_try_link
"$LINENO"; then :
11175 rm -f core conftest.err conftest.
$ac_objext \
11176 conftest
$ac_exeext conftest.
$ac_ext
11177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
11178 $as_echo "$ax_pthread_ok" >&6; }
11179 if test "x$ax_pthread_ok" = "xno"; then
11183 CC
="$ax_pthread_save_CC"
11184 CFLAGS
="$ax_pthread_save_CFLAGS"
11185 LIBS
="$ax_pthread_save_LIBS"
11188 # We must check for the threads library under a number of different
11189 # names; the ordering is very important because some systems
11190 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
11191 # libraries is broken (non-POSIX).
11193 # Create a list of thread flags to try. Items starting with a "-" are
11194 # C compiler flags, and other items are library names, except for "none"
11195 # which indicates that we try without any flags at all, and "pthread-config"
11196 # which is a program returning the flags for the Pth emulation library.
11198 ax_pthread_flags
="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
11200 # The ordering *is* (sometimes) important. Some notes on the
11201 # individual items follow:
11203 # pthreads: AIX (must check this before -lpthread)
11204 # none: in case threads are in libc; should be tried before -Kthread and
11205 # other compiler flags to prevent continual compiler warnings
11206 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
11207 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
11208 # (Note: HP C rejects this with "bad form for `-t' option")
11209 # -pthreads: Solaris/gcc (Note: HP C also rejects)
11210 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
11211 # doesn't hurt to check since this sometimes defines pthreads and
11212 # -D_REENTRANT too), HP C (must be checked before -lpthread, which
11213 # is present but should not be used directly; and before -mthreads,
11214 # because the compiler interprets this as "-mt" + "-hreads")
11215 # -mthreads: Mingw32/gcc, Lynx/gcc
11216 # pthread: Linux, etcetera
11217 # --thread-safe: KAI C++
11218 # pthread-config: use pthread-config program (for GNU Pth library)
11224 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
11225 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
11227 ax_pthread_flags
="-kthread lthread $ax_pthread_flags"
11232 # From the cc(1) man page: "[-mt] Sets various -D flags to enable
11233 # multi-threading and also sets -lpthread."
11235 ax_pthread_flags
="-mt -pthread pthread $ax_pthread_flags"
11240 # IBM z/OS requires a feature-test macro to be defined in order to
11241 # enable POSIX threads at all, so give the user a hint if this is
11242 # not set. (We don't define these ourselves, as they can affect
11243 # other portions of the system API in unpredictable ways.)
11245 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11246 /* end confdefs.h. */
11248 # if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
11249 AX_PTHREAD_ZOS_MISSING
11253 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11254 $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev
/null
2>&1; then :
11255 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
11256 $as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
11264 # On Solaris (at least, for some versions), libc contains stubbed
11265 # (non-functional) versions of the pthreads routines, so link-based
11266 # tests will erroneously succeed. (N.B.: The stubs are missing
11267 # pthread_cleanup_push, or rather a function called by this macro,
11268 # so we could check for that, but who knows whether they'll stub
11269 # that too in a future libc.) So we'll check first for the
11270 # standard Solaris way of linking pthreads (-mt -lpthread).
11272 ax_pthread_flags
="-mt,pthread pthread $ax_pthread_flags"
11276 # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
11278 if test "x$GCC" = "xyes"; then :
11279 ax_pthread_flags
="-pthread -pthreads $ax_pthread_flags"
11282 # The presence of a feature test macro requesting re-entrant function
11283 # definitions is, on some systems, a strong hint that pthreads support is
11284 # correctly enabled
11287 darwin
* | hpux
* | linux
* | osf
* | solaris
*)
11288 ax_pthread_check_macro
="_REENTRANT"
11292 ax_pthread_check_macro
="_THREAD_SAFE"
11296 ax_pthread_check_macro
="--"
11299 if test "x$ax_pthread_check_macro" = "x--"; then :
11300 ax_pthread_check_cond
=0
11302 ax_pthread_check_cond
="!defined($ax_pthread_check_macro)"
11305 # Are we compiling with Clang?
11307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
11308 $as_echo_n "checking whether $CC is Clang... " >&6; }
11309 if ${ax_cv_PTHREAD_CLANG+:} false
; then :
11310 $as_echo_n "(cached) " >&6
11312 ax_cv_PTHREAD_CLANG
=no
11313 # Note that Autoconf sets GCC=yes for Clang as well as GCC
11314 if test "x$GCC" = "xyes"; then
11315 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11316 /* end confdefs.h. */
11317 /* Note: Clang 2.7 lacks __clang_[a-z]+__ */
11318 # if defined(__clang__) && defined(__llvm__)
11319 AX_PTHREAD_CC_IS_CLANG
11323 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11324 $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev
/null
2>&1; then :
11325 ax_cv_PTHREAD_CLANG
=yes
11332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
11333 $as_echo "$ax_cv_PTHREAD_CLANG" >&6; }
11334 ax_pthread_clang
="$ax_cv_PTHREAD_CLANG"
11336 ax_pthread_clang_warning
=no
11338 # Clang needs special handling, because older versions handle the -pthread
11339 # option in a rather... idiosyncratic way
11341 if test "x$ax_pthread_clang" = "xyes"; then
11343 # Clang takes -pthread; it has never supported any other flag
11345 # (Note 1: This will need to be revisited if a system that Clang
11346 # supports has POSIX threads in a separate library. This tends not
11347 # to be the way of modern systems, but it's conceivable.)
11349 # (Note 2: On some systems, notably Darwin, -pthread is not needed
11350 # to get POSIX threads support; the API is always present and
11351 # active. We could reasonably leave PTHREAD_CFLAGS empty. But
11352 # -pthread does define _REENTRANT, and while the Darwin headers
11353 # ignore this macro, third-party headers might not.)
11355 PTHREAD_CFLAGS
="-pthread"
11360 # However, older versions of Clang make a point of warning the user
11361 # that, in an invocation where only linking and no compilation is
11362 # taking place, the -pthread option has no effect ("argument unused
11363 # during compilation"). They expect -pthread to be passed in only
11364 # when source code is being compiled.
11366 # Problem is, this is at odds with the way Automake and most other
11367 # C build frameworks function, which is that the same flags used in
11368 # compilation (CFLAGS) are also used in linking. Many systems
11369 # supported by AX_PTHREAD require exactly this for POSIX threads
11370 # support, and in fact it is often not straightforward to specify a
11371 # flag that is used only in the compilation phase and not in
11372 # linking. Such a scenario is extremely rare in practice.
11374 # Even though use of the -pthread flag in linking would only print
11375 # a warning, this can be a nuisance for well-run software projects
11376 # that build with -Werror. So if the active version of Clang has
11377 # this misfeature, we search for an option to squash it.
11379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
11380 $as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
11381 if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false
; then :
11382 $as_echo_n "(cached) " >&6
11384 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG
=unknown
11385 # Create an alternate version of $ac_link that compiles and
11386 # links in two steps (.c -> .o, .o -> exe) instead of one
11387 # (.c -> exe), because the warning occurs only in the second
11389 ax_pthread_save_ac_link
="$ac_link"
11390 ax_pthread_sed
='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
11391 ax_pthread_link_step
=`$as_echo "$ac_link" | sed "$ax_pthread_sed"`
11392 ax_pthread_2step_ac_link
="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
11393 ax_pthread_save_CFLAGS
="$CFLAGS"
11394 for ax_pthread_try
in '' -Qunused-arguments -Wno-unused-command-line-argument unknown
; do
11395 if test "x$ax_pthread_try" = "xunknown"; then :
11398 CFLAGS
="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
11399 ac_link
="$ax_pthread_save_ac_link"
11400 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11401 /* end confdefs.h. */
11402 int main(void){return 0;}
11404 if ac_fn_c_try_link
"$LINENO"; then :
11405 ac_link
="$ax_pthread_2step_ac_link"
11406 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11407 /* end confdefs.h. */
11408 int main(void){return 0;}
11410 if ac_fn_c_try_link
"$LINENO"; then :
11413 rm -f core conftest.err conftest.
$ac_objext \
11414 conftest
$ac_exeext conftest.
$ac_ext
11417 rm -f core conftest.err conftest.
$ac_objext \
11418 conftest
$ac_exeext conftest.
$ac_ext
11420 ac_link
="$ax_pthread_save_ac_link"
11421 CFLAGS
="$ax_pthread_save_CFLAGS"
11422 if test "x$ax_pthread_try" = "x"; then :
11425 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG
="$ax_pthread_try"
11428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
11429 $as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
11431 case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
11433 *) PTHREAD_CFLAGS
="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
11436 fi # $ax_pthread_clang = yes
11438 if test "x$ax_pthread_ok" = "xno"; then
11439 for ax_pthread_try_flag
in $ax_pthread_flags; do
11441 case $ax_pthread_try_flag in
11443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
11444 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
11448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
11449 $as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
11450 PTHREAD_CFLAGS
="-mt"
11451 PTHREAD_LIBS
="-lpthread"
11455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
11456 $as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
11457 PTHREAD_CFLAGS
="$ax_pthread_try_flag"
11461 # Extract the first word of "pthread-config", so it can be a program name with args.
11462 set dummy pthread-config
; ac_word
=$2
11463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11464 $as_echo_n "checking for $ac_word... " >&6; }
11465 if ${ac_cv_prog_ax_pthread_config+:} false
; then :
11466 $as_echo_n "(cached) " >&6
11468 if test -n "$ax_pthread_config"; then
11469 ac_cv_prog_ax_pthread_config
="$ax_pthread_config" # Let the user override the test.
11471 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11472 for as_dir
in $PATH
11475 test -z "$as_dir" && as_dir
=.
11476 for ac_exec_ext
in '' $ac_executable_extensions; do
11477 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11478 ac_cv_prog_ax_pthread_config
="yes"
11479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11486 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config
="no"
11489 ax_pthread_config
=$ac_cv_prog_ax_pthread_config
11490 if test -n "$ax_pthread_config"; then
11491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
11492 $as_echo "$ax_pthread_config" >&6; }
11494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11495 $as_echo "no" >&6; }
11499 if test "x$ax_pthread_config" = "xno"; then :
11502 PTHREAD_CFLAGS
="`pthread-config --cflags`"
11503 PTHREAD_LIBS
="`pthread-config --ldflags` `pthread-config --libs`"
11507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
11508 $as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
11509 PTHREAD_LIBS
="-l$ax_pthread_try_flag"
11513 ax_pthread_save_CFLAGS
="$CFLAGS"
11514 ax_pthread_save_LIBS
="$LIBS"
11515 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
11516 LIBS
="$PTHREAD_LIBS $LIBS"
11518 # Check for various functions. We must include pthread.h,
11519 # since some functions may be macros. (On the Sequent, we
11520 # need a special flag -Kthread to make this header compile.)
11521 # We check for pthread_join because it is in -lpthread on IRIX
11522 # while pthread_create is in libc. We check for pthread_attr_init
11523 # due to DEC craziness with -lpthreads. We check for
11524 # pthread_cleanup_push because it is one of the few pthread
11525 # functions on Solaris that doesn't have a non-functional libc stub.
11526 # We try pthread_create on general principles.
11528 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11529 /* end confdefs.h. */
11530 #include <pthread.h>
11531 # if $ax_pthread_check_cond
11532 # error "$ax_pthread_check_macro must be defined"
11534 static void routine(void *a) { a = 0; }
11535 static void *start_routine(void *a) { return a; }
11539 pthread_t th; pthread_attr_t attr;
11540 pthread_create(&th, 0, start_routine, 0);
11541 pthread_join(th, 0);
11542 pthread_attr_init(&attr);
11543 pthread_cleanup_push(routine, 0);
11544 pthread_cleanup_pop(0) /* ; */
11549 if ac_fn_c_try_link
"$LINENO"; then :
11552 rm -f core conftest.err conftest.
$ac_objext \
11553 conftest
$ac_exeext conftest.
$ac_ext
11555 CFLAGS
="$ax_pthread_save_CFLAGS"
11556 LIBS
="$ax_pthread_save_LIBS"
11558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
11559 $as_echo "$ax_pthread_ok" >&6; }
11560 if test "x$ax_pthread_ok" = "xyes"; then :
11569 # Various other checks:
11570 if test "x$ax_pthread_ok" = "xyes"; then
11571 ax_pthread_save_CFLAGS
="$CFLAGS"
11572 ax_pthread_save_LIBS
="$LIBS"
11573 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
11574 LIBS
="$PTHREAD_LIBS $LIBS"
11576 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
11577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
11578 $as_echo_n "checking for joinable pthread attribute... " >&6; }
11579 if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false
; then :
11580 $as_echo_n "(cached) " >&6
11582 ax_cv_PTHREAD_JOINABLE_ATTR
=unknown
11583 for ax_pthread_attr
in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED
; do
11584 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11585 /* end confdefs.h. */
11586 #include <pthread.h>
11590 int attr = $ax_pthread_attr; return attr /* ; */
11595 if ac_fn_c_try_link
"$LINENO"; then :
11596 ax_cv_PTHREAD_JOINABLE_ATTR
=$ax_pthread_attr; break
11598 rm -f core conftest.err conftest.
$ac_objext \
11599 conftest
$ac_exeext conftest.
$ac_ext
11603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
11604 $as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
11605 if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
11606 test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
11607 test "x$ax_pthread_joinable_attr_defined" != "xyes"; then :
11609 cat >>confdefs.h
<<_ACEOF
11610 #define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
11613 ax_pthread_joinable_attr_defined
=yes
11617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
11618 $as_echo_n "checking whether more special flags are required for pthreads... " >&6; }
11619 if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false
; then :
11620 $as_echo_n "(cached) " >&6
11622 ax_cv_PTHREAD_SPECIAL_FLAGS
=no
11625 ax_cv_PTHREAD_SPECIAL_FLAGS
="-D_POSIX_PTHREAD_SEMANTICS"
11630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
11631 $as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
11632 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
11633 test "x$ax_pthread_special_flags_added" != "xyes"; then :
11634 PTHREAD_CFLAGS
="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
11635 ax_pthread_special_flags_added
=yes
11638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
11639 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
11640 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false
; then :
11641 $as_echo_n "(cached) " >&6
11643 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11644 /* end confdefs.h. */
11645 #include <pthread.h>
11649 int i = PTHREAD_PRIO_INHERIT;
11654 if ac_fn_c_try_link
"$LINENO"; then :
11655 ax_cv_PTHREAD_PRIO_INHERIT
=yes
11657 ax_cv_PTHREAD_PRIO_INHERIT
=no
11659 rm -f core conftest.err conftest.
$ac_objext \
11660 conftest
$ac_exeext conftest.
$ac_ext
11663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
11664 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
11665 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
11666 test "x$ax_pthread_prio_inherit_defined" != "xyes"; then :
11668 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
11670 ax_pthread_prio_inherit_defined
=yes
11674 CFLAGS
="$ax_pthread_save_CFLAGS"
11675 LIBS
="$ax_pthread_save_LIBS"
11677 # More AIX lossage: compile with *_r variant
11678 if test "x$GCC" != "xyes"; then
11682 x
*/c89|x
*/c89_128|x
*/c99|x
*/c99_128|x
*/cc|x
*/cc128|x
*/xlc|x
*/xlc_v6|x
*/xlc128|x
*/xlc128_v6
) :
11683 #handle absolute path differently from PATH based program lookup
11686 if as_fn_executable_p
${CC}_r
; then :
11687 PTHREAD_CC
="${CC}_r"
11690 for ac_prog
in ${CC}_r
11692 # Extract the first word of "$ac_prog", so it can be a program name with args.
11693 set dummy
$ac_prog; ac_word
=$2
11694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11695 $as_echo_n "checking for $ac_word... " >&6; }
11696 if ${ac_cv_prog_PTHREAD_CC+:} false
; then :
11697 $as_echo_n "(cached) " >&6
11699 if test -n "$PTHREAD_CC"; then
11700 ac_cv_prog_PTHREAD_CC
="$PTHREAD_CC" # Let the user override the test.
11702 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11703 for as_dir
in $PATH
11706 test -z "$as_dir" && as_dir
=.
11707 for ac_exec_ext
in '' $ac_executable_extensions; do
11708 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11709 ac_cv_prog_PTHREAD_CC
="$ac_prog"
11710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11719 PTHREAD_CC
=$ac_cv_prog_PTHREAD_CC
11720 if test -n "$PTHREAD_CC"; then
11721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
11722 $as_echo "$PTHREAD_CC" >&6; }
11724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11725 $as_echo "no" >&6; }
11729 test -n "$PTHREAD_CC" && break
11731 test -n "$PTHREAD_CC" || PTHREAD_CC
="$CC"
11742 test -n "$PTHREAD_CC" || PTHREAD_CC
="$CC"
11748 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
11749 if test "x$ax_pthread_ok" = "xyes"; then
11757 ac_cpp
='$CPP $CPPFLAGS'
11758 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11759 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11760 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
11765 if test "$threads" = "yes"; then
11767 $as_echo "#define ENABLE_THREADS 1" >>confdefs.h
11770 if test "$threads" = "yes"; then
11779 # Used to validate --package-metadata= input. Disabled by default.
11780 # Check whether --enable-jansson was given.
11781 if test "${enable_jansson+set}" = set; then :
11782 enableval
=$enable_jansson; enable_jansson
=$enableval
11784 enable_jansson
="no"
11788 if test "x$enable_jansson" != "xno"; then
11796 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11797 if test -n "$ac_tool_prefix"; then
11798 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11799 set dummy
${ac_tool_prefix}pkg-config
; ac_word
=$2
11800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11801 $as_echo_n "checking for $ac_word... " >&6; }
11802 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
11803 $as_echo_n "(cached) " >&6
11805 case $PKG_CONFIG in
11807 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11810 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11811 for as_dir
in $PATH
11814 test -z "$as_dir" && as_dir
=.
11815 for ac_exec_ext
in '' $ac_executable_extensions; do
11816 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11817 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11828 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11829 if test -n "$PKG_CONFIG"; then
11830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11831 $as_echo "$PKG_CONFIG" >&6; }
11833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11834 $as_echo "no" >&6; }
11839 if test -z "$ac_cv_path_PKG_CONFIG"; then
11840 ac_pt_PKG_CONFIG
=$PKG_CONFIG
11841 # Extract the first word of "pkg-config", so it can be a program name with args.
11842 set dummy pkg-config
; ac_word
=$2
11843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11844 $as_echo_n "checking for $ac_word... " >&6; }
11845 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false
; then :
11846 $as_echo_n "(cached) " >&6
11848 case $ac_pt_PKG_CONFIG in
11850 ac_cv_path_ac_pt_PKG_CONFIG
="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
11853 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11854 for as_dir
in $PATH
11857 test -z "$as_dir" && as_dir
=.
11858 for ac_exec_ext
in '' $ac_executable_extensions; do
11859 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
11860 ac_cv_path_ac_pt_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11871 ac_pt_PKG_CONFIG
=$ac_cv_path_ac_pt_PKG_CONFIG
11872 if test -n "$ac_pt_PKG_CONFIG"; then
11873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
11874 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
11876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11877 $as_echo "no" >&6; }
11880 if test "x$ac_pt_PKG_CONFIG" = x
; then
11883 case $cross_compiling:$ac_tool_warned in
11885 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11886 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11887 ac_tool_warned
=yes ;;
11889 PKG_CONFIG
=$ac_pt_PKG_CONFIG
11892 PKG_CONFIG
="$ac_cv_path_PKG_CONFIG"
11896 if test -n "$PKG_CONFIG"; then
11897 _pkg_min_version
=0.9.0
11898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
11899 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
11900 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
11901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11902 $as_echo "yes" >&6; }
11904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11905 $as_echo "no" >&6; }
11909 if test -n "$PKG_CONFIG"; then :
11913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jansson" >&5
11914 $as_echo_n "checking for jansson... " >&6; }
11916 if test -n "$JANSSON_CFLAGS"; then
11917 pkg_cv_JANSSON_CFLAGS
="$JANSSON_CFLAGS"
11918 elif test -n "$PKG_CONFIG"; then
11919 if test -n "$PKG_CONFIG" && \
11920 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jansson\""; } >&5
11921 ($PKG_CONFIG --exists --print-errors "jansson") 2>&5
11923 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11924 test $ac_status = 0; }; then
11925 pkg_cv_JANSSON_CFLAGS
=`$PKG_CONFIG --cflags "jansson" 2>/dev/null`
11926 test "x$?" != "x0" && pkg_failed
=yes
11933 if test -n "$JANSSON_LIBS"; then
11934 pkg_cv_JANSSON_LIBS
="$JANSSON_LIBS"
11935 elif test -n "$PKG_CONFIG"; then
11936 if test -n "$PKG_CONFIG" && \
11937 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jansson\""; } >&5
11938 ($PKG_CONFIG --exists --print-errors "jansson") 2>&5
11940 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11941 test $ac_status = 0; }; then
11942 pkg_cv_JANSSON_LIBS
=`$PKG_CONFIG --libs "jansson" 2>/dev/null`
11943 test "x$?" != "x0" && pkg_failed
=yes
11951 if test $pkg_failed = no
; then
11952 pkg_save_LDFLAGS
="$LDFLAGS"
11953 LDFLAGS
="$LDFLAGS $pkg_cv_JANSSON_LIBS"
11954 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11955 /* end confdefs.h. */
11965 if ac_fn_c_try_link
"$LINENO"; then :
11970 rm -f core conftest.err conftest.
$ac_objext \
11971 conftest
$ac_exeext conftest.
$ac_ext
11972 LDFLAGS
=$pkg_save_LDFLAGS
11977 if test $pkg_failed = yes; then
11978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11979 $as_echo "no" >&6; }
11981 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11982 _pkg_short_errors_supported
=yes
11984 _pkg_short_errors_supported
=no
11986 if test $_pkg_short_errors_supported = yes; then
11987 JANSSON_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "jansson" 2>&1`
11989 JANSSON_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "jansson" 2>&1`
11991 # Put the nasty error message in config.log where it belongs
11992 echo "$JANSSON_PKG_ERRORS" >&5
11995 as_fn_error $?
"Cannot find jansson library" "$LINENO" 5
11997 elif test $pkg_failed = untried
; then
11998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11999 $as_echo "no" >&6; }
12001 as_fn_error $?
"Cannot find jansson library" "$LINENO" 5
12004 JANSSON_CFLAGS
=$pkg_cv_JANSSON_CFLAGS
12005 JANSSON_LIBS
=$pkg_cv_JANSSON_LIBS
12006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12007 $as_echo "yes" >&6; }
12010 $as_echo "#define HAVE_JANSSON 1" >>confdefs.h
12019 as_fn_error $?
"Cannot find pkg-config" "$LINENO" 5
12024 ac_fn_c_check_decl
"$LINENO" "basename" "ac_cv_have_decl_basename" "$ac_includes_default"
12025 if test "x$ac_cv_have_decl_basename" = xyes
; then :
12031 cat >>confdefs.h
<<_ACEOF
12032 #define HAVE_DECL_BASENAME $ac_have_decl
12034 ac_fn_c_check_decl
"$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default"
12035 if test "x$ac_cv_have_decl_ffs" = xyes
; then :
12041 cat >>confdefs.h
<<_ACEOF
12042 #define HAVE_DECL_FFS $ac_have_decl
12044 ac_fn_c_check_decl
"$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
12045 if test "x$ac_cv_have_decl_asprintf" = xyes
; then :
12051 cat >>confdefs.h
<<_ACEOF
12052 #define HAVE_DECL_ASPRINTF $ac_have_decl
12054 ac_fn_c_check_decl
"$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
12055 if test "x$ac_cv_have_decl_vasprintf" = xyes
; then :
12061 cat >>confdefs.h
<<_ACEOF
12062 #define HAVE_DECL_VASPRINTF $ac_have_decl
12064 ac_fn_c_check_decl
"$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
12065 if test "x$ac_cv_have_decl_snprintf" = xyes
; then :
12071 cat >>confdefs.h
<<_ACEOF
12072 #define HAVE_DECL_SNPRINTF $ac_have_decl
12074 ac_fn_c_check_decl
"$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
12075 if test "x$ac_cv_have_decl_vsnprintf" = xyes
; then :
12081 cat >>confdefs.h
<<_ACEOF
12082 #define HAVE_DECL_VSNPRINTF $ac_have_decl
12084 ac_fn_c_check_decl
"$LINENO" "strverscmp" "ac_cv_have_decl_strverscmp" "$ac_includes_default"
12085 if test "x$ac_cv_have_decl_strverscmp" = xyes
; then :
12091 cat >>confdefs.h
<<_ACEOF
12092 #define HAVE_DECL_STRVERSCMP $ac_have_decl
12096 save_CFLAGS
="$CFLAGS"
12097 CFLAGS
="$CFLAGS -Werror -gpubnames"
12098 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12099 /* end confdefs.h. */
12102 if ac_fn_c_try_compile
"$LINENO"; then :
12107 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12108 CFLAGS
="$save_CFLAGS"
12109 if test "$have_pubnames" = "yes"; then
12110 HAVE_PUBNAMES_TRUE
=
12111 HAVE_PUBNAMES_FALSE
='#'
12113 HAVE_PUBNAMES_TRUE
='#'
12114 HAVE_PUBNAMES_FALSE
=
12118 save_CFLAGS
="$CFLAGS"
12119 CFLAGS
="$CFLAGS -Werror -fno-use-linker-plugin"
12120 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12121 /* end confdefs.h. */
12124 if ac_fn_c_try_compile
"$LINENO"; then :
12125 have_no_use_linker_plugin
=yes
12127 have_no_use_linker_plugin
=no
12129 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12130 CFLAGS
="$save_CFLAGS"
12131 if test "$have_no_use_linker_plugin" = "yes"; then
12132 HAVE_NO_USE_LINKER_PLUGIN_TRUE
=
12133 HAVE_NO_USE_LINKER_PLUGIN_FALSE
='#'
12135 HAVE_NO_USE_LINKER_PLUGIN_TRUE
='#'
12136 HAVE_NO_USE_LINKER_PLUGIN_FALSE
=
12141 ac_cpp
='$CXXCPP $CPPFLAGS'
12142 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12143 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12144 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
12149 ac_cpp
='$CXXCPP $CPPFLAGS'
12150 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12151 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12152 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
12153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12154 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12155 if test -z "$CXXCPP"; then
12156 if ${ac_cv_prog_CXXCPP+:} false
; then :
12157 $as_echo_n "(cached) " >&6
12159 # Double quotes because CXXCPP needs to be expanded
12160 for CXXCPP
in "$CXX -E" "/lib/cpp"
12162 ac_preproc_ok
=false
12163 for ac_cxx_preproc_warn_flag
in '' yes
12165 # Use a header file that comes with gcc, so configuring glibc
12166 # with a fresh cross-compiler works.
12167 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12168 # <limits.h> exists even on freestanding compilers.
12169 # On the NeXT, cc -E runs the code through the compiler's parser,
12170 # not just through cpp. "Syntax error" is here to catch this case.
12171 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12172 /* end confdefs.h. */
12174 # include <limits.h>
12176 # include <assert.h>
12180 if ac_fn_cxx_try_cpp
"$LINENO"; then :
12183 # Broken: fails on valid input.
12186 rm -f conftest.err conftest.i conftest.
$ac_ext
12188 # OK, works on sane cases. Now check whether nonexistent headers
12189 # can be detected and how.
12190 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12191 /* end confdefs.h. */
12192 #include <ac_nonexistent.h>
12194 if ac_fn_cxx_try_cpp
"$LINENO"; then :
12195 # Broken: success on invalid input.
12198 # Passes both tests.
12202 rm -f conftest.err conftest.i conftest.
$ac_ext
12205 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12206 rm -f conftest.i conftest.err conftest.
$ac_ext
12207 if $ac_preproc_ok; then :
12212 ac_cv_prog_CXXCPP
=$CXXCPP
12215 CXXCPP
=$ac_cv_prog_CXXCPP
12217 ac_cv_prog_CXXCPP
=$CXXCPP
12219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12220 $as_echo "$CXXCPP" >&6; }
12221 ac_preproc_ok
=false
12222 for ac_cxx_preproc_warn_flag
in '' yes
12224 # Use a header file that comes with gcc, so configuring glibc
12225 # with a fresh cross-compiler works.
12226 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12227 # <limits.h> exists even on freestanding compilers.
12228 # On the NeXT, cc -E runs the code through the compiler's parser,
12229 # not just through cpp. "Syntax error" is here to catch this case.
12230 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12231 /* end confdefs.h. */
12233 # include <limits.h>
12235 # include <assert.h>
12239 if ac_fn_cxx_try_cpp
"$LINENO"; then :
12242 # Broken: fails on valid input.
12245 rm -f conftest.err conftest.i conftest.
$ac_ext
12247 # OK, works on sane cases. Now check whether nonexistent headers
12248 # can be detected and how.
12249 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12250 /* end confdefs.h. */
12251 #include <ac_nonexistent.h>
12253 if ac_fn_cxx_try_cpp
"$LINENO"; then :
12254 # Broken: success on invalid input.
12257 # Passes both tests.
12261 rm -f conftest.err conftest.i conftest.
$ac_ext
12264 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12265 rm -f conftest.i conftest.err conftest.
$ac_ext
12266 if $ac_preproc_ok; then :
12269 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12270 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12271 as_fn_error $?
"C++ preprocessor \"$CXXCPP\" fails sanity check
12272 See \`config.log' for more details" "$LINENO" 5; }
12276 ac_cpp
='$CXXCPP $CPPFLAGS'
12277 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12278 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12279 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
12282 for ac_header
in unordered_set unordered_map
12284 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12285 ac_fn_cxx_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12286 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
12287 cat >>confdefs.h
<<_ACEOF
12288 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12295 for ac_header
in tr1/unordered_set
tr1/unordered_map
12297 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12298 ac_fn_cxx_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12299 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
12300 cat >>confdefs.h
<<_ACEOF
12301 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12308 for ac_header
in ext
/hash_map ext
/hash_set
12310 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12311 ac_fn_cxx_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12312 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
12313 cat >>confdefs.h
<<_ACEOF
12314 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12321 for ac_header
in byteswap.h
12323 ac_fn_cxx_check_header_mongrel
"$LINENO" "byteswap.h" "ac_cv_header_byteswap_h" "$ac_includes_default"
12324 if test "x$ac_cv_header_byteswap_h" = xyes
; then :
12325 cat >>confdefs.h
<<_ACEOF
12326 #define HAVE_BYTESWAP_H 1
12334 ac_fn_cxx_check_decl
"$LINENO" "bswap_16" "ac_cv_have_decl_bswap_16" "#include <byteswap.h>
12336 if test "x$ac_cv_have_decl_bswap_16" = xyes
; then :
12342 cat >>confdefs.h
<<_ACEOF
12343 #define HAVE_DECL_BSWAP_16 $ac_have_decl
12345 ac_fn_cxx_check_decl
"$LINENO" "bswap_32" "ac_cv_have_decl_bswap_32" "#include <byteswap.h>
12347 if test "x$ac_cv_have_decl_bswap_32" = xyes
; then :
12353 cat >>confdefs.h
<<_ACEOF
12354 #define HAVE_DECL_BSWAP_32 $ac_have_decl
12356 ac_fn_cxx_check_decl
"$LINENO" "bswap_64" "ac_cv_have_decl_bswap_64" "#include <byteswap.h>
12358 if test "x$ac_cv_have_decl_bswap_64" = xyes
; then :
12364 cat >>confdefs.h
<<_ACEOF
12365 #define HAVE_DECL_BSWAP_64 $ac_have_decl
12369 for ac_header
in windows.h
12371 ac_fn_cxx_check_header_mongrel
"$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
12372 if test "x$ac_cv_header_windows_h" = xyes
; then :
12373 cat >>confdefs.h
<<_ACEOF
12374 #define HAVE_WINDOWS_H 1
12381 for ac_header
in dlfcn.h
12383 ac_fn_cxx_check_header_mongrel
"$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
12384 if test "x$ac_cv_header_dlfcn_h" = xyes
; then :
12385 cat >>confdefs.h
<<_ACEOF
12386 #define HAVE_DLFCN_H 1
12393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
12394 $as_echo_n "checking for library containing dlopen... " >&6; }
12395 if ${ac_cv_search_dlopen+:} false
; then :
12396 $as_echo_n "(cached) " >&6
12398 ac_func_search_save_LIBS
=$LIBS
12399 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12400 /* end confdefs.h. */
12402 /* Override any GCC internal prototype to avoid an error.
12403 Use char because int might match the return type of a GCC
12404 builtin and then its argument prototype would still apply. */
12417 for ac_lib
in '' dl dld
; do
12418 if test -z "$ac_lib"; then
12419 ac_res
="none required"
12422 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
12424 if ac_fn_cxx_try_link
"$LINENO"; then :
12425 ac_cv_search_dlopen
=$ac_res
12427 rm -f core conftest.err conftest.
$ac_objext \
12429 if ${ac_cv_search_dlopen+:} false
; then :
12433 if ${ac_cv_search_dlopen+:} false
; then :
12436 ac_cv_search_dlopen
=no
12438 rm conftest.
$ac_ext
12439 LIBS
=$ac_func_search_save_LIBS
12441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
12442 $as_echo "$ac_cv_search_dlopen" >&6; }
12443 ac_res
=$ac_cv_search_dlopen
12444 if test "$ac_res" != no
; then :
12445 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
12449 case "$ac_cv_search_dlopen" in
12450 no
*) DLOPEN_LIBS
="";;
12451 *) DLOPEN_LIBS
="$ac_cv_search_dlopen";;
12455 for ac_func
in mallinfo mallinfo2 posix_fallocate fallocate readv sysconf
times mkdtemp
12457 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12458 ac_fn_cxx_check_func
"$LINENO" "$ac_func" "$as_ac_var"
12459 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
12460 cat >>confdefs.h
<<_ACEOF
12461 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12467 ac_fn_cxx_check_decl
"$LINENO" "basename" "ac_cv_have_decl_basename" "$ac_includes_default"
12468 if test "x$ac_cv_have_decl_basename" = xyes
; then :
12474 cat >>confdefs.h
<<_ACEOF
12475 #define HAVE_DECL_BASENAME $ac_have_decl
12477 ac_fn_cxx_check_decl
"$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default"
12478 if test "x$ac_cv_have_decl_ffs" = xyes
; then :
12484 cat >>confdefs.h
<<_ACEOF
12485 #define HAVE_DECL_FFS $ac_have_decl
12487 ac_fn_cxx_check_decl
"$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
12488 if test "x$ac_cv_have_decl_asprintf" = xyes
; then :
12494 cat >>confdefs.h
<<_ACEOF
12495 #define HAVE_DECL_ASPRINTF $ac_have_decl
12497 ac_fn_cxx_check_decl
"$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
12498 if test "x$ac_cv_have_decl_vasprintf" = xyes
; then :
12504 cat >>confdefs.h
<<_ACEOF
12505 #define HAVE_DECL_VASPRINTF $ac_have_decl
12507 ac_fn_cxx_check_decl
"$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
12508 if test "x$ac_cv_have_decl_snprintf" = xyes
; then :
12514 cat >>confdefs.h
<<_ACEOF
12515 #define HAVE_DECL_SNPRINTF $ac_have_decl
12517 ac_fn_cxx_check_decl
"$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
12518 if test "x$ac_cv_have_decl_vsnprintf" = xyes
; then :
12524 cat >>confdefs.h
<<_ACEOF
12525 #define HAVE_DECL_VSNPRINTF $ac_have_decl
12527 ac_fn_cxx_check_decl
"$LINENO" "strverscmp" "ac_cv_have_decl_strverscmp" "$ac_includes_default"
12528 if test "x$ac_cv_have_decl_strverscmp" = xyes
; then :
12534 cat >>confdefs.h
<<_ACEOF
12535 #define HAVE_DECL_STRVERSCMP $ac_have_decl
12537 ac_fn_cxx_check_decl
"$LINENO" "strndup" "ac_cv_have_decl_strndup" "$ac_includes_default"
12538 if test "x$ac_cv_have_decl_strndup" = xyes
; then :
12544 cat >>confdefs.h
<<_ACEOF
12545 #define HAVE_DECL_STRNDUP $ac_have_decl
12547 ac_fn_cxx_check_decl
"$LINENO" "memmem" "ac_cv_have_decl_memmem" "$ac_includes_default"
12548 if test "x$ac_cv_have_decl_memmem" = xyes
; then :
12554 cat >>confdefs.h
<<_ACEOF
12555 #define HAVE_DECL_MEMMEM $ac_have_decl
12559 # Use of ::std::tr1::unordered_map::rehash causes undefined symbols
12560 # at link time with some versions of GCC.
12561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ::std::tr1::unordered_map::rehash is usable." >&5
12562 $as_echo_n "checking whether ::std::tr1::unordered_map::rehash is usable.... " >&6; }
12563 if ${gold_cv_unordered_map_rehash+:} false
; then :
12564 $as_echo_n "(cached) " >&6
12566 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12567 /* end confdefs.h. */
12569 #include <tr1/unordered_map>
12570 void bar() { ::std::tr1::unordered_map<int, int> x; x.rehash(10); }
12580 if ac_fn_cxx_try_link
"$LINENO"; then :
12581 gold_cv_unordered_map_rehash
=yes
12583 gold_cv_unordered_map_rehash
=no
12585 rm -f core conftest.err conftest.
$ac_objext \
12586 conftest
$ac_exeext conftest.
$ac_ext
12588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_unordered_map_rehash" >&5
12589 $as_echo "$gold_cv_unordered_map_rehash" >&6; }
12590 if test "$gold_cv_unordered_map_rehash" = "yes"; then
12592 $as_echo "#define HAVE_TR1_UNORDERED_MAP_REHASH 1" >>confdefs.h
12596 # Since 5e9091dab8858b25210a91d22fbbbfdee9c969ad gold now requires C++11
12597 # So we need to check for it.
12598 ax_cxx_compile_alternatives
="11 0x" ax_cxx_compile_cxx11_required
=true
12600 ac_cpp
='$CXXCPP $CPPFLAGS'
12601 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12602 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12603 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
12606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
12607 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
12608 if ${ax_cv_cxx_compile_cxx11+:} false
; then :
12609 $as_echo_n "(cached) " >&6
12611 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12612 /* end confdefs.h. */
12615 // If the compiler admits that it is not ready for C++11, why torture it?
12616 // Hopefully, this will speed up the test.
12618 #ifndef __cplusplus
12620 #error "This is not a C++ compiler"
12622 #elif __cplusplus < 201103L
12624 #error "This is not a C++11 compiler"
12631 namespace test_static_assert
12634 template <typename T>
12637 static_assert(sizeof(int) <= sizeof(T), "not big enough");
12642 namespace test_final_override
12648 virtual void f() {}
12651 struct Derived : public Base
12653 virtual ~Derived() override {}
12654 virtual void f() override {}
12659 namespace test_double_right_angle_brackets
12662 template < typename T >
12665 typedef check<void> single_type;
12666 typedef check<check<void>> double_type;
12667 typedef check<check<check<void>>> triple_type;
12668 typedef check<check<check<check<void>>>> quadruple_type;
12672 namespace test_decltype
12685 namespace test_type_deduction
12688 template < typename T1, typename T2 >
12691 static const bool value = false;
12694 template < typename T >
12695 struct is_same<T, T>
12697 static const bool value = true;
12700 template < typename T1, typename T2 >
12702 add(T1 a1, T2 a2) -> decltype(a1 + a2)
12708 test(const int c, volatile int v)
12710 static_assert(is_same<int, decltype(0)>::value == true, "");
12711 static_assert(is_same<int, decltype(c)>::value == false, "");
12712 static_assert(is_same<int, decltype(v)>::value == false, "");
12715 auto sumi = ac + av + 'x';
12716 auto sumf = ac + av + 1.0;
12717 static_assert(is_same<int, decltype(ac)>::value == true, "");
12718 static_assert(is_same<int, decltype(av)>::value == true, "");
12719 static_assert(is_same<int, decltype(sumi)>::value == true, "");
12720 static_assert(is_same<int, decltype(sumf)>::value == false, "");
12721 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
12722 return (sumf > 0.0) ? sumi : add(c, v);
12727 namespace test_noexcept
12730 int f() { return 0; }
12731 int g() noexcept { return 0; }
12733 static_assert(noexcept(f()) == false, "");
12734 static_assert(noexcept(g()) == true, "");
12738 namespace test_constexpr
12741 template < typename CharT >
12742 unsigned long constexpr
12743 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
12745 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
12748 template < typename CharT >
12749 unsigned long constexpr
12750 strlen_c(const CharT *const s) noexcept
12752 return strlen_c_r(s, 0UL);
12755 static_assert(strlen_c("") == 0UL, "");
12756 static_assert(strlen_c("1") == 1UL, "");
12757 static_assert(strlen_c("example") == 7UL, "");
12758 static_assert(strlen_c("another\0example") == 7UL, "");
12762 namespace test_rvalue_references
12768 static constexpr int value = N;
12771 answer<1> f(int&) { return answer<1>(); }
12772 answer<2> f(const int&) { return answer<2>(); }
12773 answer<3> f(int&&) { return answer<3>(); }
12780 static_assert(decltype(f(i))::value == 1, "");
12781 static_assert(decltype(f(c))::value == 2, "");
12782 static_assert(decltype(f(0))::value == 3, "");
12787 namespace test_uniform_initialization
12792 static const int zero {};
12793 static const int one {1};
12796 static_assert(test::zero == 0, "");
12797 static_assert(test::one == 1, "");
12801 namespace test_lambdas
12807 auto lambda1 = [](){};
12808 auto lambda2 = lambda1;
12816 auto a = [](int i, int j){ return i + j; }(1, 2);
12817 auto b = []() -> int { return '0'; }();
12818 auto c = [=](){ return a + b; }();
12819 auto d = [&](){ return c; }();
12820 auto e = [a, &b](int x) mutable {
12821 const auto identity = [](int y){ return y; };
12822 for (auto i = 0; i < a; ++i)
12824 return x + identity(a + b);
12826 return a + b + c + d + e;
12832 const auto nullary = [](){ return 0; };
12833 const auto unary = [](int x){ return x; };
12834 using nullary_t = decltype(nullary);
12835 using unary_t = decltype(unary);
12836 const auto higher1st = [](nullary_t f){ return f(); };
12837 const auto higher2nd = [unary](nullary_t f1){
12838 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
12840 return higher1st(nullary) + higher2nd(nullary)(unary);
12845 namespace test_variadic_templates
12851 template <int N0, int... N1toN>
12852 struct sum<N0, N1toN...>
12854 static constexpr auto value = N0 + sum<N1toN...>::value;
12860 static constexpr auto value = 0;
12863 static_assert(sum<>::value == 0, "");
12864 static_assert(sum<1>::value == 1, "");
12865 static_assert(sum<23>::value == 23, "");
12866 static_assert(sum<1, 2>::value == 3, "");
12867 static_assert(sum<5, 5, 11>::value == 21, "");
12868 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
12872 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
12873 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
12874 // because of this.
12875 namespace test_template_alias_sfinae
12880 template<typename T>
12881 using member = typename T::member_type;
12883 template<typename T>
12886 template<typename T>
12887 void func(member<T>*) {}
12891 void test() { func<foo>(0); }
12895 } // namespace cxx11
12897 #endif // __cplusplus >= 201103L
12902 if ac_fn_cxx_try_compile
"$LINENO"; then :
12903 ax_cv_cxx_compile_cxx11
=yes
12905 ax_cv_cxx_compile_cxx11
=no
12907 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
12910 $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
12911 if test x
$ax_cv_cxx_compile_cxx11 = xyes
; then
12915 if test x
$ac_success = xno
; then
12916 for alternative
in ${ax_cxx_compile_alternatives}; do
12917 switch
="-std=gnu++${alternative}"
12918 cachevar
=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
12919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
12920 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
12921 if eval \
${$cachevar+:} false
; then :
12922 $as_echo_n "(cached) " >&6
12926 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12927 /* end confdefs.h. */
12930 // If the compiler admits that it is not ready for C++11, why torture it?
12931 // Hopefully, this will speed up the test.
12933 #ifndef __cplusplus
12935 #error "This is not a C++ compiler"
12937 #elif __cplusplus < 201103L
12939 #error "This is not a C++11 compiler"
12946 namespace test_static_assert
12949 template <typename T>
12952 static_assert(sizeof(int) <= sizeof(T), "not big enough");
12957 namespace test_final_override
12963 virtual void f() {}
12966 struct Derived : public Base
12968 virtual ~Derived() override {}
12969 virtual void f() override {}
12974 namespace test_double_right_angle_brackets
12977 template < typename T >
12980 typedef check<void> single_type;
12981 typedef check<check<void>> double_type;
12982 typedef check<check<check<void>>> triple_type;
12983 typedef check<check<check<check<void>>>> quadruple_type;
12987 namespace test_decltype
13000 namespace test_type_deduction
13003 template < typename T1, typename T2 >
13006 static const bool value = false;
13009 template < typename T >
13010 struct is_same<T, T>
13012 static const bool value = true;
13015 template < typename T1, typename T2 >
13017 add(T1 a1, T2 a2) -> decltype(a1 + a2)
13023 test(const int c, volatile int v)
13025 static_assert(is_same<int, decltype(0)>::value == true, "");
13026 static_assert(is_same<int, decltype(c)>::value == false, "");
13027 static_assert(is_same<int, decltype(v)>::value == false, "");
13030 auto sumi = ac + av + 'x';
13031 auto sumf = ac + av + 1.0;
13032 static_assert(is_same<int, decltype(ac)>::value == true, "");
13033 static_assert(is_same<int, decltype(av)>::value == true, "");
13034 static_assert(is_same<int, decltype(sumi)>::value == true, "");
13035 static_assert(is_same<int, decltype(sumf)>::value == false, "");
13036 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
13037 return (sumf > 0.0) ? sumi : add(c, v);
13042 namespace test_noexcept
13045 int f() { return 0; }
13046 int g() noexcept { return 0; }
13048 static_assert(noexcept(f()) == false, "");
13049 static_assert(noexcept(g()) == true, "");
13053 namespace test_constexpr
13056 template < typename CharT >
13057 unsigned long constexpr
13058 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
13060 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
13063 template < typename CharT >
13064 unsigned long constexpr
13065 strlen_c(const CharT *const s) noexcept
13067 return strlen_c_r(s, 0UL);
13070 static_assert(strlen_c("") == 0UL, "");
13071 static_assert(strlen_c("1") == 1UL, "");
13072 static_assert(strlen_c("example") == 7UL, "");
13073 static_assert(strlen_c("another\0example") == 7UL, "");
13077 namespace test_rvalue_references
13083 static constexpr int value = N;
13086 answer<1> f(int&) { return answer<1>(); }
13087 answer<2> f(const int&) { return answer<2>(); }
13088 answer<3> f(int&&) { return answer<3>(); }
13095 static_assert(decltype(f(i))::value == 1, "");
13096 static_assert(decltype(f(c))::value == 2, "");
13097 static_assert(decltype(f(0))::value == 3, "");
13102 namespace test_uniform_initialization
13107 static const int zero {};
13108 static const int one {1};
13111 static_assert(test::zero == 0, "");
13112 static_assert(test::one == 1, "");
13116 namespace test_lambdas
13122 auto lambda1 = [](){};
13123 auto lambda2 = lambda1;
13131 auto a = [](int i, int j){ return i + j; }(1, 2);
13132 auto b = []() -> int { return '0'; }();
13133 auto c = [=](){ return a + b; }();
13134 auto d = [&](){ return c; }();
13135 auto e = [a, &b](int x) mutable {
13136 const auto identity = [](int y){ return y; };
13137 for (auto i = 0; i < a; ++i)
13139 return x + identity(a + b);
13141 return a + b + c + d + e;
13147 const auto nullary = [](){ return 0; };
13148 const auto unary = [](int x){ return x; };
13149 using nullary_t = decltype(nullary);
13150 using unary_t = decltype(unary);
13151 const auto higher1st = [](nullary_t f){ return f(); };
13152 const auto higher2nd = [unary](nullary_t f1){
13153 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
13155 return higher1st(nullary) + higher2nd(nullary)(unary);
13160 namespace test_variadic_templates
13166 template <int N0, int... N1toN>
13167 struct sum<N0, N1toN...>
13169 static constexpr auto value = N0 + sum<N1toN...>::value;
13175 static constexpr auto value = 0;
13178 static_assert(sum<>::value == 0, "");
13179 static_assert(sum<1>::value == 1, "");
13180 static_assert(sum<23>::value == 23, "");
13181 static_assert(sum<1, 2>::value == 3, "");
13182 static_assert(sum<5, 5, 11>::value == 21, "");
13183 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
13187 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
13188 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
13189 // because of this.
13190 namespace test_template_alias_sfinae
13195 template<typename T>
13196 using member = typename T::member_type;
13198 template<typename T>
13201 template<typename T>
13202 void func(member<T>*) {}
13206 void test() { func<foo>(0); }
13210 } // namespace cxx11
13212 #endif // __cplusplus >= 201103L
13217 if ac_fn_cxx_try_compile
"$LINENO"; then :
13222 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13225 eval ac_res
=\$
$cachevar
13226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13227 $as_echo "$ac_res" >&6; }
13228 if eval test x\$
$cachevar = xyes
; then
13230 if test -n "$CXXCPP" ; then
13231 CXXCPP
="$CXXCPP $switch"
13239 if test x
$ac_success = xno
; then
13240 for alternative
in ${ax_cxx_compile_alternatives}; do
13241 for switch
in -std=c
++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
13242 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_
$switch" | $as_tr_sh`
13243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
$CXX supports C
++11 features with
$switch" >&5
13244 $as_echo_n "checking whether
$CXX supports C
++11 features with
$switch...
" >&6; }
13245 if eval \${$cachevar+:} false; then :
13246 $as_echo_n "(cached
) " >&6
13250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13251 /* end confdefs.h. */
13254 // If the compiler admits that it is not ready for C++11, why torture it?
13255 // Hopefully, this will speed up the test.
13257 #ifndef __cplusplus
13259 #error "This is not a C
++ compiler
"
13261 #elif __cplusplus < 201103L
13263 #error "This is not a C
++11 compiler
"
13270 namespace test_static_assert
13273 template <typename T>
13276 static_assert(sizeof(int) <= sizeof(T), "not big enough
");
13281 namespace test_final_override
13287 virtual void f() {}
13290 struct Derived : public Base
13292 virtual ~Derived() override {}
13293 virtual void f() override {}
13298 namespace test_double_right_angle_brackets
13301 template < typename T >
13304 typedef check<void> single_type;
13305 typedef check<check<void>> double_type;
13306 typedef check<check<check<void>>> triple_type;
13307 typedef check<check<check<check<void>>>> quadruple_type;
13311 namespace test_decltype
13324 namespace test_type_deduction
13327 template < typename T1, typename T2 >
13330 static const bool value = false;
13333 template < typename T >
13334 struct is_same<T, T>
13336 static const bool value = true;
13339 template < typename T1, typename T2 >
13341 add(T1 a1, T2 a2) -> decltype(a1 + a2)
13347 test(const int c, volatile int v)
13349 static_assert(is_same<int, decltype(0)>::value == true, "");
13350 static_assert(is_same<int, decltype(c)>::value == false, "");
13351 static_assert(is_same<int, decltype(v)>::value == false, "");
13354 auto sumi = ac + av + 'x';
13355 auto sumf = ac + av + 1.0;
13356 static_assert(is_same<int, decltype(ac)>::value == true, "");
13357 static_assert(is_same<int, decltype(av)>::value == true, "");
13358 static_assert(is_same<int, decltype(sumi)>::value == true, "");
13359 static_assert(is_same<int, decltype(sumf)>::value == false, "");
13360 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
13361 return (sumf > 0.0) ? sumi : add(c, v);
13366 namespace test_noexcept
13369 int f() { return 0; }
13370 int g() noexcept { return 0; }
13372 static_assert(noexcept(f()) == false, "");
13373 static_assert(noexcept(g()) == true, "");
13377 namespace test_constexpr
13380 template < typename CharT >
13381 unsigned long constexpr
13382 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
13384 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
13387 template < typename CharT >
13388 unsigned long constexpr
13389 strlen_c(const CharT *const s) noexcept
13391 return strlen_c_r(s, 0UL);
13394 static_assert(strlen_c("") == 0UL, "");
13395 static_assert(strlen_c("1") == 1UL, "");
13396 static_assert(strlen_c("example
") == 7UL, "");
13397 static_assert(strlen_c("another\
0example
") == 7UL, "");
13401 namespace test_rvalue_references
13407 static constexpr int value = N;
13410 answer<1> f(int&) { return answer<1>(); }
13411 answer<2> f(const int&) { return answer<2>(); }
13412 answer<3> f(int&&) { return answer<3>(); }
13419 static_assert(decltype(f(i))::value == 1, "");
13420 static_assert(decltype(f(c))::value == 2, "");
13421 static_assert(decltype(f(0))::value == 3, "");
13426 namespace test_uniform_initialization
13431 static const int zero {};
13432 static const int one {1};
13435 static_assert(test::zero == 0, "");
13436 static_assert(test::one == 1, "");
13440 namespace test_lambdas
13446 auto lambda1 = [](){};
13447 auto lambda2 = lambda1;
13455 auto a = [](int i, int j){ return i + j; }(1, 2);
13456 auto b = []() -> int { return '0'; }();
13457 auto c = [=](){ return a + b; }();
13458 auto d = [&](){ return c; }();
13459 auto e = [a, &b](int x) mutable {
13460 const auto identity = [](int y){ return y; };
13461 for (auto i = 0; i < a; ++i)
13463 return x + identity(a + b);
13465 return a + b + c + d + e;
13471 const auto nullary = [](){ return 0; };
13472 const auto unary = [](int x){ return x; };
13473 using nullary_t = decltype(nullary);
13474 using unary_t = decltype(unary);
13475 const auto higher1st = [](nullary_t f){ return f(); };
13476 const auto higher2nd = [unary](nullary_t f1){
13477 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
13479 return higher1st(nullary) + higher2nd(nullary)(unary);
13484 namespace test_variadic_templates
13490 template <int N0, int... N1toN>
13491 struct sum<N0, N1toN...>
13493 static constexpr auto value = N0 + sum<N1toN...>::value;
13499 static constexpr auto value = 0;
13502 static_assert(sum<>::value == 0, "");
13503 static_assert(sum<1>::value == 1, "");
13504 static_assert(sum<23>::value == 23, "");
13505 static_assert(sum<1, 2>::value == 3, "");
13506 static_assert(sum<5, 5, 11>::value == 21, "");
13507 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
13511 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
13512 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
13513 // because of this.
13514 namespace test_template_alias_sfinae
13519 template<typename T>
13520 using member = typename T::member_type;
13522 template<typename T>
13525 template<typename T>
13526 void func(member<T>*) {}
13530 void test() { func<foo>(0); }
13534 } // namespace cxx11
13536 #endif // __cplusplus >= 201103L
13541 if ac_fn_cxx_try_compile "$LINENO"; then :
13546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13549 eval ac_res=\$$cachevar
13550 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_res" >&5
13551 $as_echo "$ac_res" >&6; }
13552 if eval test x\$$cachevar = xyes; then
13554 if test -n "$CXXCPP" ; then
13555 CXXCPP="$CXXCPP $switch"
13561 if test x$ac_success = xyes; then
13568 ac_cpp='$CXXCPP $CPPFLAGS'
13569 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13570 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13571 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13573 if test x$ax_cxx_compile_cxx11_required = xtrue; then
13574 if test x$ac_success = xno; then
13575 as_fn_error $? "*** A compiler with support
for C
++11 language features is required.
" "$LINENO" 5
13578 if test x$ac_success = xno; then
13580 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C
++11 support was found
" >&5
13581 $as_echo "$as_me: No compiler with C
++11 support was found
" >&6;}
13585 $as_echo "#define HAVE_CXX11 1" >>confdefs.h
13591 # Use of tr1/unordered_map with off_t as a key is not supported on GCC
13592 # 4.1.xx when compiling in 32-bit mode with a 64-bit off_t type.
13593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether std::tr1::hash<off_t> is defined" >&5
13594 $as_echo_n "checking whether std::tr1::hash<off_t> is defined... " >&6; }
13595 if ${gold_cv_hash_off_t+:} false
; then :
13596 $as_echo_n "(cached) " >&6
13598 CXXFLAGS_hold
=$CXXFLAGS
13599 CXXFLAGS
="$CXXFLAGS $LFS_CFLAGS"
13600 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13601 /* end confdefs.h. */
13603 #include <sys/types.h>
13604 #include <tr1/unordered_map>
13605 std::tr1::hash<off_t> h;
13608 if ac_fn_cxx_try_compile
"$LINENO"; then :
13609 gold_cv_hash_off_t
=yes
13611 gold_cv_hash_off_t
=no
13613 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13614 CXXFLAGS
=$CXXFLAGS_hold
13616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_hash_off_t" >&5
13617 $as_echo "$gold_cv_hash_off_t" >&6; }
13618 if test "$gold_cv_hash_off_t" = "yes"; then
13620 $as_echo "#define HAVE_TR1_HASH_OFF_T 1" >>confdefs.h
13624 # gcc 4.3.0 doesn't recognize the printf attribute on a template
13625 # function. Check for that. This is gcc bug 35546. This test can
13626 # probably be removed after the bug has been fixed for a while.
13627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use attributes with template functions" >&5
13628 $as_echo_n "checking whether we can use attributes with template functions... " >&6; }
13629 if ${gold_cv_template_attribute+:} false
; then :
13630 $as_echo_n "(cached) " >&6
13632 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13633 /* end confdefs.h. */
13635 template<typename T> extern void foo(const char*, ...)
13636 __attribute__ ((__format__ (__printf__, 1, 2)));
13637 template<typename T> void foo(const char* format, ...) {}
13638 void bar() { foo<int>("%s\n", "foo"); }
13641 if ac_fn_cxx_try_compile
"$LINENO"; then :
13642 gold_cv_template_attribute
=yes
13644 gold_cv_template_attribute
=no
13646 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_template_attribute" >&5
13649 $as_echo "$gold_cv_template_attribute" >&6; }
13650 if test "$gold_cv_template_attribute" = "yes"; then
13652 $as_echo "#define HAVE_TEMPLATE_ATTRIBUTES 1" >>confdefs.h
13656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct stat::st_mtim." >&5
13657 $as_echo_n "checking for struct stat::st_mtim.... " >&6; }
13658 if ${gold_cv_stat_st_mtim+:} false
; then :
13659 $as_echo_n "(cached) " >&6
13661 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13662 /* end confdefs.h. */
13664 #include <sys/stat.h>
13665 long bar() { struct stat s; return (long)(s.st_mtim.tv_sec + s.st_mtim.tv_sec);}
13675 if ac_fn_cxx_try_compile
"$LINENO"; then :
13676 gold_cv_stat_st_mtim
=yes
13678 gold_cv_stat_st_mtim
=no
13680 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_stat_st_mtim" >&5
13683 $as_echo "$gold_cv_stat_st_mtim" >&6; }
13684 if test "$gold_cv_stat_st_mtim" = "yes"; then
13686 $as_echo "#define HAVE_STAT_ST_MTIM 1" >>confdefs.h
13691 ac_cpp
='$CPP $CPPFLAGS'
13692 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13693 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13694 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
13697 for ac_header
in locale.h
13699 ac_fn_c_check_header_mongrel
"$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
13700 if test "x$ac_cv_header_locale_h" = xyes
; then :
13701 cat >>confdefs.h
<<_ACEOF
13702 #define HAVE_LOCALE_H 1
13709 for ac_func
in setlocale
13711 ac_fn_c_check_func
"$LINENO" "setlocale" "ac_cv_func_setlocale"
13712 if test "x$ac_cv_func_setlocale" = xyes
; then :
13713 cat >>confdefs.h
<<_ACEOF
13714 #define HAVE_SETLOCALE 1
13721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
13722 $as_echo_n "checking for LC_MESSAGES... " >&6; }
13723 if ${am_cv_val_LC_MESSAGES+:} false
; then :
13724 $as_echo_n "(cached) " >&6
13726 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13727 /* end confdefs.h. */
13728 #include <locale.h>
13737 if ac_fn_c_try_link
"$LINENO"; then :
13738 am_cv_val_LC_MESSAGES
=yes
13740 am_cv_val_LC_MESSAGES
=no
13742 rm -f core conftest.err conftest.
$ac_objext \
13743 conftest
$ac_exeext conftest.
$ac_ext
13745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
13746 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
13747 if test $am_cv_val_LC_MESSAGES = yes; then
13749 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
13755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
13756 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
13757 # Check whether --enable-maintainer-mode was given.
13758 if test "${enable_maintainer_mode+set}" = set; then :
13759 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
13761 USE_MAINTAINER_MODE
=no
13764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
13765 $as_echo "$USE_MAINTAINER_MODE" >&6; }
13766 if test $USE_MAINTAINER_MODE = yes; then
13767 MAINTAINER_MODE_TRUE
=
13768 MAINTAINER_MODE_FALSE
='#'
13770 MAINTAINER_MODE_TRUE
='#'
13771 MAINTAINER_MODE_FALSE
=
13774 MAINT
=$MAINTAINER_MODE_TRUE
13778 ac_config_files
="$ac_config_files Makefile testsuite/Makefile po/Makefile.in:po/Make-in"
13780 cat >confcache
<<\_ACEOF
13781 # This file is a shell script that caches the results of configure
13782 # tests run on this system so they can be shared between configure
13783 # scripts and configure runs, see configure's option --config-cache.
13784 # It is not useful on other systems. If it contains results you don't
13785 # want to keep, you may remove or edit it.
13787 # config.status only pays attention to the cache file if you give it
13788 # the --recheck option to rerun configure.
13790 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13791 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13792 # following values.
13796 # The following way of writing the cache mishandles newlines in values,
13797 # but we know of no workaround that is simple, portable, and efficient.
13798 # So, we kill variables containing newlines.
13799 # Ultrix sh set writes to stderr and can't be redirected directly,
13800 # and sets the high bit in the cache file unless we assign to the vars.
13802 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13803 eval ac_val
=\$
$ac_var
13807 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13808 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13811 _ | IFS | as_nl
) ;; #(
13812 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
13813 *) { eval $ac_var=; unset $ac_var;} ;;
13819 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13820 *${as_nl}ac_space
=\
*)
13821 # `set' does not quote correctly, so add quotes: double-quote
13822 # substitution turns \\\\ into \\, and sed turns \\ into \.
13825 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13828 # `set' quotes correctly as required by POSIX, so do not add quotes.
13829 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13838 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13840 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13842 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
13843 if test -w "$cache_file"; then
13844 if test "x$cache_file" != "x/dev/null"; then
13845 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13846 $as_echo "$as_me: updating cache $cache_file" >&6;}
13847 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
13848 cat confcache
>"$cache_file"
13850 case $cache_file in #(
13852 mv -f confcache
"$cache_file"$$
&&
13853 mv -f "$cache_file"$$
"$cache_file" ;; #(
13855 mv -f confcache
"$cache_file" ;;
13860 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13861 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13866 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
13867 # Let make expand exec_prefix.
13868 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
13870 DEFS
=-DHAVE_CONFIG_H
13874 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
13875 # 1. Remove the extension, and $U if already installed.
13876 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
13877 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
13878 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13879 # will be set to the directory where LIBOBJS objects are built.
13880 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13881 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
13883 LIBOBJS
=$ac_libobjs
13885 LTLIBOBJS
=$ac_ltlibobjs
13888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
13889 $as_echo_n "checking that generated files are newer than configure... " >&6; }
13890 if test -n "$am_sleep_pid"; then
13891 # Hide warnings about reused PIDs.
13892 wait $am_sleep_pid 2>/dev
/null
13894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
13895 $as_echo "done" >&6; }
13896 if test -n "$EXEEXT"; then
13898 am__EXEEXT_FALSE
='#'
13900 am__EXEEXT_TRUE
='#'
13904 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13905 as_fn_error $?
"conditional \"AMDEP\" was never defined.
13906 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13908 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13909 as_fn_error $?
"conditional \"am__fastdepCC\" was never defined.
13910 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13912 if test -z "${PLUGINS_TRUE}" && test -z "${PLUGINS_FALSE}"; then
13913 as_fn_error $?
"conditional \"PLUGINS\" was never defined.
13914 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13916 if test -z "${DEFAULT_TARGET_AARCH64_TRUE}" && test -z "${DEFAULT_TARGET_AARCH64_FALSE}"; then
13917 as_fn_error $?
"conditional \"DEFAULT_TARGET_AARCH64\" was never defined.
13918 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13920 if test -z "${DEFAULT_TARGET_ARM_TRUE}" && test -z "${DEFAULT_TARGET_ARM_FALSE}"; then
13921 as_fn_error $?
"conditional \"DEFAULT_TARGET_ARM\" was never defined.
13922 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13924 if test -z "${DEFAULT_TARGET_I386_TRUE}" && test -z "${DEFAULT_TARGET_I386_FALSE}"; then
13925 as_fn_error $?
"conditional \"DEFAULT_TARGET_I386\" was never defined.
13926 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13928 if test -z "${DEFAULT_TARGET_POWERPC_TRUE}" && test -z "${DEFAULT_TARGET_POWERPC_FALSE}"; then
13929 as_fn_error $?
"conditional \"DEFAULT_TARGET_POWERPC\" was never defined.
13930 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13932 if test -z "${DEFAULT_TARGET_SPARC_TRUE}" && test -z "${DEFAULT_TARGET_SPARC_FALSE}"; then
13933 as_fn_error $?
"conditional \"DEFAULT_TARGET_SPARC\" was never defined.
13934 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13936 if test -z "${DEFAULT_TARGET_S390_TRUE}" && test -z "${DEFAULT_TARGET_S390_FALSE}"; then
13937 as_fn_error $?
"conditional \"DEFAULT_TARGET_S390\" was never defined.
13938 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13940 if test -z "${DEFAULT_TARGET_X86_64_TRUE}" && test -z "${DEFAULT_TARGET_X86_64_FALSE}"; then
13941 as_fn_error $?
"conditional \"DEFAULT_TARGET_X86_64\" was never defined.
13942 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13944 if test -z "${DEFAULT_TARGET_X32_TRUE}" && test -z "${DEFAULT_TARGET_X32_FALSE}"; then
13945 as_fn_error $?
"conditional \"DEFAULT_TARGET_X32\" was never defined.
13946 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13948 if test -z "${DEFAULT_TARGET_X86_64_OR_X32_TRUE}" && test -z "${DEFAULT_TARGET_X86_64_OR_X32_FALSE}"; then
13949 as_fn_error $?
"conditional \"DEFAULT_TARGET_X86_64_OR_X32\" was never defined.
13950 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13952 if test -z "${DEFAULT_TARGET_TILEGX_TRUE}" && test -z "${DEFAULT_TARGET_TILEGX_FALSE}"; then
13953 as_fn_error $?
"conditional \"DEFAULT_TARGET_TILEGX\" was never defined.
13954 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13956 if test -z "${DEFAULT_TARGET_MIPS_TRUE}" && test -z "${DEFAULT_TARGET_MIPS_FALSE}"; then
13957 as_fn_error $?
"conditional \"DEFAULT_TARGET_MIPS\" was never defined.
13958 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13960 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13961 as_fn_error $?
"conditional \"am__fastdepCC\" was never defined.
13962 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13964 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
13965 as_fn_error $?
"conditional \"am__fastdepCXX\" was never defined.
13966 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13969 if test -z "${NATIVE_LINKER_TRUE}" && test -z "${NATIVE_LINKER_FALSE}"; then
13970 as_fn_error $?
"conditional \"NATIVE_LINKER\" was never defined.
13971 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13973 if test -z "${GCC_TRUE}" && test -z "${GCC_FALSE}"; then
13974 as_fn_error $?
"conditional \"GCC\" was never defined.
13975 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13977 if test -z "${NATIVE_OR_CROSS_LINKER_TRUE}" && test -z "${NATIVE_OR_CROSS_LINKER_FALSE}"; then
13978 as_fn_error $?
"conditional \"NATIVE_OR_CROSS_LINKER\" was never defined.
13979 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13981 if test -z "${HAVE_STATIC_TRUE}" && test -z "${HAVE_STATIC_FALSE}"; then
13982 as_fn_error $?
"conditional \"HAVE_STATIC\" was never defined.
13983 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13985 if test -z "${FN_PTRS_IN_SO_WITHOUT_PIC_TRUE}" && test -z "${FN_PTRS_IN_SO_WITHOUT_PIC_FALSE}"; then
13986 as_fn_error $?
"conditional \"FN_PTRS_IN_SO_WITHOUT_PIC\" was never defined.
13987 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13989 if test -z "${MCMODEL_MEDIUM_TRUE}" && test -z "${MCMODEL_MEDIUM_FALSE}"; then
13990 as_fn_error $?
"conditional \"MCMODEL_MEDIUM\" was never defined.
13991 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13993 if test -z "${GCC9_TRUE}" && test -z "${GCC9_FALSE}"; then
13994 as_fn_error $?
"conditional \"GCC9\" was never defined.
13995 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13997 if test -z "${CFLAGS_CF_PROTECTION_TRUE}" && test -z "${CFLAGS_CF_PROTECTION_FALSE}"; then
13998 as_fn_error $?
"conditional \"CFLAGS_CF_PROTECTION\" was never defined.
13999 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14001 if test -z "${TLS_TRUE}" && test -z "${TLS_FALSE}"; then
14002 as_fn_error $?
"conditional \"TLS\" was never defined.
14003 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14005 if test -z "${STATIC_TLS_TRUE}" && test -z "${STATIC_TLS_FALSE}"; then
14006 as_fn_error $?
"conditional \"STATIC_TLS\" was never defined.
14007 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14009 if test -z "${OMP_SUPPORT_TRUE}" && test -z "${OMP_SUPPORT_FALSE}"; then
14010 as_fn_error $?
"conditional \"OMP_SUPPORT\" was never defined.
14011 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14013 if test -z "${TLS_GNU2_DIALECT_TRUE}" && test -z "${TLS_GNU2_DIALECT_FALSE}"; then
14014 as_fn_error $?
"conditional \"TLS_GNU2_DIALECT\" was never defined.
14015 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14017 if test -z "${TLS_DESCRIPTORS_TRUE}" && test -z "${TLS_DESCRIPTORS_FALSE}"; then
14018 as_fn_error $?
"conditional \"TLS_DESCRIPTORS\" was never defined.
14019 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14021 if test -z "${IFUNC_TRUE}" && test -z "${IFUNC_FALSE}"; then
14022 as_fn_error $?
"conditional \"IFUNC\" was never defined.
14023 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14025 if test -z "${IFUNC_STATIC_TRUE}" && test -z "${IFUNC_STATIC_FALSE}"; then
14026 as_fn_error $?
"conditional \"IFUNC_STATIC\" was never defined.
14027 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14029 if test -z "${HAVE_ZSTD_TRUE}" && test -z "${HAVE_ZSTD_FALSE}"; then
14030 as_fn_error $?
"conditional \"HAVE_ZSTD\" was never defined.
14031 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14033 if test -z "${THREADS_TRUE}" && test -z "${THREADS_FALSE}"; then
14034 as_fn_error $?
"conditional \"THREADS\" was never defined.
14035 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14037 if test -z "${HAVE_PUBNAMES_TRUE}" && test -z "${HAVE_PUBNAMES_FALSE}"; then
14038 as_fn_error $?
"conditional \"HAVE_PUBNAMES\" was never defined.
14039 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14041 if test -z "${HAVE_NO_USE_LINKER_PLUGIN_TRUE}" && test -z "${HAVE_NO_USE_LINKER_PLUGIN_FALSE}"; then
14042 as_fn_error $?
"conditional \"HAVE_NO_USE_LINKER_PLUGIN\" was never defined.
14043 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14045 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14046 as_fn_error $?
"conditional \"MAINTAINER_MODE\" was never defined.
14047 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14050 : "${CONFIG_STATUS=./config.status}"
14052 ac_clean_files_save
=$ac_clean_files
14053 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
14054 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14055 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14057 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14059 # Generated by $as_me.
14060 # Run this file to recreate the current configuration.
14061 # Compiler output produced by configure, useful for debugging
14062 # configure, is in config.log if it exists.
14065 ac_cs_recheck=false
14068 SHELL=\${CONFIG_SHELL-$SHELL}
14071 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
14072 ## -------------------- ##
14073 ## M4sh Initialization. ##
14074 ## -------------------- ##
14076 # Be more Bourne compatible
14077 DUALCASE
=1; export DUALCASE
# for MKS sh
14078 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
14081 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14082 # is contrary to our usage. Disable this feature.
14083 alias -g '${1+"$@"}'='"$@"'
14084 setopt NO_GLOB_SUBST
14086 case `(set -o) 2>/dev/null` in #(
14098 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14099 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14100 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14101 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14102 # Prefer a ksh shell builtin over an external printf program on Solaris,
14103 # but without wasting forks for bash or zsh.
14104 if test -z "$BASH_VERSION$ZSH_VERSION" \
14105 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14106 as_echo='print
-r --'
14107 as_echo_n='print
-rn --'
14108 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14109 as_echo='printf %s
\n'
14110 as_echo_n='printf %s
'
14112 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14113 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
14114 as_echo_n='/usr
/ucb
/echo -n'
14116 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14117 as_echo_n_body='eval
14121 expr "X$arg" : "X\\(.*\\)$as_nl";
14122 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14124 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
14126 export as_echo_n_body
14127 as_echo_n='sh
-c $as_echo_n_body as_echo
'
14129 export as_echo_body
14130 as_echo='sh
-c $as_echo_body as_echo
'
14133 # The user is always right.
14134 if test "${PATH_SEPARATOR+set}" != set; then
14136 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14137 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14144 # We need space, tab and new line, in precisely that order. Quoting is
14145 # there to prevent editors from complaining about space-tab.
14146 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14147 # splitting by setting IFS to empty value.)
14150 # Find who we are. Look in the path if we contain no directory separator.
14153 *[\\/]* ) as_myself=$0 ;;
14154 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14155 for as_dir in $PATH
14158 test -z "$as_dir" && as_dir=.
14159 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14165 # We did not find ourselves, most probably we were run as `sh COMMAND'
14166 # in which case we are not to be found in the path.
14167 if test "x$as_myself" = x
; then
14170 if test ! -f "$as_myself"; then
14171 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14175 # Unset variables that we do not need and which cause bugs (e.g. in
14176 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14177 # suppresses any "Segmentation fault" message there. '((' could
14178 # trigger a bug in pdksh 5.2.14.
14179 for as_var
in BASH_ENV ENV MAIL MAILPATH
14180 do eval test x\
${$as_var+set} = xset \
14181 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
14194 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
14197 # as_fn_error STATUS ERROR [LINENO LOG_FD]
14198 # ----------------------------------------
14199 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14200 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14201 # script with STATUS, using 1 if that was 0.
14204 as_status
=$1; test $as_status -eq 0 && as_status
=1
14206 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
14207 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14209 $as_echo "$as_me: error: $2" >&2
14210 as_fn_exit
$as_status
14214 # as_fn_set_status STATUS
14215 # -----------------------
14216 # Set $? to STATUS, without forking.
14217 as_fn_set_status
()
14220 } # as_fn_set_status
14222 # as_fn_exit STATUS
14223 # -----------------
14224 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14228 as_fn_set_status
$1
14234 # Portably unset VAR.
14237 { eval $1=; unset $1;}
14239 as_unset
=as_fn_unset
14240 # as_fn_append VAR VALUE
14241 # ----------------------
14242 # Append the text in VALUE to the end of the definition contained in VAR. Take
14243 # advantage of any shell optimizations that allow amortized linear growth over
14244 # repeated appends, instead of the typical quadratic growth present in naive
14246 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
14247 eval 'as_fn_append ()
14258 # as_fn_arith ARG...
14259 # ------------------
14260 # Perform arithmetic evaluation on the ARGs, and store the result in the
14261 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14262 # must be portable across $(()) and expr.
14263 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
14264 eval 'as_fn_arith ()
14271 as_val
=`expr "$@" || test $? -eq 1`
14276 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
14277 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
14283 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14284 as_basename
=basename
14289 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
14295 as_me
=`$as_basename -- "$0" ||
14296 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14297 X"$0" : 'X\(//\)$' \| \
14298 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14300 sed '/^.*\/\([^/][^/]*\)\/*$/{
14314 # Avoid depending upon Character Ranges.
14315 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
14316 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14317 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
14318 as_cr_digits
='0123456789'
14319 as_cr_alnum
=$as_cr_Letters$as_cr_digits
14321 ECHO_C
= ECHO_N
= ECHO_T
=
14322 case `echo -n x` in #(((((
14324 case `echo 'xy\c'` in
14325 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
14327 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
14334 rm -f conf$$ conf$$.exe conf$$.
file
14335 if test -d conf$$.dir
; then
14336 rm -f conf$$.dir
/conf$$.
file
14339 mkdir conf$$.dir
2>/dev
/null
14341 if (echo >conf$$.
file) 2>/dev
/null
; then
14342 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
14344 # ... but there are two gotchas:
14345 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14346 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14347 # In both cases, we have to default to `cp -pR'.
14348 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
14350 elif ln conf$$.
file conf$$
2>/dev
/null
; then
14358 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
14359 rmdir conf$$.dir
2>/dev
/null
14364 # Create "$as_dir" as a directory, including parents if necessary.
14369 -*) as_dir
=.
/$as_dir;;
14371 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
14375 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14376 *) as_qdir
=$as_dir;;
14378 as_dirs
="'$as_qdir' $as_dirs"
14379 as_dir
=`$as_dirname -- "$as_dir" ||
14380 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14381 X"$as_dir" : 'X\(//\)[^/]' \| \
14382 X"$as_dir" : 'X\(//\)$' \| \
14383 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14384 $as_echo X"$as_dir" |
14385 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14389 /^X\(\/\/\)[^/].*/{
14402 test -d "$as_dir" && break
14404 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
14405 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
14409 if mkdir
-p .
2>/dev
/null
; then
14410 as_mkdir_p
='mkdir -p "$as_dir"'
14412 test -d .
/-p && rmdir .
/-p
14417 # as_fn_executable_p FILE
14418 # -----------------------
14419 # Test if FILE is an executable regular file.
14420 as_fn_executable_p
()
14422 test -f "$1" && test -x "$1"
14423 } # as_fn_executable_p
14424 as_test_x
='test -x'
14425 as_executable_p
=as_fn_executable_p
14427 # Sed expression to map a string onto a valid CPP name.
14428 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14430 # Sed expression to map a string onto a valid variable name.
14431 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14435 ## ----------------------------------- ##
14436 ## Main body of $CONFIG_STATUS script. ##
14437 ## ----------------------------------- ##
14439 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
14441 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
14442 # Save the log message, to keep $0 and so on meaningful, and to
14443 # report actual input values of CONFIG_FILES etc. instead of their
14444 # values after options handling.
14446 This file was extended by gold $as_me 0.1, which was
14447 generated by GNU Autoconf 2.69. Invocation command line was
14449 CONFIG_FILES = $CONFIG_FILES
14450 CONFIG_HEADERS = $CONFIG_HEADERS
14451 CONFIG_LINKS = $CONFIG_LINKS
14452 CONFIG_COMMANDS = $CONFIG_COMMANDS
14455 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14460 case $ac_config_files in *"
14461 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
14464 case $ac_config_headers in *"
14465 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
14469 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14470 # Files that config.status was made for.
14471 config_files="$ac_config_files"
14472 config_headers="$ac_config_headers"
14473 config_commands="$ac_config_commands"
14477 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
14479 \`$as_me' instantiates files and other configuration actions
14480 from templates according to the current configuration. Unless the files
14481 and actions are specified as TAGs, all are instantiated by default.
14483 Usage: $0 [OPTION]... [TAG]...
14485 -h, --help print this help, then exit
14486 -V, --version print version number and configuration settings, then exit
14487 --config print configuration, then exit
14488 -q, --quiet, --silent
14489 do not print progress messages
14490 -d, --debug don't remove temporary files
14491 --recheck update $as_me by reconfiguring in the same conditions
14492 --file=FILE[:TEMPLATE]
14493 instantiate the configuration file FILE
14494 --header=FILE[:TEMPLATE]
14495 instantiate the configuration header FILE
14497 Configuration files:
14500 Configuration headers:
14503 Configuration commands:
14506 Report bugs to the package provider."
14509 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14510 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14512 gold config.status 0.1
14513 configured by $0, generated by GNU Autoconf 2.69,
14514 with options \\"\$ac_cs_config\\"
14516 Copyright (C) 2012 Free Software Foundation, Inc.
14517 This config.status script is free software; the Free Software Foundation
14518 gives unlimited permission to copy, distribute and modify it."
14525 test -n "\$AWK" || AWK=awk
14528 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
14529 # The default lists apply if the user does not specify any file.
14535 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
14536 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
14540 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
14552 # Handling of the options.
14553 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
14555 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
14556 $as_echo "$ac_cs_version"; exit ;;
14557 --config |
--confi |
--conf |
--con |
--co |
--c )
14558 $as_echo "$ac_cs_config"; exit ;;
14559 --debug |
--debu |
--deb |
--de |
--d |
-d )
14561 --file |
--fil |
--fi |
--f )
14564 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14565 '') as_fn_error $?
"missing file argument" ;;
14567 as_fn_append CONFIG_FILES
" '$ac_optarg'"
14568 ac_need_defaults
=false
;;
14569 --header |
--heade |
--head |
--hea )
14572 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14574 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
14575 ac_need_defaults
=false
;;
14577 # Conflict between --help and --header
14578 as_fn_error $?
"ambiguous option: \`$1'
14579 Try \`$0 --help' for more information.";;
14580 --help |
--hel |
-h )
14581 $as_echo "$ac_cs_usage"; exit ;;
14582 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
14583 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
14586 # This is an error.
14587 -*) as_fn_error $?
"unrecognized option: \`$1'
14588 Try \`$0 --help' for more information." ;;
14590 *) as_fn_append ac_config_targets
" $1"
14591 ac_need_defaults
=false
;;
14597 ac_configure_extra_args
=
14599 if $ac_cs_silent; then
14601 ac_configure_extra_args
="$ac_configure_extra_args --silent"
14605 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14606 if \$ac_cs_recheck; then
14607 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14609 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14610 CONFIG_SHELL='$SHELL'
14611 export CONFIG_SHELL
14616 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
14620 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14621 ## Running $as_me. ##
14627 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14631 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14632 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
14633 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
14635 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
14636 # Capture the value of LINGUAS because we need it to compute CATALOGS.
14637 LINGUAS="${LINGUAS-%UNSET%}"
14639 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
14640 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
14642 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
14643 # Capture the value of LINGUAS because we need it to compute CATALOGS.
14644 LINGUAS="${LINGUAS-%UNSET%}"
14649 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
14651 # Handling of arguments.
14652 for ac_config_target
in $ac_config_targets
14654 case $ac_config_target in
14655 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
14656 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
14657 "default-1") CONFIG_COMMANDS
="$CONFIG_COMMANDS default-1" ;;
14658 "default-2") CONFIG_COMMANDS
="$CONFIG_COMMANDS default-2" ;;
14659 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
14660 "testsuite/Makefile") CONFIG_FILES
="$CONFIG_FILES testsuite/Makefile" ;;
14661 "po/Makefile.in") CONFIG_FILES
="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
14663 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14668 # If the user did not use the arguments to specify the items to instantiate,
14669 # then the envvar interface is used. Set only those that are not.
14670 # We use the long form for the default assignment because of an extremely
14671 # bizarre bug on SunOS 4.1.3.
14672 if $ac_need_defaults; then
14673 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
14674 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
14675 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
14678 # Have a temporary directory for convenience. Make it in the build tree
14679 # simply because there is no reason against having it here, and in addition,
14680 # creating and moving files from /tmp can sometimes cause problems.
14681 # Hook for its removal unless debugging.
14682 # Note that there is a small window in which the directory will not be cleaned:
14683 # after its creation but before its name has been assigned to `$tmp'.
14687 trap 'exit_status=$?
14688 : "${ac_tmp:=$tmp}"
14689 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14691 trap 'as_fn_exit 1' 1 2 13 15
14693 # Create a (secure) tmp directory for tmp files.
14696 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14700 tmp
=.
/conf$$
-$RANDOM
14701 (umask 077 && mkdir
"$tmp")
14702 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
14705 # Set up the scripts for CONFIG_FILES section.
14706 # No need to generate them if there are no CONFIG_FILES.
14707 # This happens for instance with `./config.status config.h'.
14708 if test -n "$CONFIG_FILES"; then
14711 ac_cr
=`echo X | tr X '\015'`
14712 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14713 # But we know of no other shell where ac_cr would be empty at this
14714 # point, so we can use a bashism as a fallback.
14715 if test "x$ac_cr" = x
; then
14716 eval ac_cr
=\$
\'\\r
\'
14718 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14719 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14722 ac_cs_awk_cr
=$ac_cr
14725 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14730 echo "cat >conf$$subs.awk <<_ACEOF" &&
14731 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14733 } >conf$$subs.sh ||
14734 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
14735 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14737 for ac_last_try in false false false false false :; do
14738 . ./conf$$subs.sh ||
14739 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
14741 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
14742 if test $ac_delim_n = $ac_delim_num; then
14744 elif $ac_last_try; then
14745 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
14747 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
14750 rm -f conf$$subs.sh
14752 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14753 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
14757 s/^/S["/; s
/!.
*/"]=/
14767 s/\(.\{148\}\)..*/\1/
14769 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
14774 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
14781 s/\(.\{148\}\)..*/\1/
14783 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
14787 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
14792 ' <conf$$subs.awk | sed '
14797 ' >>$CONFIG_STATUS || ac_write_fail=1
14798 rm -f conf$$subs.awk
14799 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14801 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
14802 for (key in S) S_is_set[key] = 1
14808 nfields = split(line, field, "@
")
14810 len = length(field[1])
14811 for (i = 2; i < nfields; i++) {
14813 keylen = length(key)
14814 if (S_is_set[key]) {
14816 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14817 len += length(value) + length(field[++i])
14828 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14829 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14830 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
14833 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
14834 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
14837 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14838 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
14839 # trailing colons and then remove the whole line if VPATH becomes empty
14840 # (actually we leave an empty line to preserve line numbers).
14841 if test "x
$srcdir" = x.; then
14842 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14860 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14861 fi # test -n "$CONFIG_FILES"
14863 # Set up the scripts for CONFIG_HEADERS section.
14864 # No need to generate them if there are no CONFIG_HEADERS.
14865 # This happens for instance with `./config.status Makefile'.
14866 if test -n "$CONFIG_HEADERS"; then
14867 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
14871 # Transform confdefs.h into an awk script `defines.awk', embedded as
14872 # here-document in config.status, that substitutes the proper values into
14873 # config.h.in to produce config.h.
14875 # Create a delimiter string that does not exist in confdefs.h, to ease
14876 # handling of long lines.
14878 for ac_last_try in false false :; do
14879 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
14880 if test -z "$ac_tt"; then
14882 elif $ac_last_try; then
14883 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
14885 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
14889 # For the awk script, D is an array of macro values keyed by name,
14890 # likewise P contains macro parameters if any. Preserve backslash
14891 # newline sequences.
14893 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14895 s/.\{148\}/&'"$ac_delim"'/g
14898 s/^[ ]*#[ ]*define[ ][ ]*/ /
14905 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
14907 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
14911 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
14912 D["\
1"]=" \
3\\\\\\n
"\\/p
14914 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
14919 s/.\{148\}/&'"$ac_delim"'/g
14924 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
14927 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
14929 ' <confdefs.h | sed '
14930 s/'"$ac_delim"'/"\\\
14931 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14933 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14934 for (key in D) D_is_set[key] = 1
14937 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14939 split(line, arg, " ")
14940 if (arg[1] == "#") {
14944 defundef
= substr
(arg
[1], 2)
14947 split(mac1
, mac2
, "(") #)
14949 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
14950 if (D_is_set
[macro
]) {
14951 # Preserve the white space surrounding the "#".
14952 print prefix
"define", macro P
[macro
] D
[macro
]
14955 # Replace #undef with comments. This is necessary, for example,
14956 # in the case of _POSIX_SOURCE, which is predefined and required
14957 # on some systems where configure will not decide to define it.
14958 if (defundef
== "undef") {
14959 print
"/*", prefix defundef
, macro
, "*/"
14967 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
14968 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
14969 fi # test -n "$CONFIG_HEADERS"
14972 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14977 :[FHLC
]) ac_mode
=$ac_tag; continue;;
14979 case $ac_mode$ac_tag in
14981 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
14982 :[FH
]-) ac_tag
=-:-;;
14983 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
15000 -) ac_f
="$ac_tmp/stdin";;
15001 *) # Look for the file first in the build tree, then in the source tree
15002 # (if the path is not absolute). The absolute path cannot be DOS-style,
15003 # because $ac_f cannot contain `:'.
15007 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
15009 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15011 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15012 as_fn_append ac_file_inputs
" '$ac_f'"
15015 # Let's still pretend it is `configure' which instantiates (i.e., don't
15016 # use $as_me), people would be surprised to read:
15017 # /* config.h. Generated by config.status. */
15018 configure_input
='Generated from '`
15019 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15021 if test x
"$ac_file" != x-
; then
15022 configure_input
="$ac_file. $configure_input"
15023 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15024 $as_echo "$as_me: creating $ac_file" >&6;}
15026 # Neutralize special characters interpreted by sed in replacement strings.
15027 case $configure_input in #(
15028 *\
&* |
*\|
* |
*\\* )
15029 ac_sed_conf_input
=`$as_echo "$configure_input" |
15030 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15031 *) ac_sed_conf_input
=$configure_input;;
15035 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
15036 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
15041 ac_dir
=`$as_dirname -- "$ac_file" ||
15042 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15043 X"$ac_file" : 'X\(//\)[^/]' \| \
15044 X"$ac_file" : 'X\(//\)$' \| \
15045 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15046 $as_echo X"$ac_file" |
15047 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15051 /^X\(\/\/\)[^/].*/{
15064 as_dir
="$ac_dir"; as_fn_mkdir_p
15068 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
15070 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15071 # A ".." for each directory in $ac_dir_suffix.
15072 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15073 case $ac_top_builddir_sub in
15074 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
15075 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
15078 ac_abs_top_builddir
=$ac_pwd
15079 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
15080 # for backward compatibility:
15081 ac_top_builddir
=$ac_top_build_prefix
15084 .
) # We are building in place.
15086 ac_top_srcdir
=$ac_top_builddir_sub
15087 ac_abs_top_srcdir
=$ac_pwd ;;
15088 [\\/]* | ?
:[\\/]* ) # Absolute name.
15089 ac_srcdir
=$srcdir$ac_dir_suffix;
15090 ac_top_srcdir
=$srcdir
15091 ac_abs_top_srcdir
=$srcdir ;;
15092 *) # Relative name.
15093 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
15094 ac_top_srcdir
=$ac_top_build_prefix$srcdir
15095 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
15097 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
15107 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
15108 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
15110 ac_MKDIR_P
=$MKDIR_P
15112 [\\/$
]* | ?
:[\\/]* ) ;;
15113 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
15117 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15118 # If the template does not know about datarootdir, expand it.
15119 # FIXME: This hack should be removed a few years after 2.60.
15120 ac_datarootdir_hack
=; ac_datarootdir_seen
=
15131 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15132 *datarootdir
*) ac_datarootdir_seen
=yes;;
15133 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
15134 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15135 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15137 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15138 ac_datarootdir_hack='
15139 s&@datadir@&$datadir&g
15140 s&@docdir@&$docdir&g
15141 s&@infodir@&$infodir&g
15142 s&@localedir@&$localedir&g
15143 s&@mandir@&$mandir&g
15144 s&\\\${datarootdir}&$datarootdir&g' ;;
15148 # Neutralize VPATH when `$srcdir' = `.'.
15149 # Shell code in configure.ac might set extrasub.
15150 # FIXME: do we really want to maintain this feature?
15151 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15152 ac_sed_extra="$ac_vpsub
15155 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15157 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
15158 s|@configure_input@|
$ac_sed_conf_input|
;t t
15159 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
15160 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
15161 s
&@srcdir@
&$ac_srcdir&;t t
15162 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
15163 s
&@top_srcdir@
&$ac_top_srcdir&;t t
15164 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
15165 s
&@builddir@
&$ac_builddir&;t t
15166 s
&@abs_builddir@
&$ac_abs_builddir&;t t
15167 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
15168 s
&@INSTALL@
&$ac_INSTALL&;t t
15169 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
15170 $ac_datarootdir_hack
15172 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
15173 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
15175 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15176 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
15177 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
15178 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
15179 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
15180 which seems to be undefined. Please make sure it is defined" >&5
15181 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
15182 which seems to be undefined. Please make sure it is defined" >&2;}
15184 rm -f "$ac_tmp/stdin"
15186 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15187 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15189 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15195 if test x"$ac_file" != x-; then
15197 $as_echo "/* $configure_input */" \
15198 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15199 } >"$ac_tmp/config.h" \
15200 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15201 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15202 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15203 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15206 mv "$ac_tmp/config.h" "$ac_file" \
15207 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15210 $as_echo "/* $configure_input */" \
15211 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15212 || as_fn_error $? "could not create -" "$LINENO" 5
15214 # Compute "$ac_file"'s index
in $config_headers.
15217 for _am_header
in $config_headers :; do
15218 case $_am_header in
15219 $_am_arg |
$_am_arg:* )
15222 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
15225 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15226 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15227 X"$_am_arg" : 'X\(//\)[^/]' \| \
15228 X"$_am_arg" : 'X\(//\)$' \| \
15229 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15230 $as_echo X"$_am_arg" |
15231 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15235 /^X\(\/\/\)[^/].*/{
15247 s/.*/./; q'`/stamp-h
$_am_stamp_count
15250 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15251 $as_echo "$as_me: executing $ac_file commands" >&6;}
15256 case $ac_file$ac_mode in
15257 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
15258 # Older Autoconf quotes --file arguments for eval, but not when files
15259 # are listed without --file. Let's play safe and only enable the eval
15260 # if we detect the quoting.
15261 case $CONFIG_FILES in
15262 *\'*) eval set x
"$CONFIG_FILES" ;;
15263 *) set x
$CONFIG_FILES ;;
15268 # Strip MF so we end up with the name of the file.
15269 mf
=`echo "$mf" | sed -e 's/:.*$//'`
15270 # Check whether this is an Automake generated Makefile or not.
15271 # We used to match only the files named 'Makefile.in', but
15272 # some people rename them; so instead we look at the file content.
15273 # Grep'ing the first line is not enough: some people post-process
15274 # each Makefile.in and add a new line on top of each file to say so.
15275 # Grep'ing the whole file is not good either: AIX grep has a line
15276 # limit of 2048, but all sed's we know have understand at least 4000.
15277 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
15278 dirpart
=`$as_dirname -- "$mf" ||
15279 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15280 X"$mf" : 'X\(//\)[^/]' \| \
15281 X"$mf" : 'X\(//\)$' \| \
15282 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15284 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15288 /^X\(\/\/\)[^/].*/{
15304 # Extract the definition of DEPDIR, am__include, and am__quote
15305 # from the Makefile without running 'make'.
15306 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
15307 test -z "$DEPDIR" && continue
15308 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
15309 test -z "$am__include" && continue
15310 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
15311 # Find all dependency output files, they are included files with
15312 # $(DEPDIR) in their names. We invoke sed twice because it is the
15313 # simplest approach to changing $(DEPDIR) to its actual value in the
15315 for file in `sed -n "
15316 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15317 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
15318 # Make sure the directory exists.
15319 test -f "$dirpart/$file" && continue
15320 fdir
=`$as_dirname -- "$file" ||
15321 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15322 X"$file" : 'X\(//\)[^/]' \| \
15323 X"$file" : 'X\(//\)$' \| \
15324 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15325 $as_echo X"$file" |
15326 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15330 /^X\(\/\/\)[^/].*/{
15343 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
15344 # echo "creating $dirpart/$file"
15345 echo '# dummy' > "$dirpart/$file"
15351 for ac_file
in $CONFIG_FILES; do
15352 # Support "outfile[:infile[:infile...]]"
15354 *:*) ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
15356 # PO directories have a Makefile.in generated from Makefile.in.in.
15357 case "$ac_file" in */Makefile.
in)
15358 # Adjust a relative srcdir.
15359 ac_dir
=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
15360 ac_dir_suffix
=/`echo "$ac_dir"|sed 's%^\./%%'`
15361 ac_dots
=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
15362 # In autoconf-2.13 it is called $ac_given_srcdir.
15363 # In autoconf-2.50 it is called $srcdir.
15364 test -n "$ac_given_srcdir" || ac_given_srcdir
="$srcdir"
15365 case "$ac_given_srcdir" in
15366 .
) top_srcdir
=`echo $ac_dots|sed 's%/$%%'` ;;
15367 /*) top_srcdir
="$ac_given_srcdir" ;;
15368 *) top_srcdir
="$ac_dots$ac_given_srcdir" ;;
15370 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
15371 rm -f "$ac_dir/POTFILES"
15372 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" ||
echo "creating $ac_dir/POTFILES"
15373 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" |
sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," |
sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
15374 POMAKEFILEDEPS
="POTFILES.in"
15375 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
15376 # on $ac_dir but don't depend on user-specified configuration
15378 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
15379 # The LINGUAS file contains the set of available languages.
15380 if test -n "$OBSOLETE_ALL_LINGUAS"; then
15381 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.ac is obsolete" ||
echo "setting ALL_LINGUAS in configure.ac is obsolete"
15383 ALL_LINGUAS_
=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
15384 # Hide the ALL_LINGUAS assigment from automake.
15385 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
15386 POMAKEFILEDEPS
="$POMAKEFILEDEPS LINGUAS"
15388 # The set of available languages was given in configure.ac.
15389 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
15391 case "$ac_given_srcdir" in
15393 *) srcdirpre
='$(srcdir)/' ;;
15399 for lang
in $ALL_LINGUAS; do
15400 POFILES
="$POFILES $srcdirpre$lang.po"
15401 GMOFILES
="$GMOFILES $srcdirpre$lang.gmo"
15402 UPDATEPOFILES
="$UPDATEPOFILES $lang.po-update"
15403 DUMMYPOFILES
="$DUMMYPOFILES $lang.nop"
15405 # CATALOGS depends on both $ac_dir and the user's LINGUAS
15406 # environment variable.
15408 if test -n "$ALL_LINGUAS"; then
15409 for presentlang
in $ALL_LINGUAS; do
15411 if test "%UNSET%" != "$LINGUAS"; then
15412 desiredlanguages
="$LINGUAS"
15414 desiredlanguages
="$ALL_LINGUAS"
15416 for desiredlang
in $desiredlanguages; do
15417 # Use the presentlang catalog if desiredlang is
15418 # a. equal to presentlang, or
15419 # b. a variant of presentlang (because in this case,
15420 # presentlang can be used as a fallback for messages
15421 # which are not translated in the desiredlang catalog).
15422 case "$desiredlang" in
15423 "$presentlang"*) useit
=yes;;
15426 if test $useit = yes; then
15427 INST_LINGUAS
="$INST_LINGUAS $presentlang"
15432 if test -n "$INST_LINGUAS"; then
15433 for lang
in $INST_LINGUAS; do
15434 CATALOGS
="$CATALOGS $lang.gmo"
15437 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" ||
echo "creating $ac_dir/Makefile"
15438 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"
15439 for f
in "$ac_given_srcdir/$ac_dir"/Rules-
*; do
15440 if test -f "$f"; then
15442 *.orig |
*.bak |
*~
) ;;
15443 *) cat "$f" >> "$ac_dir/Makefile" ;;
15452 for ac_file
in $CONFIG_FILES; do
15453 # Support "outfile[:infile[:infile...]]"
15455 *:*) ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
15457 # PO directories have a Makefile.in generated from Makefile.in.in.
15458 case "$ac_file" in */Makefile.
in)
15459 # Adjust a relative srcdir.
15460 ac_dir
=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
15461 ac_dir_suffix
=/`echo "$ac_dir"|sed 's%^\./%%'`
15462 ac_dots
=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
15463 # In autoconf-2.13 it is called $ac_given_srcdir.
15464 # In autoconf-2.50 it is called $srcdir.
15465 test -n "$ac_given_srcdir" || ac_given_srcdir
="$srcdir"
15466 case "$ac_given_srcdir" in
15467 .
) top_srcdir
=`echo $ac_dots|sed 's%/$%%'` ;;
15468 /*) top_srcdir
="$ac_given_srcdir" ;;
15469 *) top_srcdir
="$ac_dots$ac_given_srcdir" ;;
15471 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
15472 rm -f "$ac_dir/POTFILES"
15473 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" ||
echo "creating $ac_dir/POTFILES"
15474 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" |
sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," |
sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
15475 POMAKEFILEDEPS
="POTFILES.in"
15476 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
15477 # on $ac_dir but don't depend on user-specified configuration
15479 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
15480 # The LINGUAS file contains the set of available languages.
15481 if test -n "$OBSOLETE_ALL_LINGUAS"; then
15482 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.ac is obsolete" ||
echo "setting ALL_LINGUAS in configure.ac is obsolete"
15484 ALL_LINGUAS_
=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
15485 # Hide the ALL_LINGUAS assigment from automake.
15486 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
15487 POMAKEFILEDEPS
="$POMAKEFILEDEPS LINGUAS"
15489 # The set of available languages was given in configure.ac.
15490 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
15492 case "$ac_given_srcdir" in
15494 *) srcdirpre
='$(srcdir)/' ;;
15500 for lang
in $ALL_LINGUAS; do
15501 POFILES
="$POFILES $srcdirpre$lang.po"
15502 GMOFILES
="$GMOFILES $srcdirpre$lang.gmo"
15503 UPDATEPOFILES
="$UPDATEPOFILES $lang.po-update"
15504 DUMMYPOFILES
="$DUMMYPOFILES $lang.nop"
15506 # CATALOGS depends on both $ac_dir and the user's LINGUAS
15507 # environment variable.
15509 if test -n "$ALL_LINGUAS"; then
15510 for presentlang
in $ALL_LINGUAS; do
15512 if test "%UNSET%" != "$LINGUAS"; then
15513 desiredlanguages
="$LINGUAS"
15515 desiredlanguages
="$ALL_LINGUAS"
15517 for desiredlang
in $desiredlanguages; do
15518 # Use the presentlang catalog if desiredlang is
15519 # a. equal to presentlang, or
15520 # b. a variant of presentlang (because in this case,
15521 # presentlang can be used as a fallback for messages
15522 # which are not translated in the desiredlang catalog).
15523 case "$desiredlang" in
15524 "$presentlang"*) useit
=yes;;
15527 if test $useit = yes; then
15528 INST_LINGUAS
="$INST_LINGUAS $presentlang"
15533 if test -n "$INST_LINGUAS"; then
15534 for lang
in $INST_LINGUAS; do
15535 CATALOGS
="$CATALOGS $lang.gmo"
15538 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" ||
echo "creating $ac_dir/Makefile"
15539 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"
15540 for f
in "$ac_given_srcdir/$ac_dir"/Rules-
*; do
15541 if test -f "$f"; then
15543 *.orig |
*.bak |
*~
) ;;
15544 *) cat "$f" >> "$ac_dir/Makefile" ;;
15559 ac_clean_files
=$ac_clean_files_save
15561 test $ac_write_fail = 0 ||
15562 as_fn_error $?
"write failure creating $CONFIG_STATUS" "$LINENO" 5
15565 # configure is writing to config.log, and then calls config.status.
15566 # config.status does its own redirection, appending to config.log.
15567 # Unfortunately, on DOS this fails, as config.log is still kept open
15568 # by configure, so config.status won't be able to write to it; its
15569 # output is simply discarded. So we exec the FD to /dev/null,
15570 # effectively closing config.log, so it can be properly (re)opened and
15571 # appended to by config.status. When coming back to configure, we
15572 # need to make the FD available again.
15573 if test "$no_create" != yes; then
15575 ac_config_status_args
=
15576 test "$silent" = yes &&
15577 ac_config_status_args
="$ac_config_status_args --quiet"
15579 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
15581 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15582 # would make configure fail if this is the last instruction.
15583 $ac_cs_success || as_fn_exit
1
15585 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
15586 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15587 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}