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>
622 ac_subst_vars
='am__EXEEXT_FALSE
626 MAINTAINER_MODE_FALSE
630 HAVE_NO_USE_LINKER_PLUGIN_FALSE
631 HAVE_NO_USE_LINKER_PLUGIN_TRUE
655 WARN_CFLAGS_FOR_BUILD
662 TLS_DESCRIPTORS_FALSE
664 TLS_GNU2_DIALECT_FALSE
665 TLS_GNU2_DIALECT_TRUE
673 CFLAGS_CF_PROTECTION_FALSE
674 CFLAGS_CF_PROTECTION_TRUE
679 FN_PTRS_IN_SO_WITHOUT_PIC_FALSE
680 FN_PTRS_IN_SO_WITHOUT_PIC_TRUE
683 NATIVE_OR_CROSS_LINKER_FALSE
684 NATIVE_OR_CROSS_LINKER_TRUE
717 DEFAULT_TARGET_MIPS_FALSE
718 DEFAULT_TARGET_MIPS_TRUE
719 DEFAULT_TARGET_TILEGX_FALSE
720 DEFAULT_TARGET_TILEGX_TRUE
721 DEFAULT_TARGET_X86_64_OR_X32_FALSE
722 DEFAULT_TARGET_X86_64_OR_X32_TRUE
723 DEFAULT_TARGET_X32_FALSE
724 DEFAULT_TARGET_X32_TRUE
725 DEFAULT_TARGET_X86_64_FALSE
726 DEFAULT_TARGET_X86_64_TRUE
727 DEFAULT_TARGET_S390_FALSE
728 DEFAULT_TARGET_S390_TRUE
729 DEFAULT_TARGET_SPARC_FALSE
730 DEFAULT_TARGET_SPARC_TRUE
731 DEFAULT_TARGET_POWERPC_FALSE
732 DEFAULT_TARGET_POWERPC_TRUE
733 DEFAULT_TARGET_I386_FALSE
734 DEFAULT_TARGET_I386_TRUE
735 DEFAULT_TARGET_ARM_FALSE
736 DEFAULT_TARGET_ARM_TRUE
737 DEFAULT_TARGET_AARCH64_FALSE
738 DEFAULT_TARGET_AARCH64_TRUE
775 INSTALL_STRIP_PROGRAM
829 program_transform_name
842 enable_option_checking
844 enable_dependency_tracking
850 enable_default_hash_style
854 enable_build_warnings
860 enable_maintainer_mode
862 ac_precious_vars
='build_alias
884 # Initialize some variables set by options.
886 ac_init_version
=false
887 ac_unrecognized_opts
=
889 # The variables have the same names as the options, with
890 # dashes changed to underlines.
898 program_transform_name
=s
,x
,x
,
906 # Installation directory options.
907 # These are left unexpanded so users can "make install exec_prefix=/foo"
908 # and all the variables that are supposed to be based on exec_prefix
909 # by default will actually change.
910 # Use braces instead of parens because sh, perl, etc. also accept them.
911 # (The list follows the same order as the GNU Coding Standards.)
912 bindir
='${exec_prefix}/bin'
913 sbindir
='${exec_prefix}/sbin'
914 libexecdir
='${exec_prefix}/libexec'
915 datarootdir
='${prefix}/share'
916 datadir
='${datarootdir}'
917 sysconfdir
='${prefix}/etc'
918 sharedstatedir
='${prefix}/com'
919 localstatedir
='${prefix}/var'
920 includedir
='${prefix}/include'
921 oldincludedir
='/usr/include'
922 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
923 infodir
='${datarootdir}/info'
928 libdir
='${exec_prefix}/lib'
929 localedir
='${datarootdir}/locale'
930 mandir
='${datarootdir}/man'
936 # If the previous option needs an argument, assign it.
937 if test -n "$ac_prev"; then
938 eval $ac_prev=\
$ac_option
944 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
949 # Accept the important Cygnus configure options, so we can diagnose typos.
951 case $ac_dashdash$ac_option in
955 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
957 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
960 -build |
--build |
--buil |
--bui |
--bu)
961 ac_prev
=build_alias
;;
962 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
963 build_alias
=$ac_optarg ;;
965 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
966 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
967 ac_prev
=cache_file
;;
968 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
969 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
970 cache_file
=$ac_optarg ;;
973 cache_file
=config.cache
;;
975 -datadir |
--datadir |
--datadi |
--datad)
977 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
978 datadir
=$ac_optarg ;;
980 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
981 |
--dataroo |
--dataro |
--datar)
982 ac_prev
=datarootdir
;;
983 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
984 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
985 datarootdir
=$ac_optarg ;;
987 -disable-* |
--disable-*)
988 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
989 # Reject names that are not valid shell variable names.
990 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
991 as_fn_error $?
"invalid feature name: $ac_useropt"
992 ac_useropt_orig
=$ac_useropt
993 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
994 case $ac_user_opts in
998 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
999 ac_unrecognized_sep
=', ';;
1001 eval enable_
$ac_useropt=no
;;
1003 -docdir |
--docdir |
--docdi |
--doc |
--do)
1005 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1006 docdir
=$ac_optarg ;;
1008 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1010 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1011 dvidir
=$ac_optarg ;;
1013 -enable-* |
--enable-*)
1014 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1015 # Reject names that are not valid shell variable names.
1016 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1017 as_fn_error $?
"invalid feature name: $ac_useropt"
1018 ac_useropt_orig
=$ac_useropt
1019 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1020 case $ac_user_opts in
1022 "enable_
$ac_useropt"
1024 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1025 ac_unrecognized_sep
=', ';;
1027 eval enable_
$ac_useropt=\
$ac_optarg ;;
1029 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1030 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1031 |
--exec |
--exe |
--ex)
1032 ac_prev
=exec_prefix
;;
1033 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1034 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1035 |
--exec=* |
--exe=* |
--ex=*)
1036 exec_prefix
=$ac_optarg ;;
1038 -gas |
--gas |
--ga |
--g)
1039 # Obsolete; use --with-gas.
1042 -help |
--help |
--hel |
--he |
-h)
1043 ac_init_help
=long
;;
1044 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1045 ac_init_help
=recursive
;;
1046 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1047 ac_init_help
=short
;;
1049 -host |
--host |
--hos |
--ho)
1050 ac_prev
=host_alias
;;
1051 -host=* |
--host=* |
--hos=* |
--ho=*)
1052 host_alias
=$ac_optarg ;;
1054 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1056 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1058 htmldir
=$ac_optarg ;;
1060 -includedir |
--includedir |
--includedi |
--included |
--include \
1061 |
--includ |
--inclu |
--incl |
--inc)
1062 ac_prev
=includedir
;;
1063 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1064 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1065 includedir
=$ac_optarg ;;
1067 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1069 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1070 infodir
=$ac_optarg ;;
1072 -libdir |
--libdir |
--libdi |
--libd)
1074 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1075 libdir
=$ac_optarg ;;
1077 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1078 |
--libexe |
--libex |
--libe)
1079 ac_prev
=libexecdir
;;
1080 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1081 |
--libexe=* |
--libex=* |
--libe=*)
1082 libexecdir
=$ac_optarg ;;
1084 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1085 ac_prev
=localedir
;;
1086 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1087 localedir
=$ac_optarg ;;
1089 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1090 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1091 ac_prev
=localstatedir
;;
1092 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1093 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1094 localstatedir
=$ac_optarg ;;
1096 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1098 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1099 mandir
=$ac_optarg ;;
1101 -nfp |
--nfp |
--nf)
1102 # Obsolete; use --without-fp.
1105 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1106 |
--no-cr |
--no-c |
-n)
1109 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1110 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1113 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1114 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1115 |
--oldin |
--oldi |
--old |
--ol |
--o)
1116 ac_prev
=oldincludedir
;;
1117 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1118 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1119 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1120 oldincludedir
=$ac_optarg ;;
1122 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1124 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1125 prefix
=$ac_optarg ;;
1127 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1128 |
--program-pre |
--program-pr |
--program-p)
1129 ac_prev
=program_prefix
;;
1130 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1131 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1132 program_prefix
=$ac_optarg ;;
1134 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1135 |
--program-suf |
--program-su |
--program-s)
1136 ac_prev
=program_suffix
;;
1137 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1138 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1139 program_suffix
=$ac_optarg ;;
1141 -program-transform-name |
--program-transform-name \
1142 |
--program-transform-nam |
--program-transform-na \
1143 |
--program-transform-n |
--program-transform- \
1144 |
--program-transform |
--program-transfor \
1145 |
--program-transfo |
--program-transf \
1146 |
--program-trans |
--program-tran \
1147 |
--progr-tra |
--program-tr |
--program-t)
1148 ac_prev
=program_transform_name
;;
1149 -program-transform-name=* |
--program-transform-name=* \
1150 |
--program-transform-nam=* |
--program-transform-na=* \
1151 |
--program-transform-n=* |
--program-transform-=* \
1152 |
--program-transform=* |
--program-transfor=* \
1153 |
--program-transfo=* |
--program-transf=* \
1154 |
--program-trans=* |
--program-tran=* \
1155 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1156 program_transform_name
=$ac_optarg ;;
1158 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1160 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1161 pdfdir
=$ac_optarg ;;
1163 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1165 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1168 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1169 |
-silent |
--silent |
--silen |
--sile |
--sil)
1172 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1174 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1176 sbindir
=$ac_optarg ;;
1178 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1179 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1180 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1182 ac_prev
=sharedstatedir
;;
1183 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1184 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1185 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1187 sharedstatedir
=$ac_optarg ;;
1189 -site |
--site |
--sit)
1191 -site=* |
--site=* |
--sit=*)
1194 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1196 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1197 srcdir
=$ac_optarg ;;
1199 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1200 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1201 ac_prev
=sysconfdir
;;
1202 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1203 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1204 sysconfdir
=$ac_optarg ;;
1206 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1207 ac_prev
=target_alias
;;
1208 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1209 target_alias
=$ac_optarg ;;
1211 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1214 -version |
--version |
--versio |
--versi |
--vers |
-V)
1215 ac_init_version
=: ;;
1218 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1219 # Reject names that are not valid shell variable names.
1220 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1221 as_fn_error $?
"invalid package name: $ac_useropt"
1222 ac_useropt_orig
=$ac_useropt
1223 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1224 case $ac_user_opts in
1228 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1229 ac_unrecognized_sep
=', ';;
1231 eval with_
$ac_useropt=\
$ac_optarg ;;
1233 -without-* |
--without-*)
1234 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1235 # Reject names that are not valid shell variable names.
1236 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1237 as_fn_error $?
"invalid package name: $ac_useropt"
1238 ac_useropt_orig
=$ac_useropt
1239 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1240 case $ac_user_opts in
1244 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1245 ac_unrecognized_sep
=', ';;
1247 eval with_
$ac_useropt=no
;;
1250 # Obsolete; use --with-x.
1253 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1254 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1255 ac_prev
=x_includes
;;
1256 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1257 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1258 x_includes
=$ac_optarg ;;
1260 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1261 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1262 ac_prev
=x_libraries
;;
1263 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1264 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1265 x_libraries
=$ac_optarg ;;
1267 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1268 Try \`$0 --help' for more information"
1272 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1273 # Reject names that are not valid shell variable names.
1274 case $ac_envvar in #(
1275 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1276 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1278 eval $ac_envvar=\
$ac_optarg
1279 export $ac_envvar ;;
1282 # FIXME: should be removed in autoconf 3.0.
1283 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1284 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1285 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1286 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1292 if test -n "$ac_prev"; then
1293 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1294 as_fn_error $?
"missing argument to $ac_option"
1297 if test -n "$ac_unrecognized_opts"; then
1298 case $enable_option_checking in
1300 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1301 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1305 # Check all directory arguments for consistency.
1306 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1307 datadir sysconfdir sharedstatedir localstatedir includedir \
1308 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1309 libdir localedir mandir
1311 eval ac_val
=\$
$ac_var
1312 # Remove trailing slashes.
1315 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1316 eval $ac_var=\
$ac_val;;
1318 # Be sure to have absolute directory names.
1320 [\\/$
]* | ?
:[\\/]* ) continue;;
1321 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1323 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1326 # There might be people who depend on the old broken behavior: `$host'
1327 # used to hold the argument of --host etc.
1328 # FIXME: To remove some day.
1331 target
=$target_alias
1333 # FIXME: To remove some day.
1334 if test "x$host_alias" != x
; then
1335 if test "x$build_alias" = x
; then
1336 cross_compiling
=maybe
1337 elif test "x$build_alias" != "x$host_alias"; then
1343 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1345 test "$silent" = yes && exec 6>/dev
/null
1348 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1349 ac_ls_di
=`ls -di .` &&
1350 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1351 as_fn_error $?
"working directory cannot be determined"
1352 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1353 as_fn_error $?
"pwd does not report name of working directory"
1356 # Find the source files, if location was not specified.
1357 if test -z "$srcdir"; then
1358 ac_srcdir_defaulted
=yes
1359 # Try the directory containing this script, then the parent directory.
1360 ac_confdir
=`$as_dirname -- "$as_myself" ||
1361 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1362 X"$as_myself" : 'X\(//\)[^/]' \| \
1363 X"$as_myself" : 'X\(//\)$' \| \
1364 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1365 $as_echo X"$as_myself" |
1366 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1384 if test ! -r "$srcdir/$ac_unique_file"; then
1388 ac_srcdir_defaulted
=no
1390 if test ! -r "$srcdir/$ac_unique_file"; then
1391 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1392 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1394 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1396 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1398 # When building in place, set srcdir=.
1399 if test "$ac_abs_confdir" = "$ac_pwd"; then
1402 # Remove unnecessary trailing slashes from srcdir.
1403 # Double slashes in file names in object file debugging info
1404 # mess up M-x gdb in Emacs.
1406 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1408 for ac_var
in $ac_precious_vars; do
1409 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1410 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1411 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1412 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1416 # Report the --help message.
1418 if test "$ac_init_help" = "long"; then
1419 # Omit some internal or obsolete options to make the list less imposing.
1420 # This message is too long to be a string in the A/UX 3.1 sh.
1422 \`configure' configures gold 0.1 to adapt to many kinds of systems.
1424 Usage: $0 [OPTION]... [VAR=VALUE]...
1426 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1427 VAR=VALUE. See below for descriptions of some of the useful variables.
1429 Defaults for the options are specified in brackets.
1432 -h, --help display this help and exit
1433 --help=short display options specific to this package
1434 --help=recursive display the short help of all the included packages
1435 -V, --version display version information and exit
1436 -q, --quiet, --silent do not print \`checking ...' messages
1437 --cache-file=FILE cache test results in FILE [disabled]
1438 -C, --config-cache alias for \`--cache-file=config.cache'
1439 -n, --no-create do not create output files
1440 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1442 Installation directories:
1443 --prefix=PREFIX install architecture-independent files in PREFIX
1444 [$ac_default_prefix]
1445 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1448 By default, \`make install' will install all the files in
1449 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1450 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1451 for instance \`--prefix=\$HOME'.
1453 For better control, use the options below.
1455 Fine tuning of the installation directories:
1456 --bindir=DIR user executables [EPREFIX/bin]
1457 --sbindir=DIR system admin executables [EPREFIX/sbin]
1458 --libexecdir=DIR program executables [EPREFIX/libexec]
1459 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1460 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1461 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1462 --libdir=DIR object code libraries [EPREFIX/lib]
1463 --includedir=DIR C header files [PREFIX/include]
1464 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1465 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1466 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1467 --infodir=DIR info documentation [DATAROOTDIR/info]
1468 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1469 --mandir=DIR man documentation [DATAROOTDIR/man]
1470 --docdir=DIR documentation root [DATAROOTDIR/doc/gold]
1471 --htmldir=DIR html documentation [DOCDIR]
1472 --dvidir=DIR dvi documentation [DOCDIR]
1473 --pdfdir=DIR pdf documentation [DOCDIR]
1474 --psdir=DIR ps documentation [DOCDIR]
1480 --program-prefix=PREFIX prepend PREFIX to installed program names
1481 --program-suffix=SUFFIX append SUFFIX to installed program names
1482 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1485 --build=BUILD configure
for building on BUILD
[guessed
]
1486 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1487 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1491 if test -n "$ac_init_help"; then
1492 case $ac_init_help in
1493 short | recursive
) echo "Configuration of gold 0.1:";;
1498 --disable-option-checking ignore unrecognized
--enable/--with options
1499 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1500 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1501 --enable-silent-rules less verbose build output
(undo
: "make V=1")
1502 --disable-silent-rules verbose build output
(undo
: "make V=0")
1503 --enable-dependency-tracking
1504 do not reject slow dependency extractors
1505 --disable-dependency-tracking
1506 speeds up one-time build
1507 --enable-gold[=ARG
] build gold
[ARG
={default
,yes,no
}]
1508 --enable-plugins Enable support
for plugins
1509 --enable-relro enable -z relro
in ELF linker by default
1510 --enable-targets alternative target configurations
1511 --enable-default-hash-style={sysv
,gnu
,both
}
1512 use this default
hash style
1513 --disable-nls do not use Native Language Support
1514 --enable-werror treat compile warnings as errors
1515 --enable-build-warnings enable build-time compiler warnings
1516 --enable-threads[=ARG
] multi-threaded linking
[ARG
={auto
,yes,no
}]
1517 --enable-jansson enable jansson
[default
=no
]
1518 --enable-maintainer-mode
1519 enable make rules and dependencies not useful
(and
1520 sometimes confusing
) to the casual installer
1523 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1524 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1525 --with-sysroot=DIR search
for usr
/lib et al within DIR
1526 --with-lib-path=dir1
:dir2...
set default LIB_PATH
1527 --with-gold-ldflags=FLAGS additional link flags
for gold
1528 --with-gold-ldadd=LIBS additional libraries
for gold
1529 --with-system-zlib use installed libz
1531 Some influential environment variables
:
1532 CC C compiler
command
1533 CFLAGS C compiler flags
1534 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1535 nonstandard directory
<lib dir
>
1536 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1537 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1538 you have headers
in a nonstandard directory
<include dir
>
1540 CXX C
++ compiler
command
1541 CXXFLAGS C
++ compiler flags
1542 YACC The
`Yet Another Compiler Compiler' implementation to use.
1543 Defaults to the first program found out of: `bison
-y', `byacc',
1545 YFLAGS The list of arguments that will be passed by default to $YACC.
1546 This script will default YFLAGS to the empty string to avoid a
1547 default value of `-d' given by some make applications.
1548 PKG_CONFIG path to pkg-config utility
1550 directories to add to pkg-config's search path
1552 path overriding pkg-config
's built-in search path
1554 C compiler flags for JANSSON, overriding pkg-config
1556 linker flags for JANSSON, overriding pkg-config
1557 CXXCPP C++ preprocessor
1559 Use these variables to override the choices made by `configure' or to
help
1560 it to
find libraries and programs with nonstandard names
/locations.
1562 Report bugs to the package provider.
1567 if test "$ac_init_help" = "recursive"; then
1568 # If there are subdirs, report their specific --help.
1569 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1570 test -d "$ac_dir" ||
1571 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1576 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1578 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1579 # A ".." for each directory in $ac_dir_suffix.
1580 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1581 case $ac_top_builddir_sub in
1582 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1583 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1586 ac_abs_top_builddir
=$ac_pwd
1587 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1588 # for backward compatibility:
1589 ac_top_builddir
=$ac_top_build_prefix
1592 .
) # We are building in place.
1594 ac_top_srcdir
=$ac_top_builddir_sub
1595 ac_abs_top_srcdir
=$ac_pwd ;;
1596 [\\/]* | ?
:[\\/]* ) # Absolute name.
1597 ac_srcdir
=$srcdir$ac_dir_suffix;
1598 ac_top_srcdir
=$srcdir
1599 ac_abs_top_srcdir
=$srcdir ;;
1601 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1602 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1603 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1605 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1607 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1608 # Check for guested configure.
1609 if test -f "$ac_srcdir/configure.gnu"; then
1611 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1612 elif test -f "$ac_srcdir/configure"; then
1614 $SHELL "$ac_srcdir/configure" --help=recursive
1616 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1618 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1622 test -n "$ac_init_help" && exit $ac_status
1623 if $ac_init_version; then
1626 generated by GNU Autoconf
2.69
1628 Copyright
(C
) 2012 Free Software Foundation
, Inc.
1629 This configure
script is free software
; the Free Software Foundation
1630 gives unlimited permission to copy
, distribute and modify it.
1635 ## ------------------------ ##
1636 ## Autoconf initialization. ##
1637 ## ------------------------ ##
1639 # ac_fn_c_try_compile LINENO
1640 # --------------------------
1641 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1642 ac_fn_c_try_compile
()
1644 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1645 rm -f conftest.
$ac_objext
1646 if { { ac_try
="$ac_compile"
1648 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1649 *) ac_try_echo=$ac_try;;
1651 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1652 $as_echo "$ac_try_echo"; } >&5
1653 (eval "$ac_compile") 2>conftest.err
1655 if test -s conftest.err; then
1656 grep -v '^ *+' conftest.err >conftest.er1
1657 cat conftest.er1 >&5
1658 mv -f conftest.er1 conftest.err
1660 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1661 test $ac_status = 0; } && {
1662 test -z "$ac_c_werror_flag" ||
1663 test ! -s conftest.err
1664 } && test -s conftest.$ac_objext; then :
1667 $as_echo "$as_me: failed program was:" >&5
1668 sed 's/^/| /' conftest.$ac_ext >&5
1672 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1673 as_fn_set_status $ac_retval
1675 } # ac_fn_c_try_compile
1677 # ac_fn_c_try_cpp LINENO
1678 # ----------------------
1679 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1682 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1683 if { { ac_try="$ac_cpp conftest.$ac_ext"
1685 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1686 *) ac_try_echo
=$ac_try;;
1688 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1689 $as_echo "$ac_try_echo"; } >&5
1690 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1692 if test -s conftest.err
; then
1693 grep -v '^ *+' conftest.err
>conftest.er1
1694 cat conftest.er1
>&5
1695 mv -f conftest.er1 conftest.err
1697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1698 test $ac_status = 0; } > conftest.i
&& {
1699 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1700 test ! -s conftest.err
1704 $as_echo "$as_me: failed program was:" >&5
1705 sed 's/^/| /' conftest.
$ac_ext >&5
1709 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1710 as_fn_set_status
$ac_retval
1714 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1715 # -------------------------------------------------------
1716 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1717 # the include files in INCLUDES and setting the cache variable VAR
1719 ac_fn_c_check_header_mongrel
()
1721 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1722 if eval \
${$3+:} false
; then :
1723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1724 $as_echo_n "checking for $2... " >&6; }
1725 if eval \
${$3+:} false
; then :
1726 $as_echo_n "(cached) " >&6
1729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1730 $as_echo "$ac_res" >&6; }
1732 # Is the header compilable?
1733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1734 $as_echo_n "checking $2 usability... " >&6; }
1735 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1736 /* end confdefs.h. */
1740 if ac_fn_c_try_compile
"$LINENO"; then :
1741 ac_header_compiler
=yes
1743 ac_header_compiler
=no
1745 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1747 $as_echo "$ac_header_compiler" >&6; }
1749 # Is the header present?
1750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1751 $as_echo_n "checking $2 presence... " >&6; }
1752 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1753 /* end confdefs.h. */
1756 if ac_fn_c_try_cpp
"$LINENO"; then :
1757 ac_header_preproc
=yes
1759 ac_header_preproc
=no
1761 rm -f conftest.err conftest.i conftest.
$ac_ext
1762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1763 $as_echo "$ac_header_preproc" >&6; }
1765 # So? What about this header?
1766 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1768 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1769 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1770 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1771 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1774 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1775 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1776 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1777 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1778 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1779 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1780 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1781 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1782 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1783 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1787 $as_echo_n "checking for $2... " >&6; }
1788 if eval \
${$3+:} false
; then :
1789 $as_echo_n "(cached) " >&6
1791 eval "$3=\$ac_header_compiler"
1794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1795 $as_echo "$ac_res" >&6; }
1797 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1799 } # ac_fn_c_check_header_mongrel
1801 # ac_fn_c_try_run LINENO
1802 # ----------------------
1803 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1804 # that executables *can* be run.
1807 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1808 if { { ac_try
="$ac_link"
1810 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1811 *) ac_try_echo=$ac_try;;
1813 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1814 $as_echo "$ac_try_echo"; } >&5
1815 (eval "$ac_link") 2>&5
1817 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1818 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1819 { { case "(($ac_try" in
1820 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1821 *) ac_try_echo
=$ac_try;;
1823 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1824 $as_echo "$ac_try_echo"; } >&5
1825 (eval "$ac_try") 2>&5
1827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1828 test $ac_status = 0; }; }; then :
1831 $as_echo "$as_me: program exited with status $ac_status" >&5
1832 $as_echo "$as_me: failed program was:" >&5
1833 sed 's/^/| /' conftest.
$ac_ext >&5
1835 ac_retval
=$ac_status
1837 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1838 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1839 as_fn_set_status
$ac_retval
1843 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1844 # -------------------------------------------------------
1845 # Tests whether HEADER exists and can be compiled using the include files in
1846 # INCLUDES, setting the cache variable VAR accordingly.
1847 ac_fn_c_check_header_compile
()
1849 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1851 $as_echo_n "checking for $2... " >&6; }
1852 if eval \
${$3+:} false
; then :
1853 $as_echo_n "(cached) " >&6
1855 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1856 /* end confdefs.h. */
1860 if ac_fn_c_try_compile
"$LINENO"; then :
1865 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1869 $as_echo "$ac_res" >&6; }
1870 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1872 } # ac_fn_c_check_header_compile
1874 # ac_fn_c_try_link LINENO
1875 # -----------------------
1876 # Try to link conftest.$ac_ext, and return whether this succeeded.
1879 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1880 rm -f conftest.
$ac_objext conftest
$ac_exeext
1881 if { { ac_try
="$ac_link"
1883 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1884 *) ac_try_echo=$ac_try;;
1886 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1887 $as_echo "$ac_try_echo"; } >&5
1888 (eval "$ac_link") 2>conftest.err
1890 if test -s conftest.err; then
1891 grep -v '^ *+' conftest.err >conftest.er1
1892 cat conftest.er1 >&5
1893 mv -f conftest.er1 conftest.err
1895 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1896 test $ac_status = 0; } && {
1897 test -z "$ac_c_werror_flag" ||
1898 test ! -s conftest.err
1899 } && test -s conftest$ac_exeext && {
1900 test "$cross_compiling" = yes ||
1901 test -x conftest$ac_exeext
1905 $as_echo "$as_me: failed program was:" >&5
1906 sed 's/^/| /' conftest.$ac_ext >&5
1910 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1911 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1912 # interfere with the next link command; also delete a directory that is
1913 # left behind by Apple's compiler. We do this before executing the actions.
1914 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1915 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1916 as_fn_set_status $ac_retval
1918 } # ac_fn_c_try_link
1920 # ac_fn_cxx_try_compile LINENO
1921 # ----------------------------
1922 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1923 ac_fn_cxx_try_compile ()
1925 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1926 rm -f conftest.$ac_objext
1927 if { { ac_try="$ac_compile"
1929 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1930 *) ac_try_echo
=$ac_try;;
1932 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1933 $as_echo "$ac_try_echo"; } >&5
1934 (eval "$ac_compile") 2>conftest.err
1936 if test -s conftest.err
; then
1937 grep -v '^ *+' conftest.err
>conftest.er1
1938 cat conftest.er1
>&5
1939 mv -f conftest.er1 conftest.err
1941 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1942 test $ac_status = 0; } && {
1943 test -z "$ac_cxx_werror_flag" ||
1944 test ! -s conftest.err
1945 } && test -s conftest.
$ac_objext; then :
1948 $as_echo "$as_me: failed program was:" >&5
1949 sed 's/^/| /' conftest.
$ac_ext >&5
1953 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1954 as_fn_set_status
$ac_retval
1956 } # ac_fn_cxx_try_compile
1958 # ac_fn_c_check_func LINENO FUNC VAR
1959 # ----------------------------------
1960 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1961 ac_fn_c_check_func
()
1963 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1965 $as_echo_n "checking for $2... " >&6; }
1966 if eval \
${$3+:} false
; then :
1967 $as_echo_n "(cached) " >&6
1969 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1970 /* end confdefs.h. */
1971 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1972 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1973 #define $2 innocuous_$2
1975 /* System header to define __stub macros and hopefully few prototypes,
1976 which can conflict with char $2 (); below.
1977 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1978 <limits.h> exists even on freestanding compilers. */
1981 # include <limits.h>
1983 # include <assert.h>
1988 /* Override any GCC internal prototype to avoid an error.
1989 Use char because int might match the return type of a GCC
1990 builtin and then its argument prototype would still apply. */
1995 /* The GNU C library defines this for functions which it implements
1996 to always fail with ENOSYS. Some functions are actually named
1997 something starting with __ and the normal name is an alias. */
1998 #if defined __stub_$2 || defined __stub___$2
2010 if ac_fn_c_try_link
"$LINENO"; then :
2015 rm -f core conftest.err conftest.
$ac_objext \
2016 conftest
$ac_exeext conftest.
$ac_ext
2019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2020 $as_echo "$ac_res" >&6; }
2021 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2023 } # ac_fn_c_check_func
2025 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2026 # ---------------------------------------------
2027 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2029 ac_fn_c_check_decl
()
2031 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2032 as_decl_name
=`echo $2|sed 's/ *(.*//'`
2033 as_decl_use
=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2035 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2036 if eval \
${$3+:} false
; then :
2037 $as_echo_n "(cached) " >&6
2039 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2040 /* end confdefs.h. */
2045 #ifndef $as_decl_name
2047 (void) $as_decl_use;
2049 (void) $as_decl_name;
2057 if ac_fn_c_try_compile
"$LINENO"; then :
2062 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2066 $as_echo "$ac_res" >&6; }
2067 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2069 } # ac_fn_c_check_decl
2071 # ac_fn_cxx_try_cpp LINENO
2072 # ------------------------
2073 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2074 ac_fn_cxx_try_cpp
()
2076 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2077 if { { ac_try
="$ac_cpp conftest.$ac_ext"
2079 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2080 *) ac_try_echo=$ac_try;;
2082 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2083 $as_echo "$ac_try_echo"; } >&5
2084 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2086 if test -s conftest.err; then
2087 grep -v '^ *+' conftest.err >conftest.er1
2088 cat conftest.er1 >&5
2089 mv -f conftest.er1 conftest.err
2091 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2092 test $ac_status = 0; } > conftest.i && {
2093 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2094 test ! -s conftest.err
2098 $as_echo "$as_me: failed program was:" >&5
2099 sed 's/^/| /' conftest.$ac_ext >&5
2103 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2104 as_fn_set_status $ac_retval
2106 } # ac_fn_cxx_try_cpp
2108 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2109 # ---------------------------------------------------------
2110 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2111 # the include files in INCLUDES and setting the cache variable VAR
2113 ac_fn_cxx_check_header_mongrel ()
2115 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2116 if eval \${$3+:} false; then :
2117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2118 $as_echo_n "checking for $2... " >&6; }
2119 if eval \${$3+:} false; then :
2120 $as_echo_n "(cached) " >&6
2123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2124 $as_echo "$ac_res" >&6; }
2126 # Is the header compilable?
2127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2128 $as_echo_n "checking $2 usability... " >&6; }
2129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2130 /* end confdefs.h. */
2134 if ac_fn_cxx_try_compile "$LINENO"; then :
2135 ac_header_compiler=yes
2137 ac_header_compiler=no
2139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2141 $as_echo "$ac_header_compiler" >&6; }
2143 # Is the header present?
2144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2145 $as_echo_n "checking $2 presence... " >&6; }
2146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2147 /* end confdefs.h. */
2150 if ac_fn_cxx_try_cpp "$LINENO"; then :
2151 ac_header_preproc=yes
2153 ac_header_preproc=no
2155 rm -f conftest.err conftest.i conftest.$ac_ext
2156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2157 $as_echo "$ac_header_preproc" >&6; }
2159 # So? What about this header?
2160 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2162 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2163 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2164 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2165 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2168 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2169 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2170 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2171 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2172 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2173 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2174 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2175 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2176 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2177 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2181 $as_echo_n "checking for $2... " >&6; }
2182 if eval \${$3+:} false; then :
2183 $as_echo_n "(cached) " >&6
2185 eval "$3=\$ac_header_compiler"
2188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2189 $as_echo "$ac_res" >&6; }
2191 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2193 } # ac_fn_cxx_check_header_mongrel
2195 # ac_fn_cxx_check_decl LINENO SYMBOL VAR INCLUDES
2196 # -----------------------------------------------
2197 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2199 ac_fn_cxx_check_decl ()
2201 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2202 as_decl_name=`echo $2|
sed 's/ *(.*//'`
2203 as_decl_use=`echo $2|
sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2205 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2206 if eval \${$3+:} false; then :
2207 $as_echo_n "(cached) " >&6
2209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2210 /* end confdefs.h. */
2215 #ifndef $as_decl_name
2217 (void) $as_decl_use;
2219 (void) $as_decl_name;
2227 if ac_fn_cxx_try_compile "$LINENO"; then :
2232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2236 $as_echo "$ac_res" >&6; }
2237 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2239 } # ac_fn_cxx_check_decl
2241 # ac_fn_cxx_try_link LINENO
2242 # -------------------------
2243 # Try to link conftest.$ac_ext, and return whether this succeeded.
2244 ac_fn_cxx_try_link ()
2246 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2247 rm -f conftest.$ac_objext conftest$ac_exeext
2248 if { { ac_try="$ac_link"
2250 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2251 *) ac_try_echo
=$ac_try;;
2253 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2254 $as_echo "$ac_try_echo"; } >&5
2255 (eval "$ac_link") 2>conftest.err
2257 if test -s conftest.err
; then
2258 grep -v '^ *+' conftest.err
>conftest.er1
2259 cat conftest.er1
>&5
2260 mv -f conftest.er1 conftest.err
2262 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2263 test $ac_status = 0; } && {
2264 test -z "$ac_cxx_werror_flag" ||
2265 test ! -s conftest.err
2266 } && test -s conftest
$ac_exeext && {
2267 test "$cross_compiling" = yes ||
2268 test -x conftest
$ac_exeext
2272 $as_echo "$as_me: failed program was:" >&5
2273 sed 's/^/| /' conftest.
$ac_ext >&5
2277 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2278 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2279 # interfere with the next link command; also delete a directory that is
2280 # left behind by Apple's compiler. We do this before executing the actions.
2281 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2282 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2283 as_fn_set_status
$ac_retval
2285 } # ac_fn_cxx_try_link
2287 # ac_fn_cxx_check_func LINENO FUNC VAR
2288 # ------------------------------------
2289 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2290 ac_fn_cxx_check_func
()
2292 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2294 $as_echo_n "checking for $2... " >&6; }
2295 if eval \
${$3+:} false
; then :
2296 $as_echo_n "(cached) " >&6
2298 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2299 /* end confdefs.h. */
2300 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2301 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2302 #define $2 innocuous_$2
2304 /* System header to define __stub macros and hopefully few prototypes,
2305 which can conflict with char $2 (); below.
2306 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2307 <limits.h> exists even on freestanding compilers. */
2310 # include <limits.h>
2312 # include <assert.h>
2317 /* Override any GCC internal prototype to avoid an error.
2318 Use char because int might match the return type of a GCC
2319 builtin and then its argument prototype would still apply. */
2324 /* The GNU C library defines this for functions which it implements
2325 to always fail with ENOSYS. Some functions are actually named
2326 something starting with __ and the normal name is an alias. */
2327 #if defined __stub_$2 || defined __stub___$2
2339 if ac_fn_cxx_try_link
"$LINENO"; then :
2344 rm -f core conftest.err conftest.
$ac_objext \
2345 conftest
$ac_exeext conftest.
$ac_ext
2348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2349 $as_echo "$ac_res" >&6; }
2350 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2352 } # ac_fn_cxx_check_func
2353 cat >config.log
<<_ACEOF
2354 This file contains any messages produced by compilers while
2355 running configure, to aid debugging if configure makes a mistake.
2357 It was created by gold $as_me 0.1, which was
2358 generated by GNU Autoconf 2.69. Invocation command line was
2370 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2371 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2372 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2373 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2374 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2376 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2377 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2379 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2380 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2381 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2382 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2383 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2384 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2385 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2389 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2393 test -z "$as_dir" && as_dir
=.
2394 $as_echo "PATH: $as_dir"
2410 # Keep a trace of the command line.
2411 # Strip out --no-create and --no-recursion so they do not pile up.
2412 # Strip out --silent because we don't want to record it for future runs.
2413 # Also quote any args containing shell meta-characters.
2414 # Make two passes to allow for proper duplicate-argument suppression.
2418 ac_must_keep_next
=false
2424 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2425 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2426 |
-silent |
--silent |
--silen |
--sile |
--sil)
2429 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2432 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2434 as_fn_append ac_configure_args1
" '$ac_arg'"
2435 if test $ac_must_keep_next = true
; then
2436 ac_must_keep_next
=false
# Got value, back to normal.
2439 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2440 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2441 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2442 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2443 case "$ac_configure_args0 " in
2444 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2447 -* ) ac_must_keep_next
=true
;;
2450 as_fn_append ac_configure_args
" '$ac_arg'"
2455 { ac_configure_args0
=; unset ac_configure_args0
;}
2456 { ac_configure_args1
=; unset ac_configure_args1
;}
2458 # When interrupted or exit'd, cleanup temporary files, and complete
2459 # config.log. We remove comments because anyway the quotes in there
2460 # would cause problems or look ugly.
2461 # WARNING: Use '\'' to represent an apostrophe within the trap.
2462 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2463 trap 'exit_status=$?
2464 # Save into config.log some information that might help in debugging.
2468 $as_echo "## ---------------- ##
2469 ## Cache variables. ##
2470 ## ---------------- ##"
2472 # The following way of writing the cache mishandles newlines in values,
2474 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2475 eval ac_val=\$$ac_var
2479 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2480 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2483 _ | IFS | as_nl) ;; #(
2484 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2485 *) { eval $ac_var=; unset $ac_var;} ;;
2490 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2491 *${as_nl}ac_space=\ *)
2493 "s/'\''/'\''\\\\'\'''\''/g;
2494 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2497 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2504 $as_echo "## ----------------- ##
2505 ## Output variables. ##
2506 ## ----------------- ##"
2508 for ac_var in $ac_subst_vars
2510 eval ac_val=\$$ac_var
2512 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2514 $as_echo "$ac_var='\''$ac_val'\''"
2518 if test -n "$ac_subst_files"; then
2519 $as_echo "## ------------------- ##
2520 ## File substitutions. ##
2521 ## ------------------- ##"
2523 for ac_var
in $ac_subst_files
2525 eval ac_val
=\$
$ac_var
2527 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2529 $as_echo "$ac_var='\''$ac_val'\''"
2534 if test -s confdefs.h; then
2535 $as_echo "## ----------- ##
2542 test "$ac_signal" != 0 &&
2543 $as_echo "$as_me: caught signal $ac_signal"
2544 $as_echo "$as_me: exit $exit_status"
2546 rm -f core *.core core.conftest.* &&
2547 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2550 for ac_signal
in 1 2 13 15; do
2551 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2555 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2556 rm -f -r conftest
* confdefs.h
2558 $as_echo "/* confdefs.h */" > confdefs.h
2560 # Predefined preprocessor variables.
2562 cat >>confdefs.h
<<_ACEOF
2563 #define PACKAGE_NAME "$PACKAGE_NAME"
2566 cat >>confdefs.h
<<_ACEOF
2567 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2570 cat >>confdefs.h
<<_ACEOF
2571 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2574 cat >>confdefs.h
<<_ACEOF
2575 #define PACKAGE_STRING "$PACKAGE_STRING"
2578 cat >>confdefs.h
<<_ACEOF
2579 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2582 cat >>confdefs.h
<<_ACEOF
2583 #define PACKAGE_URL "$PACKAGE_URL"
2587 # Let the site file select an alternate cache file if it wants to.
2588 # Prefer an explicitly selected file to automatically selected ones.
2591 if test -n "$CONFIG_SITE"; then
2592 # We do not want a PATH search for config.site.
2593 case $CONFIG_SITE in #((
2594 -*) ac_site_file1
=.
/$CONFIG_SITE;;
2595 */*) ac_site_file1
=$CONFIG_SITE;;
2596 *) ac_site_file1
=.
/$CONFIG_SITE;;
2598 elif test "x$prefix" != xNONE
; then
2599 ac_site_file1
=$prefix/share
/config.site
2600 ac_site_file2
=$prefix/etc
/config.site
2602 ac_site_file1
=$ac_default_prefix/share
/config.site
2603 ac_site_file2
=$ac_default_prefix/etc
/config.site
2605 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2607 test "x$ac_site_file" = xNONE
&& continue
2608 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
2609 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2610 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2611 sed 's/^/| /' "$ac_site_file" >&5
2613 ||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2614 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2615 as_fn_error $?
"failed to load site script $ac_site_file
2616 See \`config.log' for more details" "$LINENO" 5; }
2620 if test -r "$cache_file"; then
2621 # Some versions of bash will fail to source /dev/null (special files
2622 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2623 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
2624 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2625 $as_echo "$as_me: loading cache $cache_file" >&6;}
2627 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2628 *) .
"./$cache_file";;
2632 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2633 $as_echo "$as_me: creating cache $cache_file" >&6;}
2637 # Check that the precious variables saved in the cache have kept the same
2639 ac_cache_corrupted
=false
2640 for ac_var
in $ac_precious_vars; do
2641 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2642 eval ac_new_set
=\
$ac_env_${ac_var}_set
2643 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2644 eval ac_new_val
=\
$ac_env_${ac_var}_value
2645 case $ac_old_set,$ac_new_set in
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2648 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2649 ac_cache_corrupted
=: ;;
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2652 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2653 ac_cache_corrupted
=: ;;
2656 if test "x$ac_old_val" != "x$ac_new_val"; then
2657 # differences in whitespace do not lead to failure.
2658 ac_old_val_w
=`echo x $ac_old_val`
2659 ac_new_val_w
=`echo x $ac_new_val`
2660 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2661 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2662 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2663 ac_cache_corrupted
=:
2665 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2666 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2667 eval $ac_var=\
$ac_old_val
2669 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2670 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2671 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2672 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2675 # Pass precious variables to config.status.
2676 if test "$ac_new_set" = set; then
2678 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2679 *) ac_arg
=$ac_var=$ac_new_val ;;
2681 case " $ac_configure_args " in
2682 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2683 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2687 if $ac_cache_corrupted; then
2688 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2689 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2690 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2691 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2692 as_fn_error $?
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2694 ## -------------------- ##
2695 ## Main body of script. ##
2696 ## -------------------- ##
2699 ac_cpp
='$CPP $CPPFLAGS'
2700 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2701 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2702 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2711 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2712 if test -f "$ac_dir/install-sh"; then
2714 ac_install_sh
="$ac_aux_dir/install-sh -c"
2716 elif test -f "$ac_dir/install.sh"; then
2718 ac_install_sh
="$ac_aux_dir/install.sh -c"
2720 elif test -f "$ac_dir/shtool"; then
2722 ac_install_sh
="$ac_aux_dir/shtool install -c"
2726 if test -z "$ac_aux_dir"; then
2727 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2730 # These three variables are undocumented and unsupported,
2731 # and are intended to be withdrawn in a future Autoconf release.
2732 # They can cause serious problems if a builder's source tree is in a directory
2733 # whose full name contains unusual characters.
2734 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2735 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2736 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2739 # Make sure we can run config.sub.
2740 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2741 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2744 $as_echo_n "checking build system type... " >&6; }
2745 if ${ac_cv_build+:} false
; then :
2746 $as_echo_n "(cached) " >&6
2748 ac_build_alias
=$build_alias
2749 test "x$ac_build_alias" = x
&&
2750 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2751 test "x$ac_build_alias" = x
&&
2752 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
2753 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2754 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2758 $as_echo "$ac_cv_build" >&6; }
2759 case $ac_cv_build in
2761 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
2764 ac_save_IFS
=$IFS; IFS
='-'
2770 # Remember, the first character of IFS is used to create $*,
2771 # except with old shells:
2774 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2778 $as_echo_n "checking host system type... " >&6; }
2779 if ${ac_cv_host+:} false
; then :
2780 $as_echo_n "(cached) " >&6
2782 if test "x$host_alias" = x
; then
2783 ac_cv_host
=$ac_cv_build
2785 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2786 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2791 $as_echo "$ac_cv_host" >&6; }
2794 *) as_fn_error $?
"invalid value of canonical host" "$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 $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2811 $as_echo_n "checking target system type... " >&6; }
2812 if ${ac_cv_target+:} false
; then :
2813 $as_echo_n "(cached) " >&6
2815 if test "x$target_alias" = x
; then
2816 ac_cv_target
=$ac_cv_host
2818 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2819 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2824 $as_echo "$ac_cv_target" >&6; }
2825 case $ac_cv_target in
2827 *) as_fn_error $?
"invalid value of canonical target" "$LINENO" 5;;
2829 target
=$ac_cv_target
2830 ac_save_IFS
=$IFS; IFS
='-'
2836 # Remember, the first character of IFS is used to create $*,
2837 # except with old shells:
2840 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
2843 # The aliases save the names the user supplied, while $host etc.
2844 # will get canonicalized.
2845 test -n "$target_alias" &&
2846 test "$program_prefix$program_suffix$program_transform_name" = \
2848 program_prefix
=${target_alias}-
2850 am__api_version
='1.15'
2852 # Find a good install program. We prefer a C program (faster),
2853 # so one script is as good as another. But avoid the broken or
2854 # incompatible versions:
2855 # SysV /etc/install, /usr/sbin/install
2856 # SunOS /usr/etc/install
2857 # IRIX /sbin/install
2859 # AmigaOS /C/install, which installs bootblocks on floppy discs
2860 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2861 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2862 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2863 # OS/2's system install, which has a completely different semantic
2864 # ./install, which can be erroneously created by make from ./install.sh.
2865 # Reject install programs that cannot install multiple files.
2866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2867 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2868 if test -z "$INSTALL"; then
2869 if ${ac_cv_path_install+:} false
; then :
2870 $as_echo_n "(cached) " >&6
2872 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2876 test -z "$as_dir" && as_dir
=.
2877 # Account for people who put trailing slashes in PATH elements.
2878 case $as_dir/ in #((
2879 .
/ | .
// |
/[cC
]/* | \
2880 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
2881 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
2884 # OSF1 and SCO ODT 3.0 have their own names for install.
2885 # Don't use installbsd from OSF since it installs stuff as root
2887 for ac_prog
in ginstall scoinst
install; do
2888 for ac_exec_ext
in '' $ac_executable_extensions; do
2889 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
2890 if test $ac_prog = install &&
2891 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2892 # AIX install. It has an incompatible calling convention.
2894 elif test $ac_prog = install &&
2895 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2896 # program-specific install script used by HP pwplus--don't use.
2899 rm -rf conftest.one conftest.two conftest.dir
2900 echo one
> conftest.one
2901 echo two
> conftest.two
2903 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
2904 test -s conftest.one
&& test -s conftest.two
&&
2905 test -s conftest.dir
/conftest.one
&&
2906 test -s conftest.dir
/conftest.two
2908 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
2921 rm -rf conftest.one conftest.two conftest.dir
2924 if test "${ac_cv_path_install+set}" = set; then
2925 INSTALL
=$ac_cv_path_install
2927 # As a last resort, use the slow shell script. Don't cache a
2928 # value for INSTALL within a source directory, because that will
2929 # break other packages using the cache if that directory is
2930 # removed, or if the value is a relative name.
2931 INSTALL
=$ac_install_sh
2934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2935 $as_echo "$INSTALL" >&6; }
2937 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2938 # It thinks the first close brace ends the variable substitution.
2939 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2941 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
2943 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2946 $as_echo_n "checking whether build environment is sane... " >&6; }
2947 # Reject unsafe characters in $srcdir or the absolute working directory
2948 # name. Accept space and tab only in the latter.
2952 *[\\\"\
#\$\&\'\`$am_lf]*)
2953 as_fn_error $?
"unsafe absolute working directory name" "$LINENO" 5;;
2956 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
2957 as_fn_error $?
"unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2960 # Do 'set' in a subshell so we don't clobber the current shell's
2961 # arguments. Must try -L first in case configure is actually a
2962 # symlink; some systems play weird games with the mod time of symlinks
2963 # (eg FreeBSD returns the mod time of the symlink's containing
2967 for am_try
in 1 2; do
2968 echo "timestamp, slept: $am_has_slept" > conftest.
file
2969 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2970 if test "$*" = "X"; then
2972 set X
`ls -t "$srcdir/configure" conftest.file`
2974 if test "$*" != "X $srcdir/configure conftest.file" \
2975 && test "$*" != "X conftest.file $srcdir/configure"; then
2977 # If neither matched, then we have a broken ls. This can happen
2978 # if, for instance, CONFIG_SHELL is bash and it inherits a
2979 # broken ls alias from the environment. This has actually
2980 # happened. Such a system could not be considered "sane".
2981 as_fn_error $?
"ls -t appears to fail. Make sure there is not a broken
2982 alias in your environment" "$LINENO" 5
2984 if test "$2" = conftest.
file ||
test $am_try -eq 2; then
2991 test "$2" = conftest.
file
2997 as_fn_error $?
"newly created file is older than distributed files!
2998 Check your system clock" "$LINENO" 5
3000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3001 $as_echo "yes" >&6; }
3002 # If we didn't sleep, we still need to ensure time stamps of config.status and
3003 # generated files are strictly newer.
3005 if grep 'slept: no' conftest.
file >/dev
/null
2>&1; then
3012 test "$program_prefix" != NONE
&&
3013 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
3014 # Use a double $ so make ignores it.
3015 test "$program_suffix" != NONE
&&
3016 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
3017 # Double any \ or $.
3018 # By default was `s,x,x', remove it if useless.
3019 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
3020 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
3022 # Expand $ac_aux_dir to an absolute path.
3023 am_aux_dir
=`cd "$ac_aux_dir" && pwd`
3025 if test x
"${MISSING+set}" != xset
; then
3028 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
3030 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
3033 # Use eval to expand $SHELL
3034 if eval "$MISSING --is-lightweight"; then
3035 am_missing_run
="$MISSING "
3038 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3039 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3042 if test x
"${install_sh+set}" != xset
; then
3045 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
3047 install_sh
="\${SHELL} $am_aux_dir/install-sh"
3051 # Installed binaries are usually stripped using 'strip' when the user
3052 # run "make install-strip". However 'strip' might not be the right
3053 # tool to use in cross-compilation environments, therefore Automake
3054 # will honor the 'STRIP' environment variable to overrule this program.
3055 if test "$cross_compiling" != no
; then
3056 if test -n "$ac_tool_prefix"; then
3057 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3058 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
3059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3060 $as_echo_n "checking for $ac_word... " >&6; }
3061 if ${ac_cv_prog_STRIP+:} false
; then :
3062 $as_echo_n "(cached) " >&6
3064 if test -n "$STRIP"; then
3065 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
3067 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3071 test -z "$as_dir" && as_dir
=.
3072 for ac_exec_ext
in '' $ac_executable_extensions; do
3073 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3074 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
3075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3084 STRIP
=$ac_cv_prog_STRIP
3085 if test -n "$STRIP"; then
3086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3087 $as_echo "$STRIP" >&6; }
3089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3090 $as_echo "no" >&6; }
3095 if test -z "$ac_cv_prog_STRIP"; then
3097 # Extract the first word of "strip", so it can be a program name with args.
3098 set dummy strip
; ac_word
=$2
3099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3100 $as_echo_n "checking for $ac_word... " >&6; }
3101 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
3102 $as_echo_n "(cached) " >&6
3104 if test -n "$ac_ct_STRIP"; then
3105 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
3107 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3111 test -z "$as_dir" && as_dir
=.
3112 for ac_exec_ext
in '' $ac_executable_extensions; do
3113 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3114 ac_cv_prog_ac_ct_STRIP
="strip"
3115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3124 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
3125 if test -n "$ac_ct_STRIP"; then
3126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3127 $as_echo "$ac_ct_STRIP" >&6; }
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3130 $as_echo "no" >&6; }
3133 if test "x$ac_ct_STRIP" = x
; then
3136 case $cross_compiling:$ac_tool_warned in
3138 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3139 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3140 ac_tool_warned
=yes ;;
3145 STRIP
="$ac_cv_prog_STRIP"
3149 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
3151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3152 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3153 if test -z "$MKDIR_P"; then
3154 if ${ac_cv_path_mkdir+:} false
; then :
3155 $as_echo_n "(cached) " >&6
3157 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3158 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
3161 test -z "$as_dir" && as_dir
=.
3162 for ac_prog
in mkdir gmkdir
; do
3163 for ac_exec_ext
in '' $ac_executable_extensions; do
3164 as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext" ||
continue
3165 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3166 'mkdir (GNU coreutils) '* | \
3167 'mkdir (coreutils) '* | \
3168 'mkdir (fileutils) '4.1*)
3169 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
3179 test -d .
/--version && rmdir .
/--version
3180 if test "${ac_cv_path_mkdir+set}" = set; then
3181 MKDIR_P
="$ac_cv_path_mkdir -p"
3183 # As a last resort, use the slow shell script. Don't cache a
3184 # value for MKDIR_P within a source directory, because that will
3185 # break other packages using the cache if that directory is
3186 # removed, or if the value is a relative name.
3187 MKDIR_P
="$ac_install_sh -d"
3190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3191 $as_echo "$MKDIR_P" >&6; }
3193 for ac_prog
in gawk mawk nawk
awk
3195 # Extract the first word of "$ac_prog", so it can be a program name with args.
3196 set dummy
$ac_prog; ac_word
=$2
3197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3198 $as_echo_n "checking for $ac_word... " >&6; }
3199 if ${ac_cv_prog_AWK+:} false
; then :
3200 $as_echo_n "(cached) " >&6
3202 if test -n "$AWK"; then
3203 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
3205 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3209 test -z "$as_dir" && as_dir
=.
3210 for ac_exec_ext
in '' $ac_executable_extensions; do
3211 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3212 ac_cv_prog_AWK
="$ac_prog"
3213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3223 if test -n "$AWK"; then
3224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3225 $as_echo "$AWK" >&6; }
3227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3228 $as_echo "no" >&6; }
3232 test -n "$AWK" && break
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3236 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3238 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3239 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
3240 $as_echo_n "(cached) " >&6
3242 cat >conftest.
make <<\_ACEOF
3245 @
echo '@@@%%%=$(MAKE)=@@@%%%'
3247 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3248 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3250 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
3252 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
3256 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
3257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3258 $as_echo "yes" >&6; }
3261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3262 $as_echo "no" >&6; }
3263 SET_MAKE
="MAKE=${MAKE-make}"
3266 rm -rf .tst
2>/dev
/null
3267 mkdir .tst
2>/dev
/null
3268 if test -d .tst
; then
3273 rmdir .tst
2>/dev
/null
3275 # Check whether --enable-silent-rules was given.
3276 if test "${enable_silent_rules+set}" = set; then :
3277 enableval
=$enable_silent_rules;
3280 case $enable_silent_rules in # (((
3281 yes) AM_DEFAULT_VERBOSITY
=0;;
3282 no
) AM_DEFAULT_VERBOSITY
=1;;
3283 *) AM_DEFAULT_VERBOSITY
=1;;
3285 am_make
=${MAKE-make}
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3287 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3288 if ${am_cv_make_support_nested_variables+:} false
; then :
3289 $as_echo_n "(cached) " >&6
3291 if $as_echo 'TRUE=$(BAR$(V))
3297 .PHONY: am__doit' |
$am_make -f - >/dev
/null
2>&1; then
3298 am_cv_make_support_nested_variables
=yes
3300 am_cv_make_support_nested_variables
=no
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3304 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3305 if test $am_cv_make_support_nested_variables = yes; then
3307 AM_DEFAULT_V
='$(AM_DEFAULT_VERBOSITY)'
3309 AM_V
=$AM_DEFAULT_VERBOSITY
3310 AM_DEFAULT_V
=$AM_DEFAULT_VERBOSITY
3314 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3315 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3316 # is not polluted with repeated "-I."
3317 am__isrc
=' -I$(srcdir)'
3318 # test to see if srcdir already configured
3319 if test -f $srcdir/config.status
; then
3320 as_fn_error $?
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3324 # test whether we have cygpath
3325 if test -z "$CYGPATH_W"; then
3326 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
3327 CYGPATH_W
='cygpath -w'
3334 # Define the identity of the package.
3339 cat >>confdefs.h
<<_ACEOF
3340 #define PACKAGE "$PACKAGE"
3344 cat >>confdefs.h
<<_ACEOF
3345 #define VERSION "$VERSION"
3348 # Some tools Automake needs.
3350 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3353 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
3356 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3359 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
3362 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
3364 # For better backward compatibility. To be removed once Automake 1.9.x
3365 # dies out for good. For more background, see:
3366 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3367 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3368 mkdir_p
='$(MKDIR_P)'
3370 # We need awk for the "check" target (and possibly the TAP driver). The
3371 # system "awk" is bad on some platforms.
3372 # Always define AMTAR for backward compatibility. Yes, it's still used
3373 # in the wild :-( We should find a proper way to deprecate it ...
3377 # We'll loop over all known methods to create a tar archive until one works.
3378 _am_tools
='gnutar pax cpio none'
3380 am__tar
='$${TAR-tar} chof - "$$tardir"' am__untar
='$${TAR-tar} xf -'
3387 # POSIX will say in a future version that running "rm -f" with no argument
3388 # is OK; and we want to be able to make that assumption in our Makefile
3389 # recipes. So use an aggressive probe to check that the usage we want is
3390 # actually supported "in the wild" to an acceptable degree.
3391 # See automake bug#10828.
3392 # To make any issue more visible, cause the running configure to be aborted
3393 # by default if the 'rm' program in use doesn't match our expectations; the
3394 # user can still override this though.
3395 if rm -f && rm -fr && rm -rf; then : OK
; else
3399 Your 'rm' program seems unable to run without file operands specified
3400 on the command line, even when the '-f' option is present. This is contrary
3401 to the behaviour of most rm programs out there, and not conforming with
3402 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3404 Please tell bug-automake@gnu.org about your system, including the value
3405 of your $PATH and any error possibly output before this message. This
3406 can help us improve future automake versions.
3409 if test x
"$ACCEPT_INFERIOR_RM_PROGRAM" = x
"yes"; then
3410 echo 'Configuration will proceed anyway, since you have set the' >&2
3411 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3415 Aborting the configuration process, to ensure you take notice of the issue.
3417 You can download and install GNU coreutils to get an 'rm' implementation
3418 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3420 If you want to complete the configuration process using your problematic
3421 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3422 to "yes", and re-run configure.
3425 as_fn_error $?
"Your 'rm' program is bad, sorry." "$LINENO" 5
3429 # Check whether --enable-silent-rules was given.
3430 if test "${enable_silent_rules+set}" = set; then :
3431 enableval
=$enable_silent_rules;
3434 case $enable_silent_rules in # (((
3435 yes) AM_DEFAULT_VERBOSITY
=0;;
3436 no
) AM_DEFAULT_VERBOSITY
=1;;
3437 *) AM_DEFAULT_VERBOSITY
=0;;
3439 am_make
=${MAKE-make}
3440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3441 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3442 if ${am_cv_make_support_nested_variables+:} false
; then :
3443 $as_echo_n "(cached) " >&6
3445 if $as_echo 'TRUE=$(BAR$(V))
3451 .PHONY: am__doit' |
$am_make -f - >/dev
/null
2>&1; then
3452 am_cv_make_support_nested_variables
=yes
3454 am_cv_make_support_nested_variables
=no
3457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3458 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3459 if test $am_cv_make_support_nested_variables = yes; then
3461 AM_DEFAULT_V
='$(AM_DEFAULT_VERBOSITY)'
3463 AM_V
=$AM_DEFAULT_VERBOSITY
3464 AM_DEFAULT_V
=$AM_DEFAULT_VERBOSITY
3469 ac_config_headers="$ac_config_headers config.h:config.in"
3472 DEPDIR="${am__leading_dot}deps"
3474 ac_config_commands="$ac_config_commands depfiles"
3477 am_make=${MAKE-make}
3478 cat > confinc << 'END
'
3480 @echo this is the am__doit target
3483 # If we don't
find an include directive
, just comment out the code.
3484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3485 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3489 # First try GNU make style include.
3490 echo "include confinc" > confmf
3491 # Ignore all kinds of additional output from 'make'.
3492 case `$am_make -s -f confmf 2> /dev/null` in #(
3493 *the\ am__doit\ target
*)
3499 # Now try BSD make style include.
3500 if test "$am__include" = "#"; then
3501 echo '.include "confinc"' > confmf
3502 case `$am_make -s -f confmf 2> /dev/null` in #(
3503 *the\ am__doit\ target
*)
3504 am__include
=.include
3512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3513 $as_echo "$_am_result" >&6; }
3514 rm -f confinc confmf
3516 # Check whether --enable-dependency-tracking was given.
3517 if test "${enable_dependency_tracking+set}" = set; then :
3518 enableval
=$enable_dependency_tracking;
3521 if test "x$enable_dependency_tracking" != xno
; then
3522 am_depcomp
="$ac_aux_dir/depcomp"
3526 if test "x$enable_dependency_tracking" != xno; then
3536 ac_cpp
='$CPP $CPPFLAGS'
3537 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3538 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3539 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3540 if test -n "$ac_tool_prefix"; then
3541 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3542 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3544 $as_echo_n "checking for $ac_word... " >&6; }
3545 if ${ac_cv_prog_CC+:} false
; then :
3546 $as_echo_n "(cached) " >&6
3548 if test -n "$CC"; then
3549 ac_cv_prog_CC
="$CC" # Let the user override the test.
3551 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3555 test -z "$as_dir" && as_dir
=.
3556 for ac_exec_ext
in '' $ac_executable_extensions; do
3557 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3558 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3569 if test -n "$CC"; then
3570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3571 $as_echo "$CC" >&6; }
3573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3574 $as_echo "no" >&6; }
3579 if test -z "$ac_cv_prog_CC"; then
3581 # Extract the first word of "gcc", so it can be a program name with args.
3582 set dummy gcc
; ac_word
=$2
3583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3584 $as_echo_n "checking for $ac_word... " >&6; }
3585 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3586 $as_echo_n "(cached) " >&6
3588 if test -n "$ac_ct_CC"; then
3589 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3591 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3595 test -z "$as_dir" && as_dir
=.
3596 for ac_exec_ext
in '' $ac_executable_extensions; do
3597 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3598 ac_cv_prog_ac_ct_CC
="gcc"
3599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3608 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3609 if test -n "$ac_ct_CC"; then
3610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3611 $as_echo "$ac_ct_CC" >&6; }
3613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3614 $as_echo "no" >&6; }
3617 if test "x$ac_ct_CC" = x
; then
3620 case $cross_compiling:$ac_tool_warned in
3622 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3623 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3624 ac_tool_warned
=yes ;;
3632 if test -z "$CC"; then
3633 if test -n "$ac_tool_prefix"; then
3634 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3635 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3637 $as_echo_n "checking for $ac_word... " >&6; }
3638 if ${ac_cv_prog_CC+:} false
; then :
3639 $as_echo_n "(cached) " >&6
3641 if test -n "$CC"; then
3642 ac_cv_prog_CC
="$CC" # Let the user override the test.
3644 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3648 test -z "$as_dir" && as_dir
=.
3649 for ac_exec_ext
in '' $ac_executable_extensions; do
3650 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3651 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3662 if test -n "$CC"; then
3663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3664 $as_echo "$CC" >&6; }
3666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3667 $as_echo "no" >&6; }
3673 if test -z "$CC"; then
3674 # Extract the first word of "cc", so it can be a program name with args.
3675 set dummy cc
; ac_word
=$2
3676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3677 $as_echo_n "checking for $ac_word... " >&6; }
3678 if ${ac_cv_prog_CC+:} false
; then :
3679 $as_echo_n "(cached) " >&6
3681 if test -n "$CC"; then
3682 ac_cv_prog_CC
="$CC" # Let the user override the test.
3685 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3689 test -z "$as_dir" && as_dir
=.
3690 for ac_exec_ext
in '' $ac_executable_extensions; do
3691 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3692 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3693 ac_prog_rejected
=yes
3697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3704 if test $ac_prog_rejected = yes; then
3705 # We found a bogon in the path, so make sure we never use it.
3706 set dummy
$ac_cv_prog_CC
3708 if test $# != 0; then
3709 # We chose a different compiler from the bogus one.
3710 # However, it has the same basename, so the bogon will be chosen
3711 # first if we set CC to just the basename; use the full file name.
3713 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3719 if test -n "$CC"; then
3720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3721 $as_echo "$CC" >&6; }
3723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3724 $as_echo "no" >&6; }
3729 if test -z "$CC"; then
3730 if test -n "$ac_tool_prefix"; then
3731 for ac_prog
in cl.exe
3733 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3734 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3736 $as_echo_n "checking for $ac_word... " >&6; }
3737 if ${ac_cv_prog_CC+:} false
; then :
3738 $as_echo_n "(cached) " >&6
3740 if test -n "$CC"; then
3741 ac_cv_prog_CC
="$CC" # Let the user override the test.
3743 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3747 test -z "$as_dir" && as_dir
=.
3748 for ac_exec_ext
in '' $ac_executable_extensions; do
3749 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3750 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3761 if test -n "$CC"; then
3762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3763 $as_echo "$CC" >&6; }
3765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3766 $as_echo "no" >&6; }
3770 test -n "$CC" && break
3773 if test -z "$CC"; then
3775 for ac_prog
in cl.exe
3777 # Extract the first word of "$ac_prog", so it can be a program name with args.
3778 set dummy
$ac_prog; ac_word
=$2
3779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3780 $as_echo_n "checking for $ac_word... " >&6; }
3781 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3782 $as_echo_n "(cached) " >&6
3784 if test -n "$ac_ct_CC"; then
3785 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3787 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3791 test -z "$as_dir" && as_dir
=.
3792 for ac_exec_ext
in '' $ac_executable_extensions; do
3793 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3794 ac_cv_prog_ac_ct_CC
="$ac_prog"
3795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3804 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3805 if test -n "$ac_ct_CC"; then
3806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3807 $as_echo "$ac_ct_CC" >&6; }
3809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3810 $as_echo "no" >&6; }
3814 test -n "$ac_ct_CC" && break
3817 if test "x$ac_ct_CC" = x
; then
3820 case $cross_compiling:$ac_tool_warned in
3822 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3823 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3824 ac_tool_warned
=yes ;;
3833 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3834 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3835 as_fn_error $?
"no acceptable C compiler found in \$PATH
3836 See \`config.log' for more details" "$LINENO" 5; }
3838 # Provide some information about the compiler.
3839 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3842 for ac_option
in --version -v -V -qversion; do
3843 { { ac_try
="$ac_compiler $ac_option >&5"
3845 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3846 *) ac_try_echo=$ac_try;;
3848 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3849 $as_echo "$ac_try_echo"; } >&5
3850 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3852 if test -s conftest.err; then
3854 ... rest of stderr output deleted ...
3855 10q' conftest.err >conftest.er1
3856 cat conftest.er1 >&5
3858 rm -f conftest.er1 conftest.err
3859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3860 test $ac_status = 0; }
3863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3864 /* end confdefs.h. */
3874 ac_clean_files_save=$ac_clean_files
3875 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3876 # Try to create an executable without -o first, disregard a.out.
3877 # It will help us diagnose broken compilers, and finding out an intuition
3879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3880 $as_echo_n "checking whether the C compiler works... " >&6; }
3881 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3883 # The possible output files:
3884 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3887 for ac_file in $ac_files
3890 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3891 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3896 if { { ac_try="$ac_link_default"
3898 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3899 *) ac_try_echo
=$ac_try;;
3901 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3902 $as_echo "$ac_try_echo"; } >&5
3903 (eval "$ac_link_default") 2>&5
3905 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3906 test $ac_status = 0; }; then :
3907 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3908 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3909 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3910 # so that the user can short-circuit this test for compilers unknown to
3912 for ac_file
in $ac_files ''
3914 test -f "$ac_file" ||
continue
3916 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3919 # We found the default executable, but exeext='' is most
3923 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3925 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3927 # We set ac_cv_exeext here because the later test for it is not
3928 # safe: cross compilers may not add the suffix if given an `-o'
3929 # argument, so we may need to know it at that point already.
3930 # Even if this section looks crufty: it has the advantage of
3937 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3942 if test -z "$ac_file"; then :
3943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3944 $as_echo "no" >&6; }
3945 $as_echo "$as_me: failed program was:" >&5
3946 sed 's/^/| /' conftest.
$ac_ext >&5
3948 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3949 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3950 as_fn_error
77 "C compiler cannot create executables
3951 See \`config.log' for more details" "$LINENO" 5; }
3953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3954 $as_echo "yes" >&6; }
3956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3957 $as_echo_n "checking for C compiler default output file name... " >&6; }
3958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3959 $as_echo "$ac_file" >&6; }
3960 ac_exeext
=$ac_cv_exeext
3962 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
3963 ac_clean_files
=$ac_clean_files_save
3964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3965 $as_echo_n "checking for suffix of executables... " >&6; }
3966 if { { ac_try
="$ac_link"
3968 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3969 *) ac_try_echo=$ac_try;;
3971 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3972 $as_echo "$ac_try_echo"; } >&5
3973 (eval "$ac_link") 2>&5
3975 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3976 test $ac_status = 0; }; then :
3977 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
3978 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
3979 # work properly (i.e., refer to `conftest.exe'), while it won't with
3981 for ac_file
in conftest.exe conftest conftest.
*; do
3982 test -f "$ac_file" ||
continue
3984 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3985 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3991 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3992 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3993 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3994 See \`config.log' for more details" "$LINENO" 5; }
3996 rm -f conftest conftest
$ac_cv_exeext
3997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3998 $as_echo "$ac_cv_exeext" >&6; }
4000 rm -f conftest.
$ac_ext
4001 EXEEXT
=$ac_cv_exeext
4003 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4004 /* end confdefs.h. */
4009 FILE *f = fopen ("conftest.out", "w");
4010 return ferror (f) || fclose (f) != 0;
4016 ac_clean_files
="$ac_clean_files conftest.out"
4017 # Check that the compiler produces executables we can run. If not, either
4018 # the compiler is broken, or we cross compile.
4019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4020 $as_echo_n "checking whether we are cross compiling... " >&6; }
4021 if test "$cross_compiling" != yes; then
4022 { { ac_try
="$ac_link"
4024 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4025 *) ac_try_echo=$ac_try;;
4027 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4028 $as_echo "$ac_try_echo"; } >&5
4029 (eval "$ac_link") 2>&5
4031 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4032 test $ac_status = 0; }
4033 if { ac_try='./conftest$ac_cv_exeext'
4034 { { case "(($ac_try" in
4035 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4036 *) ac_try_echo
=$ac_try;;
4038 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4039 $as_echo "$ac_try_echo"; } >&5
4040 (eval "$ac_try") 2>&5
4042 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4043 test $ac_status = 0; }; }; then
4046 if test "$cross_compiling" = maybe
; then
4049 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4050 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4051 as_fn_error $?
"cannot run C compiled programs.
4052 If you meant to cross compile, use \`--host'.
4053 See \`config.log' for more details" "$LINENO" 5; }
4057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4058 $as_echo "$cross_compiling" >&6; }
4060 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
4061 ac_clean_files
=$ac_clean_files_save
4062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4063 $as_echo_n "checking for suffix of object files... " >&6; }
4064 if ${ac_cv_objext+:} false
; then :
4065 $as_echo_n "(cached) " >&6
4067 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4068 /* end confdefs.h. */
4078 rm -f conftest.o conftest.obj
4079 if { { ac_try
="$ac_compile"
4081 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4082 *) ac_try_echo=$ac_try;;
4084 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4085 $as_echo "$ac_try_echo"; } >&5
4086 (eval "$ac_compile") 2>&5
4088 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4089 test $ac_status = 0; }; then :
4090 for ac_file in conftest.o conftest.obj conftest.*; do
4091 test -f "$ac_file" || continue;
4093 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4094 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4099 $as_echo "$as_me: failed program was:" >&5
4100 sed 's/^/| /' conftest.$ac_ext >&5
4102 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4103 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4104 as_fn_error $? "cannot compute suffix of object files
: cannot compile
4105 See \
`config.log' for more details" "$LINENO" 5; }
4107 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4110 $as_echo "$ac_cv_objext" >&6; }
4111 OBJEXT=$ac_cv_objext
4113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4114 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4115 if ${ac_cv_c_compiler_gnu+:} false; then :
4116 $as_echo_n "(cached) " >&6
4118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4119 /* end confdefs.h. */
4132 if ac_fn_c_try_compile "$LINENO"; then :
4137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4138 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4142 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4143 if test $ac_compiler_gnu = yes; then
4148 ac_test_CFLAGS=${CFLAGS+set}
4149 ac_save_CFLAGS=$CFLAGS
4150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4151 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4152 if ${ac_cv_prog_cc_g+:} false; then :
4153 $as_echo_n "(cached) " >&6
4155 ac_save_c_werror_flag=$ac_c_werror_flag
4156 ac_c_werror_flag=yes
4159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4160 /* end confdefs.h. */
4170 if ac_fn_c_try_compile "$LINENO"; then :
4174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4175 /* end confdefs.h. */
4185 if ac_fn_c_try_compile "$LINENO"; then :
4188 ac_c_werror_flag=$ac_save_c_werror_flag
4190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4191 /* end confdefs.h. */
4201 if ac_fn_c_try_compile "$LINENO"; then :
4204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4209 ac_c_werror_flag=$ac_save_c_werror_flag
4211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4212 $as_echo "$ac_cv_prog_cc_g" >&6; }
4213 if test "$ac_test_CFLAGS" = set; then
4214 CFLAGS=$ac_save_CFLAGS
4215 elif test $ac_cv_prog_cc_g = yes; then
4216 if test "$GCC" = yes; then
4222 if test "$GCC" = yes; then
4228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4229 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4230 if ${ac_cv_prog_cc_c89+:} false; then :
4231 $as_echo_n "(cached) " >&6
4233 ac_cv_prog_cc_c89=no
4235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4236 /* end confdefs.h. */
4240 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4241 struct buf { int x; };
4242 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4243 static char *e (p, i)
4249 static char *f (char * (*g) (char **, int), char **p, ...)
4254 s = g (p, va_arg (v,int));
4259 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4260 function prototypes and stuff, but not '\xHH' hex character constants.
4261 These don't provoke an error unfortunately, instead are silently treated
4262 as 'x'. The following induces an error, until -std is added to get
4263 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4264 array size at least. It's necessary to write '\x00'==0 to get something
4265 that's true only with -std. */
4266 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4268 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4269 inside strings and character constants. */
4271 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4273 int test (int i, double x);
4274 struct s1 {int (*f) (int a);};
4275 struct s2 {int (*f) (double a);};
4276 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4282 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4287 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4288 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4290 CC="$ac_save_CC $ac_arg"
4291 if ac_fn_c_try_compile "$LINENO"; then :
4292 ac_cv_prog_cc_c89=$ac_arg
4294 rm -f core conftest.err conftest.$ac_objext
4295 test "x$ac_cv_prog_cc_c89" != "xno" && break
4297 rm -f conftest.$ac_ext
4302 case "x$ac_cv_prog_cc_c89" in
4304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4305 $as_echo "none needed" >&6; } ;;
4307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4308 $as_echo "unsupported" >&6; } ;;
4310 CC="$CC $ac_cv_prog_cc_c89"
4311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4312 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4314 if test "x$ac_cv_prog_cc_c89" != xno; then :
4319 ac_cpp='$CPP $CPPFLAGS'
4320 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4321 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4322 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4325 ac_cpp='$CPP $CPPFLAGS'
4326 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4327 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4328 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4330 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4331 if ${am_cv_prog_cc_c_o+:} false; then :
4332 $as_echo_n "(cached) " >&6
4334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4335 /* end confdefs.h. */
4345 # Make sure it works both with $CC and with simple cc.
4346 # Following AC_PROG_CC_C_O, we do the test twice because some
4347 # compilers refuse to overwrite an existing .o file with -o,
4348 # though they will create one.
4349 am_cv_prog_cc_c_o=yes
4351 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4352 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4355 (exit $ac_status); } \
4356 && test -f conftest2.$ac_objext; then
4359 am_cv_prog_cc_c_o=no
4363 rm -f core conftest*
4366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4367 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4368 if test "$am_cv_prog_cc_c_o" != yes; then
4369 # Losing compiler, so override with the script.
4370 # FIXME: It is wrong to rewrite CC.
4371 # But if we don't then we get into trouble of one sort or another.
4372 # A longer-term fix would be to have automake use am__CC in this case,
4373 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4374 CC="$am_aux_dir/compile $CC"
4377 ac_cpp='$CPP $CPPFLAGS'
4378 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4379 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4380 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4383 depcc="$CC" am_compiler_list=
4385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4386 $as_echo_n "checking dependency style of $depcc... " >&6; }
4387 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4388 $as_echo_n "(cached) " >&6
4390 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4391 # We make a subdir and do the tests there. Otherwise we can end up
4392 # making bogus files that we don't know about and never remove. For
4393 # instance it was reported that on HP-UX the gcc test will end up
4394 # making a dummy file named 'D' -- because '-MD' means "put the output
4398 # Copy depcomp to subdir because otherwise we won't find it if we're
4399 # using a relative directory.
4400 cp "$am_depcomp" conftest.dir
4402 # We will build objects and dependencies in a subdirectory because
4403 # it helps to detect inapplicable dependency modes. For instance
4404 # both Tru64's cc and ICC support -MD to output dependencies as a
4405 # side effect of compilation, but ICC will put the dependencies in
4406 # the current directory while Tru64 will put them in the object
4410 am_cv_CC_dependencies_compiler_type=none
4411 if test "$am_compiler_list" = ""; then
4412 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < .
/depcomp
`
4415 case " $depcc " in #(
4416 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4419 for depmode in $am_compiler_list; do
4420 # Setup a source with many dependencies, because some compilers
4421 # like to wrap large dependency lists on column 80 (with \), and
4422 # we should not choose a depcomp mode which is confused by this.
4424 # We need to recreate these files for each test, as the compiler may
4425 # overwrite some of them when testing with obscure command lines.
4426 # This happens at least with the AIX C compiler.
4428 for i in 1 2 3 4 5 6; do
4429 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4430 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4431 # Solaris 10 /bin/sh.
4432 echo '/* dummy */' > sub/conftst$i.h
4434 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4436 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4437 # mode. It turns out that the SunPro C++ compiler does not properly
4438 # handle '-M -o', and we need to detect this. Also, some Intel
4439 # versions had trouble with output in subdirs.
4440 am__obj=sub/conftest.${OBJEXT-o}
4441 am__minus_obj="-o $am__obj"
4444 # This depmode causes a compiler race in universal mode.
4445 test "$am__universal" = false || continue
4448 # After this tag, mechanisms are not by side-effect, so they'll
4449 # only be used when explicitly requested.
4450 if test "x$enable_dependency_tracking" = xyes; then
4456 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4457 # This compiler won't grok '-c -o', but also, the minuso test has
4458 # not run yet. These depmodes are late enough in the game, and
4459 # so weak that their functioning should not be impacted.
4460 am__obj=conftest.${OBJEXT-o}
4465 if depmode=$depmode \
4466 source=sub/conftest.c object=$am__obj \
4467 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4468 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4469 >/dev/null 2>conftest.err &&
4470 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4471 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4472 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4473 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4474 # icc doesn't choke on unknown options, it will just issue warnings
4475 # or remarks (even with -Werror). So we grep stderr for any message
4476 # that says an option was ignored or not supported.
4477 # When given -MP, icc 7.0 and 7.1 complain thusly:
4478 # icc: Command line warning: ignoring option '-M'; no argument required
4479 # The diagnosis changed in icc 8.0:
4480 # icc: Command line remark: option '-MP' not supported
4481 if (grep 'ignoring option' conftest.err ||
4482 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4483 am_cv_CC_dependencies_compiler_type=$depmode
4492 am_cv_CC_dependencies_compiler_type=none
4496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4497 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4498 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4501 test "x$enable_dependency_tracking" != xno \
4502 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4504 am__fastdepCC_FALSE='#'
4506 am__fastdepCC_TRUE='#'
4507 am__fastdepCC_FALSE=
4513 ac_cpp='$CPP $CPPFLAGS'
4514 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4515 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4516 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4518 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4519 # On Suns, sometimes $CPP names a directory.
4520 if test -n "$CPP" && test -d "$CPP"; then
4523 if test -z "$CPP"; then
4524 if ${ac_cv_prog_CPP+:} false; then :
4525 $as_echo_n "(cached) " >&6
4527 # Double quotes because CPP needs to be expanded
4528 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4531 for ac_c_preproc_warn_flag in '' yes
4533 # Use a header file that comes with gcc, so configuring glibc
4534 # with a fresh cross-compiler works.
4535 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4536 # <limits.h> exists even on freestanding compilers.
4537 # On the NeXT, cc -E runs the code through the compiler's parser,
4538 # not just through cpp. "Syntax error" is here to catch this case.
4539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4540 /* end confdefs.h. */
4542 # include <limits.h>
4544 # include <assert.h>
4548 if ac_fn_c_try_cpp "$LINENO"; then :
4551 # Broken: fails on valid input.
4554 rm -f conftest.err conftest.i conftest.$ac_ext
4556 # OK, works on sane cases. Now check whether nonexistent headers
4557 # can be detected and how.
4558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4559 /* end confdefs.h. */
4560 #include <ac_nonexistent.h>
4562 if ac_fn_c_try_cpp "$LINENO"; then :
4563 # Broken: success on invalid input.
4566 # Passes both tests.
4570 rm -f conftest.err conftest.i conftest.$ac_ext
4573 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4574 rm -f conftest.i conftest.err conftest.
$ac_ext
4575 if $ac_preproc_ok; then :
4587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4588 $as_echo "$CPP" >&6; }
4590 for ac_c_preproc_warn_flag
in '' yes
4592 # Use a header file that comes with gcc, so configuring glibc
4593 # with a fresh cross-compiler works.
4594 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4595 # <limits.h> exists even on freestanding compilers.
4596 # On the NeXT, cc -E runs the code through the compiler's parser,
4597 # not just through cpp. "Syntax error" is here to catch this case.
4598 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4599 /* end confdefs.h. */
4601 # include <limits.h>
4603 # include <assert.h>
4607 if ac_fn_c_try_cpp
"$LINENO"; then :
4610 # Broken: fails on valid input.
4613 rm -f conftest.err conftest.i conftest.
$ac_ext
4615 # OK, works on sane cases. Now check whether nonexistent headers
4616 # can be detected and how.
4617 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4618 /* end confdefs.h. */
4619 #include <ac_nonexistent.h>
4621 if ac_fn_c_try_cpp
"$LINENO"; then :
4622 # Broken: success on invalid input.
4625 # Passes both tests.
4629 rm -f conftest.err conftest.i conftest.
$ac_ext
4632 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4633 rm -f conftest.i conftest.err conftest.
$ac_ext
4634 if $ac_preproc_ok; then :
4637 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4638 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4639 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
4640 See \`config.log' for more details" "$LINENO" 5; }
4644 ac_cpp
='$CPP $CPPFLAGS'
4645 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4646 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4647 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4651 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4652 if ${ac_cv_path_GREP+:} false
; then :
4653 $as_echo_n "(cached) " >&6
4655 if test -z "$GREP"; then
4656 ac_path_GREP_found
=false
4657 # Loop through the user's path and test for each of PROGNAME-LIST
4658 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4659 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4662 test -z "$as_dir" && as_dir
=.
4663 for ac_prog
in grep ggrep
; do
4664 for ac_exec_ext
in '' $ac_executable_extensions; do
4665 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4666 as_fn_executable_p
"$ac_path_GREP" ||
continue
4667 # Check for GNU ac_path_GREP and select it if it is found.
4668 # Check for GNU $ac_path_GREP
4669 case `"$ac_path_GREP" --version 2>&1` in
4671 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4674 $as_echo_n 0123456789 >"conftest.in"
4677 cat "conftest.in" "conftest.in" >"conftest.tmp"
4678 mv "conftest.tmp" "conftest.in"
4679 cp "conftest.in" "conftest.nl"
4680 $as_echo 'GREP' >> "conftest.nl"
4681 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4682 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4683 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4684 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4685 # Best one so far, save it but keep looking for a better one
4686 ac_cv_path_GREP
="$ac_path_GREP"
4687 ac_path_GREP_max
=$ac_count
4689 # 10*(2^10) chars as input seems more than enough
4690 test $ac_count -gt 10 && break
4692 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4695 $ac_path_GREP_found && break 3
4700 if test -z "$ac_cv_path_GREP"; then
4701 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4704 ac_cv_path_GREP
=$GREP
4708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4709 $as_echo "$ac_cv_path_GREP" >&6; }
4710 GREP
="$ac_cv_path_GREP"
4713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4714 $as_echo_n "checking for egrep... " >&6; }
4715 if ${ac_cv_path_EGREP+:} false
; then :
4716 $as_echo_n "(cached) " >&6
4718 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4719 then ac_cv_path_EGREP
="$GREP -E"
4721 if test -z "$EGREP"; then
4722 ac_path_EGREP_found
=false
4723 # Loop through the user's path and test for each of PROGNAME-LIST
4724 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4725 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4728 test -z "$as_dir" && as_dir
=.
4729 for ac_prog
in egrep; do
4730 for ac_exec_ext
in '' $ac_executable_extensions; do
4731 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4732 as_fn_executable_p
"$ac_path_EGREP" ||
continue
4733 # Check for GNU ac_path_EGREP and select it if it is found.
4734 # Check for GNU $ac_path_EGREP
4735 case `"$ac_path_EGREP" --version 2>&1` in
4737 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4740 $as_echo_n 0123456789 >"conftest.in"
4743 cat "conftest.in" "conftest.in" >"conftest.tmp"
4744 mv "conftest.tmp" "conftest.in"
4745 cp "conftest.in" "conftest.nl"
4746 $as_echo 'EGREP' >> "conftest.nl"
4747 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4748 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4749 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4750 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4751 # Best one so far, save it but keep looking for a better one
4752 ac_cv_path_EGREP
="$ac_path_EGREP"
4753 ac_path_EGREP_max
=$ac_count
4755 # 10*(2^10) chars as input seems more than enough
4756 test $ac_count -gt 10 && break
4758 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4761 $ac_path_EGREP_found && break 3
4766 if test -z "$ac_cv_path_EGREP"; then
4767 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4770 ac_cv_path_EGREP
=$EGREP
4775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4776 $as_echo "$ac_cv_path_EGREP" >&6; }
4777 EGREP
="$ac_cv_path_EGREP"
4780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4781 $as_echo_n "checking for ANSI C header files... " >&6; }
4782 if ${ac_cv_header_stdc+:} false
; then :
4783 $as_echo_n "(cached) " >&6
4785 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4786 /* end confdefs.h. */
4800 if ac_fn_c_try_compile
"$LINENO"; then :
4801 ac_cv_header_stdc
=yes
4803 ac_cv_header_stdc
=no
4805 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4807 if test $ac_cv_header_stdc = yes; then
4808 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4809 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4810 /* end confdefs.h. */
4814 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4815 $EGREP "memchr" >/dev
/null
2>&1; then :
4818 ac_cv_header_stdc
=no
4824 if test $ac_cv_header_stdc = yes; then
4825 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4826 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4827 /* end confdefs.h. */
4831 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4832 $EGREP "free" >/dev
/null
2>&1; then :
4835 ac_cv_header_stdc
=no
4841 if test $ac_cv_header_stdc = yes; then
4842 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4843 if test "$cross_compiling" = yes; then :
4846 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4847 /* end confdefs.h. */
4850 #if ((' ' & 0x0FF) == 0x020)
4851 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4852 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4854 # define ISLOWER(c) \
4855 (('a' <= (c) && (c) <= 'i') \
4856 || ('j' <= (c) && (c) <= 'r') \
4857 || ('s' <= (c) && (c) <= 'z'))
4858 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4861 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4866 for (i = 0; i < 256; i++)
4867 if (XOR (islower (i), ISLOWER (i))
4868 || toupper (i) != TOUPPER (i))
4873 if ac_fn_c_try_run
"$LINENO"; then :
4876 ac_cv_header_stdc
=no
4878 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4879 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4885 $as_echo "$ac_cv_header_stdc" >&6; }
4886 if test $ac_cv_header_stdc = yes; then
4888 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4892 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4893 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4894 inttypes.h stdint.h unistd.h
4896 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4897 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4899 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
4900 cat >>confdefs.h
<<_ACEOF
4901 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4910 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4911 if test "x$ac_cv_header_minix_config_h" = xyes
; then :
4918 if test "$MINIX" = yes; then
4920 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4923 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4926 $as_echo "#define _MINIX 1" >>confdefs.h
4931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4932 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4933 if ${ac_cv_safe_to_define___extensions__+:} false
; then :
4934 $as_echo_n "(cached) " >&6
4936 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4937 /* end confdefs.h. */
4939 # define __EXTENSIONS__ 1
4940 $ac_includes_default
4949 if ac_fn_c_try_compile
"$LINENO"; then :
4950 ac_cv_safe_to_define___extensions__
=yes
4952 ac_cv_safe_to_define___extensions__
=no
4954 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4957 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4958 test $ac_cv_safe_to_define___extensions__ = yes &&
4959 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4961 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4963 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4965 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4967 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4975 # Check whether --with-sysroot was given.
4976 if test "${with_sysroot+set}" = set; then :
4977 withval
=$with_sysroot; sysroot
=$withval
4983 if test "$sysroot" = "yes"; then
4984 sysroot
='${exec_prefix}/${target_alias}/sys-root'
4985 elif test "$sysroot" = "no"; then
4989 sysroot_relocatable
=0
4990 if test -n "$sysroot"; then
4992 "${prefix}" |
"${prefix}/"* | \
4993 "${exec_prefix}" |
"${exec_prefix}/"* | \
4994 '${prefix}' |
'${prefix}/'*| \
4995 '${exec_prefix}' |
'${exec_prefix}/'*)
4996 sysroot_relocatable
=1
5002 cat >>confdefs.h
<<_ACEOF
5003 #define TARGET_SYSTEM_ROOT "$sysroot"
5007 cat >>confdefs.h
<<_ACEOF
5008 #define TARGET_SYSTEM_ROOT_RELOCATABLE $sysroot_relocatable
5013 installed_linker
=ld.gold
5014 # Check whether --enable-gold was given.
5015 if test "${enable_gold+set}" = set; then :
5016 enableval
=$enable_gold; case "${enableval}" in
5018 install_as_default
=yes
5021 if test x
${enable_ld} = xno
; then
5022 install_as_default
=yes
5027 install_as_default
=no
5035 for ac_header
in dlfcn.h
5037 ac_fn_c_check_header_compile
"$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
5039 if test "x$ac_cv_header_dlfcn_h" = xyes
; then :
5040 cat >>confdefs.h
<<_ACEOF
5041 #define HAVE_DLFCN_H 1
5048 for ac_header
in windows.h
5050 ac_fn_c_check_header_compile
"$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
5052 if test "x$ac_cv_header_windows_h" = xyes
; then :
5053 cat >>confdefs.h
<<_ACEOF
5054 #define HAVE_WINDOWS_H 1
5062 # Check whether --enable-plugins was given.
5063 if test "${enable_plugins+set}" = set; then :
5064 enableval
=$enable_plugins; case "${enableval}" in
5067 if test "$maybe_plugins" != "yes" ; then
5068 as_fn_error $?
"Building with plugin support requires a host that supports dlopen." "$LINENO" 5
5072 plugins
=$maybe_plugins
5076 if test "$plugins" = "yes"; then
5077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
5078 $as_echo_n "checking for library containing dlsym... " >&6; }
5079 if ${ac_cv_search_dlsym+:} false
; then :
5080 $as_echo_n "(cached) " >&6
5082 ac_func_search_save_LIBS
=$LIBS
5083 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5084 /* end confdefs.h. */
5086 /* Override any GCC internal prototype to avoid an error.
5087 Use char because int might match the return type of a GCC
5088 builtin and then its argument prototype would still apply. */
5101 for ac_lib
in '' dl
; do
5102 if test -z "$ac_lib"; then
5103 ac_res
="none required"
5106 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
5108 if ac_fn_c_try_link
"$LINENO"; then :
5109 ac_cv_search_dlsym
=$ac_res
5111 rm -f core conftest.err conftest.
$ac_objext \
5113 if ${ac_cv_search_dlsym+:} false
; then :
5117 if ${ac_cv_search_dlsym+:} false
; then :
5120 ac_cv_search_dlsym
=no
5123 LIBS
=$ac_func_search_save_LIBS
5125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
5126 $as_echo "$ac_cv_search_dlsym" >&6; }
5127 ac_res
=$ac_cv_search_dlsym
5128 if test "$ac_res" != no
; then :
5129 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
5135 if test "$plugins" = "yes"; then
5137 $as_echo "#define ENABLE_PLUGINS 1" >>confdefs.h
5140 if test "$plugins" = "yes"; then
5149 # Decide if -z relro should be enabled in ELF linker by default.
5150 ac_default_ld_z_relro
=unset
5151 # Provide a configure time option to override our default.
5152 # Check whether --enable-relro was given.
5153 if test "${enable_relro+set}" = set; then :
5154 enableval
=$enable_relro; case "${enableval}" in
5155 yes) ac_default_ld_z_relro
=1 ;;
5156 no
) ac_default_ld_z_relro
=0 ;;
5159 if test "${ac_default_ld_z_relro}" = unset; then
5160 ac_default_ld_z_relro
=1
5163 cat >>confdefs.h
<<_ACEOF
5164 #define DEFAULT_LD_Z_RELRO $ac_default_ld_z_relro
5168 # Check whether --enable-targets was given.
5169 if test "${enable_targets+set}" = set; then :
5170 enableval
=$enable_targets; case "${enableval}" in
5172 as_fn_error $?
"--enable-targets option must specify target names or 'all'" "$LINENO" 5
5178 enable_targets
=$enableval
5182 # For now, enable all targets by default
5188 # Canonicalize the enabled targets.
5189 if test -n "$enable_targets"; then
5190 for targ
in `echo $enable_targets | sed -e 's/,/ /g'`; do
5191 result
=`$ac_config_sub $targ 2>/dev/null`
5192 if test -n "$result"; then
5193 canon_targets
="$canon_targets $result"
5195 # Permit unrecognized target names, like "all".
5196 canon_targets
="$canon_targets $targ"
5201 # Decide which "--hash-style" to use by default
5202 # Provide a configure time option to override our default.
5203 # Check whether --enable-default-hash-style was given.
5204 if test "${enable_default_hash_style+set}" = set; then :
5205 enableval
=$enable_default_hash_style; case "${enable_default_hash_style}" in
5206 sysv | gnu | both
) ;;
5207 *) as_fn_error $?
"bad value ${enable_default_hash_style} for enable-default-hash-style option" "$LINENO" 5 ;;
5211 # Enable gnu hash only on GNU targets, but not mips
5212 mips
*-*-*) enable_default_hash_style
=sysv
;;
5213 *-*-gnu* |
*-*-linux* |
*-*-nacl*) enable_default_hash_style
=both
;;
5214 *) enable_default_hash_style
=sysv
;;
5220 cat >>confdefs.h
<<_ACEOF
5221 #define DEFAULT_HASH_STYLE "${enable_default_hash_style}"
5225 # See which specific instantiations we need.
5231 default_osabi
=ELFOSABI_NONE
5236 for targ
in $target $canon_targets; do
5237 if test "$targ" = "all"; then
5244 .
${srcdir}/configure.tgt
5246 if test "$targ_obj" = "UNKNOWN"; then
5247 as_fn_error $?
"\"unsupported target $targ\"" "$LINENO" 5
5249 targetobjs
="$targetobjs ${targ_obj}.\$(OBJEXT)"
5250 if test "$targ_extra_obj" != ""; then
5251 targetobjs
="$targetobjs ${targ_extra_obj}.\$(OBJEXT)"
5253 if test "$targ_size" = "32" -o "$targ_extra_size" = "32"; then
5254 if test "$targ_big_endian" = "true" \
5255 -o "$targ_extra_big_endian" = "true"; then
5258 if test "$targ_big_endian" = "false" \
5259 -o "$targ_extra_big_endian" = "false"; then
5263 if test "$targ_size" = "64" -o "$targ_extra_size" = "64"; then
5264 if test "$targ_big_endian" = "true" \
5265 -o "$targ_extra_big_endian" = "true"; then
5268 if test "$targ_big_endian" = "false" \
5269 -o "$targ_extra_big_endian" = "false"; then
5274 if test "$target" = "$targ"; then
5275 default_machine
=$targ_machine
5276 default_size
=$targ_size
5277 default_big_endian
=$targ_big_endian
5278 default_osabi
=$targ_osabi
5280 if test "$targ_obj" = "aarch64"; then
5281 DEFAULT_TARGET_AARCH64_TRUE
=
5282 DEFAULT_TARGET_AARCH64_FALSE
='#'
5284 DEFAULT_TARGET_AARCH64_TRUE
='#'
5285 DEFAULT_TARGET_AARCH64_FALSE
=
5288 if test "$targ_obj" = "arm"; then
5289 DEFAULT_TARGET_ARM_TRUE
=
5290 DEFAULT_TARGET_ARM_FALSE
='#'
5292 DEFAULT_TARGET_ARM_TRUE
='#'
5293 DEFAULT_TARGET_ARM_FALSE
=
5296 if test "$targ_obj" = "i386"; then
5297 DEFAULT_TARGET_I386_TRUE
=
5298 DEFAULT_TARGET_I386_FALSE
='#'
5300 DEFAULT_TARGET_I386_TRUE
='#'
5301 DEFAULT_TARGET_I386_FALSE
=
5304 if test "$targ_obj" = "powerpc"; then
5305 DEFAULT_TARGET_POWERPC_TRUE
=
5306 DEFAULT_TARGET_POWERPC_FALSE
='#'
5308 DEFAULT_TARGET_POWERPC_TRUE
='#'
5309 DEFAULT_TARGET_POWERPC_FALSE
=
5312 if test "$targ_obj" = "sparc"; then
5313 DEFAULT_TARGET_SPARC_TRUE
=
5314 DEFAULT_TARGET_SPARC_FALSE
='#'
5316 DEFAULT_TARGET_SPARC_TRUE
='#'
5317 DEFAULT_TARGET_SPARC_FALSE
=
5320 if test "$targ_obj" = "s390"; then
5321 DEFAULT_TARGET_S390_TRUE
=
5322 DEFAULT_TARGET_S390_FALSE
='#'
5324 DEFAULT_TARGET_S390_TRUE
='#'
5325 DEFAULT_TARGET_S390_FALSE
=
5330 if test "$targ_obj" = "x86_64"; then
5332 x86_64
*-linux-gnux32)
5341 if test "$target_x86_64" = "yes"; then
5342 DEFAULT_TARGET_X86_64_TRUE
=
5343 DEFAULT_TARGET_X86_64_FALSE
='#'
5345 DEFAULT_TARGET_X86_64_TRUE
='#'
5346 DEFAULT_TARGET_X86_64_FALSE
=
5349 if test "$target_x32" = "yes"; then
5350 DEFAULT_TARGET_X32_TRUE
=
5351 DEFAULT_TARGET_X32_FALSE
='#'
5353 DEFAULT_TARGET_X32_TRUE
='#'
5354 DEFAULT_TARGET_X32_FALSE
=
5357 if test "$target_x86_64" = "yes" -o "$target_x32" = "yes"; then
5358 DEFAULT_TARGET_X86_64_OR_X32_TRUE
=
5359 DEFAULT_TARGET_X86_64_OR_X32_FALSE
='#'
5361 DEFAULT_TARGET_X86_64_OR_X32_TRUE
='#'
5362 DEFAULT_TARGET_X86_64_OR_X32_FALSE
=
5365 if test "$targ_obj" = "tilegx"; then
5366 DEFAULT_TARGET_TILEGX_TRUE
=
5367 DEFAULT_TARGET_TILEGX_FALSE
='#'
5369 DEFAULT_TARGET_TILEGX_TRUE
='#'
5370 DEFAULT_TARGET_TILEGX_FALSE
=
5373 if test "$targ_obj" = "mips"; then
5374 DEFAULT_TARGET_MIPS_TRUE
=
5375 DEFAULT_TARGET_MIPS_FALSE
='#'
5377 DEFAULT_TARGET_MIPS_TRUE
='#'
5378 DEFAULT_TARGET_MIPS_FALSE
=
5381 DEFAULT_TARGET
=${targ_obj}
5388 # Remove any duplicates.
5390 for t
in $targetobjs; do
5398 if test -n "$targ_32_little"; then
5400 $as_echo "#define HAVE_TARGET_32_LITTLE 1" >>confdefs.h
5403 if test -n "$targ_32_big"; then
5405 $as_echo "#define HAVE_TARGET_32_BIG 1" >>confdefs.h
5408 if test -n "$targ_64_little"; then
5410 $as_echo "#define HAVE_TARGET_64_LITTLE 1" >>confdefs.h
5413 if test -n "$targ_64_big"; then
5415 $as_echo "#define HAVE_TARGET_64_BIG 1" >>confdefs.h
5419 if test -n "$all_targets"; then
5420 TARGETOBJS
='$(ALL_TARGETOBJS)'
5422 TARGETOBJS
="$targetobjs"
5427 cat >>confdefs.h
<<_ACEOF
5428 #define GOLD_DEFAULT_MACHINE $default_machine
5432 cat >>confdefs.h
<<_ACEOF
5433 #define GOLD_DEFAULT_SIZE $default_size
5437 cat >>confdefs.h
<<_ACEOF
5438 #define GOLD_DEFAULT_BIG_ENDIAN $default_big_endian
5442 cat >>confdefs.h
<<_ACEOF
5443 #define GOLD_DEFAULT_OSABI $default_osabi
5448 # Check whether --with-lib-path was given.
5449 if test "${with_lib_path+set}" = set; then :
5450 withval
=$with_lib_path; case "$withval" in
5451 yes) LIB_PATH
='"/lib:/usr/lib"' ;;
5452 no
) LIB_PATH
='""' ;;
5453 *) LIB_PATH
='"'"$withval"'"' ;;
5456 LIB_PATH
='"::DEFAULT::"'
5460 cat >>confdefs.h
<<_ACEOF
5461 #define LIB_PATH $LIB_PATH
5464 if test "x$target_alias" = "x" -o "x$host_alias" = "x$target_alias"; then
5466 $as_echo "#define NATIVE_LINKER 1" >>confdefs.h
5470 if test -n "$ac_tool_prefix"; then
5471 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
5472 set dummy
${ac_tool_prefix}nm
; ac_word
=$2
5473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5474 $as_echo_n "checking for $ac_word... " >&6; }
5475 if ${ac_cv_prog_NM+:} false
; then :
5476 $as_echo_n "(cached) " >&6
5478 if test -n "$NM"; then
5479 ac_cv_prog_NM
="$NM" # Let the user override the test.
5481 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5485 test -z "$as_dir" && as_dir
=.
5486 for ac_exec_ext
in '' $ac_executable_extensions; do
5487 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5488 ac_cv_prog_NM
="${ac_tool_prefix}nm"
5489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5499 if test -n "$NM"; then
5500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
5501 $as_echo "$NM" >&6; }
5503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5504 $as_echo "no" >&6; }
5509 if test -z "$ac_cv_prog_NM"; then
5511 # Extract the first word of "nm", so it can be a program name with args.
5512 set dummy nm
; ac_word
=$2
5513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5514 $as_echo_n "checking for $ac_word... " >&6; }
5515 if ${ac_cv_prog_ac_ct_NM+:} false
; then :
5516 $as_echo_n "(cached) " >&6
5518 if test -n "$ac_ct_NM"; then
5519 ac_cv_prog_ac_ct_NM
="$ac_ct_NM" # Let the user override the test.
5521 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5525 test -z "$as_dir" && as_dir
=.
5526 for ac_exec_ext
in '' $ac_executable_extensions; do
5527 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5528 ac_cv_prog_ac_ct_NM
="nm"
5529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5538 ac_ct_NM
=$ac_cv_prog_ac_ct_NM
5539 if test -n "$ac_ct_NM"; then
5540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5
5541 $as_echo "$ac_ct_NM" >&6; }
5543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5544 $as_echo "no" >&6; }
5547 if test "x$ac_ct_NM" = x
; then
5550 case $cross_compiling:$ac_tool_warned in
5552 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5553 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5554 ac_tool_warned
=yes ;;
5564 ac_cpp
='$CPP $CPPFLAGS'
5565 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5566 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5567 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5568 if test -n "$ac_tool_prefix"; then
5569 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5570 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
5571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5572 $as_echo_n "checking for $ac_word... " >&6; }
5573 if ${ac_cv_prog_CC+:} false
; then :
5574 $as_echo_n "(cached) " >&6
5576 if test -n "$CC"; then
5577 ac_cv_prog_CC
="$CC" # Let the user override the test.
5579 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5583 test -z "$as_dir" && as_dir
=.
5584 for ac_exec_ext
in '' $ac_executable_extensions; do
5585 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5586 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
5587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5597 if test -n "$CC"; then
5598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5599 $as_echo "$CC" >&6; }
5601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5602 $as_echo "no" >&6; }
5607 if test -z "$ac_cv_prog_CC"; then
5609 # Extract the first word of "gcc", so it can be a program name with args.
5610 set dummy gcc
; ac_word
=$2
5611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5612 $as_echo_n "checking for $ac_word... " >&6; }
5613 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
5614 $as_echo_n "(cached) " >&6
5616 if test -n "$ac_ct_CC"; then
5617 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
5619 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5623 test -z "$as_dir" && as_dir
=.
5624 for ac_exec_ext
in '' $ac_executable_extensions; do
5625 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5626 ac_cv_prog_ac_ct_CC
="gcc"
5627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5636 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
5637 if test -n "$ac_ct_CC"; then
5638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5639 $as_echo "$ac_ct_CC" >&6; }
5641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5642 $as_echo "no" >&6; }
5645 if test "x$ac_ct_CC" = x
; then
5648 case $cross_compiling:$ac_tool_warned in
5650 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5651 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5652 ac_tool_warned
=yes ;;
5660 if test -z "$CC"; then
5661 if test -n "$ac_tool_prefix"; then
5662 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5663 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
5664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5665 $as_echo_n "checking for $ac_word... " >&6; }
5666 if ${ac_cv_prog_CC+:} false
; then :
5667 $as_echo_n "(cached) " >&6
5669 if test -n "$CC"; then
5670 ac_cv_prog_CC
="$CC" # Let the user override the test.
5672 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5676 test -z "$as_dir" && as_dir
=.
5677 for ac_exec_ext
in '' $ac_executable_extensions; do
5678 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5679 ac_cv_prog_CC
="${ac_tool_prefix}cc"
5680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5690 if test -n "$CC"; then
5691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5692 $as_echo "$CC" >&6; }
5694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5695 $as_echo "no" >&6; }
5701 if test -z "$CC"; then
5702 # Extract the first word of "cc", so it can be a program name with args.
5703 set dummy cc
; ac_word
=$2
5704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5705 $as_echo_n "checking for $ac_word... " >&6; }
5706 if ${ac_cv_prog_CC+:} false
; then :
5707 $as_echo_n "(cached) " >&6
5709 if test -n "$CC"; then
5710 ac_cv_prog_CC
="$CC" # Let the user override the test.
5713 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5717 test -z "$as_dir" && as_dir
=.
5718 for ac_exec_ext
in '' $ac_executable_extensions; do
5719 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5720 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5721 ac_prog_rejected
=yes
5725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5732 if test $ac_prog_rejected = yes; then
5733 # We found a bogon in the path, so make sure we never use it.
5734 set dummy
$ac_cv_prog_CC
5736 if test $# != 0; then
5737 # We chose a different compiler from the bogus one.
5738 # However, it has the same basename, so the bogon will be chosen
5739 # first if we set CC to just the basename; use the full file name.
5741 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
5747 if test -n "$CC"; then
5748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5749 $as_echo "$CC" >&6; }
5751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5752 $as_echo "no" >&6; }
5757 if test -z "$CC"; then
5758 if test -n "$ac_tool_prefix"; then
5759 for ac_prog
in cl.exe
5761 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5762 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
5763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5764 $as_echo_n "checking for $ac_word... " >&6; }
5765 if ${ac_cv_prog_CC+:} false
; then :
5766 $as_echo_n "(cached) " >&6
5768 if test -n "$CC"; then
5769 ac_cv_prog_CC
="$CC" # Let the user override the test.
5771 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5775 test -z "$as_dir" && as_dir
=.
5776 for ac_exec_ext
in '' $ac_executable_extensions; do
5777 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5778 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
5779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5789 if test -n "$CC"; then
5790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5791 $as_echo "$CC" >&6; }
5793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5794 $as_echo "no" >&6; }
5798 test -n "$CC" && break
5801 if test -z "$CC"; then
5803 for ac_prog
in cl.exe
5805 # Extract the first word of "$ac_prog", so it can be a program name with args.
5806 set dummy
$ac_prog; ac_word
=$2
5807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5808 $as_echo_n "checking for $ac_word... " >&6; }
5809 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
5810 $as_echo_n "(cached) " >&6
5812 if test -n "$ac_ct_CC"; then
5813 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
5815 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5819 test -z "$as_dir" && as_dir
=.
5820 for ac_exec_ext
in '' $ac_executable_extensions; do
5821 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5822 ac_cv_prog_ac_ct_CC
="$ac_prog"
5823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5832 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
5833 if test -n "$ac_ct_CC"; then
5834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5835 $as_echo "$ac_ct_CC" >&6; }
5837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5838 $as_echo "no" >&6; }
5842 test -n "$ac_ct_CC" && break
5845 if test "x$ac_ct_CC" = x
; then
5848 case $cross_compiling:$ac_tool_warned in
5850 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5851 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5852 ac_tool_warned
=yes ;;
5861 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5862 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5863 as_fn_error $?
"no acceptable C compiler found in \$PATH
5864 See \`config.log' for more details" "$LINENO" 5; }
5866 # Provide some information about the compiler.
5867 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5870 for ac_option
in --version -v -V -qversion; do
5871 { { ac_try
="$ac_compiler $ac_option >&5"
5873 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5874 *) ac_try_echo=$ac_try;;
5876 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5877 $as_echo "$ac_try_echo"; } >&5
5878 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5880 if test -s conftest.err; then
5882 ... rest of stderr output deleted ...
5883 10q' conftest.err >conftest.er1
5884 cat conftest.er1 >&5
5886 rm -f conftest.er1 conftest.err
5887 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5888 test $ac_status = 0; }
5891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5892 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5893 if ${ac_cv_c_compiler_gnu+:} false; then :
5894 $as_echo_n "(cached) " >&6
5896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5897 /* end confdefs.h. */
5910 if ac_fn_c_try_compile "$LINENO"; then :
5915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5916 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5920 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5921 if test $ac_compiler_gnu = yes; then
5926 ac_test_CFLAGS=${CFLAGS+set}
5927 ac_save_CFLAGS=$CFLAGS
5928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5929 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5930 if ${ac_cv_prog_cc_g+:} false; then :
5931 $as_echo_n "(cached) " >&6
5933 ac_save_c_werror_flag=$ac_c_werror_flag
5934 ac_c_werror_flag=yes
5937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5938 /* end confdefs.h. */
5948 if ac_fn_c_try_compile "$LINENO"; then :
5952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5953 /* end confdefs.h. */
5963 if ac_fn_c_try_compile "$LINENO"; then :
5966 ac_c_werror_flag=$ac_save_c_werror_flag
5968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5969 /* end confdefs.h. */
5979 if ac_fn_c_try_compile "$LINENO"; then :
5982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5987 ac_c_werror_flag=$ac_save_c_werror_flag
5989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5990 $as_echo "$ac_cv_prog_cc_g" >&6; }
5991 if test "$ac_test_CFLAGS" = set; then
5992 CFLAGS=$ac_save_CFLAGS
5993 elif test $ac_cv_prog_cc_g = yes; then
5994 if test "$GCC" = yes; then
6000 if test "$GCC" = yes; then
6006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6007 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6008 if ${ac_cv_prog_cc_c89+:} false; then :
6009 $as_echo_n "(cached) " >&6
6011 ac_cv_prog_cc_c89=no
6013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6014 /* end confdefs.h. */
6018 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6019 struct buf { int x; };
6020 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6021 static char *e (p, i)
6027 static char *f (char * (*g) (char **, int), char **p, ...)
6032 s = g (p, va_arg (v,int));
6037 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6038 function prototypes and stuff, but not '\xHH' hex character constants.
6039 These don't provoke an error unfortunately, instead are silently treated
6040 as 'x'. The following induces an error, until -std is added to get
6041 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6042 array size at least. It's necessary to write '\x00'==0 to get something
6043 that's true only with -std. */
6044 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6046 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6047 inside strings and character constants. */
6049 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6051 int test (int i, double x);
6052 struct s1 {int (*f) (int a);};
6053 struct s2 {int (*f) (double a);};
6054 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6060 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6065 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6066 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6068 CC="$ac_save_CC $ac_arg"
6069 if ac_fn_c_try_compile "$LINENO"; then :
6070 ac_cv_prog_cc_c89=$ac_arg
6072 rm -f core conftest.err conftest.$ac_objext
6073 test "x$ac_cv_prog_cc_c89" != "xno" && break
6075 rm -f conftest.$ac_ext
6080 case "x$ac_cv_prog_cc_c89" in
6082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6083 $as_echo "none needed" >&6; } ;;
6085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6086 $as_echo "unsupported" >&6; } ;;
6088 CC="$CC $ac_cv_prog_cc_c89"
6089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6090 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6092 if test "x$ac_cv_prog_cc_c89" != xno; then :
6097 ac_cpp='$CPP $CPPFLAGS'
6098 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6099 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6100 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6103 ac_cpp='$CPP $CPPFLAGS'
6104 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6105 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6106 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
6108 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
6109 if ${am_cv_prog_cc_c_o+:} false; then :
6110 $as_echo_n "(cached) " >&6
6112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6113 /* end confdefs.h. */
6123 # Make sure it works both with $CC and with simple cc.
6124 # Following AC_PROG_CC_C_O, we do the test twice because some
6125 # compilers refuse to overwrite an existing .o file with -o,
6126 # though they will create one.
6127 am_cv_prog_cc_c_o=yes
6129 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
6130 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
6132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6133 (exit $ac_status); } \
6134 && test -f conftest2.$ac_objext; then
6137 am_cv_prog_cc_c_o=no
6141 rm -f core conftest*
6144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
6145 $as_echo "$am_cv_prog_cc_c_o" >&6; }
6146 if test "$am_cv_prog_cc_c_o" != yes; then
6147 # Losing compiler, so override with the script.
6148 # FIXME: It is wrong to rewrite CC.
6149 # But if we don't then we get into trouble of one sort or another.
6150 # A longer-term fix would be to have automake use am__CC in this case,
6151 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6152 CC="$am_aux_dir/compile $CC"
6155 ac_cpp='$CPP $CPPFLAGS'
6156 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6157 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6158 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6161 depcc="$CC" am_compiler_list=
6163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6164 $as_echo_n "checking dependency style of $depcc... " >&6; }
6165 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
6166 $as_echo_n "(cached) " >&6
6168 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6169 # We make a subdir and do the tests there. Otherwise we can end up
6170 # making bogus files that we don't know about and never remove. For
6171 # instance it was reported that on HP-UX the gcc test will end up
6172 # making a dummy file named 'D' -- because '-MD' means "put the output
6176 # Copy depcomp to subdir because otherwise we won't find it if we're
6177 # using a relative directory.
6178 cp "$am_depcomp" conftest.dir
6180 # We will build objects and dependencies in a subdirectory because
6181 # it helps to detect inapplicable dependency modes. For instance
6182 # both Tru64's cc and ICC support -MD to output dependencies as a
6183 # side effect of compilation, but ICC will put the dependencies in
6184 # the current directory while Tru64 will put them in the object
6188 am_cv_CC_dependencies_compiler_type=none
6189 if test "$am_compiler_list" = ""; then
6190 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < .
/depcomp
`
6193 case " $depcc " in #(
6194 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6197 for depmode in $am_compiler_list; do
6198 # Setup a source with many dependencies, because some compilers
6199 # like to wrap large dependency lists on column 80 (with \), and
6200 # we should not choose a depcomp mode which is confused by this.
6202 # We need to recreate these files for each test, as the compiler may
6203 # overwrite some of them when testing with obscure command lines.
6204 # This happens at least with the AIX C compiler.
6206 for i in 1 2 3 4 5 6; do
6207 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6208 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6209 # Solaris 10 /bin/sh.
6210 echo '/* dummy */' > sub/conftst$i.h
6212 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6214 # We check with '-c' and '-o' for the sake of the "dashmstdout"
6215 # mode. It turns out that the SunPro C++ compiler does not properly
6216 # handle '-M -o', and we need to detect this. Also, some Intel
6217 # versions had trouble with output in subdirs.
6218 am__obj=sub/conftest.${OBJEXT-o}
6219 am__minus_obj="-o $am__obj"
6222 # This depmode causes a compiler race in universal mode.
6223 test "$am__universal" = false || continue
6226 # After this tag, mechanisms are not by side-effect, so they'll
6227 # only be used when explicitly requested.
6228 if test "x$enable_dependency_tracking" = xyes; then
6234 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6235 # This compiler won't grok '-c -o', but also, the minuso test has
6236 # not run yet. These depmodes are late enough in the game, and
6237 # so weak that their functioning should not be impacted.
6238 am__obj=conftest.${OBJEXT-o}
6243 if depmode=$depmode \
6244 source=sub/conftest.c object=$am__obj \
6245 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6246 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6247 >/dev/null 2>conftest.err &&
6248 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6249 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6250 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6251 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6252 # icc doesn't choke on unknown options, it will just issue warnings
6253 # or remarks (even with -Werror). So we grep stderr for any message
6254 # that says an option was ignored or not supported.
6255 # When given -MP, icc 7.0 and 7.1 complain thusly:
6256 # icc: Command line warning: ignoring option '-M'; no argument required
6257 # The diagnosis changed in icc 8.0:
6258 # icc: Command line remark: option '-MP' not supported
6259 if (grep 'ignoring option' conftest.err ||
6260 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6261 am_cv_CC_dependencies_compiler_type=$depmode
6270 am_cv_CC_dependencies_compiler_type=none
6274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6275 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6276 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6279 test "x$enable_dependency_tracking" != xno \
6280 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6282 am__fastdepCC_FALSE='#'
6284 am__fastdepCC_TRUE='#'
6285 am__fastdepCC_FALSE=
6290 ac_cpp='$CXXCPP $CPPFLAGS'
6291 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6292 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6293 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6294 if test -z "$CXX"; then
6295 if test -n "$CCC"; then
6298 if test -n "$ac_tool_prefix"; then
6299 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6301 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6302 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6304 $as_echo_n "checking for $ac_word... " >&6; }
6305 if ${ac_cv_prog_CXX+:} false; then :
6306 $as_echo_n "(cached) " >&6
6308 if test -n "$CXX"; then
6309 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6315 test -z "$as_dir" && as_dir=.
6316 for ac_exec_ext in '' $ac_executable_extensions; do
6317 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6318 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6329 if test -n "$CXX"; then
6330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6331 $as_echo "$CXX" >&6; }
6333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6334 $as_echo "no" >&6; }
6338 test -n "$CXX" && break
6341 if test -z "$CXX"; then
6343 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6345 # Extract the first word of "$ac_prog", so it can be a program name with args.
6346 set dummy $ac_prog; ac_word=$2
6347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6348 $as_echo_n "checking for $ac_word... " >&6; }
6349 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
6350 $as_echo_n "(cached) " >&6
6352 if test -n "$ac_ct_CXX"; then
6353 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6359 test -z "$as_dir" && as_dir=.
6360 for ac_exec_ext in '' $ac_executable_extensions; do
6361 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6362 ac_cv_prog_ac_ct_CXX="$ac_prog"
6363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6372 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6373 if test -n "$ac_ct_CXX"; then
6374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6375 $as_echo "$ac_ct_CXX" >&6; }
6377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6378 $as_echo "no" >&6; }
6382 test -n "$ac_ct_CXX" && break
6385 if test "x$ac_ct_CXX" = x; then
6388 case $cross_compiling:$ac_tool_warned in
6390 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6391 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6392 ac_tool_warned=yes ;;
6400 # Provide some information about the compiler.
6401 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6404 for ac_option in --version -v -V -qversion; do
6405 { { ac_try="$ac_compiler $ac_option >&5"
6407 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6408 *) ac_try_echo
=$ac_try;;
6410 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6411 $as_echo "$ac_try_echo"; } >&5
6412 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6414 if test -s conftest.err
; then
6416 ... rest of stderr output deleted ...
6417 10q' conftest.err
>conftest.er1
6418 cat conftest.er1
>&5
6420 rm -f conftest.er1 conftest.err
6421 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6422 test $ac_status = 0; }
6425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6426 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
6427 if ${ac_cv_cxx_compiler_gnu+:} false
; then :
6428 $as_echo_n "(cached) " >&6
6430 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6431 /* end confdefs.h. */
6444 if ac_fn_cxx_try_compile
"$LINENO"; then :
6449 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6450 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
6453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6454 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6455 if test $ac_compiler_gnu = yes; then
6460 ac_test_CXXFLAGS
=${CXXFLAGS+set}
6461 ac_save_CXXFLAGS
=$CXXFLAGS
6462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6463 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
6464 if ${ac_cv_prog_cxx_g+:} false
; then :
6465 $as_echo_n "(cached) " >&6
6467 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
6468 ac_cxx_werror_flag
=yes
6471 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6472 /* end confdefs.h. */
6482 if ac_fn_cxx_try_compile
"$LINENO"; then :
6483 ac_cv_prog_cxx_g
=yes
6486 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6487 /* end confdefs.h. */
6497 if ac_fn_cxx_try_compile
"$LINENO"; then :
6500 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
6502 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6503 /* end confdefs.h. */
6513 if ac_fn_cxx_try_compile
"$LINENO"; then :
6514 ac_cv_prog_cxx_g
=yes
6516 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6518 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6520 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6521 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
6523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6524 $as_echo "$ac_cv_prog_cxx_g" >&6; }
6525 if test "$ac_test_CXXFLAGS" = set; then
6526 CXXFLAGS
=$ac_save_CXXFLAGS
6527 elif test $ac_cv_prog_cxx_g = yes; then
6528 if test "$GXX" = yes; then
6534 if test "$GXX" = yes; then
6541 ac_cpp
='$CPP $CPPFLAGS'
6542 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6543 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6544 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6546 depcc
="$CXX" am_compiler_list
=
6548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6549 $as_echo_n "checking dependency style of $depcc... " >&6; }
6550 if ${am_cv_CXX_dependencies_compiler_type+:} false
; then :
6551 $as_echo_n "(cached) " >&6
6553 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6554 # We make a subdir and do the tests there. Otherwise we can end up
6555 # making bogus files that we don't know about and never remove. For
6556 # instance it was reported that on HP-UX the gcc test will end up
6557 # making a dummy file named 'D' -- because '-MD' means "put the output
6561 # Copy depcomp to subdir because otherwise we won't find it if we're
6562 # using a relative directory.
6563 cp "$am_depcomp" conftest.dir
6565 # We will build objects and dependencies in a subdirectory because
6566 # it helps to detect inapplicable dependency modes. For instance
6567 # both Tru64's cc and ICC support -MD to output dependencies as a
6568 # side effect of compilation, but ICC will put the dependencies in
6569 # the current directory while Tru64 will put them in the object
6573 am_cv_CXX_dependencies_compiler_type
=none
6574 if test "$am_compiler_list" = ""; then
6575 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6578 case " $depcc " in #(
6579 *\
-arch\
*\
-arch\
*) am__universal
=true
;;
6582 for depmode
in $am_compiler_list; do
6583 # Setup a source with many dependencies, because some compilers
6584 # like to wrap large dependency lists on column 80 (with \), and
6585 # we should not choose a depcomp mode which is confused by this.
6587 # We need to recreate these files for each test, as the compiler may
6588 # overwrite some of them when testing with obscure command lines.
6589 # This happens at least with the AIX C compiler.
6591 for i
in 1 2 3 4 5 6; do
6592 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
6593 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6594 # Solaris 10 /bin/sh.
6595 echo '/* dummy */' > sub
/conftst
$i.h
6597 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6599 # We check with '-c' and '-o' for the sake of the "dashmstdout"
6600 # mode. It turns out that the SunPro C++ compiler does not properly
6601 # handle '-M -o', and we need to detect this. Also, some Intel
6602 # versions had trouble with output in subdirs.
6603 am__obj
=sub
/conftest.
${OBJEXT-o}
6604 am__minus_obj
="-o $am__obj"
6607 # This depmode causes a compiler race in universal mode.
6608 test "$am__universal" = false ||
continue
6611 # After this tag, mechanisms are not by side-effect, so they'll
6612 # only be used when explicitly requested.
6613 if test "x$enable_dependency_tracking" = xyes
; then
6619 msvc7 | msvc7msys | msvisualcpp | msvcmsys
)
6620 # This compiler won't grok '-c -o', but also, the minuso test has
6621 # not run yet. These depmodes are late enough in the game, and
6622 # so weak that their functioning should not be impacted.
6623 am__obj
=conftest.
${OBJEXT-o}
6628 if depmode
=$depmode \
6629 source=sub
/conftest.c object
=$am__obj \
6630 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
6631 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
6632 >/dev
/null
2>conftest.err
&&
6633 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
6634 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
6635 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
6636 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
6637 # icc doesn't choke on unknown options, it will just issue warnings
6638 # or remarks (even with -Werror). So we grep stderr for any message
6639 # that says an option was ignored or not supported.
6640 # When given -MP, icc 7.0 and 7.1 complain thusly:
6641 # icc: Command line warning: ignoring option '-M'; no argument required
6642 # The diagnosis changed in icc 8.0:
6643 # icc: Command line remark: option '-MP' not supported
6644 if (grep 'ignoring option' conftest.err ||
6645 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
6646 am_cv_CXX_dependencies_compiler_type
=$depmode
6655 am_cv_CXX_dependencies_compiler_type
=none
6659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6660 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6661 CXXDEPMODE
=depmode
=$am_cv_CXX_dependencies_compiler_type
6664 test "x$enable_dependency_tracking" != xno \
6665 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3
; then
6666 am__fastdepCXX_TRUE
=
6667 am__fastdepCXX_FALSE
='#'
6669 am__fastdepCXX_TRUE
='#'
6670 am__fastdepCXX_FALSE
=
6674 for ac_prog
in 'bison -y' byacc
6676 # Extract the first word of "$ac_prog", so it can be a program name with args.
6677 set dummy
$ac_prog; ac_word
=$2
6678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6679 $as_echo_n "checking for $ac_word... " >&6; }
6680 if ${ac_cv_prog_YACC+:} false
; then :
6681 $as_echo_n "(cached) " >&6
6683 if test -n "$YACC"; then
6684 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
6686 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6690 test -z "$as_dir" && as_dir
=.
6691 for ac_exec_ext
in '' $ac_executable_extensions; do
6692 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6693 ac_cv_prog_YACC
="$ac_prog"
6694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6703 YACC
=$ac_cv_prog_YACC
6704 if test -n "$YACC"; then
6705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
6706 $as_echo "$YACC" >&6; }
6708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6709 $as_echo "no" >&6; }
6713 test -n "$YACC" && break
6715 test -n "$YACC" || YACC
="yacc"
6717 if test -n "$ac_tool_prefix"; then
6718 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6719 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
6720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6721 $as_echo_n "checking for $ac_word... " >&6; }
6722 if ${ac_cv_prog_RANLIB+:} false
; then :
6723 $as_echo_n "(cached) " >&6
6725 if test -n "$RANLIB"; then
6726 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
6728 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6732 test -z "$as_dir" && as_dir
=.
6733 for ac_exec_ext
in '' $ac_executable_extensions; do
6734 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6735 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
6736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6745 RANLIB
=$ac_cv_prog_RANLIB
6746 if test -n "$RANLIB"; then
6747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6748 $as_echo "$RANLIB" >&6; }
6750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6751 $as_echo "no" >&6; }
6756 if test -z "$ac_cv_prog_RANLIB"; then
6757 ac_ct_RANLIB
=$RANLIB
6758 # Extract the first word of "ranlib", so it can be a program name with args.
6759 set dummy ranlib
; ac_word
=$2
6760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6761 $as_echo_n "checking for $ac_word... " >&6; }
6762 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
6763 $as_echo_n "(cached) " >&6
6765 if test -n "$ac_ct_RANLIB"; then
6766 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
6768 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6772 test -z "$as_dir" && as_dir
=.
6773 for ac_exec_ext
in '' $ac_executable_extensions; do
6774 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6775 ac_cv_prog_ac_ct_RANLIB
="ranlib"
6776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6785 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
6786 if test -n "$ac_ct_RANLIB"; then
6787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6788 $as_echo "$ac_ct_RANLIB" >&6; }
6790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6791 $as_echo "no" >&6; }
6794 if test "x$ac_ct_RANLIB" = x
; then
6797 case $cross_compiling:$ac_tool_warned in
6799 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6800 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6801 ac_tool_warned
=yes ;;
6803 RANLIB
=$ac_ct_RANLIB
6806 RANLIB
="$ac_cv_prog_RANLIB"
6810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6811 $as_echo_n "checking whether ln -s works... " >&6; }
6813 if test "$LN_S" = "ln -s"; then
6814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6815 $as_echo "yes" >&6; }
6817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6818 $as_echo "no, using $LN_S" >&6; }
6824 # If we haven't got the data from the intl directory,
6825 # assume NLS is disabled.
6834 if test -f ..
/intl
/config.intl
; then
6835 . ..
/intl
/config.intl
6837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
6838 $as_echo_n "checking whether NLS is requested... " >&6; }
6839 if test x
"$USE_NLS" != xyes
; then
6840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6841 $as_echo "no" >&6; }
6843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6844 $as_echo "yes" >&6; }
6846 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
6849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
6850 $as_echo_n "checking for catalogs to be installed... " >&6; }
6851 # Look for .po and .gmo files in the source directory.
6854 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
6855 # If there aren't any .gmo files the shell will give us the
6856 # literal string "../path/to/srcdir/po/*.gmo" which has to be
6858 case "$cat" in *\
**)
6861 # The quadruple backslash is collapsed to a double backslash
6862 # by the backticks, then collapsed again by the double quotes,
6863 # leaving us with one backslash in the sed expression (right
6864 # before the dot that mustn't act as a wildcard).
6865 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
6866 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
6867 # The user is allowed to set LINGUAS to a list of languages to
6868 # install catalogs for. If it's empty that means "all of them."
6869 if test "x$LINGUAS" = x
; then
6870 CATALOGS
="$CATALOGS $cat"
6871 XLINGUAS
="$XLINGUAS $lang"
6873 case "$LINGUAS" in *$lang*)
6874 CATALOGS
="$CATALOGS $cat"
6875 XLINGUAS
="$XLINGUAS $lang"
6881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
6882 $as_echo "$LINGUAS" >&6; }
6896 if test -n "$ac_aux_dir"; then
6897 case "$ac_aux_dir" in
6898 /*) MKINSTALLDIRS
="$ac_aux_dir/mkinstalldirs" ;;
6899 *) MKINSTALLDIRS
="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
6902 if test -z "$MKINSTALLDIRS"; then
6903 MKINSTALLDIRS
="\$(top_srcdir)/mkinstalldirs"
6908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
6909 $as_echo_n "checking whether NLS is requested... " >&6; }
6910 # Check whether --enable-nls was given.
6911 if test "${enable_nls+set}" = set; then :
6912 enableval
=$enable_nls; USE_NLS
=$enableval
6917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
6918 $as_echo "$USE_NLS" >&6; }
6925 # Prepare PATH_SEPARATOR.
6926 # The user is always right.
6927 if test "${PATH_SEPARATOR+set}" != set; then
6928 echo "#! /bin/sh" >conf$$.sh
6929 echo "exit 0" >>conf$$.sh
6931 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
6939 # Find out how to test for executable files. Don't use a zero-byte file,
6940 # as systems may use methods other than mode bits to determine executability.
6941 cat >conf$$.
file <<_ASEOF
6945 chmod +x conf$$.
file
6946 if test -x conf$$.
file >/dev
/null
2>&1; then
6947 ac_executable_p
="test -x"
6949 ac_executable_p
="test -f"
6953 # Extract the first word of "msgfmt", so it can be a program name with args.
6954 set dummy msgfmt
; ac_word
=$2
6955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6956 $as_echo_n "checking for $ac_word... " >&6; }
6957 if ${ac_cv_path_MSGFMT+:} false
; then :
6958 $as_echo_n "(cached) " >&6
6962 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
6965 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
6966 for ac_dir
in $PATH; do
6968 test -z "$ac_dir" && ac_dir
=.
6969 for ac_exec_ext
in '' $ac_executable_extensions; do
6970 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6971 if $ac_dir/$ac_word --statistics /dev
/null
>/dev
/null
2>&1 &&
6972 (if $ac_dir/$ac_word --statistics /dev
/null
2>&1 >/dev
/null |
grep usage
>/dev
/null
; then exit 1; else exit 0; fi); then
6973 ac_cv_path_MSGFMT
="$ac_dir/$ac_word$ac_exec_ext"
6980 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
=":"
6984 MSGFMT
="$ac_cv_path_MSGFMT"
6985 if test "$MSGFMT" != ":"; then
6986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
6987 $as_echo "$MSGFMT" >&6; }
6989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6990 $as_echo "no" >&6; }
6993 # Extract the first word of "gmsgfmt", so it can be a program name with args.
6994 set dummy gmsgfmt
; ac_word
=$2
6995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6996 $as_echo_n "checking for $ac_word... " >&6; }
6997 if ${ac_cv_path_GMSGFMT+:} false
; then :
6998 $as_echo_n "(cached) " >&6
7002 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
7005 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7009 test -z "$as_dir" && as_dir
=.
7010 for ac_exec_ext
in '' $ac_executable_extensions; do
7011 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7012 ac_cv_path_GMSGFMT
="$as_dir/$ac_word$ac_exec_ext"
7013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7020 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
7024 GMSGFMT
=$ac_cv_path_GMSGFMT
7025 if test -n "$GMSGFMT"; then
7026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
7027 $as_echo "$GMSGFMT" >&6; }
7029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7030 $as_echo "no" >&6; }
7036 # Prepare PATH_SEPARATOR.
7037 # The user is always right.
7038 if test "${PATH_SEPARATOR+set}" != set; then
7039 echo "#! /bin/sh" >conf$$.sh
7040 echo "exit 0" >>conf$$.sh
7042 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
7050 # Find out how to test for executable files. Don't use a zero-byte file,
7051 # as systems may use methods other than mode bits to determine executability.
7052 cat >conf$$.
file <<_ASEOF
7056 chmod +x conf$$.
file
7057 if test -x conf$$.
file >/dev
/null
2>&1; then
7058 ac_executable_p
="test -x"
7060 ac_executable_p
="test -f"
7064 # Extract the first word of "xgettext", so it can be a program name with args.
7065 set dummy xgettext
; ac_word
=$2
7066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7067 $as_echo_n "checking for $ac_word... " >&6; }
7068 if ${ac_cv_path_XGETTEXT+:} false
; then :
7069 $as_echo_n "(cached) " >&6
7073 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
7076 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
7077 for ac_dir
in $PATH; do
7079 test -z "$ac_dir" && ac_dir
=.
7080 for ac_exec_ext
in '' $ac_executable_extensions; do
7081 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7082 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev
/null
>/dev
/null
2>&1 &&
7083 (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
7084 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word$ac_exec_ext"
7091 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
7095 XGETTEXT
="$ac_cv_path_XGETTEXT"
7096 if test "$XGETTEXT" != ":"; then
7097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
7098 $as_echo "$XGETTEXT" >&6; }
7100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7101 $as_echo "no" >&6; }
7107 # Prepare PATH_SEPARATOR.
7108 # The user is always right.
7109 if test "${PATH_SEPARATOR+set}" != set; then
7110 echo "#! /bin/sh" >conf$$.sh
7111 echo "exit 0" >>conf$$.sh
7113 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
7121 # Find out how to test for executable files. Don't use a zero-byte file,
7122 # as systems may use methods other than mode bits to determine executability.
7123 cat >conf$$.
file <<_ASEOF
7127 chmod +x conf$$.
file
7128 if test -x conf$$.
file >/dev
/null
2>&1; then
7129 ac_executable_p
="test -x"
7131 ac_executable_p
="test -f"
7135 # Extract the first word of "msgmerge", so it can be a program name with args.
7136 set dummy msgmerge
; ac_word
=$2
7137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7138 $as_echo_n "checking for $ac_word... " >&6; }
7139 if ${ac_cv_path_MSGMERGE+:} false
; then :
7140 $as_echo_n "(cached) " >&6
7144 ac_cv_path_MSGMERGE
="$MSGMERGE" # Let the user override the test with a path.
7147 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
7148 for ac_dir
in $PATH; do
7150 test -z "$ac_dir" && ac_dir
=.
7151 for ac_exec_ext
in '' $ac_executable_extensions; do
7152 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7153 if $ac_dir/$ac_word --update -q /dev
/null
/dev
/null
>/dev
/null
2>&1; then
7154 ac_cv_path_MSGMERGE
="$ac_dir/$ac_word$ac_exec_ext"
7161 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE
=":"
7165 MSGMERGE
="$ac_cv_path_MSGMERGE"
7166 if test "$MSGMERGE" != ":"; then
7167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
7168 $as_echo "$MSGMERGE" >&6; }
7170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7171 $as_echo "no" >&6; }
7175 if test "$GMSGFMT" != ":"; then
7176 if $GMSGFMT --statistics /dev
/null
>/dev
/null
2>&1 &&
7177 (if $GMSGFMT --statistics /dev
/null
2>&1 >/dev
/null |
grep usage
>/dev
/null
; then exit 1; else exit 0; fi); then
7180 GMSGFMT
=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
7181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
7182 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
7187 if test "$XGETTEXT" != ":"; then
7188 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev
/null
>/dev
/null
2>&1 &&
7189 (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
7192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
7193 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
7199 ac_config_commands
="$ac_config_commands default-1"
7203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
7204 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
7205 if ${ac_cv_c_bigendian+:} false
; then :
7206 $as_echo_n "(cached) " >&6
7208 ac_cv_c_bigendian
=unknown
7209 # See if we're dealing with a universal compiler.
7210 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7211 /* end confdefs.h. */
7212 #ifndef __APPLE_CC__
7213 not a universal capable compiler
7218 if ac_fn_c_try_compile
"$LINENO"; then :
7220 # Check for potential -arch flags. It is not universal unless
7221 # there are at least two -arch flags with different values.
7224 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
7225 if test -n "$ac_prev"; then
7227 i?
86 | x86_64 | ppc | ppc64
)
7228 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
7231 ac_cv_c_bigendian
=universal
7237 elif test "x$ac_word" = "x-arch"; then
7242 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7243 if test $ac_cv_c_bigendian = unknown
; then
7244 # See if sys/param.h defines the BYTE_ORDER macro.
7245 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7246 /* end confdefs.h. */
7247 #include <sys/types.h>
7248 #include <sys/param.h>
7253 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
7254 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
7263 if ac_fn_c_try_compile
"$LINENO"; then :
7264 # It does; now see whether it defined to BIG_ENDIAN or not.
7265 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7266 /* end confdefs.h. */
7267 #include <sys/types.h>
7268 #include <sys/param.h>
7273 #if BYTE_ORDER != BIG_ENDIAN
7281 if ac_fn_c_try_compile
"$LINENO"; then :
7282 ac_cv_c_bigendian
=yes
7284 ac_cv_c_bigendian
=no
7286 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7288 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7290 if test $ac_cv_c_bigendian = unknown
; then
7291 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
7292 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7293 /* end confdefs.h. */
7299 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
7307 if ac_fn_c_try_compile
"$LINENO"; then :
7308 # It does; now see whether it defined to _BIG_ENDIAN or not.
7309 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7310 /* end confdefs.h. */
7324 if ac_fn_c_try_compile
"$LINENO"; then :
7325 ac_cv_c_bigendian
=yes
7327 ac_cv_c_bigendian
=no
7329 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7331 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7333 if test $ac_cv_c_bigendian = unknown
; then
7334 # Compile a test program.
7335 if test "$cross_compiling" = yes; then :
7336 # Try to guess by grepping values from an object file.
7337 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7338 /* end confdefs.h. */
7339 short int ascii_mm[] =
7340 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
7341 short int ascii_ii[] =
7342 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
7343 int use_ascii (int i) {
7344 return ascii_mm[i] + ascii_ii[i];
7346 short int ebcdic_ii[] =
7347 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
7348 short int ebcdic_mm[] =
7349 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
7350 int use_ebcdic (int i) {
7351 return ebcdic_mm[i] + ebcdic_ii[i];
7358 return use_ascii (foo) == use_ebcdic (foo);
7363 if ac_fn_c_try_compile
"$LINENO"; then :
7364 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
7365 ac_cv_c_bigendian
=yes
7367 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
7368 if test "$ac_cv_c_bigendian" = unknown
; then
7369 ac_cv_c_bigendian
=no
7371 # finding both strings is unlikely to happen, but who knows?
7372 ac_cv_c_bigendian
=unknown
7376 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7378 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7379 /* end confdefs.h. */
7380 $ac_includes_default
7385 /* Are we little or big endian? From Harbison&Steele. */
7389 char c[sizeof (long int)];
7392 return u.c[sizeof (long int) - 1] == 1;
7398 if ac_fn_c_try_run
"$LINENO"; then :
7399 ac_cv_c_bigendian
=no
7401 ac_cv_c_bigendian
=yes
7403 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7404 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
7410 $as_echo "$ac_cv_c_bigendian" >&6; }
7411 case $ac_cv_c_bigendian in #(
7413 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
7419 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
7423 as_fn_error $?
"unknown endianness
7424 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
7430 if test "x$target_alias" = "x" -o "x$host_alias" = "x$target_alias"; then
7432 NATIVE_LINKER_FALSE
='#'
7434 NATIVE_LINKER_TRUE
='#'
7435 NATIVE_LINKER_FALSE
=
7438 if test "$GCC" = yes; then
7447 if test "x$target_alias" = "x" -o "x$host_alias" = "x$target_alias" -o "x$host_alias" = "x$build_alias"; then
7448 NATIVE_OR_CROSS_LINKER_TRUE
=
7449 NATIVE_OR_CROSS_LINKER_FALSE
='#'
7451 NATIVE_OR_CROSS_LINKER_TRUE
='#'
7452 NATIVE_OR_CROSS_LINKER_FALSE
=
7456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether static linking works" >&5
7457 $as_echo_n "checking whether static linking works... " >&6; }
7458 if ${gold_cv_lib_static+:} false
; then :
7459 $as_echo_n "(cached) " >&6
7461 LDFLAGS_hold
=$LDFLAGS
7462 LDFLAGS
="$LDFLAGS -static"
7463 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7464 /* end confdefs.h. */
7475 if ac_fn_c_try_link
"$LINENO"; then :
7476 gold_cv_lib_static
=yes
7478 gold_cv_lib_static
=no
7480 rm -f core conftest.err conftest.
$ac_objext \
7481 conftest
$ac_exeext conftest.
$ac_ext
7482 LDFLAGS
=$LDFLAGS_hold
7484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_lib_static" >&5
7485 $as_echo "$gold_cv_lib_static" >&6; }
7486 if test "$gold_cv_lib_static" = "yes"; then
7488 HAVE_STATIC_FALSE
='#'
7490 HAVE_STATIC_TRUE
='#'
7503 FN_PTRS_IN_SO_WITHOUT_PIC_TRUE
=
7504 FN_PTRS_IN_SO_WITHOUT_PIC_FALSE
='#'
7506 FN_PTRS_IN_SO_WITHOUT_PIC_TRUE
='#'
7507 FN_PTRS_IN_SO_WITHOUT_PIC_FALSE
=
7511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc >= 4.1" >&5
7512 $as_echo_n "checking for gcc >= 4.1... " >&6; }
7513 if ${gold_cv_prog_gcc41+:} false
; then :
7514 $as_echo_n "(cached) " >&6
7516 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7517 /* end confdefs.h. */
7519 #if !defined __GNUC__
7521 #elif __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 1)
7526 if ac_fn_c_try_compile
"$LINENO"; then :
7527 gold_cv_prog_gcc41
=yes
7529 gold_cv_prog_gcc41
=no
7531 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_prog_gcc41" >&5
7534 $as_echo "$gold_cv_prog_gcc41" >&6; }
7536 save_CFLAGS
="$CFLAGS"
7537 CFLAGS
="$CFLAGS -mcmodel=medium"
7538 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7539 /* end confdefs.h. */
7542 if ac_fn_c_try_compile
"$LINENO"; then :
7543 have_mcmodel_medium
=yes
7545 have_mcmodel_medium
=no
7547 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7548 CFLAGS
="$save_CFLAGS"
7549 if test "$target_cpu" = "x86_64" -a "$have_mcmodel_medium" = "yes" -a "$gold_cv_prog_gcc41" = "yes"; then
7550 MCMODEL_MEDIUM_TRUE
=
7551 MCMODEL_MEDIUM_FALSE
='#'
7553 MCMODEL_MEDIUM_TRUE
='#'
7554 MCMODEL_MEDIUM_FALSE
=
7558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc >= 9" >&5
7559 $as_echo_n "checking for gcc >= 9... " >&6; }
7560 if ${gold_cv_prog_gcc9+:} false
; then :
7561 $as_echo_n "(cached) " >&6
7563 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7564 /* end confdefs.h. */
7566 #if !defined __GNUC__ || __GNUC__ < 9
7571 if ac_fn_c_try_compile
"$LINENO"; then :
7572 gold_cv_prog_gcc9
=yes
7574 gold_cv_prog_gcc9
=no
7576 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_prog_gcc9" >&5
7579 $as_echo "$gold_cv_prog_gcc9" >&6; }
7580 if test "$gold_cv_prog_gcc9" = "yes"; then
7589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fcf-protection" >&5
7590 $as_echo_n "checking for -fcf-protection... " >&6; }
7591 if ${gold_cv_cflags_cf_protection+:} false
; then :
7592 $as_echo_n "(cached) " >&6
7594 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7595 /* end confdefs.h. */
7597 #if !defined __x86_64__ || !defined __CET__
7602 if ac_fn_c_try_compile
"$LINENO"; then :
7603 gold_cv_cflags_cf_protection
=yes
7605 gold_cv_cflags_cf_protection
=no
7607 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_cflags_cf_protection" >&5
7610 $as_echo "$gold_cv_cflags_cf_protection" >&6; }
7611 if test "$gold_cv_cflags_cf_protection" = "yes"; then
7612 CFLAGS_CF_PROTECTION_TRUE
=
7613 CFLAGS_CF_PROTECTION_FALSE
='#'
7615 CFLAGS_CF_PROTECTION_TRUE
='#'
7616 CFLAGS_CF_PROTECTION_FALSE
=
7620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -fmerge-constants" >&5
7621 $as_echo_n "checking whether $CC supports -fmerge-constants... " >&6; }
7622 if ${gold_cv_merge_constants+:} false
; then :
7623 $as_echo_n "(cached) " >&6
7626 save_CFLAGS
="$CFLAGS"
7627 CFLAGS
="$CFLAGS -fmerge-constants"
7628 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7629 /* end confdefs.h. */
7630 const char *s = "foo";
7632 if ac_fn_c_try_compile
"$LINENO"; then :
7633 gold_cv_merge_constants
=yes
7635 gold_cv_merge_constants
=no
7637 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7638 CFLAGS
="$save_CFLAGS"
7640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_merge_constants" >&5
7641 $as_echo "$gold_cv_merge_constants" >&6; }
7643 if test "$gold_cv_merge_constants" = yes; then :
7644 MERGE_CONSTANTS_FLAG
=-fmerge-constants
7646 MERGE_CONSTANTS_FLAG
=
7649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread support" >&5
7650 $as_echo_n "checking for thread support... " >&6; }
7651 if ${gold_cv_c_thread+:} false
; then :
7652 $as_echo_n "(cached) " >&6
7654 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7655 /* end confdefs.h. */
7658 if ac_fn_c_try_compile
"$LINENO"; then :
7659 gold_cv_c_thread
=yes
7663 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_c_thread" >&5
7666 $as_echo "$gold_cv_c_thread" >&6; }
7668 if test "$gold_cv_c_thread" = "yes"; then
7677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc >= 2.4" >&5
7678 $as_echo_n "checking for glibc >= 2.4... " >&6; }
7679 if ${gold_cv_lib_glibc24+:} false
; then :
7680 $as_echo_n "(cached) " >&6
7682 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7683 /* end confdefs.h. */
7685 #include <features.h>
7686 #if !defined __GLIBC__
7688 #elif __GLIBC__ < 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ < 4)
7693 if ac_fn_c_try_compile
"$LINENO"; then :
7694 gold_cv_lib_glibc24
=yes
7696 gold_cv_lib_glibc24
=no
7698 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_lib_glibc24" >&5
7701 $as_echo "$gold_cv_lib_glibc24" >&6; }
7703 if test "$gold_cv_lib_glibc24" = "yes"; then
7705 STATIC_TLS_FALSE
='#'
7712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for omp support" >&5
7713 $as_echo_n "checking for omp support... " >&6; }
7714 if ${gold_cv_c_threadprivate+:} false
; then :
7715 $as_echo_n "(cached) " >&6
7717 save_CFLAGS
="$CFLAGS"
7718 CFLAGS
="$CFLAGS -fopenmp"
7719 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7720 /* end confdefs.h. */
7724 #pragma omp threadprivate (i)
7727 if ac_fn_c_try_compile
"$LINENO"; then :
7728 gold_cv_c_threadprivate
=yes
7730 gold_cv_c_threadprivate
=no
7732 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7733 CFLAGS
="$save_CFLAGS"
7735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_c_threadprivate" >&5
7736 $as_echo "$gold_cv_c_threadprivate" >&6; }
7737 if test "$gold_cv_c_threadprivate" = "yes"; then
7739 $as_echo "#define HAVE_OMP_SUPPORT 1" >>confdefs.h
7742 if test "$gold_cv_c_threadprivate" = "yes"; then
7744 OMP_SUPPORT_FALSE
='#'
7746 OMP_SUPPORT_TRUE
='#'
7751 save_CFLAGS
="$CFLAGS"
7752 CFLAGS
="$CFLAGS -Werror -fpic -mtls-dialect=gnu2"
7753 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7754 /* end confdefs.h. */
7763 if ac_fn_c_try_compile
"$LINENO"; then :
7768 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7769 CFLAGS
="$save_CFLAGS"
7770 if test "$have_tls_gnu2" = "yes"; then
7771 TLS_GNU2_DIALECT_TRUE
=
7772 TLS_GNU2_DIALECT_FALSE
='#'
7774 TLS_GNU2_DIALECT_TRUE
='#'
7775 TLS_GNU2_DIALECT_FALSE
=
7779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc >= 2.9" >&5
7780 $as_echo_n "checking for glibc >= 2.9... " >&6; }
7781 if ${gold_cv_lib_glibc29+:} false
; then :
7782 $as_echo_n "(cached) " >&6
7784 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7785 /* end confdefs.h. */
7787 #include <features.h>
7788 #if !defined __GLIBC__
7790 #elif __GLIBC__ < 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ < 9)
7795 if ac_fn_c_try_compile
"$LINENO"; then :
7796 gold_cv_lib_glibc29
=yes
7798 gold_cv_lib_glibc29
=no
7800 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_lib_glibc29" >&5
7803 $as_echo "$gold_cv_lib_glibc29" >&6; }
7805 if test "$gold_cv_lib_glibc29" = "yes"; then
7806 TLS_DESCRIPTORS_TRUE
=
7807 TLS_DESCRIPTORS_FALSE
='#'
7809 TLS_DESCRIPTORS_TRUE
='#'
7810 TLS_DESCRIPTORS_FALSE
=
7814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -frandom-seed support" >&5
7815 $as_echo_n "checking for -frandom-seed support... " >&6; }
7816 if ${gold_cv_c_random_seed+:} false
; then :
7817 $as_echo_n "(cached) " >&6
7819 save_CFLAGS
="$CFLAGS"
7820 CFLAGS
="$CFLAGS -frandom-seed=foo"
7821 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7822 /* end confdefs.h. */
7825 if ac_fn_c_try_compile
"$LINENO"; then :
7826 gold_cv_c_random_seed
=yes
7828 gold_cv_c_random_seed
=no
7830 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7831 CFLAGS
="$save_CFLAGS"
7833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_c_random_seed" >&5
7834 $as_echo "$gold_cv_c_random_seed" >&6; }
7835 if test "$gold_cv_c_random_seed" = "yes"; then
7836 # In Makefile, '$@' will be expanded to be the name of the file
7837 # being built, providing a unique seed for each file.
7838 RANDOM_SEED_CFLAGS
=-frandom-seed=\$@
7842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc ifunc support" >&5
7843 $as_echo_n "checking for glibc ifunc support... " >&6; }
7844 if ${gold_cv_lib_glibc_ifunc+:} false
; then :
7845 $as_echo_n "(cached) " >&6
7847 save_LDFLAGS
="$LDFLAGS"
7848 LDFLAGS
="$LDFLAGS -static"
7849 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7850 /* end confdefs.h. */
7852 #include <features.h>
7853 #if !defined __GLIBC__
7855 #elif __GLIBC__ < 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ < 11)
7858 void func (void) { }
7860 __asm__(".type invoke, %gnu_indirect_function");
7861 typedef void (*funcptr) (void);
7862 funcptr dispatch (void) __asm__ ("invoke");
7863 funcptr dispatch (void) { return &func; }
7873 if ac_fn_c_try_link
"$LINENO"; then :
7875 if ${NM} conftest
$EXEEXT |
grep "__rela\?_iplt_start" >/dev
/null
2>&1; then
7876 gold_cv_lib_glibc_ifunc
=both
7878 gold_cv_lib_glibc_ifunc
=dyn
7881 gold_cv_lib_glibc_ifunc
=no
7883 rm -f core conftest.err conftest.
$ac_objext \
7884 conftest
$ac_exeext conftest.
$ac_ext
7885 LDFLAGS
="$save_LDFLAGS"
7887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_lib_glibc_ifunc" >&5
7888 $as_echo "$gold_cv_lib_glibc_ifunc" >&6; }
7890 if test "$gold_cv_lib_glibc_ifunc" != "no"; then
7898 if test "$gold_cv_lib_glibc_ifunc" = "both"; then
7900 IFUNC_STATIC_FALSE
='#'
7902 IFUNC_STATIC_TRUE
='#'
7908 # Set the 'development' global.
7909 .
$srcdir/..
/bfd
/development.sh
7911 # Set acp_cpp_for_build variable
7912 ac_cpp_for_build
="$CC_FOR_BUILD -E $CPPFLAGS_FOR_BUILD"
7914 # Default set of GCC warnings to enable.
7915 GCC_WARN_CFLAGS
="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
7916 GCC_WARN_CFLAGS_FOR_BUILD
="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
7918 # Add -Wshadow if the compiler is a sufficiently recent version of GCC.
7919 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7920 /* end confdefs.h. */
7923 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7924 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev
/null
2>&1; then :
7927 GCC_WARN_CFLAGS
="$GCC_WARN_CFLAGS -Wshadow"
7932 # Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
7933 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7934 /* end confdefs.h. */
7937 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7938 $EGREP "(^[0-4]$|^__GNUC__$)" >/dev
/null
2>&1; then :
7941 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7942 /* end confdefs.h. */
7945 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7946 $EGREP "^__clang__$" >/dev
/null
2>&1; then :
7947 GCC_WARN_CFLAGS
="$GCC_WARN_CFLAGS -Wstack-usage=262144"
7955 # Set WARN_WRITE_STRINGS if the compiler supports -Wwrite-strings.
7956 WARN_WRITE_STRINGS
=""
7957 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7958 /* end confdefs.h. */
7961 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7962 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev
/null
2>&1; then :
7965 WARN_WRITE_STRINGS
="-Wwrite-strings"
7970 # Verify CC_FOR_BUILD to be compatible with warning flags
7972 # Add -Wshadow if the compiler is a sufficiently recent version of GCC.
7973 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7974 /* end confdefs.h. */
7977 if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
7978 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev
/null
2>&1; then :
7981 GCC_WARN_CFLAGS_FOR_BUILD
="$GCC_WARN_CFLAGS_FOR_BUILD -Wshadow"
7986 # Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
7987 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7988 /* end confdefs.h. */
7991 if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
7992 $EGREP "(^[0-4]$|^__GNUC__$)" >/dev
/null
2>&1; then :
7995 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7996 /* end confdefs.h. */
7999 if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
8000 $EGREP "^__clang__$" >/dev
/null
2>&1; then :
8001 GCC_WARN_CFLAGS_FOR_BUILD
="$GCC_WARN_CFLAGS_FOR_BUILD -Wstack-usage=262144"
8009 # Check whether --enable-werror was given.
8010 if test "${enable_werror+set}" = set; then :
8011 enableval
=$enable_werror; case "${enableval}" in
8012 yes | y
) ERROR_ON_WARNING
="yes" ;;
8013 no | n
) ERROR_ON_WARNING
="no" ;;
8014 *) as_fn_error $?
"bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
8019 # Disable -Wformat by default when using gcc on mingw
8022 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
8023 GCC_WARN_CFLAGS
="$GCC_WARN_CFLAGS -Wno-format"
8024 GCC_WARN_CFLAGS_FOR_BUILD
="$GCC_WARN_CFLAGS_FOR_BUILD -Wno-format"
8030 # Enable -Werror by default when using gcc. Turn it off for releases.
8031 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" -a "$development" = true
; then
8032 ERROR_ON_WARNING
=yes
8036 if test "${ERROR_ON_WARNING}" = yes ; then
8037 GCC_WARN_CFLAGS
="$GCC_WARN_CFLAGS -Werror"
8038 GCC_WARN_CFLAGS_FOR_BUILD
="$GCC_WARN_CFLAGS_FOR_BUILD -Werror"
8039 NO_WERROR
="-Wno-error"
8042 if test "${GCC}" = yes ; then
8043 WARN_CFLAGS
="${GCC_WARN_CFLAGS}"
8044 WARN_CFLAGS_FOR_BUILD
="${GCC_WARN_CFLAGS_FOR_BUILD}"
8047 # Check whether --enable-build-warnings was given.
8048 if test "${enable_build_warnings+set}" = set; then :
8049 enableval
=$enable_build_warnings; case "${enableval}" in
8050 yes) WARN_CFLAGS
="${GCC_WARN_CFLAGS}"
8051 WARN_CFLAGS_FOR_BUILD
="${GCC_WARN_CFLAGS_FOR_BUILD}";;
8052 no
) if test "${GCC}" = yes ; then
8054 WARN_CFLAGS_FOR_BUILD
="-w"
8056 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
8057 WARN_CFLAGS
="${GCC_WARN_CFLAGS} ${t}"
8058 WARN_CFLAGS_FOR_BUILD
="${GCC_WARN_CFLAGS_FOR_BUILD} ${t}";;
8059 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
8060 WARN_CFLAGS
="${t} ${GCC_WARN_CFLAGS}"
8061 WARN_CFLAGS_FOR_BUILD
="${t} ${GCC_WARN_CFLAGS_FOR_BUILD}";;
8062 *) WARN_CFLAGS
=`echo "${enableval}" | sed -e "s/,/ /g"`
8063 WARN_CFLAGS_FOR_BUILD
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
8068 if test x
"$silent" != x
"yes" && test x
"$WARN_CFLAGS" != x
""; then
8069 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
8078 WARN_CXXFLAGS
=`echo ${WARN_CFLAGS} | sed -e 's/-Wstrict-prototypes//' -e 's/-Wmissing-prototypes//' -e 's/-Wshadow//'`
8082 # Check whether --with-gold-ldflags was given.
8083 if test "${with_gold_ldflags+set}" = set; then :
8084 withval
=$with_gold_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
8087 GOLD_LDFLAGS
=$withval
8096 # Check whether --with-gold-ldadd was given.
8097 if test "${with_gold_ldadd+set}" = set; then :
8098 withval
=$with_gold_ldadd; if test "$withval" = "no" -o "$withval" = "yes"; then
8109 LFS_CFLAGS
="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
8112 for ac_header
in sys
/mman.h
8114 ac_fn_c_check_header_mongrel
"$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
8115 if test "x$ac_cv_header_sys_mman_h" = xyes
; then :
8116 cat >>confdefs.h
<<_ACEOF
8117 #define HAVE_SYS_MMAN_H 1
8124 for ac_func
in chsize mmap link
8126 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8127 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
8128 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
8129 cat >>confdefs.h
<<_ACEOF
8130 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8136 ac_fn_c_check_func
"$LINENO" "pread" "ac_cv_func_pread"
8137 if test "x$ac_cv_func_pread" = xyes
; then :
8138 $as_echo "#define HAVE_PREAD 1" >>confdefs.h
8141 case " $LIBOBJS " in
8142 *" pread.$ac_objext "* ) ;;
8143 *) LIBOBJS
="$LIBOBJS pread.$ac_objext"
8149 ac_fn_c_check_func
"$LINENO" "ftruncate" "ac_cv_func_ftruncate"
8150 if test "x$ac_cv_func_ftruncate" = xyes
; then :
8151 $as_echo "#define HAVE_FTRUNCATE 1" >>confdefs.h
8154 case " $LIBOBJS " in
8155 *" ftruncate.$ac_objext "* ) ;;
8156 *) LIBOBJS
="$LIBOBJS ftruncate.$ac_objext"
8162 ac_fn_c_check_func
"$LINENO" "ffsll" "ac_cv_func_ffsll"
8163 if test "x$ac_cv_func_ffsll" = xyes
; then :
8164 $as_echo "#define HAVE_FFSLL 1" >>confdefs.h
8167 case " $LIBOBJS " in
8168 *" ffsll.$ac_objext "* ) ;;
8169 *) LIBOBJS
="$LIBOBJS ffsll.$ac_objext"
8177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking mremap with MREMAP_MAYMOVE" >&5
8178 $as_echo_n "checking mremap with MREMAP_MAYMOVE... " >&6; }
8179 if ${gold_cv_lib_mremap_maymove+:} false
; then :
8180 $as_echo_n "(cached) " >&6
8182 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8183 /* end confdefs.h. */
8186 #include <sys/mman.h>
8187 void f() { mremap (0, 0, 0, MREMAP_MAYMOVE); }
8197 if ac_fn_c_try_link
"$LINENO"; then :
8198 gold_cv_lib_mremap_maymove
=yes
8200 gold_cv_lib_mremap_maymove
=no
8202 rm -f core conftest.err conftest.
$ac_objext \
8203 conftest
$ac_exeext conftest.
$ac_ext
8205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_lib_mremap_maymove" >&5
8206 $as_echo "$gold_cv_lib_mremap_maymove" >&6; }
8207 if test "$gold_cv_lib_mremap_maymove" = "yes"; then
8209 $as_echo "#define HAVE_MREMAP 1" >>confdefs.h
8212 case " $LIBOBJS " in
8213 *" mremap.$ac_objext "* ) ;;
8214 *) LIBOBJS
="$LIBOBJS mremap.$ac_objext"
8220 # Link in zlib if we can. This allows us to write compressed sections.
8222 # Use the system's zlib library.
8223 zlibdir
="-L\$(top_builddir)/../zlib"
8224 zlibinc
="-I\$(top_srcdir)/../zlib"
8226 # Check whether --with-system-zlib was given.
8227 if test "${with_system_zlib+set}" = set; then :
8228 withval
=$with_system_zlib; if test x
$with_system_zlib = xyes
; then
8239 # Check whether --enable-threads was given.
8240 if test "${enable_threads+set}" = set; then :
8241 enableval
=$enable_threads; case "${enableval}" in
8242 yes |
"") threads
=yes ;;
8244 auto
) threads
=auto
;;
8252 if test "$threads" = "yes"; then
8253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
8254 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
8255 if ${ac_cv_path_SED+:} false
; then :
8256 $as_echo_n "(cached) " >&6
8258 ac_script
=s
/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
/
8259 for ac_i
in 1 2 3 4 5 6 7; do
8260 ac_script
="$ac_script$as_nl$ac_script"
8262 echo "$ac_script" 2>/dev
/null |
sed 99q
>conftest.
sed
8263 { ac_script
=; unset ac_script
;}
8264 if test -z "$SED"; then
8265 ac_path_SED_found
=false
8266 # Loop through the user's path and test for each of PROGNAME-LIST
8267 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8271 test -z "$as_dir" && as_dir
=.
8272 for ac_prog
in sed gsed
; do
8273 for ac_exec_ext
in '' $ac_executable_extensions; do
8274 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
8275 as_fn_executable_p
"$ac_path_SED" ||
continue
8276 # Check for GNU ac_path_SED and select it if it is found.
8277 # Check for GNU $ac_path_SED
8278 case `"$ac_path_SED" --version 2>&1` in
8280 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
8283 $as_echo_n 0123456789 >"conftest.in"
8286 cat "conftest.in" "conftest.in" >"conftest.tmp"
8287 mv "conftest.tmp" "conftest.in"
8288 cp "conftest.in" "conftest.nl"
8289 $as_echo '' >> "conftest.nl"
8290 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
8291 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
8292 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
8293 if test $ac_count -gt ${ac_path_SED_max-0}; then
8294 # Best one so far, save it but keep looking for a better one
8295 ac_cv_path_SED
="$ac_path_SED"
8296 ac_path_SED_max
=$ac_count
8298 # 10*(2^10) chars as input seems more than enough
8299 test $ac_count -gt 10 && break
8301 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
8304 $ac_path_SED_found && break 3
8309 if test -z "$ac_cv_path_SED"; then
8310 as_fn_error $?
"no acceptable sed could be found in \$PATH" "$LINENO" 5
8317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
8318 $as_echo "$ac_cv_path_SED" >&6; }
8319 SED
="$ac_cv_path_SED"
8327 ac_cpp
='$CPP $CPPFLAGS'
8328 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8329 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8330 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8334 # We used to check for pthread.h first, but this fails if pthread.h
8335 # requires special compiler flags (e.g. on Tru64 or Sequent).
8336 # It gets checked for in the link test anyway.
8338 # First of all, check if the user has set any of the PTHREAD_LIBS,
8339 # etcetera environment variables, and if threads linking works using
8341 if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
8342 ax_pthread_save_CC
="$CC"
8343 ax_pthread_save_CFLAGS
="$CFLAGS"
8344 ax_pthread_save_LIBS
="$LIBS"
8345 if test "x$PTHREAD_CC" != "x"; then :
8348 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
8349 LIBS
="$PTHREAD_LIBS $LIBS"
8350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
8351 $as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
8352 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8353 /* end confdefs.h. */
8355 /* Override any GCC internal prototype to avoid an error.
8356 Use char because int might match the return type of a GCC
8357 builtin and then its argument prototype would still apply. */
8361 char pthread_join ();
8365 return pthread_join ();
8370 if ac_fn_c_try_link
"$LINENO"; then :
8373 rm -f core conftest.err conftest.
$ac_objext \
8374 conftest
$ac_exeext conftest.
$ac_ext
8375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8376 $as_echo "$ax_pthread_ok" >&6; }
8377 if test "x$ax_pthread_ok" = "xno"; then
8381 CC
="$ax_pthread_save_CC"
8382 CFLAGS
="$ax_pthread_save_CFLAGS"
8383 LIBS
="$ax_pthread_save_LIBS"
8386 # We must check for the threads library under a number of different
8387 # names; the ordering is very important because some systems
8388 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8389 # libraries is broken (non-POSIX).
8391 # Create a list of thread flags to try. Items starting with a "-" are
8392 # C compiler flags, and other items are library names, except for "none"
8393 # which indicates that we try without any flags at all, and "pthread-config"
8394 # which is a program returning the flags for the Pth emulation library.
8396 ax_pthread_flags
="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
8398 # The ordering *is* (sometimes) important. Some notes on the
8399 # individual items follow:
8401 # pthreads: AIX (must check this before -lpthread)
8402 # none: in case threads are in libc; should be tried before -Kthread and
8403 # other compiler flags to prevent continual compiler warnings
8404 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8405 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
8406 # (Note: HP C rejects this with "bad form for `-t' option")
8407 # -pthreads: Solaris/gcc (Note: HP C also rejects)
8408 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8409 # doesn't hurt to check since this sometimes defines pthreads and
8410 # -D_REENTRANT too), HP C (must be checked before -lpthread, which
8411 # is present but should not be used directly; and before -mthreads,
8412 # because the compiler interprets this as "-mt" + "-hreads")
8413 # -mthreads: Mingw32/gcc, Lynx/gcc
8414 # pthread: Linux, etcetera
8415 # --thread-safe: KAI C++
8416 # pthread-config: use pthread-config program (for GNU Pth library)
8422 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8423 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8425 ax_pthread_flags
="-kthread lthread $ax_pthread_flags"
8430 # From the cc(1) man page: "[-mt] Sets various -D flags to enable
8431 # multi-threading and also sets -lpthread."
8433 ax_pthread_flags
="-mt -pthread pthread $ax_pthread_flags"
8438 # IBM z/OS requires a feature-test macro to be defined in order to
8439 # enable POSIX threads at all, so give the user a hint if this is
8440 # not set. (We don't define these ourselves, as they can affect
8441 # other portions of the system API in unpredictable ways.)
8443 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8444 /* end confdefs.h. */
8446 # if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
8447 AX_PTHREAD_ZOS_MISSING
8451 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8452 $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev
/null
2>&1; then :
8453 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
8454 $as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
8462 # On Solaris (at least, for some versions), libc contains stubbed
8463 # (non-functional) versions of the pthreads routines, so link-based
8464 # tests will erroneously succeed. (N.B.: The stubs are missing
8465 # pthread_cleanup_push, or rather a function called by this macro,
8466 # so we could check for that, but who knows whether they'll stub
8467 # that too in a future libc.) So we'll check first for the
8468 # standard Solaris way of linking pthreads (-mt -lpthread).
8470 ax_pthread_flags
="-mt,pthread pthread $ax_pthread_flags"
8474 # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
8476 if test "x$GCC" = "xyes"; then :
8477 ax_pthread_flags
="-pthread -pthreads $ax_pthread_flags"
8480 # The presence of a feature test macro requesting re-entrant function
8481 # definitions is, on some systems, a strong hint that pthreads support is
8485 darwin
* | hpux
* | linux
* | osf
* | solaris
*)
8486 ax_pthread_check_macro
="_REENTRANT"
8490 ax_pthread_check_macro
="_THREAD_SAFE"
8494 ax_pthread_check_macro
="--"
8497 if test "x$ax_pthread_check_macro" = "x--"; then :
8498 ax_pthread_check_cond
=0
8500 ax_pthread_check_cond
="!defined($ax_pthread_check_macro)"
8503 # Are we compiling with Clang?
8505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
8506 $as_echo_n "checking whether $CC is Clang... " >&6; }
8507 if ${ax_cv_PTHREAD_CLANG+:} false
; then :
8508 $as_echo_n "(cached) " >&6
8510 ax_cv_PTHREAD_CLANG
=no
8511 # Note that Autoconf sets GCC=yes for Clang as well as GCC
8512 if test "x$GCC" = "xyes"; then
8513 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8514 /* end confdefs.h. */
8515 /* Note: Clang 2.7 lacks __clang_[a-z]+__ */
8516 # if defined(__clang__) && defined(__llvm__)
8517 AX_PTHREAD_CC_IS_CLANG
8521 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8522 $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev
/null
2>&1; then :
8523 ax_cv_PTHREAD_CLANG
=yes
8530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
8531 $as_echo "$ax_cv_PTHREAD_CLANG" >&6; }
8532 ax_pthread_clang
="$ax_cv_PTHREAD_CLANG"
8534 ax_pthread_clang_warning
=no
8536 # Clang needs special handling, because older versions handle the -pthread
8537 # option in a rather... idiosyncratic way
8539 if test "x$ax_pthread_clang" = "xyes"; then
8541 # Clang takes -pthread; it has never supported any other flag
8543 # (Note 1: This will need to be revisited if a system that Clang
8544 # supports has POSIX threads in a separate library. This tends not
8545 # to be the way of modern systems, but it's conceivable.)
8547 # (Note 2: On some systems, notably Darwin, -pthread is not needed
8548 # to get POSIX threads support; the API is always present and
8549 # active. We could reasonably leave PTHREAD_CFLAGS empty. But
8550 # -pthread does define _REENTRANT, and while the Darwin headers
8551 # ignore this macro, third-party headers might not.)
8553 PTHREAD_CFLAGS
="-pthread"
8558 # However, older versions of Clang make a point of warning the user
8559 # that, in an invocation where only linking and no compilation is
8560 # taking place, the -pthread option has no effect ("argument unused
8561 # during compilation"). They expect -pthread to be passed in only
8562 # when source code is being compiled.
8564 # Problem is, this is at odds with the way Automake and most other
8565 # C build frameworks function, which is that the same flags used in
8566 # compilation (CFLAGS) are also used in linking. Many systems
8567 # supported by AX_PTHREAD require exactly this for POSIX threads
8568 # support, and in fact it is often not straightforward to specify a
8569 # flag that is used only in the compilation phase and not in
8570 # linking. Such a scenario is extremely rare in practice.
8572 # Even though use of the -pthread flag in linking would only print
8573 # a warning, this can be a nuisance for well-run software projects
8574 # that build with -Werror. So if the active version of Clang has
8575 # this misfeature, we search for an option to squash it.
8577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
8578 $as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
8579 if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false
; then :
8580 $as_echo_n "(cached) " >&6
8582 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG
=unknown
8583 # Create an alternate version of $ac_link that compiles and
8584 # links in two steps (.c -> .o, .o -> exe) instead of one
8585 # (.c -> exe), because the warning occurs only in the second
8587 ax_pthread_save_ac_link
="$ac_link"
8588 ax_pthread_sed
='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
8589 ax_pthread_link_step
=`$as_echo "$ac_link" | sed "$ax_pthread_sed"`
8590 ax_pthread_2step_ac_link
="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
8591 ax_pthread_save_CFLAGS
="$CFLAGS"
8592 for ax_pthread_try
in '' -Qunused-arguments -Wno-unused-command-line-argument unknown
; do
8593 if test "x$ax_pthread_try" = "xunknown"; then :
8596 CFLAGS
="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
8597 ac_link
="$ax_pthread_save_ac_link"
8598 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8599 /* end confdefs.h. */
8600 int main(void){return 0;}
8602 if ac_fn_c_try_link
"$LINENO"; then :
8603 ac_link
="$ax_pthread_2step_ac_link"
8604 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8605 /* end confdefs.h. */
8606 int main(void){return 0;}
8608 if ac_fn_c_try_link
"$LINENO"; then :
8611 rm -f core conftest.err conftest.
$ac_objext \
8612 conftest
$ac_exeext conftest.
$ac_ext
8615 rm -f core conftest.err conftest.
$ac_objext \
8616 conftest
$ac_exeext conftest.
$ac_ext
8618 ac_link
="$ax_pthread_save_ac_link"
8619 CFLAGS
="$ax_pthread_save_CFLAGS"
8620 if test "x$ax_pthread_try" = "x"; then :
8623 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG
="$ax_pthread_try"
8626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
8627 $as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
8629 case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
8631 *) PTHREAD_CFLAGS
="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
8634 fi # $ax_pthread_clang = yes
8636 if test "x$ax_pthread_ok" = "xno"; then
8637 for ax_pthread_try_flag
in $ax_pthread_flags; do
8639 case $ax_pthread_try_flag in
8641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
8642 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
8646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
8647 $as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
8648 PTHREAD_CFLAGS
="-mt"
8649 PTHREAD_LIBS
="-lpthread"
8653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
8654 $as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
8655 PTHREAD_CFLAGS
="$ax_pthread_try_flag"
8659 # Extract the first word of "pthread-config", so it can be a program name with args.
8660 set dummy pthread-config
; ac_word
=$2
8661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8662 $as_echo_n "checking for $ac_word... " >&6; }
8663 if ${ac_cv_prog_ax_pthread_config+:} false
; then :
8664 $as_echo_n "(cached) " >&6
8666 if test -n "$ax_pthread_config"; then
8667 ac_cv_prog_ax_pthread_config
="$ax_pthread_config" # Let the user override the test.
8669 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8673 test -z "$as_dir" && as_dir
=.
8674 for ac_exec_ext
in '' $ac_executable_extensions; do
8675 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8676 ac_cv_prog_ax_pthread_config
="yes"
8677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8684 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config
="no"
8687 ax_pthread_config
=$ac_cv_prog_ax_pthread_config
8688 if test -n "$ax_pthread_config"; then
8689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
8690 $as_echo "$ax_pthread_config" >&6; }
8692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8693 $as_echo "no" >&6; }
8697 if test "x$ax_pthread_config" = "xno"; then :
8700 PTHREAD_CFLAGS
="`pthread-config --cflags`"
8701 PTHREAD_LIBS
="`pthread-config --ldflags` `pthread-config --libs`"
8705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
8706 $as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
8707 PTHREAD_LIBS
="-l$ax_pthread_try_flag"
8711 ax_pthread_save_CFLAGS
="$CFLAGS"
8712 ax_pthread_save_LIBS
="$LIBS"
8713 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
8714 LIBS
="$PTHREAD_LIBS $LIBS"
8716 # Check for various functions. We must include pthread.h,
8717 # since some functions may be macros. (On the Sequent, we
8718 # need a special flag -Kthread to make this header compile.)
8719 # We check for pthread_join because it is in -lpthread on IRIX
8720 # while pthread_create is in libc. We check for pthread_attr_init
8721 # due to DEC craziness with -lpthreads. We check for
8722 # pthread_cleanup_push because it is one of the few pthread
8723 # functions on Solaris that doesn't have a non-functional libc stub.
8724 # We try pthread_create on general principles.
8726 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8727 /* end confdefs.h. */
8728 #include <pthread.h>
8729 # if $ax_pthread_check_cond
8730 # error "$ax_pthread_check_macro must be defined"
8732 static void routine(void *a) { a = 0; }
8733 static void *start_routine(void *a) { return a; }
8737 pthread_t th; pthread_attr_t attr;
8738 pthread_create(&th, 0, start_routine, 0);
8739 pthread_join(th, 0);
8740 pthread_attr_init(&attr);
8741 pthread_cleanup_push(routine, 0);
8742 pthread_cleanup_pop(0) /* ; */
8747 if ac_fn_c_try_link
"$LINENO"; then :
8750 rm -f core conftest.err conftest.
$ac_objext \
8751 conftest
$ac_exeext conftest.
$ac_ext
8753 CFLAGS
="$ax_pthread_save_CFLAGS"
8754 LIBS
="$ax_pthread_save_LIBS"
8756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8757 $as_echo "$ax_pthread_ok" >&6; }
8758 if test "x$ax_pthread_ok" = "xyes"; then :
8767 # Various other checks:
8768 if test "x$ax_pthread_ok" = "xyes"; then
8769 ax_pthread_save_CFLAGS
="$CFLAGS"
8770 ax_pthread_save_LIBS
="$LIBS"
8771 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
8772 LIBS
="$PTHREAD_LIBS $LIBS"
8774 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
8775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
8776 $as_echo_n "checking for joinable pthread attribute... " >&6; }
8777 if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false
; then :
8778 $as_echo_n "(cached) " >&6
8780 ax_cv_PTHREAD_JOINABLE_ATTR
=unknown
8781 for ax_pthread_attr
in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED
; do
8782 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8783 /* end confdefs.h. */
8784 #include <pthread.h>
8788 int attr = $ax_pthread_attr; return attr /* ; */
8793 if ac_fn_c_try_link
"$LINENO"; then :
8794 ax_cv_PTHREAD_JOINABLE_ATTR
=$ax_pthread_attr; break
8796 rm -f core conftest.err conftest.
$ac_objext \
8797 conftest
$ac_exeext conftest.
$ac_ext
8801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
8802 $as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
8803 if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
8804 test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
8805 test "x$ax_pthread_joinable_attr_defined" != "xyes"; then :
8807 cat >>confdefs.h
<<_ACEOF
8808 #define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
8811 ax_pthread_joinable_attr_defined
=yes
8815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
8816 $as_echo_n "checking whether more special flags are required for pthreads... " >&6; }
8817 if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false
; then :
8818 $as_echo_n "(cached) " >&6
8820 ax_cv_PTHREAD_SPECIAL_FLAGS
=no
8823 ax_cv_PTHREAD_SPECIAL_FLAGS
="-D_POSIX_PTHREAD_SEMANTICS"
8828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
8829 $as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
8830 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
8831 test "x$ax_pthread_special_flags_added" != "xyes"; then :
8832 PTHREAD_CFLAGS
="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
8833 ax_pthread_special_flags_added
=yes
8836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
8837 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
8838 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false
; then :
8839 $as_echo_n "(cached) " >&6
8841 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8842 /* end confdefs.h. */
8843 #include <pthread.h>
8847 int i = PTHREAD_PRIO_INHERIT;
8852 if ac_fn_c_try_link
"$LINENO"; then :
8853 ax_cv_PTHREAD_PRIO_INHERIT
=yes
8855 ax_cv_PTHREAD_PRIO_INHERIT
=no
8857 rm -f core conftest.err conftest.
$ac_objext \
8858 conftest
$ac_exeext conftest.
$ac_ext
8861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
8862 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
8863 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
8864 test "x$ax_pthread_prio_inherit_defined" != "xyes"; then :
8866 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
8868 ax_pthread_prio_inherit_defined
=yes
8872 CFLAGS
="$ax_pthread_save_CFLAGS"
8873 LIBS
="$ax_pthread_save_LIBS"
8875 # More AIX lossage: compile with *_r variant
8876 if test "x$GCC" != "xyes"; then
8880 x
*/c89|x
*/c89_128|x
*/c99|x
*/c99_128|x
*/cc|x
*/cc128|x
*/xlc|x
*/xlc_v6|x
*/xlc128|x
*/xlc128_v6
) :
8881 #handle absolute path differently from PATH based program lookup
8884 if as_fn_executable_p
${CC}_r
; then :
8885 PTHREAD_CC
="${CC}_r"
8888 for ac_prog
in ${CC}_r
8890 # Extract the first word of "$ac_prog", so it can be a program name with args.
8891 set dummy
$ac_prog; ac_word
=$2
8892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8893 $as_echo_n "checking for $ac_word... " >&6; }
8894 if ${ac_cv_prog_PTHREAD_CC+:} false
; then :
8895 $as_echo_n "(cached) " >&6
8897 if test -n "$PTHREAD_CC"; then
8898 ac_cv_prog_PTHREAD_CC
="$PTHREAD_CC" # Let the user override the test.
8900 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8904 test -z "$as_dir" && as_dir
=.
8905 for ac_exec_ext
in '' $ac_executable_extensions; do
8906 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8907 ac_cv_prog_PTHREAD_CC
="$ac_prog"
8908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8917 PTHREAD_CC
=$ac_cv_prog_PTHREAD_CC
8918 if test -n "$PTHREAD_CC"; then
8919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
8920 $as_echo "$PTHREAD_CC" >&6; }
8922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8923 $as_echo "no" >&6; }
8927 test -n "$PTHREAD_CC" && break
8929 test -n "$PTHREAD_CC" || PTHREAD_CC
="$CC"
8940 test -n "$PTHREAD_CC" || PTHREAD_CC
="$CC"
8946 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
8947 if test "x$ax_pthread_ok" = "xyes"; then
8952 as_fn_error $?
"pthread not found" "$LINENO" 5
8955 ac_cpp
='$CPP $CPPFLAGS'
8956 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8957 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8958 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8961 elif test "$threads" = "auto"; then
8967 ac_cpp
='$CPP $CPPFLAGS'
8968 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8969 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8970 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8974 # We used to check for pthread.h first, but this fails if pthread.h
8975 # requires special compiler flags (e.g. on Tru64 or Sequent).
8976 # It gets checked for in the link test anyway.
8978 # First of all, check if the user has set any of the PTHREAD_LIBS,
8979 # etcetera environment variables, and if threads linking works using
8981 if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
8982 ax_pthread_save_CC
="$CC"
8983 ax_pthread_save_CFLAGS
="$CFLAGS"
8984 ax_pthread_save_LIBS
="$LIBS"
8985 if test "x$PTHREAD_CC" != "x"; then :
8988 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
8989 LIBS
="$PTHREAD_LIBS $LIBS"
8990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
8991 $as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
8992 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8993 /* end confdefs.h. */
8995 /* Override any GCC internal prototype to avoid an error.
8996 Use char because int might match the return type of a GCC
8997 builtin and then its argument prototype would still apply. */
9001 char pthread_join ();
9005 return pthread_join ();
9010 if ac_fn_c_try_link
"$LINENO"; then :
9013 rm -f core conftest.err conftest.
$ac_objext \
9014 conftest
$ac_exeext conftest.
$ac_ext
9015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9016 $as_echo "$ax_pthread_ok" >&6; }
9017 if test "x$ax_pthread_ok" = "xno"; then
9021 CC
="$ax_pthread_save_CC"
9022 CFLAGS
="$ax_pthread_save_CFLAGS"
9023 LIBS
="$ax_pthread_save_LIBS"
9026 # We must check for the threads library under a number of different
9027 # names; the ordering is very important because some systems
9028 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
9029 # libraries is broken (non-POSIX).
9031 # Create a list of thread flags to try. Items starting with a "-" are
9032 # C compiler flags, and other items are library names, except for "none"
9033 # which indicates that we try without any flags at all, and "pthread-config"
9034 # which is a program returning the flags for the Pth emulation library.
9036 ax_pthread_flags
="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
9038 # The ordering *is* (sometimes) important. Some notes on the
9039 # individual items follow:
9041 # pthreads: AIX (must check this before -lpthread)
9042 # none: in case threads are in libc; should be tried before -Kthread and
9043 # other compiler flags to prevent continual compiler warnings
9044 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
9045 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
9046 # (Note: HP C rejects this with "bad form for `-t' option")
9047 # -pthreads: Solaris/gcc (Note: HP C also rejects)
9048 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
9049 # doesn't hurt to check since this sometimes defines pthreads and
9050 # -D_REENTRANT too), HP C (must be checked before -lpthread, which
9051 # is present but should not be used directly; and before -mthreads,
9052 # because the compiler interprets this as "-mt" + "-hreads")
9053 # -mthreads: Mingw32/gcc, Lynx/gcc
9054 # pthread: Linux, etcetera
9055 # --thread-safe: KAI C++
9056 # pthread-config: use pthread-config program (for GNU Pth library)
9062 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
9063 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
9065 ax_pthread_flags
="-kthread lthread $ax_pthread_flags"
9070 # From the cc(1) man page: "[-mt] Sets various -D flags to enable
9071 # multi-threading and also sets -lpthread."
9073 ax_pthread_flags
="-mt -pthread pthread $ax_pthread_flags"
9078 # IBM z/OS requires a feature-test macro to be defined in order to
9079 # enable POSIX threads at all, so give the user a hint if this is
9080 # not set. (We don't define these ourselves, as they can affect
9081 # other portions of the system API in unpredictable ways.)
9083 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9084 /* end confdefs.h. */
9086 # if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
9087 AX_PTHREAD_ZOS_MISSING
9091 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9092 $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev
/null
2>&1; then :
9093 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
9094 $as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
9102 # On Solaris (at least, for some versions), libc contains stubbed
9103 # (non-functional) versions of the pthreads routines, so link-based
9104 # tests will erroneously succeed. (N.B.: The stubs are missing
9105 # pthread_cleanup_push, or rather a function called by this macro,
9106 # so we could check for that, but who knows whether they'll stub
9107 # that too in a future libc.) So we'll check first for the
9108 # standard Solaris way of linking pthreads (-mt -lpthread).
9110 ax_pthread_flags
="-mt,pthread pthread $ax_pthread_flags"
9114 # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
9116 if test "x$GCC" = "xyes"; then :
9117 ax_pthread_flags
="-pthread -pthreads $ax_pthread_flags"
9120 # The presence of a feature test macro requesting re-entrant function
9121 # definitions is, on some systems, a strong hint that pthreads support is
9125 darwin
* | hpux
* | linux
* | osf
* | solaris
*)
9126 ax_pthread_check_macro
="_REENTRANT"
9130 ax_pthread_check_macro
="_THREAD_SAFE"
9134 ax_pthread_check_macro
="--"
9137 if test "x$ax_pthread_check_macro" = "x--"; then :
9138 ax_pthread_check_cond
=0
9140 ax_pthread_check_cond
="!defined($ax_pthread_check_macro)"
9143 # Are we compiling with Clang?
9145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
9146 $as_echo_n "checking whether $CC is Clang... " >&6; }
9147 if ${ax_cv_PTHREAD_CLANG+:} false
; then :
9148 $as_echo_n "(cached) " >&6
9150 ax_cv_PTHREAD_CLANG
=no
9151 # Note that Autoconf sets GCC=yes for Clang as well as GCC
9152 if test "x$GCC" = "xyes"; then
9153 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9154 /* end confdefs.h. */
9155 /* Note: Clang 2.7 lacks __clang_[a-z]+__ */
9156 # if defined(__clang__) && defined(__llvm__)
9157 AX_PTHREAD_CC_IS_CLANG
9161 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9162 $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev
/null
2>&1; then :
9163 ax_cv_PTHREAD_CLANG
=yes
9170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
9171 $as_echo "$ax_cv_PTHREAD_CLANG" >&6; }
9172 ax_pthread_clang
="$ax_cv_PTHREAD_CLANG"
9174 ax_pthread_clang_warning
=no
9176 # Clang needs special handling, because older versions handle the -pthread
9177 # option in a rather... idiosyncratic way
9179 if test "x$ax_pthread_clang" = "xyes"; then
9181 # Clang takes -pthread; it has never supported any other flag
9183 # (Note 1: This will need to be revisited if a system that Clang
9184 # supports has POSIX threads in a separate library. This tends not
9185 # to be the way of modern systems, but it's conceivable.)
9187 # (Note 2: On some systems, notably Darwin, -pthread is not needed
9188 # to get POSIX threads support; the API is always present and
9189 # active. We could reasonably leave PTHREAD_CFLAGS empty. But
9190 # -pthread does define _REENTRANT, and while the Darwin headers
9191 # ignore this macro, third-party headers might not.)
9193 PTHREAD_CFLAGS
="-pthread"
9198 # However, older versions of Clang make a point of warning the user
9199 # that, in an invocation where only linking and no compilation is
9200 # taking place, the -pthread option has no effect ("argument unused
9201 # during compilation"). They expect -pthread to be passed in only
9202 # when source code is being compiled.
9204 # Problem is, this is at odds with the way Automake and most other
9205 # C build frameworks function, which is that the same flags used in
9206 # compilation (CFLAGS) are also used in linking. Many systems
9207 # supported by AX_PTHREAD require exactly this for POSIX threads
9208 # support, and in fact it is often not straightforward to specify a
9209 # flag that is used only in the compilation phase and not in
9210 # linking. Such a scenario is extremely rare in practice.
9212 # Even though use of the -pthread flag in linking would only print
9213 # a warning, this can be a nuisance for well-run software projects
9214 # that build with -Werror. So if the active version of Clang has
9215 # this misfeature, we search for an option to squash it.
9217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
9218 $as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
9219 if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false
; then :
9220 $as_echo_n "(cached) " >&6
9222 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG
=unknown
9223 # Create an alternate version of $ac_link that compiles and
9224 # links in two steps (.c -> .o, .o -> exe) instead of one
9225 # (.c -> exe), because the warning occurs only in the second
9227 ax_pthread_save_ac_link
="$ac_link"
9228 ax_pthread_sed
='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
9229 ax_pthread_link_step
=`$as_echo "$ac_link" | sed "$ax_pthread_sed"`
9230 ax_pthread_2step_ac_link
="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
9231 ax_pthread_save_CFLAGS
="$CFLAGS"
9232 for ax_pthread_try
in '' -Qunused-arguments -Wno-unused-command-line-argument unknown
; do
9233 if test "x$ax_pthread_try" = "xunknown"; then :
9236 CFLAGS
="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
9237 ac_link
="$ax_pthread_save_ac_link"
9238 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9239 /* end confdefs.h. */
9240 int main(void){return 0;}
9242 if ac_fn_c_try_link
"$LINENO"; then :
9243 ac_link
="$ax_pthread_2step_ac_link"
9244 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9245 /* end confdefs.h. */
9246 int main(void){return 0;}
9248 if ac_fn_c_try_link
"$LINENO"; then :
9251 rm -f core conftest.err conftest.
$ac_objext \
9252 conftest
$ac_exeext conftest.
$ac_ext
9255 rm -f core conftest.err conftest.
$ac_objext \
9256 conftest
$ac_exeext conftest.
$ac_ext
9258 ac_link
="$ax_pthread_save_ac_link"
9259 CFLAGS
="$ax_pthread_save_CFLAGS"
9260 if test "x$ax_pthread_try" = "x"; then :
9263 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG
="$ax_pthread_try"
9266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
9267 $as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
9269 case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
9271 *) PTHREAD_CFLAGS
="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
9274 fi # $ax_pthread_clang = yes
9276 if test "x$ax_pthread_ok" = "xno"; then
9277 for ax_pthread_try_flag
in $ax_pthread_flags; do
9279 case $ax_pthread_try_flag in
9281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
9282 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
9286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
9287 $as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
9288 PTHREAD_CFLAGS
="-mt"
9289 PTHREAD_LIBS
="-lpthread"
9293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
9294 $as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
9295 PTHREAD_CFLAGS
="$ax_pthread_try_flag"
9299 # Extract the first word of "pthread-config", so it can be a program name with args.
9300 set dummy pthread-config
; ac_word
=$2
9301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9302 $as_echo_n "checking for $ac_word... " >&6; }
9303 if ${ac_cv_prog_ax_pthread_config+:} false
; then :
9304 $as_echo_n "(cached) " >&6
9306 if test -n "$ax_pthread_config"; then
9307 ac_cv_prog_ax_pthread_config
="$ax_pthread_config" # Let the user override the test.
9309 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9313 test -z "$as_dir" && as_dir
=.
9314 for ac_exec_ext
in '' $ac_executable_extensions; do
9315 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9316 ac_cv_prog_ax_pthread_config
="yes"
9317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9324 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config
="no"
9327 ax_pthread_config
=$ac_cv_prog_ax_pthread_config
9328 if test -n "$ax_pthread_config"; then
9329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
9330 $as_echo "$ax_pthread_config" >&6; }
9332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9333 $as_echo "no" >&6; }
9337 if test "x$ax_pthread_config" = "xno"; then :
9340 PTHREAD_CFLAGS
="`pthread-config --cflags`"
9341 PTHREAD_LIBS
="`pthread-config --ldflags` `pthread-config --libs`"
9345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
9346 $as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
9347 PTHREAD_LIBS
="-l$ax_pthread_try_flag"
9351 ax_pthread_save_CFLAGS
="$CFLAGS"
9352 ax_pthread_save_LIBS
="$LIBS"
9353 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
9354 LIBS
="$PTHREAD_LIBS $LIBS"
9356 # Check for various functions. We must include pthread.h,
9357 # since some functions may be macros. (On the Sequent, we
9358 # need a special flag -Kthread to make this header compile.)
9359 # We check for pthread_join because it is in -lpthread on IRIX
9360 # while pthread_create is in libc. We check for pthread_attr_init
9361 # due to DEC craziness with -lpthreads. We check for
9362 # pthread_cleanup_push because it is one of the few pthread
9363 # functions on Solaris that doesn't have a non-functional libc stub.
9364 # We try pthread_create on general principles.
9366 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9367 /* end confdefs.h. */
9368 #include <pthread.h>
9369 # if $ax_pthread_check_cond
9370 # error "$ax_pthread_check_macro must be defined"
9372 static void routine(void *a) { a = 0; }
9373 static void *start_routine(void *a) { return a; }
9377 pthread_t th; pthread_attr_t attr;
9378 pthread_create(&th, 0, start_routine, 0);
9379 pthread_join(th, 0);
9380 pthread_attr_init(&attr);
9381 pthread_cleanup_push(routine, 0);
9382 pthread_cleanup_pop(0) /* ; */
9387 if ac_fn_c_try_link
"$LINENO"; then :
9390 rm -f core conftest.err conftest.
$ac_objext \
9391 conftest
$ac_exeext conftest.
$ac_ext
9393 CFLAGS
="$ax_pthread_save_CFLAGS"
9394 LIBS
="$ax_pthread_save_LIBS"
9396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9397 $as_echo "$ax_pthread_ok" >&6; }
9398 if test "x$ax_pthread_ok" = "xyes"; then :
9407 # Various other checks:
9408 if test "x$ax_pthread_ok" = "xyes"; then
9409 ax_pthread_save_CFLAGS
="$CFLAGS"
9410 ax_pthread_save_LIBS
="$LIBS"
9411 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
9412 LIBS
="$PTHREAD_LIBS $LIBS"
9414 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
9415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
9416 $as_echo_n "checking for joinable pthread attribute... " >&6; }
9417 if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false
; then :
9418 $as_echo_n "(cached) " >&6
9420 ax_cv_PTHREAD_JOINABLE_ATTR
=unknown
9421 for ax_pthread_attr
in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED
; do
9422 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9423 /* end confdefs.h. */
9424 #include <pthread.h>
9428 int attr = $ax_pthread_attr; return attr /* ; */
9433 if ac_fn_c_try_link
"$LINENO"; then :
9434 ax_cv_PTHREAD_JOINABLE_ATTR
=$ax_pthread_attr; break
9436 rm -f core conftest.err conftest.
$ac_objext \
9437 conftest
$ac_exeext conftest.
$ac_ext
9441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
9442 $as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
9443 if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
9444 test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
9445 test "x$ax_pthread_joinable_attr_defined" != "xyes"; then :
9447 cat >>confdefs.h
<<_ACEOF
9448 #define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
9451 ax_pthread_joinable_attr_defined
=yes
9455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
9456 $as_echo_n "checking whether more special flags are required for pthreads... " >&6; }
9457 if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false
; then :
9458 $as_echo_n "(cached) " >&6
9460 ax_cv_PTHREAD_SPECIAL_FLAGS
=no
9463 ax_cv_PTHREAD_SPECIAL_FLAGS
="-D_POSIX_PTHREAD_SEMANTICS"
9468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
9469 $as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
9470 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
9471 test "x$ax_pthread_special_flags_added" != "xyes"; then :
9472 PTHREAD_CFLAGS
="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
9473 ax_pthread_special_flags_added
=yes
9476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
9477 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
9478 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false
; then :
9479 $as_echo_n "(cached) " >&6
9481 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9482 /* end confdefs.h. */
9483 #include <pthread.h>
9487 int i = PTHREAD_PRIO_INHERIT;
9492 if ac_fn_c_try_link
"$LINENO"; then :
9493 ax_cv_PTHREAD_PRIO_INHERIT
=yes
9495 ax_cv_PTHREAD_PRIO_INHERIT
=no
9497 rm -f core conftest.err conftest.
$ac_objext \
9498 conftest
$ac_exeext conftest.
$ac_ext
9501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
9502 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
9503 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
9504 test "x$ax_pthread_prio_inherit_defined" != "xyes"; then :
9506 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
9508 ax_pthread_prio_inherit_defined
=yes
9512 CFLAGS
="$ax_pthread_save_CFLAGS"
9513 LIBS
="$ax_pthread_save_LIBS"
9515 # More AIX lossage: compile with *_r variant
9516 if test "x$GCC" != "xyes"; then
9520 x
*/c89|x
*/c89_128|x
*/c99|x
*/c99_128|x
*/cc|x
*/cc128|x
*/xlc|x
*/xlc_v6|x
*/xlc128|x
*/xlc128_v6
) :
9521 #handle absolute path differently from PATH based program lookup
9524 if as_fn_executable_p
${CC}_r
; then :
9525 PTHREAD_CC
="${CC}_r"
9528 for ac_prog
in ${CC}_r
9530 # Extract the first word of "$ac_prog", so it can be a program name with args.
9531 set dummy
$ac_prog; ac_word
=$2
9532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9533 $as_echo_n "checking for $ac_word... " >&6; }
9534 if ${ac_cv_prog_PTHREAD_CC+:} false
; then :
9535 $as_echo_n "(cached) " >&6
9537 if test -n "$PTHREAD_CC"; then
9538 ac_cv_prog_PTHREAD_CC
="$PTHREAD_CC" # Let the user override the test.
9540 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9544 test -z "$as_dir" && as_dir
=.
9545 for ac_exec_ext
in '' $ac_executable_extensions; do
9546 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9547 ac_cv_prog_PTHREAD_CC
="$ac_prog"
9548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9557 PTHREAD_CC
=$ac_cv_prog_PTHREAD_CC
9558 if test -n "$PTHREAD_CC"; then
9559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
9560 $as_echo "$PTHREAD_CC" >&6; }
9562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9563 $as_echo "no" >&6; }
9567 test -n "$PTHREAD_CC" && break
9569 test -n "$PTHREAD_CC" || PTHREAD_CC
="$CC"
9580 test -n "$PTHREAD_CC" || PTHREAD_CC
="$CC"
9586 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
9587 if test "x$ax_pthread_ok" = "xyes"; then
9595 ac_cpp
='$CPP $CPPFLAGS'
9596 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9597 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9598 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
9603 if test "$threads" = "yes"; then
9605 $as_echo "#define ENABLE_THREADS 1" >>confdefs.h
9608 if test "$threads" = "yes"; then
9617 # Used to validate --package-metadata= input. Disabled by default.
9618 # Check whether --enable-jansson was given.
9619 if test "${enable_jansson+set}" = set; then :
9620 enableval
=$enable_jansson; enable_jansson
=$enableval
9626 if test "x$enable_jansson" != "xno"; then
9634 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
9635 if test -n "$ac_tool_prefix"; then
9636 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
9637 set dummy
${ac_tool_prefix}pkg-config
; ac_word
=$2
9638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9639 $as_echo_n "checking for $ac_word... " >&6; }
9640 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
9641 $as_echo_n "(cached) " >&6
9645 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
9648 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9652 test -z "$as_dir" && as_dir
=.
9653 for ac_exec_ext
in '' $ac_executable_extensions; do
9654 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9655 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
9656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9666 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
9667 if test -n "$PKG_CONFIG"; then
9668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9669 $as_echo "$PKG_CONFIG" >&6; }
9671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9672 $as_echo "no" >&6; }
9677 if test -z "$ac_cv_path_PKG_CONFIG"; then
9678 ac_pt_PKG_CONFIG
=$PKG_CONFIG
9679 # Extract the first word of "pkg-config", so it can be a program name with args.
9680 set dummy pkg-config
; ac_word
=$2
9681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9682 $as_echo_n "checking for $ac_word... " >&6; }
9683 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false
; then :
9684 $as_echo_n "(cached) " >&6
9686 case $ac_pt_PKG_CONFIG in
9688 ac_cv_path_ac_pt_PKG_CONFIG
="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
9691 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9695 test -z "$as_dir" && as_dir
=.
9696 for ac_exec_ext
in '' $ac_executable_extensions; do
9697 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9698 ac_cv_path_ac_pt_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
9699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9709 ac_pt_PKG_CONFIG
=$ac_cv_path_ac_pt_PKG_CONFIG
9710 if test -n "$ac_pt_PKG_CONFIG"; then
9711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
9712 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
9714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9715 $as_echo "no" >&6; }
9718 if test "x$ac_pt_PKG_CONFIG" = x
; then
9721 case $cross_compiling:$ac_tool_warned in
9723 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9724 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9725 ac_tool_warned
=yes ;;
9727 PKG_CONFIG
=$ac_pt_PKG_CONFIG
9730 PKG_CONFIG
="$ac_cv_path_PKG_CONFIG"
9734 if test -n "$PKG_CONFIG"; then
9735 _pkg_min_version
=0.9.0
9736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
9737 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
9738 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
9739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9740 $as_echo "yes" >&6; }
9742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9743 $as_echo "no" >&6; }
9747 if test -n "$PKG_CONFIG"; then :
9751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jansson" >&5
9752 $as_echo_n "checking for jansson... " >&6; }
9754 if test -n "$JANSSON_CFLAGS"; then
9755 pkg_cv_JANSSON_CFLAGS
="$JANSSON_CFLAGS"
9756 elif test -n "$PKG_CONFIG"; then
9757 if test -n "$PKG_CONFIG" && \
9758 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jansson\""; } >&5
9759 ($PKG_CONFIG --exists --print-errors "jansson") 2>&5
9761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9762 test $ac_status = 0; }; then
9763 pkg_cv_JANSSON_CFLAGS
=`$PKG_CONFIG --cflags "jansson" 2>/dev/null`
9764 test "x$?" != "x0" && pkg_failed
=yes
9771 if test -n "$JANSSON_LIBS"; then
9772 pkg_cv_JANSSON_LIBS
="$JANSSON_LIBS"
9773 elif test -n "$PKG_CONFIG"; then
9774 if test -n "$PKG_CONFIG" && \
9775 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"jansson\""; } >&5
9776 ($PKG_CONFIG --exists --print-errors "jansson") 2>&5
9778 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9779 test $ac_status = 0; }; then
9780 pkg_cv_JANSSON_LIBS
=`$PKG_CONFIG --libs "jansson" 2>/dev/null`
9781 test "x$?" != "x0" && pkg_failed
=yes
9789 if test $pkg_failed = no
; then
9790 pkg_save_LDFLAGS
="$LDFLAGS"
9791 LDFLAGS
="$LDFLAGS $pkg_cv_JANSSON_LIBS"
9792 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9793 /* end confdefs.h. */
9803 if ac_fn_c_try_link
"$LINENO"; then :
9808 rm -f core conftest.err conftest.
$ac_objext \
9809 conftest
$ac_exeext conftest.
$ac_ext
9810 LDFLAGS
=$pkg_save_LDFLAGS
9815 if test $pkg_failed = yes; then
9816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9817 $as_echo "no" >&6; }
9819 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9820 _pkg_short_errors_supported
=yes
9822 _pkg_short_errors_supported
=no
9824 if test $_pkg_short_errors_supported = yes; then
9825 JANSSON_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "jansson" 2>&1`
9827 JANSSON_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "jansson" 2>&1`
9829 # Put the nasty error message in config.log where it belongs
9830 echo "$JANSSON_PKG_ERRORS" >&5
9833 as_fn_error $?
"Cannot find jansson library" "$LINENO" 5
9835 elif test $pkg_failed = untried
; then
9836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9837 $as_echo "no" >&6; }
9839 as_fn_error $?
"Cannot find jansson library" "$LINENO" 5
9842 JANSSON_CFLAGS
=$pkg_cv_JANSSON_CFLAGS
9843 JANSSON_LIBS
=$pkg_cv_JANSSON_LIBS
9844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9845 $as_echo "yes" >&6; }
9848 $as_echo "#define HAVE_JANSSON 1" >>confdefs.h
9857 as_fn_error $?
"Cannot find pkg-config" "$LINENO" 5
9862 ac_fn_c_check_decl
"$LINENO" "basename" "ac_cv_have_decl_basename" "$ac_includes_default"
9863 if test "x$ac_cv_have_decl_basename" = xyes
; then :
9869 cat >>confdefs.h
<<_ACEOF
9870 #define HAVE_DECL_BASENAME $ac_have_decl
9872 ac_fn_c_check_decl
"$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default"
9873 if test "x$ac_cv_have_decl_ffs" = xyes
; then :
9879 cat >>confdefs.h
<<_ACEOF
9880 #define HAVE_DECL_FFS $ac_have_decl
9882 ac_fn_c_check_decl
"$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
9883 if test "x$ac_cv_have_decl_asprintf" = xyes
; then :
9889 cat >>confdefs.h
<<_ACEOF
9890 #define HAVE_DECL_ASPRINTF $ac_have_decl
9892 ac_fn_c_check_decl
"$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
9893 if test "x$ac_cv_have_decl_vasprintf" = xyes
; then :
9899 cat >>confdefs.h
<<_ACEOF
9900 #define HAVE_DECL_VASPRINTF $ac_have_decl
9902 ac_fn_c_check_decl
"$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
9903 if test "x$ac_cv_have_decl_snprintf" = xyes
; then :
9909 cat >>confdefs.h
<<_ACEOF
9910 #define HAVE_DECL_SNPRINTF $ac_have_decl
9912 ac_fn_c_check_decl
"$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
9913 if test "x$ac_cv_have_decl_vsnprintf" = xyes
; then :
9919 cat >>confdefs.h
<<_ACEOF
9920 #define HAVE_DECL_VSNPRINTF $ac_have_decl
9922 ac_fn_c_check_decl
"$LINENO" "strverscmp" "ac_cv_have_decl_strverscmp" "$ac_includes_default"
9923 if test "x$ac_cv_have_decl_strverscmp" = xyes
; then :
9929 cat >>confdefs.h
<<_ACEOF
9930 #define HAVE_DECL_STRVERSCMP $ac_have_decl
9934 save_CFLAGS
="$CFLAGS"
9935 CFLAGS
="$CFLAGS -Werror -gpubnames"
9936 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9937 /* end confdefs.h. */
9940 if ac_fn_c_try_compile
"$LINENO"; then :
9945 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9946 CFLAGS
="$save_CFLAGS"
9947 if test "$have_pubnames" = "yes"; then
9949 HAVE_PUBNAMES_FALSE
='#'
9951 HAVE_PUBNAMES_TRUE
='#'
9952 HAVE_PUBNAMES_FALSE
=
9956 save_CFLAGS
="$CFLAGS"
9957 CFLAGS
="$CFLAGS -Werror -fno-use-linker-plugin"
9958 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9959 /* end confdefs.h. */
9962 if ac_fn_c_try_compile
"$LINENO"; then :
9963 have_no_use_linker_plugin
=yes
9965 have_no_use_linker_plugin
=no
9967 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9968 CFLAGS
="$save_CFLAGS"
9969 if test "$have_no_use_linker_plugin" = "yes"; then
9970 HAVE_NO_USE_LINKER_PLUGIN_TRUE
=
9971 HAVE_NO_USE_LINKER_PLUGIN_FALSE
='#'
9973 HAVE_NO_USE_LINKER_PLUGIN_TRUE
='#'
9974 HAVE_NO_USE_LINKER_PLUGIN_FALSE
=
9979 ac_cpp
='$CXXCPP $CPPFLAGS'
9980 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9981 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9982 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
9987 ac_cpp
='$CXXCPP $CPPFLAGS'
9988 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9989 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9990 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
9991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
9992 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
9993 if test -z "$CXXCPP"; then
9994 if ${ac_cv_prog_CXXCPP+:} false
; then :
9995 $as_echo_n "(cached) " >&6
9997 # Double quotes because CXXCPP needs to be expanded
9998 for CXXCPP
in "$CXX -E" "/lib/cpp"
10000 ac_preproc_ok
=false
10001 for ac_cxx_preproc_warn_flag
in '' yes
10003 # Use a header file that comes with gcc, so configuring glibc
10004 # with a fresh cross-compiler works.
10005 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10006 # <limits.h> exists even on freestanding compilers.
10007 # On the NeXT, cc -E runs the code through the compiler's parser,
10008 # not just through cpp. "Syntax error" is here to catch this case.
10009 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10010 /* end confdefs.h. */
10012 # include <limits.h>
10014 # include <assert.h>
10018 if ac_fn_cxx_try_cpp
"$LINENO"; then :
10021 # Broken: fails on valid input.
10024 rm -f conftest.err conftest.i conftest.
$ac_ext
10026 # OK, works on sane cases. Now check whether nonexistent headers
10027 # can be detected and how.
10028 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10029 /* end confdefs.h. */
10030 #include <ac_nonexistent.h>
10032 if ac_fn_cxx_try_cpp
"$LINENO"; then :
10033 # Broken: success on invalid input.
10036 # Passes both tests.
10040 rm -f conftest.err conftest.i conftest.
$ac_ext
10043 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10044 rm -f conftest.i conftest.err conftest.
$ac_ext
10045 if $ac_preproc_ok; then :
10050 ac_cv_prog_CXXCPP
=$CXXCPP
10053 CXXCPP
=$ac_cv_prog_CXXCPP
10055 ac_cv_prog_CXXCPP
=$CXXCPP
10057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
10058 $as_echo "$CXXCPP" >&6; }
10059 ac_preproc_ok
=false
10060 for ac_cxx_preproc_warn_flag
in '' yes
10062 # Use a header file that comes with gcc, so configuring glibc
10063 # with a fresh cross-compiler works.
10064 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10065 # <limits.h> exists even on freestanding compilers.
10066 # On the NeXT, cc -E runs the code through the compiler's parser,
10067 # not just through cpp. "Syntax error" is here to catch this case.
10068 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10069 /* end confdefs.h. */
10071 # include <limits.h>
10073 # include <assert.h>
10077 if ac_fn_cxx_try_cpp
"$LINENO"; then :
10080 # Broken: fails on valid input.
10083 rm -f conftest.err conftest.i conftest.
$ac_ext
10085 # OK, works on sane cases. Now check whether nonexistent headers
10086 # can be detected and how.
10087 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10088 /* end confdefs.h. */
10089 #include <ac_nonexistent.h>
10091 if ac_fn_cxx_try_cpp
"$LINENO"; then :
10092 # Broken: success on invalid input.
10095 # Passes both tests.
10099 rm -f conftest.err conftest.i conftest.
$ac_ext
10102 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10103 rm -f conftest.i conftest.err conftest.
$ac_ext
10104 if $ac_preproc_ok; then :
10107 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10108 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10109 as_fn_error $?
"C++ preprocessor \"$CXXCPP\" fails sanity check
10110 See \`config.log' for more details" "$LINENO" 5; }
10114 ac_cpp
='$CXXCPP $CPPFLAGS'
10115 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10116 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10117 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
10120 for ac_header
in unordered_set unordered_map
10122 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10123 ac_fn_cxx_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10124 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
10125 cat >>confdefs.h
<<_ACEOF
10126 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10133 for ac_header
in tr1/unordered_set
tr1/unordered_map
10135 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10136 ac_fn_cxx_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10137 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
10138 cat >>confdefs.h
<<_ACEOF
10139 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10146 for ac_header
in ext
/hash_map ext
/hash_set
10148 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10149 ac_fn_cxx_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10150 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
10151 cat >>confdefs.h
<<_ACEOF
10152 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10159 for ac_header
in byteswap.h
10161 ac_fn_cxx_check_header_mongrel
"$LINENO" "byteswap.h" "ac_cv_header_byteswap_h" "$ac_includes_default"
10162 if test "x$ac_cv_header_byteswap_h" = xyes
; then :
10163 cat >>confdefs.h
<<_ACEOF
10164 #define HAVE_BYTESWAP_H 1
10172 ac_fn_cxx_check_decl
"$LINENO" "bswap_16" "ac_cv_have_decl_bswap_16" "#include <byteswap.h>
10174 if test "x$ac_cv_have_decl_bswap_16" = xyes
; then :
10180 cat >>confdefs.h
<<_ACEOF
10181 #define HAVE_DECL_BSWAP_16 $ac_have_decl
10183 ac_fn_cxx_check_decl
"$LINENO" "bswap_32" "ac_cv_have_decl_bswap_32" "#include <byteswap.h>
10185 if test "x$ac_cv_have_decl_bswap_32" = xyes
; then :
10191 cat >>confdefs.h
<<_ACEOF
10192 #define HAVE_DECL_BSWAP_32 $ac_have_decl
10194 ac_fn_cxx_check_decl
"$LINENO" "bswap_64" "ac_cv_have_decl_bswap_64" "#include <byteswap.h>
10196 if test "x$ac_cv_have_decl_bswap_64" = xyes
; then :
10202 cat >>confdefs.h
<<_ACEOF
10203 #define HAVE_DECL_BSWAP_64 $ac_have_decl
10207 for ac_header
in windows.h
10209 ac_fn_cxx_check_header_mongrel
"$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
10210 if test "x$ac_cv_header_windows_h" = xyes
; then :
10211 cat >>confdefs.h
<<_ACEOF
10212 #define HAVE_WINDOWS_H 1
10219 for ac_header
in dlfcn.h
10221 ac_fn_cxx_check_header_mongrel
"$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
10222 if test "x$ac_cv_header_dlfcn_h" = xyes
; then :
10223 cat >>confdefs.h
<<_ACEOF
10224 #define HAVE_DLFCN_H 1
10231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
10232 $as_echo_n "checking for library containing dlopen... " >&6; }
10233 if ${ac_cv_search_dlopen+:} false
; then :
10234 $as_echo_n "(cached) " >&6
10236 ac_func_search_save_LIBS
=$LIBS
10237 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10238 /* end confdefs.h. */
10240 /* Override any GCC internal prototype to avoid an error.
10241 Use char because int might match the return type of a GCC
10242 builtin and then its argument prototype would still apply. */
10255 for ac_lib
in '' dl dld
; do
10256 if test -z "$ac_lib"; then
10257 ac_res
="none required"
10260 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
10262 if ac_fn_cxx_try_link
"$LINENO"; then :
10263 ac_cv_search_dlopen
=$ac_res
10265 rm -f core conftest.err conftest.
$ac_objext \
10267 if ${ac_cv_search_dlopen+:} false
; then :
10271 if ${ac_cv_search_dlopen+:} false
; then :
10274 ac_cv_search_dlopen
=no
10276 rm conftest.
$ac_ext
10277 LIBS
=$ac_func_search_save_LIBS
10279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
10280 $as_echo "$ac_cv_search_dlopen" >&6; }
10281 ac_res
=$ac_cv_search_dlopen
10282 if test "$ac_res" != no
; then :
10283 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
10287 case "$ac_cv_search_dlopen" in
10288 no
*) DLOPEN_LIBS
="";;
10289 *) DLOPEN_LIBS
="$ac_cv_search_dlopen";;
10293 for ac_func
in mallinfo mallinfo2 posix_fallocate fallocate readv sysconf
times mkdtemp
10295 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10296 ac_fn_cxx_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10297 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
10298 cat >>confdefs.h
<<_ACEOF
10299 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10305 ac_fn_cxx_check_decl
"$LINENO" "basename" "ac_cv_have_decl_basename" "$ac_includes_default"
10306 if test "x$ac_cv_have_decl_basename" = xyes
; then :
10312 cat >>confdefs.h
<<_ACEOF
10313 #define HAVE_DECL_BASENAME $ac_have_decl
10315 ac_fn_cxx_check_decl
"$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default"
10316 if test "x$ac_cv_have_decl_ffs" = xyes
; then :
10322 cat >>confdefs.h
<<_ACEOF
10323 #define HAVE_DECL_FFS $ac_have_decl
10325 ac_fn_cxx_check_decl
"$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
10326 if test "x$ac_cv_have_decl_asprintf" = xyes
; then :
10332 cat >>confdefs.h
<<_ACEOF
10333 #define HAVE_DECL_ASPRINTF $ac_have_decl
10335 ac_fn_cxx_check_decl
"$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
10336 if test "x$ac_cv_have_decl_vasprintf" = xyes
; then :
10342 cat >>confdefs.h
<<_ACEOF
10343 #define HAVE_DECL_VASPRINTF $ac_have_decl
10345 ac_fn_cxx_check_decl
"$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
10346 if test "x$ac_cv_have_decl_snprintf" = xyes
; then :
10352 cat >>confdefs.h
<<_ACEOF
10353 #define HAVE_DECL_SNPRINTF $ac_have_decl
10355 ac_fn_cxx_check_decl
"$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
10356 if test "x$ac_cv_have_decl_vsnprintf" = xyes
; then :
10362 cat >>confdefs.h
<<_ACEOF
10363 #define HAVE_DECL_VSNPRINTF $ac_have_decl
10365 ac_fn_cxx_check_decl
"$LINENO" "strverscmp" "ac_cv_have_decl_strverscmp" "$ac_includes_default"
10366 if test "x$ac_cv_have_decl_strverscmp" = xyes
; then :
10372 cat >>confdefs.h
<<_ACEOF
10373 #define HAVE_DECL_STRVERSCMP $ac_have_decl
10375 ac_fn_cxx_check_decl
"$LINENO" "strndup" "ac_cv_have_decl_strndup" "$ac_includes_default"
10376 if test "x$ac_cv_have_decl_strndup" = xyes
; then :
10382 cat >>confdefs.h
<<_ACEOF
10383 #define HAVE_DECL_STRNDUP $ac_have_decl
10385 ac_fn_cxx_check_decl
"$LINENO" "memmem" "ac_cv_have_decl_memmem" "$ac_includes_default"
10386 if test "x$ac_cv_have_decl_memmem" = xyes
; then :
10392 cat >>confdefs.h
<<_ACEOF
10393 #define HAVE_DECL_MEMMEM $ac_have_decl
10397 # Use of ::std::tr1::unordered_map::rehash causes undefined symbols
10398 # at link time with some versions of GCC.
10399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ::std::tr1::unordered_map::rehash is usable." >&5
10400 $as_echo_n "checking whether ::std::tr1::unordered_map::rehash is usable.... " >&6; }
10401 if ${gold_cv_unordered_map_rehash+:} false
; then :
10402 $as_echo_n "(cached) " >&6
10404 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10405 /* end confdefs.h. */
10407 #include <tr1/unordered_map>
10408 void bar() { ::std::tr1::unordered_map<int, int> x; x.rehash(10); }
10418 if ac_fn_cxx_try_link
"$LINENO"; then :
10419 gold_cv_unordered_map_rehash
=yes
10421 gold_cv_unordered_map_rehash
=no
10423 rm -f core conftest.err conftest.
$ac_objext \
10424 conftest
$ac_exeext conftest.
$ac_ext
10426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_unordered_map_rehash" >&5
10427 $as_echo "$gold_cv_unordered_map_rehash" >&6; }
10428 if test "$gold_cv_unordered_map_rehash" = "yes"; then
10430 $as_echo "#define HAVE_TR1_UNORDERED_MAP_REHASH 1" >>confdefs.h
10434 # Use of tr1/unordered_map with off_t as a key is not supported on GCC
10435 # 4.1.xx when compiling in 32-bit mode with a 64-bit off_t type.
10436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether std::tr1::hash<off_t> is defined" >&5
10437 $as_echo_n "checking whether std::tr1::hash<off_t> is defined... " >&6; }
10438 if ${gold_cv_hash_off_t+:} false
; then :
10439 $as_echo_n "(cached) " >&6
10441 CXXFLAGS_hold
=$CXXFLAGS
10442 CXXFLAGS
="$CXXFLAGS $LFS_CFLAGS"
10443 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10444 /* end confdefs.h. */
10446 #include <sys/types.h>
10447 #include <tr1/unordered_map>
10448 std::tr1::hash<off_t> h;
10451 if ac_fn_cxx_try_compile
"$LINENO"; then :
10452 gold_cv_hash_off_t
=yes
10454 gold_cv_hash_off_t
=no
10456 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10457 CXXFLAGS
=$CXXFLAGS_hold
10459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_hash_off_t" >&5
10460 $as_echo "$gold_cv_hash_off_t" >&6; }
10461 if test "$gold_cv_hash_off_t" = "yes"; then
10463 $as_echo "#define HAVE_TR1_HASH_OFF_T 1" >>confdefs.h
10467 # gcc 4.3.0 doesn't recognize the printf attribute on a template
10468 # function. Check for that. This is gcc bug 35546. This test can
10469 # probably be removed after the bug has been fixed for a while.
10470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use attributes with template functions" >&5
10471 $as_echo_n "checking whether we can use attributes with template functions... " >&6; }
10472 if ${gold_cv_template_attribute+:} false
; then :
10473 $as_echo_n "(cached) " >&6
10475 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10476 /* end confdefs.h. */
10478 template<typename T> extern void foo(const char*, ...)
10479 __attribute__ ((__format__ (__printf__, 1, 2)));
10480 template<typename T> void foo(const char* format, ...) {}
10481 void bar() { foo<int>("%s\n", "foo"); }
10484 if ac_fn_cxx_try_compile
"$LINENO"; then :
10485 gold_cv_template_attribute
=yes
10487 gold_cv_template_attribute
=no
10489 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_template_attribute" >&5
10492 $as_echo "$gold_cv_template_attribute" >&6; }
10493 if test "$gold_cv_template_attribute" = "yes"; then
10495 $as_echo "#define HAVE_TEMPLATE_ATTRIBUTES 1" >>confdefs.h
10499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct stat::st_mtim." >&5
10500 $as_echo_n "checking for struct stat::st_mtim.... " >&6; }
10501 if ${gold_cv_stat_st_mtim+:} false
; then :
10502 $as_echo_n "(cached) " >&6
10504 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10505 /* end confdefs.h. */
10507 #include <sys/stat.h>
10508 long bar() { struct stat s; return (long)(s.st_mtim.tv_sec + s.st_mtim.tv_sec);}
10518 if ac_fn_cxx_try_compile
"$LINENO"; then :
10519 gold_cv_stat_st_mtim
=yes
10521 gold_cv_stat_st_mtim
=no
10523 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_stat_st_mtim" >&5
10526 $as_echo "$gold_cv_stat_st_mtim" >&6; }
10527 if test "$gold_cv_stat_st_mtim" = "yes"; then
10529 $as_echo "#define HAVE_STAT_ST_MTIM 1" >>confdefs.h
10534 ac_cpp
='$CPP $CPPFLAGS'
10535 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10536 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10537 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
10540 for ac_header
in locale.h
10542 ac_fn_c_check_header_mongrel
"$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
10543 if test "x$ac_cv_header_locale_h" = xyes
; then :
10544 cat >>confdefs.h
<<_ACEOF
10545 #define HAVE_LOCALE_H 1
10552 for ac_func
in setlocale
10554 ac_fn_c_check_func
"$LINENO" "setlocale" "ac_cv_func_setlocale"
10555 if test "x$ac_cv_func_setlocale" = xyes
; then :
10556 cat >>confdefs.h
<<_ACEOF
10557 #define HAVE_SETLOCALE 1
10564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10565 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10566 if ${am_cv_val_LC_MESSAGES+:} false
; then :
10567 $as_echo_n "(cached) " >&6
10569 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10570 /* end confdefs.h. */
10571 #include <locale.h>
10580 if ac_fn_c_try_link
"$LINENO"; then :
10581 am_cv_val_LC_MESSAGES
=yes
10583 am_cv_val_LC_MESSAGES
=no
10585 rm -f core conftest.err conftest.
$ac_objext \
10586 conftest
$ac_exeext conftest.
$ac_ext
10588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10589 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10590 if test $am_cv_val_LC_MESSAGES = yes; then
10592 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
10599 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
10600 # Check whether --enable-maintainer-mode was given.
10601 if test "${enable_maintainer_mode+set}" = set; then :
10602 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
10604 USE_MAINTAINER_MODE
=no
10607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
10608 $as_echo "$USE_MAINTAINER_MODE" >&6; }
10609 if test $USE_MAINTAINER_MODE = yes; then
10610 MAINTAINER_MODE_TRUE
=
10611 MAINTAINER_MODE_FALSE
='#'
10613 MAINTAINER_MODE_TRUE
='#'
10614 MAINTAINER_MODE_FALSE
=
10617 MAINT
=$MAINTAINER_MODE_TRUE
10621 ac_config_files
="$ac_config_files Makefile testsuite/Makefile po/Makefile.in:po/Make-in"
10623 cat >confcache
<<\_ACEOF
10624 # This file is a shell script that caches the results of configure
10625 # tests run on this system so they can be shared between configure
10626 # scripts and configure runs, see configure's option --config-cache.
10627 # It is not useful on other systems. If it contains results you don't
10628 # want to keep, you may remove or edit it.
10630 # config.status only pays attention to the cache file if you give it
10631 # the --recheck option to rerun configure.
10633 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10634 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10635 # following values.
10639 # The following way of writing the cache mishandles newlines in values,
10640 # but we know of no workaround that is simple, portable, and efficient.
10641 # So, we kill variables containing newlines.
10642 # Ultrix sh set writes to stderr and can't be redirected directly,
10643 # and sets the high bit in the cache file unless we assign to the vars.
10645 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10646 eval ac_val
=\$
$ac_var
10650 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10651 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10654 _ | IFS | as_nl
) ;; #(
10655 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
10656 *) { eval $ac_var=; unset $ac_var;} ;;
10662 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10663 *${as_nl}ac_space
=\
*)
10664 # `set' does not quote correctly, so add quotes: double-quote
10665 # substitution turns \\\\ into \\, and sed turns \\ into \.
10668 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10671 # `set' quotes correctly as required by POSIX, so do not add quotes.
10672 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10681 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10683 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10685 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
10686 if test -w "$cache_file"; then
10687 if test "x$cache_file" != "x/dev/null"; then
10688 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
10689 $as_echo "$as_me: updating cache $cache_file" >&6;}
10690 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
10691 cat confcache
>"$cache_file"
10693 case $cache_file in #(
10695 mv -f confcache
"$cache_file"$$
&&
10696 mv -f "$cache_file"$$
"$cache_file" ;; #(
10698 mv -f confcache
"$cache_file" ;;
10703 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
10704 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10709 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
10710 # Let make expand exec_prefix.
10711 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
10713 DEFS
=-DHAVE_CONFIG_H
10717 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
10718 # 1. Remove the extension, and $U if already installed.
10719 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
10720 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
10721 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10722 # will be set to the directory where LIBOBJS objects are built.
10723 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10724 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
10726 LIBOBJS
=$ac_libobjs
10728 LTLIBOBJS
=$ac_ltlibobjs
10731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
10732 $as_echo_n "checking that generated files are newer than configure... " >&6; }
10733 if test -n "$am_sleep_pid"; then
10734 # Hide warnings about reused PIDs.
10735 wait $am_sleep_pid 2>/dev
/null
10737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
10738 $as_echo "done" >&6; }
10739 if test -n "$EXEEXT"; then
10741 am__EXEEXT_FALSE
='#'
10743 am__EXEEXT_TRUE
='#'
10747 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10748 as_fn_error $?
"conditional \"AMDEP\" was never defined.
10749 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10751 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10752 as_fn_error $?
"conditional \"am__fastdepCC\" was never defined.
10753 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10755 if test -z "${PLUGINS_TRUE}" && test -z "${PLUGINS_FALSE}"; then
10756 as_fn_error $?
"conditional \"PLUGINS\" was never defined.
10757 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10759 if test -z "${DEFAULT_TARGET_AARCH64_TRUE}" && test -z "${DEFAULT_TARGET_AARCH64_FALSE}"; then
10760 as_fn_error $?
"conditional \"DEFAULT_TARGET_AARCH64\" was never defined.
10761 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10763 if test -z "${DEFAULT_TARGET_ARM_TRUE}" && test -z "${DEFAULT_TARGET_ARM_FALSE}"; then
10764 as_fn_error $?
"conditional \"DEFAULT_TARGET_ARM\" was never defined.
10765 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10767 if test -z "${DEFAULT_TARGET_I386_TRUE}" && test -z "${DEFAULT_TARGET_I386_FALSE}"; then
10768 as_fn_error $?
"conditional \"DEFAULT_TARGET_I386\" was never defined.
10769 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10771 if test -z "${DEFAULT_TARGET_POWERPC_TRUE}" && test -z "${DEFAULT_TARGET_POWERPC_FALSE}"; then
10772 as_fn_error $?
"conditional \"DEFAULT_TARGET_POWERPC\" was never defined.
10773 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10775 if test -z "${DEFAULT_TARGET_SPARC_TRUE}" && test -z "${DEFAULT_TARGET_SPARC_FALSE}"; then
10776 as_fn_error $?
"conditional \"DEFAULT_TARGET_SPARC\" was never defined.
10777 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10779 if test -z "${DEFAULT_TARGET_S390_TRUE}" && test -z "${DEFAULT_TARGET_S390_FALSE}"; then
10780 as_fn_error $?
"conditional \"DEFAULT_TARGET_S390\" was never defined.
10781 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10783 if test -z "${DEFAULT_TARGET_X86_64_TRUE}" && test -z "${DEFAULT_TARGET_X86_64_FALSE}"; then
10784 as_fn_error $?
"conditional \"DEFAULT_TARGET_X86_64\" was never defined.
10785 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10787 if test -z "${DEFAULT_TARGET_X32_TRUE}" && test -z "${DEFAULT_TARGET_X32_FALSE}"; then
10788 as_fn_error $?
"conditional \"DEFAULT_TARGET_X32\" was never defined.
10789 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10791 if test -z "${DEFAULT_TARGET_X86_64_OR_X32_TRUE}" && test -z "${DEFAULT_TARGET_X86_64_OR_X32_FALSE}"; then
10792 as_fn_error $?
"conditional \"DEFAULT_TARGET_X86_64_OR_X32\" was never defined.
10793 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10795 if test -z "${DEFAULT_TARGET_TILEGX_TRUE}" && test -z "${DEFAULT_TARGET_TILEGX_FALSE}"; then
10796 as_fn_error $?
"conditional \"DEFAULT_TARGET_TILEGX\" was never defined.
10797 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10799 if test -z "${DEFAULT_TARGET_MIPS_TRUE}" && test -z "${DEFAULT_TARGET_MIPS_FALSE}"; then
10800 as_fn_error $?
"conditional \"DEFAULT_TARGET_MIPS\" was never defined.
10801 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10803 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10804 as_fn_error $?
"conditional \"am__fastdepCC\" was never defined.
10805 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10807 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
10808 as_fn_error $?
"conditional \"am__fastdepCXX\" was never defined.
10809 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10812 if test -z "${NATIVE_LINKER_TRUE}" && test -z "${NATIVE_LINKER_FALSE}"; then
10813 as_fn_error $?
"conditional \"NATIVE_LINKER\" was never defined.
10814 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10816 if test -z "${GCC_TRUE}" && test -z "${GCC_FALSE}"; then
10817 as_fn_error $?
"conditional \"GCC\" was never defined.
10818 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10820 if test -z "${NATIVE_OR_CROSS_LINKER_TRUE}" && test -z "${NATIVE_OR_CROSS_LINKER_FALSE}"; then
10821 as_fn_error $?
"conditional \"NATIVE_OR_CROSS_LINKER\" was never defined.
10822 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10824 if test -z "${HAVE_STATIC_TRUE}" && test -z "${HAVE_STATIC_FALSE}"; then
10825 as_fn_error $?
"conditional \"HAVE_STATIC\" was never defined.
10826 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10828 if test -z "${FN_PTRS_IN_SO_WITHOUT_PIC_TRUE}" && test -z "${FN_PTRS_IN_SO_WITHOUT_PIC_FALSE}"; then
10829 as_fn_error $?
"conditional \"FN_PTRS_IN_SO_WITHOUT_PIC\" was never defined.
10830 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10832 if test -z "${MCMODEL_MEDIUM_TRUE}" && test -z "${MCMODEL_MEDIUM_FALSE}"; then
10833 as_fn_error $?
"conditional \"MCMODEL_MEDIUM\" was never defined.
10834 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10836 if test -z "${GCC9_TRUE}" && test -z "${GCC9_FALSE}"; then
10837 as_fn_error $?
"conditional \"GCC9\" was never defined.
10838 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10840 if test -z "${CFLAGS_CF_PROTECTION_TRUE}" && test -z "${CFLAGS_CF_PROTECTION_FALSE}"; then
10841 as_fn_error $?
"conditional \"CFLAGS_CF_PROTECTION\" was never defined.
10842 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10844 if test -z "${TLS_TRUE}" && test -z "${TLS_FALSE}"; then
10845 as_fn_error $?
"conditional \"TLS\" was never defined.
10846 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10848 if test -z "${STATIC_TLS_TRUE}" && test -z "${STATIC_TLS_FALSE}"; then
10849 as_fn_error $?
"conditional \"STATIC_TLS\" was never defined.
10850 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10852 if test -z "${OMP_SUPPORT_TRUE}" && test -z "${OMP_SUPPORT_FALSE}"; then
10853 as_fn_error $?
"conditional \"OMP_SUPPORT\" was never defined.
10854 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10856 if test -z "${TLS_GNU2_DIALECT_TRUE}" && test -z "${TLS_GNU2_DIALECT_FALSE}"; then
10857 as_fn_error $?
"conditional \"TLS_GNU2_DIALECT\" was never defined.
10858 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10860 if test -z "${TLS_DESCRIPTORS_TRUE}" && test -z "${TLS_DESCRIPTORS_FALSE}"; then
10861 as_fn_error $?
"conditional \"TLS_DESCRIPTORS\" was never defined.
10862 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10864 if test -z "${IFUNC_TRUE}" && test -z "${IFUNC_FALSE}"; then
10865 as_fn_error $?
"conditional \"IFUNC\" was never defined.
10866 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10868 if test -z "${IFUNC_STATIC_TRUE}" && test -z "${IFUNC_STATIC_FALSE}"; then
10869 as_fn_error $?
"conditional \"IFUNC_STATIC\" was never defined.
10870 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10872 if test -z "${THREADS_TRUE}" && test -z "${THREADS_FALSE}"; then
10873 as_fn_error $?
"conditional \"THREADS\" was never defined.
10874 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10876 if test -z "${HAVE_PUBNAMES_TRUE}" && test -z "${HAVE_PUBNAMES_FALSE}"; then
10877 as_fn_error $?
"conditional \"HAVE_PUBNAMES\" was never defined.
10878 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10880 if test -z "${HAVE_NO_USE_LINKER_PLUGIN_TRUE}" && test -z "${HAVE_NO_USE_LINKER_PLUGIN_FALSE}"; then
10881 as_fn_error $?
"conditional \"HAVE_NO_USE_LINKER_PLUGIN\" was never defined.
10882 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10884 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
10885 as_fn_error $?
"conditional \"MAINTAINER_MODE\" was never defined.
10886 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10889 : "${CONFIG_STATUS=./config.status}"
10891 ac_clean_files_save
=$ac_clean_files
10892 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
10893 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
10894 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
10896 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
10898 # Generated by $as_me.
10899 # Run this file to recreate the current configuration.
10900 # Compiler output produced by configure, useful for debugging
10901 # configure, is in config.log if it exists.
10904 ac_cs_recheck=false
10907 SHELL=\${CONFIG_SHELL-$SHELL}
10910 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
10911 ## -------------------- ##
10912 ## M4sh Initialization. ##
10913 ## -------------------- ##
10915 # Be more Bourne compatible
10916 DUALCASE
=1; export DUALCASE
# for MKS sh
10917 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
10920 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
10921 # is contrary to our usage. Disable this feature.
10922 alias -g '${1+"$@"}'='"$@"'
10923 setopt NO_GLOB_SUBST
10925 case `(set -o) 2>/dev/null` in #(
10937 # Printing a long string crashes Solaris 7 /usr/bin/printf.
10938 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10939 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
10940 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
10941 # Prefer a ksh shell builtin over an external printf program on Solaris,
10942 # but without wasting forks for bash or zsh.
10943 if test -z "$BASH_VERSION$ZSH_VERSION" \
10944 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
10945 as_echo='print
-r --'
10946 as_echo_n='print
-rn --'
10947 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
10948 as_echo='printf %s
\n'
10949 as_echo_n='printf %s
'
10951 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
10952 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
10953 as_echo_n='/usr
/ucb
/echo -n'
10955 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
10956 as_echo_n_body='eval
10960 expr "X$arg" : "X\\(.*\\)$as_nl";
10961 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
10963 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
10965 export as_echo_n_body
10966 as_echo_n='sh
-c $as_echo_n_body as_echo
'
10968 export as_echo_body
10969 as_echo='sh
-c $as_echo_body as_echo
'
10972 # The user is always right.
10973 if test "${PATH_SEPARATOR+set}" != set; then
10975 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
10976 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
10983 # We need space, tab and new line, in precisely that order. Quoting is
10984 # there to prevent editors from complaining about space-tab.
10985 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
10986 # splitting by setting IFS to empty value.)
10989 # Find who we are. Look in the path if we contain no directory separator.
10992 *[\\/]* ) as_myself=$0 ;;
10993 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10994 for as_dir in $PATH
10997 test -z "$as_dir" && as_dir=.
10998 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11004 # We did not find ourselves, most probably we were run as `sh COMMAND'
11005 # in which case we are not to be found in the path.
11006 if test "x$as_myself" = x
; then
11009 if test ! -f "$as_myself"; then
11010 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11014 # Unset variables that we do not need and which cause bugs (e.g. in
11015 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11016 # suppresses any "Segmentation fault" message there. '((' could
11017 # trigger a bug in pdksh 5.2.14.
11018 for as_var
in BASH_ENV ENV MAIL MAILPATH
11019 do eval test x\
${$as_var+set} = xset \
11020 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
11033 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
11036 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11037 # ----------------------------------------
11038 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11039 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11040 # script with STATUS, using 1 if that was 0.
11043 as_status
=$1; test $as_status -eq 0 && as_status
=1
11045 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
11046 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11048 $as_echo "$as_me: error: $2" >&2
11049 as_fn_exit
$as_status
11053 # as_fn_set_status STATUS
11054 # -----------------------
11055 # Set $? to STATUS, without forking.
11056 as_fn_set_status
()
11059 } # as_fn_set_status
11061 # as_fn_exit STATUS
11062 # -----------------
11063 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11067 as_fn_set_status
$1
11073 # Portably unset VAR.
11076 { eval $1=; unset $1;}
11078 as_unset
=as_fn_unset
11079 # as_fn_append VAR VALUE
11080 # ----------------------
11081 # Append the text in VALUE to the end of the definition contained in VAR. Take
11082 # advantage of any shell optimizations that allow amortized linear growth over
11083 # repeated appends, instead of the typical quadratic growth present in naive
11085 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
11086 eval 'as_fn_append ()
11097 # as_fn_arith ARG...
11098 # ------------------
11099 # Perform arithmetic evaluation on the ARGs, and store the result in the
11100 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11101 # must be portable across $(()) and expr.
11102 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
11103 eval 'as_fn_arith ()
11110 as_val
=`expr "$@" || test $? -eq 1`
11115 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
11116 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
11122 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11123 as_basename
=basename
11128 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
11134 as_me
=`$as_basename -- "$0" ||
11135 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11136 X"$0" : 'X\(//\)$' \| \
11137 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11139 sed '/^.*\/\([^/][^/]*\)\/*$/{
11153 # Avoid depending upon Character Ranges.
11154 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
11155 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11156 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
11157 as_cr_digits
='0123456789'
11158 as_cr_alnum
=$as_cr_Letters$as_cr_digits
11160 ECHO_C
= ECHO_N
= ECHO_T
=
11161 case `echo -n x` in #(((((
11163 case `echo 'xy\c'` in
11164 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
11166 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
11173 rm -f conf$$ conf$$.exe conf$$.
file
11174 if test -d conf$$.dir
; then
11175 rm -f conf$$.dir
/conf$$.
file
11178 mkdir conf$$.dir
2>/dev
/null
11180 if (echo >conf$$.
file) 2>/dev
/null
; then
11181 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
11183 # ... but there are two gotchas:
11184 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11185 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11186 # In both cases, we have to default to `cp -pR'.
11187 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
11189 elif ln conf$$.
file conf$$
2>/dev
/null
; then
11197 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
11198 rmdir conf$$.dir
2>/dev
/null
11203 # Create "$as_dir" as a directory, including parents if necessary.
11208 -*) as_dir
=.
/$as_dir;;
11210 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
11214 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11215 *) as_qdir
=$as_dir;;
11217 as_dirs
="'$as_qdir' $as_dirs"
11218 as_dir
=`$as_dirname -- "$as_dir" ||
11219 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11220 X"$as_dir" : 'X\(//\)[^/]' \| \
11221 X"$as_dir" : 'X\(//\)$' \| \
11222 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11223 $as_echo X"$as_dir" |
11224 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11228 /^X\(\/\/\)[^/].*/{
11241 test -d "$as_dir" && break
11243 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
11244 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
11248 if mkdir
-p .
2>/dev
/null
; then
11249 as_mkdir_p
='mkdir -p "$as_dir"'
11251 test -d .
/-p && rmdir .
/-p
11256 # as_fn_executable_p FILE
11257 # -----------------------
11258 # Test if FILE is an executable regular file.
11259 as_fn_executable_p
()
11261 test -f "$1" && test -x "$1"
11262 } # as_fn_executable_p
11263 as_test_x
='test -x'
11264 as_executable_p
=as_fn_executable_p
11266 # Sed expression to map a string onto a valid CPP name.
11267 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11269 # Sed expression to map a string onto a valid variable name.
11270 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11274 ## ----------------------------------- ##
11275 ## Main body of $CONFIG_STATUS script. ##
11276 ## ----------------------------------- ##
11278 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
11280 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11281 # Save the log message, to keep $0 and so on meaningful, and to
11282 # report actual input values of CONFIG_FILES etc. instead of their
11283 # values after options handling.
11285 This file was extended by gold $as_me 0.1, which was
11286 generated by GNU Autoconf 2.69. Invocation command line was
11288 CONFIG_FILES = $CONFIG_FILES
11289 CONFIG_HEADERS = $CONFIG_HEADERS
11290 CONFIG_LINKS = $CONFIG_LINKS
11291 CONFIG_COMMANDS = $CONFIG_COMMANDS
11294 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11299 case $ac_config_files in *"
11300 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
11303 case $ac_config_headers in *"
11304 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
11308 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11309 # Files that config.status was made for.
11310 config_files="$ac_config_files"
11311 config_headers="$ac_config_headers"
11312 config_commands="$ac_config_commands"
11316 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11318 \`$as_me' instantiates files and other configuration actions
11319 from templates according to the current configuration. Unless the files
11320 and actions are specified as TAGs, all are instantiated by default.
11322 Usage: $0 [OPTION]... [TAG]...
11324 -h, --help print this help, then exit
11325 -V, --version print version number and configuration settings, then exit
11326 --config print configuration, then exit
11327 -q, --quiet, --silent
11328 do not print progress messages
11329 -d, --debug don't remove temporary files
11330 --recheck update $as_me by reconfiguring in the same conditions
11331 --file=FILE[:TEMPLATE]
11332 instantiate the configuration file FILE
11333 --header=FILE[:TEMPLATE]
11334 instantiate the configuration header FILE
11336 Configuration files:
11339 Configuration headers:
11342 Configuration commands:
11345 Report bugs to the package provider."
11348 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11349 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11351 gold config.status 0.1
11352 configured by $0, generated by GNU Autoconf 2.69,
11353 with options \\"\$ac_cs_config\\"
11355 Copyright (C) 2012 Free Software Foundation, Inc.
11356 This config.status script is free software; the Free Software Foundation
11357 gives unlimited permission to copy, distribute and modify it."
11364 test -n "\$AWK" || AWK=awk
11367 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11368 # The default lists apply if the user does not specify any file.
11374 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
11375 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
11379 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
11391 # Handling of the options.
11392 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
11394 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
11395 $as_echo "$ac_cs_version"; exit ;;
11396 --config |
--confi |
--conf |
--con |
--co |
--c )
11397 $as_echo "$ac_cs_config"; exit ;;
11398 --debug |
--debu |
--deb |
--de |
--d |
-d )
11400 --file |
--fil |
--fi |
--f )
11403 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11404 '') as_fn_error $?
"missing file argument" ;;
11406 as_fn_append CONFIG_FILES
" '$ac_optarg'"
11407 ac_need_defaults
=false
;;
11408 --header |
--heade |
--head |
--hea )
11411 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11413 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
11414 ac_need_defaults
=false
;;
11416 # Conflict between --help and --header
11417 as_fn_error $?
"ambiguous option: \`$1'
11418 Try \`$0 --help' for more information.";;
11419 --help |
--hel |
-h )
11420 $as_echo "$ac_cs_usage"; exit ;;
11421 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
11422 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
11425 # This is an error.
11426 -*) as_fn_error $?
"unrecognized option: \`$1'
11427 Try \`$0 --help' for more information." ;;
11429 *) as_fn_append ac_config_targets
" $1"
11430 ac_need_defaults
=false
;;
11436 ac_configure_extra_args
=
11438 if $ac_cs_silent; then
11440 ac_configure_extra_args
="$ac_configure_extra_args --silent"
11444 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11445 if \$ac_cs_recheck; then
11446 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11448 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11449 CONFIG_SHELL='$SHELL'
11450 export CONFIG_SHELL
11455 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11459 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11460 ## Running $as_me. ##
11466 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11470 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11471 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
11472 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
11474 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
11475 # Capture the value of LINGUAS because we need it to compute CATALOGS.
11476 LINGUAS="${LINGUAS-%UNSET%}"
11481 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11483 # Handling of arguments.
11484 for ac_config_target
in $ac_config_targets
11486 case $ac_config_target in
11487 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
11488 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
11489 "default-1") CONFIG_COMMANDS
="$CONFIG_COMMANDS default-1" ;;
11490 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
11491 "testsuite/Makefile") CONFIG_FILES
="$CONFIG_FILES testsuite/Makefile" ;;
11492 "po/Makefile.in") CONFIG_FILES
="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
11494 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11499 # If the user did not use the arguments to specify the items to instantiate,
11500 # then the envvar interface is used. Set only those that are not.
11501 # We use the long form for the default assignment because of an extremely
11502 # bizarre bug on SunOS 4.1.3.
11503 if $ac_need_defaults; then
11504 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
11505 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
11506 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
11509 # Have a temporary directory for convenience. Make it in the build tree
11510 # simply because there is no reason against having it here, and in addition,
11511 # creating and moving files from /tmp can sometimes cause problems.
11512 # Hook for its removal unless debugging.
11513 # Note that there is a small window in which the directory will not be cleaned:
11514 # after its creation but before its name has been assigned to `$tmp'.
11518 trap 'exit_status=$?
11519 : "${ac_tmp:=$tmp}"
11520 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
11522 trap 'as_fn_exit 1' 1 2 13 15
11524 # Create a (secure) tmp directory for tmp files.
11527 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11531 tmp
=.
/conf$$
-$RANDOM
11532 (umask 077 && mkdir
"$tmp")
11533 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
11536 # Set up the scripts for CONFIG_FILES section.
11537 # No need to generate them if there are no CONFIG_FILES.
11538 # This happens for instance with `./config.status config.h'.
11539 if test -n "$CONFIG_FILES"; then
11542 ac_cr
=`echo X | tr X '\015'`
11543 # On cygwin, bash can eat \r inside `` if the user requested igncr.
11544 # But we know of no other shell where ac_cr would be empty at this
11545 # point, so we can use a bashism as a fallback.
11546 if test "x$ac_cr" = x
; then
11547 eval ac_cr
=\$
\'\\r
\'
11549 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11550 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11553 ac_cs_awk_cr
=$ac_cr
11556 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
11561 echo "cat >conf$$subs.awk <<_ACEOF" &&
11562 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11564 } >conf$$subs.sh ||
11565 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
11566 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
11568 for ac_last_try in false false false false false :; do
11569 . ./conf$$subs.sh ||
11570 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
11572 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
11573 if test $ac_delim_n = $ac_delim_num; then
11575 elif $ac_last_try; then
11576 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
11578 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
11581 rm -f conf$$subs.sh
11583 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11584 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
11588 s/^/S["/; s
/!.
*/"]=/
11598 s/\(.\{148\}\)..*/\1/
11600 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
11605 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
11612 s/\(.\{148\}\)..*/\1/
11614 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
11618 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
11623 ' <conf$$subs.awk | sed '
11628 ' >>$CONFIG_STATUS || ac_write_fail=1
11629 rm -f conf$$subs.awk
11630 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11632 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
11633 for (key in S) S_is_set[key] = 1
11639 nfields = split(line, field, "@
")
11641 len = length(field[1])
11642 for (i = 2; i < nfields; i++) {
11644 keylen = length(key)
11645 if (S_is_set[key]) {
11647 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11648 len += length(value) + length(field[++i])
11659 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11660 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11661 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
11664 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
11665 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
11668 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
11669 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
11670 # trailing colons and then remove the whole line if VPATH becomes empty
11671 # (actually we leave an empty line to preserve line numbers).
11672 if test "x
$srcdir" = x.; then
11673 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
11691 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11692 fi # test -n "$CONFIG_FILES"
11694 # Set up the scripts for CONFIG_HEADERS section.
11695 # No need to generate them if there are no CONFIG_HEADERS.
11696 # This happens for instance with `./config.status Makefile'.
11697 if test -n "$CONFIG_HEADERS"; then
11698 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
11702 # Transform confdefs.h into an awk script `defines.awk', embedded as
11703 # here-document in config.status, that substitutes the proper values into
11704 # config.h.in to produce config.h.
11706 # Create a delimiter string that does not exist in confdefs.h, to ease
11707 # handling of long lines.
11709 for ac_last_try in false false :; do
11710 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
11711 if test -z "$ac_tt"; then
11713 elif $ac_last_try; then
11714 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
11716 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
11720 # For the awk script, D is an array of macro values keyed by name,
11721 # likewise P contains macro parameters if any. Preserve backslash
11722 # newline sequences.
11724 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11726 s/.\{148\}/&'"$ac_delim"'/g
11729 s/^[ ]*#[ ]*define[ ][ ]*/ /
11736 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
11738 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
11742 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
11743 D["\
1"]=" \
3\\\\\\n
"\\/p
11745 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
11750 s/.\{148\}/&'"$ac_delim"'/g
11755 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
11758 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
11760 ' <confdefs.h | sed '
11761 s/'"$ac_delim"'/"\\\
11762 "/g' >>$CONFIG_STATUS || ac_write_fail=1
11764 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11765 for (key in D) D_is_set[key] = 1
11768 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11770 split(line, arg, " ")
11771 if (arg[1] == "#") {
11775 defundef
= substr
(arg
[1], 2)
11778 split(mac1
, mac2
, "(") #)
11780 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
11781 if (D_is_set
[macro
]) {
11782 # Preserve the white space surrounding the "#".
11783 print prefix
"define", macro P
[macro
] D
[macro
]
11786 # Replace #undef with comments. This is necessary, for example,
11787 # in the case of _POSIX_SOURCE, which is predefined and required
11788 # on some systems where configure will not decide to define it.
11789 if (defundef
== "undef") {
11790 print
"/*", prefix defundef
, macro
, "*/"
11798 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11799 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
11800 fi # test -n "$CONFIG_HEADERS"
11803 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
11808 :[FHLC
]) ac_mode
=$ac_tag; continue;;
11810 case $ac_mode$ac_tag in
11812 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
11813 :[FH
]-) ac_tag
=-:-;;
11814 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
11831 -) ac_f
="$ac_tmp/stdin";;
11832 *) # Look for the file first in the build tree, then in the source tree
11833 # (if the path is not absolute). The absolute path cannot be DOS-style,
11834 # because $ac_f cannot contain `:'.
11838 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
11840 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
11842 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
11843 as_fn_append ac_file_inputs
" '$ac_f'"
11846 # Let's still pretend it is `configure' which instantiates (i.e., don't
11847 # use $as_me), people would be surprised to read:
11848 # /* config.h. Generated by config.status. */
11849 configure_input
='Generated from '`
11850 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11852 if test x
"$ac_file" != x-
; then
11853 configure_input
="$ac_file. $configure_input"
11854 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
11855 $as_echo "$as_me: creating $ac_file" >&6;}
11857 # Neutralize special characters interpreted by sed in replacement strings.
11858 case $configure_input in #(
11859 *\
&* |
*\|
* |
*\\* )
11860 ac_sed_conf_input
=`$as_echo "$configure_input" |
11861 sed 's/[\\\\&|]/\\\\&/g'`;; #(
11862 *) ac_sed_conf_input
=$configure_input;;
11866 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
11867 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
11872 ac_dir
=`$as_dirname -- "$ac_file" ||
11873 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11874 X"$ac_file" : 'X\(//\)[^/]' \| \
11875 X"$ac_file" : 'X\(//\)$' \| \
11876 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11877 $as_echo X"$ac_file" |
11878 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11882 /^X\(\/\/\)[^/].*/{
11895 as_dir
="$ac_dir"; as_fn_mkdir_p
11899 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
11901 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
11902 # A ".." for each directory in $ac_dir_suffix.
11903 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11904 case $ac_top_builddir_sub in
11905 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
11906 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
11909 ac_abs_top_builddir
=$ac_pwd
11910 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
11911 # for backward compatibility:
11912 ac_top_builddir
=$ac_top_build_prefix
11915 .
) # We are building in place.
11917 ac_top_srcdir
=$ac_top_builddir_sub
11918 ac_abs_top_srcdir
=$ac_pwd ;;
11919 [\\/]* | ?
:[\\/]* ) # Absolute name.
11920 ac_srcdir
=$srcdir$ac_dir_suffix;
11921 ac_top_srcdir
=$srcdir
11922 ac_abs_top_srcdir
=$srcdir ;;
11923 *) # Relative name.
11924 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
11925 ac_top_srcdir
=$ac_top_build_prefix$srcdir
11926 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
11928 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
11938 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
11939 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
11941 ac_MKDIR_P
=$MKDIR_P
11943 [\\/$
]* | ?
:[\\/]* ) ;;
11944 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
11948 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11949 # If the template does not know about datarootdir, expand it.
11950 # FIXME: This hack should be removed a few years after 2.60.
11951 ac_datarootdir_hack
=; ac_datarootdir_seen
=
11962 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
11963 *datarootdir
*) ac_datarootdir_seen
=yes;;
11964 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
11965 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11966 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11968 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11969 ac_datarootdir_hack='
11970 s&@datadir@&$datadir&g
11971 s&@docdir@&$docdir&g
11972 s&@infodir@&$infodir&g
11973 s&@localedir@&$localedir&g
11974 s&@mandir@&$mandir&g
11975 s&\\\${datarootdir}&$datarootdir&g' ;;
11979 # Neutralize VPATH when `$srcdir' = `.'.
11980 # Shell code in configure.ac might set extrasub.
11981 # FIXME: do we really want to maintain this feature?
11982 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11983 ac_sed_extra="$ac_vpsub
11986 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11988 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
11989 s|@configure_input@|
$ac_sed_conf_input|
;t t
11990 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
11991 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
11992 s
&@srcdir@
&$ac_srcdir&;t t
11993 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
11994 s
&@top_srcdir@
&$ac_top_srcdir&;t t
11995 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
11996 s
&@builddir@
&$ac_builddir&;t t
11997 s
&@abs_builddir@
&$ac_abs_builddir&;t t
11998 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
11999 s
&@INSTALL@
&$ac_INSTALL&;t t
12000 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
12001 $ac_datarootdir_hack
12003 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
12004 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
12006 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12007 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
12008 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
12009 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
12010 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
12011 which seems to be undefined. Please make sure it is defined" >&5
12012 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
12013 which seems to be undefined. Please make sure it is defined" >&2;}
12015 rm -f "$ac_tmp/stdin"
12017 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12018 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12020 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12026 if test x"$ac_file" != x-; then
12028 $as_echo "/* $configure_input */" \
12029 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12030 } >"$ac_tmp/config.h" \
12031 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12032 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12033 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12034 $as_echo "$as_me: $ac_file is unchanged" >&6;}
12037 mv "$ac_tmp/config.h" "$ac_file" \
12038 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12041 $as_echo "/* $configure_input */" \
12042 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12043 || as_fn_error $? "could not create -" "$LINENO" 5
12045 # Compute "$ac_file"'s index
in $config_headers.
12048 for _am_header
in $config_headers :; do
12049 case $_am_header in
12050 $_am_arg |
$_am_arg:* )
12053 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
12056 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12057 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12058 X"$_am_arg" : 'X\(//\)[^/]' \| \
12059 X"$_am_arg" : 'X\(//\)$' \| \
12060 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12061 $as_echo X"$_am_arg" |
12062 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12066 /^X\(\/\/\)[^/].*/{
12078 s/.*/./; q'`/stamp-h
$_am_stamp_count
12081 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12082 $as_echo "$as_me: executing $ac_file commands" >&6;}
12087 case $ac_file$ac_mode in
12088 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
12089 # Older Autoconf quotes --file arguments for eval, but not when files
12090 # are listed without --file. Let's play safe and only enable the eval
12091 # if we detect the quoting.
12092 case $CONFIG_FILES in
12093 *\'*) eval set x
"$CONFIG_FILES" ;;
12094 *) set x
$CONFIG_FILES ;;
12099 # Strip MF so we end up with the name of the file.
12100 mf
=`echo "$mf" | sed -e 's/:.*$//'`
12101 # Check whether this is an Automake generated Makefile or not.
12102 # We used to match only the files named 'Makefile.in', but
12103 # some people rename them; so instead we look at the file content.
12104 # Grep'ing the first line is not enough: some people post-process
12105 # each Makefile.in and add a new line on top of each file to say so.
12106 # Grep'ing the whole file is not good either: AIX grep has a line
12107 # limit of 2048, but all sed's we know have understand at least 4000.
12108 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
12109 dirpart
=`$as_dirname -- "$mf" ||
12110 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12111 X"$mf" : 'X\(//\)[^/]' \| \
12112 X"$mf" : 'X\(//\)$' \| \
12113 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12115 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12119 /^X\(\/\/\)[^/].*/{
12135 # Extract the definition of DEPDIR, am__include, and am__quote
12136 # from the Makefile without running 'make'.
12137 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
12138 test -z "$DEPDIR" && continue
12139 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
12140 test -z "$am__include" && continue
12141 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
12142 # Find all dependency output files, they are included files with
12143 # $(DEPDIR) in their names. We invoke sed twice because it is the
12144 # simplest approach to changing $(DEPDIR) to its actual value in the
12146 for file in `sed -n "
12147 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12148 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
12149 # Make sure the directory exists.
12150 test -f "$dirpart/$file" && continue
12151 fdir
=`$as_dirname -- "$file" ||
12152 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12153 X"$file" : 'X\(//\)[^/]' \| \
12154 X"$file" : 'X\(//\)$' \| \
12155 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12156 $as_echo X"$file" |
12157 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12161 /^X\(\/\/\)[^/].*/{
12174 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
12175 # echo "creating $dirpart/$file"
12176 echo '# dummy' > "$dirpart/$file"
12182 for ac_file
in $CONFIG_FILES; do
12183 # Support "outfile[:infile[:infile...]]"
12185 *:*) ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
12187 # PO directories have a Makefile.in generated from Makefile.in.in.
12188 case "$ac_file" in */Makefile.
in)
12189 # Adjust a relative srcdir.
12190 ac_dir
=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
12191 ac_dir_suffix
=/`echo "$ac_dir"|sed 's%^\./%%'`
12192 ac_dots
=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
12193 # In autoconf-2.13 it is called $ac_given_srcdir.
12194 # In autoconf-2.50 it is called $srcdir.
12195 test -n "$ac_given_srcdir" || ac_given_srcdir
="$srcdir"
12196 case "$ac_given_srcdir" in
12197 .
) top_srcdir
=`echo $ac_dots|sed 's%/$%%'` ;;
12198 /*) top_srcdir
="$ac_given_srcdir" ;;
12199 *) top_srcdir
="$ac_dots$ac_given_srcdir" ;;
12201 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
12202 rm -f "$ac_dir/POTFILES"
12203 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" ||
echo "creating $ac_dir/POTFILES"
12204 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" |
sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," |
sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
12205 POMAKEFILEDEPS
="POTFILES.in"
12206 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
12207 # on $ac_dir but don't depend on user-specified configuration
12209 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
12210 # The LINGUAS file contains the set of available languages.
12211 if test -n "$OBSOLETE_ALL_LINGUAS"; then
12212 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.ac is obsolete" ||
echo "setting ALL_LINGUAS in configure.ac is obsolete"
12214 ALL_LINGUAS_
=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
12215 # Hide the ALL_LINGUAS assigment from automake.
12216 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
12217 POMAKEFILEDEPS
="$POMAKEFILEDEPS LINGUAS"
12219 # The set of available languages was given in configure.ac.
12220 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
12222 case "$ac_given_srcdir" in
12224 *) srcdirpre
='$(srcdir)/' ;;
12230 for lang
in $ALL_LINGUAS; do
12231 POFILES
="$POFILES $srcdirpre$lang.po"
12232 GMOFILES
="$GMOFILES $srcdirpre$lang.gmo"
12233 UPDATEPOFILES
="$UPDATEPOFILES $lang.po-update"
12234 DUMMYPOFILES
="$DUMMYPOFILES $lang.nop"
12236 # CATALOGS depends on both $ac_dir and the user's LINGUAS
12237 # environment variable.
12239 if test -n "$ALL_LINGUAS"; then
12240 for presentlang
in $ALL_LINGUAS; do
12242 if test "%UNSET%" != "$LINGUAS"; then
12243 desiredlanguages
="$LINGUAS"
12245 desiredlanguages
="$ALL_LINGUAS"
12247 for desiredlang
in $desiredlanguages; do
12248 # Use the presentlang catalog if desiredlang is
12249 # a. equal to presentlang, or
12250 # b. a variant of presentlang (because in this case,
12251 # presentlang can be used as a fallback for messages
12252 # which are not translated in the desiredlang catalog).
12253 case "$desiredlang" in
12254 "$presentlang"*) useit
=yes;;
12257 if test $useit = yes; then
12258 INST_LINGUAS
="$INST_LINGUAS $presentlang"
12263 if test -n "$INST_LINGUAS"; then
12264 for lang
in $INST_LINGUAS; do
12265 CATALOGS
="$CATALOGS $lang.gmo"
12268 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" ||
echo "creating $ac_dir/Makefile"
12269 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"
12270 for f
in "$ac_given_srcdir/$ac_dir"/Rules-
*; do
12271 if test -f "$f"; then
12273 *.orig |
*.bak |
*~
) ;;
12274 *) cat "$f" >> "$ac_dir/Makefile" ;;
12289 ac_clean_files
=$ac_clean_files_save
12291 test $ac_write_fail = 0 ||
12292 as_fn_error $?
"write failure creating $CONFIG_STATUS" "$LINENO" 5
12295 # configure is writing to config.log, and then calls config.status.
12296 # config.status does its own redirection, appending to config.log.
12297 # Unfortunately, on DOS this fails, as config.log is still kept open
12298 # by configure, so config.status won't be able to write to it; its
12299 # output is simply discarded. So we exec the FD to /dev/null,
12300 # effectively closing config.log, so it can be properly (re)opened and
12301 # appended to by config.status. When coming back to configure, we
12302 # need to make the FD available again.
12303 if test "$no_create" != yes; then
12305 ac_config_status_args
=
12306 test "$silent" = yes &&
12307 ac_config_status_args
="$ac_config_status_args --quiet"
12309 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
12311 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12312 # would make configure fail if this is the last instruction.
12313 $ac_cs_success || as_fn_exit
1
12315 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
12316 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12317 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}