2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for gold 0.1.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
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.
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 case \`(set -o) 2>/dev/null\` in #(
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165 exitcode=1; echo positional parameters were not saved.
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1"
173 if (eval "$as_required") 2>/dev/null; then :
178 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
183 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
186 test -z "$as_dir" && as_dir=.
190 for as_base in sh bash ksh sh5; do
191 # Try only shells that exist, to save several forks.
192 as_shell=$as_dir/$as_base
193 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
194 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
195 CONFIG_SHELL=$as_shell as_have_required=yes
196 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
204 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
206 CONFIG_SHELL=$SHELL as_have_required=yes
211 if test "x$CONFIG_SHELL" != x; then :
212 # We cannot yet assume a decent shell, so we have to provide a
213 # neutralization value for shells without unset; and this also
214 # works around shells that cannot unset nonexistent variables.
217 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
219 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222 if test x$as_have_required = xno; then :
223 $as_echo "$0: This script requires a shell more modern than all"
224 $as_echo "$0: the shells that I found on your system."
225 if test x${ZSH_VERSION+set} = xset ; then
226 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
229 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230 $0: including any error possibly output before this
231 $0: message. Then install a modern shell, or manually run
232 $0: the script under such a shell if you do have one."
238 SHELL=${CONFIG_SHELL-/bin/sh}
240 # Unset more variables known to interfere with behavior of common tools.
241 CLICOLOR_FORCE= GREP_OPTIONS=
242 unset CLICOLOR_FORCE GREP_OPTIONS
244 ## --------------------- ##
245 ## M4sh Shell Functions. ##
246 ## --------------------- ##
249 # Portably unset VAR.
252 { eval $1=; unset $1;}
256 # as_fn_set_status STATUS
257 # -----------------------
258 # Set $? to STATUS, without forking.
266 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
276 # Create "$as_dir" as a directory, including parents if necessary.
281 -*) as_dir=./$as_dir;;
283 test -d "$as_dir" || eval $as_mkdir_p || {
287 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290 as_dirs="'$as_qdir' $as_dirs"
291 as_dir=`$as_dirname -- "$as_dir" ||
292 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293 X"$as_dir" : 'X\(//\)[^/]' \| \
294 X"$as_dir" : 'X\(//\)$' \| \
295 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296 $as_echo X"$as_dir" |
297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
314 test -d "$as_dir" && break
316 test -z "$as_dirs" || eval "mkdir $as_dirs"
317 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
321 # as_fn_append VAR VALUE
322 # ----------------------
323 # Append the text in VALUE to the end of the definition contained in VAR. Take
324 # advantage of any shell optimizations that allow amortized linear growth over
325 # repeated appends, instead of the typical quadratic growth present in naive
327 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
328 eval 'as_fn_append ()
341 # Perform arithmetic evaluation on the ARGs, and store the result in the
342 # global $as_val. Take advantage of shells that can avoid forks. The arguments
343 # must be portable across $(()) and expr.
344 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
352 as_val=`expr "$@" || test $? -eq 1`
357 # as_fn_error ERROR [LINENO LOG_FD]
358 # ---------------------------------
359 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361 # script with status $?, using 1 if that was 0.
364 as_status=$?; test $as_status -eq 0 && as_status=1
366 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
367 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
369 $as_echo "$as_me: error: $1" >&2
370 as_fn_exit $as_status
373 if expr a : '\(a\)' >/dev/null 2>&1 &&
374 test "X`expr 00001 : '.*\(...\)'`" = X001; then
380 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
386 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
392 as_me=`$as_basename -- "$0" ||
393 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394 X"$0" : 'X\(//\)$' \| \
395 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
397 sed '/^.*\/\([^/][^/]*\)\/*$/{
411 # Avoid depending upon Character Ranges.
412 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415 as_cr_digits='0123456789'
416 as_cr_alnum=$as_cr_Letters$as_cr_digits
419 as_lineno_1=$LINENO as_lineno_1a=$LINENO
420 as_lineno_2=$LINENO as_lineno_2a=$LINENO
421 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
423 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
435 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
439 chmod +x "$as_me.lineno" ||
440 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
442 # Don't try to exec as it changes $[0], causing all sort of problems
443 # (the dirname of $[0] is not the place where we might find the
444 # original and so on. Autoconf is especially sensitive to this).
446 # Exit status is that of the last command.
450 ECHO_C= ECHO_N= ECHO_T=
451 case `echo -n x` in #(((((
453 case `echo 'xy\c'` in
454 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
456 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
463 rm -f conf$$ conf$$.exe conf$$.file
464 if test -d conf$$.dir; then
465 rm -f conf$$.dir/conf$$.file
468 mkdir conf$$.dir 2>/dev/null
470 if (echo >conf$$.file) 2>/dev/null; then
471 if ln -s conf$$.file conf$$ 2>/dev/null; then
473 # ... but there are two gotchas:
474 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476 # In both cases, we have to default to `cp -p'.
477 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
479 elif ln conf$$.file conf$$ 2>/dev/null; then
487 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488 rmdir conf$$.dir 2>/dev/null
490 if mkdir -p . 2>/dev/null; then
491 as_mkdir_p='mkdir -p "$as_dir"'
493 test -d ./-p && rmdir ./-p
497 if test -x / >/dev/null 2>&1; then
500 if ls -dL / >/dev/null 2>&1; then
507 if test -d "$1"; then
513 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514 ???[sx]*):;;*)false;;esac;fi
518 as_executable_p=$as_test_x
520 # Sed expression to map a string onto a valid CPP name.
521 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
523 # Sed expression to map a string onto a valid variable name.
524 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
527 exec 7<&0 </dev/null 6>&1
530 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
531 # so uname gets run too.
532 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
537 ac_default_prefix=/usr/local
539 ac_config_libobj_dir=.
546 # Identity of this package.
548 PACKAGE_TARNAME='gold'
549 PACKAGE_VERSION='0.1'
550 PACKAGE_STRING='gold 0.1'
554 ac_unique_file="gold.cc"
555 # Factoring default headers for most tests.
556 ac_includes_default="\
558 #ifdef HAVE_SYS_TYPES_H
559 # include <sys/types.h>
561 #ifdef HAVE_SYS_STAT_H
562 # include <sys/stat.h>
568 # ifdef HAVE_STDLIB_H
573 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
578 #ifdef HAVE_STRINGS_H
579 # include <strings.h>
581 #ifdef HAVE_INTTYPES_H
582 # include <inttypes.h>
591 ac_subst_vars='am__EXEEXT_FALSE
595 MAINTAINER_MODE_FALSE
599 HAVE_NO_USE_LINKER_PLUGIN_FALSE
600 HAVE_NO_USE_LINKER_PLUGIN_TRUE
618 TLS_DESCRIPTORS_FALSE
620 TLS_GNU2_DIALECT_FALSE
621 TLS_GNU2_DIALECT_TRUE
631 FN_PTRS_IN_SO_WITHOUT_PIC_FALSE
632 FN_PTRS_IN_SO_WITHOUT_PIC_TRUE
635 NATIVE_OR_CROSS_LINKER_FALSE
636 NATIVE_OR_CROSS_LINKER_TRUE
689 DEFAULT_TARGET_MIPS_FALSE
690 DEFAULT_TARGET_MIPS_TRUE
691 DEFAULT_TARGET_TILEGX_FALSE
692 DEFAULT_TARGET_TILEGX_TRUE
693 DEFAULT_TARGET_X32_FALSE
694 DEFAULT_TARGET_X32_TRUE
695 DEFAULT_TARGET_X86_64_FALSE
696 DEFAULT_TARGET_X86_64_TRUE
697 DEFAULT_TARGET_S390_FALSE
698 DEFAULT_TARGET_S390_TRUE
699 DEFAULT_TARGET_SPARC_FALSE
700 DEFAULT_TARGET_SPARC_TRUE
701 DEFAULT_TARGET_POWERPC_FALSE
702 DEFAULT_TARGET_POWERPC_TRUE
703 DEFAULT_TARGET_I386_FALSE
704 DEFAULT_TARGET_I386_TRUE
705 DEFAULT_TARGET_ARM_FALSE
706 DEFAULT_TARGET_ARM_TRUE
707 DEFAULT_TARGET_AARCH64_FALSE
708 DEFAULT_TARGET_AARCH64_TRUE
723 INSTALL_STRIP_PROGRAM
777 program_transform_name
790 enable_option_checking
798 enable_dependency_tracking
801 enable_build_warnings
805 enable_maintainer_mode
807 ac_precious_vars='build_alias
824 # Initialize some variables set by options.
826 ac_init_version=false
827 ac_unrecognized_opts=
829 # The variables have the same names as the options, with
830 # dashes changed to underlines.
838 program_transform_name=s,x,x,
846 # Installation directory options.
847 # These are left unexpanded so users can "make install exec_prefix=/foo"
848 # and all the variables that are supposed to be based on exec_prefix
849 # by default will actually change.
850 # Use braces instead of parens because sh, perl, etc. also accept them.
851 # (The list follows the same order as the GNU Coding Standards.)
852 bindir='${exec_prefix}/bin'
853 sbindir='${exec_prefix}/sbin'
854 libexecdir='${exec_prefix}/libexec'
855 datarootdir='${prefix}/share'
856 datadir='${datarootdir}'
857 sysconfdir='${prefix}/etc'
858 sharedstatedir='${prefix}/com'
859 localstatedir='${prefix}/var'
860 includedir='${prefix}/include'
861 oldincludedir='/usr/include'
862 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
863 infodir='${datarootdir}/info'
868 libdir='${exec_prefix}/lib'
869 localedir='${datarootdir}/locale'
870 mandir='${datarootdir}/man'
876 # If the previous option needs an argument, assign it.
877 if test -n "$ac_prev"; then
878 eval $ac_prev=\$ac_option
884 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
888 # Accept the important Cygnus configure options, so we can diagnose typos.
890 case $ac_dashdash$ac_option in
894 -bindir | --bindir | --bindi | --bind | --bin | --bi)
896 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
899 -build | --build | --buil | --bui | --bu)
900 ac_prev=build_alias ;;
901 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
902 build_alias=$ac_optarg ;;
904 -cache-file | --cache-file | --cache-fil | --cache-fi \
905 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
906 ac_prev=cache_file ;;
907 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
908 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
909 cache_file=$ac_optarg ;;
912 cache_file=config.cache ;;
914 -datadir | --datadir | --datadi | --datad)
916 -datadir=* | --datadir=* | --datadi=* | --datad=*)
917 datadir=$ac_optarg ;;
919 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
920 | --dataroo | --dataro | --datar)
921 ac_prev=datarootdir ;;
922 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
923 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
924 datarootdir=$ac_optarg ;;
926 -disable-* | --disable-*)
927 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
928 # Reject names that are not valid shell variable names.
929 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
930 as_fn_error "invalid feature name: $ac_useropt"
931 ac_useropt_orig=$ac_useropt
932 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
933 case $ac_user_opts in
937 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
938 ac_unrecognized_sep=', ';;
940 eval enable_$ac_useropt=no ;;
942 -docdir | --docdir | --docdi | --doc | --do)
944 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
947 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
949 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
952 -enable-* | --enable-*)
953 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
954 # Reject names that are not valid shell variable names.
955 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
956 as_fn_error "invalid feature name: $ac_useropt"
957 ac_useropt_orig=$ac_useropt
958 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
959 case $ac_user_opts in
963 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
964 ac_unrecognized_sep=', ';;
966 eval enable_$ac_useropt=\$ac_optarg ;;
968 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
969 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
970 | --exec | --exe | --ex)
971 ac_prev=exec_prefix ;;
972 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
973 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
974 | --exec=* | --exe=* | --ex=*)
975 exec_prefix=$ac_optarg ;;
977 -gas | --gas | --ga | --g)
978 # Obsolete; use --with-gas.
981 -help | --help | --hel | --he | -h)
983 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
984 ac_init_help=recursive ;;
985 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
986 ac_init_help=short ;;
988 -host | --host | --hos | --ho)
989 ac_prev=host_alias ;;
990 -host=* | --host=* | --hos=* | --ho=*)
991 host_alias=$ac_optarg ;;
993 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
995 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
997 htmldir=$ac_optarg ;;
999 -includedir | --includedir | --includedi | --included | --include \
1000 | --includ | --inclu | --incl | --inc)
1001 ac_prev=includedir ;;
1002 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1003 | --includ=* | --inclu=* | --incl=* | --inc=*)
1004 includedir=$ac_optarg ;;
1006 -infodir | --infodir | --infodi | --infod | --info | --inf)
1008 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1009 infodir=$ac_optarg ;;
1011 -libdir | --libdir | --libdi | --libd)
1013 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1014 libdir=$ac_optarg ;;
1016 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1017 | --libexe | --libex | --libe)
1018 ac_prev=libexecdir ;;
1019 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1020 | --libexe=* | --libex=* | --libe=*)
1021 libexecdir=$ac_optarg ;;
1023 -localedir | --localedir | --localedi | --localed | --locale)
1024 ac_prev=localedir ;;
1025 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1026 localedir=$ac_optarg ;;
1028 -localstatedir | --localstatedir | --localstatedi | --localstated \
1029 | --localstate | --localstat | --localsta | --localst | --locals)
1030 ac_prev=localstatedir ;;
1031 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1032 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1033 localstatedir=$ac_optarg ;;
1035 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1037 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1038 mandir=$ac_optarg ;;
1040 -nfp | --nfp | --nf)
1041 # Obsolete; use --without-fp.
1044 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1045 | --no-cr | --no-c | -n)
1048 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1049 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1052 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1053 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1054 | --oldin | --oldi | --old | --ol | --o)
1055 ac_prev=oldincludedir ;;
1056 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1057 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1058 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1059 oldincludedir=$ac_optarg ;;
1061 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1063 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1064 prefix=$ac_optarg ;;
1066 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1067 | --program-pre | --program-pr | --program-p)
1068 ac_prev=program_prefix ;;
1069 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1070 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1071 program_prefix=$ac_optarg ;;
1073 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1074 | --program-suf | --program-su | --program-s)
1075 ac_prev=program_suffix ;;
1076 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1077 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1078 program_suffix=$ac_optarg ;;
1080 -program-transform-name | --program-transform-name \
1081 | --program-transform-nam | --program-transform-na \
1082 | --program-transform-n | --program-transform- \
1083 | --program-transform | --program-transfor \
1084 | --program-transfo | --program-transf \
1085 | --program-trans | --program-tran \
1086 | --progr-tra | --program-tr | --program-t)
1087 ac_prev=program_transform_name ;;
1088 -program-transform-name=* | --program-transform-name=* \
1089 | --program-transform-nam=* | --program-transform-na=* \
1090 | --program-transform-n=* | --program-transform-=* \
1091 | --program-transform=* | --program-transfor=* \
1092 | --program-transfo=* | --program-transf=* \
1093 | --program-trans=* | --program-tran=* \
1094 | --progr-tra=* | --program-tr=* | --program-t=*)
1095 program_transform_name=$ac_optarg ;;
1097 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1099 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1100 pdfdir=$ac_optarg ;;
1102 -psdir | --psdir | --psdi | --psd | --ps)
1104 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1107 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1108 | -silent | --silent | --silen | --sile | --sil)
1111 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1113 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1115 sbindir=$ac_optarg ;;
1117 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1118 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1119 | --sharedst | --shareds | --shared | --share | --shar \
1121 ac_prev=sharedstatedir ;;
1122 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1123 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1124 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1126 sharedstatedir=$ac_optarg ;;
1128 -site | --site | --sit)
1130 -site=* | --site=* | --sit=*)
1133 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1135 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1136 srcdir=$ac_optarg ;;
1138 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1139 | --syscon | --sysco | --sysc | --sys | --sy)
1140 ac_prev=sysconfdir ;;
1141 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1142 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1143 sysconfdir=$ac_optarg ;;
1145 -target | --target | --targe | --targ | --tar | --ta | --t)
1146 ac_prev=target_alias ;;
1147 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1148 target_alias=$ac_optarg ;;
1150 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1153 -version | --version | --versio | --versi | --vers | -V)
1154 ac_init_version=: ;;
1157 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1158 # Reject names that are not valid shell variable names.
1159 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1160 as_fn_error "invalid package name: $ac_useropt"
1161 ac_useropt_orig=$ac_useropt
1162 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1163 case $ac_user_opts in
1167 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1168 ac_unrecognized_sep=', ';;
1170 eval with_$ac_useropt=\$ac_optarg ;;
1172 -without-* | --without-*)
1173 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1174 # Reject names that are not valid shell variable names.
1175 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1176 as_fn_error "invalid package name: $ac_useropt"
1177 ac_useropt_orig=$ac_useropt
1178 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1179 case $ac_user_opts in
1183 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1184 ac_unrecognized_sep=', ';;
1186 eval with_$ac_useropt=no ;;
1189 # Obsolete; use --with-x.
1192 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1193 | --x-incl | --x-inc | --x-in | --x-i)
1194 ac_prev=x_includes ;;
1195 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1196 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1197 x_includes=$ac_optarg ;;
1199 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1200 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1201 ac_prev=x_libraries ;;
1202 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1203 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1204 x_libraries=$ac_optarg ;;
1206 -*) as_fn_error "unrecognized option: \`$ac_option'
1207 Try \`$0 --help' for more information."
1211 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1212 # Reject names that are not valid shell variable names.
1213 case $ac_envvar in #(
1214 '' | [0-9]* | *[!_$as_cr_alnum]* )
1215 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1217 eval $ac_envvar=\$ac_optarg
1218 export $ac_envvar ;;
1221 # FIXME: should be removed in autoconf 3.0.
1222 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1223 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1224 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1225 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1231 if test -n "$ac_prev"; then
1232 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1233 as_fn_error "missing argument to $ac_option"
1236 if test -n "$ac_unrecognized_opts"; then
1237 case $enable_option_checking in
1239 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1240 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1244 # Check all directory arguments for consistency.
1245 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1246 datadir sysconfdir sharedstatedir localstatedir includedir \
1247 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1248 libdir localedir mandir
1250 eval ac_val=\$$ac_var
1251 # Remove trailing slashes.
1254 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1255 eval $ac_var=\$ac_val;;
1257 # Be sure to have absolute directory names.
1259 [\\/$]* | ?:[\\/]* ) continue;;
1260 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1262 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1265 # There might be people who depend on the old broken behavior: `$host'
1266 # used to hold the argument of --host etc.
1267 # FIXME: To remove some day.
1270 target=$target_alias
1272 # FIXME: To remove some day.
1273 if test "x$host_alias" != x; then
1274 if test "x$build_alias" = x; then
1275 cross_compiling=maybe
1276 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1277 If a cross compiler is detected then cross compile mode will be used." >&2
1278 elif test "x$build_alias" != "x$host_alias"; then
1284 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1286 test "$silent" = yes && exec 6>/dev/null
1289 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1290 ac_ls_di=`ls -di .` &&
1291 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1292 as_fn_error "working directory cannot be determined"
1293 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1294 as_fn_error "pwd does not report name of working directory"
1297 # Find the source files, if location was not specified.
1298 if test -z "$srcdir"; then
1299 ac_srcdir_defaulted=yes
1300 # Try the directory containing this script, then the parent directory.
1301 ac_confdir=`$as_dirname -- "$as_myself" ||
1302 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1303 X"$as_myself" : 'X\(//\)[^/]' \| \
1304 X"$as_myself" : 'X\(//\)$' \| \
1305 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1306 $as_echo X"$as_myself" |
1307 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1325 if test ! -r "$srcdir/$ac_unique_file"; then
1329 ac_srcdir_defaulted=no
1331 if test ! -r "$srcdir/$ac_unique_file"; then
1332 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1333 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1335 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1337 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1339 # When building in place, set srcdir=.
1340 if test "$ac_abs_confdir" = "$ac_pwd"; then
1343 # Remove unnecessary trailing slashes from srcdir.
1344 # Double slashes in file names in object file debugging info
1345 # mess up M-x gdb in Emacs.
1347 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1349 for ac_var in $ac_precious_vars; do
1350 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1351 eval ac_env_${ac_var}_value=\$${ac_var}
1352 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1353 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1357 # Report the --help message.
1359 if test "$ac_init_help" = "long"; then
1360 # Omit some internal or obsolete options to make the list less imposing.
1361 # This message is too long to be a string in the A/UX 3.1 sh.
1363 \`configure' configures gold 0.1 to adapt to many kinds of systems.
1365 Usage: $0 [OPTION]... [VAR=VALUE]...
1367 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1368 VAR=VALUE. See below for descriptions of some of the useful variables.
1370 Defaults for the options are specified in brackets.
1373 -h, --help display this help and exit
1374 --help=short display options specific to this package
1375 --help=recursive display the short help of all the included packages
1376 -V, --version display version information and exit
1377 -q, --quiet, --silent do not print \`checking...' messages
1378 --cache-file=FILE cache test results in FILE [disabled]
1379 -C, --config-cache alias for \`--cache-file=config.cache'
1380 -n, --no-create do not create output files
1381 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1383 Installation directories:
1384 --prefix=PREFIX install architecture-independent files in PREFIX
1385 [$ac_default_prefix]
1386 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1389 By default, \`make install' will install all the files in
1390 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1391 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1392 for instance \`--prefix=\$HOME'.
1394 For better control, use the options below.
1396 Fine tuning of the installation directories:
1397 --bindir=DIR user executables [EPREFIX/bin]
1398 --sbindir=DIR system admin executables [EPREFIX/sbin]
1399 --libexecdir=DIR program executables [EPREFIX/libexec]
1400 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1401 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1402 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1403 --libdir=DIR object code libraries [EPREFIX/lib]
1404 --includedir=DIR C header files [PREFIX/include]
1405 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1406 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1407 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1408 --infodir=DIR info documentation [DATAROOTDIR/info]
1409 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1410 --mandir=DIR man documentation [DATAROOTDIR/man]
1411 --docdir=DIR documentation root [DATAROOTDIR/doc/gold]
1412 --htmldir=DIR html documentation [DOCDIR]
1413 --dvidir=DIR dvi documentation [DOCDIR]
1414 --pdfdir=DIR pdf documentation [DOCDIR]
1415 --psdir=DIR ps documentation [DOCDIR]
1421 --program-prefix=PREFIX prepend PREFIX to installed program names
1422 --program-suffix=SUFFIX append SUFFIX to installed program names
1423 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1426 --build=BUILD configure for building on BUILD [guessed]
1427 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1428 --target=TARGET configure for building compilers for TARGET [HOST]
1432 if test -n "$ac_init_help"; then
1433 case $ac_init_help in
1434 short | recursive ) echo "Configuration of gold 0.1:";;
1439 --disable-option-checking ignore unrecognized --enable/--with options
1440 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1441 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1442 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1443 --enable-threads multi-threaded linking
1444 --enable-plugins linker plugins
1445 --enable-relro enable -z relro in ELF linker by default
1446 --enable-targets alternative target configurations
1447 --disable-dependency-tracking speeds up one-time build
1448 --enable-dependency-tracking do not reject slow dependency extractors
1449 --disable-nls do not use Native Language Support
1450 --enable-werror treat compile warnings as errors
1451 --enable-build-warnings enable build-time compiler warnings
1452 --enable-maintainer-mode enable make rules and dependencies not useful
1453 (and sometimes confusing) to the casual installer
1456 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1457 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1458 --with-sysroot=DIR search for usr/lib et al within DIR
1459 --with-lib-path=dir1:dir2... set default LIB_PATH
1460 --with-gold-ldflags=FLAGS additional link flags for gold
1461 --with-gold-ldadd=LIBS additional libraries for gold
1462 --with-system-zlib use installed libz
1464 Some influential environment variables:
1465 CC C compiler command
1466 CFLAGS C compiler flags
1467 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1468 nonstandard directory <lib dir>
1469 LIBS libraries to pass to the linker, e.g. -l<library>
1470 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1471 you have headers in a nonstandard directory <include dir>
1472 CXX C++ compiler command
1473 CXXFLAGS C++ compiler flags
1474 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1475 the first program found out of: `bison -y', `byacc', `yacc'.
1476 YFLAGS The list of arguments that will be passed by default to $YACC.
1477 This script will default YFLAGS to the empty string to avoid a
1478 default value of `-d' given by some make applications.
1480 CXXCPP C++ preprocessor
1482 Use these variables to override the choices made by `configure' or to help
1483 it to find libraries and programs with nonstandard names/locations.
1485 Report bugs to the package provider.
1490 if test "$ac_init_help" = "recursive"; then
1491 # If there are subdirs, report their specific --help.
1492 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1493 test -d "$ac_dir" ||
1494 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1499 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1501 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1502 # A ".." for each directory in $ac_dir_suffix.
1503 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1504 case $ac_top_builddir_sub in
1505 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1506 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1509 ac_abs_top_builddir=$ac_pwd
1510 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1511 # for backward compatibility:
1512 ac_top_builddir=$ac_top_build_prefix
1515 .) # We are building in place.
1517 ac_top_srcdir=$ac_top_builddir_sub
1518 ac_abs_top_srcdir=$ac_pwd ;;
1519 [\\/]* | ?:[\\/]* ) # Absolute name.
1520 ac_srcdir=$srcdir$ac_dir_suffix;
1521 ac_top_srcdir=$srcdir
1522 ac_abs_top_srcdir=$srcdir ;;
1524 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1525 ac_top_srcdir=$ac_top_build_prefix$srcdir
1526 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1528 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1530 cd "$ac_dir" || { ac_status=$?; continue; }
1531 # Check for guested configure.
1532 if test -f "$ac_srcdir/configure.gnu"; then
1534 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1535 elif test -f "$ac_srcdir/configure"; then
1537 $SHELL "$ac_srcdir/configure" --help=recursive
1539 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1541 cd "$ac_pwd" || { ac_status=$?; break; }
1545 test -n "$ac_init_help" && exit $ac_status
1546 if $ac_init_version; then
1549 generated by GNU Autoconf 2.64
1551 Copyright (C) 2009 Free Software Foundation, Inc.
1552 This configure script is free software; the Free Software Foundation
1553 gives unlimited permission to copy, distribute and modify it.
1558 ## ------------------------ ##
1559 ## Autoconf initialization. ##
1560 ## ------------------------ ##
1562 # ac_fn_c_try_compile LINENO
1563 # --------------------------
1564 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1565 ac_fn_c_try_compile ()
1567 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1568 rm -f conftest.$ac_objext
1569 if { { ac_try="$ac_compile"
1571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1572 *) ac_try_echo=$ac_try;;
1574 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1575 $as_echo "$ac_try_echo"; } >&5
1576 (eval "$ac_compile") 2>conftest.err
1578 if test -s conftest.err; then
1579 grep -v '^ *+' conftest.err >conftest.er1
1580 cat conftest.er1 >&5
1581 mv -f conftest.er1 conftest.err
1583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1584 test $ac_status = 0; } && {
1585 test -z "$ac_c_werror_flag" ||
1586 test ! -s conftest.err
1587 } && test -s conftest.$ac_objext; then :
1590 $as_echo "$as_me: failed program was:" >&5
1591 sed 's/^/| /' conftest.$ac_ext >&5
1595 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1598 } # ac_fn_c_try_compile
1600 # ac_fn_cxx_try_compile LINENO
1601 # ----------------------------
1602 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1603 ac_fn_cxx_try_compile ()
1605 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1606 rm -f conftest.$ac_objext
1607 if { { ac_try="$ac_compile"
1609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1610 *) ac_try_echo=$ac_try;;
1612 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1613 $as_echo "$ac_try_echo"; } >&5
1614 (eval "$ac_compile") 2>conftest.err
1616 if test -s conftest.err; then
1617 grep -v '^ *+' conftest.err >conftest.er1
1618 cat conftest.er1 >&5
1619 mv -f conftest.er1 conftest.err
1621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1622 test $ac_status = 0; } && {
1623 test -z "$ac_cxx_werror_flag" ||
1624 test ! -s conftest.err
1625 } && test -s conftest.$ac_objext; then :
1628 $as_echo "$as_me: failed program was:" >&5
1629 sed 's/^/| /' conftest.$ac_ext >&5
1633 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1636 } # ac_fn_cxx_try_compile
1638 # ac_fn_c_try_cpp LINENO
1639 # ----------------------
1640 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1643 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1644 if { { ac_try="$ac_cpp conftest.$ac_ext"
1646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1647 *) ac_try_echo=$ac_try;;
1649 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1650 $as_echo "$ac_try_echo"; } >&5
1651 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1653 if test -s conftest.err; then
1654 grep -v '^ *+' conftest.err >conftest.er1
1655 cat conftest.er1 >&5
1656 mv -f conftest.er1 conftest.err
1658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1659 test $ac_status = 0; } >/dev/null && {
1660 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1661 test ! -s conftest.err
1665 $as_echo "$as_me: failed program was:" >&5
1666 sed 's/^/| /' conftest.$ac_ext >&5
1670 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1675 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1676 # -------------------------------------------------------
1677 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1678 # the include files in INCLUDES and setting the cache variable VAR
1680 ac_fn_c_check_header_mongrel ()
1682 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1683 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1685 $as_echo_n "checking for $2... " >&6; }
1686 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1687 $as_echo_n "(cached) " >&6
1690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1691 $as_echo "$ac_res" >&6; }
1693 # Is the header compilable?
1694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1695 $as_echo_n "checking $2 usability... " >&6; }
1696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1697 /* end confdefs.h. */
1701 if ac_fn_c_try_compile "$LINENO"; then :
1702 ac_header_compiler=yes
1704 ac_header_compiler=no
1706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1708 $as_echo "$ac_header_compiler" >&6; }
1710 # Is the header present?
1711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1712 $as_echo_n "checking $2 presence... " >&6; }
1713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1714 /* end confdefs.h. */
1717 if ac_fn_c_try_cpp "$LINENO"; then :
1718 ac_header_preproc=yes
1720 ac_header_preproc=no
1722 rm -f conftest.err conftest.$ac_ext
1723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1724 $as_echo "$ac_header_preproc" >&6; }
1726 # So? What about this header?
1727 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1729 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1730 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1731 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1732 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1735 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1736 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1737 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1738 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1739 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1740 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1741 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1742 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1743 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1744 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1748 $as_echo_n "checking for $2... " >&6; }
1749 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1750 $as_echo_n "(cached) " >&6
1752 eval "$3=\$ac_header_compiler"
1755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1756 $as_echo "$ac_res" >&6; }
1758 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1760 } # ac_fn_c_check_header_mongrel
1762 # ac_fn_c_try_run LINENO
1763 # ----------------------
1764 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1765 # that executables *can* be run.
1768 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1769 if { { ac_try="$ac_link"
1771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1772 *) ac_try_echo=$ac_try;;
1774 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1775 $as_echo "$ac_try_echo"; } >&5
1776 (eval "$ac_link") 2>&5
1778 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1779 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1780 { { case "(($ac_try" in
1781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1782 *) ac_try_echo=$ac_try;;
1784 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1785 $as_echo "$ac_try_echo"; } >&5
1786 (eval "$ac_try") 2>&5
1788 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1789 test $ac_status = 0; }; }; then :
1792 $as_echo "$as_me: program exited with status $ac_status" >&5
1793 $as_echo "$as_me: failed program was:" >&5
1794 sed 's/^/| /' conftest.$ac_ext >&5
1796 ac_retval=$ac_status
1798 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1799 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1804 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1805 # -------------------------------------------------------
1806 # Tests whether HEADER exists and can be compiled using the include files in
1807 # INCLUDES, setting the cache variable VAR accordingly.
1808 ac_fn_c_check_header_compile ()
1810 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1812 $as_echo_n "checking for $2... " >&6; }
1813 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1814 $as_echo_n "(cached) " >&6
1816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1817 /* end confdefs.h. */
1821 if ac_fn_c_try_compile "$LINENO"; then :
1826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1830 $as_echo "$ac_res" >&6; }
1831 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1833 } # ac_fn_c_check_header_compile
1835 # ac_fn_c_try_link LINENO
1836 # -----------------------
1837 # Try to link conftest.$ac_ext, and return whether this succeeded.
1840 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1841 rm -f conftest.$ac_objext conftest$ac_exeext
1842 if { { ac_try="$ac_link"
1844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1845 *) ac_try_echo=$ac_try;;
1847 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1848 $as_echo "$ac_try_echo"; } >&5
1849 (eval "$ac_link") 2>conftest.err
1851 if test -s conftest.err; then
1852 grep -v '^ *+' conftest.err >conftest.er1
1853 cat conftest.er1 >&5
1854 mv -f conftest.er1 conftest.err
1856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1857 test $ac_status = 0; } && {
1858 test -z "$ac_c_werror_flag" ||
1859 test ! -s conftest.err
1860 } && test -s conftest$ac_exeext && {
1861 test "$cross_compiling" = yes ||
1862 $as_test_x conftest$ac_exeext
1866 $as_echo "$as_me: failed program was:" >&5
1867 sed 's/^/| /' conftest.$ac_ext >&5
1871 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1872 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1873 # interfere with the next link command; also delete a directory that is
1874 # left behind by Apple's compiler. We do this before executing the actions.
1875 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1876 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1879 } # ac_fn_c_try_link
1881 # ac_fn_c_check_func LINENO FUNC VAR
1882 # ----------------------------------
1883 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1884 ac_fn_c_check_func ()
1886 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1888 $as_echo_n "checking for $2... " >&6; }
1889 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1890 $as_echo_n "(cached) " >&6
1892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1893 /* end confdefs.h. */
1894 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1895 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1896 #define $2 innocuous_$2
1898 /* System header to define __stub macros and hopefully few prototypes,
1899 which can conflict with char $2 (); below.
1900 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1901 <limits.h> exists even on freestanding compilers. */
1904 # include <limits.h>
1906 # include <assert.h>
1911 /* Override any GCC internal prototype to avoid an error.
1912 Use char because int might match the return type of a GCC
1913 builtin and then its argument prototype would still apply. */
1918 /* The GNU C library defines this for functions which it implements
1919 to always fail with ENOSYS. Some functions are actually named
1920 something starting with __ and the normal name is an alias. */
1921 #if defined __stub_$2 || defined __stub___$2
1933 if ac_fn_c_try_link "$LINENO"; then :
1938 rm -f core conftest.err conftest.$ac_objext \
1939 conftest$ac_exeext conftest.$ac_ext
1942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1943 $as_echo "$ac_res" >&6; }
1944 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1946 } # ac_fn_c_check_func
1948 # ac_fn_c_check_decl LINENO SYMBOL VAR
1949 # ------------------------------------
1950 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
1951 ac_fn_c_check_decl ()
1953 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1954 as_decl_name=`echo $2|sed 's/ *(.*//'`
1955 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1957 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1958 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1959 $as_echo_n "(cached) " >&6
1961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1962 /* end confdefs.h. */
1967 #ifndef $as_decl_name
1969 (void) $as_decl_use;
1971 (void) $as_decl_name;
1979 if ac_fn_c_try_compile "$LINENO"; then :
1984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1988 $as_echo "$ac_res" >&6; }
1989 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1991 } # ac_fn_c_check_decl
1993 # ac_fn_cxx_try_cpp LINENO
1994 # ------------------------
1995 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1996 ac_fn_cxx_try_cpp ()
1998 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1999 if { { ac_try="$ac_cpp conftest.$ac_ext"
2001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2002 *) ac_try_echo=$ac_try;;
2004 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2005 $as_echo "$ac_try_echo"; } >&5
2006 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2008 if test -s conftest.err; then
2009 grep -v '^ *+' conftest.err >conftest.er1
2010 cat conftest.er1 >&5
2011 mv -f conftest.er1 conftest.err
2013 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2014 test $ac_status = 0; } >/dev/null && {
2015 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2016 test ! -s conftest.err
2020 $as_echo "$as_me: failed program was:" >&5
2021 sed 's/^/| /' conftest.$ac_ext >&5
2025 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2028 } # ac_fn_cxx_try_cpp
2030 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2031 # ---------------------------------------------------------
2032 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2033 # the include files in INCLUDES and setting the cache variable VAR
2035 ac_fn_cxx_check_header_mongrel ()
2037 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2038 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2040 $as_echo_n "checking for $2... " >&6; }
2041 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2042 $as_echo_n "(cached) " >&6
2045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2046 $as_echo "$ac_res" >&6; }
2048 # Is the header compilable?
2049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2050 $as_echo_n "checking $2 usability... " >&6; }
2051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2052 /* end confdefs.h. */
2056 if ac_fn_cxx_try_compile "$LINENO"; then :
2057 ac_header_compiler=yes
2059 ac_header_compiler=no
2061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2063 $as_echo "$ac_header_compiler" >&6; }
2065 # Is the header present?
2066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2067 $as_echo_n "checking $2 presence... " >&6; }
2068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2069 /* end confdefs.h. */
2072 if ac_fn_cxx_try_cpp "$LINENO"; then :
2073 ac_header_preproc=yes
2075 ac_header_preproc=no
2077 rm -f conftest.err conftest.$ac_ext
2078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2079 $as_echo "$ac_header_preproc" >&6; }
2081 # So? What about this header?
2082 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2084 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2085 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2086 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2087 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2090 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2091 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2092 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2093 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2094 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2095 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2096 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2097 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2098 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2099 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2103 $as_echo_n "checking for $2... " >&6; }
2104 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2105 $as_echo_n "(cached) " >&6
2107 eval "$3=\$ac_header_compiler"
2110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2111 $as_echo "$ac_res" >&6; }
2113 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2115 } # ac_fn_cxx_check_header_mongrel
2117 # ac_fn_cxx_try_link LINENO
2118 # -------------------------
2119 # Try to link conftest.$ac_ext, and return whether this succeeded.
2120 ac_fn_cxx_try_link ()
2122 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2123 rm -f conftest.$ac_objext conftest$ac_exeext
2124 if { { ac_try="$ac_link"
2126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2127 *) ac_try_echo=$ac_try;;
2129 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2130 $as_echo "$ac_try_echo"; } >&5
2131 (eval "$ac_link") 2>conftest.err
2133 if test -s conftest.err; then
2134 grep -v '^ *+' conftest.err >conftest.er1
2135 cat conftest.er1 >&5
2136 mv -f conftest.er1 conftest.err
2138 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2139 test $ac_status = 0; } && {
2140 test -z "$ac_cxx_werror_flag" ||
2141 test ! -s conftest.err
2142 } && test -s conftest$ac_exeext && {
2143 test "$cross_compiling" = yes ||
2144 $as_test_x conftest$ac_exeext
2148 $as_echo "$as_me: failed program was:" >&5
2149 sed 's/^/| /' conftest.$ac_ext >&5
2153 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2154 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2155 # interfere with the next link command; also delete a directory that is
2156 # left behind by Apple's compiler. We do this before executing the actions.
2157 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2158 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2161 } # ac_fn_cxx_try_link
2163 # ac_fn_cxx_check_func LINENO FUNC VAR
2164 # ------------------------------------
2165 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2166 ac_fn_cxx_check_func ()
2168 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2170 $as_echo_n "checking for $2... " >&6; }
2171 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2172 $as_echo_n "(cached) " >&6
2174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2175 /* end confdefs.h. */
2176 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2177 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2178 #define $2 innocuous_$2
2180 /* System header to define __stub macros and hopefully few prototypes,
2181 which can conflict with char $2 (); below.
2182 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2183 <limits.h> exists even on freestanding compilers. */
2186 # include <limits.h>
2188 # include <assert.h>
2193 /* Override any GCC internal prototype to avoid an error.
2194 Use char because int might match the return type of a GCC
2195 builtin and then its argument prototype would still apply. */
2200 /* The GNU C library defines this for functions which it implements
2201 to always fail with ENOSYS. Some functions are actually named
2202 something starting with __ and the normal name is an alias. */
2203 #if defined __stub_$2 || defined __stub___$2
2215 if ac_fn_cxx_try_link "$LINENO"; then :
2220 rm -f core conftest.err conftest.$ac_objext \
2221 conftest$ac_exeext conftest.$ac_ext
2224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2225 $as_echo "$ac_res" >&6; }
2226 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2228 } # ac_fn_cxx_check_func
2230 # ac_fn_cxx_check_decl LINENO SYMBOL VAR
2231 # --------------------------------------
2232 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2233 ac_fn_cxx_check_decl ()
2235 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2236 as_decl_name=`echo $2|sed 's/ *(.*//'`
2237 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2239 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2240 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2241 $as_echo_n "(cached) " >&6
2243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2244 /* end confdefs.h. */
2249 #ifndef $as_decl_name
2251 (void) $as_decl_use;
2253 (void) $as_decl_name;
2261 if ac_fn_cxx_try_compile "$LINENO"; then :
2266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2270 $as_echo "$ac_res" >&6; }
2271 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2273 } # ac_fn_cxx_check_decl
2274 cat >config.log <<_ACEOF
2275 This file contains any messages produced by compilers while
2276 running configure, to aid debugging if configure makes a mistake.
2278 It was created by gold $as_me 0.1, which was
2279 generated by GNU Autoconf 2.64. Invocation command line was
2291 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2292 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2293 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2294 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2295 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2297 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2298 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2300 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2301 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2302 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2303 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2304 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2305 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2306 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2314 test -z "$as_dir" && as_dir=.
2315 $as_echo "PATH: $as_dir"
2331 # Keep a trace of the command line.
2332 # Strip out --no-create and --no-recursion so they do not pile up.
2333 # Strip out --silent because we don't want to record it for future runs.
2334 # Also quote any args containing shell meta-characters.
2335 # Make two passes to allow for proper duplicate-argument suppression.
2339 ac_must_keep_next=false
2345 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2346 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2347 | -silent | --silent | --silen | --sile | --sil)
2350 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2353 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2355 as_fn_append ac_configure_args1 " '$ac_arg'"
2356 if test $ac_must_keep_next = true; then
2357 ac_must_keep_next=false # Got value, back to normal.
2360 *=* | --config-cache | -C | -disable-* | --disable-* \
2361 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2362 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2363 | -with-* | --with-* | -without-* | --without-* | --x)
2364 case "$ac_configure_args0 " in
2365 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2368 -* ) ac_must_keep_next=true ;;
2371 as_fn_append ac_configure_args " '$ac_arg'"
2376 { ac_configure_args0=; unset ac_configure_args0;}
2377 { ac_configure_args1=; unset ac_configure_args1;}
2379 # When interrupted or exit'd, cleanup temporary files, and complete
2380 # config.log. We remove comments because anyway the quotes in there
2381 # would cause problems or look ugly.
2382 # WARNING: Use '\'' to represent an apostrophe within the trap.
2383 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2384 trap 'exit_status=$?
2385 # Save into config.log some information that might help in debugging.
2390 ## ---------------- ##
2391 ## Cache variables. ##
2392 ## ---------------- ##
2395 # The following way of writing the cache mishandles newlines in values,
2397 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2398 eval ac_val=\$$ac_var
2402 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2403 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2406 _ | IFS | as_nl) ;; #(
2407 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2408 *) { eval $ac_var=; unset $ac_var;} ;;
2413 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2414 *${as_nl}ac_space=\ *)
2416 "s/'\''/'\''\\\\'\'''\''/g;
2417 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2420 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2428 ## ----------------- ##
2429 ## Output variables. ##
2430 ## ----------------- ##
2433 for ac_var in $ac_subst_vars
2435 eval ac_val=\$$ac_var
2437 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2439 $as_echo "$ac_var='\''$ac_val'\''"
2443 if test -n "$ac_subst_files"; then
2445 ## ------------------- ##
2446 ## File substitutions. ##
2447 ## ------------------- ##
2450 for ac_var in $ac_subst_files
2452 eval ac_val=\$$ac_var
2454 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2456 $as_echo "$ac_var='\''$ac_val'\''"
2461 if test -s confdefs.h; then
2471 test "$ac_signal" != 0 &&
2472 $as_echo "$as_me: caught signal $ac_signal"
2473 $as_echo "$as_me: exit $exit_status"
2475 rm -f core *.core core.conftest.* &&
2476 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2479 for ac_signal in 1 2 13 15; do
2480 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2484 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2485 rm -f -r conftest* confdefs.h
2487 $as_echo "/* confdefs.h */" > confdefs.h
2489 # Predefined preprocessor variables.
2491 cat >>confdefs.h <<_ACEOF
2492 #define PACKAGE_NAME "$PACKAGE_NAME"
2495 cat >>confdefs.h <<_ACEOF
2496 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2499 cat >>confdefs.h <<_ACEOF
2500 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2503 cat >>confdefs.h <<_ACEOF
2504 #define PACKAGE_STRING "$PACKAGE_STRING"
2507 cat >>confdefs.h <<_ACEOF
2508 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2511 cat >>confdefs.h <<_ACEOF
2512 #define PACKAGE_URL "$PACKAGE_URL"
2516 # Let the site file select an alternate cache file if it wants to.
2517 # Prefer an explicitly selected file to automatically selected ones.
2520 if test -n "$CONFIG_SITE"; then
2521 ac_site_file1=$CONFIG_SITE
2522 elif test "x$prefix" != xNONE; then
2523 ac_site_file1=$prefix/share/config.site
2524 ac_site_file2=$prefix/etc/config.site
2526 ac_site_file1=$ac_default_prefix/share/config.site
2527 ac_site_file2=$ac_default_prefix/etc/config.site
2529 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2531 test "x$ac_site_file" = xNONE && continue
2532 if test -r "$ac_site_file"; then
2533 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2534 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2535 sed 's/^/| /' "$ac_site_file" >&5
2540 if test -r "$cache_file"; then
2541 # Some versions of bash will fail to source /dev/null (special
2542 # files actually), so we avoid doing that.
2543 if test -f "$cache_file"; then
2544 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2545 $as_echo "$as_me: loading cache $cache_file" >&6;}
2547 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2548 *) . "./$cache_file";;
2552 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2553 $as_echo "$as_me: creating cache $cache_file" >&6;}
2557 # Check that the precious variables saved in the cache have kept the same
2559 ac_cache_corrupted=false
2560 for ac_var in $ac_precious_vars; do
2561 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2562 eval ac_new_set=\$ac_env_${ac_var}_set
2563 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2564 eval ac_new_val=\$ac_env_${ac_var}_value
2565 case $ac_old_set,$ac_new_set in
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2568 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2569 ac_cache_corrupted=: ;;
2571 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2572 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2573 ac_cache_corrupted=: ;;
2576 if test "x$ac_old_val" != "x$ac_new_val"; then
2577 # differences in whitespace do not lead to failure.
2578 ac_old_val_w=`echo x $ac_old_val`
2579 ac_new_val_w=`echo x $ac_new_val`
2580 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2581 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2582 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2583 ac_cache_corrupted=:
2585 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2586 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2587 eval $ac_var=\$ac_old_val
2589 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2590 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2591 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2592 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2595 # Pass precious variables to config.status.
2596 if test "$ac_new_set" = set; then
2598 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2599 *) ac_arg=$ac_var=$ac_new_val ;;
2601 case " $ac_configure_args " in
2602 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2603 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2607 if $ac_cache_corrupted; then
2608 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2609 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2610 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2611 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2612 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2614 ## -------------------- ##
2615 ## Main body of script. ##
2616 ## -------------------- ##
2619 ac_cpp='$CPP $CPPFLAGS'
2620 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2621 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2622 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2631 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2632 for ac_t in install-sh install.sh shtool; do
2633 if test -f "$ac_dir/$ac_t"; then
2635 ac_install_sh="$ac_aux_dir/$ac_t -c"
2640 if test -z "$ac_aux_dir"; then
2641 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2644 # These three variables are undocumented and unsupported,
2645 # and are intended to be withdrawn in a future Autoconf release.
2646 # They can cause serious problems if a builder's source tree is in a directory
2647 # whose full name contains unusual characters.
2648 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2649 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2650 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2653 # Make sure we can run config.sub.
2654 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2655 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2658 $as_echo_n "checking build system type... " >&6; }
2659 if test "${ac_cv_build+set}" = set; then :
2660 $as_echo_n "(cached) " >&6
2662 ac_build_alias=$build_alias
2663 test "x$ac_build_alias" = x &&
2664 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2665 test "x$ac_build_alias" = x &&
2666 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2667 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2668 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2672 $as_echo "$ac_cv_build" >&6; }
2673 case $ac_cv_build in
2675 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2678 ac_save_IFS=$IFS; IFS='-'
2684 # Remember, the first character of IFS is used to create $*,
2685 # except with old shells:
2688 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2692 $as_echo_n "checking host system type... " >&6; }
2693 if test "${ac_cv_host+set}" = set; then :
2694 $as_echo_n "(cached) " >&6
2696 if test "x$host_alias" = x; then
2697 ac_cv_host=$ac_cv_build
2699 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2700 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2705 $as_echo "$ac_cv_host" >&6; }
2708 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2711 ac_save_IFS=$IFS; IFS='-'
2717 # Remember, the first character of IFS is used to create $*,
2718 # except with old shells:
2721 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2725 $as_echo_n "checking target system type... " >&6; }
2726 if test "${ac_cv_target+set}" = set; then :
2727 $as_echo_n "(cached) " >&6
2729 if test "x$target_alias" = x; then
2730 ac_cv_target=$ac_cv_host
2732 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2733 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2738 $as_echo "$ac_cv_target" >&6; }
2739 case $ac_cv_target in
2741 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2743 target=$ac_cv_target
2744 ac_save_IFS=$IFS; IFS='-'
2750 # Remember, the first character of IFS is used to create $*,
2751 # except with old shells:
2754 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2757 # The aliases save the names the user supplied, while $host etc.
2758 # will get canonicalized.
2759 test -n "$target_alias" &&
2760 test "$program_prefix$program_suffix$program_transform_name" = \
2762 program_prefix=${target_alias}-
2764 am__api_version='1.11'
2766 # Find a good install program. We prefer a C program (faster),
2767 # so one script is as good as another. But avoid the broken or
2768 # incompatible versions:
2769 # SysV /etc/install, /usr/sbin/install
2770 # SunOS /usr/etc/install
2771 # IRIX /sbin/install
2773 # AmigaOS /C/install, which installs bootblocks on floppy discs
2774 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2775 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2776 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2777 # OS/2's system install, which has a completely different semantic
2778 # ./install, which can be erroneously created by make from ./install.sh.
2779 # Reject install programs that cannot install multiple files.
2780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2781 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2782 if test -z "$INSTALL"; then
2783 if test "${ac_cv_path_install+set}" = set; then :
2784 $as_echo_n "(cached) " >&6
2786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2790 test -z "$as_dir" && as_dir=.
2791 # Account for people who put trailing slashes in PATH elements.
2792 case $as_dir/ in #((
2793 ./ | .// | /[cC]/* | \
2794 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2795 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2798 # OSF1 and SCO ODT 3.0 have their own names for install.
2799 # Don't use installbsd from OSF since it installs stuff as root
2801 for ac_prog in ginstall scoinst install; do
2802 for ac_exec_ext in '' $ac_executable_extensions; do
2803 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2804 if test $ac_prog = install &&
2805 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2806 # AIX install. It has an incompatible calling convention.
2808 elif test $ac_prog = install &&
2809 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2810 # program-specific install script used by HP pwplus--don't use.
2813 rm -rf conftest.one conftest.two conftest.dir
2814 echo one > conftest.one
2815 echo two > conftest.two
2817 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2818 test -s conftest.one && test -s conftest.two &&
2819 test -s conftest.dir/conftest.one &&
2820 test -s conftest.dir/conftest.two
2822 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2835 rm -rf conftest.one conftest.two conftest.dir
2838 if test "${ac_cv_path_install+set}" = set; then
2839 INSTALL=$ac_cv_path_install
2841 # As a last resort, use the slow shell script. Don't cache a
2842 # value for INSTALL within a source directory, because that will
2843 # break other packages using the cache if that directory is
2844 # removed, or if the value is a relative name.
2845 INSTALL=$ac_install_sh
2848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2849 $as_echo "$INSTALL" >&6; }
2851 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2852 # It thinks the first close brace ends the variable substitution.
2853 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2855 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2857 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2860 $as_echo_n "checking whether build environment is sane... " >&6; }
2863 echo timestamp > conftest.file
2864 # Reject unsafe characters in $srcdir or the absolute working directory
2865 # name. Accept space and tab only in the latter.
2869 *[\\\"\#\$\&\'\`$am_lf]*)
2870 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2873 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2874 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2877 # Do `set' in a subshell so we don't clobber the current shell's
2878 # arguments. Must try -L first in case configure is actually a
2879 # symlink; some systems play weird games with the mod time of symlinks
2880 # (eg FreeBSD returns the mod time of the symlink's containing
2883 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2884 if test "$*" = "X"; then
2886 set X `ls -t "$srcdir/configure" conftest.file`
2889 if test "$*" != "X $srcdir/configure conftest.file" \
2890 && test "$*" != "X conftest.file $srcdir/configure"; then
2892 # If neither matched, then we have a broken ls. This can happen
2893 # if, for instance, CONFIG_SHELL is bash and it inherits a
2894 # broken ls alias from the environment. This has actually
2895 # happened. Such a system could not be considered "sane".
2896 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2897 alias in your environment" "$LINENO" 5
2900 test "$2" = conftest.file
2906 as_fn_error "newly created file is older than distributed files!
2907 Check your system clock" "$LINENO" 5
2909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2910 $as_echo "yes" >&6; }
2911 test "$program_prefix" != NONE &&
2912 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2913 # Use a double $ so make ignores it.
2914 test "$program_suffix" != NONE &&
2915 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2916 # Double any \ or $.
2917 # By default was `s,x,x', remove it if useless.
2918 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2919 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2921 # expand $ac_aux_dir to an absolute path
2922 am_aux_dir=`cd $ac_aux_dir && pwd`
2924 if test x"${MISSING+set}" != xset; then
2927 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2929 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2932 # Use eval to expand $SHELL
2933 if eval "$MISSING --run true"; then
2934 am_missing_run="$MISSING --run "
2937 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2938 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2941 if test x"${install_sh}" != xset; then
2944 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2946 install_sh="\${SHELL} $am_aux_dir/install-sh"
2950 # Installed binaries are usually stripped using `strip' when the user
2951 # run `make install-strip'. However `strip' might not be the right
2952 # tool to use in cross-compilation environments, therefore Automake
2953 # will honor the `STRIP' environment variable to overrule this program.
2954 if test "$cross_compiling" != no; then
2955 if test -n "$ac_tool_prefix"; then
2956 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2957 set dummy ${ac_tool_prefix}strip; ac_word=$2
2958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2959 $as_echo_n "checking for $ac_word... " >&6; }
2960 if test "${ac_cv_prog_STRIP+set}" = set; then :
2961 $as_echo_n "(cached) " >&6
2963 if test -n "$STRIP"; then
2964 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2970 test -z "$as_dir" && as_dir=.
2971 for ac_exec_ext in '' $ac_executable_extensions; do
2972 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2973 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2983 STRIP=$ac_cv_prog_STRIP
2984 if test -n "$STRIP"; then
2985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2986 $as_echo "$STRIP" >&6; }
2988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2989 $as_echo "no" >&6; }
2994 if test -z "$ac_cv_prog_STRIP"; then
2996 # Extract the first word of "strip", so it can be a program name with args.
2997 set dummy strip; ac_word=$2
2998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2999 $as_echo_n "checking for $ac_word... " >&6; }
3000 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3001 $as_echo_n "(cached) " >&6
3003 if test -n "$ac_ct_STRIP"; then
3004 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3010 test -z "$as_dir" && as_dir=.
3011 for ac_exec_ext in '' $ac_executable_extensions; do
3012 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3013 ac_cv_prog_ac_ct_STRIP="strip"
3014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3023 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3024 if test -n "$ac_ct_STRIP"; then
3025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3026 $as_echo "$ac_ct_STRIP" >&6; }
3028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3029 $as_echo "no" >&6; }
3032 if test "x$ac_ct_STRIP" = x; then
3035 case $cross_compiling:$ac_tool_warned in
3037 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3038 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3039 ac_tool_warned=yes ;;
3044 STRIP="$ac_cv_prog_STRIP"
3048 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3051 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3052 if test -z "$MKDIR_P"; then
3053 if test "${ac_cv_path_mkdir+set}" = set; then :
3054 $as_echo_n "(cached) " >&6
3056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3057 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3060 test -z "$as_dir" && as_dir=.
3061 for ac_prog in mkdir gmkdir; do
3062 for ac_exec_ext in '' $ac_executable_extensions; do
3063 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3064 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3065 'mkdir (GNU coreutils) '* | \
3066 'mkdir (coreutils) '* | \
3067 'mkdir (fileutils) '4.1*)
3068 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3078 if test "${ac_cv_path_mkdir+set}" = set; then
3079 MKDIR_P="$ac_cv_path_mkdir -p"
3081 # As a last resort, use the slow shell script. Don't cache a
3082 # value for MKDIR_P within a source directory, because that will
3083 # break other packages using the cache if that directory is
3084 # removed, or if the value is a relative name.
3085 test -d ./--version && rmdir ./--version
3086 MKDIR_P="$ac_install_sh -d"
3089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3090 $as_echo "$MKDIR_P" >&6; }
3094 [\\/$]* | ?:[\\/]*) ;;
3095 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3098 for ac_prog in gawk mawk nawk awk
3100 # Extract the first word of "$ac_prog", so it can be a program name with args.
3101 set dummy $ac_prog; ac_word=$2
3102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3103 $as_echo_n "checking for $ac_word... " >&6; }
3104 if test "${ac_cv_prog_AWK+set}" = set; then :
3105 $as_echo_n "(cached) " >&6
3107 if test -n "$AWK"; then
3108 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3114 test -z "$as_dir" && as_dir=.
3115 for ac_exec_ext in '' $ac_executable_extensions; do
3116 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3117 ac_cv_prog_AWK="$ac_prog"
3118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3128 if test -n "$AWK"; then
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3130 $as_echo "$AWK" >&6; }
3132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3133 $as_echo "no" >&6; }
3137 test -n "$AWK" && break
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3141 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3143 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3144 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3145 $as_echo_n "(cached) " >&6
3147 cat >conftest.make <<\_ACEOF
3150 @echo '@@@%%%=$(MAKE)=@@@%%%'
3152 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3153 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3155 eval ac_cv_prog_make_${ac_make}_set=yes;;
3157 eval ac_cv_prog_make_${ac_make}_set=no;;
3161 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3163 $as_echo "yes" >&6; }
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3167 $as_echo "no" >&6; }
3168 SET_MAKE="MAKE=${MAKE-make}"
3171 rm -rf .tst 2>/dev/null
3172 mkdir .tst 2>/dev/null
3173 if test -d .tst; then
3178 rmdir .tst 2>/dev/null
3180 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3181 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3182 # is not polluted with repeated "-I."
3183 am__isrc=' -I$(srcdir)'
3184 # test to see if srcdir already configured
3185 if test -f $srcdir/config.status; then
3186 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3190 # test whether we have cygpath
3191 if test -z "$CYGPATH_W"; then
3192 if (cygpath --version) >/dev/null 2>/dev/null; then
3193 CYGPATH_W='cygpath -w'
3200 # Define the identity of the package.
3205 cat >>confdefs.h <<_ACEOF
3206 #define PACKAGE "$PACKAGE"
3210 cat >>confdefs.h <<_ACEOF
3211 #define VERSION "$VERSION"
3214 # Some tools Automake needs.
3216 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3219 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3222 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3225 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3228 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3230 # We need awk for the "check" target. The system "awk" is bad on
3232 # Always define AMTAR for backward compatibility. Yes, it's still used
3233 # in the wild :-( We should find a proper way to deprecate it ...
3236 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3243 ac_config_headers="$ac_config_headers config.h:config.in"
3250 # Check whether --with-sysroot was given.
3251 if test "${with_sysroot+set}" = set; then :
3252 withval=$with_sysroot; sysroot=$withval
3258 if test "$sysroot" = "yes"; then
3259 sysroot='${exec_prefix}/${target_alias}/sys-root'
3260 elif test "$sysroot" = "no"; then
3264 sysroot_relocatable=0
3265 if test -n "$sysroot"; then
3267 "${prefix}" | "${prefix}/"* | \
3268 "${exec_prefix}" | "${exec_prefix}/"* | \
3269 '${prefix}' | '${prefix}/'*| \
3270 '${exec_prefix}' | '${exec_prefix}/'*)
3271 sysroot_relocatable=1
3277 cat >>confdefs.h <<_ACEOF
3278 #define TARGET_SYSTEM_ROOT "$sysroot"
3282 cat >>confdefs.h <<_ACEOF
3283 #define TARGET_SYSTEM_ROOT_RELOCATABLE $sysroot_relocatable
3288 installed_linker=ld.gold
3289 # Check whether --enable-gold was given.
3290 if test "${enable_gold+set}" = set; then :
3291 enableval=$enable_gold; case "${enableval}" in
3293 install_as_default=yes
3296 if test x${enable_ld} = xno; then
3297 install_as_default=yes
3302 install_as_default=no
3308 # Check whether --enable-threads was given.
3309 if test "${enable_threads+set}" = set; then :
3310 enableval=$enable_threads; case "${enableval}" in
3311 yes | "") threads=yes ;;
3319 if test "$threads" = "yes"; then
3321 $as_echo "#define ENABLE_THREADS 1" >>confdefs.h
3324 if test "$threads" = "yes"; then
3333 # Check whether --enable-plugins was given.
3334 if test "${enable_plugins+set}" = set; then :
3335 enableval=$enable_plugins; case "${enableval}" in
3336 yes | "") plugins=yes ;;
3344 if test "$plugins" = "yes"; then
3346 $as_echo "#define ENABLE_PLUGINS 1" >>confdefs.h
3349 if test "$plugins" = "yes"; then
3358 # Decide if -z relro should be enabled in ELF linker by default.
3359 ac_default_ld_z_relro=unset
3360 # Provide a configure time option to override our default.
3361 # Check whether --enable-relro was given.
3362 if test "${enable_relro+set}" = set; then :
3363 enableval=$enable_relro; case "${enableval}" in
3364 yes) ac_default_ld_z_relro=1 ;;
3365 no) ac_default_ld_z_relro=0 ;;
3368 if test "${ac_default_ld_z_relro}" = unset; then
3369 ac_default_ld_z_relro=1
3372 cat >>confdefs.h <<_ACEOF
3373 #define DEFAULT_LD_Z_RELRO $ac_default_ld_z_relro
3377 # Check whether --enable-targets was given.
3378 if test "${enable_targets+set}" = set; then :
3379 enableval=$enable_targets; case "${enableval}" in
3381 as_fn_error "--enable-targets option must specify target names or 'all'" "$LINENO" 5
3387 enable_targets=$enableval
3391 # For now, enable all targets by default
3397 # Canonicalize the enabled targets.
3398 if test -n "$enable_targets"; then
3399 for targ in `echo $enable_targets | sed -e 's/,/ /g'`; do
3400 result=`$ac_config_sub $targ 2>/dev/null`
3401 if test -n "$result"; then
3402 canon_targets="$canon_targets $result"
3404 # Permit unrecognized target names, like "all".
3405 canon_targets="$canon_targets $targ"
3410 # See which specific instantiations we need.
3416 default_osabi=ELFOSABI_NONE
3421 for targ in $target $canon_targets; do
3422 if test "$targ" = "all"; then
3429 . ${srcdir}/configure.tgt
3431 if test "$targ_obj" = "UNKNOWN"; then
3432 as_fn_error "\"unsupported target $targ\"" "$LINENO" 5
3434 targetobjs="$targetobjs ${targ_obj}.\$(OBJEXT)"
3435 if test "$targ_extra_obj" != ""; then
3436 targetobjs="$targetobjs ${targ_extra_obj}.\$(OBJEXT)"
3438 if test "$targ_size" = "32" -o "$targ_extra_size" = "32"; then
3439 if test "$targ_big_endian" = "true" \
3440 -o "$targ_extra_big_endian" = "true"; then
3443 if test "$targ_big_endian" = "false" \
3444 -o "$targ_extra_big_endian" = "false"; then
3448 if test "$targ_size" = "64" -o "$targ_extra_size" = "64"; then
3449 if test "$targ_big_endian" = "true" \
3450 -o "$targ_extra_big_endian" = "true"; then
3453 if test "$targ_big_endian" = "false" \
3454 -o "$targ_extra_big_endian" = "false"; then
3459 if test "$target" = "$targ"; then
3460 default_machine=$targ_machine
3461 default_size=$targ_size
3462 default_big_endian=$targ_big_endian
3463 default_osabi=$targ_osabi
3465 if test "$targ_obj" = "aarch64"; then
3466 DEFAULT_TARGET_AARCH64_TRUE=
3467 DEFAULT_TARGET_AARCH64_FALSE='#'
3469 DEFAULT_TARGET_AARCH64_TRUE='#'
3470 DEFAULT_TARGET_AARCH64_FALSE=
3473 if test "$targ_obj" = "arm"; then
3474 DEFAULT_TARGET_ARM_TRUE=
3475 DEFAULT_TARGET_ARM_FALSE='#'
3477 DEFAULT_TARGET_ARM_TRUE='#'
3478 DEFAULT_TARGET_ARM_FALSE=
3481 if test "$targ_obj" = "i386"; then
3482 DEFAULT_TARGET_I386_TRUE=
3483 DEFAULT_TARGET_I386_FALSE='#'
3485 DEFAULT_TARGET_I386_TRUE='#'
3486 DEFAULT_TARGET_I386_FALSE=
3489 if test "$targ_obj" = "powerpc"; then
3490 DEFAULT_TARGET_POWERPC_TRUE=
3491 DEFAULT_TARGET_POWERPC_FALSE='#'
3493 DEFAULT_TARGET_POWERPC_TRUE='#'
3494 DEFAULT_TARGET_POWERPC_FALSE=
3497 if test "$targ_obj" = "sparc"; then
3498 DEFAULT_TARGET_SPARC_TRUE=
3499 DEFAULT_TARGET_SPARC_FALSE='#'
3501 DEFAULT_TARGET_SPARC_TRUE='#'
3502 DEFAULT_TARGET_SPARC_FALSE=
3505 if test "$targ_obj" = "s390"; then
3506 DEFAULT_TARGET_S390_TRUE=
3507 DEFAULT_TARGET_S390_FALSE='#'
3509 DEFAULT_TARGET_S390_TRUE='#'
3510 DEFAULT_TARGET_S390_FALSE=
3515 if test "$targ_obj" = "x86_64"; then
3517 x86_64*-linux-gnux32)
3526 if test "$target_x86_64" = "yes"; then
3527 DEFAULT_TARGET_X86_64_TRUE=
3528 DEFAULT_TARGET_X86_64_FALSE='#'
3530 DEFAULT_TARGET_X86_64_TRUE='#'
3531 DEFAULT_TARGET_X86_64_FALSE=
3534 if test "$target_x32" = "yes"; then
3535 DEFAULT_TARGET_X32_TRUE=
3536 DEFAULT_TARGET_X32_FALSE='#'
3538 DEFAULT_TARGET_X32_TRUE='#'
3539 DEFAULT_TARGET_X32_FALSE=
3542 if test "$targ_obj" = "tilegx"; then
3543 DEFAULT_TARGET_TILEGX_TRUE=
3544 DEFAULT_TARGET_TILEGX_FALSE='#'
3546 DEFAULT_TARGET_TILEGX_TRUE='#'
3547 DEFAULT_TARGET_TILEGX_FALSE=
3550 if test "$targ_obj" = "mips"; then
3551 DEFAULT_TARGET_MIPS_TRUE=
3552 DEFAULT_TARGET_MIPS_FALSE='#'
3554 DEFAULT_TARGET_MIPS_TRUE='#'
3555 DEFAULT_TARGET_MIPS_FALSE=
3558 DEFAULT_TARGET=${targ_obj}
3565 # Remove any duplicates.
3567 for t in $targetobjs; do
3575 if test -n "$targ_32_little"; then
3577 $as_echo "#define HAVE_TARGET_32_LITTLE 1" >>confdefs.h
3580 if test -n "$targ_32_big"; then
3582 $as_echo "#define HAVE_TARGET_32_BIG 1" >>confdefs.h
3585 if test -n "$targ_64_little"; then
3587 $as_echo "#define HAVE_TARGET_64_LITTLE 1" >>confdefs.h
3590 if test -n "$targ_64_big"; then
3592 $as_echo "#define HAVE_TARGET_64_BIG 1" >>confdefs.h
3596 if test -n "$all_targets"; then
3597 TARGETOBJS='$(ALL_TARGETOBJS)'
3599 TARGETOBJS="$targetobjs"
3604 cat >>confdefs.h <<_ACEOF
3605 #define GOLD_DEFAULT_MACHINE $default_machine
3609 cat >>confdefs.h <<_ACEOF
3610 #define GOLD_DEFAULT_SIZE $default_size
3614 cat >>confdefs.h <<_ACEOF
3615 #define GOLD_DEFAULT_BIG_ENDIAN $default_big_endian
3619 cat >>confdefs.h <<_ACEOF
3620 #define GOLD_DEFAULT_OSABI $default_osabi
3625 # Check whether --with-lib-path was given.
3626 if test "${with_lib_path+set}" = set; then :
3627 withval=$with_lib_path; case "$withval" in
3628 yes) LIB_PATH='"/lib:/usr/lib"' ;;
3629 no) LIB_PATH='""' ;;
3630 *) LIB_PATH='"'"$withval"'"' ;;
3633 LIB_PATH='"::DEFAULT::"'
3637 cat >>confdefs.h <<_ACEOF
3638 #define LIB_PATH $LIB_PATH
3641 if test "x$target_alias" = "x" -o "x$host_alias" = "x$target_alias"; then
3643 $as_echo "#define NATIVE_LINKER 1" >>confdefs.h
3647 if test -n "$ac_tool_prefix"; then
3648 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
3649 set dummy ${ac_tool_prefix}nm; ac_word=$2
3650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3651 $as_echo_n "checking for $ac_word... " >&6; }
3652 if test "${ac_cv_prog_NM+set}" = set; then :
3653 $as_echo_n "(cached) " >&6
3655 if test -n "$NM"; then
3656 ac_cv_prog_NM="$NM" # Let the user override the test.
3658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3662 test -z "$as_dir" && as_dir=.
3663 for ac_exec_ext in '' $ac_executable_extensions; do
3664 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3665 ac_cv_prog_NM="${ac_tool_prefix}nm"
3666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3676 if test -n "$NM"; then
3677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
3678 $as_echo "$NM" >&6; }
3680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3681 $as_echo "no" >&6; }
3686 if test -z "$ac_cv_prog_NM"; then
3688 # Extract the first word of "nm", so it can be a program name with args.
3689 set dummy nm; ac_word=$2
3690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3691 $as_echo_n "checking for $ac_word... " >&6; }
3692 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then :
3693 $as_echo_n "(cached) " >&6
3695 if test -n "$ac_ct_NM"; then
3696 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
3698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3702 test -z "$as_dir" && as_dir=.
3703 for ac_exec_ext in '' $ac_executable_extensions; do
3704 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3705 ac_cv_prog_ac_ct_NM="nm"
3706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3715 ac_ct_NM=$ac_cv_prog_ac_ct_NM
3716 if test -n "$ac_ct_NM"; then
3717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5
3718 $as_echo "$ac_ct_NM" >&6; }
3720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3721 $as_echo "no" >&6; }
3724 if test "x$ac_ct_NM" = x; then
3727 case $cross_compiling:$ac_tool_warned in
3729 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3730 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3731 ac_tool_warned=yes ;;
3741 ac_cpp='$CPP $CPPFLAGS'
3742 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3743 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3744 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3745 if test -n "$ac_tool_prefix"; then
3746 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3747 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3749 $as_echo_n "checking for $ac_word... " >&6; }
3750 if test "${ac_cv_prog_CC+set}" = set; then :
3751 $as_echo_n "(cached) " >&6
3753 if test -n "$CC"; then
3754 ac_cv_prog_CC="$CC" # Let the user override the test.
3756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3760 test -z "$as_dir" && as_dir=.
3761 for ac_exec_ext in '' $ac_executable_extensions; do
3762 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3763 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3764 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3774 if test -n "$CC"; then
3775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3776 $as_echo "$CC" >&6; }
3778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3779 $as_echo "no" >&6; }
3784 if test -z "$ac_cv_prog_CC"; then
3786 # Extract the first word of "gcc", so it can be a program name with args.
3787 set dummy gcc; ac_word=$2
3788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3789 $as_echo_n "checking for $ac_word... " >&6; }
3790 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3791 $as_echo_n "(cached) " >&6
3793 if test -n "$ac_ct_CC"; then
3794 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3800 test -z "$as_dir" && as_dir=.
3801 for ac_exec_ext in '' $ac_executable_extensions; do
3802 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3803 ac_cv_prog_ac_ct_CC="gcc"
3804 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3813 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3814 if test -n "$ac_ct_CC"; then
3815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3816 $as_echo "$ac_ct_CC" >&6; }
3818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3819 $as_echo "no" >&6; }
3822 if test "x$ac_ct_CC" = x; then
3825 case $cross_compiling:$ac_tool_warned in
3827 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3828 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3829 ac_tool_warned=yes ;;
3837 if test -z "$CC"; then
3838 if test -n "$ac_tool_prefix"; then
3839 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3840 set dummy ${ac_tool_prefix}cc; ac_word=$2
3841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3842 $as_echo_n "checking for $ac_word... " >&6; }
3843 if test "${ac_cv_prog_CC+set}" = set; then :
3844 $as_echo_n "(cached) " >&6
3846 if test -n "$CC"; then
3847 ac_cv_prog_CC="$CC" # Let the user override the test.
3849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3853 test -z "$as_dir" && as_dir=.
3854 for ac_exec_ext in '' $ac_executable_extensions; do
3855 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3856 ac_cv_prog_CC="${ac_tool_prefix}cc"
3857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3867 if test -n "$CC"; then
3868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3869 $as_echo "$CC" >&6; }
3871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3872 $as_echo "no" >&6; }
3878 if test -z "$CC"; then
3879 # Extract the first word of "cc", so it can be a program name with args.
3880 set dummy cc; ac_word=$2
3881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3882 $as_echo_n "checking for $ac_word... " >&6; }
3883 if test "${ac_cv_prog_CC+set}" = set; then :
3884 $as_echo_n "(cached) " >&6
3886 if test -n "$CC"; then
3887 ac_cv_prog_CC="$CC" # Let the user override the test.
3890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3894 test -z "$as_dir" && as_dir=.
3895 for ac_exec_ext in '' $ac_executable_extensions; do
3896 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3897 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3898 ac_prog_rejected=yes
3902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3909 if test $ac_prog_rejected = yes; then
3910 # We found a bogon in the path, so make sure we never use it.
3911 set dummy $ac_cv_prog_CC
3913 if test $# != 0; then
3914 # We chose a different compiler from the bogus one.
3915 # However, it has the same basename, so the bogon will be chosen
3916 # first if we set CC to just the basename; use the full file name.
3918 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3924 if test -n "$CC"; then
3925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3926 $as_echo "$CC" >&6; }
3928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3929 $as_echo "no" >&6; }
3934 if test -z "$CC"; then
3935 if test -n "$ac_tool_prefix"; then
3936 for ac_prog in cl.exe
3938 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3939 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3941 $as_echo_n "checking for $ac_word... " >&6; }
3942 if test "${ac_cv_prog_CC+set}" = set; then :
3943 $as_echo_n "(cached) " >&6
3945 if test -n "$CC"; then
3946 ac_cv_prog_CC="$CC" # Let the user override the test.
3948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3952 test -z "$as_dir" && as_dir=.
3953 for ac_exec_ext in '' $ac_executable_extensions; do
3954 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3955 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3966 if test -n "$CC"; then
3967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3968 $as_echo "$CC" >&6; }
3970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3971 $as_echo "no" >&6; }
3975 test -n "$CC" && break
3978 if test -z "$CC"; then
3980 for ac_prog in cl.exe
3982 # Extract the first word of "$ac_prog", so it can be a program name with args.
3983 set dummy $ac_prog; ac_word=$2
3984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3985 $as_echo_n "checking for $ac_word... " >&6; }
3986 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3987 $as_echo_n "(cached) " >&6
3989 if test -n "$ac_ct_CC"; then
3990 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3996 test -z "$as_dir" && as_dir=.
3997 for ac_exec_ext in '' $ac_executable_extensions; do
3998 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3999 ac_cv_prog_ac_ct_CC="$ac_prog"
4000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4009 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4010 if test -n "$ac_ct_CC"; then
4011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4012 $as_echo "$ac_ct_CC" >&6; }
4014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4015 $as_echo "no" >&6; }
4019 test -n "$ac_ct_CC" && break
4022 if test "x$ac_ct_CC" = x; then
4025 case $cross_compiling:$ac_tool_warned in
4027 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4028 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4029 ac_tool_warned=yes ;;
4038 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4039 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4040 as_fn_error "no acceptable C compiler found in \$PATH
4041 See \`config.log' for more details." "$LINENO" 5; }
4043 # Provide some information about the compiler.
4044 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4047 for ac_option in --version -v -V -qversion; do
4048 { { ac_try="$ac_compiler $ac_option >&5"
4050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4051 *) ac_try_echo=$ac_try;;
4053 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4054 $as_echo "$ac_try_echo"; } >&5
4055 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4057 if test -s conftest.err; then
4059 ... rest of stderr output deleted ...
4060 10q' conftest.err >conftest.er1
4061 cat conftest.er1 >&5
4062 rm -f conftest.er1 conftest.err
4064 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4065 test $ac_status = 0; }
4068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4069 /* end confdefs.h. */
4079 ac_clean_files_save=$ac_clean_files
4080 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
4081 # Try to create an executable without -o first, disregard a.out.
4082 # It will help us diagnose broken compilers, and finding out an intuition
4084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4085 $as_echo_n "checking for C compiler default output file name... " >&6; }
4086 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4088 # The possible output files:
4089 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4092 for ac_file in $ac_files
4095 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4096 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4101 if { { ac_try="$ac_link_default"
4103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4104 *) ac_try_echo=$ac_try;;
4106 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4107 $as_echo "$ac_try_echo"; } >&5
4108 (eval "$ac_link_default") 2>&5
4110 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4111 test $ac_status = 0; }; then :
4112 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4113 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4114 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4115 # so that the user can short-circuit this test for compilers unknown to
4117 for ac_file in $ac_files ''
4119 test -f "$ac_file" || continue
4121 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4124 # We found the default executable, but exeext='' is most
4128 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4130 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4132 # We set ac_cv_exeext here because the later test for it is not
4133 # safe: cross compilers may not add the suffix if given an `-o'
4134 # argument, so we may need to know it at that point already.
4135 # Even if this section looks crufty: it has the advantage of
4142 test "$ac_cv_exeext" = no && ac_cv_exeext=
4147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4148 $as_echo "$ac_file" >&6; }
4149 if test -z "$ac_file"; then :
4150 $as_echo "$as_me: failed program was:" >&5
4151 sed 's/^/| /' conftest.$ac_ext >&5
4153 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4154 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4155 { as_fn_set_status 77
4156 as_fn_error "C compiler cannot create executables
4157 See \`config.log' for more details." "$LINENO" 5; }; }
4159 ac_exeext=$ac_cv_exeext
4161 # Check that the compiler produces executables we can run. If not, either
4162 # the compiler is broken, or we cross compile.
4163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4164 $as_echo_n "checking whether the C compiler works... " >&6; }
4165 # If not cross compiling, check that we can run a simple program.
4166 if test "$cross_compiling" != yes; then
4167 if { ac_try='./$ac_file'
4168 { { case "(($ac_try" in
4169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4170 *) ac_try_echo=$ac_try;;
4172 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4173 $as_echo "$ac_try_echo"; } >&5
4174 (eval "$ac_try") 2>&5
4176 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4177 test $ac_status = 0; }; }; then
4180 if test "$cross_compiling" = maybe; then
4183 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4184 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4185 as_fn_error "cannot run C compiled programs.
4186 If you meant to cross compile, use \`--host'.
4187 See \`config.log' for more details." "$LINENO" 5; }
4191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4192 $as_echo "yes" >&6; }
4194 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4195 ac_clean_files=$ac_clean_files_save
4196 # Check that the compiler produces executables we can run. If not, either
4197 # the compiler is broken, or we cross compile.
4198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4199 $as_echo_n "checking whether we are cross compiling... " >&6; }
4200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4201 $as_echo "$cross_compiling" >&6; }
4203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4204 $as_echo_n "checking for suffix of executables... " >&6; }
4205 if { { ac_try="$ac_link"
4207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4208 *) ac_try_echo=$ac_try;;
4210 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4211 $as_echo "$ac_try_echo"; } >&5
4212 (eval "$ac_link") 2>&5
4214 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4215 test $ac_status = 0; }; then :
4216 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4217 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4218 # work properly (i.e., refer to `conftest.exe'), while it won't with
4220 for ac_file in conftest.exe conftest conftest.*; do
4221 test -f "$ac_file" || continue
4223 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4224 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4230 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4231 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4232 as_fn_error "cannot compute suffix of executables: cannot compile and link
4233 See \`config.log' for more details." "$LINENO" 5; }
4235 rm -f conftest$ac_cv_exeext
4236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4237 $as_echo "$ac_cv_exeext" >&6; }
4239 rm -f conftest.$ac_ext
4240 EXEEXT=$ac_cv_exeext
4242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4243 $as_echo_n "checking for suffix of object files... " >&6; }
4244 if test "${ac_cv_objext+set}" = set; then :
4245 $as_echo_n "(cached) " >&6
4247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4248 /* end confdefs.h. */
4258 rm -f conftest.o conftest.obj
4259 if { { ac_try="$ac_compile"
4261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4262 *) ac_try_echo=$ac_try;;
4264 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4265 $as_echo "$ac_try_echo"; } >&5
4266 (eval "$ac_compile") 2>&5
4268 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4269 test $ac_status = 0; }; then :
4270 for ac_file in conftest.o conftest.obj conftest.*; do
4271 test -f "$ac_file" || continue;
4273 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4274 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4279 $as_echo "$as_me: failed program was:" >&5
4280 sed 's/^/| /' conftest.$ac_ext >&5
4282 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4283 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4284 as_fn_error "cannot compute suffix of object files: cannot compile
4285 See \`config.log' for more details." "$LINENO" 5; }
4287 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4290 $as_echo "$ac_cv_objext" >&6; }
4291 OBJEXT=$ac_cv_objext
4293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4294 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4295 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4296 $as_echo_n "(cached) " >&6
4298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4299 /* end confdefs.h. */
4312 if ac_fn_c_try_compile "$LINENO"; then :
4317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4318 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4322 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4323 if test $ac_compiler_gnu = yes; then
4328 ac_test_CFLAGS=${CFLAGS+set}
4329 ac_save_CFLAGS=$CFLAGS
4330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4331 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4332 if test "${ac_cv_prog_cc_g+set}" = set; then :
4333 $as_echo_n "(cached) " >&6
4335 ac_save_c_werror_flag=$ac_c_werror_flag
4336 ac_c_werror_flag=yes
4339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4340 /* end confdefs.h. */
4350 if ac_fn_c_try_compile "$LINENO"; then :
4354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4355 /* end confdefs.h. */
4365 if ac_fn_c_try_compile "$LINENO"; then :
4368 ac_c_werror_flag=$ac_save_c_werror_flag
4370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4371 /* end confdefs.h. */
4381 if ac_fn_c_try_compile "$LINENO"; then :
4384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4389 ac_c_werror_flag=$ac_save_c_werror_flag
4391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4392 $as_echo "$ac_cv_prog_cc_g" >&6; }
4393 if test "$ac_test_CFLAGS" = set; then
4394 CFLAGS=$ac_save_CFLAGS
4395 elif test $ac_cv_prog_cc_g = yes; then
4396 if test "$GCC" = yes; then
4402 if test "$GCC" = yes; then
4408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4409 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4410 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4411 $as_echo_n "(cached) " >&6
4413 ac_cv_prog_cc_c89=no
4415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4416 /* end confdefs.h. */
4419 #include <sys/types.h>
4420 #include <sys/stat.h>
4421 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4422 struct buf { int x; };
4423 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4424 static char *e (p, i)
4430 static char *f (char * (*g) (char **, int), char **p, ...)
4435 s = g (p, va_arg (v,int));
4440 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4441 function prototypes and stuff, but not '\xHH' hex character constants.
4442 These don't provoke an error unfortunately, instead are silently treated
4443 as 'x'. The following induces an error, until -std is added to get
4444 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4445 array size at least. It's necessary to write '\x00'==0 to get something
4446 that's true only with -std. */
4447 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4449 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4450 inside strings and character constants. */
4452 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4454 int test (int i, double x);
4455 struct s1 {int (*f) (int a);};
4456 struct s2 {int (*f) (double a);};
4457 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4463 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4468 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4469 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4471 CC="$ac_save_CC $ac_arg"
4472 if ac_fn_c_try_compile "$LINENO"; then :
4473 ac_cv_prog_cc_c89=$ac_arg
4475 rm -f core conftest.err conftest.$ac_objext
4476 test "x$ac_cv_prog_cc_c89" != "xno" && break
4478 rm -f conftest.$ac_ext
4483 case "x$ac_cv_prog_cc_c89" in
4485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4486 $as_echo "none needed" >&6; } ;;
4488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4489 $as_echo "unsupported" >&6; } ;;
4491 CC="$CC $ac_cv_prog_cc_c89"
4492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4493 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4495 if test "x$ac_cv_prog_cc_c89" != xno; then :
4500 ac_cpp='$CPP $CPPFLAGS'
4501 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4502 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4503 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4504 DEPDIR="${am__leading_dot}deps"
4506 ac_config_commands="$ac_config_commands depfiles"
4509 am_make=${MAKE-make}
4510 cat > confinc << 'END'
4512 @echo this is the am__doit target
4515 # If we don't find an include directive, just comment out the code.
4516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4517 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4521 # First try GNU make style include.
4522 echo "include confinc" > confmf
4523 # Ignore all kinds of additional output from `make'.
4524 case `$am_make -s -f confmf 2> /dev/null` in #(
4525 *the\ am__doit\ target*)
4531 # Now try BSD make style include.
4532 if test "$am__include" = "#"; then
4533 echo '.include "confinc"' > confmf
4534 case `$am_make -s -f confmf 2> /dev/null` in #(
4535 *the\ am__doit\ target*)
4536 am__include=.include
4544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4545 $as_echo "$_am_result" >&6; }
4546 rm -f confinc confmf
4548 # Check whether --enable-dependency-tracking was given.
4549 if test "${enable_dependency_tracking+set}" = set; then :
4550 enableval=$enable_dependency_tracking;
4553 if test "x$enable_dependency_tracking" != xno; then
4554 am_depcomp="$ac_aux_dir/depcomp"
4558 if test "x$enable_dependency_tracking" != xno; then
4568 depcc="$CC" am_compiler_list=
4570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4571 $as_echo_n "checking dependency style of $depcc... " >&6; }
4572 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4573 $as_echo_n "(cached) " >&6
4575 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4576 # We make a subdir and do the tests there. Otherwise we can end up
4577 # making bogus files that we don't know about and never remove. For
4578 # instance it was reported that on HP-UX the gcc test will end up
4579 # making a dummy file named `D' -- because `-MD' means `put the output
4583 # Copy depcomp to subdir because otherwise we won't find it if we're
4584 # using a relative directory.
4585 cp "$am_depcomp" conftest.dir
4587 # We will build objects and dependencies in a subdirectory because
4588 # it helps to detect inapplicable dependency modes. For instance
4589 # both Tru64's cc and ICC support -MD to output dependencies as a
4590 # side effect of compilation, but ICC will put the dependencies in
4591 # the current directory while Tru64 will put them in the object
4595 am_cv_CC_dependencies_compiler_type=none
4596 if test "$am_compiler_list" = ""; then
4597 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4600 case " $depcc " in #(
4601 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4604 for depmode in $am_compiler_list; do
4605 # Setup a source with many dependencies, because some compilers
4606 # like to wrap large dependency lists on column 80 (with \), and
4607 # we should not choose a depcomp mode which is confused by this.
4609 # We need to recreate these files for each test, as the compiler may
4610 # overwrite some of them when testing with obscure command lines.
4611 # This happens at least with the AIX C compiler.
4613 for i in 1 2 3 4 5 6; do
4614 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4615 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4616 # Solaris 8's {/usr,}/bin/sh.
4617 touch sub/conftst$i.h
4619 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4621 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4622 # mode. It turns out that the SunPro C++ compiler does not properly
4623 # handle `-M -o', and we need to detect this. Also, some Intel
4624 # versions had trouble with output in subdirs
4625 am__obj=sub/conftest.${OBJEXT-o}
4626 am__minus_obj="-o $am__obj"
4629 # This depmode causes a compiler race in universal mode.
4630 test "$am__universal" = false || continue
4633 # after this tag, mechanisms are not by side-effect, so they'll
4634 # only be used when explicitly requested
4635 if test "x$enable_dependency_tracking" = xyes; then
4641 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4642 # This compiler won't grok `-c -o', but also, the minuso test has
4643 # not run yet. These depmodes are late enough in the game, and
4644 # so weak that their functioning should not be impacted.
4645 am__obj=conftest.${OBJEXT-o}
4650 if depmode=$depmode \
4651 source=sub/conftest.c object=$am__obj \
4652 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4653 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4654 >/dev/null 2>conftest.err &&
4655 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4656 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4657 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4658 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4659 # icc doesn't choke on unknown options, it will just issue warnings
4660 # or remarks (even with -Werror). So we grep stderr for any message
4661 # that says an option was ignored or not supported.
4662 # When given -MP, icc 7.0 and 7.1 complain thusly:
4663 # icc: Command line warning: ignoring option '-M'; no argument required
4664 # The diagnosis changed in icc 8.0:
4665 # icc: Command line remark: option '-MP' not supported
4666 if (grep 'ignoring option' conftest.err ||
4667 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4668 am_cv_CC_dependencies_compiler_type=$depmode
4677 am_cv_CC_dependencies_compiler_type=none
4681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4682 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4683 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4686 test "x$enable_dependency_tracking" != xno \
4687 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4689 am__fastdepCC_FALSE='#'
4691 am__fastdepCC_TRUE='#'
4692 am__fastdepCC_FALSE=
4697 ac_cpp='$CXXCPP $CPPFLAGS'
4698 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4699 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4700 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4701 if test -z "$CXX"; then
4702 if test -n "$CCC"; then
4705 if test -n "$ac_tool_prefix"; then
4706 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4708 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4709 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4711 $as_echo_n "checking for $ac_word... " >&6; }
4712 if test "${ac_cv_prog_CXX+set}" = set; then :
4713 $as_echo_n "(cached) " >&6
4715 if test -n "$CXX"; then
4716 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4722 test -z "$as_dir" && as_dir=.
4723 for ac_exec_ext in '' $ac_executable_extensions; do
4724 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4725 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4736 if test -n "$CXX"; then
4737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4738 $as_echo "$CXX" >&6; }
4740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4741 $as_echo "no" >&6; }
4745 test -n "$CXX" && break
4748 if test -z "$CXX"; then
4750 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4752 # Extract the first word of "$ac_prog", so it can be a program name with args.
4753 set dummy $ac_prog; ac_word=$2
4754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4755 $as_echo_n "checking for $ac_word... " >&6; }
4756 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4757 $as_echo_n "(cached) " >&6
4759 if test -n "$ac_ct_CXX"; then
4760 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4766 test -z "$as_dir" && as_dir=.
4767 for ac_exec_ext in '' $ac_executable_extensions; do
4768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4769 ac_cv_prog_ac_ct_CXX="$ac_prog"
4770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4779 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4780 if test -n "$ac_ct_CXX"; then
4781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4782 $as_echo "$ac_ct_CXX" >&6; }
4784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4785 $as_echo "no" >&6; }
4789 test -n "$ac_ct_CXX" && break
4792 if test "x$ac_ct_CXX" = x; then
4795 case $cross_compiling:$ac_tool_warned in
4797 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4798 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4799 ac_tool_warned=yes ;;
4807 # Provide some information about the compiler.
4808 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4811 for ac_option in --version -v -V -qversion; do
4812 { { ac_try="$ac_compiler $ac_option >&5"
4814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4815 *) ac_try_echo=$ac_try;;
4817 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4818 $as_echo "$ac_try_echo"; } >&5
4819 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4821 if test -s conftest.err; then
4823 ... rest of stderr output deleted ...
4824 10q' conftest.err >conftest.er1
4825 cat conftest.er1 >&5
4826 rm -f conftest.er1 conftest.err
4828 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4829 test $ac_status = 0; }
4832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4833 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4834 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4835 $as_echo_n "(cached) " >&6
4837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4838 /* end confdefs.h. */
4851 if ac_fn_cxx_try_compile "$LINENO"; then :
4856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4857 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4861 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4862 if test $ac_compiler_gnu = yes; then
4867 ac_test_CXXFLAGS=${CXXFLAGS+set}
4868 ac_save_CXXFLAGS=$CXXFLAGS
4869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4870 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4871 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4872 $as_echo_n "(cached) " >&6
4874 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4875 ac_cxx_werror_flag=yes
4878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4879 /* end confdefs.h. */
4889 if ac_fn_cxx_try_compile "$LINENO"; then :
4890 ac_cv_prog_cxx_g=yes
4893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4894 /* end confdefs.h. */
4904 if ac_fn_cxx_try_compile "$LINENO"; then :
4907 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4910 /* end confdefs.h. */
4920 if ac_fn_cxx_try_compile "$LINENO"; then :
4921 ac_cv_prog_cxx_g=yes
4923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4928 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4931 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4932 if test "$ac_test_CXXFLAGS" = set; then
4933 CXXFLAGS=$ac_save_CXXFLAGS
4934 elif test $ac_cv_prog_cxx_g = yes; then
4935 if test "$GXX" = yes; then
4941 if test "$GXX" = yes; then
4948 ac_cpp='$CPP $CPPFLAGS'
4949 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4950 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4951 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4953 depcc="$CXX" am_compiler_list=
4955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4956 $as_echo_n "checking dependency style of $depcc... " >&6; }
4957 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
4958 $as_echo_n "(cached) " >&6
4960 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4961 # We make a subdir and do the tests there. Otherwise we can end up
4962 # making bogus files that we don't know about and never remove. For
4963 # instance it was reported that on HP-UX the gcc test will end up
4964 # making a dummy file named `D' -- because `-MD' means `put the output
4968 # Copy depcomp to subdir because otherwise we won't find it if we're
4969 # using a relative directory.
4970 cp "$am_depcomp" conftest.dir
4972 # We will build objects and dependencies in a subdirectory because
4973 # it helps to detect inapplicable dependency modes. For instance
4974 # both Tru64's cc and ICC support -MD to output dependencies as a
4975 # side effect of compilation, but ICC will put the dependencies in
4976 # the current directory while Tru64 will put them in the object
4980 am_cv_CXX_dependencies_compiler_type=none
4981 if test "$am_compiler_list" = ""; then
4982 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4985 case " $depcc " in #(
4986 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4989 for depmode in $am_compiler_list; do
4990 # Setup a source with many dependencies, because some compilers
4991 # like to wrap large dependency lists on column 80 (with \), and
4992 # we should not choose a depcomp mode which is confused by this.
4994 # We need to recreate these files for each test, as the compiler may
4995 # overwrite some of them when testing with obscure command lines.
4996 # This happens at least with the AIX C compiler.
4998 for i in 1 2 3 4 5 6; do
4999 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5000 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5001 # Solaris 8's {/usr,}/bin/sh.
5002 touch sub/conftst$i.h
5004 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5006 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5007 # mode. It turns out that the SunPro C++ compiler does not properly
5008 # handle `-M -o', and we need to detect this. Also, some Intel
5009 # versions had trouble with output in subdirs
5010 am__obj=sub/conftest.${OBJEXT-o}
5011 am__minus_obj="-o $am__obj"
5014 # This depmode causes a compiler race in universal mode.
5015 test "$am__universal" = false || continue
5018 # after this tag, mechanisms are not by side-effect, so they'll
5019 # only be used when explicitly requested
5020 if test "x$enable_dependency_tracking" = xyes; then
5026 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5027 # This compiler won't grok `-c -o', but also, the minuso test has
5028 # not run yet. These depmodes are late enough in the game, and
5029 # so weak that their functioning should not be impacted.
5030 am__obj=conftest.${OBJEXT-o}
5035 if depmode=$depmode \
5036 source=sub/conftest.c object=$am__obj \
5037 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5038 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5039 >/dev/null 2>conftest.err &&
5040 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5041 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5042 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5043 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5044 # icc doesn't choke on unknown options, it will just issue warnings
5045 # or remarks (even with -Werror). So we grep stderr for any message
5046 # that says an option was ignored or not supported.
5047 # When given -MP, icc 7.0 and 7.1 complain thusly:
5048 # icc: Command line warning: ignoring option '-M'; no argument required
5049 # The diagnosis changed in icc 8.0:
5050 # icc: Command line remark: option '-MP' not supported
5051 if (grep 'ignoring option' conftest.err ||
5052 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5053 am_cv_CXX_dependencies_compiler_type=$depmode
5062 am_cv_CXX_dependencies_compiler_type=none
5066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5067 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5068 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5071 test "x$enable_dependency_tracking" != xno \
5072 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5073 am__fastdepCXX_TRUE=
5074 am__fastdepCXX_FALSE='#'
5076 am__fastdepCXX_TRUE='#'
5077 am__fastdepCXX_FALSE=
5081 for ac_prog in 'bison -y' byacc
5083 # Extract the first word of "$ac_prog", so it can be a program name with args.
5084 set dummy $ac_prog; ac_word=$2
5085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5086 $as_echo_n "checking for $ac_word... " >&6; }
5087 if test "${ac_cv_prog_YACC+set}" = set; then :
5088 $as_echo_n "(cached) " >&6
5090 if test -n "$YACC"; then
5091 ac_cv_prog_YACC="$YACC" # Let the user override the test.
5093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5097 test -z "$as_dir" && as_dir=.
5098 for ac_exec_ext in '' $ac_executable_extensions; do
5099 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5100 ac_cv_prog_YACC="$ac_prog"
5101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5110 YACC=$ac_cv_prog_YACC
5111 if test -n "$YACC"; then
5112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
5113 $as_echo "$YACC" >&6; }
5115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5116 $as_echo "no" >&6; }
5120 test -n "$YACC" && break
5122 test -n "$YACC" || YACC="yacc"
5124 if test -n "$ac_tool_prefix"; then
5125 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5126 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5128 $as_echo_n "checking for $ac_word... " >&6; }
5129 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5130 $as_echo_n "(cached) " >&6
5132 if test -n "$RANLIB"; then
5133 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5139 test -z "$as_dir" && as_dir=.
5140 for ac_exec_ext in '' $ac_executable_extensions; do
5141 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5142 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5152 RANLIB=$ac_cv_prog_RANLIB
5153 if test -n "$RANLIB"; then
5154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5155 $as_echo "$RANLIB" >&6; }
5157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5158 $as_echo "no" >&6; }
5163 if test -z "$ac_cv_prog_RANLIB"; then
5164 ac_ct_RANLIB=$RANLIB
5165 # Extract the first word of "ranlib", so it can be a program name with args.
5166 set dummy ranlib; ac_word=$2
5167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5168 $as_echo_n "checking for $ac_word... " >&6; }
5169 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5170 $as_echo_n "(cached) " >&6
5172 if test -n "$ac_ct_RANLIB"; then
5173 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5179 test -z "$as_dir" && as_dir=.
5180 for ac_exec_ext in '' $ac_executable_extensions; do
5181 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5182 ac_cv_prog_ac_ct_RANLIB="ranlib"
5183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5192 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5193 if test -n "$ac_ct_RANLIB"; then
5194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5195 $as_echo "$ac_ct_RANLIB" >&6; }
5197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5198 $as_echo "no" >&6; }
5201 if test "x$ac_ct_RANLIB" = x; then
5204 case $cross_compiling:$ac_tool_warned in
5206 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5207 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5208 ac_tool_warned=yes ;;
5210 RANLIB=$ac_ct_RANLIB
5213 RANLIB="$ac_cv_prog_RANLIB"
5217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5218 $as_echo_n "checking whether ln -s works... " >&6; }
5220 if test "$LN_S" = "ln -s"; then
5221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5222 $as_echo "yes" >&6; }
5224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5225 $as_echo "no, using $LN_S" >&6; }
5231 ac_cpp='$CPP $CPPFLAGS'
5232 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5233 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5234 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5236 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5237 # On Suns, sometimes $CPP names a directory.
5238 if test -n "$CPP" && test -d "$CPP"; then
5241 if test -z "$CPP"; then
5242 if test "${ac_cv_prog_CPP+set}" = set; then :
5243 $as_echo_n "(cached) " >&6
5245 # Double quotes because CPP needs to be expanded
5246 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5249 for ac_c_preproc_warn_flag in '' yes
5251 # Use a header file that comes with gcc, so configuring glibc
5252 # with a fresh cross-compiler works.
5253 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5254 # <limits.h> exists even on freestanding compilers.
5255 # On the NeXT, cc -E runs the code through the compiler's parser,
5256 # not just through cpp. "Syntax error" is here to catch this case.
5257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5258 /* end confdefs.h. */
5260 # include <limits.h>
5262 # include <assert.h>
5266 if ac_fn_c_try_cpp "$LINENO"; then :
5269 # Broken: fails on valid input.
5272 rm -f conftest.err conftest.$ac_ext
5274 # OK, works on sane cases. Now check whether nonexistent headers
5275 # can be detected and how.
5276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5277 /* end confdefs.h. */
5278 #include <ac_nonexistent.h>
5280 if ac_fn_c_try_cpp "$LINENO"; then :
5281 # Broken: success on invalid input.
5284 # Passes both tests.
5288 rm -f conftest.err conftest.$ac_ext
5291 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5292 rm -f conftest.err conftest.$ac_ext
5293 if $ac_preproc_ok; then :
5305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5306 $as_echo "$CPP" >&6; }
5308 for ac_c_preproc_warn_flag in '' yes
5310 # Use a header file that comes with gcc, so configuring glibc
5311 # with a fresh cross-compiler works.
5312 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5313 # <limits.h> exists even on freestanding compilers.
5314 # On the NeXT, cc -E runs the code through the compiler's parser,
5315 # not just through cpp. "Syntax error" is here to catch this case.
5316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5317 /* end confdefs.h. */
5319 # include <limits.h>
5321 # include <assert.h>
5325 if ac_fn_c_try_cpp "$LINENO"; then :
5328 # Broken: fails on valid input.
5331 rm -f conftest.err conftest.$ac_ext
5333 # OK, works on sane cases. Now check whether nonexistent headers
5334 # can be detected and how.
5335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5336 /* end confdefs.h. */
5337 #include <ac_nonexistent.h>
5339 if ac_fn_c_try_cpp "$LINENO"; then :
5340 # Broken: success on invalid input.
5343 # Passes both tests.
5347 rm -f conftest.err conftest.$ac_ext
5350 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5351 rm -f conftest.err conftest.$ac_ext
5352 if $ac_preproc_ok; then :
5355 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5356 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5357 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5358 See \`config.log' for more details." "$LINENO" 5; }
5362 ac_cpp='$CPP $CPPFLAGS'
5363 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5364 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5365 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5369 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5370 if test "${ac_cv_path_GREP+set}" = set; then :
5371 $as_echo_n "(cached) " >&6
5373 if test -z "$GREP"; then
5374 ac_path_GREP_found=false
5375 # Loop through the user's path and test for each of PROGNAME-LIST
5376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5377 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5380 test -z "$as_dir" && as_dir=.
5381 for ac_prog in grep ggrep; do
5382 for ac_exec_ext in '' $ac_executable_extensions; do
5383 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5384 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5385 # Check for GNU ac_path_GREP and select it if it is found.
5386 # Check for GNU $ac_path_GREP
5387 case `"$ac_path_GREP" --version 2>&1` in
5389 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5392 $as_echo_n 0123456789 >"conftest.in"
5395 cat "conftest.in" "conftest.in" >"conftest.tmp"
5396 mv "conftest.tmp" "conftest.in"
5397 cp "conftest.in" "conftest.nl"
5398 $as_echo 'GREP' >> "conftest.nl"
5399 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5400 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5401 as_fn_arith $ac_count + 1 && ac_count=$as_val
5402 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5403 # Best one so far, save it but keep looking for a better one
5404 ac_cv_path_GREP="$ac_path_GREP"
5405 ac_path_GREP_max=$ac_count
5407 # 10*(2^10) chars as input seems more than enough
5408 test $ac_count -gt 10 && break
5410 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5413 $ac_path_GREP_found && break 3
5418 if test -z "$ac_cv_path_GREP"; then
5419 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5422 ac_cv_path_GREP=$GREP
5426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5427 $as_echo "$ac_cv_path_GREP" >&6; }
5428 GREP="$ac_cv_path_GREP"
5431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5432 $as_echo_n "checking for egrep... " >&6; }
5433 if test "${ac_cv_path_EGREP+set}" = set; then :
5434 $as_echo_n "(cached) " >&6
5436 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5437 then ac_cv_path_EGREP="$GREP -E"
5439 if test -z "$EGREP"; then
5440 ac_path_EGREP_found=false
5441 # Loop through the user's path and test for each of PROGNAME-LIST
5442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5443 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5446 test -z "$as_dir" && as_dir=.
5447 for ac_prog in egrep; do
5448 for ac_exec_ext in '' $ac_executable_extensions; do
5449 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5450 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5451 # Check for GNU ac_path_EGREP and select it if it is found.
5452 # Check for GNU $ac_path_EGREP
5453 case `"$ac_path_EGREP" --version 2>&1` in
5455 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5458 $as_echo_n 0123456789 >"conftest.in"
5461 cat "conftest.in" "conftest.in" >"conftest.tmp"
5462 mv "conftest.tmp" "conftest.in"
5463 cp "conftest.in" "conftest.nl"
5464 $as_echo 'EGREP' >> "conftest.nl"
5465 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5466 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5467 as_fn_arith $ac_count + 1 && ac_count=$as_val
5468 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5469 # Best one so far, save it but keep looking for a better one
5470 ac_cv_path_EGREP="$ac_path_EGREP"
5471 ac_path_EGREP_max=$ac_count
5473 # 10*(2^10) chars as input seems more than enough
5474 test $ac_count -gt 10 && break
5476 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5479 $ac_path_EGREP_found && break 3
5484 if test -z "$ac_cv_path_EGREP"; then
5485 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5488 ac_cv_path_EGREP=$EGREP
5493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5494 $as_echo "$ac_cv_path_EGREP" >&6; }
5495 EGREP="$ac_cv_path_EGREP"
5498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5499 $as_echo_n "checking for ANSI C header files... " >&6; }
5500 if test "${ac_cv_header_stdc+set}" = set; then :
5501 $as_echo_n "(cached) " >&6
5503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5504 /* end confdefs.h. */
5518 if ac_fn_c_try_compile "$LINENO"; then :
5519 ac_cv_header_stdc=yes
5521 ac_cv_header_stdc=no
5523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5525 if test $ac_cv_header_stdc = yes; then
5526 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5528 /* end confdefs.h. */
5532 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5533 $EGREP "memchr" >/dev/null 2>&1; then :
5536 ac_cv_header_stdc=no
5542 if test $ac_cv_header_stdc = yes; then
5543 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5545 /* end confdefs.h. */
5549 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5550 $EGREP "free" >/dev/null 2>&1; then :
5553 ac_cv_header_stdc=no
5559 if test $ac_cv_header_stdc = yes; then
5560 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5561 if test "$cross_compiling" = yes; then :
5564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5565 /* end confdefs.h. */
5568 #if ((' ' & 0x0FF) == 0x020)
5569 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5570 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5572 # define ISLOWER(c) \
5573 (('a' <= (c) && (c) <= 'i') \
5574 || ('j' <= (c) && (c) <= 'r') \
5575 || ('s' <= (c) && (c) <= 'z'))
5576 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5579 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5584 for (i = 0; i < 256; i++)
5585 if (XOR (islower (i), ISLOWER (i))
5586 || toupper (i) != TOUPPER (i))
5591 if ac_fn_c_try_run "$LINENO"; then :
5594 ac_cv_header_stdc=no
5596 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5597 conftest.$ac_objext conftest.beam conftest.$ac_ext
5602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5603 $as_echo "$ac_cv_header_stdc" >&6; }
5604 if test $ac_cv_header_stdc = yes; then
5606 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5610 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5611 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5612 inttypes.h stdint.h unistd.h
5614 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5615 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5617 eval as_val=\$$as_ac_Header
5618 if test "x$as_val" = x""yes; then :
5619 cat >>confdefs.h <<_ACEOF
5620 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5629 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5630 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5637 if test "$MINIX" = yes; then
5639 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5642 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5645 $as_echo "#define _MINIX 1" >>confdefs.h
5650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5651 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5652 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5653 $as_echo_n "(cached) " >&6
5655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5656 /* end confdefs.h. */
5658 # define __EXTENSIONS__ 1
5659 $ac_includes_default
5668 if ac_fn_c_try_compile "$LINENO"; then :
5669 ac_cv_safe_to_define___extensions__=yes
5671 ac_cv_safe_to_define___extensions__=no
5673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5676 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5677 test $ac_cv_safe_to_define___extensions__ = yes &&
5678 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5680 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5682 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5684 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5686 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5691 # If we haven't got the data from the intl directory,
5692 # assume NLS is disabled.
5701 if test -f ../intl/config.intl; then
5702 . ../intl/config.intl
5704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
5705 $as_echo_n "checking whether NLS is requested... " >&6; }
5706 if test x"$USE_NLS" != xyes; then
5707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5708 $as_echo "no" >&6; }
5710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5711 $as_echo "yes" >&6; }
5713 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
5716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
5717 $as_echo_n "checking for catalogs to be installed... " >&6; }
5718 # Look for .po and .gmo files in the source directory.
5721 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
5722 # If there aren't any .gmo files the shell will give us the
5723 # literal string "../path/to/srcdir/po/*.gmo" which has to be
5725 case "$cat" in *\**)
5728 # The quadruple backslash is collapsed to a double backslash
5729 # by the backticks, then collapsed again by the double quotes,
5730 # leaving us with one backslash in the sed expression (right
5731 # before the dot that mustn't act as a wildcard).
5732 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
5733 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
5734 # The user is allowed to set LINGUAS to a list of languages to
5735 # install catalogs for. If it's empty that means "all of them."
5736 if test "x$LINGUAS" = x; then
5737 CATALOGS="$CATALOGS $cat"
5738 XLINGUAS="$XLINGUAS $lang"
5740 case "$LINGUAS" in *$lang*)
5741 CATALOGS="$CATALOGS $cat"
5742 XLINGUAS="$XLINGUAS $lang"
5748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
5749 $as_echo "$LINGUAS" >&6; }
5763 if test -n "$ac_aux_dir"; then
5764 case "$ac_aux_dir" in
5765 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
5766 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
5769 if test -z "$MKINSTALLDIRS"; then
5770 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
5776 $as_echo_n "checking whether NLS is requested... " >&6; }
5777 # Check whether --enable-nls was given.
5778 if test "${enable_nls+set}" = set; then :
5779 enableval=$enable_nls; USE_NLS=$enableval
5784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
5785 $as_echo "$USE_NLS" >&6; }
5792 # Prepare PATH_SEPARATOR.
5793 # The user is always right.
5794 if test "${PATH_SEPARATOR+set}" != set; then
5795 echo "#! /bin/sh" >conf$$.sh
5796 echo "exit 0" >>conf$$.sh
5798 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5806 # Find out how to test for executable files. Don't use a zero-byte file,
5807 # as systems may use methods other than mode bits to determine executability.
5808 cat >conf$$.file <<_ASEOF
5812 chmod +x conf$$.file
5813 if test -x conf$$.file >/dev/null 2>&1; then
5814 ac_executable_p="test -x"
5816 ac_executable_p="test -f"
5820 # Extract the first word of "msgfmt", so it can be a program name with args.
5821 set dummy msgfmt; ac_word=$2
5822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5823 $as_echo_n "checking for $ac_word... " >&6; }
5824 if test "${ac_cv_path_MSGFMT+set}" = set; then :
5825 $as_echo_n "(cached) " >&6
5829 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5832 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5833 for ac_dir in $PATH; do
5835 test -z "$ac_dir" && ac_dir=.
5836 for ac_exec_ext in '' $ac_executable_extensions; do
5837 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5838 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
5839 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5840 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
5847 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5851 MSGFMT="$ac_cv_path_MSGFMT"
5852 if test "$MSGFMT" != ":"; then
5853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
5854 $as_echo "$MSGFMT" >&6; }
5856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5857 $as_echo "no" >&6; }
5860 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5861 set dummy gmsgfmt; ac_word=$2
5862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5863 $as_echo_n "checking for $ac_word... " >&6; }
5864 if test "${ac_cv_path_GMSGFMT+set}" = set; then :
5865 $as_echo_n "(cached) " >&6
5869 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5876 test -z "$as_dir" && as_dir=.
5877 for ac_exec_ext in '' $ac_executable_extensions; do
5878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5879 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5887 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5891 GMSGFMT=$ac_cv_path_GMSGFMT
5892 if test -n "$GMSGFMT"; then
5893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
5894 $as_echo "$GMSGFMT" >&6; }
5896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5897 $as_echo "no" >&6; }
5903 # Prepare PATH_SEPARATOR.
5904 # The user is always right.
5905 if test "${PATH_SEPARATOR+set}" != set; then
5906 echo "#! /bin/sh" >conf$$.sh
5907 echo "exit 0" >>conf$$.sh
5909 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5917 # Find out how to test for executable files. Don't use a zero-byte file,
5918 # as systems may use methods other than mode bits to determine executability.
5919 cat >conf$$.file <<_ASEOF
5923 chmod +x conf$$.file
5924 if test -x conf$$.file >/dev/null 2>&1; then
5925 ac_executable_p="test -x"
5927 ac_executable_p="test -f"
5931 # Extract the first word of "xgettext", so it can be a program name with args.
5932 set dummy xgettext; ac_word=$2
5933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5934 $as_echo_n "checking for $ac_word... " >&6; }
5935 if test "${ac_cv_path_XGETTEXT+set}" = set; then :
5936 $as_echo_n "(cached) " >&6
5940 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5943 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5944 for ac_dir in $PATH; do
5946 test -z "$ac_dir" && ac_dir=.
5947 for ac_exec_ext in '' $ac_executable_extensions; do
5948 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5949 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
5950 (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
5951 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5958 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5962 XGETTEXT="$ac_cv_path_XGETTEXT"
5963 if test "$XGETTEXT" != ":"; then
5964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
5965 $as_echo "$XGETTEXT" >&6; }
5967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5968 $as_echo "no" >&6; }
5974 # Prepare PATH_SEPARATOR.
5975 # The user is always right.
5976 if test "${PATH_SEPARATOR+set}" != set; then
5977 echo "#! /bin/sh" >conf$$.sh
5978 echo "exit 0" >>conf$$.sh
5980 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5988 # Find out how to test for executable files. Don't use a zero-byte file,
5989 # as systems may use methods other than mode bits to determine executability.
5990 cat >conf$$.file <<_ASEOF
5994 chmod +x conf$$.file
5995 if test -x conf$$.file >/dev/null 2>&1; then
5996 ac_executable_p="test -x"
5998 ac_executable_p="test -f"
6002 # Extract the first word of "msgmerge", so it can be a program name with args.
6003 set dummy msgmerge; ac_word=$2
6004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6005 $as_echo_n "checking for $ac_word... " >&6; }
6006 if test "${ac_cv_path_MSGMERGE+set}" = set; then :
6007 $as_echo_n "(cached) " >&6
6011 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
6014 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6015 for ac_dir in $PATH; do
6017 test -z "$ac_dir" && ac_dir=.
6018 for ac_exec_ext in '' $ac_executable_extensions; do
6019 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6020 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
6021 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
6028 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
6032 MSGMERGE="$ac_cv_path_MSGMERGE"
6033 if test "$MSGMERGE" != ":"; then
6034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
6035 $as_echo "$MSGMERGE" >&6; }
6037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6038 $as_echo "no" >&6; }
6042 if test "$GMSGFMT" != ":"; then
6043 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
6044 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6047 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
6048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
6049 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
6054 if test "$XGETTEXT" != ":"; then
6055 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
6056 (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
6059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
6060 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
6066 ac_config_commands="$ac_config_commands default-1"
6070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
6071 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
6072 if test "${ac_cv_c_bigendian+set}" = set; then :
6073 $as_echo_n "(cached) " >&6
6075 ac_cv_c_bigendian=unknown
6076 # See if we're dealing with a universal compiler.
6077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6078 /* end confdefs.h. */
6079 #ifndef __APPLE_CC__
6080 not a universal capable compiler
6085 if ac_fn_c_try_compile "$LINENO"; then :
6087 # Check for potential -arch flags. It is not universal unless
6088 # there are at least two -arch flags with different values.
6091 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
6092 if test -n "$ac_prev"; then
6094 i?86 | x86_64 | ppc | ppc64)
6095 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
6098 ac_cv_c_bigendian=universal
6104 elif test "x$ac_word" = "x-arch"; then
6109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6110 if test $ac_cv_c_bigendian = unknown; then
6111 # See if sys/param.h defines the BYTE_ORDER macro.
6112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6113 /* end confdefs.h. */
6114 #include <sys/types.h>
6115 #include <sys/param.h>
6120 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
6121 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
6130 if ac_fn_c_try_compile "$LINENO"; then :
6131 # It does; now see whether it defined to BIG_ENDIAN or not.
6132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6133 /* end confdefs.h. */
6134 #include <sys/types.h>
6135 #include <sys/param.h>
6140 #if BYTE_ORDER != BIG_ENDIAN
6148 if ac_fn_c_try_compile "$LINENO"; then :
6149 ac_cv_c_bigendian=yes
6151 ac_cv_c_bigendian=no
6153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6157 if test $ac_cv_c_bigendian = unknown; then
6158 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
6159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6160 /* end confdefs.h. */
6166 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
6174 if ac_fn_c_try_compile "$LINENO"; then :
6175 # It does; now see whether it defined to _BIG_ENDIAN or not.
6176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6177 /* end confdefs.h. */
6191 if ac_fn_c_try_compile "$LINENO"; then :
6192 ac_cv_c_bigendian=yes
6194 ac_cv_c_bigendian=no
6196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6200 if test $ac_cv_c_bigendian = unknown; then
6201 # Compile a test program.
6202 if test "$cross_compiling" = yes; then :
6203 # Try to guess by grepping values from an object file.
6204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6205 /* end confdefs.h. */
6206 short int ascii_mm[] =
6207 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
6208 short int ascii_ii[] =
6209 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
6210 int use_ascii (int i) {
6211 return ascii_mm[i] + ascii_ii[i];
6213 short int ebcdic_ii[] =
6214 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
6215 short int ebcdic_mm[] =
6216 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
6217 int use_ebcdic (int i) {
6218 return ebcdic_mm[i] + ebcdic_ii[i];
6225 return use_ascii (foo) == use_ebcdic (foo);
6230 if ac_fn_c_try_compile "$LINENO"; then :
6231 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
6232 ac_cv_c_bigendian=yes
6234 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
6235 if test "$ac_cv_c_bigendian" = unknown; then
6236 ac_cv_c_bigendian=no
6238 # finding both strings is unlikely to happen, but who knows?
6239 ac_cv_c_bigendian=unknown
6243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6246 /* end confdefs.h. */
6247 $ac_includes_default
6252 /* Are we little or big endian? From Harbison&Steele. */
6256 char c[sizeof (long int)];
6259 return u.c[sizeof (long int) - 1] == 1;
6265 if ac_fn_c_try_run "$LINENO"; then :
6266 ac_cv_c_bigendian=no
6268 ac_cv_c_bigendian=yes
6270 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6271 conftest.$ac_objext conftest.beam conftest.$ac_ext
6276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
6277 $as_echo "$ac_cv_c_bigendian" >&6; }
6278 case $ac_cv_c_bigendian in #(
6280 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
6286 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
6290 as_fn_error "unknown endianness
6291 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
6297 if test "x$target_alias" = "x" -o "x$host_alias" = "x$target_alias"; then
6299 NATIVE_LINKER_FALSE='#'
6301 NATIVE_LINKER_TRUE='#'
6302 NATIVE_LINKER_FALSE=
6305 if test "$GCC" = yes; then
6314 if test "x$target_alias" = "x" -o "x$host_alias" = "x$target_alias" -o "x$host_alias" = "x$build_alias"; then
6315 NATIVE_OR_CROSS_LINKER_TRUE=
6316 NATIVE_OR_CROSS_LINKER_FALSE='#'
6318 NATIVE_OR_CROSS_LINKER_TRUE='#'
6319 NATIVE_OR_CROSS_LINKER_FALSE=
6323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether static linking works" >&5
6324 $as_echo_n "checking whether static linking works... " >&6; }
6325 if test "${gold_cv_lib_static+set}" = set; then :
6326 $as_echo_n "(cached) " >&6
6328 LDFLAGS_hold=$LDFLAGS
6329 LDFLAGS="$LDFLAGS -static"
6330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6331 /* end confdefs.h. */
6342 if ac_fn_c_try_link "$LINENO"; then :
6343 gold_cv_lib_static=yes
6345 gold_cv_lib_static=no
6347 rm -f core conftest.err conftest.$ac_objext \
6348 conftest$ac_exeext conftest.$ac_ext
6349 LDFLAGS=$LDFLAGS_hold
6351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_lib_static" >&5
6352 $as_echo "$gold_cv_lib_static" >&6; }
6353 if test "$gold_cv_lib_static" = "yes"; then
6355 HAVE_STATIC_FALSE='#'
6357 HAVE_STATIC_TRUE='#'
6370 FN_PTRS_IN_SO_WITHOUT_PIC_TRUE=
6371 FN_PTRS_IN_SO_WITHOUT_PIC_FALSE='#'
6373 FN_PTRS_IN_SO_WITHOUT_PIC_TRUE='#'
6374 FN_PTRS_IN_SO_WITHOUT_PIC_FALSE=
6378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc >= 4.1" >&5
6379 $as_echo_n "checking for gcc >= 4.1... " >&6; }
6380 if test "${gold_cv_prog_gcc41+set}" = set; then :
6381 $as_echo_n "(cached) " >&6
6383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6384 /* end confdefs.h. */
6386 #if !defined __GNUC__
6388 #elif __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 1)
6393 if ac_fn_c_try_compile "$LINENO"; then :
6394 gold_cv_prog_gcc41=yes
6396 gold_cv_prog_gcc41=no
6398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_prog_gcc41" >&5
6401 $as_echo "$gold_cv_prog_gcc41" >&6; }
6403 save_CFLAGS="$CFLAGS"
6404 CFLAGS="$CFLAGS -mcmodel=medium"
6405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6406 /* end confdefs.h. */
6409 if ac_fn_c_try_compile "$LINENO"; then :
6410 have_mcmodel_medium=yes
6412 have_mcmodel_medium=no
6414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6415 CFLAGS="$save_CFLAGS"
6416 if test "$target_cpu" = "x86_64" -a "$have_mcmodel_medium" = "yes" -a "$gold_cv_prog_gcc41" = "yes"; then
6417 MCMODEL_MEDIUM_TRUE=
6418 MCMODEL_MEDIUM_FALSE='#'
6420 MCMODEL_MEDIUM_TRUE='#'
6421 MCMODEL_MEDIUM_FALSE=
6425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -fmerge-constants" >&5
6426 $as_echo_n "checking whether $CC supports -fmerge-constants... " >&6; }
6427 if test "${gold_cv_merge_constants+set}" = set; then :
6428 $as_echo_n "(cached) " >&6
6431 save_CFLAGS="$CFLAGS"
6432 CFLAGS="$CFLAGS -fmerge-constants"
6433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6434 /* end confdefs.h. */
6435 const char *s = "foo";
6437 if ac_fn_c_try_compile "$LINENO"; then :
6438 gold_cv_merge_constants=yes
6440 gold_cv_merge_constants=no
6442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6443 CFLAGS="$save_CFLAGS"
6445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_merge_constants" >&5
6446 $as_echo "$gold_cv_merge_constants" >&6; }
6448 if test "$gold_cv_merge_constants" = yes; then :
6449 MERGE_CONSTANTS_FLAG=-fmerge-constants
6451 MERGE_CONSTANTS_FLAG=
6454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread support" >&5
6455 $as_echo_n "checking for thread support... " >&6; }
6456 if test "${gold_cv_c_thread+set}" = set; then :
6457 $as_echo_n "(cached) " >&6
6459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6460 /* end confdefs.h. */
6463 if ac_fn_c_try_compile "$LINENO"; then :
6464 gold_cv_c_thread=yes
6468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_c_thread" >&5
6471 $as_echo "$gold_cv_c_thread" >&6; }
6473 if test "$gold_cv_c_thread" = "yes"; then
6482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc >= 2.4" >&5
6483 $as_echo_n "checking for glibc >= 2.4... " >&6; }
6484 if test "${gold_cv_lib_glibc24+set}" = set; then :
6485 $as_echo_n "(cached) " >&6
6487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6488 /* end confdefs.h. */
6490 #include <features.h>
6491 #if !defined __GLIBC__
6493 #elif __GLIBC__ < 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ < 4)
6498 if ac_fn_c_try_compile "$LINENO"; then :
6499 gold_cv_lib_glibc24=yes
6501 gold_cv_lib_glibc24=no
6503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_lib_glibc24" >&5
6506 $as_echo "$gold_cv_lib_glibc24" >&6; }
6508 if test "$gold_cv_lib_glibc24" = "yes"; then
6510 STATIC_TLS_FALSE='#'
6517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for omp support" >&5
6518 $as_echo_n "checking for omp support... " >&6; }
6519 if test "${gold_cv_c_threadprivate+set}" = set; then :
6520 $as_echo_n "(cached) " >&6
6522 save_CFLAGS="$CFLAGS"
6523 CFLAGS="$CFLAGS -fopenmp"
6524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6525 /* end confdefs.h. */
6529 #pragma omp threadprivate (i)
6532 if ac_fn_c_try_compile "$LINENO"; then :
6533 gold_cv_c_threadprivate=yes
6535 gold_cv_c_threadprivate=no
6537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6538 CFLAGS="$save_CFLAGS"
6540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_c_threadprivate" >&5
6541 $as_echo "$gold_cv_c_threadprivate" >&6; }
6542 if test "$gold_cv_c_threadprivate" = "yes"; then
6544 $as_echo "#define HAVE_OMP_SUPPORT 1" >>confdefs.h
6547 if test "$gold_cv_c_threadprivate" = "yes"; then
6549 OMP_SUPPORT_FALSE='#'
6551 OMP_SUPPORT_TRUE='#'
6556 save_CFLAGS="$CFLAGS"
6557 CFLAGS="$CFLAGS -Werror -fpic -mtls-dialect=gnu2"
6558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6559 /* end confdefs.h. */
6568 if ac_fn_c_try_compile "$LINENO"; then :
6573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6574 CFLAGS="$save_CFLAGS"
6575 if test "$have_tls_gnu2" = "yes"; then
6576 TLS_GNU2_DIALECT_TRUE=
6577 TLS_GNU2_DIALECT_FALSE='#'
6579 TLS_GNU2_DIALECT_TRUE='#'
6580 TLS_GNU2_DIALECT_FALSE=
6584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc >= 2.9" >&5
6585 $as_echo_n "checking for glibc >= 2.9... " >&6; }
6586 if test "${gold_cv_lib_glibc29+set}" = set; then :
6587 $as_echo_n "(cached) " >&6
6589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6590 /* end confdefs.h. */
6592 #include <features.h>
6593 #if !defined __GLIBC__
6595 #elif __GLIBC__ < 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ < 9)
6600 if ac_fn_c_try_compile "$LINENO"; then :
6601 gold_cv_lib_glibc29=yes
6603 gold_cv_lib_glibc29=no
6605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_lib_glibc29" >&5
6608 $as_echo "$gold_cv_lib_glibc29" >&6; }
6610 if test "$gold_cv_lib_glibc29" = "yes"; then
6611 TLS_DESCRIPTORS_TRUE=
6612 TLS_DESCRIPTORS_FALSE='#'
6614 TLS_DESCRIPTORS_TRUE='#'
6615 TLS_DESCRIPTORS_FALSE=
6619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -frandom-seed support" >&5
6620 $as_echo_n "checking for -frandom-seed support... " >&6; }
6621 if test "${gold_cv_c_random_seed+set}" = set; then :
6622 $as_echo_n "(cached) " >&6
6624 save_CFLAGS="$CFLAGS"
6625 CFLAGS="$CFLAGS -frandom-seed=foo"
6626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6627 /* end confdefs.h. */
6630 if ac_fn_c_try_compile "$LINENO"; then :
6631 gold_cv_c_random_seed=yes
6633 gold_cv_c_random_seed=no
6635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6636 CFLAGS="$save_CFLAGS"
6638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_c_random_seed" >&5
6639 $as_echo "$gold_cv_c_random_seed" >&6; }
6640 if test "$gold_cv_c_random_seed" = "yes"; then
6641 # In Makefile, '$@' will be expanded to be the name of the file
6642 # being built, providing a unique seed for each file.
6643 RANDOM_SEED_CFLAGS=-frandom-seed=\$@
6647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc ifunc support" >&5
6648 $as_echo_n "checking for glibc ifunc support... " >&6; }
6649 if test "${gold_cv_lib_glibc_ifunc+set}" = set; then :
6650 $as_echo_n "(cached) " >&6
6652 save_LDFLAGS="$LDFLAGS"
6653 LDFLAGS="$LDFLAGS -static"
6654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6655 /* end confdefs.h. */
6657 #include <features.h>
6658 #if !defined __GLIBC__
6660 #elif __GLIBC__ < 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ < 11)
6663 void func (void) { }
6665 __asm__(".type invoke, %gnu_indirect_function");
6666 typedef void (*funcptr) (void);
6667 funcptr dispatch (void) __asm__ ("invoke");
6668 funcptr dispatch (void) { return &func; }
6678 if ac_fn_c_try_link "$LINENO"; then :
6680 if ${NM} conftest$EXEEXT | grep "__rela\?_iplt_start" >/dev/null 2>&1; then
6681 gold_cv_lib_glibc_ifunc=both
6683 gold_cv_lib_glibc_ifunc=dyn
6686 gold_cv_lib_glibc_ifunc=no
6688 rm -f core conftest.err conftest.$ac_objext \
6689 conftest$ac_exeext conftest.$ac_ext
6690 LDFLAGS="$save_LDFLAGS"
6692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_lib_glibc_ifunc" >&5
6693 $as_echo "$gold_cv_lib_glibc_ifunc" >&6; }
6695 if test "$gold_cv_lib_glibc_ifunc" != "no"; then
6703 if test "$gold_cv_lib_glibc_ifunc" = "both"; then
6705 IFUNC_STATIC_FALSE='#'
6707 IFUNC_STATIC_TRUE='#'
6713 # Set the 'development' global.
6714 . $srcdir/../bfd/development.sh
6716 # Default set of GCC warnings to enable.
6717 GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
6719 # Add -Wshadow if the compiler is a sufficiently recent version of GCC.
6720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6721 /* end confdefs.h. */
6724 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6725 $EGREP "^[0-3]$" >/dev/null 2>&1; then :
6728 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wshadow"
6733 # Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
6734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6735 /* end confdefs.h. */
6738 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6739 $EGREP "^[0-4]$" >/dev/null 2>&1; then :
6742 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wstack-usage=262144"
6747 # Set WARN_WRITE_STRINGS if the compiler supports -Wwrite-strings.
6748 WARN_WRITE_STRINGS=""
6749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6750 /* end confdefs.h. */
6753 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6754 $EGREP "^[0-3]$" >/dev/null 2>&1; then :
6757 WARN_WRITE_STRINGS="-Wwrite-strings"
6762 # Check whether --enable-werror was given.
6763 if test "${enable_werror+set}" = set; then :
6764 enableval=$enable_werror; case "${enableval}" in
6765 yes | y) ERROR_ON_WARNING="yes" ;;
6766 no | n) ERROR_ON_WARNING="no" ;;
6767 *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
6772 # Disable -Wformat by default when using gcc on mingw
6775 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
6776 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
6782 # Enable -Werror by default when using gcc. Turn it off for releases.
6783 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" -a "$development" = true ; then
6784 ERROR_ON_WARNING=yes
6788 if test "${ERROR_ON_WARNING}" = yes ; then
6789 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
6790 NO_WERROR="-Wno-error"
6793 if test "${GCC}" = yes ; then
6794 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
6797 # Check whether --enable-build-warnings was given.
6798 if test "${enable_build_warnings+set}" = set; then :
6799 enableval=$enable_build_warnings; case "${enableval}" in
6800 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
6801 no) if test "${GCC}" = yes ; then
6804 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
6805 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
6806 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
6807 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
6808 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
6813 if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
6814 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
6822 WARN_CXXFLAGS=`echo ${WARN_CFLAGS} | sed -e 's/-Wstrict-prototypes//' -e 's/-Wmissing-prototypes//' -e 's/-Wshadow//'`
6826 # Check whether --with-gold-ldflags was given.
6827 if test "${with_gold_ldflags+set}" = set; then :
6828 withval=$with_gold_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
6831 GOLD_LDFLAGS=$withval
6840 # Check whether --with-gold-ldadd was given.
6841 if test "${with_gold_ldadd+set}" = set; then :
6842 withval=$with_gold_ldadd; if test "$withval" = "no" -o "$withval" = "yes"; then
6853 LFS_CFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
6856 for ac_header in sys/mman.h
6858 ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
6859 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
6860 cat >>confdefs.h <<_ACEOF
6861 #define HAVE_SYS_MMAN_H 1
6868 for ac_func in chsize mmap
6870 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6871 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6872 eval as_val=\$$as_ac_var
6873 if test "x$as_val" = x""yes; then :
6874 cat >>confdefs.h <<_ACEOF
6875 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6881 for ac_func in pread ftruncate ffsll
6883 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6884 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6885 eval as_val=\$$as_ac_var
6886 if test "x$as_val" = x""yes; then :
6887 cat >>confdefs.h <<_ACEOF
6888 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6892 case " $LIBOBJS " in
6893 *" $ac_func.$ac_objext "* ) ;;
6894 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
6903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking mremap with MREMAP_MAYMOVE" >&5
6904 $as_echo_n "checking mremap with MREMAP_MAYMOVE... " >&6; }
6905 if test "${gold_cv_lib_mremap_maymove+set}" = set; then :
6906 $as_echo_n "(cached) " >&6
6908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6909 /* end confdefs.h. */
6912 #include <sys/mman.h>
6913 void f() { mremap (0, 0, 0, MREMAP_MAYMOVE); }
6923 if ac_fn_c_try_link "$LINENO"; then :
6924 gold_cv_lib_mremap_maymove=yes
6926 gold_cv_lib_mremap_maymove=no
6928 rm -f core conftest.err conftest.$ac_objext \
6929 conftest$ac_exeext conftest.$ac_ext
6931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_lib_mremap_maymove" >&5
6932 $as_echo "$gold_cv_lib_mremap_maymove" >&6; }
6933 if test "$gold_cv_lib_mremap_maymove" = "yes"; then
6935 $as_echo "#define HAVE_MREMAP 1" >>confdefs.h
6938 case " $LIBOBJS " in
6939 *" mremap.$ac_objext "* ) ;;
6940 *) LIBOBJS="$LIBOBJS mremap.$ac_objext"
6946 # Link in zlib if we can. This allows us to write compressed sections.
6948 # Use the system's zlib library.
6949 zlibdir="-L\$(top_builddir)/../zlib"
6950 zlibinc="-I\$(top_srcdir)/../zlib"
6952 # Check whether --with-system-zlib was given.
6953 if test "${with_system_zlib+set}" = set; then :
6954 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
6965 ac_fn_c_check_decl "$LINENO" "basename" "ac_cv_have_decl_basename" "$ac_includes_default"
6966 if test "x$ac_cv_have_decl_basename" = x""yes; then :
6972 cat >>confdefs.h <<_ACEOF
6973 #define HAVE_DECL_BASENAME $ac_have_decl
6975 ac_fn_c_check_decl "$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default"
6976 if test "x$ac_cv_have_decl_ffs" = x""yes; then :
6982 cat >>confdefs.h <<_ACEOF
6983 #define HAVE_DECL_FFS $ac_have_decl
6985 ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
6986 if test "x$ac_cv_have_decl_asprintf" = x""yes; then :
6992 cat >>confdefs.h <<_ACEOF
6993 #define HAVE_DECL_ASPRINTF $ac_have_decl
6995 ac_fn_c_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
6996 if test "x$ac_cv_have_decl_vasprintf" = x""yes; then :
7002 cat >>confdefs.h <<_ACEOF
7003 #define HAVE_DECL_VASPRINTF $ac_have_decl
7005 ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
7006 if test "x$ac_cv_have_decl_snprintf" = x""yes; then :
7012 cat >>confdefs.h <<_ACEOF
7013 #define HAVE_DECL_SNPRINTF $ac_have_decl
7015 ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
7016 if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then :
7022 cat >>confdefs.h <<_ACEOF
7023 #define HAVE_DECL_VSNPRINTF $ac_have_decl
7025 ac_fn_c_check_decl "$LINENO" "strverscmp" "ac_cv_have_decl_strverscmp" "$ac_includes_default"
7026 if test "x$ac_cv_have_decl_strverscmp" = x""yes; then :
7032 cat >>confdefs.h <<_ACEOF
7033 #define HAVE_DECL_STRVERSCMP $ac_have_decl
7037 save_CFLAGS="$CFLAGS"
7038 CFLAGS="$CFLAGS -Werror -gpubnames"
7039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7040 /* end confdefs.h. */
7043 if ac_fn_c_try_compile "$LINENO"; then :
7048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7049 CFLAGS="$save_CFLAGS"
7050 if test "$have_pubnames" = "yes"; then
7052 HAVE_PUBNAMES_FALSE='#'
7054 HAVE_PUBNAMES_TRUE='#'
7055 HAVE_PUBNAMES_FALSE=
7059 save_CFLAGS="$CFLAGS"
7060 CFLAGS="$CFLAGS -Werror -fno-use-linker-plugin"
7061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7062 /* end confdefs.h. */
7065 if ac_fn_c_try_compile "$LINENO"; then :
7066 have_no_use_linker_plugin=yes
7068 have_no_use_linker_plugin=no
7070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7071 CFLAGS="$save_CFLAGS"
7072 if test "$have_no_use_linker_plugin" = "yes"; then
7073 HAVE_NO_USE_LINKER_PLUGIN_TRUE=
7074 HAVE_NO_USE_LINKER_PLUGIN_FALSE='#'
7076 HAVE_NO_USE_LINKER_PLUGIN_TRUE='#'
7077 HAVE_NO_USE_LINKER_PLUGIN_FALSE=
7082 ac_cpp='$CXXCPP $CPPFLAGS'
7083 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7084 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7085 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7090 ac_cpp='$CXXCPP $CPPFLAGS'
7091 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7092 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7093 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
7095 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
7096 if test -z "$CXXCPP"; then
7097 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
7098 $as_echo_n "(cached) " >&6
7100 # Double quotes because CXXCPP needs to be expanded
7101 for CXXCPP in "$CXX -E" "/lib/cpp"
7104 for ac_cxx_preproc_warn_flag in '' yes
7106 # Use a header file that comes with gcc, so configuring glibc
7107 # with a fresh cross-compiler works.
7108 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7109 # <limits.h> exists even on freestanding compilers.
7110 # On the NeXT, cc -E runs the code through the compiler's parser,
7111 # not just through cpp. "Syntax error" is here to catch this case.
7112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7113 /* end confdefs.h. */
7115 # include <limits.h>
7117 # include <assert.h>
7121 if ac_fn_cxx_try_cpp "$LINENO"; then :
7124 # Broken: fails on valid input.
7127 rm -f conftest.err conftest.$ac_ext
7129 # OK, works on sane cases. Now check whether nonexistent headers
7130 # can be detected and how.
7131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7132 /* end confdefs.h. */
7133 #include <ac_nonexistent.h>
7135 if ac_fn_cxx_try_cpp "$LINENO"; then :
7136 # Broken: success on invalid input.
7139 # Passes both tests.
7143 rm -f conftest.err conftest.$ac_ext
7146 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7147 rm -f conftest.err conftest.$ac_ext
7148 if $ac_preproc_ok; then :
7153 ac_cv_prog_CXXCPP=$CXXCPP
7156 CXXCPP=$ac_cv_prog_CXXCPP
7158 ac_cv_prog_CXXCPP=$CXXCPP
7160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
7161 $as_echo "$CXXCPP" >&6; }
7163 for ac_cxx_preproc_warn_flag in '' yes
7165 # Use a header file that comes with gcc, so configuring glibc
7166 # with a fresh cross-compiler works.
7167 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7168 # <limits.h> exists even on freestanding compilers.
7169 # On the NeXT, cc -E runs the code through the compiler's parser,
7170 # not just through cpp. "Syntax error" is here to catch this case.
7171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7172 /* end confdefs.h. */
7174 # include <limits.h>
7176 # include <assert.h>
7180 if ac_fn_cxx_try_cpp "$LINENO"; then :
7183 # Broken: fails on valid input.
7186 rm -f conftest.err conftest.$ac_ext
7188 # OK, works on sane cases. Now check whether nonexistent headers
7189 # can be detected and how.
7190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7191 /* end confdefs.h. */
7192 #include <ac_nonexistent.h>
7194 if ac_fn_cxx_try_cpp "$LINENO"; then :
7195 # Broken: success on invalid input.
7198 # Passes both tests.
7202 rm -f conftest.err conftest.$ac_ext
7205 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7206 rm -f conftest.err conftest.$ac_ext
7207 if $ac_preproc_ok; then :
7210 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7211 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7212 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
7213 See \`config.log' for more details." "$LINENO" 5; }
7217 ac_cpp='$CXXCPP $CPPFLAGS'
7218 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7219 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7220 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7223 for ac_header in unordered_set unordered_map
7225 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7226 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7227 eval as_val=\$$as_ac_Header
7228 if test "x$as_val" = x""yes; then :
7229 cat >>confdefs.h <<_ACEOF
7230 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7237 for ac_header in tr1/unordered_set tr1/unordered_map
7239 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7240 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7241 eval as_val=\$$as_ac_Header
7242 if test "x$as_val" = x""yes; then :
7243 cat >>confdefs.h <<_ACEOF
7244 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7251 for ac_header in ext/hash_map ext/hash_set
7253 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7254 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7255 eval as_val=\$$as_ac_Header
7256 if test "x$as_val" = x""yes; then :
7257 cat >>confdefs.h <<_ACEOF
7258 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7265 for ac_header in byteswap.h
7267 ac_fn_cxx_check_header_mongrel "$LINENO" "byteswap.h" "ac_cv_header_byteswap_h" "$ac_includes_default"
7268 if test "x$ac_cv_header_byteswap_h" = x""yes; then :
7269 cat >>confdefs.h <<_ACEOF
7270 #define HAVE_BYTESWAP_H 1
7278 for ac_header in windows.h
7280 ac_fn_cxx_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
7281 if test "x$ac_cv_header_windows_h" = x""yes; then :
7282 cat >>confdefs.h <<_ACEOF
7283 #define HAVE_WINDOWS_H 1
7290 for ac_header in dlfcn.h
7292 ac_fn_cxx_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
7293 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7294 cat >>confdefs.h <<_ACEOF
7295 #define HAVE_DLFCN_H 1
7302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
7303 $as_echo_n "checking for library containing dlopen... " >&6; }
7304 if test "${ac_cv_search_dlopen+set}" = set; then :
7305 $as_echo_n "(cached) " >&6
7307 ac_func_search_save_LIBS=$LIBS
7308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7309 /* end confdefs.h. */
7311 /* Override any GCC internal prototype to avoid an error.
7312 Use char because int might match the return type of a GCC
7313 builtin and then its argument prototype would still apply. */
7326 for ac_lib in '' dl dld; do
7327 if test -z "$ac_lib"; then
7328 ac_res="none required"
7331 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7333 if ac_fn_cxx_try_link "$LINENO"; then :
7334 ac_cv_search_dlopen=$ac_res
7336 rm -f core conftest.err conftest.$ac_objext \
7338 if test "${ac_cv_search_dlopen+set}" = set; then :
7342 if test "${ac_cv_search_dlopen+set}" = set; then :
7345 ac_cv_search_dlopen=no
7348 LIBS=$ac_func_search_save_LIBS
7350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
7351 $as_echo "$ac_cv_search_dlopen" >&6; }
7352 ac_res=$ac_cv_search_dlopen
7353 if test "$ac_res" != no; then :
7354 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7358 case "$ac_cv_search_dlopen" in
7359 no*) DLOPEN_LIBS="";;
7360 *) DLOPEN_LIBS="$ac_cv_search_dlopen";;
7364 for ac_func in mallinfo posix_fallocate fallocate readv sysconf times
7366 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7367 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
7368 eval as_val=\$$as_ac_var
7369 if test "x$as_val" = x""yes; then :
7370 cat >>confdefs.h <<_ACEOF
7371 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7377 ac_fn_cxx_check_decl "$LINENO" "basename" "ac_cv_have_decl_basename" "$ac_includes_default"
7378 if test "x$ac_cv_have_decl_basename" = x""yes; then :
7384 cat >>confdefs.h <<_ACEOF
7385 #define HAVE_DECL_BASENAME $ac_have_decl
7387 ac_fn_cxx_check_decl "$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default"
7388 if test "x$ac_cv_have_decl_ffs" = x""yes; then :
7394 cat >>confdefs.h <<_ACEOF
7395 #define HAVE_DECL_FFS $ac_have_decl
7397 ac_fn_cxx_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
7398 if test "x$ac_cv_have_decl_asprintf" = x""yes; then :
7404 cat >>confdefs.h <<_ACEOF
7405 #define HAVE_DECL_ASPRINTF $ac_have_decl
7407 ac_fn_cxx_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
7408 if test "x$ac_cv_have_decl_vasprintf" = x""yes; then :
7414 cat >>confdefs.h <<_ACEOF
7415 #define HAVE_DECL_VASPRINTF $ac_have_decl
7417 ac_fn_cxx_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
7418 if test "x$ac_cv_have_decl_snprintf" = x""yes; then :
7424 cat >>confdefs.h <<_ACEOF
7425 #define HAVE_DECL_SNPRINTF $ac_have_decl
7427 ac_fn_cxx_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
7428 if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then :
7434 cat >>confdefs.h <<_ACEOF
7435 #define HAVE_DECL_VSNPRINTF $ac_have_decl
7437 ac_fn_cxx_check_decl "$LINENO" "strverscmp" "ac_cv_have_decl_strverscmp" "$ac_includes_default"
7438 if test "x$ac_cv_have_decl_strverscmp" = x""yes; then :
7444 cat >>confdefs.h <<_ACEOF
7445 #define HAVE_DECL_STRVERSCMP $ac_have_decl
7447 ac_fn_cxx_check_decl "$LINENO" "strndup" "ac_cv_have_decl_strndup" "$ac_includes_default"
7448 if test "x$ac_cv_have_decl_strndup" = x""yes; then :
7454 cat >>confdefs.h <<_ACEOF
7455 #define HAVE_DECL_STRNDUP $ac_have_decl
7457 ac_fn_cxx_check_decl "$LINENO" "memmem" "ac_cv_have_decl_memmem" "$ac_includes_default"
7458 if test "x$ac_cv_have_decl_memmem" = x""yes; then :
7464 cat >>confdefs.h <<_ACEOF
7465 #define HAVE_DECL_MEMMEM $ac_have_decl
7469 # Use of ::std::tr1::unordered_map::rehash causes undefined symbols
7470 # at link time with some versions of GCC.
7471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ::std::tr1::unordered_map::rehash is usable." >&5
7472 $as_echo_n "checking whether ::std::tr1::unordered_map::rehash is usable.... " >&6; }
7473 if test "${gold_cv_unordered_map_rehash+set}" = set; then :
7474 $as_echo_n "(cached) " >&6
7476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7477 /* end confdefs.h. */
7479 #include <tr1/unordered_map>
7480 void bar() { ::std::tr1::unordered_map<int, int> x; x.rehash(10); }
7490 if ac_fn_cxx_try_link "$LINENO"; then :
7491 gold_cv_unordered_map_rehash=yes
7493 gold_cv_unordered_map_rehash=no
7495 rm -f core conftest.err conftest.$ac_objext \
7496 conftest$ac_exeext conftest.$ac_ext
7498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_unordered_map_rehash" >&5
7499 $as_echo "$gold_cv_unordered_map_rehash" >&6; }
7500 if test "$gold_cv_unordered_map_rehash" = "yes"; then
7502 $as_echo "#define HAVE_TR1_UNORDERED_MAP_REHASH 1" >>confdefs.h
7506 # Use of tr1/unordered_map with off_t as a key is not supported on GCC
7507 # 4.1.xx when compiling in 32-bit mode with a 64-bit off_t type.
7508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether std::tr1::hash<off_t> is defined" >&5
7509 $as_echo_n "checking whether std::tr1::hash<off_t> is defined... " >&6; }
7510 if test "${gold_cv_hash_off_t+set}" = set; then :
7511 $as_echo_n "(cached) " >&6
7513 CXXFLAGS_hold=$CXXFLAGS
7514 CXXFLAGS="$CXXFLAGS $LFS_CFLAGS"
7515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7516 /* end confdefs.h. */
7518 #include <sys/types.h>
7519 #include <tr1/unordered_map>
7520 std::tr1::hash<off_t> h;
7523 if ac_fn_cxx_try_compile "$LINENO"; then :
7524 gold_cv_hash_off_t=yes
7526 gold_cv_hash_off_t=no
7528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7529 CXXFLAGS=$CXXFLAGS_hold
7531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_hash_off_t" >&5
7532 $as_echo "$gold_cv_hash_off_t" >&6; }
7533 if test "$gold_cv_hash_off_t" = "yes"; then
7535 $as_echo "#define HAVE_TR1_HASH_OFF_T 1" >>confdefs.h
7539 # gcc 4.3.0 doesn't recognize the printf attribute on a template
7540 # function. Check for that. This is gcc bug 35546. This test can
7541 # probably be removed after the bug has been fixed for a while.
7542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use attributes with template functions" >&5
7543 $as_echo_n "checking whether we can use attributes with template functions... " >&6; }
7544 if test "${gold_cv_template_attribute+set}" = set; then :
7545 $as_echo_n "(cached) " >&6
7547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7548 /* end confdefs.h. */
7550 template<typename T> extern void foo(const char*, ...)
7551 __attribute__ ((__format__ (__printf__, 1, 2)));
7552 template<typename T> void foo(const char* format, ...) {}
7553 void bar() { foo<int>("%s\n", "foo"); }
7556 if ac_fn_cxx_try_compile "$LINENO"; then :
7557 gold_cv_template_attribute=yes
7559 gold_cv_template_attribute=no
7561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_template_attribute" >&5
7564 $as_echo "$gold_cv_template_attribute" >&6; }
7565 if test "$gold_cv_template_attribute" = "yes"; then
7567 $as_echo "#define HAVE_TEMPLATE_ATTRIBUTES 1" >>confdefs.h
7571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct stat::st_mtim." >&5
7572 $as_echo_n "checking for struct stat::st_mtim.... " >&6; }
7573 if test "${gold_cv_stat_st_mtim+set}" = set; then :
7574 $as_echo_n "(cached) " >&6
7576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7577 /* end confdefs.h. */
7579 #include <sys/stat.h>
7580 long bar() { struct stat s; return (long)(s.st_mtim.tv_sec + s.st_mtim.tv_sec);}
7590 if ac_fn_cxx_try_compile "$LINENO"; then :
7591 gold_cv_stat_st_mtim=yes
7593 gold_cv_stat_st_mtim=no
7595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_stat_st_mtim" >&5
7598 $as_echo "$gold_cv_stat_st_mtim" >&6; }
7599 if test "$gold_cv_stat_st_mtim" = "yes"; then
7601 $as_echo "#define HAVE_STAT_ST_MTIM 1" >>confdefs.h
7606 ac_cpp='$CPP $CPPFLAGS'
7607 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7608 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7609 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7612 for ac_header in locale.h
7614 ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
7615 if test "x$ac_cv_header_locale_h" = x""yes; then :
7616 cat >>confdefs.h <<_ACEOF
7617 #define HAVE_LOCALE_H 1
7624 for ac_func in setlocale
7626 ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
7627 if test "x$ac_cv_func_setlocale" = x""yes; then :
7628 cat >>confdefs.h <<_ACEOF
7629 #define HAVE_SETLOCALE 1
7636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
7637 $as_echo_n "checking for LC_MESSAGES... " >&6; }
7638 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
7639 $as_echo_n "(cached) " >&6
7641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7642 /* end confdefs.h. */
7652 if ac_fn_c_try_link "$LINENO"; then :
7653 am_cv_val_LC_MESSAGES=yes
7655 am_cv_val_LC_MESSAGES=no
7657 rm -f core conftest.err conftest.$ac_objext \
7658 conftest$ac_exeext conftest.$ac_ext
7660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
7661 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
7662 if test $am_cv_val_LC_MESSAGES = yes; then
7664 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
7670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
7671 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
7672 # Check whether --enable-maintainer-mode was given.
7673 if test "${enable_maintainer_mode+set}" = set; then :
7674 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
7676 USE_MAINTAINER_MODE=no
7679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
7680 $as_echo "$USE_MAINTAINER_MODE" >&6; }
7681 if test $USE_MAINTAINER_MODE = yes; then
7682 MAINTAINER_MODE_TRUE=
7683 MAINTAINER_MODE_FALSE='#'
7685 MAINTAINER_MODE_TRUE='#'
7686 MAINTAINER_MODE_FALSE=
7689 MAINT=$MAINTAINER_MODE_TRUE
7693 ac_config_files="$ac_config_files Makefile testsuite/Makefile po/Makefile.in:po/Make-in"
7695 cat >confcache <<\_ACEOF
7696 # This file is a shell script that caches the results of configure
7697 # tests run on this system so they can be shared between configure
7698 # scripts and configure runs, see configure's option --config-cache.
7699 # It is not useful on other systems. If it contains results you don't
7700 # want to keep, you may remove or edit it.
7702 # config.status only pays attention to the cache file if you give it
7703 # the --recheck option to rerun configure.
7705 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7706 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7711 # The following way of writing the cache mishandles newlines in values,
7712 # but we know of no workaround that is simple, portable, and efficient.
7713 # So, we kill variables containing newlines.
7714 # Ultrix sh set writes to stderr and can't be redirected directly,
7715 # and sets the high bit in the cache file unless we assign to the vars.
7717 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7718 eval ac_val=\$$ac_var
7722 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
7723 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7726 _ | IFS | as_nl) ;; #(
7727 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7728 *) { eval $ac_var=; unset $ac_var;} ;;
7734 case $as_nl`(ac_space=' '; set) 2>&1` in #(
7735 *${as_nl}ac_space=\ *)
7736 # `set' does not quote correctly, so add quotes: double-quote
7737 # substitution turns \\\\ into \\, and sed turns \\ into \.
7740 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7743 # `set' quotes correctly as required by POSIX, so do not add quotes.
7744 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
7753 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7755 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7757 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
7758 if test -w "$cache_file"; then
7759 test "x$cache_file" != "x/dev/null" &&
7760 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
7761 $as_echo "$as_me: updating cache $cache_file" >&6;}
7762 cat confcache >$cache_file
7764 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
7765 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
7770 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7771 # Let make expand exec_prefix.
7772 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7774 DEFS=-DHAVE_CONFIG_H
7778 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7779 # 1. Remove the extension, and $U if already installed.
7780 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
7781 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
7782 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
7783 # will be set to the directory where LIBOBJS objects are built.
7784 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7785 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
7789 LTLIBOBJS=$ac_ltlibobjs
7792 if test -n "$EXEEXT"; then
7794 am__EXEEXT_FALSE='#'
7800 if test -z "${THREADS_TRUE}" && test -z "${THREADS_FALSE}"; then
7801 as_fn_error "conditional \"THREADS\" was never defined.
7802 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7804 if test -z "${PLUGINS_TRUE}" && test -z "${PLUGINS_FALSE}"; then
7805 as_fn_error "conditional \"PLUGINS\" was never defined.
7806 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7808 if test -z "${DEFAULT_TARGET_AARCH64_TRUE}" && test -z "${DEFAULT_TARGET_AARCH64_FALSE}"; then
7809 as_fn_error "conditional \"DEFAULT_TARGET_AARCH64\" was never defined.
7810 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7812 if test -z "${DEFAULT_TARGET_ARM_TRUE}" && test -z "${DEFAULT_TARGET_ARM_FALSE}"; then
7813 as_fn_error "conditional \"DEFAULT_TARGET_ARM\" was never defined.
7814 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7816 if test -z "${DEFAULT_TARGET_I386_TRUE}" && test -z "${DEFAULT_TARGET_I386_FALSE}"; then
7817 as_fn_error "conditional \"DEFAULT_TARGET_I386\" was never defined.
7818 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7820 if test -z "${DEFAULT_TARGET_POWERPC_TRUE}" && test -z "${DEFAULT_TARGET_POWERPC_FALSE}"; then
7821 as_fn_error "conditional \"DEFAULT_TARGET_POWERPC\" was never defined.
7822 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7824 if test -z "${DEFAULT_TARGET_SPARC_TRUE}" && test -z "${DEFAULT_TARGET_SPARC_FALSE}"; then
7825 as_fn_error "conditional \"DEFAULT_TARGET_SPARC\" was never defined.
7826 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7828 if test -z "${DEFAULT_TARGET_S390_TRUE}" && test -z "${DEFAULT_TARGET_S390_FALSE}"; then
7829 as_fn_error "conditional \"DEFAULT_TARGET_S390\" was never defined.
7830 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7832 if test -z "${DEFAULT_TARGET_X86_64_TRUE}" && test -z "${DEFAULT_TARGET_X86_64_FALSE}"; then
7833 as_fn_error "conditional \"DEFAULT_TARGET_X86_64\" was never defined.
7834 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7836 if test -z "${DEFAULT_TARGET_X32_TRUE}" && test -z "${DEFAULT_TARGET_X32_FALSE}"; then
7837 as_fn_error "conditional \"DEFAULT_TARGET_X32\" was never defined.
7838 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7840 if test -z "${DEFAULT_TARGET_TILEGX_TRUE}" && test -z "${DEFAULT_TARGET_TILEGX_FALSE}"; then
7841 as_fn_error "conditional \"DEFAULT_TARGET_TILEGX\" was never defined.
7842 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7844 if test -z "${DEFAULT_TARGET_MIPS_TRUE}" && test -z "${DEFAULT_TARGET_MIPS_FALSE}"; then
7845 as_fn_error "conditional \"DEFAULT_TARGET_MIPS\" was never defined.
7846 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7848 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
7849 as_fn_error "conditional \"AMDEP\" was never defined.
7850 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7852 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
7853 as_fn_error "conditional \"am__fastdepCC\" was never defined.
7854 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7856 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
7857 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
7858 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7861 if test -z "${NATIVE_LINKER_TRUE}" && test -z "${NATIVE_LINKER_FALSE}"; then
7862 as_fn_error "conditional \"NATIVE_LINKER\" was never defined.
7863 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7865 if test -z "${GCC_TRUE}" && test -z "${GCC_FALSE}"; then
7866 as_fn_error "conditional \"GCC\" was never defined.
7867 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7869 if test -z "${NATIVE_OR_CROSS_LINKER_TRUE}" && test -z "${NATIVE_OR_CROSS_LINKER_FALSE}"; then
7870 as_fn_error "conditional \"NATIVE_OR_CROSS_LINKER\" was never defined.
7871 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7873 if test -z "${HAVE_STATIC_TRUE}" && test -z "${HAVE_STATIC_FALSE}"; then
7874 as_fn_error "conditional \"HAVE_STATIC\" was never defined.
7875 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7877 if test -z "${FN_PTRS_IN_SO_WITHOUT_PIC_TRUE}" && test -z "${FN_PTRS_IN_SO_WITHOUT_PIC_FALSE}"; then
7878 as_fn_error "conditional \"FN_PTRS_IN_SO_WITHOUT_PIC\" was never defined.
7879 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7881 if test -z "${MCMODEL_MEDIUM_TRUE}" && test -z "${MCMODEL_MEDIUM_FALSE}"; then
7882 as_fn_error "conditional \"MCMODEL_MEDIUM\" was never defined.
7883 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7885 if test -z "${TLS_TRUE}" && test -z "${TLS_FALSE}"; then
7886 as_fn_error "conditional \"TLS\" was never defined.
7887 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7889 if test -z "${STATIC_TLS_TRUE}" && test -z "${STATIC_TLS_FALSE}"; then
7890 as_fn_error "conditional \"STATIC_TLS\" was never defined.
7891 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7893 if test -z "${OMP_SUPPORT_TRUE}" && test -z "${OMP_SUPPORT_FALSE}"; then
7894 as_fn_error "conditional \"OMP_SUPPORT\" was never defined.
7895 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7897 if test -z "${TLS_GNU2_DIALECT_TRUE}" && test -z "${TLS_GNU2_DIALECT_FALSE}"; then
7898 as_fn_error "conditional \"TLS_GNU2_DIALECT\" was never defined.
7899 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7901 if test -z "${TLS_DESCRIPTORS_TRUE}" && test -z "${TLS_DESCRIPTORS_FALSE}"; then
7902 as_fn_error "conditional \"TLS_DESCRIPTORS\" was never defined.
7903 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7905 if test -z "${IFUNC_TRUE}" && test -z "${IFUNC_FALSE}"; then
7906 as_fn_error "conditional \"IFUNC\" was never defined.
7907 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7909 if test -z "${IFUNC_STATIC_TRUE}" && test -z "${IFUNC_STATIC_FALSE}"; then
7910 as_fn_error "conditional \"IFUNC_STATIC\" was never defined.
7911 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7913 if test -z "${HAVE_PUBNAMES_TRUE}" && test -z "${HAVE_PUBNAMES_FALSE}"; then
7914 as_fn_error "conditional \"HAVE_PUBNAMES\" was never defined.
7915 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7917 if test -z "${HAVE_NO_USE_LINKER_PLUGIN_TRUE}" && test -z "${HAVE_NO_USE_LINKER_PLUGIN_FALSE}"; then
7918 as_fn_error "conditional \"HAVE_NO_USE_LINKER_PLUGIN\" was never defined.
7919 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7921 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
7922 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
7923 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7926 : ${CONFIG_STATUS=./config.status}
7928 ac_clean_files_save=$ac_clean_files
7929 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7930 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
7931 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
7933 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
7935 # Generated by $as_me.
7936 # Run this file to recreate the current configuration.
7937 # Compiler output produced by configure, useful for debugging
7938 # configure, is in config.log if it exists.
7944 SHELL=\${CONFIG_SHELL-$SHELL}
7947 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
7948 ## -------------------- ##
7949 ## M4sh Initialization. ##
7950 ## -------------------- ##
7952 # Be more Bourne compatible
7953 DUALCASE=1; export DUALCASE # for MKS sh
7954 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
7957 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
7958 # is contrary to our usage. Disable this feature.
7959 alias -g '${1+"$@"}'='"$@"'
7960 setopt NO_GLOB_SUBST
7962 case `(set -o) 2>/dev/null` in #(
7974 # Printing a long string crashes Solaris 7 /usr/bin/printf.
7975 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7976 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
7977 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
7978 # Prefer a ksh shell builtin over an external printf program on Solaris,
7979 # but without wasting forks for bash or zsh.
7980 if test -z "$BASH_VERSION$ZSH_VERSION" \
7981 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
7982 as_echo='print -r --'
7983 as_echo_n='print -rn --'
7984 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
7985 as_echo='printf %s\n'
7986 as_echo_n='printf %s'
7988 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
7989 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
7990 as_echo_n='/usr/ucb/echo -n'
7992 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
7993 as_echo_n_body='eval
7997 expr "X$arg" : "X\\(.*\\)$as_nl";
7998 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
8000 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
8002 export as_echo_n_body
8003 as_echo_n='sh -c $as_echo_n_body as_echo'
8006 as_echo='sh -c $as_echo_body as_echo'
8009 # The user is always right.
8010 if test "${PATH_SEPARATOR+set}" != set; then
8012 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
8013 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
8020 # We need space, tab and new line, in precisely that order. Quoting is
8021 # there to prevent editors from complaining about space-tab.
8022 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
8023 # splitting by setting IFS to empty value.)
8026 # Find who we are. Look in the path if we contain no directory separator.
8028 *[\\/]* ) as_myself=$0 ;;
8029 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8033 test -z "$as_dir" && as_dir=.
8034 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8040 # We did not find ourselves, most probably we were run as `sh COMMAND'
8041 # in which case we are not to be found in the path.
8042 if test "x$as_myself" = x; then
8045 if test ! -f "$as_myself"; then
8046 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
8050 # Unset variables that we do not need and which cause bugs (e.g. in
8051 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
8052 # suppresses any "Segmentation fault" message there. '((' could
8053 # trigger a bug in pdksh 5.2.14.
8054 for as_var in BASH_ENV ENV MAIL MAILPATH
8055 do eval test x\${$as_var+set} = xset \
8056 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
8069 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
8072 # as_fn_error ERROR [LINENO LOG_FD]
8073 # ---------------------------------
8074 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
8075 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
8076 # script with status $?, using 1 if that was 0.
8079 as_status=$?; test $as_status -eq 0 && as_status=1
8081 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
8082 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
8084 $as_echo "$as_me: error: $1" >&2
8085 as_fn_exit $as_status
8089 # as_fn_set_status STATUS
8090 # -----------------------
8091 # Set $? to STATUS, without forking.
8095 } # as_fn_set_status
8099 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
8109 # Portably unset VAR.
8112 { eval $1=; unset $1;}
8114 as_unset=as_fn_unset
8115 # as_fn_append VAR VALUE
8116 # ----------------------
8117 # Append the text in VALUE to the end of the definition contained in VAR. Take
8118 # advantage of any shell optimizations that allow amortized linear growth over
8119 # repeated appends, instead of the typical quadratic growth present in naive
8121 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
8122 eval 'as_fn_append ()
8133 # as_fn_arith ARG...
8134 # ------------------
8135 # Perform arithmetic evaluation on the ARGs, and store the result in the
8136 # global $as_val. Take advantage of shells that can avoid forks. The arguments
8137 # must be portable across $(()) and expr.
8138 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
8139 eval 'as_fn_arith ()
8146 as_val=`expr "$@" || test $? -eq 1`
8151 if expr a : '\(a\)' >/dev/null 2>&1 &&
8152 test "X`expr 00001 : '.*\(...\)'`" = X001; then
8158 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
8159 as_basename=basename
8164 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
8170 as_me=`$as_basename -- "$0" ||
8171 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8172 X"$0" : 'X\(//\)$' \| \
8173 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
8175 sed '/^.*\/\([^/][^/]*\)\/*$/{
8189 # Avoid depending upon Character Ranges.
8190 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8191 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8192 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8193 as_cr_digits='0123456789'
8194 as_cr_alnum=$as_cr_Letters$as_cr_digits
8196 ECHO_C= ECHO_N= ECHO_T=
8197 case `echo -n x` in #(((((
8199 case `echo 'xy\c'` in
8200 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
8202 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
8209 rm -f conf$$ conf$$.exe conf$$.file
8210 if test -d conf$$.dir; then
8211 rm -f conf$$.dir/conf$$.file
8214 mkdir conf$$.dir 2>/dev/null
8216 if (echo >conf$$.file) 2>/dev/null; then
8217 if ln -s conf$$.file conf$$ 2>/dev/null; then
8219 # ... but there are two gotchas:
8220 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
8221 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
8222 # In both cases, we have to default to `cp -p'.
8223 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
8225 elif ln conf$$.file conf$$ 2>/dev/null; then
8233 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
8234 rmdir conf$$.dir 2>/dev/null
8239 # Create "$as_dir" as a directory, including parents if necessary.
8244 -*) as_dir=./$as_dir;;
8246 test -d "$as_dir" || eval $as_mkdir_p || {
8250 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
8251 *) as_qdir=$as_dir;;
8253 as_dirs="'$as_qdir' $as_dirs"
8254 as_dir=`$as_dirname -- "$as_dir" ||
8255 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8256 X"$as_dir" : 'X\(//\)[^/]' \| \
8257 X"$as_dir" : 'X\(//\)$' \| \
8258 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8259 $as_echo X"$as_dir" |
8260 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8277 test -d "$as_dir" && break
8279 test -z "$as_dirs" || eval "mkdir $as_dirs"
8280 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
8284 if mkdir -p . 2>/dev/null; then
8285 as_mkdir_p='mkdir -p "$as_dir"'
8287 test -d ./-p && rmdir ./-p
8291 if test -x / >/dev/null 2>&1; then
8294 if ls -dL / >/dev/null 2>&1; then
8301 if test -d "$1"; then
8307 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
8308 ???[sx]*):;;*)false;;esac;fi
8312 as_executable_p=$as_test_x
8314 # Sed expression to map a string onto a valid CPP name.
8315 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8317 # Sed expression to map a string onto a valid variable name.
8318 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8322 ## ----------------------------------- ##
8323 ## Main body of $CONFIG_STATUS script. ##
8324 ## ----------------------------------- ##
8326 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
8328 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8329 # Save the log message, to keep $0 and so on meaningful, and to
8330 # report actual input values of CONFIG_FILES etc. instead of their
8331 # values after options handling.
8333 This file was extended by gold $as_me 0.1, which was
8334 generated by GNU Autoconf 2.64. Invocation command line was
8336 CONFIG_FILES = $CONFIG_FILES
8337 CONFIG_HEADERS = $CONFIG_HEADERS
8338 CONFIG_LINKS = $CONFIG_LINKS
8339 CONFIG_COMMANDS = $CONFIG_COMMANDS
8342 on `(hostname || uname -n) 2>/dev/null | sed 1q`
8347 case $ac_config_files in *"
8348 "*) set x $ac_config_files; shift; ac_config_files=$*;;
8351 case $ac_config_headers in *"
8352 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
8356 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8357 # Files that config.status was made for.
8358 config_files="$ac_config_files"
8359 config_headers="$ac_config_headers"
8360 config_commands="$ac_config_commands"
8364 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8366 \`$as_me' instantiates files and other configuration actions
8367 from templates according to the current configuration. Unless the files
8368 and actions are specified as TAGs, all are instantiated by default.
8370 Usage: $0 [OPTION]... [TAG]...
8372 -h, --help print this help, then exit
8373 -V, --version print version number and configuration settings, then exit
8374 -q, --quiet, --silent
8375 do not print progress messages
8376 -d, --debug don't remove temporary files
8377 --recheck update $as_me by reconfiguring in the same conditions
8378 --file=FILE[:TEMPLATE]
8379 instantiate the configuration file FILE
8380 --header=FILE[:TEMPLATE]
8381 instantiate the configuration header FILE
8383 Configuration files:
8386 Configuration headers:
8389 Configuration commands:
8392 Report bugs to the package provider."
8395 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8397 gold config.status 0.1
8398 configured by $0, generated by GNU Autoconf 2.64,
8399 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
8401 Copyright (C) 2009 Free Software Foundation, Inc.
8402 This config.status script is free software; the Free Software Foundation
8403 gives unlimited permission to copy, distribute and modify it."
8410 test -n "\$AWK" || AWK=awk
8413 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8414 # The default lists apply if the user does not specify any file.
8420 ac_option=`expr "X$1" : 'X\([^=]*\)='`
8421 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
8432 # Handling of the options.
8433 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8435 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
8436 $as_echo "$ac_cs_version"; exit ;;
8437 --debug | --debu | --deb | --de | --d | -d )
8439 --file | --fil | --fi | --f )
8442 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8444 as_fn_append CONFIG_FILES " '$ac_optarg'"
8445 ac_need_defaults=false;;
8446 --header | --heade | --head | --hea )
8449 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8451 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
8452 ac_need_defaults=false;;
8454 # Conflict between --help and --header
8455 as_fn_error "ambiguous option: \`$1'
8456 Try \`$0 --help' for more information.";;
8457 --help | --hel | -h )
8458 $as_echo "$ac_cs_usage"; exit ;;
8459 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8460 | -silent | --silent | --silen | --sile | --sil | --si | --s)
8464 -*) as_fn_error "unrecognized option: \`$1'
8465 Try \`$0 --help' for more information." ;;
8467 *) as_fn_append ac_config_targets " $1"
8468 ac_need_defaults=false ;;
8474 ac_configure_extra_args=
8476 if $ac_cs_silent; then
8478 ac_configure_extra_args="$ac_configure_extra_args --silent"
8482 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8483 if \$ac_cs_recheck; then
8484 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8486 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
8487 CONFIG_SHELL='$SHELL'
8493 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8497 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8498 ## Running $as_me. ##
8504 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8508 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
8509 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
8510 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
8512 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
8513 # Capture the value of LINGUAS because we need it to compute CATALOGS.
8514 LINGUAS="${LINGUAS-%UNSET%}"
8519 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8521 # Handling of arguments.
8522 for ac_config_target in $ac_config_targets
8524 case $ac_config_target in
8525 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
8526 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
8527 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
8528 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8529 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
8530 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
8532 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
8537 # If the user did not use the arguments to specify the items to instantiate,
8538 # then the envvar interface is used. Set only those that are not.
8539 # We use the long form for the default assignment because of an extremely
8540 # bizarre bug on SunOS 4.1.3.
8541 if $ac_need_defaults; then
8542 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8543 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8544 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
8547 # Have a temporary directory for convenience. Make it in the build tree
8548 # simply because there is no reason against having it here, and in addition,
8549 # creating and moving files from /tmp can sometimes cause problems.
8550 # Hook for its removal unless debugging.
8551 # Note that there is a small window in which the directory will not be cleaned:
8552 # after its creation but before its name has been assigned to `$tmp'.
8556 trap 'exit_status=$?
8557 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
8559 trap 'as_fn_exit 1' 1 2 13 15
8561 # Create a (secure) tmp directory for tmp files.
8564 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8565 test -n "$tmp" && test -d "$tmp"
8568 tmp=./conf$$-$RANDOM
8569 (umask 077 && mkdir "$tmp")
8570 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
8572 # Set up the scripts for CONFIG_FILES section.
8573 # No need to generate them if there are no CONFIG_FILES.
8574 # This happens for instance with `./config.status config.h'.
8575 if test -n "$CONFIG_FILES"; then
8578 ac_cr=`echo X | tr X '\015'`
8579 # On cygwin, bash can eat \r inside `` if the user requested igncr.
8580 # But we know of no other shell where ac_cr would be empty at this
8581 # point, so we can use a bashism as a fallback.
8582 if test "x$ac_cr" = x; then
8583 eval ac_cr=\$\'\\r\'
8585 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
8586 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
8592 echo 'BEGIN {' >"$tmp/subs1.awk" &&
8597 echo "cat >conf$$subs.awk <<_ACEOF" &&
8598 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
8601 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
8602 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
8604 for ac_last_try in false false false false false :; do
8605 . ./conf$$subs.sh ||
8606 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
8608 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
8609 if test $ac_delim_n = $ac_delim_num; then
8611 elif $ac_last_try; then
8612 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
8614 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8619 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8620 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
8624 s/^/S["/; s/!.*/"]=/
8634 s/\(.\{148\}\).*/\1/
8636 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
8641 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8648 s/\(.\{148\}\).*/\1/
8650 s/["\\]/\\&/g; s/^/"/; s/$/"/
8654 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8659 ' <conf$$subs.awk | sed '
8664 ' >>$CONFIG_STATUS || ac_write_fail=1
8665 rm -f conf$$subs.awk
8666 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8668 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
8669 for (key in S) S_is_set[key] = 1
8675 nfields = split(line, field, "@")
8677 len = length(field[1])
8678 for (i = 2; i < nfields; i++) {
8680 keylen = length(key)
8681 if (S_is_set[key]) {
8683 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
8684 len += length(value) + length(field[++i])
8695 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8696 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
8697 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
8700 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
8701 || as_fn_error "could not setup config files machinery" "$LINENO" 5
8704 # VPATH may cause trouble with some makes, so we remove $(srcdir),
8705 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8706 # trailing colons and then remove the whole line if VPATH becomes empty
8707 # (actually we leave an empty line to preserve line numbers).
8708 if test "x$srcdir" = x.; then
8709 ac_vpsub='/^[ ]*VPATH[ ]*=/{
8713 s/^\([^=]*=[ ]*\):*/\1/
8719 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8720 fi # test -n "$CONFIG_FILES"
8722 # Set up the scripts for CONFIG_HEADERS section.
8723 # No need to generate them if there are no CONFIG_HEADERS.
8724 # This happens for instance with `./config.status Makefile'.
8725 if test -n "$CONFIG_HEADERS"; then
8726 cat >"$tmp/defines.awk" <<\_ACAWK ||
8730 # Transform confdefs.h into an awk script `defines.awk', embedded as
8731 # here-document in config.status, that substitutes the proper values into
8732 # config.h.in to produce config.h.
8734 # Create a delimiter string that does not exist in confdefs.h, to ease
8735 # handling of long lines.
8737 for ac_last_try in false false :; do
8738 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
8739 if test -z "$ac_t"; then
8741 elif $ac_last_try; then
8742 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
8744 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8748 # For the awk script, D is an array of macro values keyed by name,
8749 # likewise P contains macro parameters if any. Preserve backslash
8750 # newline sequences.
8752 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
8754 s/.\{148\}/&'"$ac_delim"'/g
8757 s/^[ ]*#[ ]*define[ ][ ]*/ /
8764 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
8766 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
8770 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
8771 D["\1"]=" \3\\\\\\n"\\/p
8773 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
8778 s/.\{148\}/&'"$ac_delim"'/g
8783 s/["\\]/\\&/g; s/^/"/; s/$/"/p
8786 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
8788 ' <confdefs.h | sed '
8789 s/'"$ac_delim"'/"\\\
8790 "/g' >>$CONFIG_STATUS || ac_write_fail=1
8792 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8793 for (key in D) D_is_set[key] = 1
8796 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
8798 split(line, arg, " ")
8799 if (arg[1] == "#") {
8803 defundef = substr(arg[1], 2)
8806 split(mac1, mac2, "(") #)
8808 prefix = substr(line, 1, index(line, defundef) - 1)
8809 if (D_is_set[macro]) {
8810 # Preserve the white space surrounding the "#".
8811 print prefix "define", macro P[macro] D[macro]
8814 # Replace #undef with comments. This is necessary, for example,
8815 # in the case of _POSIX_SOURCE, which is predefined and required
8816 # on some systems where configure will not decide to define it.
8817 if (defundef == "undef") {
8818 print "/*", prefix defundef, macro, "*/"
8826 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8827 as_fn_error "could not setup config headers machinery" "$LINENO" 5
8828 fi # test -n "$CONFIG_HEADERS"
8831 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
8836 :[FHLC]) ac_mode=$ac_tag; continue;;
8838 case $ac_mode$ac_tag in
8840 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
8841 :[FH]-) ac_tag=-:-;;
8842 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
8859 -) ac_f="$tmp/stdin";;
8860 *) # Look for the file first in the build tree, then in the source tree
8861 # (if the path is not absolute). The absolute path cannot be DOS-style,
8862 # because $ac_f cannot contain `:'.
8866 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
8868 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
8870 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
8871 as_fn_append ac_file_inputs " '$ac_f'"
8874 # Let's still pretend it is `configure' which instantiates (i.e., don't
8875 # use $as_me), people would be surprised to read:
8876 # /* config.h. Generated by config.status. */
8877 configure_input='Generated from '`
8878 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
8880 if test x"$ac_file" != x-; then
8881 configure_input="$ac_file. $configure_input"
8882 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
8883 $as_echo "$as_me: creating $ac_file" >&6;}
8885 # Neutralize special characters interpreted by sed in replacement strings.
8886 case $configure_input in #(
8887 *\&* | *\|* | *\\* )
8888 ac_sed_conf_input=`$as_echo "$configure_input" |
8889 sed 's/[\\\\&|]/\\\\&/g'`;; #(
8890 *) ac_sed_conf_input=$configure_input;;
8894 *:-:* | *:-) cat >"$tmp/stdin" \
8895 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
8900 ac_dir=`$as_dirname -- "$ac_file" ||
8901 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8902 X"$ac_file" : 'X\(//\)[^/]' \| \
8903 X"$ac_file" : 'X\(//\)$' \| \
8904 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8905 $as_echo X"$ac_file" |
8906 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8923 as_dir="$ac_dir"; as_fn_mkdir_p
8927 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
8929 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
8930 # A ".." for each directory in $ac_dir_suffix.
8931 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
8932 case $ac_top_builddir_sub in
8933 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
8934 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
8937 ac_abs_top_builddir=$ac_pwd
8938 ac_abs_builddir=$ac_pwd$ac_dir_suffix
8939 # for backward compatibility:
8940 ac_top_builddir=$ac_top_build_prefix
8943 .) # We are building in place.
8945 ac_top_srcdir=$ac_top_builddir_sub
8946 ac_abs_top_srcdir=$ac_pwd ;;
8947 [\\/]* | ?:[\\/]* ) # Absolute name.
8948 ac_srcdir=$srcdir$ac_dir_suffix;
8949 ac_top_srcdir=$srcdir
8950 ac_abs_top_srcdir=$srcdir ;;
8952 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
8953 ac_top_srcdir=$ac_top_build_prefix$srcdir
8954 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8956 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8966 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8967 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
8971 [\\/$]* | ?:[\\/]* ) ;;
8972 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
8976 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8977 # If the template does not know about datarootdir, expand it.
8978 # FIXME: This hack should be removed a few years after 2.60.
8979 ac_datarootdir_hack=; ac_datarootdir_seen=
8990 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
8991 *datarootdir*) ac_datarootdir_seen=yes;;
8992 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
8993 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8994 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
8996 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8997 ac_datarootdir_hack='
8998 s&@datadir@&$datadir&g
8999 s&@docdir@&$docdir&g
9000 s&@infodir@&$infodir&g
9001 s&@localedir@&$localedir&g
9002 s&@mandir@&$mandir&g
9003 s&\\\${datarootdir}&$datarootdir&g' ;;
9007 # Neutralize VPATH when `$srcdir' = `.'.
9008 # Shell code in configure.ac might set extrasub.
9009 # FIXME: do we really want to maintain this feature?
9010 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9011 ac_sed_extra="$ac_vpsub
9014 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9016 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9017 s|@configure_input@|$ac_sed_conf_input|;t t
9018 s&@top_builddir@&$ac_top_builddir_sub&;t t
9019 s&@top_build_prefix@&$ac_top_build_prefix&;t t
9020 s&@srcdir@&$ac_srcdir&;t t
9021 s&@abs_srcdir@&$ac_abs_srcdir&;t t
9022 s&@top_srcdir@&$ac_top_srcdir&;t t
9023 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
9024 s&@builddir@&$ac_builddir&;t t
9025 s&@abs_builddir@&$ac_abs_builddir&;t t
9026 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
9027 s&@INSTALL@&$ac_INSTALL&;t t
9028 s&@MKDIR_P@&$ac_MKDIR_P&;t t
9029 $ac_datarootdir_hack
9031 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
9032 || as_fn_error "could not create $ac_file" "$LINENO" 5
9034 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
9035 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
9036 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
9037 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9038 which seems to be undefined. Please make sure it is defined." >&5
9039 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9040 which seems to be undefined. Please make sure it is defined." >&2;}
9044 -) cat "$tmp/out" && rm -f "$tmp/out";;
9045 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
9047 || as_fn_error "could not create $ac_file" "$LINENO" 5
9053 if test x"$ac_file" != x-; then
9055 $as_echo "/* $configure_input */" \
9056 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
9057 } >"$tmp/config.h" \
9058 || as_fn_error "could not create $ac_file" "$LINENO" 5
9059 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
9060 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
9061 $as_echo "$as_me: $ac_file is unchanged" >&6;}
9064 mv "$tmp/config.h" "$ac_file" \
9065 || as_fn_error "could not create $ac_file" "$LINENO" 5
9068 $as_echo "/* $configure_input */" \
9069 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
9070 || as_fn_error "could not create -" "$LINENO" 5
9072 # Compute "$ac_file"'s index in $config_headers.
9075 for _am_header in $config_headers :; do
9077 $_am_arg | $_am_arg:* )
9080 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
9083 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
9084 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9085 X"$_am_arg" : 'X\(//\)[^/]' \| \
9086 X"$_am_arg" : 'X\(//\)$' \| \
9087 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
9088 $as_echo X"$_am_arg" |
9089 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9105 s/.*/./; q'`/stamp-h$_am_stamp_count
9108 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
9109 $as_echo "$as_me: executing $ac_file commands" >&6;}
9114 case $ac_file$ac_mode in
9115 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
9116 # Autoconf 2.62 quotes --file arguments for eval, but not when files
9117 # are listed without --file. Let's play safe and only enable the eval
9118 # if we detect the quoting.
9119 case $CONFIG_FILES in
9120 *\'*) eval set x "$CONFIG_FILES" ;;
9121 *) set x $CONFIG_FILES ;;
9126 # Strip MF so we end up with the name of the file.
9127 mf=`echo "$mf" | sed -e 's/:.*$//'`
9128 # Check whether this is an Automake generated Makefile or not.
9129 # We used to match only the files named `Makefile.in', but
9130 # some people rename them; so instead we look at the file content.
9131 # Grep'ing the first line is not enough: some people post-process
9132 # each Makefile.in and add a new line on top of each file to say so.
9133 # Grep'ing the whole file is not good either: AIX grep has a line
9134 # limit of 2048, but all sed's we know have understand at least 4000.
9135 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
9136 dirpart=`$as_dirname -- "$mf" ||
9137 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9138 X"$mf" : 'X\(//\)[^/]' \| \
9139 X"$mf" : 'X\(//\)$' \| \
9140 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
9142 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9162 # Extract the definition of DEPDIR, am__include, and am__quote
9163 # from the Makefile without running `make'.
9164 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
9165 test -z "$DEPDIR" && continue
9166 am__include=`sed -n 's/^am__include = //p' < "$mf"`
9167 test -z "am__include" && continue
9168 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
9169 # When using ansi2knr, U may be empty or an underscore; expand it
9170 U=`sed -n 's/^U = //p' < "$mf"`
9171 # Find all dependency output files, they are included files with
9172 # $(DEPDIR) in their names. We invoke sed twice because it is the
9173 # simplest approach to changing $(DEPDIR) to its actual value in the
9175 for file in `sed -n "
9176 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
9177 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
9178 # Make sure the directory exists.
9179 test -f "$dirpart/$file" && continue
9180 fdir=`$as_dirname -- "$file" ||
9181 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9182 X"$file" : 'X\(//\)[^/]' \| \
9183 X"$file" : 'X\(//\)$' \| \
9184 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
9186 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9203 as_dir=$dirpart/$fdir; as_fn_mkdir_p
9204 # echo "creating $dirpart/$file"
9205 echo '# dummy' > "$dirpart/$file"
9211 for ac_file in $CONFIG_FILES; do
9212 # Support "outfile[:infile[:infile...]]"
9214 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9216 # PO directories have a Makefile.in generated from Makefile.in.in.
9217 case "$ac_file" in */Makefile.in)
9218 # Adjust a relative srcdir.
9219 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
9220 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
9221 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
9222 # In autoconf-2.13 it is called $ac_given_srcdir.
9223 # In autoconf-2.50 it is called $srcdir.
9224 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
9225 case "$ac_given_srcdir" in
9226 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
9227 /*) top_srcdir="$ac_given_srcdir" ;;
9228 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
9230 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
9231 rm -f "$ac_dir/POTFILES"
9232 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
9233 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
9234 POMAKEFILEDEPS="POTFILES.in"
9235 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
9236 # on $ac_dir but don't depend on user-specified configuration
9238 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
9239 # The LINGUAS file contains the set of available languages.
9240 if test -n "$OBSOLETE_ALL_LINGUAS"; then
9241 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.ac is obsolete" || echo "setting ALL_LINGUAS in configure.ac is obsolete"
9243 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
9244 # Hide the ALL_LINGUAS assigment from automake.
9245 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
9246 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
9248 # The set of available languages was given in configure.ac.
9249 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
9251 case "$ac_given_srcdir" in
9253 *) srcdirpre='$(srcdir)/' ;;
9259 for lang in $ALL_LINGUAS; do
9260 POFILES="$POFILES $srcdirpre$lang.po"
9261 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
9262 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
9263 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
9265 # CATALOGS depends on both $ac_dir and the user's LINGUAS
9266 # environment variable.
9268 if test -n "$ALL_LINGUAS"; then
9269 for presentlang in $ALL_LINGUAS; do
9271 if test "%UNSET%" != "$LINGUAS"; then
9272 desiredlanguages="$LINGUAS"
9274 desiredlanguages="$ALL_LINGUAS"
9276 for desiredlang in $desiredlanguages; do
9277 # Use the presentlang catalog if desiredlang is
9278 # a. equal to presentlang, or
9279 # b. a variant of presentlang (because in this case,
9280 # presentlang can be used as a fallback for messages
9281 # which are not translated in the desiredlang catalog).
9282 case "$desiredlang" in
9283 "$presentlang"*) useit=yes;;
9286 if test $useit = yes; then
9287 INST_LINGUAS="$INST_LINGUAS $presentlang"
9292 if test -n "$INST_LINGUAS"; then
9293 for lang in $INST_LINGUAS; do
9294 CATALOGS="$CATALOGS $lang.gmo"
9297 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
9298 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"
9299 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
9300 if test -f "$f"; then
9302 *.orig | *.bak | *~) ;;
9303 *) cat "$f" >> "$ac_dir/Makefile" ;;
9318 ac_clean_files=$ac_clean_files_save
9320 test $ac_write_fail = 0 ||
9321 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
9324 # configure is writing to config.log, and then calls config.status.
9325 # config.status does its own redirection, appending to config.log.
9326 # Unfortunately, on DOS this fails, as config.log is still kept open
9327 # by configure, so config.status won't be able to write to it; its
9328 # output is simply discarded. So we exec the FD to /dev/null,
9329 # effectively closing config.log, so it can be properly (re)opened and
9330 # appended to by config.status. When coming back to configure, we
9331 # need to make the FD available again.
9332 if test "$no_create" != yes; then
9334 ac_config_status_args=
9335 test "$silent" = yes &&
9336 ac_config_status_args="$ac_config_status_args --quiet"
9338 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9340 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9341 # would make configure fail if this is the last instruction.
9342 $ac_cs_success || as_fn_exit $?
9344 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
9345 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
9346 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}