2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
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.
554 ac_unique_file="move-if-change"
555 enable_option_checking=no
556 ac_subst_vars='LTLIBOBJS
563 MAINTAINER_MODE_FALSE
565 COMPILER_NM_FOR_TARGET
566 COMPILER_LD_FOR_TARGET
567 COMPILER_AS_FOR_TARGET
638 DEBUG_PREFIX_CFLAGS_FOR_TARGET
639 SYSROOT_CFLAGS_FOR_TARGET
641 extra_host_libiberty_configure_flags
650 extra_mpc_mpfr_configure_flags
651 extra_mpc_gmp_configure_flags
652 extra_mpfr_configure_flags
694 TOPLEVEL_CONFIGURE_ARGUMENTS
722 program_transform_name
733 ac_subst_files='serialization_dependencies
739 enable_option_checking
744 enable_build_with_cxx
764 enable_ppl_version_check
769 enable_cloog_version_check
771 enable_stage1_languages
774 with_debug_prefix_map
777 enable_serial_configure
778 with_build_time_tools
779 enable_maintainer_mode
780 enable_stage1_checking
783 ac_precious_vars='build_alias
827 # Initialize some variables set by options.
829 ac_init_version=false
830 ac_unrecognized_opts=
832 # The variables have the same names as the options, with
833 # dashes changed to underlines.
841 program_transform_name=s,x,x,
849 # Installation directory options.
850 # These are left unexpanded so users can "make install exec_prefix=/foo"
851 # and all the variables that are supposed to be based on exec_prefix
852 # by default will actually change.
853 # Use braces instead of parens because sh, perl, etc. also accept them.
854 # (The list follows the same order as the GNU Coding Standards.)
855 bindir='${exec_prefix}/bin'
856 sbindir='${exec_prefix}/sbin'
857 libexecdir='${exec_prefix}/libexec'
858 datarootdir='${prefix}/share'
859 datadir='${datarootdir}'
860 sysconfdir='${prefix}/etc'
861 sharedstatedir='${prefix}/com'
862 localstatedir='${prefix}/var'
863 includedir='${prefix}/include'
864 oldincludedir='/usr/include'
865 docdir='${datarootdir}/doc/${PACKAGE}'
866 infodir='${datarootdir}/info'
871 libdir='${exec_prefix}/lib'
872 localedir='${datarootdir}/locale'
873 mandir='${datarootdir}/man'
879 # If the previous option needs an argument, assign it.
880 if test -n "$ac_prev"; then
881 eval $ac_prev=\$ac_option
887 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
891 # Accept the important Cygnus configure options, so we can diagnose typos.
893 case $ac_dashdash$ac_option in
897 -bindir | --bindir | --bindi | --bind | --bin | --bi)
899 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
902 -build | --build | --buil | --bui | --bu)
903 ac_prev=build_alias ;;
904 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
905 build_alias=$ac_optarg ;;
907 -cache-file | --cache-file | --cache-fil | --cache-fi \
908 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
909 ac_prev=cache_file ;;
910 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
911 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
912 cache_file=$ac_optarg ;;
915 cache_file=config.cache ;;
917 -datadir | --datadir | --datadi | --datad)
919 -datadir=* | --datadir=* | --datadi=* | --datad=*)
920 datadir=$ac_optarg ;;
922 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
923 | --dataroo | --dataro | --datar)
924 ac_prev=datarootdir ;;
925 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
926 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
927 datarootdir=$ac_optarg ;;
929 -disable-* | --disable-*)
930 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
931 # Reject names that are not valid shell variable names.
932 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
933 as_fn_error "invalid feature name: $ac_useropt"
934 ac_useropt_orig=$ac_useropt
935 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
936 case $ac_user_opts in
940 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
941 ac_unrecognized_sep=', ';;
943 eval enable_$ac_useropt=no ;;
945 -docdir | --docdir | --docdi | --doc | --do)
947 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
950 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
952 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
955 -enable-* | --enable-*)
956 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
957 # Reject names that are not valid shell variable names.
958 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
959 as_fn_error "invalid feature name: $ac_useropt"
960 ac_useropt_orig=$ac_useropt
961 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
962 case $ac_user_opts in
966 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
967 ac_unrecognized_sep=', ';;
969 eval enable_$ac_useropt=\$ac_optarg ;;
971 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
972 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
973 | --exec | --exe | --ex)
974 ac_prev=exec_prefix ;;
975 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
976 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
977 | --exec=* | --exe=* | --ex=*)
978 exec_prefix=$ac_optarg ;;
980 -gas | --gas | --ga | --g)
981 # Obsolete; use --with-gas.
984 -help | --help | --hel | --he | -h)
986 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
987 ac_init_help=recursive ;;
988 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
989 ac_init_help=short ;;
991 -host | --host | --hos | --ho)
992 ac_prev=host_alias ;;
993 -host=* | --host=* | --hos=* | --ho=*)
994 host_alias=$ac_optarg ;;
996 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
998 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1000 htmldir=$ac_optarg ;;
1002 -includedir | --includedir | --includedi | --included | --include \
1003 | --includ | --inclu | --incl | --inc)
1004 ac_prev=includedir ;;
1005 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1006 | --includ=* | --inclu=* | --incl=* | --inc=*)
1007 includedir=$ac_optarg ;;
1009 -infodir | --infodir | --infodi | --infod | --info | --inf)
1011 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1012 infodir=$ac_optarg ;;
1014 -libdir | --libdir | --libdi | --libd)
1016 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1017 libdir=$ac_optarg ;;
1019 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1020 | --libexe | --libex | --libe)
1021 ac_prev=libexecdir ;;
1022 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1023 | --libexe=* | --libex=* | --libe=*)
1024 libexecdir=$ac_optarg ;;
1026 -localedir | --localedir | --localedi | --localed | --locale)
1027 ac_prev=localedir ;;
1028 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1029 localedir=$ac_optarg ;;
1031 -localstatedir | --localstatedir | --localstatedi | --localstated \
1032 | --localstate | --localstat | --localsta | --localst | --locals)
1033 ac_prev=localstatedir ;;
1034 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1035 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1036 localstatedir=$ac_optarg ;;
1038 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1040 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1041 mandir=$ac_optarg ;;
1043 -nfp | --nfp | --nf)
1044 # Obsolete; use --without-fp.
1047 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1048 | --no-cr | --no-c | -n)
1051 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1052 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1055 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1056 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1057 | --oldin | --oldi | --old | --ol | --o)
1058 ac_prev=oldincludedir ;;
1059 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1060 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1061 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1062 oldincludedir=$ac_optarg ;;
1064 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1066 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1067 prefix=$ac_optarg ;;
1069 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1070 | --program-pre | --program-pr | --program-p)
1071 ac_prev=program_prefix ;;
1072 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1073 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1074 program_prefix=$ac_optarg ;;
1076 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1077 | --program-suf | --program-su | --program-s)
1078 ac_prev=program_suffix ;;
1079 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1080 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1081 program_suffix=$ac_optarg ;;
1083 -program-transform-name | --program-transform-name \
1084 | --program-transform-nam | --program-transform-na \
1085 | --program-transform-n | --program-transform- \
1086 | --program-transform | --program-transfor \
1087 | --program-transfo | --program-transf \
1088 | --program-trans | --program-tran \
1089 | --progr-tra | --program-tr | --program-t)
1090 ac_prev=program_transform_name ;;
1091 -program-transform-name=* | --program-transform-name=* \
1092 | --program-transform-nam=* | --program-transform-na=* \
1093 | --program-transform-n=* | --program-transform-=* \
1094 | --program-transform=* | --program-transfor=* \
1095 | --program-transfo=* | --program-transf=* \
1096 | --program-trans=* | --program-tran=* \
1097 | --progr-tra=* | --program-tr=* | --program-t=*)
1098 program_transform_name=$ac_optarg ;;
1100 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1102 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1103 pdfdir=$ac_optarg ;;
1105 -psdir | --psdir | --psdi | --psd | --ps)
1107 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1110 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1111 | -silent | --silent | --silen | --sile | --sil)
1114 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1116 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1118 sbindir=$ac_optarg ;;
1120 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1121 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1122 | --sharedst | --shareds | --shared | --share | --shar \
1124 ac_prev=sharedstatedir ;;
1125 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1126 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1127 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1129 sharedstatedir=$ac_optarg ;;
1131 -site | --site | --sit)
1133 -site=* | --site=* | --sit=*)
1136 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1138 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1139 srcdir=$ac_optarg ;;
1141 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1142 | --syscon | --sysco | --sysc | --sys | --sy)
1143 ac_prev=sysconfdir ;;
1144 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1145 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1146 sysconfdir=$ac_optarg ;;
1148 -target | --target | --targe | --targ | --tar | --ta | --t)
1149 ac_prev=target_alias ;;
1150 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1151 target_alias=$ac_optarg ;;
1153 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1156 -version | --version | --versio | --versi | --vers | -V)
1157 ac_init_version=: ;;
1160 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1161 # Reject names that are not valid shell variable names.
1162 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1163 as_fn_error "invalid package name: $ac_useropt"
1164 ac_useropt_orig=$ac_useropt
1165 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1166 case $ac_user_opts in
1170 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1171 ac_unrecognized_sep=', ';;
1173 eval with_$ac_useropt=\$ac_optarg ;;
1175 -without-* | --without-*)
1176 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1177 # Reject names that are not valid shell variable names.
1178 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1179 as_fn_error "invalid package name: $ac_useropt"
1180 ac_useropt_orig=$ac_useropt
1181 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1182 case $ac_user_opts in
1186 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1187 ac_unrecognized_sep=', ';;
1189 eval with_$ac_useropt=no ;;
1192 # Obsolete; use --with-x.
1195 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1196 | --x-incl | --x-inc | --x-in | --x-i)
1197 ac_prev=x_includes ;;
1198 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1199 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1200 x_includes=$ac_optarg ;;
1202 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1203 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1204 ac_prev=x_libraries ;;
1205 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1206 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1207 x_libraries=$ac_optarg ;;
1209 -*) as_fn_error "unrecognized option: \`$ac_option'
1210 Try \`$0 --help' for more information."
1214 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1215 # Reject names that are not valid shell variable names.
1216 case $ac_envvar in #(
1217 '' | [0-9]* | *[!_$as_cr_alnum]* )
1218 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1220 eval $ac_envvar=\$ac_optarg
1221 export $ac_envvar ;;
1224 # FIXME: should be removed in autoconf 3.0.
1225 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1226 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1227 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1228 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1234 if test -n "$ac_prev"; then
1235 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1236 as_fn_error "missing argument to $ac_option"
1239 if test -n "$ac_unrecognized_opts"; then
1240 case $enable_option_checking in
1242 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1243 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1247 # Check all directory arguments for consistency.
1248 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1249 datadir sysconfdir sharedstatedir localstatedir includedir \
1250 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1251 libdir localedir mandir
1253 eval ac_val=\$$ac_var
1254 # Remove trailing slashes.
1257 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1258 eval $ac_var=\$ac_val;;
1260 # Be sure to have absolute directory names.
1262 [\\/$]* | ?:[\\/]* ) continue;;
1263 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1265 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1268 # There might be people who depend on the old broken behavior: `$host'
1269 # used to hold the argument of --host etc.
1270 # FIXME: To remove some day.
1273 target=$target_alias
1275 # FIXME: To remove some day.
1276 if test "x$host_alias" != x; then
1277 if test "x$build_alias" = x; then
1278 cross_compiling=maybe
1279 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1280 If a cross compiler is detected then cross compile mode will be used." >&2
1281 elif test "x$build_alias" != "x$host_alias"; then
1287 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1289 test "$silent" = yes && exec 6>/dev/null
1292 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1293 ac_ls_di=`ls -di .` &&
1294 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1295 as_fn_error "working directory cannot be determined"
1296 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1297 as_fn_error "pwd does not report name of working directory"
1300 # Find the source files, if location was not specified.
1301 if test -z "$srcdir"; then
1302 ac_srcdir_defaulted=yes
1303 # Try the directory containing this script, then the parent directory.
1304 ac_confdir=`$as_dirname -- "$as_myself" ||
1305 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1306 X"$as_myself" : 'X\(//\)[^/]' \| \
1307 X"$as_myself" : 'X\(//\)$' \| \
1308 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1309 $as_echo X"$as_myself" |
1310 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1328 if test ! -r "$srcdir/$ac_unique_file"; then
1332 ac_srcdir_defaulted=no
1334 if test ! -r "$srcdir/$ac_unique_file"; then
1335 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1336 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1338 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1340 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1342 # When building in place, set srcdir=.
1343 if test "$ac_abs_confdir" = "$ac_pwd"; then
1346 # Remove unnecessary trailing slashes from srcdir.
1347 # Double slashes in file names in object file debugging info
1348 # mess up M-x gdb in Emacs.
1350 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1354 as_fn_error "path to source, $srcdir, contains spaces"
1357 ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1359 for ac_var in $ac_precious_vars; do
1360 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1361 eval ac_env_${ac_var}_value=\$${ac_var}
1362 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1363 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1367 # Report the --help message.
1369 if test "$ac_init_help" = "long"; then
1370 # Omit some internal or obsolete options to make the list less imposing.
1371 # This message is too long to be a string in the A/UX 3.1 sh.
1373 \`configure' configures this package to adapt to many kinds of systems.
1375 Usage: $0 [OPTION]... [VAR=VALUE]...
1377 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1378 VAR=VALUE. See below for descriptions of some of the useful variables.
1380 Defaults for the options are specified in brackets.
1383 -h, --help display this help and exit
1384 --help=short display options specific to this package
1385 --help=recursive display the short help of all the included packages
1386 -V, --version display version information and exit
1387 -q, --quiet, --silent do not print \`checking...' messages
1388 --cache-file=FILE cache test results in FILE [disabled]
1389 -C, --config-cache alias for \`--cache-file=config.cache'
1390 -n, --no-create do not create output files
1391 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1393 Installation directories:
1394 --prefix=PREFIX install architecture-independent files in PREFIX
1395 [$ac_default_prefix]
1396 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1399 By default, \`make install' will install all the files in
1400 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1401 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1402 for instance \`--prefix=\$HOME'.
1404 For better control, use the options below.
1406 Fine tuning of the installation directories:
1407 --bindir=DIR user executables [EPREFIX/bin]
1408 --sbindir=DIR system admin executables [EPREFIX/sbin]
1409 --libexecdir=DIR program executables [EPREFIX/libexec]
1410 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1411 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1412 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1413 --libdir=DIR object code libraries [EPREFIX/lib]
1414 --includedir=DIR C header files [PREFIX/include]
1415 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1416 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1417 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1418 --infodir=DIR info documentation [DATAROOTDIR/info]
1419 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1420 --mandir=DIR man documentation [DATAROOTDIR/man]
1421 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1422 --htmldir=DIR html documentation [DOCDIR]
1423 --dvidir=DIR dvi documentation [DOCDIR]
1424 --pdfdir=DIR pdf documentation [DOCDIR]
1425 --psdir=DIR ps documentation [DOCDIR]
1431 --program-prefix=PREFIX prepend PREFIX to installed program names
1432 --program-suffix=SUFFIX append SUFFIX to installed program names
1433 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1436 --build=BUILD configure for building on BUILD [guessed]
1437 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1438 --target=TARGET configure for building compilers for TARGET [HOST]
1442 if test -n "$ac_init_help"; then
1447 --disable-option-checking ignore unrecognized --enable/--with options
1448 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1449 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1450 --enable-gold[=ARG] build gold [ARG={both}[/{gold,ld}]]
1451 --enable-libada build libada directory
1452 --enable-libssp build libssp directory
1453 --enable-build-with-cxx build with C++ compiler instead of C compiler
1454 --disable-ppl-version-check disable check for PPL version
1455 --enable-cloog-backend=backend
1456 isl: The cloog.org isl backend
1457 ppl-legacy: The legacy ppl backend - default
1458 ppl: The cloog.org ppl backend
1459 --disable-cloog-version-check
1460 disable check for CLooG version
1461 --enable-lto enable link time optimization support
1462 --enable-stage1-languages[=all] choose additional languages to build during
1463 stage1. Mostly useful for compiler development.
1464 --enable-objc-gc enable use of Boehm's garbage collector with the
1465 GNU Objective-C runtime
1466 --enable-bootstrap enable bootstrapping [yes if native build]
1467 --enable-serial-[{host,target,build}-]configure
1468 force sequential configuration of
1469 sub-packages for the host, target or build
1470 machine, or all sub-packages
1471 --enable-maintainer-mode enable make rules and dependencies not useful
1472 (and sometimes confusing) to the casual installer
1473 --enable-stage1-checking[=all] choose additional checking for stage1
1475 --enable-werror enable -Werror in bootstrap stage2 and later
1478 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1479 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1480 --with-build-libsubdir=DIR Directory where to find libraries for build system
1481 --with-mpc=PATH specify prefix directory for installed MPC package.
1482 Equivalent to --with-mpc-include=PATH/include
1483 plus --with-mpc-lib=PATH/lib
1484 --with-mpc-include=PATH
1485 specify directory for installed MPC include files
1486 --with-mpc-lib=PATH specify directory for the installed MPC library
1487 --with-mpfr-dir=PATH this option has been REMOVED
1488 --with-mpfr=PATH specify prefix directory for installed MPFR package.
1489 Equivalent to --with-mpfr-include=PATH/include
1490 plus --with-mpfr-lib=PATH/lib
1491 --with-mpfr-include=PATH
1492 specify directory for installed MPFR include files
1493 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1494 --with-gmp-dir=PATH this option has been REMOVED
1495 --with-gmp=PATH specify prefix directory for the installed GMP package.
1496 Equivalent to --with-gmp-include=PATH/include
1497 plus --with-gmp-lib=PATH/lib
1498 --with-gmp-include=PATH specify directory for installed GMP include files
1499 --with-gmp-lib=PATH specify directory for the installed GMP library
1500 --with-host-libstdcxx=L Use linker arguments L to link with libstdc++
1501 when linking with PPL
1502 --with-stage1-ldflags=FLAGS Linker flags for stage1
1503 -with-stage1-libs=LIBS Libraries for stage1
1504 --with-boot-libs=LIBS Libraries for stage2 and later
1505 --with-boot-ldflags=FLAGS Linker flags for stage2 and later
1506 --with-ppl=PATH Specify prefix directory for the installed PPL package
1507 Equivalent to --with-ppl-include=PATH/include
1508 plus --with-ppl-lib=PATH/lib
1509 --with-ppl-include=PATH Specify directory for installed PPL include files
1510 --with-ppl-lib=PATH Specify the directory for the installed PPL library
1511 --with-cloog=PATH Specify prefix directory for the installed CLooG-PPL
1512 package. Equivalent to
1513 --with-cloog-include=PATH/include plus
1514 --with-cloog-lib=PATH/lib
1515 --with-cloog-include=PATH
1516 Specify directory for installed CLooG include files
1517 --with-cloog-lib=PATH Specify the directory for the installed CLooG
1519 --with-build-sysroot=SYSROOT
1520 use sysroot as the system root during the build
1521 --with-debug-prefix-map='A=B C=D ...'
1522 map A to B, C to D ... in debug information
1523 --with-build-config='NAME NAME2...'
1524 Use config/NAME.mk build configuration
1525 --with-build-time-tools=PATH
1526 use given path to find target tools during the build
1528 Some influential environment variables:
1529 CC C compiler command
1530 CFLAGS C compiler flags
1531 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1532 nonstandard directory <lib dir>
1533 LIBS libraries to pass to the linker, e.g. -l<library>
1534 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1535 you have headers in a nonstandard directory <include dir>
1536 CXX C++ compiler command
1537 CXXFLAGS C++ compiler flags
1539 additional configure arguments for build directories
1541 additional configure arguments for host directories
1543 additional configure arguments for target directories
1546 DLLTOOL DLLTOOL for the host
1548 LIPO LIPO for the host
1550 RANLIB RANLIB for the host
1551 STRIP STRIP for the host
1552 WINDRES WINDRES for the host
1553 WINDMC WINDMC for the host
1554 OBJCOPY OBJCOPY for the host
1555 OBJDUMP OBJDUMP for the host
1565 GFORTRAN for the target
1571 DLLTOOL for the target
1579 OBJDUMP for the target
1581 RANLIB for the target
1583 STRIP for the target
1585 WINDRES for the target
1587 WINDMC for the target
1589 Use these variables to override the choices made by `configure' or to help
1590 it to find libraries and programs with nonstandard names/locations.
1592 Report bugs to the package provider.
1597 if test "$ac_init_help" = "recursive"; then
1598 # If there are subdirs, report their specific --help.
1599 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1600 test -d "$ac_dir" ||
1601 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1606 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1608 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1609 # A ".." for each directory in $ac_dir_suffix.
1610 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1611 case $ac_top_builddir_sub in
1612 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1613 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1616 ac_abs_top_builddir=$ac_pwd
1617 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1618 # for backward compatibility:
1619 ac_top_builddir=$ac_top_build_prefix
1622 .) # We are building in place.
1624 ac_top_srcdir=$ac_top_builddir_sub
1625 ac_abs_top_srcdir=$ac_pwd ;;
1626 [\\/]* | ?:[\\/]* ) # Absolute name.
1627 ac_srcdir=$srcdir$ac_dir_suffix;
1628 ac_top_srcdir=$srcdir
1629 ac_abs_top_srcdir=$srcdir ;;
1631 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1632 ac_top_srcdir=$ac_top_build_prefix$srcdir
1633 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1635 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1637 cd "$ac_dir" || { ac_status=$?; continue; }
1638 # Check for guested configure.
1639 if test -f "$ac_srcdir/configure.gnu"; then
1641 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1642 elif test -f "$ac_srcdir/configure"; then
1644 $SHELL "$ac_srcdir/configure" --help=recursive
1646 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1648 cd "$ac_pwd" || { ac_status=$?; break; }
1652 test -n "$ac_init_help" && exit $ac_status
1653 if $ac_init_version; then
1656 generated by GNU Autoconf 2.64
1658 Copyright (C) 2009 Free Software Foundation, Inc.
1659 This configure script is free software; the Free Software Foundation
1660 gives unlimited permission to copy, distribute and modify it.
1665 ## ------------------------ ##
1666 ## Autoconf initialization. ##
1667 ## ------------------------ ##
1669 # ac_fn_c_try_compile LINENO
1670 # --------------------------
1671 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1672 ac_fn_c_try_compile ()
1674 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1675 rm -f conftest.$ac_objext
1676 if { { ac_try="$ac_compile"
1678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1679 *) ac_try_echo=$ac_try;;
1681 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1682 $as_echo "$ac_try_echo"; } >&5
1683 (eval "$ac_compile") 2>conftest.err
1685 if test -s conftest.err; then
1686 grep -v '^ *+' conftest.err >conftest.er1
1687 cat conftest.er1 >&5
1688 mv -f conftest.er1 conftest.err
1690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1691 test $ac_status = 0; } && {
1692 test -z "$ac_c_werror_flag" ||
1693 test ! -s conftest.err
1694 } && test -s conftest.$ac_objext; then :
1697 $as_echo "$as_me: failed program was:" >&5
1698 sed 's/^/| /' conftest.$ac_ext >&5
1702 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1705 } # ac_fn_c_try_compile
1707 # ac_fn_cxx_try_compile LINENO
1708 # ----------------------------
1709 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1710 ac_fn_cxx_try_compile ()
1712 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1713 rm -f conftest.$ac_objext
1714 if { { ac_try="$ac_compile"
1716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1717 *) ac_try_echo=$ac_try;;
1719 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1720 $as_echo "$ac_try_echo"; } >&5
1721 (eval "$ac_compile") 2>conftest.err
1723 if test -s conftest.err; then
1724 grep -v '^ *+' conftest.err >conftest.er1
1725 cat conftest.er1 >&5
1726 mv -f conftest.er1 conftest.err
1728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1729 test $ac_status = 0; } && {
1730 test -z "$ac_cxx_werror_flag" ||
1731 test ! -s conftest.err
1732 } && test -s conftest.$ac_objext; then :
1735 $as_echo "$as_me: failed program was:" >&5
1736 sed 's/^/| /' conftest.$ac_ext >&5
1740 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1743 } # ac_fn_cxx_try_compile
1745 # ac_fn_c_try_link LINENO
1746 # -----------------------
1747 # Try to link conftest.$ac_ext, and return whether this succeeded.
1750 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1751 rm -f conftest.$ac_objext conftest$ac_exeext
1752 if { { ac_try="$ac_link"
1754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1755 *) ac_try_echo=$ac_try;;
1757 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1758 $as_echo "$ac_try_echo"; } >&5
1759 (eval "$ac_link") 2>conftest.err
1761 if test -s conftest.err; then
1762 grep -v '^ *+' conftest.err >conftest.er1
1763 cat conftest.er1 >&5
1764 mv -f conftest.er1 conftest.err
1766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1767 test $ac_status = 0; } && {
1768 test -z "$ac_c_werror_flag" ||
1769 test ! -s conftest.err
1770 } && test -s conftest$ac_exeext && {
1771 test "$cross_compiling" = yes ||
1772 $as_test_x conftest$ac_exeext
1776 $as_echo "$as_me: failed program was:" >&5
1777 sed 's/^/| /' conftest.$ac_ext >&5
1781 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1782 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1783 # interfere with the next link command; also delete a directory that is
1784 # left behind by Apple's compiler. We do this before executing the actions.
1785 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1786 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1789 } # ac_fn_c_try_link
1790 cat >config.log <<_ACEOF
1791 This file contains any messages produced by compilers while
1792 running configure, to aid debugging if configure makes a mistake.
1794 It was created by $as_me, which was
1795 generated by GNU Autoconf 2.64. Invocation command line was
1807 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1808 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1809 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1810 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1811 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1813 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1814 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1816 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1817 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1818 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1819 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1820 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1821 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1822 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1830 test -z "$as_dir" && as_dir=.
1831 $as_echo "PATH: $as_dir"
1847 # Keep a trace of the command line.
1848 # Strip out --no-create and --no-recursion so they do not pile up.
1849 # Strip out --silent because we don't want to record it for future runs.
1850 # Also quote any args containing shell meta-characters.
1851 # Make two passes to allow for proper duplicate-argument suppression.
1855 ac_must_keep_next=false
1861 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1862 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1863 | -silent | --silent | --silen | --sile | --sil)
1866 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1869 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1871 as_fn_append ac_configure_args1 " '$ac_arg'"
1872 if test $ac_must_keep_next = true; then
1873 ac_must_keep_next=false # Got value, back to normal.
1876 *=* | --config-cache | -C | -disable-* | --disable-* \
1877 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1878 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1879 | -with-* | --with-* | -without-* | --without-* | --x)
1880 case "$ac_configure_args0 " in
1881 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1884 -* ) ac_must_keep_next=true ;;
1887 as_fn_append ac_configure_args " '$ac_arg'"
1892 { ac_configure_args0=; unset ac_configure_args0;}
1893 { ac_configure_args1=; unset ac_configure_args1;}
1895 # When interrupted or exit'd, cleanup temporary files, and complete
1896 # config.log. We remove comments because anyway the quotes in there
1897 # would cause problems or look ugly.
1898 # WARNING: Use '\'' to represent an apostrophe within the trap.
1899 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1900 trap 'exit_status=$?
1901 # Save into config.log some information that might help in debugging.
1906 ## ---------------- ##
1907 ## Cache variables. ##
1908 ## ---------------- ##
1911 # The following way of writing the cache mishandles newlines in values,
1913 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1914 eval ac_val=\$$ac_var
1918 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1919 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1922 _ | IFS | as_nl) ;; #(
1923 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1924 *) { eval $ac_var=; unset $ac_var;} ;;
1929 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1930 *${as_nl}ac_space=\ *)
1932 "s/'\''/'\''\\\\'\'''\''/g;
1933 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1936 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1944 ## ----------------- ##
1945 ## Output variables. ##
1946 ## ----------------- ##
1949 for ac_var in $ac_subst_vars
1951 eval ac_val=\$$ac_var
1953 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1955 $as_echo "$ac_var='\''$ac_val'\''"
1959 if test -n "$ac_subst_files"; then
1961 ## ------------------- ##
1962 ## File substitutions. ##
1963 ## ------------------- ##
1966 for ac_var in $ac_subst_files
1968 eval ac_val=\$$ac_var
1970 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1972 $as_echo "$ac_var='\''$ac_val'\''"
1977 if test -s confdefs.h; then
1987 test "$ac_signal" != 0 &&
1988 $as_echo "$as_me: caught signal $ac_signal"
1989 $as_echo "$as_me: exit $exit_status"
1991 rm -f core *.core core.conftest.* &&
1992 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1995 for ac_signal in 1 2 13 15; do
1996 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2000 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2001 rm -f -r conftest* confdefs.h
2003 $as_echo "/* confdefs.h */" > confdefs.h
2005 # Predefined preprocessor variables.
2007 cat >>confdefs.h <<_ACEOF
2008 #define PACKAGE_NAME "$PACKAGE_NAME"
2011 cat >>confdefs.h <<_ACEOF
2012 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2015 cat >>confdefs.h <<_ACEOF
2016 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2019 cat >>confdefs.h <<_ACEOF
2020 #define PACKAGE_STRING "$PACKAGE_STRING"
2023 cat >>confdefs.h <<_ACEOF
2024 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2027 cat >>confdefs.h <<_ACEOF
2028 #define PACKAGE_URL "$PACKAGE_URL"
2032 # Let the site file select an alternate cache file if it wants to.
2033 # Prefer an explicitly selected file to automatically selected ones.
2036 if test -n "$CONFIG_SITE"; then
2037 ac_site_file1=$CONFIG_SITE
2038 elif test "x$prefix" != xNONE; then
2039 ac_site_file1=$prefix/share/config.site
2040 ac_site_file2=$prefix/etc/config.site
2042 ac_site_file1=$ac_default_prefix/share/config.site
2043 ac_site_file2=$ac_default_prefix/etc/config.site
2045 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2047 test "x$ac_site_file" = xNONE && continue
2048 if test -r "$ac_site_file"; then
2049 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2050 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2051 sed 's/^/| /' "$ac_site_file" >&5
2056 if test -r "$cache_file"; then
2057 # Some versions of bash will fail to source /dev/null (special
2058 # files actually), so we avoid doing that.
2059 if test -f "$cache_file"; then
2060 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2061 $as_echo "$as_me: loading cache $cache_file" >&6;}
2063 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2064 *) . "./$cache_file";;
2068 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2069 $as_echo "$as_me: creating cache $cache_file" >&6;}
2073 # Check that the precious variables saved in the cache have kept the same
2075 ac_cache_corrupted=false
2076 for ac_var in $ac_precious_vars; do
2077 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2078 eval ac_new_set=\$ac_env_${ac_var}_set
2079 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2080 eval ac_new_val=\$ac_env_${ac_var}_value
2081 case $ac_old_set,$ac_new_set in
2083 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2084 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2085 ac_cache_corrupted=: ;;
2087 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2088 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2089 ac_cache_corrupted=: ;;
2092 if test "x$ac_old_val" != "x$ac_new_val"; then
2093 # differences in whitespace do not lead to failure.
2094 ac_old_val_w=`echo x $ac_old_val`
2095 ac_new_val_w=`echo x $ac_new_val`
2096 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2097 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2098 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2099 ac_cache_corrupted=:
2101 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2102 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2103 eval $ac_var=\$ac_old_val
2105 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2106 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2107 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2108 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2111 # Pass precious variables to config.status.
2112 if test "$ac_new_set" = set; then
2114 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2115 *) ac_arg=$ac_var=$ac_new_val ;;
2117 case " $ac_configure_args " in
2118 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2119 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2123 if $ac_cache_corrupted; then
2124 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2125 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2126 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2127 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2128 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2130 ## -------------------- ##
2131 ## Main body of script. ##
2132 ## -------------------- ##
2135 ac_cpp='$CPP $CPPFLAGS'
2136 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2137 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2138 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2149 # if PWD already has a value, it is probably wrong.
2150 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2152 # Export original configure arguments for use by sub-configures.
2153 # Quote arguments with shell meta charatcers.
2154 TOPLEVEL_CONFIGURE_ARGUMENTS=
2155 set -- "$progname" "$@"
2159 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2160 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2161 # if the argument is of the form -foo=baz, quote the baz part only
2162 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2165 # Add the quoted argument to the list.
2166 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2168 if test "$silent" = yes; then
2169 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2171 # Remove the initial space we just introduced and, as these will be
2172 # expanded by make, quote '$'.
2173 TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2176 # Find the build, host, and target systems.
2178 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2179 for ac_t in install-sh install.sh shtool; do
2180 if test -f "$ac_dir/$ac_t"; then
2182 ac_install_sh="$ac_aux_dir/$ac_t -c"
2187 if test -z "$ac_aux_dir"; then
2188 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2191 # These three variables are undocumented and unsupported,
2192 # and are intended to be withdrawn in a future Autoconf release.
2193 # They can cause serious problems if a builder's source tree is in a directory
2194 # whose full name contains unusual characters.
2195 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2196 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2197 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2200 # Make sure we can run config.sub.
2201 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2202 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2205 $as_echo_n "checking build system type... " >&6; }
2206 if test "${ac_cv_build+set}" = set; then :
2207 $as_echo_n "(cached) " >&6
2209 ac_build_alias=$build_alias
2210 test "x$ac_build_alias" = x &&
2211 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2212 test "x$ac_build_alias" = x &&
2213 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2214 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2215 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2219 $as_echo "$ac_cv_build" >&6; }
2220 case $ac_cv_build in
2222 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2225 ac_save_IFS=$IFS; IFS='-'
2231 # Remember, the first character of IFS is used to create $*,
2232 # except with old shells:
2235 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2238 case ${build_alias} in
2239 "") build_noncanonical=${build} ;;
2240 *) build_noncanonical=${build_alias} ;;
2245 case ${host_alias} in
2246 "") host_noncanonical=${build_noncanonical} ;;
2247 *) host_noncanonical=${host_alias} ;;
2252 case ${target_alias} in
2253 "") target_noncanonical=${host_noncanonical} ;;
2254 *) target_noncanonical=${target_alias} ;;
2260 test "$host_noncanonical" = "$target_noncanonical" &&
2261 test "$program_prefix$program_suffix$program_transform_name" = \
2263 program_transform_name=s,y,y,
2265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2266 $as_echo_n "checking host system type... " >&6; }
2267 if test "${ac_cv_host+set}" = set; then :
2268 $as_echo_n "(cached) " >&6
2270 if test "x$host_alias" = x; then
2271 ac_cv_host=$ac_cv_build
2273 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2274 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2279 $as_echo "$ac_cv_host" >&6; }
2282 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2285 ac_save_IFS=$IFS; IFS='-'
2291 # Remember, the first character of IFS is used to create $*,
2292 # except with old shells:
2295 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2299 $as_echo_n "checking target system type... " >&6; }
2300 if test "${ac_cv_target+set}" = set; then :
2301 $as_echo_n "(cached) " >&6
2303 if test "x$target_alias" = x; then
2304 ac_cv_target=$ac_cv_host
2306 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2307 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2312 $as_echo "$ac_cv_target" >&6; }
2313 case $ac_cv_target in
2315 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2317 target=$ac_cv_target
2318 ac_save_IFS=$IFS; IFS='-'
2324 # Remember, the first character of IFS is used to create $*,
2325 # except with old shells:
2328 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2331 # The aliases save the names the user supplied, while $host etc.
2332 # will get canonicalized.
2333 test -n "$target_alias" &&
2334 test "$program_prefix$program_suffix$program_transform_name" = \
2336 program_prefix=${target_alias}-
2338 test "$program_prefix" != NONE &&
2339 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2340 # Use a double $ so make ignores it.
2341 test "$program_suffix" != NONE &&
2342 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2343 # Double any \ or $.
2344 # By default was `s,x,x', remove it if useless.
2345 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2346 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2350 # Get 'install' or 'install-sh' and its variants.
2351 # Find a good install program. We prefer a C program (faster),
2352 # so one script is as good as another. But avoid the broken or
2353 # incompatible versions:
2354 # SysV /etc/install, /usr/sbin/install
2355 # SunOS /usr/etc/install
2356 # IRIX /sbin/install
2358 # AmigaOS /C/install, which installs bootblocks on floppy discs
2359 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2360 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2361 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2362 # OS/2's system install, which has a completely different semantic
2363 # ./install, which can be erroneously created by make from ./install.sh.
2364 # Reject install programs that cannot install multiple files.
2365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2366 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2367 if test -z "$INSTALL"; then
2368 if test "${ac_cv_path_install+set}" = set; then :
2369 $as_echo_n "(cached) " >&6
2371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2375 test -z "$as_dir" && as_dir=.
2376 # Account for people who put trailing slashes in PATH elements.
2377 case $as_dir/ in #((
2378 ./ | .// | /[cC]/* | \
2379 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2380 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2383 # OSF1 and SCO ODT 3.0 have their own names for install.
2384 # Don't use installbsd from OSF since it installs stuff as root
2386 for ac_prog in ginstall scoinst install; do
2387 for ac_exec_ext in '' $ac_executable_extensions; do
2388 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2389 if test $ac_prog = install &&
2390 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2391 # AIX install. It has an incompatible calling convention.
2393 elif test $ac_prog = install &&
2394 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2395 # program-specific install script used by HP pwplus--don't use.
2398 rm -rf conftest.one conftest.two conftest.dir
2399 echo one > conftest.one
2400 echo two > conftest.two
2402 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2403 test -s conftest.one && test -s conftest.two &&
2404 test -s conftest.dir/conftest.one &&
2405 test -s conftest.dir/conftest.two
2407 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2420 rm -rf conftest.one conftest.two conftest.dir
2423 if test "${ac_cv_path_install+set}" = set; then
2424 INSTALL=$ac_cv_path_install
2426 # As a last resort, use the slow shell script. Don't cache a
2427 # value for INSTALL within a source directory, because that will
2428 # break other packages using the cache if that directory is
2429 # removed, or if the value is a relative name.
2430 INSTALL=$ac_install_sh
2433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2434 $as_echo "$INSTALL" >&6; }
2436 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2437 # It thinks the first close brace ends the variable substitution.
2438 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2440 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2442 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2445 $as_echo_n "checking whether ln works... " >&6; }
2446 if test "${acx_cv_prog_LN+set}" = set; then :
2447 $as_echo_n "(cached) " >&6
2449 rm -f conftestdata_t
2450 echo >conftestdata_f
2451 if ln conftestdata_f conftestdata_t 2>/dev/null
2457 rm -f conftestdata_f conftestdata_t
2460 if test $acx_cv_prog_LN = no; then
2462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2463 $as_echo "no, using $LN" >&6; }
2465 LN="$acx_cv_prog_LN"
2466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2467 $as_echo "yes" >&6; }
2470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2471 $as_echo_n "checking whether ln -s works... " >&6; }
2473 if test "$LN_S" = "ln -s"; then
2474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2475 $as_echo "yes" >&6; }
2477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2478 $as_echo "no, using $LN_S" >&6; }
2481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2482 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2483 if test "${ac_cv_path_SED+set}" = set; then :
2484 $as_echo_n "(cached) " >&6
2486 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2487 for ac_i in 1 2 3 4 5 6 7; do
2488 ac_script="$ac_script$as_nl$ac_script"
2490 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2491 { ac_script=; unset ac_script;}
2492 if test -z "$SED"; then
2493 ac_path_SED_found=false
2494 # Loop through the user's path and test for each of PROGNAME-LIST
2495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2499 test -z "$as_dir" && as_dir=.
2500 for ac_prog in sed gsed; do
2501 for ac_exec_ext in '' $ac_executable_extensions; do
2502 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2503 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2504 # Check for GNU ac_path_SED and select it if it is found.
2505 # Check for GNU $ac_path_SED
2506 case `"$ac_path_SED" --version 2>&1` in
2508 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2511 $as_echo_n 0123456789 >"conftest.in"
2514 cat "conftest.in" "conftest.in" >"conftest.tmp"
2515 mv "conftest.tmp" "conftest.in"
2516 cp "conftest.in" "conftest.nl"
2517 $as_echo '' >> "conftest.nl"
2518 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2519 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2520 as_fn_arith $ac_count + 1 && ac_count=$as_val
2521 if test $ac_count -gt ${ac_path_SED_max-0}; then
2522 # Best one so far, save it but keep looking for a better one
2523 ac_cv_path_SED="$ac_path_SED"
2524 ac_path_SED_max=$ac_count
2526 # 10*(2^10) chars as input seems more than enough
2527 test $ac_count -gt 10 && break
2529 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2532 $ac_path_SED_found && break 3
2537 if test -z "$ac_cv_path_SED"; then
2538 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
2545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2546 $as_echo "$ac_cv_path_SED" >&6; }
2547 SED="$ac_cv_path_SED"
2550 for ac_prog in gawk mawk nawk awk
2552 # Extract the first word of "$ac_prog", so it can be a program name with args.
2553 set dummy $ac_prog; ac_word=$2
2554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2555 $as_echo_n "checking for $ac_word... " >&6; }
2556 if test "${ac_cv_prog_AWK+set}" = set; then :
2557 $as_echo_n "(cached) " >&6
2559 if test -n "$AWK"; then
2560 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2566 test -z "$as_dir" && as_dir=.
2567 for ac_exec_ext in '' $ac_executable_extensions; do
2568 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2569 ac_cv_prog_AWK="$ac_prog"
2570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2580 if test -n "$AWK"; then
2581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2582 $as_echo "$AWK" >&6; }
2584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2585 $as_echo "no" >&6; }
2589 test -n "$AWK" && break
2593 ### we might need to use some other shell than /bin/sh for running subshells
2594 ### If we are on Windows, search for the shell. This will permit people
2595 ### to not have /bin/sh, but to be able to see /SOME/PATH/sh configure
2596 ### without also having to set CONFIG_SHELL. This code will work when
2597 ### using bash, which sets OSTYPE.
2600 if test x${CONFIG_SHELL} = x ; then
2601 if test ! -f /bin/sh ; then
2602 if test x${SHELL} != x && test -f ${SHELL} ; then
2603 CONFIG_SHELL=${SHELL}
2606 for prog in sh sh.exe bash bash.exe; do
2607 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
2608 for dir in $PATH; do
2609 test -z "$dir" && dir=.
2610 if test -f $dir/$prog; then
2611 CONFIG_SHELL=$dir/$prog
2617 test -n "${CONFIG_SHELL}" && break
2625 config_shell=${CONFIG_SHELL-/bin/sh}
2627 moveifchange=${srcdir}/move-if-change
2629 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2631 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
2633 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2634 INSTALL="${srcpwd}/install-sh -c"
2637 # Set srcdir to "." if that's what it is.
2638 # This is important for multilib support.
2640 if test "${pwd}" = "${srcpwd}" ; then
2648 ### To add a new directory to the tree, first choose whether it is a target
2649 ### or a host dependent tool. Then put it into the appropriate list
2650 ### (library or tools, host or target), doing a dependency sort.
2652 # Subdirs will be configured in the order listed in build_configdirs,
2653 # configdirs, or target_configdirs; see the serialization section below.
2655 # Dependency sorting is only needed when *configuration* must be done in
2656 # a particular order. In all cases a dependency should be specified in
2657 # the Makefile, whether or not it's implicitly specified here.
2659 # Double entries in build_configdirs, configdirs, or target_configdirs may
2660 # cause circular dependencies and break everything horribly.
2662 # these library is used by various programs built for the build
2665 build_libs="build-libiberty"
2667 # these tools are built for the build environment
2668 build_tools="build-texinfo build-byacc build-flex build-bison build-m4 build-fixincludes"
2670 # these libraries are used by various programs built for the host environment
2672 host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr mpc ppl cloog libelf libiconv"
2674 # these tools are built for the host environment
2675 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2676 # know that we are building the simulator.
2677 # binutils, gas and ld appear in that order because it makes sense to run
2678 # "make check" in that particular order.
2679 # If --enable-gold is used, "gold" may replace "ld".
2680 host_tools="texinfo byacc flex bison binutils gas ld fixincludes gcc cgen sid sim gdb make patch prms send-pr gprof etc expect dejagnu ash bash bzip2 m4 autoconf automake libtool diff rcs fileutils shellutils time textutils wdiff find uudecode hello tar gzip indent recode release sed utils guile perl gawk findutils gettext zip fastjar gnattools"
2682 # libgcj represents the runtime libraries only used by gcj.
2683 libgcj="target-libffi \
2688 # these libraries are built for the target environment, and are built after
2689 # the host libraries and the host tools (which may be a cross compiler)
2691 target_libraries="target-libgcc \
2696 target-libstdc++-v3 \
2699 target-libgfortran \
2705 # these tools are built using the target libraries, and are intended to
2706 # run only in the target environment
2708 # note: any program that *uses* libraries that are in the "target_libraries"
2709 # list belongs in this list. those programs are also very likely
2710 # candidates for the "native_only" list which follows
2712 target_tools="target-examples target-groff target-gperf target-rda"
2714 ################################################################################
2716 ## All tools belong in one of the four categories, and are assigned above
2717 ## We assign ${configdirs} this way to remove all embedded newlines. This
2718 ## is important because configure will choke if they ever get through.
2719 ## ${configdirs} is directories we build using the host tools.
2720 ## ${target_configdirs} is directories we build using the target tools.
2721 configdirs=`echo ${host_libs} ${host_tools}`
2722 target_configdirs=`echo ${target_libraries} ${target_tools}`
2723 build_configdirs=`echo ${build_libs} ${build_tools}`
2727 ################################################################################
2729 srcname="gnu development package"
2731 # This gets set non-empty for some net releases of packages.
2734 # Define is_cross_compiler to save on calls to 'test'.
2736 if test x"${host}" = x"${target}" ; then
2737 is_cross_compiler=no
2739 is_cross_compiler=yes
2742 # Find the build and target subdir names.
2744 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2745 # have matching libraries, they should use host libraries: Makefile.tpl
2746 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2747 # However, they still use the build modules, because the corresponding
2748 # host modules (e.g. bison) are only built for the host when bootstrap
2750 # - build_subdir is where we find build modules, and never changes.
2751 # - build_libsubdir is where we find build libraries, and can be overridden.
2753 # Prefix 'build-' so this never conflicts with target_subdir.
2754 build_subdir="build-${build_noncanonical}"
2756 # Check whether --with-build-libsubdir was given.
2757 if test "${with_build_libsubdir+set}" = set; then :
2758 withval=$with_build_libsubdir; build_libsubdir="$withval"
2760 build_libsubdir="$build_subdir"
2763 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2764 if ( test $srcdir = . && test -d gcc ) \
2765 || test -d $srcdir/../host-${host_noncanonical}; then
2766 host_subdir="host-${host_noncanonical}"
2771 target_subdir=${target_noncanonical}
2773 # Be sure to cover against remnants of an in-tree build.
2774 if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
2775 as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}.
2776 Use a pristine source tree when building in a separate tree" "$LINENO" 5
2779 # Skipdirs are removed silently.
2781 # Noconfigdirs are removed loudly.
2785 # Make sure we don't let GNU ld be added if we didn't want it.
2786 if test x$with_gnu_ld = xno ; then
2788 noconfigdirs="$noconfigdirs ld gold"
2792 # Make sure we don't let GNU as be added if we didn't want it.
2793 if test x$with_gnu_as = xno ; then
2795 noconfigdirs="$noconfigdirs gas"
2799 # Make sure we don't let ZLIB be added if we didn't want it.
2800 if test x$with_system_zlib = xyes ; then
2801 use_included_zlib=no
2802 noconfigdirs="$noconfigdirs zlib"
2805 # some tools are so dependent upon X11 that if we're not building with X,
2806 # it's not even worth trying to configure, much less build, that tool.
2809 yes | "") ;; # the default value for this tree is that X11 is available
2811 skipdirs="${skipdirs} tk itcl libgui"
2812 # We won't be able to build gdbtk without X.
2815 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2818 # Some tools are only suitable for building in a "native" situation.
2819 # Remove these if host!=target.
2820 native_only="autoconf automake libtool fileutils find gawk gettext gzip hello indent m4 rcs recode sed shellutils tar textutils uudecode wdiff target-groff guile perl time ash bash bzip2 prms gnuserv target-gperf"
2822 # Similarly, some are only suitable for cross toolchains.
2823 # Remove these if host=target.
2824 cross_only="target-libgloss target-newlib target-opcodes"
2826 case $is_cross_compiler in
2827 no) skipdirs="${skipdirs} ${cross_only}" ;;
2828 yes) skipdirs="${skipdirs} ${native_only}" ;;
2831 # If both --with-headers and --with-libs are specified, default to
2833 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2834 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2835 if test x"${with_newlib}" = x ; then
2840 # Recognize --with-newlib/--without-newlib.
2841 case ${with_newlib} in
2842 no) skipdirs="${skipdirs} target-newlib" ;;
2843 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2846 # Handle --enable-gold.
2847 # --enable-gold Build only gold
2848 # --disable-gold [default] Build only ld
2849 # --enable-gold=both Build both gold and ld, ld is default
2850 # --enable-gold=both/ld Same
2851 # --enable-gold=both/gold Build both gold and ld, gold is default, ld is renamed ld.bfd
2853 # Check whether --enable-gold was given.
2854 if test "${enable_gold+set}" = set; then :
2855 enableval=$enable_gold; ENABLE_GOLD=$enableval
2860 case "${ENABLE_GOLD}" in
2861 yes|both|both/gold|both/ld)
2862 # Check for ELF target.
2865 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
2866 | *-*-linux* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
2867 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-solaris2* | *-*-nto*)
2869 *-*-linux*aout* | *-*-linux*oldld*)
2877 if test "$is_elf" = "yes"; then
2878 # Check for target supported by gold.
2880 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-*)
2881 case "${ENABLE_GOLD}" in
2883 configdirs="$configdirs gold"
2886 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / gold /'`
2897 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
2901 # Configure extra directories which are host specific
2905 configdirs="$configdirs libtermcap" ;;
2908 # A target can indicate whether a language isn't supported for some reason.
2909 # Only spaces may be used in this macro; not newlines or tabs.
2910 unsupported_languages=
2912 # Remove more programs from consideration, based on the host or
2913 # target this usually means that a port of the program doesn't
2918 noconfigdirs="$noconfigdirs byacc"
2920 i[3456789]86-*-vsta)
2921 noconfigdirs="$noconfigdirs tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl itcl gnuserv gettext"
2923 i[3456789]86-*-go32* | i[3456789]86-*-msdosdjgpp*)
2924 noconfigdirs="$noconfigdirs tcl tk expect dejagnu send-pr uudecode guile itcl gnuserv libffi"
2927 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
2929 i[3456789]86-*-mingw32*)
2930 # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl itcl gnuserv"
2931 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
2933 i[3456789]86-*-beos*)
2934 noconfigdirs="$noconfigdirs tk itcl libgui gdb"
2937 noconfigdirs="$noconfigdirs autoconf automake send-pr rcs guile perl"
2940 noconfigdirs="$noconfigdirs rcs"
2943 noconfigdirs="$noconfigdirs patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl gnuserv"
2946 noconfigdirs="$noconfigdirs tk itcl libgui gdb dejagnu readline"
2951 # Check whether --enable-libada was given.
2952 if test "${enable_libada+set}" = set; then :
2953 enableval=$enable_libada; ENABLE_LIBADA=$enableval
2958 if test "${ENABLE_LIBADA}" != "yes" ; then
2959 noconfigdirs="$noconfigdirs gnattools"
2962 # Check whether --enable-libssp was given.
2963 if test "${enable_libssp+set}" = set; then :
2964 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
2970 # Save it here so that, even in case of --enable-libgcj, if the Java
2971 # front-end isn't enabled, we still get libgcj disabled.
2972 libgcj_saved=$libgcj
2973 case $enable_libgcj in
2975 # If we reset it here, it won't get added to noconfigdirs in the
2976 # target-specific build rules, so it will be forcibly enabled
2977 # (unless the Java language itself isn't enabled).
2981 # Make sure we get it printed in the list of not supported target libs.
2982 noconfigdirs="$noconfigdirs ${libgcj}"
2987 # Disable libmudflap on some systems.
2988 if test x$enable_libmudflap = x ; then
2990 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | bfin*-*-uclinux* | *-*-kopensolaris*-gnu)
2991 # Enable libmudflap by default in GNU and friends.
2994 # Enable libmudflap by default in FreeBSD.
2997 # Disable it by default everywhere else.
2998 noconfigdirs="$noconfigdirs target-libmudflap"
3003 # Disable libgomp on non POSIX hosted systems.
3004 if test x$enable_libgomp = x ; then
3005 # Enable libgomp by default on hosted POSIX systems.
3007 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3009 *-*-netbsd* | *-*-freebsd* | *-*-openbsd*)
3011 *-*-solaris2* | *-*-sysv4* | *-*-irix6* | *-*-osf* | *-*-hpux11*)
3013 *-*-darwin* | *-*-aix*)
3016 noconfigdirs="$noconfigdirs target-libgomp"
3021 # Default libgloss CPU subdirectory.
3022 libgloss_dir="$target_cpu"
3026 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
3029 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3030 noconfigdirs="$noconfigdirs sim target-rda"
3032 i[3456789]86-*-darwin*)
3033 noconfigdirs="$noconfigdirs ld gprof"
3034 noconfigdirs="$noconfigdirs sim target-rda"
3036 x86_64-*-darwin[912]*)
3037 noconfigdirs="$noconfigdirs ld gas gprof"
3038 noconfigdirs="$noconfigdirs sim target-rda"
3041 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3042 noconfigdirs="$noconfigdirs sim target-rda"
3043 noconfigdirs="$noconfigdirs ${libgcj}"
3045 *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
3046 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
3049 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3050 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3051 && test -f /usr/local/include/gmp.h; then
3055 # Skip some stuff that's unsupported on some FreeBSD configurations.
3061 noconfigdirs="$noconfigdirs ${libgcj}"
3066 # Remove unsupported stuff on all kaOS configurations.
3067 skipdirs="target-libiberty ${libgcj} target-libstdc++-v3 target-librx"
3068 skipdirs="$skipdirs target-libobjc target-examples target-groff target-gperf"
3069 skipdirs="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib"
3070 noconfigdirs="$noconfigdirs target-libgloss"
3073 # Skip some stuff on all NetBSD configurations.
3074 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss"
3076 # Skip some stuff that's unsupported on some NetBSD configurations.
3078 i*86-*-netbsdelf*) ;;
3079 arm*-*-netbsdelf*) ;;
3081 noconfigdirs="$noconfigdirs ${libgcj}"
3086 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj} target-libmudflap"
3089 skipdirs="${skipdirs} target-libiberty"
3090 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3092 # The tpf target doesn't support gdb yet.
3094 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj} target-libmudflap gdb tcl tk libgui itcl"
3097 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
3100 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty target-libstdc++-v3 ${libgcj}"
3103 # ld works, but does not support shared libraries.
3104 # newlib is not 64 bit ready. I'm not sure about fileutils.
3105 # gas doesn't generate exception information.
3106 noconfigdirs="$noconfigdirs gas ld fileutils target-newlib target-libgloss"
3109 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
3112 # newlib is not 64 bit ready
3113 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3116 # newlib is not 64 bit ready
3117 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
3120 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
3123 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
3125 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3126 noconfigdirs="$noconfigdirs ${libgcj}"
3127 noconfigdirs="$noconfigdirs target-examples"
3128 noconfigdirs="$noconfigdirs target-libiberty texinfo send-pr"
3129 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
3130 noconfigdirs="$noconfigdirs expect dejagnu"
3131 # the C++ libraries don't build on top of CE's C libraries
3132 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3133 noconfigdirs="$noconfigdirs target-newlib"
3135 *-*-cygwin*) ;; # keep gdb and readline
3136 *) noconfigdirs="$noconfigdirs gdb readline"
3142 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3146 arm-*-coff | strongarm-*-coff | xscale-*-coff)
3147 noconfigdirs="$noconfigdirs ${libgcj}"
3150 arm-*-elf* | strongarm-*-elf* | xscale-*-elf* | arm*-*-eabi* )
3151 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
3154 arm*-*-linux-gnueabi)
3155 noconfigdirs="$noconfigdirs target-qthreads"
3156 case ${with_newlib} in
3157 no) noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3162 noconfigdirs="$noconfigdirs ${libgcj} target-libiberty"
3166 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3169 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3172 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3175 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3178 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
3181 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj} target-libssp"
3184 unsupported_languages="$unsupported_languages java"
3185 noconfigdirs="$noconfigdirs target-boehm-gc gdb"
3186 if test x${is_cross_compiler} != xno ; then
3187 target_configdirs="${target_configdirs} target-bsp target-cygmon"
3190 c4x-*-* | tic4x-*-*)
3191 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
3193 c54x*-*-* | tic54x-*-*)
3194 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
3197 noconfigdirs="$noconfigdirs ${libgcj} gdb"
3199 cris-*-* | crisv32-*-*)
3200 unsupported_languages="$unsupported_languages java"
3203 unsupported_languages="$unsupported_languages fortran"
3204 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
3206 noconfigdirs="$noconfigdirs target-boehm-gc";;
3208 noconfigdirs="$noconfigdirs target-newlib target-libgloss";;
3210 unsupported_languages="$unsupported_languages fortran"
3211 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss";;
3216 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-mudflap ${libgcj}"
3219 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
3222 noconfigdirs="$noconfigdirs ${libgcj} gdb"
3224 ep9312-*-elf | ep9312-*-coff)
3228 noconfigdirs="$noconfigdirs ${libgcj} gdb"
3231 noconfigdirs="$noconfigdirs ${libgcj}"
3234 noconfigdirs="$noconfigdirs ${libgcj}"
3235 noconfigdirs="$noconfigdirs gprof"
3238 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3241 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
3243 hppa1.1-*-osf* | hppa1.1-*-bsd* )
3245 hppa*64*-*-linux* | parisc*64*-*-linux*)
3246 # In this case, it's because the hppa64-linux target is for
3247 # the kernel only at this point and has no libc, and thus no
3248 # headers, crt*.o, etc., all of which are needed by these.
3249 noconfigdirs="$noconfigdirs target-zlib"
3251 parisc*-*-linux* | hppa*-*-linux*)
3255 hppa*-*-openbsd* | \
3257 noconfigdirs="$noconfigdirs ${libgcj}"
3260 noconfigdirs="$noconfigdirs ld shellutils"
3266 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
3267 # build on HP-UX 10.20.
3268 noconfigdirs="$noconfigdirs ld shellutils ${libgcj}"
3271 noconfigdirs="$noconfigdirs ${libgcj} gdb"
3274 # No gdb support yet.
3275 noconfigdirs="$noconfigdirs readline mmalloc libgui itcl gdb"
3278 # No gdb or ld support yet.
3279 noconfigdirs="$noconfigdirs ${libgcj} readline mmalloc libgui itcl gdb ld"
3282 # No gdb or ld support yet.
3283 noconfigdirs="$noconfigdirs ${libgcj} tix readline mmalloc libgui itcl gdb ld"
3287 i[3456789]86-*-coff | i[3456789]86-*-elf)
3288 noconfigdirs="$noconfigdirs ${libgcj}"
3291 i[3456789]86-*-linux*)
3292 # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
3293 # not build java stuff by default.
3296 noconfigdirs="$noconfigdirs ${libgcj}";;
3299 # This section makes it possible to build newlib natively on linux.
3300 # If we are using a cross compiler then don't configure newlib.
3301 if test x${is_cross_compiler} != xno ; then
3302 noconfigdirs="$noconfigdirs target-newlib"
3304 noconfigdirs="$noconfigdirs target-libgloss"
3305 # If we are not using a cross compiler, do configure newlib.
3306 # Note however, that newlib will only be configured in this situation
3307 # if the --with-newlib option has been given, because otherwise
3308 # 'target-newlib' will appear in skipdirs.
3310 i[3456789]86-w64-mingw*)
3311 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
3313 i[3456789]86-*-mingw*)
3314 target_configdirs="$target_configdirs target-winsup"
3315 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
3318 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
3321 target_configdirs="$target_configdirs target-libtermcap target-winsup"
3322 noconfigdirs="$noconfigdirs target-gperf target-libgloss"
3323 # always build newlib if winsup directory is present.
3324 if test -d "$srcdir/winsup/cygwin"; then
3325 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3326 elif test -d "$srcdir/newlib"; then
3327 echo "Warning: winsup/cygwin is missing so newlib can't be built."
3330 i[3456789]86-moss-msdos | i[3456789]86-*-moss* | \
3331 i[3456789]86-*-uwin* | i[3456789]86-*-interix* )
3334 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
3336 i[3456789]86-*-sco3.2v5*)
3337 # The linker does not yet know about weak symbols in COFF,
3338 # and is not configured to handle mixed ELF and COFF.
3339 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
3341 i[3456789]86-*-sco*)
3342 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
3344 i[3456789]86-*-solaris2*)
3345 noconfigdirs="$noconfigdirs target-libgloss"
3347 i[3456789]86-*-sysv4*)
3348 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3350 i[3456789]86-*-beos*)
3351 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
3353 i[3456789]86-*-rdos*)
3354 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3357 noconfigdirs="$noconfigdirs ${libgcj}"
3359 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3360 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
3361 libgloss_dir=m68hc11
3364 noconfigdirs="$noconfigdirs ${libgcj}"
3367 noconfigdirs="$noconfigdirs ${libgcj}"
3369 m68*-*-* | fido-*-*)
3373 # The EPOC C++ environment does not support exceptions or rtti,
3374 # and so building libstdc++-v3 tends not to always work.
3375 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3378 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc gdb libgloss"
3379 unsupported_languages="$unsupported_languages fortran java"
3382 noconfigdirs="$noconfigdirs ${libgcj}"
3385 noconfigdirs="$noconfigdirs ${libgcj}"
3388 noconfigdirs="$noconfigdirs sim"
3391 # copied from rs6000-*-* entry
3392 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp target-newlib ${libgcj}"
3394 powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe)
3395 target_configdirs="$target_configdirs target-winsup"
3396 noconfigdirs="$noconfigdirs gdb tcl tk make expect target-libgloss itcl gnuserv ${libgcj}"
3397 # always build newlib.
3398 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3400 # This is temporary until we can link against shared libraries
3401 powerpcle-*-solaris*)
3402 noconfigdirs="$noconfigdirs gdb sim make tcl tk expect itcl gnuserv ${libgcj}"
3406 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
3409 noconfigdirs="$noconfigdirs ${libgcj}"
3412 powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* )
3416 noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}"
3419 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp target-newlib ${libgcj}"
3422 noconfigdirs="$noconfigdirs gprof ${libgcj}"
3425 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
3428 noconfigdirs="$noconfigdirs gprof target-libssp ${libgcj}"
3431 skipdirs="$skipdirs target-libiberty"
3432 noconfigdirs="$noconfigdirs ${libgcj}"
3433 if test x$with_newlib = xyes; then
3434 noconfigdirs="$noconfigdirs gprof"
3439 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
3442 # Linking libjava exceeds command-line length limits on at least
3443 # IRIX 6.2, but not on IRIX 6.5.
3444 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
3445 # <oldham@codesourcery.com>
3446 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
3449 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
3452 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3455 noconfigdirs="$noconfigdirs gprof ${libgcj}"
3459 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
3463 i[3456789]86-*-vsta) ;; # don't add gprof back in
3464 i[3456789]86-*-go32*) ;; # don't add gprof back in
3465 i[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in
3466 *) skipdirs=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
3470 noconfigdirs="$noconfigdirs ${libgcj}" ;;
3472 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" ;;
3475 sparclet-*-aout* | sparc86x-*-*)
3479 noconfigdirs="$noconfigdirs ${libgcj}"
3482 noconfigdirs="$noconfigdirs ${libgcj}"
3486 noconfigdirs="$noconfigdirs ${libgcj}"
3490 noconfigdirs="$noconfigdirs ${libgcj}"
3491 if test x${is_cross_compiler} != xno ; then
3492 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3497 sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
3498 noconfigdirs="$noconfigdirs ${libgcj}"
3500 sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
3503 noconfigdirs="$noconfigdirs gdb sim ${libgcj}"
3506 noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
3509 noconfigdirs="$noconfigdirs ${libgcj}"
3512 noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
3515 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
3518 noconfigdirs="$noconfigdirs ${libgcj}"
3521 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
3523 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3524 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3527 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
3530 noconfigdirs="$noconfigdirs ${libgcj}"
3534 # If we aren't building newlib, then don't build libgloss, since libgloss
3535 # depends upon some newlib header files.
3536 case "${noconfigdirs}" in
3537 *target-libgloss*) ;;
3538 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3541 # Work in distributions that contain no compiler tools, like Autoconf.
3543 host_makefile_frag=/dev/null
3544 if test -d ${srcdir}/config ; then
3547 # Avoid "too much defining" errors from HPUX compiler.
3548 tentative_cc="cc -Wp,-H256000"
3549 # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
3550 # If it's HP/UX ar, this should be harmless.
3554 tentative_cc="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
3557 #None of the Apollo compilers can compile gas or binutils. The preprocessor
3558 # chokes on bfd, the compiler won't let you assign integers to enums, and
3559 # other problems. Defining CC to gcc is a questionable way to say "don't use
3560 # the apollo compiler" (the preferred version of GCC could be called cc,
3561 # or whatever), but I'm not sure leaving CC as cc is any better...
3562 #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
3563 # Used to have BISON=yacc.
3567 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
3570 # Under CX/UX, we want to tell the compiler to use ANSI mode.
3571 tentative_cc="cc -Xa"
3572 host_makefile_frag="config/mh-cxux"
3574 m88k-motorola-sysv*)
3577 tentative_cc="cc -Wf,-XNg1000"
3578 host_makefile_frag="config/mh-decstation"
3581 # The C compiler on NEC MIPS SVR4 needs bigger tables.
3582 tentative_cc="cc -ZXNd=5000 -ZXNg=1000"
3583 host_makefile_frag="config/mh-necv4"
3586 # Tell compiler to use K&R C. We can't compile under the SGI Ansi
3587 # environment. Also bump switch table size so that cp-parse will
3588 # compile. Bump string length limit so linker builds.
3589 tentative_cc="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
3592 host_makefile_frag="config/mh-sysv4"
3595 # This is for a MIPS running RISC/os 4.52C.
3597 # This is needed for GDB, but needs to be in the top-level make because
3598 # if a library is compiled with the bsd headers and gets linked with the
3599 # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
3600 # a different size).
3601 # ptrace(2) apparently has problems in the BSD environment. No workaround is
3602 # known except to select the sysv environment. Could we use /proc instead?
3603 # These "sysv environments" and "bsd environments" often end up being a pain.
3605 # This is not part of CFLAGS because perhaps not all C compilers have this
3607 tentative_cc="cc -systype sysv"
3612 i[3456789]86-*-sysv5*)
3613 host_makefile_frag="config/mh-sysv5"
3615 i[3456789]86-*-dgux*)
3616 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
3617 host_makefile_frag="config/mh-dgux386"
3619 i[3456789]86-ncr-sysv4.3*)
3620 # The MetaWare compiler will generate a copyright message unless you
3621 # turn it off by adding the -Hnocopyr flag.
3622 tentative_cc="cc -Hnocopyr"
3624 i[3456789]86-ncr-sysv4*)
3625 # for an NCR 3000 (i486/SVR4) system.
3626 # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
3627 # This compiler not only emits obnoxious copyright messages every time
3628 # you run it, but it chokes and dies on a whole bunch of GNU source
3629 # files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
3630 tentative_cc="/usr/ccs/ATT/cc"
3631 host_makefile_frag="config/mh-ncr3000"
3633 i[3456789]86-*-sco3.2v5*)
3635 i[3456789]86-*-sco*)
3636 # The native C compiler botches some simple uses of const. Unfortunately,
3637 # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
3638 tentative_cc="cc -Dconst="
3639 host_makefile_frag="config/mh-sco"
3641 i[3456789]86-*-udk*)
3642 host_makefile_frag="config/mh-sysv5"
3644 i[3456789]86-*-solaris2*)
3645 host_makefile_frag="config/mh-sysv4"
3647 i[3456789]86-*-msdosdjgpp*)
3648 host_makefile_frag="config/mh-djgpp"
3652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3653 $as_echo_n "checking to see if cat works as expected... " >&6; }
3654 echo a >cygwin-cat-check
3655 if test `cat cygwin-cat-check` = a ; then
3657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3658 $as_echo "yes" >&6; }
3661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3662 $as_echo "no" >&6; }
3663 as_fn_error "The cat command does not ignore carriage return characters.
3664 Please either mount the build directory in binary mode or run the following
3665 commands before running any configure script:
3671 host_makefile_frag="config/mh-cygwin"
3674 host_makefile_frag="config/mh-mingw"
3677 host_makefile_frag="config/mh-interix"
3680 # The old BSD pcc isn't up to compiling parts of gdb so use gcc
3684 host_makefile_frag="config/mh-solaris"
3687 # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
3688 # without overflowing the jump tables (-J says to use a 32 bit table)
3689 tentative_cc="cc -J"
3692 tentative_cc="cc -Wp,-H256000"
3693 host_makefile_frag="config/mh-pa-hpux10"
3695 hppa*-hp-hpux* | hppa*-*-hiux*)
3696 tentative_cc="cc -Wp,-H256000"
3697 host_makefile_frag="config/mh-pa"
3700 host_makefile_frag="config/mh-pa"
3702 *-hp-hpux* | *-*-hiux*)
3703 tentative_cc="cc -Wp,-H256000"
3706 # /bin/cc is less than useful for our purposes. Always use GCC
3707 tentative_cc="/usr/cygnus/progressive/bin/gcc"
3708 host_makefile_frag="config/mh-lynxrs6k"
3711 host_makefile_frag="config/mh-darwin"
3714 host_makefile_frag="config/mh-ppc-aix"
3717 host_makefile_frag="config/mh-ppc-aix"
3720 # /bin/cc is less than useful for our purposes. Always use GCC
3721 tentative_cc="/bin/gcc"
3724 host_makefile_frag="config/mh-sysv4"
3726 # This is placed last to prevent interfering with the cases above.
3728 # Build the stage2 and stage3 compilers with -fomit-frame-pointer.
3729 host_makefile_frag="config/mh-x86omitfp"
3734 # If we aren't going to be using gcc, see if we can extract a definition
3735 # of CC from the fragment.
3736 # Actually, use the 'pre-extracted' version above.
3737 if test -z "${CC}" && test "${build}" = "${host}" ; then
3738 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
3740 for dir in $PATH; do
3741 test -z "$dir" && dir=.
3742 if test -f $dir/gcc; then
3748 if test -z "${found}" && test -n "${tentative_cc}" ; then
3753 if test "${build}" != "${host}" ; then
3754 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
3755 AS_FOR_BUILD=${AS_FOR_BUILD-as}
3756 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
3757 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
3758 GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
3759 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
3760 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
3761 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
3762 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
3763 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
3764 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
3765 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
3767 AR_FOR_BUILD="\$(AR)"
3768 AS_FOR_BUILD="\$(AS)"
3769 CC_FOR_BUILD="\$(CC)"
3770 CXX_FOR_BUILD="\$(CXX)"
3771 GCJ_FOR_BUILD="\$(GCJ)"
3772 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
3773 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
3774 LD_FOR_BUILD="\$(LD)"
3775 NM_FOR_BUILD="\$(NM)"
3776 RANLIB_FOR_BUILD="\$(RANLIB)"
3777 WINDRES_FOR_BUILD="\$(WINDRES)"
3778 WINDMC_FOR_BUILD="\$(WINDMC)"
3782 ac_cpp='$CPP $CPPFLAGS'
3783 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3784 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3785 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3786 if test -n "$ac_tool_prefix"; then
3787 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3788 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3790 $as_echo_n "checking for $ac_word... " >&6; }
3791 if test "${ac_cv_prog_CC+set}" = set; then :
3792 $as_echo_n "(cached) " >&6
3794 if test -n "$CC"; then
3795 ac_cv_prog_CC="$CC" # Let the user override the test.
3797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3801 test -z "$as_dir" && as_dir=.
3802 for ac_exec_ext in '' $ac_executable_extensions; do
3803 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3804 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3815 if test -n "$CC"; then
3816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3817 $as_echo "$CC" >&6; }
3819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3820 $as_echo "no" >&6; }
3825 if test -z "$ac_cv_prog_CC"; then
3827 # Extract the first word of "gcc", so it can be a program name with args.
3828 set dummy gcc; ac_word=$2
3829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3830 $as_echo_n "checking for $ac_word... " >&6; }
3831 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3832 $as_echo_n "(cached) " >&6
3834 if test -n "$ac_ct_CC"; then
3835 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3841 test -z "$as_dir" && as_dir=.
3842 for ac_exec_ext in '' $ac_executable_extensions; do
3843 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3844 ac_cv_prog_ac_ct_CC="gcc"
3845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3854 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3855 if test -n "$ac_ct_CC"; then
3856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3857 $as_echo "$ac_ct_CC" >&6; }
3859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3860 $as_echo "no" >&6; }
3863 if test "x$ac_ct_CC" = x; then
3866 case $cross_compiling:$ac_tool_warned in
3868 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3869 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3870 ac_tool_warned=yes ;;
3878 if test -z "$CC"; then
3879 if test -n "$ac_tool_prefix"; then
3880 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3881 set dummy ${ac_tool_prefix}cc; ac_word=$2
3882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3883 $as_echo_n "checking for $ac_word... " >&6; }
3884 if test "${ac_cv_prog_CC+set}" = set; then :
3885 $as_echo_n "(cached) " >&6
3887 if test -n "$CC"; then
3888 ac_cv_prog_CC="$CC" # Let the user override the test.
3890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3894 test -z "$as_dir" && as_dir=.
3895 for ac_exec_ext in '' $ac_executable_extensions; do
3896 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3897 ac_cv_prog_CC="${ac_tool_prefix}cc"
3898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3908 if test -n "$CC"; then
3909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3910 $as_echo "$CC" >&6; }
3912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3913 $as_echo "no" >&6; }
3919 if test -z "$CC"; then
3920 # Extract the first word of "cc", so it can be a program name with args.
3921 set dummy cc; ac_word=$2
3922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3923 $as_echo_n "checking for $ac_word... " >&6; }
3924 if test "${ac_cv_prog_CC+set}" = set; then :
3925 $as_echo_n "(cached) " >&6
3927 if test -n "$CC"; then
3928 ac_cv_prog_CC="$CC" # Let the user override the test.
3931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3935 test -z "$as_dir" && as_dir=.
3936 for ac_exec_ext in '' $ac_executable_extensions; do
3937 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3938 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3939 ac_prog_rejected=yes
3943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3950 if test $ac_prog_rejected = yes; then
3951 # We found a bogon in the path, so make sure we never use it.
3952 set dummy $ac_cv_prog_CC
3954 if test $# != 0; then
3955 # We chose a different compiler from the bogus one.
3956 # However, it has the same basename, so the bogon will be chosen
3957 # first if we set CC to just the basename; use the full file name.
3959 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3965 if test -n "$CC"; then
3966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3967 $as_echo "$CC" >&6; }
3969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3970 $as_echo "no" >&6; }
3975 if test -z "$CC"; then
3976 if test -n "$ac_tool_prefix"; then
3977 for ac_prog in cl.exe
3979 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3980 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3982 $as_echo_n "checking for $ac_word... " >&6; }
3983 if test "${ac_cv_prog_CC+set}" = set; then :
3984 $as_echo_n "(cached) " >&6
3986 if test -n "$CC"; then
3987 ac_cv_prog_CC="$CC" # Let the user override the test.
3989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3993 test -z "$as_dir" && as_dir=.
3994 for ac_exec_ext in '' $ac_executable_extensions; do
3995 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3996 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4007 if test -n "$CC"; then
4008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4009 $as_echo "$CC" >&6; }
4011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4012 $as_echo "no" >&6; }
4016 test -n "$CC" && break
4019 if test -z "$CC"; then
4021 for ac_prog in cl.exe
4023 # Extract the first word of "$ac_prog", so it can be a program name with args.
4024 set dummy $ac_prog; ac_word=$2
4025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4026 $as_echo_n "checking for $ac_word... " >&6; }
4027 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4028 $as_echo_n "(cached) " >&6
4030 if test -n "$ac_ct_CC"; then
4031 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4037 test -z "$as_dir" && as_dir=.
4038 for ac_exec_ext in '' $ac_executable_extensions; do
4039 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4040 ac_cv_prog_ac_ct_CC="$ac_prog"
4041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4050 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4051 if test -n "$ac_ct_CC"; then
4052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4053 $as_echo "$ac_ct_CC" >&6; }
4055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4056 $as_echo "no" >&6; }
4060 test -n "$ac_ct_CC" && break
4063 if test "x$ac_ct_CC" = x; then
4066 case $cross_compiling:$ac_tool_warned in
4068 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4069 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4070 ac_tool_warned=yes ;;
4079 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4080 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4081 as_fn_error "no acceptable C compiler found in \$PATH
4082 See \`config.log' for more details." "$LINENO" 5; }
4084 # Provide some information about the compiler.
4085 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4088 for ac_option in --version -v -V -qversion; do
4089 { { ac_try="$ac_compiler $ac_option >&5"
4091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4092 *) ac_try_echo=$ac_try;;
4094 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4095 $as_echo "$ac_try_echo"; } >&5
4096 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4098 if test -s conftest.err; then
4100 ... rest of stderr output deleted ...
4101 10q' conftest.err >conftest.er1
4102 cat conftest.er1 >&5
4103 rm -f conftest.er1 conftest.err
4105 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4106 test $ac_status = 0; }
4109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4110 /* end confdefs.h. */
4120 ac_clean_files_save=$ac_clean_files
4121 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
4122 # Try to create an executable without -o first, disregard a.out.
4123 # It will help us diagnose broken compilers, and finding out an intuition
4125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4126 $as_echo_n "checking for C compiler default output file name... " >&6; }
4127 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4129 # The possible output files:
4130 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4133 for ac_file in $ac_files
4136 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4137 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4142 if { { ac_try="$ac_link_default"
4144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4145 *) ac_try_echo=$ac_try;;
4147 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4148 $as_echo "$ac_try_echo"; } >&5
4149 (eval "$ac_link_default") 2>&5
4151 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4152 test $ac_status = 0; }; then :
4153 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4154 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4155 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4156 # so that the user can short-circuit this test for compilers unknown to
4158 for ac_file in $ac_files ''
4160 test -f "$ac_file" || continue
4162 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4165 # We found the default executable, but exeext='' is most
4169 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4171 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4173 # We set ac_cv_exeext here because the later test for it is not
4174 # safe: cross compilers may not add the suffix if given an `-o'
4175 # argument, so we may need to know it at that point already.
4176 # Even if this section looks crufty: it has the advantage of
4183 test "$ac_cv_exeext" = no && ac_cv_exeext=
4188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4189 $as_echo "$ac_file" >&6; }
4190 if test -z "$ac_file"; then :
4191 $as_echo "$as_me: failed program was:" >&5
4192 sed 's/^/| /' conftest.$ac_ext >&5
4194 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4195 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4196 { as_fn_set_status 77
4197 as_fn_error "C compiler cannot create executables
4198 See \`config.log' for more details." "$LINENO" 5; }; }
4200 ac_exeext=$ac_cv_exeext
4202 # Check that the compiler produces executables we can run. If not, either
4203 # the compiler is broken, or we cross compile.
4204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4205 $as_echo_n "checking whether the C compiler works... " >&6; }
4206 # If not cross compiling, check that we can run a simple program.
4207 if test "$cross_compiling" != yes; then
4208 if { ac_try='./$ac_file'
4209 { { case "(($ac_try" in
4210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4211 *) ac_try_echo=$ac_try;;
4213 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4214 $as_echo "$ac_try_echo"; } >&5
4215 (eval "$ac_try") 2>&5
4217 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4218 test $ac_status = 0; }; }; then
4221 if test "$cross_compiling" = maybe; then
4224 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4225 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4226 as_fn_error "cannot run C compiled programs.
4227 If you meant to cross compile, use \`--host'.
4228 See \`config.log' for more details." "$LINENO" 5; }
4232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4233 $as_echo "yes" >&6; }
4235 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4236 ac_clean_files=$ac_clean_files_save
4237 # Check that the compiler produces executables we can run. If not, either
4238 # the compiler is broken, or we cross compile.
4239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4240 $as_echo_n "checking whether we are cross compiling... " >&6; }
4241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4242 $as_echo "$cross_compiling" >&6; }
4244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4245 $as_echo_n "checking for suffix of executables... " >&6; }
4246 if { { ac_try="$ac_link"
4248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4249 *) ac_try_echo=$ac_try;;
4251 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4252 $as_echo "$ac_try_echo"; } >&5
4253 (eval "$ac_link") 2>&5
4255 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4256 test $ac_status = 0; }; then :
4257 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4258 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4259 # work properly (i.e., refer to `conftest.exe'), while it won't with
4261 for ac_file in conftest.exe conftest conftest.*; do
4262 test -f "$ac_file" || continue
4264 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4265 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4271 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4272 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4273 as_fn_error "cannot compute suffix of executables: cannot compile and link
4274 See \`config.log' for more details." "$LINENO" 5; }
4276 rm -f conftest$ac_cv_exeext
4277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4278 $as_echo "$ac_cv_exeext" >&6; }
4280 rm -f conftest.$ac_ext
4281 EXEEXT=$ac_cv_exeext
4283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4284 $as_echo_n "checking for suffix of object files... " >&6; }
4285 if test "${ac_cv_objext+set}" = set; then :
4286 $as_echo_n "(cached) " >&6
4288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4289 /* end confdefs.h. */
4299 rm -f conftest.o conftest.obj
4300 if { { ac_try="$ac_compile"
4302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4303 *) ac_try_echo=$ac_try;;
4305 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4306 $as_echo "$ac_try_echo"; } >&5
4307 (eval "$ac_compile") 2>&5
4309 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4310 test $ac_status = 0; }; then :
4311 for ac_file in conftest.o conftest.obj conftest.*; do
4312 test -f "$ac_file" || continue;
4314 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4315 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4320 $as_echo "$as_me: failed program was:" >&5
4321 sed 's/^/| /' conftest.$ac_ext >&5
4323 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4324 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4325 as_fn_error "cannot compute suffix of object files: cannot compile
4326 See \`config.log' for more details." "$LINENO" 5; }
4328 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4331 $as_echo "$ac_cv_objext" >&6; }
4332 OBJEXT=$ac_cv_objext
4334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4335 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4336 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4337 $as_echo_n "(cached) " >&6
4339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4340 /* end confdefs.h. */
4353 if ac_fn_c_try_compile "$LINENO"; then :
4358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4359 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4363 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4364 if test $ac_compiler_gnu = yes; then
4369 ac_test_CFLAGS=${CFLAGS+set}
4370 ac_save_CFLAGS=$CFLAGS
4371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4372 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4373 if test "${ac_cv_prog_cc_g+set}" = set; then :
4374 $as_echo_n "(cached) " >&6
4376 ac_save_c_werror_flag=$ac_c_werror_flag
4377 ac_c_werror_flag=yes
4380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4381 /* end confdefs.h. */
4391 if ac_fn_c_try_compile "$LINENO"; then :
4395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4396 /* end confdefs.h. */
4406 if ac_fn_c_try_compile "$LINENO"; then :
4409 ac_c_werror_flag=$ac_save_c_werror_flag
4411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4412 /* end confdefs.h. */
4422 if ac_fn_c_try_compile "$LINENO"; then :
4425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4430 ac_c_werror_flag=$ac_save_c_werror_flag
4432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4433 $as_echo "$ac_cv_prog_cc_g" >&6; }
4434 if test "$ac_test_CFLAGS" = set; then
4435 CFLAGS=$ac_save_CFLAGS
4436 elif test $ac_cv_prog_cc_g = yes; then
4437 if test "$GCC" = yes; then
4443 if test "$GCC" = yes; then
4449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4450 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4451 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4452 $as_echo_n "(cached) " >&6
4454 ac_cv_prog_cc_c89=no
4456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4457 /* end confdefs.h. */
4460 #include <sys/types.h>
4461 #include <sys/stat.h>
4462 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4463 struct buf { int x; };
4464 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4465 static char *e (p, i)
4471 static char *f (char * (*g) (char **, int), char **p, ...)
4476 s = g (p, va_arg (v,int));
4481 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4482 function prototypes and stuff, but not '\xHH' hex character constants.
4483 These don't provoke an error unfortunately, instead are silently treated
4484 as 'x'. The following induces an error, until -std is added to get
4485 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4486 array size at least. It's necessary to write '\x00'==0 to get something
4487 that's true only with -std. */
4488 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4490 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4491 inside strings and character constants. */
4493 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4495 int test (int i, double x);
4496 struct s1 {int (*f) (int a);};
4497 struct s2 {int (*f) (double a);};
4498 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4504 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4509 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4510 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4512 CC="$ac_save_CC $ac_arg"
4513 if ac_fn_c_try_compile "$LINENO"; then :
4514 ac_cv_prog_cc_c89=$ac_arg
4516 rm -f core conftest.err conftest.$ac_objext
4517 test "x$ac_cv_prog_cc_c89" != "xno" && break
4519 rm -f conftest.$ac_ext
4524 case "x$ac_cv_prog_cc_c89" in
4526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4527 $as_echo "none needed" >&6; } ;;
4529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4530 $as_echo "unsupported" >&6; } ;;
4532 CC="$CC $ac_cv_prog_cc_c89"
4533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4534 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;