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
610 TLS_DESCRIPTORS_FALSE
612 TLS_GNU2_DIALECT_FALSE
613 TLS_GNU2_DIALECT_TRUE
622 FN_PTRS_IN_SO_WITHOUT_PIC_FALSE
623 FN_PTRS_IN_SO_WITHOUT_PIC_TRUE
626 NATIVE_OR_CROSS_LINKER_FALSE
627 NATIVE_OR_CROSS_LINKER_TRUE
678 DEFAULT_TARGET_X86_64_FALSE
679 DEFAULT_TARGET_X86_64_TRUE
680 DEFAULT_TARGET_SPARC_FALSE
681 DEFAULT_TARGET_SPARC_TRUE
682 DEFAULT_TARGET_POWERPC_FALSE
683 DEFAULT_TARGET_POWERPC_TRUE
684 DEFAULT_TARGET_I386_FALSE
685 DEFAULT_TARGET_I386_TRUE
686 DEFAULT_TARGET_ARM_FALSE
687 DEFAULT_TARGET_ARM_TRUE
702 INSTALL_STRIP_PROGRAM
756 program_transform_name
769 enable_option_checking
776 enable_dependency_tracking
779 enable_build_warnings
780 enable_maintainer_mode
782 ac_precious_vars='build_alias
799 # Initialize some variables set by options.
801 ac_init_version=false
802 ac_unrecognized_opts=
804 # The variables have the same names as the options, with
805 # dashes changed to underlines.
813 program_transform_name=s,x,x,
821 # Installation directory options.
822 # These are left unexpanded so users can "make install exec_prefix=/foo"
823 # and all the variables that are supposed to be based on exec_prefix
824 # by default will actually change.
825 # Use braces instead of parens because sh, perl, etc. also accept them.
826 # (The list follows the same order as the GNU Coding Standards.)
827 bindir='${exec_prefix}/bin'
828 sbindir='${exec_prefix}/sbin'
829 libexecdir='${exec_prefix}/libexec'
830 datarootdir='${prefix}/share'
831 datadir='${datarootdir}'
832 sysconfdir='${prefix}/etc'
833 sharedstatedir='${prefix}/com'
834 localstatedir='${prefix}/var'
835 includedir='${prefix}/include'
836 oldincludedir='/usr/include'
837 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
838 infodir='${datarootdir}/info'
843 libdir='${exec_prefix}/lib'
844 localedir='${datarootdir}/locale'
845 mandir='${datarootdir}/man'
851 # If the previous option needs an argument, assign it.
852 if test -n "$ac_prev"; then
853 eval $ac_prev=\$ac_option
859 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
863 # Accept the important Cygnus configure options, so we can diagnose typos.
865 case $ac_dashdash$ac_option in
869 -bindir | --bindir | --bindi | --bind | --bin | --bi)
871 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
874 -build | --build | --buil | --bui | --bu)
875 ac_prev=build_alias ;;
876 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
877 build_alias=$ac_optarg ;;
879 -cache-file | --cache-file | --cache-fil | --cache-fi \
880 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
881 ac_prev=cache_file ;;
882 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
883 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
884 cache_file=$ac_optarg ;;
887 cache_file=config.cache ;;
889 -datadir | --datadir | --datadi | --datad)
891 -datadir=* | --datadir=* | --datadi=* | --datad=*)
892 datadir=$ac_optarg ;;
894 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
895 | --dataroo | --dataro | --datar)
896 ac_prev=datarootdir ;;
897 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
898 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
899 datarootdir=$ac_optarg ;;
901 -disable-* | --disable-*)
902 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
903 # Reject names that are not valid shell variable names.
904 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
905 as_fn_error "invalid feature name: $ac_useropt"
906 ac_useropt_orig=$ac_useropt
907 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
908 case $ac_user_opts in
912 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
913 ac_unrecognized_sep=', ';;
915 eval enable_$ac_useropt=no ;;
917 -docdir | --docdir | --docdi | --doc | --do)
919 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
922 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
924 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
927 -enable-* | --enable-*)
928 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
929 # Reject names that are not valid shell variable names.
930 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
931 as_fn_error "invalid feature name: $ac_useropt"
932 ac_useropt_orig=$ac_useropt
933 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
934 case $ac_user_opts in
938 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
939 ac_unrecognized_sep=', ';;
941 eval enable_$ac_useropt=\$ac_optarg ;;
943 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
944 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
945 | --exec | --exe | --ex)
946 ac_prev=exec_prefix ;;
947 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
948 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
949 | --exec=* | --exe=* | --ex=*)
950 exec_prefix=$ac_optarg ;;
952 -gas | --gas | --ga | --g)
953 # Obsolete; use --with-gas.
956 -help | --help | --hel | --he | -h)
958 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
959 ac_init_help=recursive ;;
960 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
961 ac_init_help=short ;;
963 -host | --host | --hos | --ho)
964 ac_prev=host_alias ;;
965 -host=* | --host=* | --hos=* | --ho=*)
966 host_alias=$ac_optarg ;;
968 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
970 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
972 htmldir=$ac_optarg ;;
974 -includedir | --includedir | --includedi | --included | --include \
975 | --includ | --inclu | --incl | --inc)
976 ac_prev=includedir ;;
977 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
978 | --includ=* | --inclu=* | --incl=* | --inc=*)
979 includedir=$ac_optarg ;;
981 -infodir | --infodir | --infodi | --infod | --info | --inf)
983 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
984 infodir=$ac_optarg ;;
986 -libdir | --libdir | --libdi | --libd)
988 -libdir=* | --libdir=* | --libdi=* | --libd=*)
991 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
992 | --libexe | --libex | --libe)
993 ac_prev=libexecdir ;;
994 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
995 | --libexe=* | --libex=* | --libe=*)
996 libexecdir=$ac_optarg ;;
998 -localedir | --localedir | --localedi | --localed | --locale)
1000 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1001 localedir=$ac_optarg ;;
1003 -localstatedir | --localstatedir | --localstatedi | --localstated \
1004 | --localstate | --localstat | --localsta | --localst | --locals)
1005 ac_prev=localstatedir ;;
1006 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1007 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1008 localstatedir=$ac_optarg ;;
1010 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1012 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1013 mandir=$ac_optarg ;;
1015 -nfp | --nfp | --nf)
1016 # Obsolete; use --without-fp.
1019 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1020 | --no-cr | --no-c | -n)
1023 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1024 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1027 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1028 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1029 | --oldin | --oldi | --old | --ol | --o)
1030 ac_prev=oldincludedir ;;
1031 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1032 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1033 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1034 oldincludedir=$ac_optarg ;;
1036 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1038 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1039 prefix=$ac_optarg ;;
1041 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1042 | --program-pre | --program-pr | --program-p)
1043 ac_prev=program_prefix ;;
1044 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1045 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1046 program_prefix=$ac_optarg ;;
1048 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1049 | --program-suf | --program-su | --program-s)
1050 ac_prev=program_suffix ;;
1051 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1052 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1053 program_suffix=$ac_optarg ;;
1055 -program-transform-name | --program-transform-name \
1056 | --program-transform-nam | --program-transform-na \
1057 | --program-transform-n | --program-transform- \
1058 | --program-transform | --program-transfor \
1059 | --program-transfo | --program-transf \
1060 | --program-trans | --program-tran \
1061 | --progr-tra | --program-tr | --program-t)
1062 ac_prev=program_transform_name ;;
1063 -program-transform-name=* | --program-transform-name=* \
1064 | --program-transform-nam=* | --program-transform-na=* \
1065 | --program-transform-n=* | --program-transform-=* \
1066 | --program-transform=* | --program-transfor=* \
1067 | --program-transfo=* | --program-transf=* \
1068 | --program-trans=* | --program-tran=* \
1069 | --progr-tra=* | --program-tr=* | --program-t=*)
1070 program_transform_name=$ac_optarg ;;
1072 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1074 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1075 pdfdir=$ac_optarg ;;
1077 -psdir | --psdir | --psdi | --psd | --ps)
1079 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1082 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1083 | -silent | --silent | --silen | --sile | --sil)
1086 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1088 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1090 sbindir=$ac_optarg ;;
1092 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1093 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1094 | --sharedst | --shareds | --shared | --share | --shar \
1096 ac_prev=sharedstatedir ;;
1097 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1098 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1099 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1101 sharedstatedir=$ac_optarg ;;
1103 -site | --site | --sit)
1105 -site=* | --site=* | --sit=*)
1108 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1110 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1111 srcdir=$ac_optarg ;;
1113 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1114 | --syscon | --sysco | --sysc | --sys | --sy)
1115 ac_prev=sysconfdir ;;
1116 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1117 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1118 sysconfdir=$ac_optarg ;;
1120 -target | --target | --targe | --targ | --tar | --ta | --t)
1121 ac_prev=target_alias ;;
1122 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1123 target_alias=$ac_optarg ;;
1125 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1128 -version | --version | --versio | --versi | --vers | -V)
1129 ac_init_version=: ;;
1132 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1133 # Reject names that are not valid shell variable names.
1134 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1135 as_fn_error "invalid package name: $ac_useropt"
1136 ac_useropt_orig=$ac_useropt
1137 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1138 case $ac_user_opts in
1142 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1143 ac_unrecognized_sep=', ';;
1145 eval with_$ac_useropt=\$ac_optarg ;;
1147 -without-* | --without-*)
1148 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1149 # Reject names that are not valid shell variable names.
1150 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1151 as_fn_error "invalid package name: $ac_useropt"
1152 ac_useropt_orig=$ac_useropt
1153 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1154 case $ac_user_opts in
1158 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1159 ac_unrecognized_sep=', ';;
1161 eval with_$ac_useropt=no ;;
1164 # Obsolete; use --with-x.
1167 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1168 | --x-incl | --x-inc | --x-in | --x-i)
1169 ac_prev=x_includes ;;
1170 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1171 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1172 x_includes=$ac_optarg ;;
1174 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1175 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1176 ac_prev=x_libraries ;;
1177 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1178 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1179 x_libraries=$ac_optarg ;;
1181 -*) as_fn_error "unrecognized option: \`$ac_option'
1182 Try \`$0 --help' for more information."
1186 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1187 # Reject names that are not valid shell variable names.
1188 case $ac_envvar in #(
1189 '' | [0-9]* | *[!_$as_cr_alnum]* )
1190 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1192 eval $ac_envvar=\$ac_optarg
1193 export $ac_envvar ;;
1196 # FIXME: should be removed in autoconf 3.0.
1197 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1198 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1199 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1200 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1206 if test -n "$ac_prev"; then
1207 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1208 as_fn_error "missing argument to $ac_option"
1211 if test -n "$ac_unrecognized_opts"; then
1212 case $enable_option_checking in
1214 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1215 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1219 # Check all directory arguments for consistency.
1220 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1221 datadir sysconfdir sharedstatedir localstatedir includedir \
1222 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1223 libdir localedir mandir
1225 eval ac_val=\$$ac_var
1226 # Remove trailing slashes.
1229 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1230 eval $ac_var=\$ac_val;;
1232 # Be sure to have absolute directory names.
1234 [\\/$]* | ?:[\\/]* ) continue;;
1235 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1237 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1240 # There might be people who depend on the old broken behavior: `$host'
1241 # used to hold the argument of --host etc.
1242 # FIXME: To remove some day.
1245 target=$target_alias
1247 # FIXME: To remove some day.
1248 if test "x$host_alias" != x; then
1249 if test "x$build_alias" = x; then
1250 cross_compiling=maybe
1251 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1252 If a cross compiler is detected then cross compile mode will be used." >&2
1253 elif test "x$build_alias" != "x$host_alias"; then
1259 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1261 test "$silent" = yes && exec 6>/dev/null
1264 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1265 ac_ls_di=`ls -di .` &&
1266 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1267 as_fn_error "working directory cannot be determined"
1268 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1269 as_fn_error "pwd does not report name of working directory"
1272 # Find the source files, if location was not specified.
1273 if test -z "$srcdir"; then
1274 ac_srcdir_defaulted=yes
1275 # Try the directory containing this script, then the parent directory.
1276 ac_confdir=`$as_dirname -- "$as_myself" ||
1277 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1278 X"$as_myself" : 'X\(//\)[^/]' \| \
1279 X"$as_myself" : 'X\(//\)$' \| \
1280 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1281 $as_echo X"$as_myself" |
1282 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1300 if test ! -r "$srcdir/$ac_unique_file"; then
1304 ac_srcdir_defaulted=no
1306 if test ! -r "$srcdir/$ac_unique_file"; then
1307 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1308 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1310 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1312 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1314 # When building in place, set srcdir=.
1315 if test "$ac_abs_confdir" = "$ac_pwd"; then
1318 # Remove unnecessary trailing slashes from srcdir.
1319 # Double slashes in file names in object file debugging info
1320 # mess up M-x gdb in Emacs.
1322 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1324 for ac_var in $ac_precious_vars; do
1325 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1326 eval ac_env_${ac_var}_value=\$${ac_var}
1327 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1328 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1332 # Report the --help message.
1334 if test "$ac_init_help" = "long"; then
1335 # Omit some internal or obsolete options to make the list less imposing.
1336 # This message is too long to be a string in the A/UX 3.1 sh.
1338 \`configure' configures gold 0.1 to adapt to many kinds of systems.
1340 Usage: $0 [OPTION]... [VAR=VALUE]...
1342 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1343 VAR=VALUE. See below for descriptions of some of the useful variables.
1345 Defaults for the options are specified in brackets.
1348 -h, --help display this help and exit
1349 --help=short display options specific to this package
1350 --help=recursive display the short help of all the included packages
1351 -V, --version display version information and exit
1352 -q, --quiet, --silent do not print \`checking...' messages
1353 --cache-file=FILE cache test results in FILE [disabled]
1354 -C, --config-cache alias for \`--cache-file=config.cache'
1355 -n, --no-create do not create output files
1356 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1358 Installation directories:
1359 --prefix=PREFIX install architecture-independent files in PREFIX
1360 [$ac_default_prefix]
1361 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1364 By default, \`make install' will install all the files in
1365 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1366 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1367 for instance \`--prefix=\$HOME'.
1369 For better control, use the options below.
1371 Fine tuning of the installation directories:
1372 --bindir=DIR user executables [EPREFIX/bin]
1373 --sbindir=DIR system admin executables [EPREFIX/sbin]
1374 --libexecdir=DIR program executables [EPREFIX/libexec]
1375 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1376 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1377 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1378 --libdir=DIR object code libraries [EPREFIX/lib]
1379 --includedir=DIR C header files [PREFIX/include]
1380 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1381 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1382 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1383 --infodir=DIR info documentation [DATAROOTDIR/info]
1384 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1385 --mandir=DIR man documentation [DATAROOTDIR/man]
1386 --docdir=DIR documentation root [DATAROOTDIR/doc/gold]
1387 --htmldir=DIR html documentation [DOCDIR]
1388 --dvidir=DIR dvi documentation [DOCDIR]
1389 --pdfdir=DIR pdf documentation [DOCDIR]
1390 --psdir=DIR ps documentation [DOCDIR]
1396 --program-prefix=PREFIX prepend PREFIX to installed program names
1397 --program-suffix=SUFFIX append SUFFIX to installed program names
1398 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1401 --build=BUILD configure for building on BUILD [guessed]
1402 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1403 --target=TARGET configure for building compilers for TARGET [HOST]
1407 if test -n "$ac_init_help"; then
1408 case $ac_init_help in
1409 short | recursive ) echo "Configuration of gold 0.1:";;
1414 --disable-option-checking ignore unrecognized --enable/--with options
1415 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1416 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1417 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1418 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1419 --enable-threads multi-threaded linking
1420 --enable-plugins linker plugins
1421 --enable-targets alternative target configurations
1422 --disable-dependency-tracking speeds up one-time build
1423 --enable-dependency-tracking do not reject slow dependency extractors
1424 --disable-nls do not use Native Language Support
1425 --enable-werror treat compile warnings as errors
1426 --enable-build-warnings enable build-time compiler warnings
1427 --enable-maintainer-mode enable make rules and dependencies not useful
1428 (and sometimes confusing) to the casual installer
1431 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1432 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1433 --with-sysroot=DIR search for usr/lib et al within DIR
1435 Some influential environment variables:
1436 CC C compiler command
1437 CFLAGS C compiler flags
1438 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1439 nonstandard directory <lib dir>
1440 LIBS libraries to pass to the linker, e.g. -l<library>
1441 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1442 you have headers in a nonstandard directory <include dir>
1443 CXX C++ compiler command
1444 CXXFLAGS C++ compiler flags
1445 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1446 the first program found out of: `bison -y', `byacc', `yacc'.
1447 YFLAGS The list of arguments that will be passed by default to $YACC.
1448 This script will default YFLAGS to the empty string to avoid a
1449 default value of `-d' given by some make applications.
1451 CXXCPP C++ preprocessor
1453 Use these variables to override the choices made by `configure' or to help
1454 it to find libraries and programs with nonstandard names/locations.
1456 Report bugs to the package provider.
1461 if test "$ac_init_help" = "recursive"; then
1462 # If there are subdirs, report their specific --help.
1463 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1464 test -d "$ac_dir" ||
1465 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1470 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1472 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1473 # A ".." for each directory in $ac_dir_suffix.
1474 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1475 case $ac_top_builddir_sub in
1476 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1477 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1480 ac_abs_top_builddir=$ac_pwd
1481 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1482 # for backward compatibility:
1483 ac_top_builddir=$ac_top_build_prefix
1486 .) # We are building in place.
1488 ac_top_srcdir=$ac_top_builddir_sub
1489 ac_abs_top_srcdir=$ac_pwd ;;
1490 [\\/]* | ?:[\\/]* ) # Absolute name.
1491 ac_srcdir=$srcdir$ac_dir_suffix;
1492 ac_top_srcdir=$srcdir
1493 ac_abs_top_srcdir=$srcdir ;;
1495 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1496 ac_top_srcdir=$ac_top_build_prefix$srcdir
1497 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1499 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1501 cd "$ac_dir" || { ac_status=$?; continue; }
1502 # Check for guested configure.
1503 if test -f "$ac_srcdir/configure.gnu"; then
1505 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1506 elif test -f "$ac_srcdir/configure"; then
1508 $SHELL "$ac_srcdir/configure" --help=recursive
1510 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1512 cd "$ac_pwd" || { ac_status=$?; break; }
1516 test -n "$ac_init_help" && exit $ac_status
1517 if $ac_init_version; then
1520 generated by GNU Autoconf 2.64
1522 Copyright (C) 2009 Free Software Foundation, Inc.
1523 This configure script is free software; the Free Software Foundation
1524 gives unlimited permission to copy, distribute and modify it.
1529 ## ------------------------ ##
1530 ## Autoconf initialization. ##
1531 ## ------------------------ ##
1533 # ac_fn_c_try_compile LINENO
1534 # --------------------------
1535 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1536 ac_fn_c_try_compile ()
1538 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1539 rm -f conftest.$ac_objext
1540 if { { ac_try="$ac_compile"
1542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1543 *) ac_try_echo=$ac_try;;
1545 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1546 $as_echo "$ac_try_echo"; } >&5
1547 (eval "$ac_compile") 2>conftest.err
1549 if test -s conftest.err; then
1550 grep -v '^ *+' conftest.err >conftest.er1
1551 cat conftest.er1 >&5
1552 mv -f conftest.er1 conftest.err
1554 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1555 test $ac_status = 0; } && {
1556 test -z "$ac_c_werror_flag" ||
1557 test ! -s conftest.err
1558 } && test -s conftest.$ac_objext; then :
1561 $as_echo "$as_me: failed program was:" >&5
1562 sed 's/^/| /' conftest.$ac_ext >&5
1566 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1569 } # ac_fn_c_try_compile
1571 # ac_fn_cxx_try_compile LINENO
1572 # ----------------------------
1573 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1574 ac_fn_cxx_try_compile ()
1576 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1577 rm -f conftest.$ac_objext
1578 if { { ac_try="$ac_compile"
1580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1581 *) ac_try_echo=$ac_try;;
1583 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1584 $as_echo "$ac_try_echo"; } >&5
1585 (eval "$ac_compile") 2>conftest.err
1587 if test -s conftest.err; then
1588 grep -v '^ *+' conftest.err >conftest.er1
1589 cat conftest.er1 >&5
1590 mv -f conftest.er1 conftest.err
1592 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1593 test $ac_status = 0; } && {
1594 test -z "$ac_cxx_werror_flag" ||
1595 test ! -s conftest.err
1596 } && test -s conftest.$ac_objext; then :
1599 $as_echo "$as_me: failed program was:" >&5
1600 sed 's/^/| /' conftest.$ac_ext >&5
1604 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1607 } # ac_fn_cxx_try_compile
1609 # ac_fn_c_try_cpp LINENO
1610 # ----------------------
1611 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1614 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1615 if { { ac_try="$ac_cpp conftest.$ac_ext"
1617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1618 *) ac_try_echo=$ac_try;;
1620 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1621 $as_echo "$ac_try_echo"; } >&5
1622 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1624 if test -s conftest.err; then
1625 grep -v '^ *+' conftest.err >conftest.er1
1626 cat conftest.er1 >&5
1627 mv -f conftest.er1 conftest.err
1629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1630 test $ac_status = 0; } >/dev/null && {
1631 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1632 test ! -s conftest.err
1636 $as_echo "$as_me: failed program was:" >&5
1637 sed 's/^/| /' conftest.$ac_ext >&5
1641 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1646 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1647 # -------------------------------------------------------
1648 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1649 # the include files in INCLUDES and setting the cache variable VAR
1651 ac_fn_c_check_header_mongrel ()
1653 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1654 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1656 $as_echo_n "checking for $2... " >&6; }
1657 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1658 $as_echo_n "(cached) " >&6
1661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1662 $as_echo "$ac_res" >&6; }
1664 # Is the header compilable?
1665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1666 $as_echo_n "checking $2 usability... " >&6; }
1667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1668 /* end confdefs.h. */
1672 if ac_fn_c_try_compile "$LINENO"; then :
1673 ac_header_compiler=yes
1675 ac_header_compiler=no
1677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1679 $as_echo "$ac_header_compiler" >&6; }
1681 # Is the header present?
1682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1683 $as_echo_n "checking $2 presence... " >&6; }
1684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1685 /* end confdefs.h. */
1688 if ac_fn_c_try_cpp "$LINENO"; then :
1689 ac_header_preproc=yes
1691 ac_header_preproc=no
1693 rm -f conftest.err conftest.$ac_ext
1694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1695 $as_echo "$ac_header_preproc" >&6; }
1697 # So? What about this header?
1698 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1700 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1701 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1702 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1703 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1706 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1707 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1708 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1709 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1710 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1711 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1712 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1713 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1714 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1715 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1719 $as_echo_n "checking for $2... " >&6; }
1720 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1721 $as_echo_n "(cached) " >&6
1723 eval "$3=\$ac_header_compiler"
1726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1727 $as_echo "$ac_res" >&6; }
1729 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1731 } # ac_fn_c_check_header_mongrel
1733 # ac_fn_c_try_run LINENO
1734 # ----------------------
1735 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1736 # that executables *can* be run.
1739 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1740 if { { ac_try="$ac_link"
1742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1743 *) ac_try_echo=$ac_try;;
1745 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1746 $as_echo "$ac_try_echo"; } >&5
1747 (eval "$ac_link") 2>&5
1749 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1750 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1751 { { case "(($ac_try" in
1752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1753 *) ac_try_echo=$ac_try;;
1755 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1756 $as_echo "$ac_try_echo"; } >&5
1757 (eval "$ac_try") 2>&5
1759 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1760 test $ac_status = 0; }; }; then :
1763 $as_echo "$as_me: program exited with status $ac_status" >&5
1764 $as_echo "$as_me: failed program was:" >&5
1765 sed 's/^/| /' conftest.$ac_ext >&5
1767 ac_retval=$ac_status
1769 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1770 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1775 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1776 # -------------------------------------------------------
1777 # Tests whether HEADER exists and can be compiled using the include files in
1778 # INCLUDES, setting the cache variable VAR accordingly.
1779 ac_fn_c_check_header_compile ()
1781 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1783 $as_echo_n "checking for $2... " >&6; }
1784 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1785 $as_echo_n "(cached) " >&6
1787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1788 /* end confdefs.h. */
1792 if ac_fn_c_try_compile "$LINENO"; then :
1797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1801 $as_echo "$ac_res" >&6; }
1802 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1804 } # ac_fn_c_check_header_compile
1806 # ac_fn_c_try_link LINENO
1807 # -----------------------
1808 # Try to link conftest.$ac_ext, and return whether this succeeded.
1811 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1812 rm -f conftest.$ac_objext conftest$ac_exeext
1813 if { { ac_try="$ac_link"
1815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1816 *) ac_try_echo=$ac_try;;
1818 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1819 $as_echo "$ac_try_echo"; } >&5
1820 (eval "$ac_link") 2>conftest.err
1822 if test -s conftest.err; then
1823 grep -v '^ *+' conftest.err >conftest.er1
1824 cat conftest.er1 >&5
1825 mv -f conftest.er1 conftest.err
1827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1828 test $ac_status = 0; } && {
1829 test -z "$ac_c_werror_flag" ||
1830 test ! -s conftest.err
1831 } && test -s conftest$ac_exeext && {
1832 test "$cross_compiling" = yes ||
1833 $as_test_x conftest$ac_exeext
1837 $as_echo "$as_me: failed program was:" >&5
1838 sed 's/^/| /' conftest.$ac_ext >&5
1842 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1843 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1844 # interfere with the next link command; also delete a directory that is
1845 # left behind by Apple's compiler. We do this before executing the actions.
1846 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1847 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1850 } # ac_fn_c_try_link
1852 # ac_fn_c_check_func LINENO FUNC VAR
1853 # ----------------------------------
1854 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1855 ac_fn_c_check_func ()
1857 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1859 $as_echo_n "checking for $2... " >&6; }
1860 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1861 $as_echo_n "(cached) " >&6
1863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1864 /* end confdefs.h. */
1865 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1866 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1867 #define $2 innocuous_$2
1869 /* System header to define __stub macros and hopefully few prototypes,
1870 which can conflict with char $2 (); below.
1871 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1872 <limits.h> exists even on freestanding compilers. */
1875 # include <limits.h>
1877 # include <assert.h>
1882 /* Override any GCC internal prototype to avoid an error.
1883 Use char because int might match the return type of a GCC
1884 builtin and then its argument prototype would still apply. */
1889 /* The GNU C library defines this for functions which it implements
1890 to always fail with ENOSYS. Some functions are actually named
1891 something starting with __ and the normal name is an alias. */
1892 #if defined __stub_$2 || defined __stub___$2
1904 if ac_fn_c_try_link "$LINENO"; then :
1909 rm -f core conftest.err conftest.$ac_objext \
1910 conftest$ac_exeext conftest.$ac_ext
1913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1914 $as_echo "$ac_res" >&6; }
1915 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1917 } # ac_fn_c_check_func
1919 # ac_fn_c_check_decl LINENO SYMBOL VAR
1920 # ------------------------------------
1921 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
1922 ac_fn_c_check_decl ()
1924 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1925 as_decl_name=`echo $2|sed 's/ *(.*//'`
1926 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1928 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1929 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1930 $as_echo_n "(cached) " >&6
1932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1933 /* end confdefs.h. */
1938 #ifndef $as_decl_name
1940 (void) $as_decl_use;
1942 (void) $as_decl_name;
1950 if ac_fn_c_try_compile "$LINENO"; then :
1955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1959 $as_echo "$ac_res" >&6; }
1960 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1962 } # ac_fn_c_check_decl
1964 # ac_fn_cxx_try_cpp LINENO
1965 # ------------------------
1966 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1967 ac_fn_cxx_try_cpp ()
1969 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1970 if { { ac_try="$ac_cpp conftest.$ac_ext"
1972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1973 *) ac_try_echo=$ac_try;;
1975 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1976 $as_echo "$ac_try_echo"; } >&5
1977 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1979 if test -s conftest.err; then
1980 grep -v '^ *+' conftest.err >conftest.er1
1981 cat conftest.er1 >&5
1982 mv -f conftest.er1 conftest.err
1984 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1985 test $ac_status = 0; } >/dev/null && {
1986 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1987 test ! -s conftest.err
1991 $as_echo "$as_me: failed program was:" >&5
1992 sed 's/^/| /' conftest.$ac_ext >&5
1996 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1999 } # ac_fn_cxx_try_cpp
2001 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2002 # ---------------------------------------------------------
2003 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2004 # the include files in INCLUDES and setting the cache variable VAR
2006 ac_fn_cxx_check_header_mongrel ()
2008 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2009 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2011 $as_echo_n "checking for $2... " >&6; }
2012 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2013 $as_echo_n "(cached) " >&6
2016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2017 $as_echo "$ac_res" >&6; }
2019 # Is the header compilable?
2020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2021 $as_echo_n "checking $2 usability... " >&6; }
2022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2023 /* end confdefs.h. */
2027 if ac_fn_cxx_try_compile "$LINENO"; then :
2028 ac_header_compiler=yes
2030 ac_header_compiler=no
2032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2034 $as_echo "$ac_header_compiler" >&6; }
2036 # Is the header present?
2037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2038 $as_echo_n "checking $2 presence... " >&6; }
2039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2040 /* end confdefs.h. */
2043 if ac_fn_cxx_try_cpp "$LINENO"; then :
2044 ac_header_preproc=yes
2046 ac_header_preproc=no
2048 rm -f conftest.err conftest.$ac_ext
2049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2050 $as_echo "$ac_header_preproc" >&6; }
2052 # So? What about this header?
2053 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2055 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2056 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2057 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2058 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2061 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2062 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2063 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2064 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2065 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2066 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2067 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2068 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2069 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2070 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2074 $as_echo_n "checking for $2... " >&6; }
2075 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2076 $as_echo_n "(cached) " >&6
2078 eval "$3=\$ac_header_compiler"
2081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2082 $as_echo "$ac_res" >&6; }
2084 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2086 } # ac_fn_cxx_check_header_mongrel
2088 # ac_fn_cxx_try_link LINENO
2089 # -------------------------
2090 # Try to link conftest.$ac_ext, and return whether this succeeded.
2091 ac_fn_cxx_try_link ()
2093 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2094 rm -f conftest.$ac_objext conftest$ac_exeext
2095 if { { ac_try="$ac_link"
2097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2098 *) ac_try_echo=$ac_try;;
2100 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2101 $as_echo "$ac_try_echo"; } >&5
2102 (eval "$ac_link") 2>conftest.err
2104 if test -s conftest.err; then
2105 grep -v '^ *+' conftest.err >conftest.er1
2106 cat conftest.er1 >&5
2107 mv -f conftest.er1 conftest.err
2109 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2110 test $ac_status = 0; } && {
2111 test -z "$ac_cxx_werror_flag" ||
2112 test ! -s conftest.err
2113 } && test -s conftest$ac_exeext && {
2114 test "$cross_compiling" = yes ||
2115 $as_test_x conftest$ac_exeext
2119 $as_echo "$as_me: failed program was:" >&5
2120 sed 's/^/| /' conftest.$ac_ext >&5
2124 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2125 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2126 # interfere with the next link command; also delete a directory that is
2127 # left behind by Apple's compiler. We do this before executing the actions.
2128 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2129 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2132 } # ac_fn_cxx_try_link
2134 # ac_fn_cxx_check_func LINENO FUNC VAR
2135 # ------------------------------------
2136 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2137 ac_fn_cxx_check_func ()
2139 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2141 $as_echo_n "checking for $2... " >&6; }
2142 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2143 $as_echo_n "(cached) " >&6
2145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2146 /* end confdefs.h. */
2147 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2148 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2149 #define $2 innocuous_$2
2151 /* System header to define __stub macros and hopefully few prototypes,
2152 which can conflict with char $2 (); below.
2153 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2154 <limits.h> exists even on freestanding compilers. */
2157 # include <limits.h>
2159 # include <assert.h>
2164 /* Override any GCC internal prototype to avoid an error.
2165 Use char because int might match the return type of a GCC
2166 builtin and then its argument prototype would still apply. */
2171 /* The GNU C library defines this for functions which it implements
2172 to always fail with ENOSYS. Some functions are actually named
2173 something starting with __ and the normal name is an alias. */
2174 #if defined __stub_$2 || defined __stub___$2
2186 if ac_fn_cxx_try_link "$LINENO"; then :
2191 rm -f core conftest.err conftest.$ac_objext \
2192 conftest$ac_exeext conftest.$ac_ext
2195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2196 $as_echo "$ac_res" >&6; }
2197 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2199 } # ac_fn_cxx_check_func
2201 # ac_fn_cxx_check_decl LINENO SYMBOL VAR
2202 # --------------------------------------
2203 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2204 ac_fn_cxx_check_decl ()
2206 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2207 as_decl_name=`echo $2|sed 's/ *(.*//'`
2208 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2210 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2211 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2212 $as_echo_n "(cached) " >&6
2214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2215 /* end confdefs.h. */
2220 #ifndef $as_decl_name
2222 (void) $as_decl_use;
2224 (void) $as_decl_name;
2232 if ac_fn_cxx_try_compile "$LINENO"; then :
2237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2241 $as_echo "$ac_res" >&6; }
2242 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2244 } # ac_fn_cxx_check_decl
2245 cat >config.log <<_ACEOF
2246 This file contains any messages produced by compilers while
2247 running configure, to aid debugging if configure makes a mistake.
2249 It was created by gold $as_me 0.1, which was
2250 generated by GNU Autoconf 2.64. Invocation command line was
2262 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2263 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2264 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2265 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2266 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2268 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2269 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2271 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2272 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2273 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2274 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2275 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2276 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2277 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2285 test -z "$as_dir" && as_dir=.
2286 $as_echo "PATH: $as_dir"
2302 # Keep a trace of the command line.
2303 # Strip out --no-create and --no-recursion so they do not pile up.
2304 # Strip out --silent because we don't want to record it for future runs.
2305 # Also quote any args containing shell meta-characters.
2306 # Make two passes to allow for proper duplicate-argument suppression.
2310 ac_must_keep_next=false
2316 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2317 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2318 | -silent | --silent | --silen | --sile | --sil)
2321 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2324 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2326 as_fn_append ac_configure_args1 " '$ac_arg'"
2327 if test $ac_must_keep_next = true; then
2328 ac_must_keep_next=false # Got value, back to normal.
2331 *=* | --config-cache | -C | -disable-* | --disable-* \
2332 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2333 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2334 | -with-* | --with-* | -without-* | --without-* | --x)
2335 case "$ac_configure_args0 " in
2336 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2339 -* ) ac_must_keep_next=true ;;
2342 as_fn_append ac_configure_args " '$ac_arg'"
2347 { ac_configure_args0=; unset ac_configure_args0;}
2348 { ac_configure_args1=; unset ac_configure_args1;}
2350 # When interrupted or exit'd, cleanup temporary files, and complete
2351 # config.log. We remove comments because anyway the quotes in there
2352 # would cause problems or look ugly.
2353 # WARNING: Use '\'' to represent an apostrophe within the trap.
2354 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2355 trap 'exit_status=$?
2356 # Save into config.log some information that might help in debugging.
2361 ## ---------------- ##
2362 ## Cache variables. ##
2363 ## ---------------- ##
2366 # The following way of writing the cache mishandles newlines in values,
2368 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2369 eval ac_val=\$$ac_var
2373 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2374 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2377 _ | IFS | as_nl) ;; #(
2378 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2379 *) { eval $ac_var=; unset $ac_var;} ;;
2384 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2385 *${as_nl}ac_space=\ *)
2387 "s/'\''/'\''\\\\'\'''\''/g;
2388 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2391 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2399 ## ----------------- ##
2400 ## Output variables. ##
2401 ## ----------------- ##
2404 for ac_var in $ac_subst_vars
2406 eval ac_val=\$$ac_var
2408 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2410 $as_echo "$ac_var='\''$ac_val'\''"
2414 if test -n "$ac_subst_files"; then
2416 ## ------------------- ##
2417 ## File substitutions. ##
2418 ## ------------------- ##
2421 for ac_var in $ac_subst_files
2423 eval ac_val=\$$ac_var
2425 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2427 $as_echo "$ac_var='\''$ac_val'\''"
2432 if test -s confdefs.h; then
2442 test "$ac_signal" != 0 &&
2443 $as_echo "$as_me: caught signal $ac_signal"
2444 $as_echo "$as_me: exit $exit_status"
2446 rm -f core *.core core.conftest.* &&
2447 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2450 for ac_signal in 1 2 13 15; do
2451 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2455 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2456 rm -f -r conftest* confdefs.h
2458 $as_echo "/* confdefs.h */" > confdefs.h
2460 # Predefined preprocessor variables.
2462 cat >>confdefs.h <<_ACEOF
2463 #define PACKAGE_NAME "$PACKAGE_NAME"
2466 cat >>confdefs.h <<_ACEOF
2467 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2470 cat >>confdefs.h <<_ACEOF
2471 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2474 cat >>confdefs.h <<_ACEOF
2475 #define PACKAGE_STRING "$PACKAGE_STRING"
2478 cat >>confdefs.h <<_ACEOF
2479 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2482 cat >>confdefs.h <<_ACEOF
2483 #define PACKAGE_URL "$PACKAGE_URL"
2487 # Let the site file select an alternate cache file if it wants to.
2488 # Prefer an explicitly selected file to automatically selected ones.
2491 if test -n "$CONFIG_SITE"; then
2492 ac_site_file1=$CONFIG_SITE
2493 elif test "x$prefix" != xNONE; then
2494 ac_site_file1=$prefix/share/config.site
2495 ac_site_file2=$prefix/etc/config.site
2497 ac_site_file1=$ac_default_prefix/share/config.site
2498 ac_site_file2=$ac_default_prefix/etc/config.site
2500 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2502 test "x$ac_site_file" = xNONE && continue
2503 if test -r "$ac_site_file"; then
2504 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2505 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2506 sed 's/^/| /' "$ac_site_file" >&5
2511 if test -r "$cache_file"; then
2512 # Some versions of bash will fail to source /dev/null (special
2513 # files actually), so we avoid doing that.
2514 if test -f "$cache_file"; then
2515 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2516 $as_echo "$as_me: loading cache $cache_file" >&6;}
2518 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2519 *) . "./$cache_file";;
2523 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2524 $as_echo "$as_me: creating cache $cache_file" >&6;}
2528 # Check that the precious variables saved in the cache have kept the same
2530 ac_cache_corrupted=false
2531 for ac_var in $ac_precious_vars; do
2532 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2533 eval ac_new_set=\$ac_env_${ac_var}_set
2534 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2535 eval ac_new_val=\$ac_env_${ac_var}_value
2536 case $ac_old_set,$ac_new_set in
2538 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2539 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2540 ac_cache_corrupted=: ;;
2542 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2543 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2544 ac_cache_corrupted=: ;;
2547 if test "x$ac_old_val" != "x$ac_new_val"; then
2548 # differences in whitespace do not lead to failure.
2549 ac_old_val_w=`echo x $ac_old_val`
2550 ac_new_val_w=`echo x $ac_new_val`
2551 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2552 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2553 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2554 ac_cache_corrupted=:
2556 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2557 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2558 eval $ac_var=\$ac_old_val
2560 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2561 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2562 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2563 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2566 # Pass precious variables to config.status.
2567 if test "$ac_new_set" = set; then
2569 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2570 *) ac_arg=$ac_var=$ac_new_val ;;
2572 case " $ac_configure_args " in
2573 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2574 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2578 if $ac_cache_corrupted; then
2579 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2580 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2581 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2582 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2583 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2585 ## -------------------- ##
2586 ## Main body of script. ##
2587 ## -------------------- ##
2590 ac_cpp='$CPP $CPPFLAGS'
2591 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2592 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2593 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2602 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2603 for ac_t in install-sh install.sh shtool; do
2604 if test -f "$ac_dir/$ac_t"; then
2606 ac_install_sh="$ac_aux_dir/$ac_t -c"
2611 if test -z "$ac_aux_dir"; then
2612 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2615 # These three variables are undocumented and unsupported,
2616 # and are intended to be withdrawn in a future Autoconf release.
2617 # They can cause serious problems if a builder's source tree is in a directory
2618 # whose full name contains unusual characters.
2619 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2620 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2621 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2624 # Make sure we can run config.sub.
2625 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2626 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2629 $as_echo_n "checking build system type... " >&6; }
2630 if test "${ac_cv_build+set}" = set; then :
2631 $as_echo_n "(cached) " >&6
2633 ac_build_alias=$build_alias
2634 test "x$ac_build_alias" = x &&
2635 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2636 test "x$ac_build_alias" = x &&
2637 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2638 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2639 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2643 $as_echo "$ac_cv_build" >&6; }
2644 case $ac_cv_build in
2646 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2649 ac_save_IFS=$IFS; IFS='-'
2655 # Remember, the first character of IFS is used to create $*,
2656 # except with old shells:
2659 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2663 $as_echo_n "checking host system type... " >&6; }
2664 if test "${ac_cv_host+set}" = set; then :
2665 $as_echo_n "(cached) " >&6
2667 if test "x$host_alias" = x; then
2668 ac_cv_host=$ac_cv_build
2670 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2671 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2676 $as_echo "$ac_cv_host" >&6; }
2679 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2682 ac_save_IFS=$IFS; IFS='-'
2688 # Remember, the first character of IFS is used to create $*,
2689 # except with old shells:
2692 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2696 $as_echo_n "checking target system type... " >&6; }
2697 if test "${ac_cv_target+set}" = set; then :
2698 $as_echo_n "(cached) " >&6
2700 if test "x$target_alias" = x; then
2701 ac_cv_target=$ac_cv_host
2703 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2704 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2709 $as_echo "$ac_cv_target" >&6; }
2710 case $ac_cv_target in
2712 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2714 target=$ac_cv_target
2715 ac_save_IFS=$IFS; IFS='-'
2721 # Remember, the first character of IFS is used to create $*,
2722 # except with old shells:
2725 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2728 # The aliases save the names the user supplied, while $host etc.
2729 # will get canonicalized.
2730 test -n "$target_alias" &&
2731 test "$program_prefix$program_suffix$program_transform_name" = \
2733 program_prefix=${target_alias}-
2735 am__api_version='1.11'
2737 # Find a good install program. We prefer a C program (faster),
2738 # so one script is as good as another. But avoid the broken or
2739 # incompatible versions:
2740 # SysV /etc/install, /usr/sbin/install
2741 # SunOS /usr/etc/install
2742 # IRIX /sbin/install
2744 # AmigaOS /C/install, which installs bootblocks on floppy discs
2745 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2746 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2747 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2748 # OS/2's system install, which has a completely different semantic
2749 # ./install, which can be erroneously created by make from ./install.sh.
2750 # Reject install programs that cannot install multiple files.
2751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2752 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2753 if test -z "$INSTALL"; then
2754 if test "${ac_cv_path_install+set}" = set; then :
2755 $as_echo_n "(cached) " >&6
2757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2761 test -z "$as_dir" && as_dir=.
2762 # Account for people who put trailing slashes in PATH elements.
2763 case $as_dir/ in #((
2764 ./ | .// | /[cC]/* | \
2765 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2766 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2769 # OSF1 and SCO ODT 3.0 have their own names for install.
2770 # Don't use installbsd from OSF since it installs stuff as root
2772 for ac_prog in ginstall scoinst install; do
2773 for ac_exec_ext in '' $ac_executable_extensions; do
2774 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2775 if test $ac_prog = install &&
2776 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2777 # AIX install. It has an incompatible calling convention.
2779 elif test $ac_prog = install &&
2780 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2781 # program-specific install script used by HP pwplus--don't use.
2784 rm -rf conftest.one conftest.two conftest.dir
2785 echo one > conftest.one
2786 echo two > conftest.two
2788 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2789 test -s conftest.one && test -s conftest.two &&
2790 test -s conftest.dir/conftest.one &&
2791 test -s conftest.dir/conftest.two
2793 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2806 rm -rf conftest.one conftest.two conftest.dir
2809 if test "${ac_cv_path_install+set}" = set; then
2810 INSTALL=$ac_cv_path_install
2812 # As a last resort, use the slow shell script. Don't cache a
2813 # value for INSTALL within a source directory, because that will
2814 # break other packages using the cache if that directory is
2815 # removed, or if the value is a relative name.
2816 INSTALL=$ac_install_sh
2819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2820 $as_echo "$INSTALL" >&6; }
2822 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2823 # It thinks the first close brace ends the variable substitution.
2824 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2826 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2828 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2831 $as_echo_n "checking whether build environment is sane... " >&6; }
2834 echo timestamp > conftest.file
2835 # Reject unsafe characters in $srcdir or the absolute working directory
2836 # name. Accept space and tab only in the latter.
2840 *[\\\"\#\$\&\'\`$am_lf]*)
2841 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2844 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2845 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2848 # Do `set' in a subshell so we don't clobber the current shell's
2849 # arguments. Must try -L first in case configure is actually a
2850 # symlink; some systems play weird games with the mod time of symlinks
2851 # (eg FreeBSD returns the mod time of the symlink's containing
2854 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2855 if test "$*" = "X"; then
2857 set X `ls -t "$srcdir/configure" conftest.file`
2860 if test "$*" != "X $srcdir/configure conftest.file" \
2861 && test "$*" != "X conftest.file $srcdir/configure"; then
2863 # If neither matched, then we have a broken ls. This can happen
2864 # if, for instance, CONFIG_SHELL is bash and it inherits a
2865 # broken ls alias from the environment. This has actually
2866 # happened. Such a system could not be considered "sane".
2867 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2868 alias in your environment" "$LINENO" 5
2871 test "$2" = conftest.file
2877 as_fn_error "newly created file is older than distributed files!
2878 Check your system clock" "$LINENO" 5
2880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2881 $as_echo "yes" >&6; }
2882 test "$program_prefix" != NONE &&
2883 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2884 # Use a double $ so make ignores it.
2885 test "$program_suffix" != NONE &&
2886 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2887 # Double any \ or $.
2888 # By default was `s,x,x', remove it if useless.
2889 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2890 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2892 # expand $ac_aux_dir to an absolute path
2893 am_aux_dir=`cd $ac_aux_dir && pwd`
2895 if test x"${MISSING+set}" != xset; then
2898 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2900 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2903 # Use eval to expand $SHELL
2904 if eval "$MISSING --run true"; then
2905 am_missing_run="$MISSING --run "
2908 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2909 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2912 if test x"${install_sh}" != xset; then
2915 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2917 install_sh="\${SHELL} $am_aux_dir/install-sh"
2921 # Installed binaries are usually stripped using `strip' when the user
2922 # run `make install-strip'. However `strip' might not be the right
2923 # tool to use in cross-compilation environments, therefore Automake
2924 # will honor the `STRIP' environment variable to overrule this program.
2925 if test "$cross_compiling" != no; then
2926 if test -n "$ac_tool_prefix"; then
2927 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2928 set dummy ${ac_tool_prefix}strip; ac_word=$2
2929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2930 $as_echo_n "checking for $ac_word... " >&6; }
2931 if test "${ac_cv_prog_STRIP+set}" = set; then :
2932 $as_echo_n "(cached) " >&6
2934 if test -n "$STRIP"; then
2935 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2941 test -z "$as_dir" && as_dir=.
2942 for ac_exec_ext in '' $ac_executable_extensions; do
2943 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2944 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2954 STRIP=$ac_cv_prog_STRIP
2955 if test -n "$STRIP"; then
2956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2957 $as_echo "$STRIP" >&6; }
2959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2960 $as_echo "no" >&6; }
2965 if test -z "$ac_cv_prog_STRIP"; then
2967 # Extract the first word of "strip", so it can be a program name with args.
2968 set dummy strip; ac_word=$2
2969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2970 $as_echo_n "checking for $ac_word... " >&6; }
2971 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2972 $as_echo_n "(cached) " >&6
2974 if test -n "$ac_ct_STRIP"; then
2975 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2981 test -z "$as_dir" && as_dir=.
2982 for ac_exec_ext in '' $ac_executable_extensions; do
2983 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2984 ac_cv_prog_ac_ct_STRIP="strip"
2985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2994 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2995 if test -n "$ac_ct_STRIP"; then
2996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2997 $as_echo "$ac_ct_STRIP" >&6; }
2999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3000 $as_echo "no" >&6; }
3003 if test "x$ac_ct_STRIP" = x; then
3006 case $cross_compiling:$ac_tool_warned in
3008 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3009 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3010 ac_tool_warned=yes ;;
3015 STRIP="$ac_cv_prog_STRIP"
3019 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3022 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3023 if test -z "$MKDIR_P"; then
3024 if test "${ac_cv_path_mkdir+set}" = set; then :
3025 $as_echo_n "(cached) " >&6
3027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3028 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3031 test -z "$as_dir" && as_dir=.
3032 for ac_prog in mkdir gmkdir; do
3033 for ac_exec_ext in '' $ac_executable_extensions; do
3034 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3035 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3036 'mkdir (GNU coreutils) '* | \
3037 'mkdir (coreutils) '* | \
3038 'mkdir (fileutils) '4.1*)
3039 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3049 if test "${ac_cv_path_mkdir+set}" = set; then
3050 MKDIR_P="$ac_cv_path_mkdir -p"
3052 # As a last resort, use the slow shell script. Don't cache a
3053 # value for MKDIR_P within a source directory, because that will
3054 # break other packages using the cache if that directory is
3055 # removed, or if the value is a relative name.
3056 test -d ./--version && rmdir ./--version
3057 MKDIR_P="$ac_install_sh -d"
3060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3061 $as_echo "$MKDIR_P" >&6; }
3065 [\\/$]* | ?:[\\/]*) ;;
3066 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3069 for ac_prog in gawk mawk nawk awk
3071 # Extract the first word of "$ac_prog", so it can be a program name with args.
3072 set dummy $ac_prog; ac_word=$2
3073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3074 $as_echo_n "checking for $ac_word... " >&6; }
3075 if test "${ac_cv_prog_AWK+set}" = set; then :
3076 $as_echo_n "(cached) " >&6
3078 if test -n "$AWK"; then
3079 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3085 test -z "$as_dir" && as_dir=.
3086 for ac_exec_ext in '' $ac_executable_extensions; do
3087 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3088 ac_cv_prog_AWK="$ac_prog"
3089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3099 if test -n "$AWK"; then
3100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3101 $as_echo "$AWK" >&6; }
3103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3104 $as_echo "no" >&6; }
3108 test -n "$AWK" && break
3111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3112 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3114 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3115 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3116 $as_echo_n "(cached) " >&6
3118 cat >conftest.make <<\_ACEOF
3121 @echo '@@@%%%=$(MAKE)=@@@%%%'
3123 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3124 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3126 eval ac_cv_prog_make_${ac_make}_set=yes;;
3128 eval ac_cv_prog_make_${ac_make}_set=no;;
3132 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3134 $as_echo "yes" >&6; }
3137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3138 $as_echo "no" >&6; }
3139 SET_MAKE="MAKE=${MAKE-make}"
3142 rm -rf .tst 2>/dev/null
3143 mkdir .tst 2>/dev/null
3144 if test -d .tst; then
3149 rmdir .tst 2>/dev/null
3151 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3152 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3153 # is not polluted with repeated "-I."
3154 am__isrc=' -I$(srcdir)'
3155 # test to see if srcdir already configured
3156 if test -f $srcdir/config.status; then
3157 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3161 # test whether we have cygpath
3162 if test -z "$CYGPATH_W"; then
3163 if (cygpath --version) >/dev/null 2>/dev/null; then
3164 CYGPATH_W='cygpath -w'
3171 # Define the identity of the package.
3176 cat >>confdefs.h <<_ACEOF
3177 #define PACKAGE "$PACKAGE"
3181 cat >>confdefs.h <<_ACEOF
3182 #define VERSION "$VERSION"
3185 # Some tools Automake needs.
3187 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3190 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3193 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3196 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3199 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3201 # We need awk for the "check" target. The system "awk" is bad on
3203 # Always define AMTAR for backward compatibility.
3205 AMTAR=${AMTAR-"${am_missing_run}tar"}
3207 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3214 ac_config_headers="$ac_config_headers config.h:config.in"
3218 # Check whether --with-sysroot was given.
3219 if test "${with_sysroot+set}" = set; then :
3220 withval=$with_sysroot; sysroot=$withval
3226 if test "$sysroot" = "yes"; then
3227 sysroot='${exec_prefix}/${target_alias}/sys-root'
3228 elif test "$sysroot" = "no"; then
3232 sysroot_relocatable=0
3233 if test -n "$sysroot"; then
3235 "${prefix}" | "${prefix}/"* | \
3236 "${exec_prefix}" | "${exec_prefix}/"* | \
3237 '${prefix}' | '${prefix}/'*| \
3238 '${exec_prefix}' | '${exec_prefix}/'*)
3239 sysroot_relocatable=1
3245 cat >>confdefs.h <<_ACEOF
3246 #define TARGET_SYSTEM_ROOT "$sysroot"
3250 cat >>confdefs.h <<_ACEOF
3251 #define TARGET_SYSTEM_ROOT_RELOCATABLE $sysroot_relocatable
3257 # Check whether --enable-ld was given.
3258 if test "${enable_ld+set}" = set; then :
3259 enableval=$enable_ld; case "${enableval}" in
3267 # Check whether --enable-gold was given.
3268 if test "${enable_gold+set}" = set; then :
3269 enableval=$enable_gold; case "${enableval}" in
3271 if test x${default_ld} = x; then
3272 install_as_default=yes
3274 installed_linker=ld.gold
3279 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
3283 install_as_default=no
3284 installed_linker=ld.gold
3290 # Check whether --enable-threads was given.
3291 if test "${enable_threads+set}" = set; then :
3292 enableval=$enable_threads; case "${enableval}" in
3293 yes | "") threads=yes ;;
3301 if test "$threads" = "yes"; then
3303 $as_echo "#define ENABLE_THREADS 1" >>confdefs.h
3306 if test "$threads" = "yes"; then
3315 # Check whether --enable-plugins was given.
3316 if test "${enable_plugins+set}" = set; then :
3317 enableval=$enable_plugins; case "${enableval}" in
3318 yes | "") plugins=yes ;;
3326 if test "$plugins" = "yes"; then
3328 $as_echo "#define ENABLE_PLUGINS 1" >>confdefs.h
3331 if test "$plugins" = "yes"; then
3340 # Check whether --enable-targets was given.
3341 if test "${enable_targets+set}" = set; then :
3342 enableval=$enable_targets; case "${enableval}" in
3344 as_fn_error "--enable-targets option must specify target names or 'all'" "$LINENO" 5
3350 enable_targets=$enableval
3354 # For now, enable all targets by default
3360 # Canonicalize the enabled targets.
3361 if test -n "$enable_targets"; then
3362 for targ in `echo $enable_targets | sed -e 's/,/ /g'`; do
3363 result=`$ac_config_sub $targ 2>/dev/null`
3364 if test -n "$result"; then
3365 canon_targets="$canon_targets $result"
3367 # Permit unrecognized target names, like "all".
3368 canon_targets="$canon_targets $targ"
3373 # See which specific instantiations we need.
3379 default_osabi=ELFOSABI_NONE
3384 for targ in $target $canon_targets; do
3385 if test "$targ" = "all"; then
3392 . ${srcdir}/configure.tgt
3394 if test "$targ_obj" = "UNKNOWN"; then
3395 as_fn_error "\"unsupported target $targ\"" "$LINENO" 5
3397 targetobjs="$targetobjs ${targ_obj}.\$(OBJEXT)"
3398 if test "$targ_extra_obj" != ""; then
3399 targetobjs="$targetobjs ${targ_extra_obj}.\$(OBJEXT)"
3401 if test "$targ_size" = "32" -o "$targ_extra_size" = "32"; then
3402 if test "$targ_big_endian" = "true" \
3403 -o "$targ_extra_big_endian" = "true"; then
3406 if test "$targ_big_endian" = "false" \
3407 -o "$targ_extra_big_endian" = "false"; then
3411 if test "$targ_size" = "64" -o "$targ_extra_size" = "64"; then
3412 if test "$targ_big_endian" = "true" \
3413 -o "$targ_extra_big_endian" = "true"; then
3416 if test "$targ_big_endian" = "false" \
3417 -o "$targ_extra_big_endian" = "false"; then
3422 if test "$target" = "$targ"; then
3423 default_machine=$targ_machine
3424 default_size=$targ_size
3425 default_big_endian=$targ_big_endian
3426 default_osabi=$targ_osabi
3428 if test "$targ_obj" = "arm"; then
3429 DEFAULT_TARGET_ARM_TRUE=
3430 DEFAULT_TARGET_ARM_FALSE='#'
3432 DEFAULT_TARGET_ARM_TRUE='#'
3433 DEFAULT_TARGET_ARM_FALSE=
3436 if test "$targ_obj" = "i386"; then
3437 DEFAULT_TARGET_I386_TRUE=
3438 DEFAULT_TARGET_I386_FALSE='#'
3440 DEFAULT_TARGET_I386_TRUE='#'
3441 DEFAULT_TARGET_I386_FALSE=
3444 if test "$targ_obj" = "powerpc"; then
3445 DEFAULT_TARGET_POWERPC_TRUE=
3446 DEFAULT_TARGET_POWERPC_FALSE='#'
3448 DEFAULT_TARGET_POWERPC_TRUE='#'
3449 DEFAULT_TARGET_POWERPC_FALSE=
3452 if test "$targ_obj" = "sparc"; then
3453 DEFAULT_TARGET_SPARC_TRUE=
3454 DEFAULT_TARGET_SPARC_FALSE='#'
3456 DEFAULT_TARGET_SPARC_TRUE='#'
3457 DEFAULT_TARGET_SPARC_FALSE=
3460 if test "$targ_obj" = "x86_64"; then
3461 DEFAULT_TARGET_X86_64_TRUE=
3462 DEFAULT_TARGET_X86_64_FALSE='#'
3464 DEFAULT_TARGET_X86_64_TRUE='#'
3465 DEFAULT_TARGET_X86_64_FALSE=
3473 # Remove any duplicates.
3475 for t in $targetobjs; do
3483 if test -n "$targ_32_little"; then
3485 $as_echo "#define HAVE_TARGET_32_LITTLE 1" >>confdefs.h
3488 if test -n "$targ_32_big"; then
3490 $as_echo "#define HAVE_TARGET_32_BIG 1" >>confdefs.h
3493 if test -n "$targ_64_little"; then
3495 $as_echo "#define HAVE_TARGET_64_LITTLE 1" >>confdefs.h
3498 if test -n "$targ_64_big"; then
3500 $as_echo "#define HAVE_TARGET_64_BIG 1" >>confdefs.h
3504 if test -n "$all_targets"; then
3505 TARGETOBJS='$(ALL_TARGETOBJS)'
3507 TARGETOBJS="$targetobjs"
3512 cat >>confdefs.h <<_ACEOF
3513 #define GOLD_DEFAULT_MACHINE $default_machine
3517 cat >>confdefs.h <<_ACEOF
3518 #define GOLD_DEFAULT_SIZE $default_size
3522 cat >>confdefs.h <<_ACEOF
3523 #define GOLD_DEFAULT_BIG_ENDIAN $default_big_endian
3527 cat >>confdefs.h <<_ACEOF
3528 #define GOLD_DEFAULT_OSABI $default_osabi
3532 if test -n "$ac_tool_prefix"; then
3533 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
3534 set dummy ${ac_tool_prefix}nm; ac_word=$2
3535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3536 $as_echo_n "checking for $ac_word... " >&6; }
3537 if test "${ac_cv_prog_NM+set}" = set; then :
3538 $as_echo_n "(cached) " >&6
3540 if test -n "$NM"; then
3541 ac_cv_prog_NM="$NM" # Let the user override the test.
3543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3547 test -z "$as_dir" && as_dir=.
3548 for ac_exec_ext in '' $ac_executable_extensions; do
3549 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3550 ac_cv_prog_NM="${ac_tool_prefix}nm"
3551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3561 if test -n "$NM"; then
3562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
3563 $as_echo "$NM" >&6; }
3565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3566 $as_echo "no" >&6; }
3571 if test -z "$ac_cv_prog_NM"; then
3573 # Extract the first word of "nm", so it can be a program name with args.
3574 set dummy nm; ac_word=$2
3575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3576 $as_echo_n "checking for $ac_word... " >&6; }
3577 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then :
3578 $as_echo_n "(cached) " >&6
3580 if test -n "$ac_ct_NM"; then
3581 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
3583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3587 test -z "$as_dir" && as_dir=.
3588 for ac_exec_ext in '' $ac_executable_extensions; do
3589 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3590 ac_cv_prog_ac_ct_NM="nm"
3591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3600 ac_ct_NM=$ac_cv_prog_ac_ct_NM
3601 if test -n "$ac_ct_NM"; then
3602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5
3603 $as_echo "$ac_ct_NM" >&6; }
3605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3606 $as_echo "no" >&6; }
3609 if test "x$ac_ct_NM" = x; then
3612 case $cross_compiling:$ac_tool_warned in
3614 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3615 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3616 ac_tool_warned=yes ;;
3626 ac_cpp='$CPP $CPPFLAGS'
3627 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3628 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3629 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3630 if test -n "$ac_tool_prefix"; then
3631 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3632 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3634 $as_echo_n "checking for $ac_word... " >&6; }
3635 if test "${ac_cv_prog_CC+set}" = set; then :
3636 $as_echo_n "(cached) " >&6
3638 if test -n "$CC"; then
3639 ac_cv_prog_CC="$CC" # Let the user override the test.
3641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3645 test -z "$as_dir" && as_dir=.
3646 for ac_exec_ext in '' $ac_executable_extensions; do
3647 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3648 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3659 if test -n "$CC"; then
3660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3661 $as_echo "$CC" >&6; }
3663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3664 $as_echo "no" >&6; }
3669 if test -z "$ac_cv_prog_CC"; then
3671 # Extract the first word of "gcc", so it can be a program name with args.
3672 set dummy gcc; ac_word=$2
3673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3674 $as_echo_n "checking for $ac_word... " >&6; }
3675 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3676 $as_echo_n "(cached) " >&6
3678 if test -n "$ac_ct_CC"; then
3679 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3685 test -z "$as_dir" && as_dir=.
3686 for ac_exec_ext in '' $ac_executable_extensions; do
3687 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3688 ac_cv_prog_ac_ct_CC="gcc"
3689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3698 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3699 if test -n "$ac_ct_CC"; then
3700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3701 $as_echo "$ac_ct_CC" >&6; }
3703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3704 $as_echo "no" >&6; }
3707 if test "x$ac_ct_CC" = x; then
3710 case $cross_compiling:$ac_tool_warned in
3712 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3713 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3714 ac_tool_warned=yes ;;
3722 if test -z "$CC"; then
3723 if test -n "$ac_tool_prefix"; then
3724 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3725 set dummy ${ac_tool_prefix}cc; ac_word=$2
3726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3727 $as_echo_n "checking for $ac_word... " >&6; }
3728 if test "${ac_cv_prog_CC+set}" = set; then :
3729 $as_echo_n "(cached) " >&6
3731 if test -n "$CC"; then
3732 ac_cv_prog_CC="$CC" # Let the user override the test.
3734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3738 test -z "$as_dir" && as_dir=.
3739 for ac_exec_ext in '' $ac_executable_extensions; do
3740 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3741 ac_cv_prog_CC="${ac_tool_prefix}cc"
3742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3752 if test -n "$CC"; then
3753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3754 $as_echo "$CC" >&6; }
3756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3757 $as_echo "no" >&6; }
3763 if test -z "$CC"; then
3764 # Extract the first word of "cc", so it can be a program name with args.
3765 set dummy cc; ac_word=$2
3766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3767 $as_echo_n "checking for $ac_word... " >&6; }
3768 if test "${ac_cv_prog_CC+set}" = set; then :
3769 $as_echo_n "(cached) " >&6
3771 if test -n "$CC"; then
3772 ac_cv_prog_CC="$CC" # Let the user override the test.
3775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3779 test -z "$as_dir" && as_dir=.
3780 for ac_exec_ext in '' $ac_executable_extensions; do
3781 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3782 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3783 ac_prog_rejected=yes
3787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3794 if test $ac_prog_rejected = yes; then
3795 # We found a bogon in the path, so make sure we never use it.
3796 set dummy $ac_cv_prog_CC
3798 if test $# != 0; then
3799 # We chose a different compiler from the bogus one.
3800 # However, it has the same basename, so the bogon will be chosen
3801 # first if we set CC to just the basename; use the full file name.
3803 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3809 if test -n "$CC"; then
3810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3811 $as_echo "$CC" >&6; }
3813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3814 $as_echo "no" >&6; }
3819 if test -z "$CC"; then
3820 if test -n "$ac_tool_prefix"; then
3821 for ac_prog in cl.exe
3823 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3824 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3826 $as_echo_n "checking for $ac_word... " >&6; }
3827 if test "${ac_cv_prog_CC+set}" = set; then :
3828 $as_echo_n "(cached) " >&6
3830 if test -n "$CC"; then
3831 ac_cv_prog_CC="$CC" # Let the user override the test.
3833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3837 test -z "$as_dir" && as_dir=.
3838 for ac_exec_ext in '' $ac_executable_extensions; do
3839 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3840 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3851 if test -n "$CC"; then
3852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3853 $as_echo "$CC" >&6; }
3855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3856 $as_echo "no" >&6; }
3860 test -n "$CC" && break
3863 if test -z "$CC"; then
3865 for ac_prog in cl.exe
3867 # Extract the first word of "$ac_prog", so it can be a program name with args.
3868 set dummy $ac_prog; ac_word=$2
3869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3870 $as_echo_n "checking for $ac_word... " >&6; }
3871 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3872 $as_echo_n "(cached) " >&6
3874 if test -n "$ac_ct_CC"; then
3875 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3881 test -z "$as_dir" && as_dir=.
3882 for ac_exec_ext in '' $ac_executable_extensions; do
3883 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3884 ac_cv_prog_ac_ct_CC="$ac_prog"
3885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3894 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3895 if test -n "$ac_ct_CC"; then
3896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3897 $as_echo "$ac_ct_CC" >&6; }
3899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3900 $as_echo "no" >&6; }
3904 test -n "$ac_ct_CC" && break
3907 if test "x$ac_ct_CC" = x; then
3910 case $cross_compiling:$ac_tool_warned in
3912 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3913 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3914 ac_tool_warned=yes ;;
3923 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3924 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3925 as_fn_error "no acceptable C compiler found in \$PATH
3926 See \`config.log' for more details." "$LINENO" 5; }
3928 # Provide some information about the compiler.
3929 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3932 for ac_option in --version -v -V -qversion; do
3933 { { ac_try="$ac_compiler $ac_option >&5"
3935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3936 *) ac_try_echo=$ac_try;;
3938 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3939 $as_echo "$ac_try_echo"; } >&5
3940 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3942 if test -s conftest.err; then
3944 ... rest of stderr output deleted ...
3945 10q' conftest.err >conftest.er1
3946 cat conftest.er1 >&5
3947 rm -f conftest.er1 conftest.err
3949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3950 test $ac_status = 0; }
3953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3954 /* end confdefs.h. */
3964 ac_clean_files_save=$ac_clean_files
3965 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3966 # Try to create an executable without -o first, disregard a.out.
3967 # It will help us diagnose broken compilers, and finding out an intuition
3969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3970 $as_echo_n "checking for C compiler default output file name... " >&6; }
3971 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3973 # The possible output files:
3974 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3977 for ac_file in $ac_files
3980 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3981 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3986 if { { ac_try="$ac_link_default"
3988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3989 *) ac_try_echo=$ac_try;;
3991 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3992 $as_echo "$ac_try_echo"; } >&5
3993 (eval "$ac_link_default") 2>&5
3995 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3996 test $ac_status = 0; }; then :
3997 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3998 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3999 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4000 # so that the user can short-circuit this test for compilers unknown to
4002 for ac_file in $ac_files ''
4004 test -f "$ac_file" || continue
4006 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4009 # We found the default executable, but exeext='' is most
4013 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4015 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4017 # We set ac_cv_exeext here because the later test for it is not
4018 # safe: cross compilers may not add the suffix if given an `-o'
4019 # argument, so we may need to know it at that point already.
4020 # Even if this section looks crufty: it has the advantage of
4027 test "$ac_cv_exeext" = no && ac_cv_exeext=
4032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4033 $as_echo "$ac_file" >&6; }
4034 if test -z "$ac_file"; then :
4035 $as_echo "$as_me: failed program was:" >&5
4036 sed 's/^/| /' conftest.$ac_ext >&5
4038 { { $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_set_status 77
4041 as_fn_error "C compiler cannot create executables
4042 See \`config.log' for more details." "$LINENO" 5; }; }
4044 ac_exeext=$ac_cv_exeext
4046 # Check that the compiler produces executables we can run. If not, either
4047 # the compiler is broken, or we cross compile.
4048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4049 $as_echo_n "checking whether the C compiler works... " >&6; }
4050 # If not cross compiling, check that we can run a simple program.
4051 if test "$cross_compiling" != yes; then
4052 if { ac_try='./$ac_file'
4053 { { case "(($ac_try" in
4054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4055 *) ac_try_echo=$ac_try;;
4057 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4058 $as_echo "$ac_try_echo"; } >&5
4059 (eval "$ac_try") 2>&5
4061 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4062 test $ac_status = 0; }; }; then
4065 if test "$cross_compiling" = maybe; then
4068 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4069 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4070 as_fn_error "cannot run C compiled programs.
4071 If you meant to cross compile, use \`--host'.
4072 See \`config.log' for more details." "$LINENO" 5; }
4076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4077 $as_echo "yes" >&6; }
4079 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4080 ac_clean_files=$ac_clean_files_save
4081 # Check that the compiler produces executables we can run. If not, either
4082 # the compiler is broken, or we cross compile.
4083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4084 $as_echo_n "checking whether we are cross compiling... " >&6; }
4085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4086 $as_echo "$cross_compiling" >&6; }
4088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4089 $as_echo_n "checking for suffix of executables... " >&6; }
4090 if { { ac_try="$ac_link"
4092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4093 *) ac_try_echo=$ac_try;;
4095 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4096 $as_echo "$ac_try_echo"; } >&5
4097 (eval "$ac_link") 2>&5
4099 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4100 test $ac_status = 0; }; then :
4101 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4102 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4103 # work properly (i.e., refer to `conftest.exe'), while it won't with
4105 for ac_file in conftest.exe conftest conftest.*; do
4106 test -f "$ac_file" || continue
4108 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4109 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4115 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4116 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4117 as_fn_error "cannot compute suffix of executables: cannot compile and link
4118 See \`config.log' for more details." "$LINENO" 5; }
4120 rm -f conftest$ac_cv_exeext
4121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4122 $as_echo "$ac_cv_exeext" >&6; }
4124 rm -f conftest.$ac_ext
4125 EXEEXT=$ac_cv_exeext
4127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4128 $as_echo_n "checking for suffix of object files... " >&6; }
4129 if test "${ac_cv_objext+set}" = set; then :
4130 $as_echo_n "(cached) " >&6
4132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4133 /* end confdefs.h. */
4143 rm -f conftest.o conftest.obj
4144 if { { ac_try="$ac_compile"
4146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4147 *) ac_try_echo=$ac_try;;
4149 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4150 $as_echo "$ac_try_echo"; } >&5
4151 (eval "$ac_compile") 2>&5
4153 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4154 test $ac_status = 0; }; then :
4155 for ac_file in conftest.o conftest.obj conftest.*; do
4156 test -f "$ac_file" || continue;
4158 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4159 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4164 $as_echo "$as_me: failed program was:" >&5
4165 sed 's/^/| /' conftest.$ac_ext >&5
4167 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4168 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4169 as_fn_error "cannot compute suffix of object files: cannot compile
4170 See \`config.log' for more details." "$LINENO" 5; }
4172 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4175 $as_echo "$ac_cv_objext" >&6; }
4176 OBJEXT=$ac_cv_objext
4178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4179 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4180 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4181 $as_echo_n "(cached) " >&6
4183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4184 /* end confdefs.h. */
4197 if ac_fn_c_try_compile "$LINENO"; then :
4202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4203 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4207 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4208 if test $ac_compiler_gnu = yes; then
4213 ac_test_CFLAGS=${CFLAGS+set}
4214 ac_save_CFLAGS=$CFLAGS
4215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4216 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4217 if test "${ac_cv_prog_cc_g+set}" = set; then :
4218 $as_echo_n "(cached) " >&6
4220 ac_save_c_werror_flag=$ac_c_werror_flag
4221 ac_c_werror_flag=yes
4224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4225 /* end confdefs.h. */
4235 if ac_fn_c_try_compile "$LINENO"; then :
4239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4240 /* end confdefs.h. */
4250 if ac_fn_c_try_compile "$LINENO"; then :
4253 ac_c_werror_flag=$ac_save_c_werror_flag
4255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4256 /* end confdefs.h. */
4266 if ac_fn_c_try_compile "$LINENO"; then :
4269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4274 ac_c_werror_flag=$ac_save_c_werror_flag
4276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4277 $as_echo "$ac_cv_prog_cc_g" >&6; }
4278 if test "$ac_test_CFLAGS" = set; then
4279 CFLAGS=$ac_save_CFLAGS
4280 elif test $ac_cv_prog_cc_g = yes; then
4281 if test "$GCC" = yes; then
4287 if test "$GCC" = yes; then
4293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4294 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4295 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4296 $as_echo_n "(cached) " >&6
4298 ac_cv_prog_cc_c89=no
4300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4301 /* end confdefs.h. */
4304 #include <sys/types.h>
4305 #include <sys/stat.h>
4306 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4307 struct buf { int x; };
4308 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4309 static char *e (p, i)
4315 static char *f (char * (*g) (char **, int), char **p, ...)
4320 s = g (p, va_arg (v,int));
4325 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4326 function prototypes and stuff, but not '\xHH' hex character constants.
4327 These don't provoke an error unfortunately, instead are silently treated
4328 as 'x'. The following induces an error, until -std is added to get
4329 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4330 array size at least. It's necessary to write '\x00'==0 to get something
4331 that's true only with -std. */
4332 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4334 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4335 inside strings and character constants. */
4337 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4339 int test (int i, double x);
4340 struct s1 {int (*f) (int a);};
4341 struct s2 {int (*f) (double a);};
4342 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4348 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4353 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4354 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4356 CC="$ac_save_CC $ac_arg"
4357 if ac_fn_c_try_compile "$LINENO"; then :
4358 ac_cv_prog_cc_c89=$ac_arg
4360 rm -f core conftest.err conftest.$ac_objext
4361 test "x$ac_cv_prog_cc_c89" != "xno" && break
4363 rm -f conftest.$ac_ext
4368 case "x$ac_cv_prog_cc_c89" in
4370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4371 $as_echo "none needed" >&6; } ;;
4373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4374 $as_echo "unsupported" >&6; } ;;
4376 CC="$CC $ac_cv_prog_cc_c89"
4377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4378 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4380 if test "x$ac_cv_prog_cc_c89" != xno; then :
4385 ac_cpp='$CPP $CPPFLAGS'
4386 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4387 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4388 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4389 DEPDIR="${am__leading_dot}deps"
4391 ac_config_commands="$ac_config_commands depfiles"
4394 am_make=${MAKE-make}
4395 cat > confinc << 'END'
4397 @echo this is the am__doit target
4400 # If we don't find an include directive, just comment out the code.
4401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4402 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4406 # First try GNU make style include.
4407 echo "include confinc" > confmf
4408 # Ignore all kinds of additional output from `make'.
4409 case `$am_make -s -f confmf 2> /dev/null` in #(
4410 *the\ am__doit\ target*)
4416 # Now try BSD make style include.
4417 if test "$am__include" = "#"; then
4418 echo '.include "confinc"' > confmf
4419 case `$am_make -s -f confmf 2> /dev/null` in #(
4420 *the\ am__doit\ target*)
4421 am__include=.include
4429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4430 $as_echo "$_am_result" >&6; }
4431 rm -f confinc confmf
4433 # Check whether --enable-dependency-tracking was given.
4434 if test "${enable_dependency_tracking+set}" = set; then :
4435 enableval=$enable_dependency_tracking;
4438 if test "x$enable_dependency_tracking" != xno; then
4439 am_depcomp="$ac_aux_dir/depcomp"
4442 if test "x$enable_dependency_tracking" != xno; then
4452 depcc="$CC" am_compiler_list=
4454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4455 $as_echo_n "checking dependency style of $depcc... " >&6; }
4456 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4457 $as_echo_n "(cached) " >&6
4459 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4460 # We make a subdir and do the tests there. Otherwise we can end up
4461 # making bogus files that we don't know about and never remove. For
4462 # instance it was reported that on HP-UX the gcc test will end up
4463 # making a dummy file named `D' -- because `-MD' means `put the output
4466 # Copy depcomp to subdir because otherwise we won't find it if we're
4467 # using a relative directory.
4468 cp "$am_depcomp" conftest.dir
4470 # We will build objects and dependencies in a subdirectory because
4471 # it helps to detect inapplicable dependency modes. For instance
4472 # both Tru64's cc and ICC support -MD to output dependencies as a
4473 # side effect of compilation, but ICC will put the dependencies in
4474 # the current directory while Tru64 will put them in the object
4478 am_cv_CC_dependencies_compiler_type=none
4479 if test "$am_compiler_list" = ""; then
4480 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4483 case " $depcc " in #(
4484 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4487 for depmode in $am_compiler_list; do
4488 # Setup a source with many dependencies, because some compilers
4489 # like to wrap large dependency lists on column 80 (with \), and
4490 # we should not choose a depcomp mode which is confused by this.
4492 # We need to recreate these files for each test, as the compiler may
4493 # overwrite some of them when testing with obscure command lines.
4494 # This happens at least with the AIX C compiler.
4496 for i in 1 2 3 4 5 6; do
4497 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4498 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4499 # Solaris 8's {/usr,}/bin/sh.
4500 touch sub/conftst$i.h
4502 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4504 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4505 # mode. It turns out that the SunPro C++ compiler does not properly
4506 # handle `-M -o', and we need to detect this. Also, some Intel
4507 # versions had trouble with output in subdirs
4508 am__obj=sub/conftest.${OBJEXT-o}
4509 am__minus_obj="-o $am__obj"
4512 # This depmode causes a compiler race in universal mode.
4513 test "$am__universal" = false || continue
4516 # after this tag, mechanisms are not by side-effect, so they'll
4517 # only be used when explicitly requested
4518 if test "x$enable_dependency_tracking" = xyes; then
4524 msvisualcpp | msvcmsys)
4525 # This compiler won't grok `-c -o', but also, the minuso test has
4526 # not run yet. These depmodes are late enough in the game, and
4527 # so weak that their functioning should not be impacted.
4528 am__obj=conftest.${OBJEXT-o}
4533 if depmode=$depmode \
4534 source=sub/conftest.c object=$am__obj \
4535 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4536 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4537 >/dev/null 2>conftest.err &&
4538 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4539 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4540 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4541 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4542 # icc doesn't choke on unknown options, it will just issue warnings
4543 # or remarks (even with -Werror). So we grep stderr for any message
4544 # that says an option was ignored or not supported.
4545 # When given -MP, icc 7.0 and 7.1 complain thusly:
4546 # icc: Command line warning: ignoring option '-M'; no argument required
4547 # The diagnosis changed in icc 8.0:
4548 # icc: Command line remark: option '-MP' not supported
4549 if (grep 'ignoring option' conftest.err ||
4550 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4551 am_cv_CC_dependencies_compiler_type=$depmode
4560 am_cv_CC_dependencies_compiler_type=none
4564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4565 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4566 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4569 test "x$enable_dependency_tracking" != xno \
4570 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4572 am__fastdepCC_FALSE='#'
4574 am__fastdepCC_TRUE='#'
4575 am__fastdepCC_FALSE=
4580 ac_cpp='$CXXCPP $CPPFLAGS'
4581 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4582 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4583 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4584 if test -z "$CXX"; then
4585 if test -n "$CCC"; then
4588 if test -n "$ac_tool_prefix"; then
4589 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4591 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4592 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4594 $as_echo_n "checking for $ac_word... " >&6; }
4595 if test "${ac_cv_prog_CXX+set}" = set; then :
4596 $as_echo_n "(cached) " >&6
4598 if test -n "$CXX"; then
4599 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4605 test -z "$as_dir" && as_dir=.
4606 for ac_exec_ext in '' $ac_executable_extensions; do
4607 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4608 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4619 if test -n "$CXX"; then
4620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4621 $as_echo "$CXX" >&6; }
4623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4624 $as_echo "no" >&6; }
4628 test -n "$CXX" && break
4631 if test -z "$CXX"; then
4633 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4635 # Extract the first word of "$ac_prog", so it can be a program name with args.
4636 set dummy $ac_prog; ac_word=$2
4637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4638 $as_echo_n "checking for $ac_word... " >&6; }
4639 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4640 $as_echo_n "(cached) " >&6
4642 if test -n "$ac_ct_CXX"; then
4643 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4649 test -z "$as_dir" && as_dir=.
4650 for ac_exec_ext in '' $ac_executable_extensions; do
4651 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4652 ac_cv_prog_ac_ct_CXX="$ac_prog"
4653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4662 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4663 if test -n "$ac_ct_CXX"; then
4664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4665 $as_echo "$ac_ct_CXX" >&6; }
4667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4668 $as_echo "no" >&6; }
4672 test -n "$ac_ct_CXX" && break
4675 if test "x$ac_ct_CXX" = x; then
4678 case $cross_compiling:$ac_tool_warned in
4680 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4681 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4682 ac_tool_warned=yes ;;
4690 # Provide some information about the compiler.
4691 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4694 for ac_option in --version -v -V -qversion; do
4695 { { ac_try="$ac_compiler $ac_option >&5"
4697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4698 *) ac_try_echo=$ac_try;;
4700 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4701 $as_echo "$ac_try_echo"; } >&5
4702 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4704 if test -s conftest.err; then
4706 ... rest of stderr output deleted ...
4707 10q' conftest.err >conftest.er1
4708 cat conftest.er1 >&5
4709 rm -f conftest.er1 conftest.err
4711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4712 test $ac_status = 0; }
4715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4716 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4717 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4718 $as_echo_n "(cached) " >&6
4720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4721 /* end confdefs.h. */
4734 if ac_fn_cxx_try_compile "$LINENO"; then :
4739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4740 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4744 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4745 if test $ac_compiler_gnu = yes; then
4750 ac_test_CXXFLAGS=${CXXFLAGS+set}
4751 ac_save_CXXFLAGS=$CXXFLAGS
4752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4753 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4754 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4755 $as_echo_n "(cached) " >&6
4757 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4758 ac_cxx_werror_flag=yes
4761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4762 /* end confdefs.h. */
4772 if ac_fn_cxx_try_compile "$LINENO"; then :
4773 ac_cv_prog_cxx_g=yes
4776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4777 /* end confdefs.h. */
4787 if ac_fn_cxx_try_compile "$LINENO"; then :
4790 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4793 /* end confdefs.h. */
4803 if ac_fn_cxx_try_compile "$LINENO"; then :
4804 ac_cv_prog_cxx_g=yes
4806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4811 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4814 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4815 if test "$ac_test_CXXFLAGS" = set; then
4816 CXXFLAGS=$ac_save_CXXFLAGS
4817 elif test $ac_cv_prog_cxx_g = yes; then
4818 if test "$GXX" = yes; then
4824 if test "$GXX" = yes; then
4831 ac_cpp='$CPP $CPPFLAGS'
4832 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4833 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4834 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4836 depcc="$CXX" am_compiler_list=
4838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4839 $as_echo_n "checking dependency style of $depcc... " >&6; }
4840 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
4841 $as_echo_n "(cached) " >&6
4843 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4844 # We make a subdir and do the tests there. Otherwise we can end up
4845 # making bogus files that we don't know about and never remove. For
4846 # instance it was reported that on HP-UX the gcc test will end up
4847 # making a dummy file named `D' -- because `-MD' means `put the output
4850 # Copy depcomp to subdir because otherwise we won't find it if we're
4851 # using a relative directory.
4852 cp "$am_depcomp" conftest.dir
4854 # We will build objects and dependencies in a subdirectory because
4855 # it helps to detect inapplicable dependency modes. For instance
4856 # both Tru64's cc and ICC support -MD to output dependencies as a
4857 # side effect of compilation, but ICC will put the dependencies in
4858 # the current directory while Tru64 will put them in the object
4862 am_cv_CXX_dependencies_compiler_type=none
4863 if test "$am_compiler_list" = ""; then
4864 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4867 case " $depcc " in #(
4868 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4871 for depmode in $am_compiler_list; do
4872 # Setup a source with many dependencies, because some compilers
4873 # like to wrap large dependency lists on column 80 (with \), and
4874 # we should not choose a depcomp mode which is confused by this.
4876 # We need to recreate these files for each test, as the compiler may
4877 # overwrite some of them when testing with obscure command lines.
4878 # This happens at least with the AIX C compiler.
4880 for i in 1 2 3 4 5 6; do
4881 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4882 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4883 # Solaris 8's {/usr,}/bin/sh.
4884 touch sub/conftst$i.h
4886 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4888 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4889 # mode. It turns out that the SunPro C++ compiler does not properly
4890 # handle `-M -o', and we need to detect this. Also, some Intel
4891 # versions had trouble with output in subdirs
4892 am__obj=sub/conftest.${OBJEXT-o}
4893 am__minus_obj="-o $am__obj"
4896 # This depmode causes a compiler race in universal mode.
4897 test "$am__universal" = false || continue
4900 # after this tag, mechanisms are not by side-effect, so they'll
4901 # only be used when explicitly requested
4902 if test "x$enable_dependency_tracking" = xyes; then
4908 msvisualcpp | msvcmsys)
4909 # This compiler won't grok `-c -o', but also, the minuso test has
4910 # not run yet. These depmodes are late enough in the game, and
4911 # so weak that their functioning should not be impacted.
4912 am__obj=conftest.${OBJEXT-o}
4917 if depmode=$depmode \
4918 source=sub/conftest.c object=$am__obj \
4919 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4920 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4921 >/dev/null 2>conftest.err &&
4922 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4923 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4924 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4925 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4926 # icc doesn't choke on unknown options, it will just issue warnings
4927 # or remarks (even with -Werror). So we grep stderr for any message
4928 # that says an option was ignored or not supported.
4929 # When given -MP, icc 7.0 and 7.1 complain thusly:
4930 # icc: Command line warning: ignoring option '-M'; no argument required
4931 # The diagnosis changed in icc 8.0:
4932 # icc: Command line remark: option '-MP' not supported
4933 if (grep 'ignoring option' conftest.err ||
4934 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4935 am_cv_CXX_dependencies_compiler_type=$depmode
4944 am_cv_CXX_dependencies_compiler_type=none
4948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4949 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4950 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4953 test "x$enable_dependency_tracking" != xno \
4954 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4955 am__fastdepCXX_TRUE=
4956 am__fastdepCXX_FALSE='#'
4958 am__fastdepCXX_TRUE='#'
4959 am__fastdepCXX_FALSE=
4963 for ac_prog in 'bison -y' byacc
4965 # Extract the first word of "$ac_prog", so it can be a program name with args.
4966 set dummy $ac_prog; ac_word=$2
4967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4968 $as_echo_n "checking for $ac_word... " >&6; }
4969 if test "${ac_cv_prog_YACC+set}" = set; then :
4970 $as_echo_n "(cached) " >&6
4972 if test -n "$YACC"; then
4973 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4979 test -z "$as_dir" && as_dir=.
4980 for ac_exec_ext in '' $ac_executable_extensions; do
4981 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4982 ac_cv_prog_YACC="$ac_prog"
4983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4992 YACC=$ac_cv_prog_YACC
4993 if test -n "$YACC"; then
4994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
4995 $as_echo "$YACC" >&6; }
4997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4998 $as_echo "no" >&6; }
5002 test -n "$YACC" && break
5004 test -n "$YACC" || YACC="yacc"
5006 if test -n "$ac_tool_prefix"; then
5007 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5008 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5010 $as_echo_n "checking for $ac_word... " >&6; }
5011 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5012 $as_echo_n "(cached) " >&6
5014 if test -n "$RANLIB"; then
5015 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5021 test -z "$as_dir" && as_dir=.
5022 for ac_exec_ext in '' $ac_executable_extensions; do
5023 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5024 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5034 RANLIB=$ac_cv_prog_RANLIB
5035 if test -n "$RANLIB"; then
5036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5037 $as_echo "$RANLIB" >&6; }
5039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5040 $as_echo "no" >&6; }
5045 if test -z "$ac_cv_prog_RANLIB"; then
5046 ac_ct_RANLIB=$RANLIB
5047 # Extract the first word of "ranlib", so it can be a program name with args.
5048 set dummy ranlib; ac_word=$2
5049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5050 $as_echo_n "checking for $ac_word... " >&6; }
5051 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5052 $as_echo_n "(cached) " >&6
5054 if test -n "$ac_ct_RANLIB"; then
5055 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5061 test -z "$as_dir" && as_dir=.
5062 for ac_exec_ext in '' $ac_executable_extensions; do
5063 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5064 ac_cv_prog_ac_ct_RANLIB="ranlib"
5065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5074 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5075 if test -n "$ac_ct_RANLIB"; then
5076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5077 $as_echo "$ac_ct_RANLIB" >&6; }
5079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5080 $as_echo "no" >&6; }
5083 if test "x$ac_ct_RANLIB" = x; then
5086 case $cross_compiling:$ac_tool_warned in
5088 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5089 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5090 ac_tool_warned=yes ;;
5092 RANLIB=$ac_ct_RANLIB
5095 RANLIB="$ac_cv_prog_RANLIB"
5099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5100 $as_echo_n "checking whether ln -s works... " >&6; }
5102 if test "$LN_S" = "ln -s"; then
5103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5104 $as_echo "yes" >&6; }
5106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5107 $as_echo "no, using $LN_S" >&6; }
5113 ac_cpp='$CPP $CPPFLAGS'
5114 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5115 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5116 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5118 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5119 # On Suns, sometimes $CPP names a directory.
5120 if test -n "$CPP" && test -d "$CPP"; then
5123 if test -z "$CPP"; then
5124 if test "${ac_cv_prog_CPP+set}" = set; then :
5125 $as_echo_n "(cached) " >&6
5127 # Double quotes because CPP needs to be expanded
5128 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5131 for ac_c_preproc_warn_flag in '' yes
5133 # Use a header file that comes with gcc, so configuring glibc
5134 # with a fresh cross-compiler works.
5135 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5136 # <limits.h> exists even on freestanding compilers.
5137 # On the NeXT, cc -E runs the code through the compiler's parser,
5138 # not just through cpp. "Syntax error" is here to catch this case.
5139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5140 /* end confdefs.h. */
5142 # include <limits.h>
5144 # include <assert.h>
5148 if ac_fn_c_try_cpp "$LINENO"; then :
5151 # Broken: fails on valid input.
5154 rm -f conftest.err conftest.$ac_ext
5156 # OK, works on sane cases. Now check whether nonexistent headers
5157 # can be detected and how.
5158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5159 /* end confdefs.h. */
5160 #include <ac_nonexistent.h>
5162 if ac_fn_c_try_cpp "$LINENO"; then :
5163 # Broken: success on invalid input.
5166 # Passes both tests.
5170 rm -f conftest.err conftest.$ac_ext
5173 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5174 rm -f conftest.err conftest.$ac_ext
5175 if $ac_preproc_ok; then :
5187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5188 $as_echo "$CPP" >&6; }
5190 for ac_c_preproc_warn_flag in '' yes
5192 # Use a header file that comes with gcc, so configuring glibc
5193 # with a fresh cross-compiler works.
5194 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5195 # <limits.h> exists even on freestanding compilers.
5196 # On the NeXT, cc -E runs the code through the compiler's parser,
5197 # not just through cpp. "Syntax error" is here to catch this case.
5198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5199 /* end confdefs.h. */
5201 # include <limits.h>
5203 # include <assert.h>
5207 if ac_fn_c_try_cpp "$LINENO"; then :
5210 # Broken: fails on valid input.
5213 rm -f conftest.err conftest.$ac_ext
5215 # OK, works on sane cases. Now check whether nonexistent headers
5216 # can be detected and how.
5217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5218 /* end confdefs.h. */
5219 #include <ac_nonexistent.h>
5221 if ac_fn_c_try_cpp "$LINENO"; then :
5222 # Broken: success on invalid input.
5225 # Passes both tests.
5229 rm -f conftest.err conftest.$ac_ext
5232 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5233 rm -f conftest.err conftest.$ac_ext
5234 if $ac_preproc_ok; then :
5237 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5238 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5239 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5240 See \`config.log' for more details." "$LINENO" 5; }
5244 ac_cpp='$CPP $CPPFLAGS'
5245 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5246 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5247 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5251 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5252 if test "${ac_cv_path_GREP+set}" = set; then :
5253 $as_echo_n "(cached) " >&6
5255 if test -z "$GREP"; then
5256 ac_path_GREP_found=false
5257 # Loop through the user's path and test for each of PROGNAME-LIST
5258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5259 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5262 test -z "$as_dir" && as_dir=.
5263 for ac_prog in grep ggrep; do
5264 for ac_exec_ext in '' $ac_executable_extensions; do
5265 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5266 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5267 # Check for GNU ac_path_GREP and select it if it is found.
5268 # Check for GNU $ac_path_GREP
5269 case `"$ac_path_GREP" --version 2>&1` in
5271 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5274 $as_echo_n 0123456789 >"conftest.in"
5277 cat "conftest.in" "conftest.in" >"conftest.tmp"
5278 mv "conftest.tmp" "conftest.in"
5279 cp "conftest.in" "conftest.nl"
5280 $as_echo 'GREP' >> "conftest.nl"
5281 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5282 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5283 as_fn_arith $ac_count + 1 && ac_count=$as_val
5284 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5285 # Best one so far, save it but keep looking for a better one
5286 ac_cv_path_GREP="$ac_path_GREP"
5287 ac_path_GREP_max=$ac_count
5289 # 10*(2^10) chars as input seems more than enough
5290 test $ac_count -gt 10 && break
5292 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5295 $ac_path_GREP_found && break 3
5300 if test -z "$ac_cv_path_GREP"; then
5301 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5304 ac_cv_path_GREP=$GREP
5308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5309 $as_echo "$ac_cv_path_GREP" >&6; }
5310 GREP="$ac_cv_path_GREP"
5313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5314 $as_echo_n "checking for egrep... " >&6; }
5315 if test "${ac_cv_path_EGREP+set}" = set; then :
5316 $as_echo_n "(cached) " >&6
5318 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5319 then ac_cv_path_EGREP="$GREP -E"
5321 if test -z "$EGREP"; then
5322 ac_path_EGREP_found=false
5323 # Loop through the user's path and test for each of PROGNAME-LIST
5324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5325 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5328 test -z "$as_dir" && as_dir=.
5329 for ac_prog in egrep; do
5330 for ac_exec_ext in '' $ac_executable_extensions; do
5331 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5332 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5333 # Check for GNU ac_path_EGREP and select it if it is found.
5334 # Check for GNU $ac_path_EGREP
5335 case `"$ac_path_EGREP" --version 2>&1` in
5337 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5340 $as_echo_n 0123456789 >"conftest.in"
5343 cat "conftest.in" "conftest.in" >"conftest.tmp"
5344 mv "conftest.tmp" "conftest.in"
5345 cp "conftest.in" "conftest.nl"
5346 $as_echo 'EGREP' >> "conftest.nl"
5347 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5348 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5349 as_fn_arith $ac_count + 1 && ac_count=$as_val
5350 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5351 # Best one so far, save it but keep looking for a better one
5352 ac_cv_path_EGREP="$ac_path_EGREP"
5353 ac_path_EGREP_max=$ac_count
5355 # 10*(2^10) chars as input seems more than enough
5356 test $ac_count -gt 10 && break
5358 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5361 $ac_path_EGREP_found && break 3
5366 if test -z "$ac_cv_path_EGREP"; then
5367 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5370 ac_cv_path_EGREP=$EGREP
5375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5376 $as_echo "$ac_cv_path_EGREP" >&6; }
5377 EGREP="$ac_cv_path_EGREP"
5380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5381 $as_echo_n "checking for ANSI C header files... " >&6; }
5382 if test "${ac_cv_header_stdc+set}" = set; then :
5383 $as_echo_n "(cached) " >&6
5385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5386 /* end confdefs.h. */
5400 if ac_fn_c_try_compile "$LINENO"; then :
5401 ac_cv_header_stdc=yes
5403 ac_cv_header_stdc=no
5405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5407 if test $ac_cv_header_stdc = yes; then
5408 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5410 /* end confdefs.h. */
5414 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5415 $EGREP "memchr" >/dev/null 2>&1; then :
5418 ac_cv_header_stdc=no
5424 if test $ac_cv_header_stdc = yes; then
5425 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5427 /* end confdefs.h. */
5431 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5432 $EGREP "free" >/dev/null 2>&1; then :
5435 ac_cv_header_stdc=no
5441 if test $ac_cv_header_stdc = yes; then
5442 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5443 if test "$cross_compiling" = yes; then :
5446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5447 /* end confdefs.h. */
5450 #if ((' ' & 0x0FF) == 0x020)
5451 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5452 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5454 # define ISLOWER(c) \
5455 (('a' <= (c) && (c) <= 'i') \
5456 || ('j' <= (c) && (c) <= 'r') \
5457 || ('s' <= (c) && (c) <= 'z'))
5458 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5461 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5466 for (i = 0; i < 256; i++)
5467 if (XOR (islower (i), ISLOWER (i))
5468 || toupper (i) != TOUPPER (i))
5473 if ac_fn_c_try_run "$LINENO"; then :
5476 ac_cv_header_stdc=no
5478 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5479 conftest.$ac_objext conftest.beam conftest.$ac_ext
5484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5485 $as_echo "$ac_cv_header_stdc" >&6; }
5486 if test $ac_cv_header_stdc = yes; then
5488 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5492 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5493 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5494 inttypes.h stdint.h unistd.h
5496 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5497 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5499 eval as_val=\$$as_ac_Header
5500 if test "x$as_val" = x""yes; then :
5501 cat >>confdefs.h <<_ACEOF
5502 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5511 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5512 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5519 if test "$MINIX" = yes; then
5521 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5524 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5527 $as_echo "#define _MINIX 1" >>confdefs.h
5532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5533 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5534 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5535 $as_echo_n "(cached) " >&6
5537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5538 /* end confdefs.h. */
5540 # define __EXTENSIONS__ 1
5541 $ac_includes_default
5550 if ac_fn_c_try_compile "$LINENO"; then :
5551 ac_cv_safe_to_define___extensions__=yes
5553 ac_cv_safe_to_define___extensions__=no
5555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5558 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5559 test $ac_cv_safe_to_define___extensions__ = yes &&
5560 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5562 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5564 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5566 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5568 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5573 # If we haven't got the data from the intl directory,
5574 # assume NLS is disabled.
5583 if test -f ../intl/config.intl; then
5584 . ../intl/config.intl
5586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
5587 $as_echo_n "checking whether NLS is requested... " >&6; }
5588 if test x"$USE_NLS" != xyes; then
5589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5590 $as_echo "no" >&6; }
5592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5593 $as_echo "yes" >&6; }
5595 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
5598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
5599 $as_echo_n "checking for catalogs to be installed... " >&6; }
5600 # Look for .po and .gmo files in the source directory.
5603 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
5604 # If there aren't any .gmo files the shell will give us the
5605 # literal string "../path/to/srcdir/po/*.gmo" which has to be
5607 case "$cat" in *\**)
5610 # The quadruple backslash is collapsed to a double backslash
5611 # by the backticks, then collapsed again by the double quotes,
5612 # leaving us with one backslash in the sed expression (right
5613 # before the dot that mustn't act as a wildcard).
5614 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
5615 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
5616 # The user is allowed to set LINGUAS to a list of languages to
5617 # install catalogs for. If it's empty that means "all of them."
5618 if test "x$LINGUAS" = x; then
5619 CATALOGS="$CATALOGS $cat"
5620 XLINGUAS="$XLINGUAS $lang"
5622 case "$LINGUAS" in *$lang*)
5623 CATALOGS="$CATALOGS $cat"
5624 XLINGUAS="$XLINGUAS $lang"
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
5631 $as_echo "$LINGUAS" >&6; }
5645 if test -n "$ac_aux_dir"; then
5646 case "$ac_aux_dir" in
5647 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
5648 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
5651 if test -z "$MKINSTALLDIRS"; then
5652 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
5658 $as_echo_n "checking whether NLS is requested... " >&6; }
5659 # Check whether --enable-nls was given.
5660 if test "${enable_nls+set}" = set; then :
5661 enableval=$enable_nls; USE_NLS=$enableval
5666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
5667 $as_echo "$USE_NLS" >&6; }
5674 # Prepare PATH_SEPARATOR.
5675 # The user is always right.
5676 if test "${PATH_SEPARATOR+set}" != set; then
5677 echo "#! /bin/sh" >conf$$.sh
5678 echo "exit 0" >>conf$$.sh
5680 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5688 # Find out how to test for executable files. Don't use a zero-byte file,
5689 # as systems may use methods other than mode bits to determine executability.
5690 cat >conf$$.file <<_ASEOF
5694 chmod +x conf$$.file
5695 if test -x conf$$.file >/dev/null 2>&1; then
5696 ac_executable_p="test -x"
5698 ac_executable_p="test -f"
5702 # Extract the first word of "msgfmt", so it can be a program name with args.
5703 set dummy msgfmt; ac_word=$2
5704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5705 $as_echo_n "checking for $ac_word... " >&6; }
5706 if test "${ac_cv_path_MSGFMT+set}" = set; then :
5707 $as_echo_n "(cached) " >&6
5711 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5714 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5715 for ac_dir in $PATH; do
5717 test -z "$ac_dir" && ac_dir=.
5718 for ac_exec_ext in '' $ac_executable_extensions; do
5719 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5720 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
5721 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5722 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
5729 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5733 MSGFMT="$ac_cv_path_MSGFMT"
5734 if test "$MSGFMT" != ":"; then
5735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
5736 $as_echo "$MSGFMT" >&6; }
5738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5739 $as_echo "no" >&6; }
5742 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5743 set dummy gmsgfmt; ac_word=$2
5744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5745 $as_echo_n "checking for $ac_word... " >&6; }
5746 if test "${ac_cv_path_GMSGFMT+set}" = set; then :
5747 $as_echo_n "(cached) " >&6
5751 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5758 test -z "$as_dir" && as_dir=.
5759 for ac_exec_ext in '' $ac_executable_extensions; do
5760 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5761 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5769 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5773 GMSGFMT=$ac_cv_path_GMSGFMT
5774 if test -n "$GMSGFMT"; then
5775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
5776 $as_echo "$GMSGFMT" >&6; }
5778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5779 $as_echo "no" >&6; }
5785 # Prepare PATH_SEPARATOR.
5786 # The user is always right.
5787 if test "${PATH_SEPARATOR+set}" != set; then
5788 echo "#! /bin/sh" >conf$$.sh
5789 echo "exit 0" >>conf$$.sh
5791 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5799 # Find out how to test for executable files. Don't use a zero-byte file,
5800 # as systems may use methods other than mode bits to determine executability.
5801 cat >conf$$.file <<_ASEOF
5805 chmod +x conf$$.file
5806 if test -x conf$$.file >/dev/null 2>&1; then
5807 ac_executable_p="test -x"
5809 ac_executable_p="test -f"
5813 # Extract the first word of "xgettext", so it can be a program name with args.
5814 set dummy xgettext; ac_word=$2
5815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5816 $as_echo_n "checking for $ac_word... " >&6; }
5817 if test "${ac_cv_path_XGETTEXT+set}" = set; then :
5818 $as_echo_n "(cached) " >&6
5822 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5825 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5826 for ac_dir in $PATH; do
5828 test -z "$ac_dir" && ac_dir=.
5829 for ac_exec_ext in '' $ac_executable_extensions; do
5830 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5831 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
5832 (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
5833 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5840 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5844 XGETTEXT="$ac_cv_path_XGETTEXT"
5845 if test "$XGETTEXT" != ":"; then
5846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
5847 $as_echo "$XGETTEXT" >&6; }
5849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5850 $as_echo "no" >&6; }
5856 # Prepare PATH_SEPARATOR.
5857 # The user is always right.
5858 if test "${PATH_SEPARATOR+set}" != set; then
5859 echo "#! /bin/sh" >conf$$.sh
5860 echo "exit 0" >>conf$$.sh
5862 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5870 # Find out how to test for executable files. Don't use a zero-byte file,
5871 # as systems may use methods other than mode bits to determine executability.
5872 cat >conf$$.file <<_ASEOF
5876 chmod +x conf$$.file
5877 if test -x conf$$.file >/dev/null 2>&1; then
5878 ac_executable_p="test -x"
5880 ac_executable_p="test -f"
5884 # Extract the first word of "msgmerge", so it can be a program name with args.
5885 set dummy msgmerge; ac_word=$2
5886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5887 $as_echo_n "checking for $ac_word... " >&6; }
5888 if test "${ac_cv_path_MSGMERGE+set}" = set; then :
5889 $as_echo_n "(cached) " >&6
5893 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
5896 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5897 for ac_dir in $PATH; do
5899 test -z "$ac_dir" && ac_dir=.
5900 for ac_exec_ext in '' $ac_executable_extensions; do
5901 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5902 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
5903 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
5910 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
5914 MSGMERGE="$ac_cv_path_MSGMERGE"
5915 if test "$MSGMERGE" != ":"; then
5916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
5917 $as_echo "$MSGMERGE" >&6; }
5919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5920 $as_echo "no" >&6; }
5924 if test "$GMSGFMT" != ":"; then
5925 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
5926 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5929 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
5930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
5931 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
5936 if test "$XGETTEXT" != ":"; then
5937 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
5938 (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
5941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
5942 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
5948 ac_config_commands="$ac_config_commands default-1"
5952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
5953 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
5954 if test "${ac_cv_c_bigendian+set}" = set; then :
5955 $as_echo_n "(cached) " >&6
5957 ac_cv_c_bigendian=unknown
5958 # See if we're dealing with a universal compiler.
5959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5960 /* end confdefs.h. */
5961 #ifndef __APPLE_CC__
5962 not a universal capable compiler
5967 if ac_fn_c_try_compile "$LINENO"; then :
5969 # Check for potential -arch flags. It is not universal unless
5970 # there are at least two -arch flags with different values.
5973 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
5974 if test -n "$ac_prev"; then
5976 i?86 | x86_64 | ppc | ppc64)
5977 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
5980 ac_cv_c_bigendian=universal
5986 elif test "x$ac_word" = "x-arch"; then
5991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5992 if test $ac_cv_c_bigendian = unknown; then
5993 # See if sys/param.h defines the BYTE_ORDER macro.
5994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5995 /* end confdefs.h. */
5996 #include <sys/types.h>
5997 #include <sys/param.h>
6002 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
6003 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
6012 if ac_fn_c_try_compile "$LINENO"; then :
6013 # It does; now see whether it defined to BIG_ENDIAN or not.
6014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6015 /* end confdefs.h. */
6016 #include <sys/types.h>
6017 #include <sys/param.h>
6022 #if BYTE_ORDER != BIG_ENDIAN
6030 if ac_fn_c_try_compile "$LINENO"; then :
6031 ac_cv_c_bigendian=yes
6033 ac_cv_c_bigendian=no
6035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6039 if test $ac_cv_c_bigendian = unknown; then
6040 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
6041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6042 /* end confdefs.h. */
6048 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
6056 if ac_fn_c_try_compile "$LINENO"; then :
6057 # It does; now see whether it defined to _BIG_ENDIAN or not.
6058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6059 /* end confdefs.h. */
6073 if ac_fn_c_try_compile "$LINENO"; then :
6074 ac_cv_c_bigendian=yes
6076 ac_cv_c_bigendian=no
6078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6082 if test $ac_cv_c_bigendian = unknown; then
6083 # Compile a test program.
6084 if test "$cross_compiling" = yes; then :
6085 # Try to guess by grepping values from an object file.
6086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6087 /* end confdefs.h. */
6088 short int ascii_mm[] =
6089 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
6090 short int ascii_ii[] =
6091 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
6092 int use_ascii (int i) {
6093 return ascii_mm[i] + ascii_ii[i];
6095 short int ebcdic_ii[] =
6096 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
6097 short int ebcdic_mm[] =
6098 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
6099 int use_ebcdic (int i) {
6100 return ebcdic_mm[i] + ebcdic_ii[i];
6107 return use_ascii (foo) == use_ebcdic (foo);
6112 if ac_fn_c_try_compile "$LINENO"; then :
6113 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
6114 ac_cv_c_bigendian=yes
6116 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
6117 if test "$ac_cv_c_bigendian" = unknown; then
6118 ac_cv_c_bigendian=no
6120 # finding both strings is unlikely to happen, but who knows?
6121 ac_cv_c_bigendian=unknown
6125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6128 /* end confdefs.h. */
6129 $ac_includes_default
6134 /* Are we little or big endian? From Harbison&Steele. */
6138 char c[sizeof (long int)];
6141 return u.c[sizeof (long int) - 1] == 1;
6147 if ac_fn_c_try_run "$LINENO"; then :
6148 ac_cv_c_bigendian=no
6150 ac_cv_c_bigendian=yes
6152 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6153 conftest.$ac_objext conftest.beam conftest.$ac_ext
6158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
6159 $as_echo "$ac_cv_c_bigendian" >&6; }
6160 case $ac_cv_c_bigendian in #(
6162 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
6168 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
6172 as_fn_error "unknown endianness
6173 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
6179 if test "x$target_alias" = "x" -o "x$host_alias" = "x$target_alias"; then
6181 NATIVE_LINKER_FALSE='#'
6183 NATIVE_LINKER_TRUE='#'
6184 NATIVE_LINKER_FALSE=
6187 if test "$GCC" = yes; then
6196 if test "x$target_alias" = "x" -o "x$host_alias" = "x$target_alias" -o "x$host_alias" = "x$build_alias"; then
6197 NATIVE_OR_CROSS_LINKER_TRUE=
6198 NATIVE_OR_CROSS_LINKER_FALSE='#'
6200 NATIVE_OR_CROSS_LINKER_TRUE='#'
6201 NATIVE_OR_CROSS_LINKER_FALSE=
6205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether static linking works" >&5
6206 $as_echo_n "checking whether static linking works... " >&6; }
6207 if test "${gold_cv_lib_static+set}" = set; then :
6208 $as_echo_n "(cached) " >&6
6210 LDFLAGS_hold=$LDFLAGS
6211 LDFLAGS="$LDFLAGS -static"
6212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6213 /* end confdefs.h. */
6224 if ac_fn_c_try_link "$LINENO"; then :
6225 gold_cv_lib_static=yes
6227 gold_cv_lib_static=no
6229 rm -f core conftest.err conftest.$ac_objext \
6230 conftest$ac_exeext conftest.$ac_ext
6231 LDFLAGS=$LDFLAGS_hold
6233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_lib_static" >&5
6234 $as_echo "$gold_cv_lib_static" >&6; }
6235 if test "$gold_cv_lib_static" = "yes"; then
6237 HAVE_STATIC_FALSE='#'
6239 HAVE_STATIC_TRUE='#'
6251 FN_PTRS_IN_SO_WITHOUT_PIC_TRUE=
6252 FN_PTRS_IN_SO_WITHOUT_PIC_FALSE='#'
6254 FN_PTRS_IN_SO_WITHOUT_PIC_TRUE='#'
6255 FN_PTRS_IN_SO_WITHOUT_PIC_FALSE=
6259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc >= 4.1" >&5
6260 $as_echo_n "checking for gcc >= 4.1... " >&6; }
6261 if test "${gold_cv_prog_gcc41+set}" = set; then :
6262 $as_echo_n "(cached) " >&6
6264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6265 /* end confdefs.h. */
6267 #if !defined __GNUC__
6269 #elif __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 1)
6274 if ac_fn_c_try_compile "$LINENO"; then :
6275 gold_cv_prog_gcc41=yes
6277 gold_cv_prog_gcc41=no
6279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_prog_gcc41" >&5
6282 $as_echo "$gold_cv_prog_gcc41" >&6; }
6284 if test "$target_cpu" = "x86_64" -a "$gold_cv_prog_gcc41" = "yes"; then
6285 MCMODEL_MEDIUM_TRUE=
6286 MCMODEL_MEDIUM_FALSE='#'
6288 MCMODEL_MEDIUM_TRUE='#'
6289 MCMODEL_MEDIUM_FALSE=
6293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread support" >&5
6294 $as_echo_n "checking for thread support... " >&6; }
6295 if test "${gold_cv_c_thread+set}" = set; then :
6296 $as_echo_n "(cached) " >&6
6298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6299 /* end confdefs.h. */
6302 if ac_fn_c_try_compile "$LINENO"; then :
6303 gold_cv_c_thread=yes
6307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_c_thread" >&5
6310 $as_echo "$gold_cv_c_thread" >&6; }
6312 if test "$gold_cv_c_thread" = "yes"; then
6321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc >= 2.4" >&5
6322 $as_echo_n "checking for glibc >= 2.4... " >&6; }
6323 if test "${gold_cv_lib_glibc24+set}" = set; then :
6324 $as_echo_n "(cached) " >&6
6326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6327 /* end confdefs.h. */
6329 #include <features.h>
6330 #if !defined __GLIBC__
6332 #elif __GLIBC__ < 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ < 4)
6337 if ac_fn_c_try_compile "$LINENO"; then :
6338 gold_cv_lib_glibc24=yes
6340 gold_cv_lib_glibc24=no
6342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_lib_glibc24" >&5
6345 $as_echo "$gold_cv_lib_glibc24" >&6; }
6347 if test "$gold_cv_lib_glibc24" = "yes"; then
6349 STATIC_TLS_FALSE='#'
6356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for omp support" >&5
6357 $as_echo_n "checking for omp support... " >&6; }
6358 if test "${gold_cv_c_threadprivate+set}" = set; then :
6359 $as_echo_n "(cached) " >&6
6361 save_CFLAGS="$CFLAGS"
6362 CFLAGS="$CFLAGS -fopenmp"
6363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6364 /* end confdefs.h. */
6368 #pragma omp threadprivate (i)
6371 if ac_fn_c_try_compile "$LINENO"; then :
6372 gold_cv_c_threadprivate=yes
6374 gold_cv_c_threadprivate=no
6376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6377 CFLAGS="$save_CFLAGS"
6379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_c_threadprivate" >&5
6380 $as_echo "$gold_cv_c_threadprivate" >&6; }
6381 if test "$gold_cv_c_threadprivate" = "yes"; then
6383 $as_echo "#define HAVE_OMP_SUPPORT 1" >>confdefs.h
6386 if test "$gold_cv_c_threadprivate" = "yes"; then
6388 OMP_SUPPORT_FALSE='#'
6390 OMP_SUPPORT_TRUE='#'
6395 save_CFLAGS="$CFLAGS"
6396 CFLAGS="$CFLAGS -mtls-dialect=gnu2"
6397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6398 /* end confdefs.h. */
6401 if ac_fn_c_try_compile "$LINENO"; then :
6406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6407 CFLAGS="$save_CFLAGS"
6408 if test "$have_tls_gnu2" = "yes"; then
6409 TLS_GNU2_DIALECT_TRUE=
6410 TLS_GNU2_DIALECT_FALSE='#'
6412 TLS_GNU2_DIALECT_TRUE='#'
6413 TLS_GNU2_DIALECT_FALSE=
6417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc >= 2.9" >&5
6418 $as_echo_n "checking for glibc >= 2.9... " >&6; }
6419 if test "${gold_cv_lib_glibc29+set}" = set; then :
6420 $as_echo_n "(cached) " >&6
6422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6423 /* end confdefs.h. */
6425 #include <features.h>
6426 #if !defined __GLIBC__
6428 #elif __GLIBC__ < 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ < 9)
6433 if ac_fn_c_try_compile "$LINENO"; then :
6434 gold_cv_lib_glibc29=yes
6436 gold_cv_lib_glibc29=no
6438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_lib_glibc29" >&5
6441 $as_echo "$gold_cv_lib_glibc29" >&6; }
6443 if test "$gold_cv_lib_glibc29" = "yes"; then
6444 TLS_DESCRIPTORS_TRUE=
6445 TLS_DESCRIPTORS_FALSE='#'
6447 TLS_DESCRIPTORS_TRUE='#'
6448 TLS_DESCRIPTORS_FALSE=
6452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -frandom-seed support" >&5
6453 $as_echo_n "checking for -frandom-seed support... " >&6; }
6454 if test "${gold_cv_c_random_seed+set}" = set; then :
6455 $as_echo_n "(cached) " >&6
6457 save_CFLAGS="$CFLAGS"
6458 CFLAGS="$CFLAGS -frandom-seed=foo"
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_random_seed=yes
6466 gold_cv_c_random_seed=no
6468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6469 CFLAGS="$save_CFLAGS"
6471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_c_random_seed" >&5
6472 $as_echo "$gold_cv_c_random_seed" >&6; }
6473 if test "$gold_cv_c_random_seed" = "yes"; then
6474 # In Makefile, '$@' will be expanded to be the name of the file
6475 # being built, providing a unique seed for each file.
6476 RANDOM_SEED_CFLAGS=-frandom-seed=\$@
6480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc ifunc support" >&5
6481 $as_echo_n "checking for glibc ifunc support... " >&6; }
6482 if test "${gold_cv_lib_glibc_ifunc+set}" = set; then :
6483 $as_echo_n "(cached) " >&6
6485 save_LDFLAGS="$LDFLAGS"
6486 LDFLAGS="$LDFLAGS -static"
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__ < 11)
6496 void func (void) { }
6498 __asm__(".type invoke, %gnu_indirect_function");
6499 typedef void (*funcptr) (void);
6500 funcptr dispatch (void) __asm__ ("invoke");
6501 funcptr dispatch (void) { return &func; }
6511 if ac_fn_c_try_link "$LINENO"; then :
6513 if ${NM} conftest$EXEEXT | grep "__rela\?_iplt_start" >/dev/null 2>&1; then
6514 gold_cv_lib_glibc_ifunc=both
6516 gold_cv_lib_glibc_ifunc=dyn
6519 gold_cv_lib_glibc_ifunc=no
6521 rm -f core conftest.err conftest.$ac_objext \
6522 conftest$ac_exeext conftest.$ac_ext
6523 LDFLAGS="$save_LDFLAGS"
6525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_lib_glibc_ifunc" >&5
6526 $as_echo "$gold_cv_lib_glibc_ifunc" >&6; }
6528 if test "$gold_cv_lib_glibc_ifunc" != "no"; then
6536 if test "$gold_cv_lib_glibc_ifunc" = "both"; then
6538 IFUNC_STATIC_FALSE='#'
6540 IFUNC_STATIC_TRUE='#'
6546 GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
6547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6548 /* end confdefs.h. */
6551 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6552 $EGREP "^[0-3]$" >/dev/null 2>&1; then :
6555 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wshadow"
6560 # Check whether --enable-werror was given.
6561 if test "${enable_werror+set}" = set; then :
6562 enableval=$enable_werror; case "${enableval}" in
6563 yes | y) ERROR_ON_WARNING="yes" ;;
6564 no | n) ERROR_ON_WARNING="no" ;;
6565 *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
6570 # Disable -Wformat by default when using gcc on mingw
6573 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
6574 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
6580 # Enable -Werror by default when using gcc
6581 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
6582 ERROR_ON_WARNING=yes
6586 if test "${ERROR_ON_WARNING}" = yes ; then
6587 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
6588 NO_WERROR="-Wno-error"
6591 if test "${GCC}" = yes ; then
6592 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
6595 # Check whether --enable-build-warnings was given.
6596 if test "${enable_build_warnings+set}" = set; then :
6597 enableval=$enable_build_warnings; case "${enableval}" in
6598 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
6599 no) if test "${GCC}" = yes ; then
6602 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
6603 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
6604 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
6605 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
6606 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
6611 if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
6612 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
6619 WARN_CXXFLAGS=`echo ${WARN_CFLAGS} | sed -e 's/-Wstrict-prototypes//' -e 's/-Wmissing-prototypes//' -e 's/-Wshadow//'`
6622 LFS_CFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
6625 for ac_header in sys/mman.h
6627 ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
6628 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
6629 cat >>confdefs.h <<_ACEOF
6630 #define HAVE_SYS_MMAN_H 1
6637 for ac_func in chsize mmap
6639 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6640 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6641 eval as_val=\$$as_ac_var
6642 if test "x$as_val" = x""yes; then :
6643 cat >>confdefs.h <<_ACEOF
6644 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6650 for ac_func in pread ftruncate ffsll
6652 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6653 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6654 eval as_val=\$$as_ac_var
6655 if test "x$as_val" = x""yes; then :
6656 cat >>confdefs.h <<_ACEOF
6657 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6661 case " $LIBOBJS " in
6662 *" $ac_func.$ac_objext "* ) ;;
6663 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
6672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking mremap with MREMAP_MAYMOVE" >&5
6673 $as_echo_n "checking mremap with MREMAP_MAYMOVE... " >&6; }
6674 if test "${gold_cv_lib_mremap_maymove+set}" = set; then :
6675 $as_echo_n "(cached) " >&6
6677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6678 /* end confdefs.h. */
6681 #include <sys/mman.h>
6682 void f() { mremap (0, 0, 0, MREMAP_MAYMOVE); }
6692 if ac_fn_c_try_link "$LINENO"; then :
6693 gold_cv_lib_mremap_maymove=yes
6695 gold_cv_lib_mremap_maymove=no
6697 rm -f core conftest.err conftest.$ac_objext \
6698 conftest$ac_exeext conftest.$ac_ext
6700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_lib_mremap_maymove" >&5
6701 $as_echo "$gold_cv_lib_mremap_maymove" >&6; }
6702 if test "$gold_cv_lib_mremap_maymove" = "yes"; then
6704 $as_echo "#define HAVE_MREMAP 1" >>confdefs.h
6707 case " $LIBOBJS " in
6708 *" mremap.$ac_objext "* ) ;;
6709 *) LIBOBJS="$LIBOBJS mremap.$ac_objext"
6715 # Link in zlib if we can. This allows us to write compressed sections.
6716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing zlibVersion" >&5
6717 $as_echo_n "checking for library containing zlibVersion... " >&6; }
6718 if test "${ac_cv_search_zlibVersion+set}" = set; then :
6719 $as_echo_n "(cached) " >&6
6721 ac_func_search_save_LIBS=$LIBS
6722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6723 /* end confdefs.h. */
6725 /* Override any GCC internal prototype to avoid an error.
6726 Use char because int might match the return type of a GCC
6727 builtin and then its argument prototype would still apply. */
6731 char zlibVersion ();
6735 return zlibVersion ();
6740 for ac_lib in '' z; do
6741 if test -z "$ac_lib"; then
6742 ac_res="none required"
6745 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6747 if ac_fn_c_try_link "$LINENO"; then :
6748 ac_cv_search_zlibVersion=$ac_res
6750 rm -f core conftest.err conftest.$ac_objext \
6752 if test "${ac_cv_search_zlibVersion+set}" = set; then :
6756 if test "${ac_cv_search_zlibVersion+set}" = set; then :
6759 ac_cv_search_zlibVersion=no
6762 LIBS=$ac_func_search_save_LIBS
6764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_zlibVersion" >&5
6765 $as_echo "$ac_cv_search_zlibVersion" >&6; }
6766 ac_res=$ac_cv_search_zlibVersion
6767 if test "$ac_res" != no; then :
6768 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6769 for ac_header in zlib.h
6771 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
6772 if test "x$ac_cv_header_zlib_h" = x""yes; then :
6773 cat >>confdefs.h <<_ACEOF
6774 #define HAVE_ZLIB_H 1
6783 if test "$ac_cv_search_zlibVersion" != "no"; then
6792 ac_fn_c_check_decl "$LINENO" "basename" "ac_cv_have_decl_basename" "$ac_includes_default"
6793 if test "x$ac_cv_have_decl_basename" = x""yes; then :
6799 cat >>confdefs.h <<_ACEOF
6800 #define HAVE_DECL_BASENAME $ac_have_decl
6802 ac_fn_c_check_decl "$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default"
6803 if test "x$ac_cv_have_decl_ffs" = x""yes; then :
6809 cat >>confdefs.h <<_ACEOF
6810 #define HAVE_DECL_FFS $ac_have_decl
6812 ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
6813 if test "x$ac_cv_have_decl_asprintf" = x""yes; then :
6819 cat >>confdefs.h <<_ACEOF
6820 #define HAVE_DECL_ASPRINTF $ac_have_decl
6822 ac_fn_c_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
6823 if test "x$ac_cv_have_decl_vasprintf" = x""yes; then :
6829 cat >>confdefs.h <<_ACEOF
6830 #define HAVE_DECL_VASPRINTF $ac_have_decl
6832 ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
6833 if test "x$ac_cv_have_decl_snprintf" = x""yes; then :
6839 cat >>confdefs.h <<_ACEOF
6840 #define HAVE_DECL_SNPRINTF $ac_have_decl
6842 ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
6843 if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then :
6849 cat >>confdefs.h <<_ACEOF
6850 #define HAVE_DECL_VSNPRINTF $ac_have_decl
6852 ac_fn_c_check_decl "$LINENO" "strverscmp" "ac_cv_have_decl_strverscmp" "$ac_includes_default"
6853 if test "x$ac_cv_have_decl_strverscmp" = x""yes; then :
6859 cat >>confdefs.h <<_ACEOF
6860 #define HAVE_DECL_STRVERSCMP $ac_have_decl
6865 ac_cpp='$CXXCPP $CPPFLAGS'
6866 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6867 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6868 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6873 ac_cpp='$CXXCPP $CPPFLAGS'
6874 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6875 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6876 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
6878 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
6879 if test -z "$CXXCPP"; then
6880 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
6881 $as_echo_n "(cached) " >&6
6883 # Double quotes because CXXCPP needs to be expanded
6884 for CXXCPP in "$CXX -E" "/lib/cpp"
6887 for ac_cxx_preproc_warn_flag in '' yes
6889 # Use a header file that comes with gcc, so configuring glibc
6890 # with a fresh cross-compiler works.
6891 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6892 # <limits.h> exists even on freestanding compilers.
6893 # On the NeXT, cc -E runs the code through the compiler's parser,
6894 # not just through cpp. "Syntax error" is here to catch this case.
6895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6896 /* end confdefs.h. */
6898 # include <limits.h>
6900 # include <assert.h>
6904 if ac_fn_cxx_try_cpp "$LINENO"; then :
6907 # Broken: fails on valid input.
6910 rm -f conftest.err conftest.$ac_ext
6912 # OK, works on sane cases. Now check whether nonexistent headers
6913 # can be detected and how.
6914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6915 /* end confdefs.h. */
6916 #include <ac_nonexistent.h>
6918 if ac_fn_cxx_try_cpp "$LINENO"; then :
6919 # Broken: success on invalid input.
6922 # Passes both tests.
6926 rm -f conftest.err conftest.$ac_ext
6929 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6930 rm -f conftest.err conftest.$ac_ext
6931 if $ac_preproc_ok; then :
6936 ac_cv_prog_CXXCPP=$CXXCPP
6939 CXXCPP=$ac_cv_prog_CXXCPP
6941 ac_cv_prog_CXXCPP=$CXXCPP
6943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
6944 $as_echo "$CXXCPP" >&6; }
6946 for ac_cxx_preproc_warn_flag in '' yes
6948 # Use a header file that comes with gcc, so configuring glibc
6949 # with a fresh cross-compiler works.
6950 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6951 # <limits.h> exists even on freestanding compilers.
6952 # On the NeXT, cc -E runs the code through the compiler's parser,
6953 # not just through cpp. "Syntax error" is here to catch this case.
6954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6955 /* end confdefs.h. */
6957 # include <limits.h>
6959 # include <assert.h>
6963 if ac_fn_cxx_try_cpp "$LINENO"; then :
6966 # Broken: fails on valid input.
6969 rm -f conftest.err conftest.$ac_ext
6971 # OK, works on sane cases. Now check whether nonexistent headers
6972 # can be detected and how.
6973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6974 /* end confdefs.h. */
6975 #include <ac_nonexistent.h>
6977 if ac_fn_cxx_try_cpp "$LINENO"; then :
6978 # Broken: success on invalid input.
6981 # Passes both tests.
6985 rm -f conftest.err conftest.$ac_ext
6988 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6989 rm -f conftest.err conftest.$ac_ext
6990 if $ac_preproc_ok; then :
6993 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6994 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6995 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
6996 See \`config.log' for more details." "$LINENO" 5; }
7000 ac_cpp='$CXXCPP $CPPFLAGS'
7001 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7002 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7003 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7006 for ac_header in tr1/unordered_set tr1/unordered_map
7008 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7009 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7010 eval as_val=\$$as_ac_Header
7011 if test "x$as_val" = x""yes; then :
7012 cat >>confdefs.h <<_ACEOF
7013 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7020 for ac_header in ext/hash_map ext/hash_set
7022 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7023 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7024 eval as_val=\$$as_ac_Header
7025 if test "x$as_val" = x""yes; then :
7026 cat >>confdefs.h <<_ACEOF
7027 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7034 for ac_header in byteswap.h
7036 ac_fn_cxx_check_header_mongrel "$LINENO" "byteswap.h" "ac_cv_header_byteswap_h" "$ac_includes_default"
7037 if test "x$ac_cv_header_byteswap_h" = x""yes; then :
7038 cat >>confdefs.h <<_ACEOF
7039 #define HAVE_BYTESWAP_H 1
7046 for ac_func in mallinfo posix_fallocate readv sysconf times
7048 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7049 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
7050 eval as_val=\$$as_ac_var
7051 if test "x$as_val" = x""yes; then :
7052 cat >>confdefs.h <<_ACEOF
7053 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7059 ac_fn_cxx_check_decl "$LINENO" "basename" "ac_cv_have_decl_basename" "$ac_includes_default"
7060 if test "x$ac_cv_have_decl_basename" = x""yes; then :
7066 cat >>confdefs.h <<_ACEOF
7067 #define HAVE_DECL_BASENAME $ac_have_decl
7069 ac_fn_cxx_check_decl "$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default"
7070 if test "x$ac_cv_have_decl_ffs" = x""yes; then :
7076 cat >>confdefs.h <<_ACEOF
7077 #define HAVE_DECL_FFS $ac_have_decl
7079 ac_fn_cxx_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
7080 if test "x$ac_cv_have_decl_asprintf" = x""yes; then :
7086 cat >>confdefs.h <<_ACEOF
7087 #define HAVE_DECL_ASPRINTF $ac_have_decl
7089 ac_fn_cxx_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
7090 if test "x$ac_cv_have_decl_vasprintf" = x""yes; then :
7096 cat >>confdefs.h <<_ACEOF
7097 #define HAVE_DECL_VASPRINTF $ac_have_decl
7099 ac_fn_cxx_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
7100 if test "x$ac_cv_have_decl_snprintf" = x""yes; then :
7106 cat >>confdefs.h <<_ACEOF
7107 #define HAVE_DECL_SNPRINTF $ac_have_decl
7109 ac_fn_cxx_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
7110 if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then :
7116 cat >>confdefs.h <<_ACEOF
7117 #define HAVE_DECL_VSNPRINTF $ac_have_decl
7119 ac_fn_cxx_check_decl "$LINENO" "strverscmp" "ac_cv_have_decl_strverscmp" "$ac_includes_default"
7120 if test "x$ac_cv_have_decl_strverscmp" = x""yes; then :
7126 cat >>confdefs.h <<_ACEOF
7127 #define HAVE_DECL_STRVERSCMP $ac_have_decl
7129 ac_fn_cxx_check_decl "$LINENO" "strndup" "ac_cv_have_decl_strndup" "$ac_includes_default"
7130 if test "x$ac_cv_have_decl_strndup" = x""yes; then :
7136 cat >>confdefs.h <<_ACEOF
7137 #define HAVE_DECL_STRNDUP $ac_have_decl
7139 ac_fn_cxx_check_decl "$LINENO" "memmem" "ac_cv_have_decl_memmem" "$ac_includes_default"
7140 if test "x$ac_cv_have_decl_memmem" = x""yes; then :
7146 cat >>confdefs.h <<_ACEOF
7147 #define HAVE_DECL_MEMMEM $ac_have_decl
7151 # Use of ::std::tr1::unordered_map::rehash causes undefined symbols
7152 # at link time with some versions of GCC.
7153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ::std::tr1::unordered_map::rehash is usable." >&5
7154 $as_echo_n "checking whether ::std::tr1::unordered_map::rehash is usable.... " >&6; }
7155 if test "${gold_cv_unordered_map_rehash+set}" = set; then :
7156 $as_echo_n "(cached) " >&6
7158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7159 /* end confdefs.h. */
7161 #include <tr1/unordered_map>
7162 void bar() { ::std::tr1::unordered_map<int, int> x; x.rehash(10); }
7172 if ac_fn_cxx_try_link "$LINENO"; then :
7173 gold_cv_unordered_map_rehash=yes
7175 gold_cv_unordered_map_rehash=no
7177 rm -f core conftest.err conftest.$ac_objext \
7178 conftest$ac_exeext conftest.$ac_ext
7180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_unordered_map_rehash" >&5
7181 $as_echo "$gold_cv_unordered_map_rehash" >&6; }
7182 if test "$gold_cv_unordered_map_rehash" = "yes"; then
7184 $as_echo "#define HAVE_TR1_UNORDERED_MAP_REHASH 1" >>confdefs.h
7188 # gcc 4.3.0 doesn't recognize the printf attribute on a template
7189 # function. Check for that. This is gcc bug 35546. This test can
7190 # probably be removed after the bug has been fixed for a while.
7191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use attributes with template functions" >&5
7192 $as_echo_n "checking whether we can use attributes with template functions... " >&6; }
7193 if test "${gold_cv_template_attribute+set}" = set; then :
7194 $as_echo_n "(cached) " >&6
7196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7197 /* end confdefs.h. */
7199 template<typename T> extern void foo(const char*, ...)
7200 __attribute__ ((__format__ (__printf__, 1, 2)));
7201 template<typename T> void foo(const char* format, ...) {}
7202 void bar() { foo<int>("%s\n", "foo"); }
7205 if ac_fn_cxx_try_compile "$LINENO"; then :
7206 gold_cv_template_attribute=yes
7208 gold_cv_template_attribute=no
7210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_template_attribute" >&5
7213 $as_echo "$gold_cv_template_attribute" >&6; }
7214 if test "$gold_cv_template_attribute" = "yes"; then
7216 $as_echo "#define HAVE_TEMPLATE_ATTRIBUTES 1" >>confdefs.h
7220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct stat::st_mtim." >&5
7221 $as_echo_n "checking for struct stat::st_mtim.... " >&6; }
7222 if test "${gold_cv_stat_st_mtim+set}" = set; then :
7223 $as_echo_n "(cached) " >&6
7225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7226 /* end confdefs.h. */
7228 #include <sys/stat.h>
7229 long bar() { struct stat s; return (long)(s.st_mtim.tv_sec + s.st_mtim.tv_sec);}
7239 if ac_fn_cxx_try_compile "$LINENO"; then :
7240 gold_cv_stat_st_mtim=yes
7242 gold_cv_stat_st_mtim=no
7244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_cv_stat_st_mtim" >&5
7247 $as_echo "$gold_cv_stat_st_mtim" >&6; }
7248 if test "$gold_cv_stat_st_mtim" = "yes"; then
7250 $as_echo "#define HAVE_STAT_ST_MTIM 1" >>confdefs.h
7255 ac_cpp='$CPP $CPPFLAGS'
7256 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7257 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7258 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
7263 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
7264 # Check whether --enable-maintainer-mode was given.
7265 if test "${enable_maintainer_mode+set}" = set; then :
7266 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
7268 USE_MAINTAINER_MODE=no
7271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
7272 $as_echo "$USE_MAINTAINER_MODE" >&6; }
7273 if test $USE_MAINTAINER_MODE = yes; then
7274 MAINTAINER_MODE_TRUE=
7275 MAINTAINER_MODE_FALSE='#'
7277 MAINTAINER_MODE_TRUE='#'
7278 MAINTAINER_MODE_FALSE=
7281 MAINT=$MAINTAINER_MODE_TRUE
7285 ac_config_files="$ac_config_files Makefile testsuite/Makefile po/Makefile.in:po/Make-in"
7287 cat >confcache <<\_ACEOF
7288 # This file is a shell script that caches the results of configure
7289 # tests run on this system so they can be shared between configure
7290 # scripts and configure runs, see configure's option --config-cache.
7291 # It is not useful on other systems. If it contains results you don't
7292 # want to keep, you may remove or edit it.
7294 # config.status only pays attention to the cache file if you give it
7295 # the --recheck option to rerun configure.
7297 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7298 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7303 # The following way of writing the cache mishandles newlines in values,
7304 # but we know of no workaround that is simple, portable, and efficient.
7305 # So, we kill variables containing newlines.
7306 # Ultrix sh set writes to stderr and can't be redirected directly,
7307 # and sets the high bit in the cache file unless we assign to the vars.
7309 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7310 eval ac_val=\$$ac_var
7314 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
7315 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7318 _ | IFS | as_nl) ;; #(
7319 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7320 *) { eval $ac_var=; unset $ac_var;} ;;
7326 case $as_nl`(ac_space=' '; set) 2>&1` in #(
7327 *${as_nl}ac_space=\ *)
7328 # `set' does not quote correctly, so add quotes: double-quote
7329 # substitution turns \\\\ into \\, and sed turns \\ into \.
7332 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7335 # `set' quotes correctly as required by POSIX, so do not add quotes.
7336 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
7345 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7347 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7349 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
7350 if test -w "$cache_file"; then
7351 test "x$cache_file" != "x/dev/null" &&
7352 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
7353 $as_echo "$as_me: updating cache $cache_file" >&6;}
7354 cat confcache >$cache_file
7356 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
7357 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
7362 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7363 # Let make expand exec_prefix.
7364 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7366 DEFS=-DHAVE_CONFIG_H
7370 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7371 # 1. Remove the extension, and $U if already installed.
7372 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
7373 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
7374 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
7375 # will be set to the directory where LIBOBJS objects are built.
7376 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7377 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
7381 LTLIBOBJS=$ac_ltlibobjs
7384 if test -n "$EXEEXT"; then
7386 am__EXEEXT_FALSE='#'
7392 if test -z "${THREADS_TRUE}" && test -z "${THREADS_FALSE}"; then
7393 as_fn_error "conditional \"THREADS\" was never defined.
7394 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7396 if test -z "${PLUGINS_TRUE}" && test -z "${PLUGINS_FALSE}"; then
7397 as_fn_error "conditional \"PLUGINS\" was never defined.
7398 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7400 if test -z "${DEFAULT_TARGET_ARM_TRUE}" && test -z "${DEFAULT_TARGET_ARM_FALSE}"; then
7401 as_fn_error "conditional \"DEFAULT_TARGET_ARM\" was never defined.
7402 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7404 if test -z "${DEFAULT_TARGET_I386_TRUE}" && test -z "${DEFAULT_TARGET_I386_FALSE}"; then
7405 as_fn_error "conditional \"DEFAULT_TARGET_I386\" was never defined.
7406 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7408 if test -z "${DEFAULT_TARGET_POWERPC_TRUE}" && test -z "${DEFAULT_TARGET_POWERPC_FALSE}"; then
7409 as_fn_error "conditional \"DEFAULT_TARGET_POWERPC\" was never defined.
7410 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7412 if test -z "${DEFAULT_TARGET_SPARC_TRUE}" && test -z "${DEFAULT_TARGET_SPARC_FALSE}"; then
7413 as_fn_error "conditional \"DEFAULT_TARGET_SPARC\" was never defined.
7414 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7416 if test -z "${DEFAULT_TARGET_X86_64_TRUE}" && test -z "${DEFAULT_TARGET_X86_64_FALSE}"; then
7417 as_fn_error "conditional \"DEFAULT_TARGET_X86_64\" was never defined.
7418 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7420 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
7421 as_fn_error "conditional \"AMDEP\" was never defined.
7422 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7424 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
7425 as_fn_error "conditional \"am__fastdepCC\" was never defined.
7426 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7428 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
7429 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
7430 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7433 if test -z "${NATIVE_LINKER_TRUE}" && test -z "${NATIVE_LINKER_FALSE}"; then
7434 as_fn_error "conditional \"NATIVE_LINKER\" was never defined.
7435 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7437 if test -z "${GCC_TRUE}" && test -z "${GCC_FALSE}"; then
7438 as_fn_error "conditional \"GCC\" was never defined.
7439 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7441 if test -z "${NATIVE_OR_CROSS_LINKER_TRUE}" && test -z "${NATIVE_OR_CROSS_LINKER_FALSE}"; then
7442 as_fn_error "conditional \"NATIVE_OR_CROSS_LINKER\" was never defined.
7443 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7445 if test -z "${HAVE_STATIC_TRUE}" && test -z "${HAVE_STATIC_FALSE}"; then
7446 as_fn_error "conditional \"HAVE_STATIC\" was never defined.
7447 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7449 if test -z "${FN_PTRS_IN_SO_WITHOUT_PIC_TRUE}" && test -z "${FN_PTRS_IN_SO_WITHOUT_PIC_FALSE}"; then
7450 as_fn_error "conditional \"FN_PTRS_IN_SO_WITHOUT_PIC\" was never defined.
7451 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7453 if test -z "${MCMODEL_MEDIUM_TRUE}" && test -z "${MCMODEL_MEDIUM_FALSE}"; then
7454 as_fn_error "conditional \"MCMODEL_MEDIUM\" was never defined.
7455 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7457 if test -z "${TLS_TRUE}" && test -z "${TLS_FALSE}"; then
7458 as_fn_error "conditional \"TLS\" was never defined.
7459 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7461 if test -z "${STATIC_TLS_TRUE}" && test -z "${STATIC_TLS_FALSE}"; then
7462 as_fn_error "conditional \"STATIC_TLS\" was never defined.
7463 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7465 if test -z "${OMP_SUPPORT_TRUE}" && test -z "${OMP_SUPPORT_FALSE}"; then
7466 as_fn_error "conditional \"OMP_SUPPORT\" was never defined.
7467 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7469 if test -z "${TLS_GNU2_DIALECT_TRUE}" && test -z "${TLS_GNU2_DIALECT_FALSE}"; then
7470 as_fn_error "conditional \"TLS_GNU2_DIALECT\" was never defined.
7471 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7473 if test -z "${TLS_DESCRIPTORS_TRUE}" && test -z "${TLS_DESCRIPTORS_FALSE}"; then
7474 as_fn_error "conditional \"TLS_DESCRIPTORS\" was never defined.
7475 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7477 if test -z "${IFUNC_TRUE}" && test -z "${IFUNC_FALSE}"; then
7478 as_fn_error "conditional \"IFUNC\" was never defined.
7479 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7481 if test -z "${IFUNC_STATIC_TRUE}" && test -z "${IFUNC_STATIC_FALSE}"; then
7482 as_fn_error "conditional \"IFUNC_STATIC\" was never defined.
7483 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7485 if test -z "${HAVE_ZLIB_TRUE}" && test -z "${HAVE_ZLIB_FALSE}"; then
7486 as_fn_error "conditional \"HAVE_ZLIB\" was never defined.
7487 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7489 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
7490 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
7491 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7494 : ${CONFIG_STATUS=./config.status}
7496 ac_clean_files_save=$ac_clean_files
7497 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7498 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
7499 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
7501 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
7503 # Generated by $as_me.
7504 # Run this file to recreate the current configuration.
7505 # Compiler output produced by configure, useful for debugging
7506 # configure, is in config.log if it exists.
7512 SHELL=\${CONFIG_SHELL-$SHELL}
7515 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
7516 ## -------------------- ##
7517 ## M4sh Initialization. ##
7518 ## -------------------- ##
7520 # Be more Bourne compatible
7521 DUALCASE=1; export DUALCASE # for MKS sh
7522 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
7525 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
7526 # is contrary to our usage. Disable this feature.
7527 alias -g '${1+"$@"}'='"$@"'
7528 setopt NO_GLOB_SUBST
7530 case `(set -o) 2>/dev/null` in #(
7542 # Printing a long string crashes Solaris 7 /usr/bin/printf.
7543 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7544 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
7545 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
7546 # Prefer a ksh shell builtin over an external printf program on Solaris,
7547 # but without wasting forks for bash or zsh.
7548 if test -z "$BASH_VERSION$ZSH_VERSION" \
7549 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
7550 as_echo='print -r --'
7551 as_echo_n='print -rn --'
7552 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
7553 as_echo='printf %s\n'
7554 as_echo_n='printf %s'
7556 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
7557 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
7558 as_echo_n='/usr/ucb/echo -n'
7560 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
7561 as_echo_n_body='eval
7565 expr "X$arg" : "X\\(.*\\)$as_nl";
7566 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
7568 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
7570 export as_echo_n_body
7571 as_echo_n='sh -c $as_echo_n_body as_echo'
7574 as_echo='sh -c $as_echo_body as_echo'
7577 # The user is always right.
7578 if test "${PATH_SEPARATOR+set}" != set; then
7580 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
7581 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
7588 # We need space, tab and new line, in precisely that order. Quoting is
7589 # there to prevent editors from complaining about space-tab.
7590 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
7591 # splitting by setting IFS to empty value.)
7594 # Find who we are. Look in the path if we contain no directory separator.
7596 *[\\/]* ) as_myself=$0 ;;
7597 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7601 test -z "$as_dir" && as_dir=.
7602 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7608 # We did not find ourselves, most probably we were run as `sh COMMAND'
7609 # in which case we are not to be found in the path.
7610 if test "x$as_myself" = x; then
7613 if test ! -f "$as_myself"; then
7614 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7618 # Unset variables that we do not need and which cause bugs (e.g. in
7619 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
7620 # suppresses any "Segmentation fault" message there. '((' could
7621 # trigger a bug in pdksh 5.2.14.
7622 for as_var in BASH_ENV ENV MAIL MAILPATH
7623 do eval test x\${$as_var+set} = xset \
7624 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
7637 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
7640 # as_fn_error ERROR [LINENO LOG_FD]
7641 # ---------------------------------
7642 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
7643 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
7644 # script with status $?, using 1 if that was 0.
7647 as_status=$?; test $as_status -eq 0 && as_status=1
7649 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
7650 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
7652 $as_echo "$as_me: error: $1" >&2
7653 as_fn_exit $as_status
7657 # as_fn_set_status STATUS
7658 # -----------------------
7659 # Set $? to STATUS, without forking.
7663 } # as_fn_set_status
7667 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
7677 # Portably unset VAR.
7680 { eval $1=; unset $1;}
7682 as_unset=as_fn_unset
7683 # as_fn_append VAR VALUE
7684 # ----------------------
7685 # Append the text in VALUE to the end of the definition contained in VAR. Take
7686 # advantage of any shell optimizations that allow amortized linear growth over
7687 # repeated appends, instead of the typical quadratic growth present in naive
7689 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
7690 eval 'as_fn_append ()
7701 # as_fn_arith ARG...
7702 # ------------------
7703 # Perform arithmetic evaluation on the ARGs, and store the result in the
7704 # global $as_val. Take advantage of shells that can avoid forks. The arguments
7705 # must be portable across $(()) and expr.
7706 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
7707 eval 'as_fn_arith ()
7714 as_val=`expr "$@" || test $? -eq 1`
7719 if expr a : '\(a\)' >/dev/null 2>&1 &&
7720 test "X`expr 00001 : '.*\(...\)'`" = X001; then
7726 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7727 as_basename=basename
7732 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
7738 as_me=`$as_basename -- "$0" ||
7739 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7740 X"$0" : 'X\(//\)$' \| \
7741 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7743 sed '/^.*\/\([^/][^/]*\)\/*$/{
7757 # Avoid depending upon Character Ranges.
7758 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7759 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7760 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7761 as_cr_digits='0123456789'
7762 as_cr_alnum=$as_cr_Letters$as_cr_digits
7764 ECHO_C= ECHO_N= ECHO_T=
7765 case `echo -n x` in #(((((
7767 case `echo 'xy\c'` in
7768 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
7770 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
7777 rm -f conf$$ conf$$.exe conf$$.file
7778 if test -d conf$$.dir; then
7779 rm -f conf$$.dir/conf$$.file
7782 mkdir conf$$.dir 2>/dev/null
7784 if (echo >conf$$.file) 2>/dev/null; then
7785 if ln -s conf$$.file conf$$ 2>/dev/null; then
7787 # ... but there are two gotchas:
7788 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7789 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
7790 # In both cases, we have to default to `cp -p'.
7791 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
7793 elif ln conf$$.file conf$$ 2>/dev/null; then
7801 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
7802 rmdir conf$$.dir 2>/dev/null
7807 # Create "$as_dir" as a directory, including parents if necessary.
7812 -*) as_dir=./$as_dir;;
7814 test -d "$as_dir" || eval $as_mkdir_p || {
7818 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7819 *) as_qdir=$as_dir;;
7821 as_dirs="'$as_qdir' $as_dirs"
7822 as_dir=`$as_dirname -- "$as_dir" ||
7823 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7824 X"$as_dir" : 'X\(//\)[^/]' \| \
7825 X"$as_dir" : 'X\(//\)$' \| \
7826 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7827 $as_echo X"$as_dir" |
7828 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7845 test -d "$as_dir" && break
7847 test -z "$as_dirs" || eval "mkdir $as_dirs"
7848 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
7852 if mkdir -p . 2>/dev/null; then
7853 as_mkdir_p='mkdir -p "$as_dir"'
7855 test -d ./-p && rmdir ./-p
7859 if test -x / >/dev/null 2>&1; then
7862 if ls -dL / >/dev/null 2>&1; then
7869 if test -d "$1"; then
7875 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
7876 ???[sx]*):;;*)false;;esac;fi
7880 as_executable_p=$as_test_x
7882 # Sed expression to map a string onto a valid CPP name.
7883 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7885 # Sed expression to map a string onto a valid variable name.
7886 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7890 ## ----------------------------------- ##
7891 ## Main body of $CONFIG_STATUS script. ##
7892 ## ----------------------------------- ##
7894 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
7896 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7897 # Save the log message, to keep $0 and so on meaningful, and to
7898 # report actual input values of CONFIG_FILES etc. instead of their
7899 # values after options handling.
7901 This file was extended by gold $as_me 0.1, which was
7902 generated by GNU Autoconf 2.64. Invocation command line was
7904 CONFIG_FILES = $CONFIG_FILES
7905 CONFIG_HEADERS = $CONFIG_HEADERS
7906 CONFIG_LINKS = $CONFIG_LINKS
7907 CONFIG_COMMANDS = $CONFIG_COMMANDS
7910 on `(hostname || uname -n) 2>/dev/null | sed 1q`
7915 case $ac_config_files in *"
7916 "*) set x $ac_config_files; shift; ac_config_files=$*;;
7919 case $ac_config_headers in *"
7920 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
7924 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7925 # Files that config.status was made for.
7926 config_files="$ac_config_files"
7927 config_headers="$ac_config_headers"
7928 config_commands="$ac_config_commands"
7932 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7934 \`$as_me' instantiates files and other configuration actions
7935 from templates according to the current configuration. Unless the files
7936 and actions are specified as TAGs, all are instantiated by default.
7938 Usage: $0 [OPTION]... [TAG]...
7940 -h, --help print this help, then exit
7941 -V, --version print version number and configuration settings, then exit
7942 -q, --quiet, --silent
7943 do not print progress messages
7944 -d, --debug don't remove temporary files
7945 --recheck update $as_me by reconfiguring in the same conditions
7946 --file=FILE[:TEMPLATE]
7947 instantiate the configuration file FILE
7948 --header=FILE[:TEMPLATE]
7949 instantiate the configuration header FILE
7951 Configuration files:
7954 Configuration headers:
7957 Configuration commands:
7960 Report bugs to the package provider."
7963 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7965 gold config.status 0.1
7966 configured by $0, generated by GNU Autoconf 2.64,
7967 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
7969 Copyright (C) 2009 Free Software Foundation, Inc.
7970 This config.status script is free software; the Free Software Foundation
7971 gives unlimited permission to copy, distribute and modify it."
7978 test -n "\$AWK" || AWK=awk
7981 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7982 # The default lists apply if the user does not specify any file.
7988 ac_option=`expr "X$1" : 'X\([^=]*\)='`
7989 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
8000 # Handling of the options.
8001 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8003 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
8004 $as_echo "$ac_cs_version"; exit ;;
8005 --debug | --debu | --deb | --de | --d | -d )
8007 --file | --fil | --fi | --f )
8010 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8012 as_fn_append CONFIG_FILES " '$ac_optarg'"
8013 ac_need_defaults=false;;
8014 --header | --heade | --head | --hea )
8017 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8019 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
8020 ac_need_defaults=false;;
8022 # Conflict between --help and --header
8023 as_fn_error "ambiguous option: \`$1'
8024 Try \`$0 --help' for more information.";;
8025 --help | --hel | -h )
8026 $as_echo "$ac_cs_usage"; exit ;;
8027 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8028 | -silent | --silent | --silen | --sile | --sil | --si | --s)
8032 -*) as_fn_error "unrecognized option: \`$1'
8033 Try \`$0 --help' for more information." ;;
8035 *) as_fn_append ac_config_targets " $1"
8036 ac_need_defaults=false ;;
8042 ac_configure_extra_args=
8044 if $ac_cs_silent; then
8046 ac_configure_extra_args="$ac_configure_extra_args --silent"
8050 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8051 if \$ac_cs_recheck; then
8052 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8054 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
8055 CONFIG_SHELL='$SHELL'
8061 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8065 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8066 ## Running $as_me. ##
8072 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8076 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
8077 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
8078 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
8080 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
8081 # Capture the value of LINGUAS because we need it to compute CATALOGS.
8082 LINGUAS="${LINGUAS-%UNSET%}"
8087 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8089 # Handling of arguments.
8090 for ac_config_target in $ac_config_targets
8092 case $ac_config_target in
8093 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
8094 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
8095 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
8096 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8097 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
8098 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
8100 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
8105 # If the user did not use the arguments to specify the items to instantiate,
8106 # then the envvar interface is used. Set only those that are not.
8107 # We use the long form for the default assignment because of an extremely
8108 # bizarre bug on SunOS 4.1.3.
8109 if $ac_need_defaults; then
8110 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8111 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8112 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
8115 # Have a temporary directory for convenience. Make it in the build tree
8116 # simply because there is no reason against having it here, and in addition,
8117 # creating and moving files from /tmp can sometimes cause problems.
8118 # Hook for its removal unless debugging.
8119 # Note that there is a small window in which the directory will not be cleaned:
8120 # after its creation but before its name has been assigned to `$tmp'.
8124 trap 'exit_status=$?
8125 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
8127 trap 'as_fn_exit 1' 1 2 13 15
8129 # Create a (secure) tmp directory for tmp files.
8132 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8133 test -n "$tmp" && test -d "$tmp"
8136 tmp=./conf$$-$RANDOM
8137 (umask 077 && mkdir "$tmp")
8138 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
8140 # Set up the scripts for CONFIG_FILES section.
8141 # No need to generate them if there are no CONFIG_FILES.
8142 # This happens for instance with `./config.status config.h'.
8143 if test -n "$CONFIG_FILES"; then
8146 ac_cr=`echo X | tr X '\015'`
8147 # On cygwin, bash can eat \r inside `` if the user requested igncr.
8148 # But we know of no other shell where ac_cr would be empty at this
8149 # point, so we can use a bashism as a fallback.
8150 if test "x$ac_cr" = x; then
8151 eval ac_cr=\$\'\\r\'
8153 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
8154 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
8160 echo 'BEGIN {' >"$tmp/subs1.awk" &&
8165 echo "cat >conf$$subs.awk <<_ACEOF" &&
8166 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
8169 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
8170 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
8172 for ac_last_try in false false false false false :; do
8173 . ./conf$$subs.sh ||
8174 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
8176 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
8177 if test $ac_delim_n = $ac_delim_num; then
8179 elif $ac_last_try; then
8180 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
8182 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8187 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8188 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
8192 s/^/S["/; s/!.*/"]=/
8202 s/\(.\{148\}\).*/\1/
8204 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
8209 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8216 s/\(.\{148\}\).*/\1/
8218 s/["\\]/\\&/g; s/^/"/; s/$/"/
8222 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8227 ' <conf$$subs.awk | sed '
8232 ' >>$CONFIG_STATUS || ac_write_fail=1
8233 rm -f conf$$subs.awk
8234 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8236 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
8237 for (key in S) S_is_set[key] = 1
8243 nfields = split(line, field, "@")
8245 len = length(field[1])
8246 for (i = 2; i < nfields; i++) {
8248 keylen = length(key)
8249 if (S_is_set[key]) {
8251 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
8252 len += length(value) + length(field[++i])
8263 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8264 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
8265 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
8268 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
8269 || as_fn_error "could not setup config files machinery" "$LINENO" 5
8272 # VPATH may cause trouble with some makes, so we remove $(srcdir),
8273 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8274 # trailing colons and then remove the whole line if VPATH becomes empty
8275 # (actually we leave an empty line to preserve line numbers).
8276 if test "x$srcdir" = x.; then
8277 ac_vpsub='/^[ ]*VPATH[ ]*=/{
8281 s/^\([^=]*=[ ]*\):*/\1/
8287 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8288 fi # test -n "$CONFIG_FILES"
8290 # Set up the scripts for CONFIG_HEADERS section.
8291 # No need to generate them if there are no CONFIG_HEADERS.
8292 # This happens for instance with `./config.status Makefile'.
8293 if test -n "$CONFIG_HEADERS"; then
8294 cat >"$tmp/defines.awk" <<\_ACAWK ||
8298 # Transform confdefs.h into an awk script `defines.awk', embedded as
8299 # here-document in config.status, that substitutes the proper values into
8300 # config.h.in to produce config.h.
8302 # Create a delimiter string that does not exist in confdefs.h, to ease
8303 # handling of long lines.
8305 for ac_last_try in false false :; do
8306 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
8307 if test -z "$ac_t"; then
8309 elif $ac_last_try; then
8310 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
8312 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8316 # For the awk script, D is an array of macro values keyed by name,
8317 # likewise P contains macro parameters if any. Preserve backslash
8318 # newline sequences.
8320 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
8322 s/.\{148\}/&'"$ac_delim"'/g
8325 s/^[ ]*#[ ]*define[ ][ ]*/ /
8332 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
8334 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
8338 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
8339 D["\1"]=" \3\\\\\\n"\\/p
8341 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
8346 s/.\{148\}/&'"$ac_delim"'/g
8351 s/["\\]/\\&/g; s/^/"/; s/$/"/p
8354 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
8356 ' <confdefs.h | sed '
8357 s/'"$ac_delim"'/"\\\
8358 "/g' >>$CONFIG_STATUS || ac_write_fail=1
8360 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8361 for (key in D) D_is_set[key] = 1
8364 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
8366 split(line, arg, " ")
8367 if (arg[1] == "#") {
8371 defundef = substr(arg[1], 2)
8374 split(mac1, mac2, "(") #)
8376 prefix = substr(line, 1, index(line, defundef) - 1)
8377 if (D_is_set[macro]) {
8378 # Preserve the white space surrounding the "#".
8379 print prefix "define", macro P[macro] D[macro]
8382 # Replace #undef with comments. This is necessary, for example,
8383 # in the case of _POSIX_SOURCE, which is predefined and required
8384 # on some systems where configure will not decide to define it.
8385 if (defundef == "undef") {
8386 print "/*", prefix defundef, macro, "*/"
8394 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8395 as_fn_error "could not setup config headers machinery" "$LINENO" 5
8396 fi # test -n "$CONFIG_HEADERS"
8399 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
8404 :[FHLC]) ac_mode=$ac_tag; continue;;
8406 case $ac_mode$ac_tag in
8408 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
8409 :[FH]-) ac_tag=-:-;;
8410 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
8427 -) ac_f="$tmp/stdin";;
8428 *) # Look for the file first in the build tree, then in the source tree
8429 # (if the path is not absolute). The absolute path cannot be DOS-style,
8430 # because $ac_f cannot contain `:'.
8434 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
8436 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
8438 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
8439 as_fn_append ac_file_inputs " '$ac_f'"
8442 # Let's still pretend it is `configure' which instantiates (i.e., don't
8443 # use $as_me), people would be surprised to read:
8444 # /* config.h. Generated by config.status. */
8445 configure_input='Generated from '`
8446 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
8448 if test x"$ac_file" != x-; then
8449 configure_input="$ac_file. $configure_input"
8450 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
8451 $as_echo "$as_me: creating $ac_file" >&6;}
8453 # Neutralize special characters interpreted by sed in replacement strings.
8454 case $configure_input in #(
8455 *\&* | *\|* | *\\* )
8456 ac_sed_conf_input=`$as_echo "$configure_input" |
8457 sed 's/[\\\\&|]/\\\\&/g'`;; #(
8458 *) ac_sed_conf_input=$configure_input;;
8462 *:-:* | *:-) cat >"$tmp/stdin" \
8463 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
8468 ac_dir=`$as_dirname -- "$ac_file" ||
8469 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8470 X"$ac_file" : 'X\(//\)[^/]' \| \
8471 X"$ac_file" : 'X\(//\)$' \| \
8472 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8473 $as_echo X"$ac_file" |
8474 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8491 as_dir="$ac_dir"; as_fn_mkdir_p
8495 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
8497 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
8498 # A ".." for each directory in $ac_dir_suffix.
8499 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
8500 case $ac_top_builddir_sub in
8501 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
8502 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
8505 ac_abs_top_builddir=$ac_pwd
8506 ac_abs_builddir=$ac_pwd$ac_dir_suffix
8507 # for backward compatibility:
8508 ac_top_builddir=$ac_top_build_prefix
8511 .) # We are building in place.
8513 ac_top_srcdir=$ac_top_builddir_sub
8514 ac_abs_top_srcdir=$ac_pwd ;;
8515 [\\/]* | ?:[\\/]* ) # Absolute name.
8516 ac_srcdir=$srcdir$ac_dir_suffix;
8517 ac_top_srcdir=$srcdir
8518 ac_abs_top_srcdir=$srcdir ;;
8520 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
8521 ac_top_srcdir=$ac_top_build_prefix$srcdir
8522 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8524 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8534 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8535 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
8539 [\\/$]* | ?:[\\/]* ) ;;
8540 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
8544 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8545 # If the template does not know about datarootdir, expand it.
8546 # FIXME: This hack should be removed a few years after 2.60.
8547 ac_datarootdir_hack=; ac_datarootdir_seen=
8558 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
8559 *datarootdir*) ac_datarootdir_seen=yes;;
8560 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
8561 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8562 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
8564 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8565 ac_datarootdir_hack='
8566 s&@datadir@&$datadir&g
8567 s&@docdir@&$docdir&g
8568 s&@infodir@&$infodir&g
8569 s&@localedir@&$localedir&g
8570 s&@mandir@&$mandir&g
8571 s&\\\${datarootdir}&$datarootdir&g' ;;
8575 # Neutralize VPATH when `$srcdir' = `.'.
8576 # Shell code in configure.ac might set extrasub.
8577 # FIXME: do we really want to maintain this feature?
8578 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8579 ac_sed_extra="$ac_vpsub
8582 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8584 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8585 s|@configure_input@|$ac_sed_conf_input|;t t
8586 s&@top_builddir@&$ac_top_builddir_sub&;t t
8587 s&@top_build_prefix@&$ac_top_build_prefix&;t t
8588 s&@srcdir@&$ac_srcdir&;t t
8589 s&@abs_srcdir@&$ac_abs_srcdir&;t t
8590 s&@top_srcdir@&$ac_top_srcdir&;t t
8591 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
8592 s&@builddir@&$ac_builddir&;t t
8593 s&@abs_builddir@&$ac_abs_builddir&;t t
8594 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
8595 s&@INSTALL@&$ac_INSTALL&;t t
8596 s&@MKDIR_P@&$ac_MKDIR_P&;t t
8597 $ac_datarootdir_hack
8599 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
8600 || as_fn_error "could not create $ac_file" "$LINENO" 5
8602 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
8603 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
8604 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
8605 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8606 which seems to be undefined. Please make sure it is defined." >&5
8607 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8608 which seems to be undefined. Please make sure it is defined." >&2;}
8612 -) cat "$tmp/out" && rm -f "$tmp/out";;
8613 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
8615 || as_fn_error "could not create $ac_file" "$LINENO" 5
8621 if test x"$ac_file" != x-; then
8623 $as_echo "/* $configure_input */" \
8624 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
8625 } >"$tmp/config.h" \
8626 || as_fn_error "could not create $ac_file" "$LINENO" 5
8627 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
8628 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
8629 $as_echo "$as_me: $ac_file is unchanged" >&6;}
8632 mv "$tmp/config.h" "$ac_file" \
8633 || as_fn_error "could not create $ac_file" "$LINENO" 5
8636 $as_echo "/* $configure_input */" \
8637 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
8638 || as_fn_error "could not create -" "$LINENO" 5
8640 # Compute "$ac_file"'s index in $config_headers.
8643 for _am_header in $config_headers :; do
8645 $_am_arg | $_am_arg:* )
8648 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
8651 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
8652 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8653 X"$_am_arg" : 'X\(//\)[^/]' \| \
8654 X"$_am_arg" : 'X\(//\)$' \| \
8655 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
8656 $as_echo X"$_am_arg" |
8657 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8673 s/.*/./; q'`/stamp-h$_am_stamp_count
8676 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
8677 $as_echo "$as_me: executing $ac_file commands" >&6;}
8682 case $ac_file$ac_mode in
8683 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
8684 # Autoconf 2.62 quotes --file arguments for eval, but not when files
8685 # are listed without --file. Let's play safe and only enable the eval
8686 # if we detect the quoting.
8687 case $CONFIG_FILES in
8688 *\'*) eval set x "$CONFIG_FILES" ;;
8689 *) set x $CONFIG_FILES ;;
8694 # Strip MF so we end up with the name of the file.
8695 mf=`echo "$mf" | sed -e 's/:.*$//'`
8696 # Check whether this is an Automake generated Makefile or not.
8697 # We used to match only the files named `Makefile.in', but
8698 # some people rename them; so instead we look at the file content.
8699 # Grep'ing the first line is not enough: some people post-process
8700 # each Makefile.in and add a new line on top of each file to say so.
8701 # Grep'ing the whole file is not good either: AIX grep has a line
8702 # limit of 2048, but all sed's we know have understand at least 4000.
8703 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
8704 dirpart=`$as_dirname -- "$mf" ||
8705 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8706 X"$mf" : 'X\(//\)[^/]' \| \
8707 X"$mf" : 'X\(//\)$' \| \
8708 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
8710 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8730 # Extract the definition of DEPDIR, am__include, and am__quote
8731 # from the Makefile without running `make'.
8732 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
8733 test -z "$DEPDIR" && continue
8734 am__include=`sed -n 's/^am__include = //p' < "$mf"`
8735 test -z "am__include" && continue
8736 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
8737 # When using ansi2knr, U may be empty or an underscore; expand it
8738 U=`sed -n 's/^U = //p' < "$mf"`
8739 # Find all dependency output files, they are included files with
8740 # $(DEPDIR) in their names. We invoke sed twice because it is the
8741 # simplest approach to changing $(DEPDIR) to its actual value in the
8743 for file in `sed -n "
8744 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
8745 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
8746 # Make sure the directory exists.
8747 test -f "$dirpart/$file" && continue
8748 fdir=`$as_dirname -- "$file" ||
8749 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8750 X"$file" : 'X\(//\)[^/]' \| \
8751 X"$file" : 'X\(//\)$' \| \
8752 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
8754 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8771 as_dir=$dirpart/$fdir; as_fn_mkdir_p
8772 # echo "creating $dirpart/$file"
8773 echo '# dummy' > "$dirpart/$file"
8779 for ac_file in $CONFIG_FILES; do
8780 # Support "outfile[:infile[:infile...]]"
8782 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
8784 # PO directories have a Makefile.in generated from Makefile.in.in.
8785 case "$ac_file" in */Makefile.in)
8786 # Adjust a relative srcdir.
8787 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
8788 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
8789 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
8790 # In autoconf-2.13 it is called $ac_given_srcdir.
8791 # In autoconf-2.50 it is called $srcdir.
8792 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
8793 case "$ac_given_srcdir" in
8794 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
8795 /*) top_srcdir="$ac_given_srcdir" ;;
8796 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
8798 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
8799 rm -f "$ac_dir/POTFILES"
8800 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
8801 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
8802 POMAKEFILEDEPS="POTFILES.in"
8803 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
8804 # on $ac_dir but don't depend on user-specified configuration
8806 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
8807 # The LINGUAS file contains the set of available languages.
8808 if test -n "$OBSOLETE_ALL_LINGUAS"; then
8809 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
8811 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
8812 # Hide the ALL_LINGUAS assigment from automake.
8813 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
8814 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
8816 # The set of available languages was given in configure.in.
8817 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
8819 case "$ac_given_srcdir" in
8821 *) srcdirpre='$(srcdir)/' ;;
8827 for lang in $ALL_LINGUAS; do
8828 POFILES="$POFILES $srcdirpre$lang.po"
8829 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
8830 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
8831 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
8833 # CATALOGS depends on both $ac_dir and the user's LINGUAS
8834 # environment variable.
8836 if test -n "$ALL_LINGUAS"; then
8837 for presentlang in $ALL_LINGUAS; do
8839 if test "%UNSET%" != "$LINGUAS"; then
8840 desiredlanguages="$LINGUAS"
8842 desiredlanguages="$ALL_LINGUAS"
8844 for desiredlang in $desiredlanguages; do
8845 # Use the presentlang catalog if desiredlang is
8846 # a. equal to presentlang, or
8847 # b. a variant of presentlang (because in this case,
8848 # presentlang can be used as a fallback for messages
8849 # which are not translated in the desiredlang catalog).
8850 case "$desiredlang" in
8851 "$presentlang"*) useit=yes;;
8854 if test $useit = yes; then
8855 INST_LINGUAS="$INST_LINGUAS $presentlang"
8860 if test -n "$INST_LINGUAS"; then
8861 for lang in $INST_LINGUAS; do
8862 CATALOGS="$CATALOGS $lang.gmo"
8865 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
8866 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"
8867 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
8868 if test -f "$f"; then
8870 *.orig | *.bak | *~) ;;
8871 *) cat "$f" >> "$ac_dir/Makefile" ;;
8886 ac_clean_files=$ac_clean_files_save
8888 test $ac_write_fail = 0 ||
8889 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
8892 # configure is writing to config.log, and then calls config.status.
8893 # config.status does its own redirection, appending to config.log.
8894 # Unfortunately, on DOS this fails, as config.log is still kept open
8895 # by configure, so config.status won't be able to write to it; its
8896 # output is simply discarded. So we exec the FD to /dev/null,
8897 # effectively closing config.log, so it can be properly (re)opened and
8898 # appended to by config.status. When coming back to configure, we
8899 # need to make the FD available again.
8900 if test "$no_create" != yes; then
8902 ac_config_status_args=
8903 test "$silent" = yes &&
8904 ac_config_status_args="$ac_config_status_args --quiet"
8906 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8908 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8909 # would make configure fail if this is the last instruction.
8910 $ac_cs_success || as_fn_exit $?
8912 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
8913 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
8914 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}