Merge branch 'vendor/BZIP'
[dragonfly.git] / contrib / binutils-2.20 / configure
CommitLineData
8e158dd0
SS
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.64.
4#
5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7# Foundation, Inc.
8#
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## -------------------- ##
14
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
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+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30esac
31fi
32
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_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.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50else
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'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79fi
80
81
82# IFS
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.)
87IFS=" "" $as_nl"
88
89# Find who we are. Look in the path if we contain no directory separator.
90case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93for as_dir in $PATH
94do
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99IFS=$as_save_IFS
100
101 ;;
102esac
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.
105if test "x$as_myself" = x; then
106 as_myself=$0
107fi
108if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
111fi
112
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.
117for as_var in BASH_ENV ENV MAIL MAILPATH
118do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120done
121PS1='$ '
122PS2='> '
123PS4='+ '
124
125# NLS nuisances.
126LC_ALL=C
127export LC_ALL
128LANGUAGE=C
129export LANGUAGE
130
131# CDPATH.
132(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
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+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
147 ;;
148esac
149fi
150"
151 as_required="as_fn_return () { (exit \$1); }
152as_fn_success () { as_fn_return 0; }
153as_fn_failure () { as_fn_return 1; }
154as_fn_ret_success () { return 0; }
155as_fn_ret_failure () { return 1; }
156
157exitcode=0
158as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164else
165 exitcode=1; echo positional parameters were not saved.
166fi
167test 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
172test \$(( 1 + 1 )) = 2 || exit 1"
173 if (eval "$as_required") 2>/dev/null; then :
174 as_have_required=yes
175else
176 as_have_required=no
177fi
178 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
179
180else
181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
182as_found=false
183for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
184do
185 IFS=$as_save_IFS
186 test -z "$as_dir" && as_dir=.
187 as_found=:
188 case $as_dir in #(
189 /*)
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 :
197 break 2
198fi
199fi
200 done;;
201 esac
202 as_found=false
203done
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
207fi; }
208IFS=$as_save_IFS
209
210
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.
215 BASH_ENV=/dev/null
216 ENV=/dev/null
217 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
218 export CONFIG_SHELL
219 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
220fi
221
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."
228 else
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."
233 fi
234 exit 1
235fi
236fi
237fi
238SHELL=${CONFIG_SHELL-/bin/sh}
239export SHELL
240# Unset more variables known to interfere with behavior of common tools.
241CLICOLOR_FORCE= GREP_OPTIONS=
242unset CLICOLOR_FORCE GREP_OPTIONS
243
244## --------------------- ##
245## M4sh Shell Functions. ##
246## --------------------- ##
247# as_fn_unset VAR
248# ---------------
249# Portably unset VAR.
250as_fn_unset ()
251{
252 { eval $1=; unset $1;}
253}
254as_unset=as_fn_unset
255
256# as_fn_set_status STATUS
257# -----------------------
258# Set $? to STATUS, without forking.
259as_fn_set_status ()
260{
261 return $1
262} # as_fn_set_status
263
264# as_fn_exit STATUS
265# -----------------
266# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
267as_fn_exit ()
268{
269 set +e
270 as_fn_set_status $1
271 exit $1
272} # as_fn_exit
273
274# as_fn_mkdir_p
275# -------------
276# Create "$as_dir" as a directory, including parents if necessary.
277as_fn_mkdir_p ()
278{
279
280 case $as_dir in #(
281 -*) as_dir=./$as_dir;;
282 esac
283 test -d "$as_dir" || eval $as_mkdir_p || {
284 as_dirs=
285 while :; do
286 case $as_dir in #(
287 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
288 *) as_qdir=$as_dir;;
289 esac
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\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
298 s//\1/
299 q
300 }
301 /^X\(\/\/\)[^/].*/{
302 s//\1/
303 q
304 }
305 /^X\(\/\/\)$/{
306 s//\1/
307 q
308 }
309 /^X\(\/\).*/{
310 s//\1/
311 q
312 }
313 s/.*/./; q'`
314 test -d "$as_dir" && break
315 done
316 test -z "$as_dirs" || eval "mkdir $as_dirs"
317 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
318
319
320} # as_fn_mkdir_p
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
326# implementations.
327if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
328 eval 'as_fn_append ()
329 {
330 eval $1+=\$2
331 }'
332else
333 as_fn_append ()
334 {
335 eval $1=\$$1\$2
336 }
337fi # as_fn_append
338
339# as_fn_arith ARG...
340# ------------------
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.
344if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
345 eval 'as_fn_arith ()
346 {
347 as_val=$(( $* ))
348 }'
349else
350 as_fn_arith ()
351 {
352 as_val=`expr "$@" || test $? -eq 1`
353 }
354fi # as_fn_arith
355
356
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.
362as_fn_error ()
363{
364 as_status=$?; test $as_status -eq 0 && as_status=1
365 if test "$3"; then
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
368 fi
369 $as_echo "$as_me: error: $1" >&2
370 as_fn_exit $as_status
371} # as_fn_error
372
373if expr a : '\(a\)' >/dev/null 2>&1 &&
374 test "X`expr 00001 : '.*\(...\)'`" = X001; then
375 as_expr=expr
376else
377 as_expr=false
378fi
379
380if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
381 as_basename=basename
382else
383 as_basename=false
384fi
385
386if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
387 as_dirname=dirname
388else
389 as_dirname=false
390fi
391
392as_me=`$as_basename -- "$0" ||
393$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394 X"$0" : 'X\(//\)$' \| \
395 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
396$as_echo X/"$0" |
397 sed '/^.*\/\([^/][^/]*\)\/*$/{
398 s//\1/
399 q
400 }
401 /^X\/\(\/\/\)$/{
402 s//\1/
403 q
404 }
405 /^X\/\(\/\).*/{
406 s//\1/
407 q
408 }
409 s/.*/./; q'`
410
411# Avoid depending upon Character Ranges.
412as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415as_cr_digits='0123456789'
416as_cr_alnum=$as_cr_Letters$as_cr_digits
417
418
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. :-)
424 sed -n '
425 p
426 /[$]LINENO/=
427 ' <$as_myself |
428 sed '
429 s/[$]LINENO.*/&-/
430 t lineno
431 b
432 :lineno
433 N
434 :loop
435 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
436 t loop
437 s/-\n.*//
438 ' >$as_me.lineno &&
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; }
441
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).
445 . "./$as_me.lineno"
446 # Exit status is that of the last command.
447 exit
448}
449
450ECHO_C= ECHO_N= ECHO_T=
451case `echo -n x` in #(((((
452-n*)
453 case `echo 'xy\c'` in
454 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
455 xy) ECHO_C='\c';;
456 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
457 ECHO_T=' ';;
458 esac;;
459*)
460 ECHO_N='-n';;
461esac
462
463rm -f conf$$ conf$$.exe conf$$.file
464if test -d conf$$.dir; then
465 rm -f conf$$.dir/conf$$.file
466else
467 rm -f conf$$.dir
468 mkdir conf$$.dir 2>/dev/null
469fi
470if (echo >conf$$.file) 2>/dev/null; then
471 if ln -s conf$$.file conf$$ 2>/dev/null; then
472 as_ln_s='ln -s'
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 ||
478 as_ln_s='cp -p'
479 elif ln conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s=ln
481 else
482 as_ln_s='cp -p'
483 fi
484else
485 as_ln_s='cp -p'
486fi
487rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488rmdir conf$$.dir 2>/dev/null
489
490if mkdir -p . 2>/dev/null; then
491 as_mkdir_p='mkdir -p "$as_dir"'
492else
493 test -d ./-p && rmdir ./-p
494 as_mkdir_p=false
495fi
496
497if test -x / >/dev/null 2>&1; then
498 as_test_x='test -x'
499else
500 if ls -dL / >/dev/null 2>&1; then
501 as_ls_L_option=L
502 else
503 as_ls_L_option=
504 fi
505 as_test_x='
506 eval sh -c '\''
507 if test -d "$1"; then
508 test -d "$1/.";
509 else
510 case $1 in #(
511 -*)set "./$1";;
512 esac;
513 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514 ???[sx]*):;;*)false;;esac;fi
515 '\'' sh
516 '
517fi
518as_executable_p=$as_test_x
519
520# Sed expression to map a string onto a valid CPP name.
521as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
522
523# Sed expression to map a string onto a valid variable name.
524as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
525
526
527exec 7<&0 </dev/null 6>&1
528
529# Name of the host.
530# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
531# so uname gets run too.
532ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
533
534#
535# Initializations.
536#
537ac_default_prefix=/usr/local
538ac_clean_files=
539ac_config_libobj_dir=.
540LIBOBJS=
541cross_compiling=no
542subdirs=
543MFLAGS=
544MAKEFLAGS=
545
546# Identity of this package.
547PACKAGE_NAME=
548PACKAGE_TARNAME=
549PACKAGE_VERSION=
550PACKAGE_STRING=
551PACKAGE_BUGREPORT=
552PACKAGE_URL=
553
554ac_unique_file="move-if-change"
555enable_option_checking=no
556ac_subst_vars='LTLIBOBJS
557LIBOBJS
558compare_exclusions
559stage2_werror_flag
560stage1_checking
561stage1_cflags
562MAINT
563MAINTAINER_MODE_FALSE
564MAINTAINER_MODE_TRUE
565COMPILER_NM_FOR_TARGET
566COMPILER_LD_FOR_TARGET
567COMPILER_AS_FOR_TARGET
568FLAGS_FOR_TARGET
569RAW_CXX_FOR_TARGET
570WINDMC_FOR_TARGET
571WINDRES_FOR_TARGET
572STRIP_FOR_TARGET
573RANLIB_FOR_TARGET
574OBJDUMP_FOR_TARGET
575NM_FOR_TARGET
576LIPO_FOR_TARGET
577LD_FOR_TARGET
578DLLTOOL_FOR_TARGET
579AS_FOR_TARGET
580AR_FOR_TARGET
581GFORTRAN_FOR_TARGET
582GCJ_FOR_TARGET
583GCC_FOR_TARGET
584CXX_FOR_TARGET
585CC_FOR_TARGET
586OBJDUMP
587OBJCOPY
588WINDMC
589WINDRES
590STRIP
591RANLIB
592NM
593LIPO
594LD
595DLLTOOL
596AS
597AR
598RUNTEST
599EXPECT
600MAKEINFO
601FLEX
602LEX
603M4
604BISON
605YACC
606config_shell
607WINDRES_FOR_BUILD
608WINDMC_FOR_BUILD
609RANLIB_FOR_BUILD
610NM_FOR_BUILD
611LD_FOR_BUILD
612LDFLAGS_FOR_BUILD
613GFORTRAN_FOR_BUILD
614GCJ_FOR_BUILD
615DLLTOOL_FOR_BUILD
616CXX_FOR_BUILD
617CXXFLAGS_FOR_BUILD
618CFLAGS_FOR_BUILD
619CC_FOR_BUILD
620AS_FOR_BUILD
621AR_FOR_BUILD
622target_configargs
623configdirs
624host_configargs
625build_configdirs
626build_configargs
627INSTALL_GDB_TK
628GDB_TK
629CONFIGURE_GDB_TK
630build_tooldir
631tooldir
632GCC_SHLIB_SUBDIR
633RPATH_ENVVAR
634CXXFLAGS_FOR_TARGET
635CFLAGS_FOR_TARGET
636DEBUG_PREFIX_CFLAGS_FOR_TARGET
637SYSROOT_CFLAGS_FOR_TARGET
638stage1_languages
639clooginc
640clooglibs
641pplinc
642ppllibs
643poststage1_libs
644poststage1_ldflags
645stage1_libs
646stage1_ldflags
647extra_mpc_mpfr_configure_flags
648extra_mpc_gmp_configure_flags
649extra_mpfr_configure_flags
650gmpinc
651gmplibs
652do_compare
653GNATMAKE
654GNATBIND
655ac_ct_CXX
656CXXFLAGS
657CXX
658OBJEXT
659EXEEXT
660ac_ct_CC
661CPPFLAGS
662LDFLAGS
663CFLAGS
664CC
665target_subdir
666host_subdir
667build_subdir
668build_libsubdir
669AWK
670SED
671LN_S
672LN
673INSTALL_DATA
674INSTALL_SCRIPT
675INSTALL_PROGRAM
676target_os
677target_vendor
678target_cpu
679target
680host_os
681host_vendor
682host_cpu
683host
684target_noncanonical
685host_noncanonical
686build_noncanonical
687build_os
688build_vendor
689build_cpu
690build
691TOPLEVEL_CONFIGURE_ARGUMENTS
692target_alias
693host_alias
694build_alias
695LIBS
696ECHO_T
697ECHO_N
698ECHO_C
699DEFS
700mandir
701localedir
702libdir
703psdir
704pdfdir
705dvidir
706htmldir
707infodir
708docdir
709oldincludedir
710includedir
711localstatedir
712sharedstatedir
713sysconfdir
714datadir
715datarootdir
716libexecdir
717sbindir
718bindir
719program_transform_name
720prefix
721exec_prefix
722PACKAGE_URL
723PACKAGE_BUGREPORT
724PACKAGE_STRING
725PACKAGE_VERSION
726PACKAGE_TARNAME
727PACKAGE_NAME
728PATH_SEPARATOR
729SHELL'
730ac_subst_files='serialization_dependencies
731host_makefile_frag
732target_makefile_frag
733alphaieee_frag
734ospace_frag'
735ac_user_opts='
736enable_option_checking
737with_build_libsubdir
738enable_gold
739enable_libada
740enable_libssp
741enable_build_with_cxx
742with_mpc
743with_mpc_include
744with_mpc_lib
745with_mpfr_dir
746with_mpfr
747with_mpfr_include
748with_mpfr_lib
749with_gmp_dir
750with_gmp
751with_gmp_include
752with_gmp_lib
753with_host_libstdcxx
754with_stage1_ldflags
755with_stage1_libs
756with_boot_ldflags
757with_boot_libs
758with_ppl
759with_ppl_include
760with_ppl_lib
761enable_ppl_version_check
762with_cloog
763with_cloog_include
764with_cloog_lib
765enable_cloog_version_check
766enable_stage1_languages
767enable_objc_gc
768with_build_sysroot
769with_debug_prefix_map
770enable_bootstrap
771enable_serial_configure
772with_build_time_tools
773enable_maintainer_mode
774enable_stage1_checking
775enable_werror
776'
777 ac_precious_vars='build_alias
778host_alias
779target_alias
780CC
781CFLAGS
782LDFLAGS
783LIBS
784CPPFLAGS
785CXX
786CXXFLAGS
787CCC
788AR
789AS
790DLLTOOL
791LD
792LIPO
793NM
794RANLIB
795STRIP
796WINDRES
797WINDMC
798OBJCOPY
799OBJDUMP
800CC_FOR_TARGET
801CXX_FOR_TARGET
802GCC_FOR_TARGET
803GCJ_FOR_TARGET
804GFORTRAN_FOR_TARGET
805AR_FOR_TARGET
806AS_FOR_TARGET
807DLLTOOL_FOR_TARGET
808LD_FOR_TARGET
809LIPO_FOR_TARGET
810NM_FOR_TARGET
811OBJDUMP_FOR_TARGET
812RANLIB_FOR_TARGET
813STRIP_FOR_TARGET
814WINDRES_FOR_TARGET
815WINDMC_FOR_TARGET'
816
817
818# Initialize some variables set by options.
819ac_init_help=
820ac_init_version=false
821ac_unrecognized_opts=
822ac_unrecognized_sep=
823# The variables have the same names as the options, with
824# dashes changed to underlines.
825cache_file=/dev/null
826exec_prefix=NONE
827no_create=
828no_recursion=
829prefix=NONE
830program_prefix=NONE
831program_suffix=NONE
832program_transform_name=s,x,x,
833silent=
834site=
835srcdir=
836verbose=
837x_includes=NONE
838x_libraries=NONE
839
840# Installation directory options.
841# These are left unexpanded so users can "make install exec_prefix=/foo"
842# and all the variables that are supposed to be based on exec_prefix
843# by default will actually change.
844# Use braces instead of parens because sh, perl, etc. also accept them.
845# (The list follows the same order as the GNU Coding Standards.)
846bindir='${exec_prefix}/bin'
847sbindir='${exec_prefix}/sbin'
848libexecdir='${exec_prefix}/libexec'
849datarootdir='${prefix}/share'
850datadir='${datarootdir}'
851sysconfdir='${prefix}/etc'
852sharedstatedir='${prefix}/com'
853localstatedir='${prefix}/var'
854includedir='${prefix}/include'
855oldincludedir='/usr/include'
856docdir='${datarootdir}/doc/${PACKAGE}'
857infodir='${datarootdir}/info'
858htmldir='${docdir}'
859dvidir='${docdir}'
860pdfdir='${docdir}'
861psdir='${docdir}'
862libdir='${exec_prefix}/lib'
863localedir='${datarootdir}/locale'
864mandir='${datarootdir}/man'
865
866ac_prev=
867ac_dashdash=
868for ac_option
869do
870 # If the previous option needs an argument, assign it.
871 if test -n "$ac_prev"; then
872 eval $ac_prev=\$ac_option
873 ac_prev=
874 continue
875 fi
876
877 case $ac_option in
878 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
879 *) ac_optarg=yes ;;
880 esac
881
882 # Accept the important Cygnus configure options, so we can diagnose typos.
883
884 case $ac_dashdash$ac_option in
885 --)
886 ac_dashdash=yes ;;
887
888 -bindir | --bindir | --bindi | --bind | --bin | --bi)
889 ac_prev=bindir ;;
890 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
891 bindir=$ac_optarg ;;
892
893 -build | --build | --buil | --bui | --bu)
894 ac_prev=build_alias ;;
895 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
896 build_alias=$ac_optarg ;;
897
898 -cache-file | --cache-file | --cache-fil | --cache-fi \
899 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
900 ac_prev=cache_file ;;
901 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
902 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
903 cache_file=$ac_optarg ;;
904
905 --config-cache | -C)
906 cache_file=config.cache ;;
907
908 -datadir | --datadir | --datadi | --datad)
909 ac_prev=datadir ;;
910 -datadir=* | --datadir=* | --datadi=* | --datad=*)
911 datadir=$ac_optarg ;;
912
913 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
914 | --dataroo | --dataro | --datar)
915 ac_prev=datarootdir ;;
916 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
917 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
918 datarootdir=$ac_optarg ;;
919
920 -disable-* | --disable-*)
921 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
922 # Reject names that are not valid shell variable names.
923 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
924 as_fn_error "invalid feature name: $ac_useropt"
925 ac_useropt_orig=$ac_useropt
926 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
927 case $ac_user_opts in
928 *"
929"enable_$ac_useropt"
930"*) ;;
931 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
932 ac_unrecognized_sep=', ';;
933 esac
934 eval enable_$ac_useropt=no ;;
935
936 -docdir | --docdir | --docdi | --doc | --do)
937 ac_prev=docdir ;;
938 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
939 docdir=$ac_optarg ;;
940
941 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
942 ac_prev=dvidir ;;
943 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
944 dvidir=$ac_optarg ;;
945
946 -enable-* | --enable-*)
947 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
948 # Reject names that are not valid shell variable names.
949 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
950 as_fn_error "invalid feature name: $ac_useropt"
951 ac_useropt_orig=$ac_useropt
952 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
953 case $ac_user_opts in
954 *"
955"enable_$ac_useropt"
956"*) ;;
957 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
958 ac_unrecognized_sep=', ';;
959 esac
960 eval enable_$ac_useropt=\$ac_optarg ;;
961
962 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
963 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
964 | --exec | --exe | --ex)
965 ac_prev=exec_prefix ;;
966 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
967 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
968 | --exec=* | --exe=* | --ex=*)
969 exec_prefix=$ac_optarg ;;
970
971 -gas | --gas | --ga | --g)
972 # Obsolete; use --with-gas.
973 with_gas=yes ;;
974
975 -help | --help | --hel | --he | -h)
976 ac_init_help=long ;;
977 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
978 ac_init_help=recursive ;;
979 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
980 ac_init_help=short ;;
981
982 -host | --host | --hos | --ho)
983 ac_prev=host_alias ;;
984 -host=* | --host=* | --hos=* | --ho=*)
985 host_alias=$ac_optarg ;;
986
987 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
988 ac_prev=htmldir ;;
989 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
990 | --ht=*)
991 htmldir=$ac_optarg ;;
992
993 -includedir | --includedir | --includedi | --included | --include \
994 | --includ | --inclu | --incl | --inc)
995 ac_prev=includedir ;;
996 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
997 | --includ=* | --inclu=* | --incl=* | --inc=*)
998 includedir=$ac_optarg ;;
999
1000 -infodir | --infodir | --infodi | --infod | --info | --inf)
1001 ac_prev=infodir ;;
1002 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1003 infodir=$ac_optarg ;;
1004
1005 -libdir | --libdir | --libdi | --libd)
1006 ac_prev=libdir ;;
1007 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1008 libdir=$ac_optarg ;;
1009
1010 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1011 | --libexe | --libex | --libe)
1012 ac_prev=libexecdir ;;
1013 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1014 | --libexe=* | --libex=* | --libe=*)
1015 libexecdir=$ac_optarg ;;
1016
1017 -localedir | --localedir | --localedi | --localed | --locale)
1018 ac_prev=localedir ;;
1019 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1020 localedir=$ac_optarg ;;
1021
1022 -localstatedir | --localstatedir | --localstatedi | --localstated \
1023 | --localstate | --localstat | --localsta | --localst | --locals)
1024 ac_prev=localstatedir ;;
1025 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1026 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1027 localstatedir=$ac_optarg ;;
1028
1029 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1030 ac_prev=mandir ;;
1031 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1032 mandir=$ac_optarg ;;
1033
1034 -nfp | --nfp | --nf)
1035 # Obsolete; use --without-fp.
1036 with_fp=no ;;
1037
1038 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1039 | --no-cr | --no-c | -n)
1040 no_create=yes ;;
1041
1042 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1043 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1044 no_recursion=yes ;;
1045
1046 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1047 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1048 | --oldin | --oldi | --old | --ol | --o)
1049 ac_prev=oldincludedir ;;
1050 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1051 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1052 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1053 oldincludedir=$ac_optarg ;;
1054
1055 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1056 ac_prev=prefix ;;
1057 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1058 prefix=$ac_optarg ;;
1059
1060 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1061 | --program-pre | --program-pr | --program-p)
1062 ac_prev=program_prefix ;;
1063 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1064 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1065 program_prefix=$ac_optarg ;;
1066
1067 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1068 | --program-suf | --program-su | --program-s)
1069 ac_prev=program_suffix ;;
1070 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1071 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1072 program_suffix=$ac_optarg ;;
1073
1074 -program-transform-name | --program-transform-name \
1075 | --program-transform-nam | --program-transform-na \
1076 | --program-transform-n | --program-transform- \
1077 | --program-transform | --program-transfor \
1078 | --program-transfo | --program-transf \
1079 | --program-trans | --program-tran \
1080 | --progr-tra | --program-tr | --program-t)
1081 ac_prev=program_transform_name ;;
1082 -program-transform-name=* | --program-transform-name=* \
1083 | --program-transform-nam=* | --program-transform-na=* \
1084 | --program-transform-n=* | --program-transform-=* \
1085 | --program-transform=* | --program-transfor=* \
1086 | --program-transfo=* | --program-transf=* \
1087 | --program-trans=* | --program-tran=* \
1088 | --progr-tra=* | --program-tr=* | --program-t=*)
1089 program_transform_name=$ac_optarg ;;
1090
1091 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1092 ac_prev=pdfdir ;;
1093 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1094 pdfdir=$ac_optarg ;;
1095
1096 -psdir | --psdir | --psdi | --psd | --ps)
1097 ac_prev=psdir ;;
1098 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1099 psdir=$ac_optarg ;;
1100
1101 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1102 | -silent | --silent | --silen | --sile | --sil)
1103 silent=yes ;;
1104
1105 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1106 ac_prev=sbindir ;;
1107 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1108 | --sbi=* | --sb=*)
1109 sbindir=$ac_optarg ;;
1110
1111 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1112 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1113 | --sharedst | --shareds | --shared | --share | --shar \
1114 | --sha | --sh)
1115 ac_prev=sharedstatedir ;;
1116 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1117 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1118 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1119 | --sha=* | --sh=*)
1120 sharedstatedir=$ac_optarg ;;
1121
1122 -site | --site | --sit)
1123 ac_prev=site ;;
1124 -site=* | --site=* | --sit=*)
1125 site=$ac_optarg ;;
1126
1127 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1128 ac_prev=srcdir ;;
1129 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1130 srcdir=$ac_optarg ;;
1131
1132 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1133 | --syscon | --sysco | --sysc | --sys | --sy)
1134 ac_prev=sysconfdir ;;
1135 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1136 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1137 sysconfdir=$ac_optarg ;;
1138
1139 -target | --target | --targe | --targ | --tar | --ta | --t)
1140 ac_prev=target_alias ;;
1141 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1142 target_alias=$ac_optarg ;;
1143
1144 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1145 verbose=yes ;;
1146
1147 -version | --version | --versio | --versi | --vers | -V)
1148 ac_init_version=: ;;
1149
1150 -with-* | --with-*)
1151 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1152 # Reject names that are not valid shell variable names.
1153 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1154 as_fn_error "invalid package name: $ac_useropt"
1155 ac_useropt_orig=$ac_useropt
1156 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1157 case $ac_user_opts in
1158 *"
1159"with_$ac_useropt"
1160"*) ;;
1161 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1162 ac_unrecognized_sep=', ';;
1163 esac
1164 eval with_$ac_useropt=\$ac_optarg ;;
1165
1166 -without-* | --without-*)
1167 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1168 # Reject names that are not valid shell variable names.
1169 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1170 as_fn_error "invalid package name: $ac_useropt"
1171 ac_useropt_orig=$ac_useropt
1172 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1173 case $ac_user_opts in
1174 *"
1175"with_$ac_useropt"
1176"*) ;;
1177 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1178 ac_unrecognized_sep=', ';;
1179 esac
1180 eval with_$ac_useropt=no ;;
1181
1182 --x)
1183 # Obsolete; use --with-x.
1184 with_x=yes ;;
1185
1186 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1187 | --x-incl | --x-inc | --x-in | --x-i)
1188 ac_prev=x_includes ;;
1189 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1190 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1191 x_includes=$ac_optarg ;;
1192
1193 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1194 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1195 ac_prev=x_libraries ;;
1196 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1197 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1198 x_libraries=$ac_optarg ;;
1199
1200 -*) as_fn_error "unrecognized option: \`$ac_option'
1201Try \`$0 --help' for more information."
1202 ;;
1203
1204 *=*)
1205 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1206 # Reject names that are not valid shell variable names.
1207 case $ac_envvar in #(
1208 '' | [0-9]* | *[!_$as_cr_alnum]* )
1209 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1210 esac
1211 eval $ac_envvar=\$ac_optarg
1212 export $ac_envvar ;;
1213
1214 *)
1215 # FIXME: should be removed in autoconf 3.0.
1216 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1217 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1218 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1219 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1220 ;;
1221
1222 esac
1223done
1224
1225if test -n "$ac_prev"; then
1226 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1227 as_fn_error "missing argument to $ac_option"
1228fi
1229
1230if test -n "$ac_unrecognized_opts"; then
1231 case $enable_option_checking in
1232 no) ;;
1233 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1234 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1235 esac
1236fi
1237
1238# Check all directory arguments for consistency.
1239for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1240 datadir sysconfdir sharedstatedir localstatedir includedir \
1241 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1242 libdir localedir mandir
1243do
1244 eval ac_val=\$$ac_var
1245 # Remove trailing slashes.
1246 case $ac_val in
1247 */ )
1248 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1249 eval $ac_var=\$ac_val;;
1250 esac
1251 # Be sure to have absolute directory names.
1252 case $ac_val in
1253 [\\/$]* | ?:[\\/]* ) continue;;
1254 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1255 esac
1256 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1257done
1258
1259# There might be people who depend on the old broken behavior: `$host'
1260# used to hold the argument of --host etc.
1261# FIXME: To remove some day.
1262build=$build_alias
1263host=$host_alias
1264target=$target_alias
1265
1266# FIXME: To remove some day.
1267if test "x$host_alias" != x; then
1268 if test "x$build_alias" = x; then
1269 cross_compiling=maybe
1270 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1271 If a cross compiler is detected then cross compile mode will be used." >&2
1272 elif test "x$build_alias" != "x$host_alias"; then
1273 cross_compiling=yes
1274 fi
1275fi
1276
1277ac_tool_prefix=
1278test -n "$host_alias" && ac_tool_prefix=$host_alias-
1279
1280test "$silent" = yes && exec 6>/dev/null
1281
1282
1283ac_pwd=`pwd` && test -n "$ac_pwd" &&
1284ac_ls_di=`ls -di .` &&
1285ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1286 as_fn_error "working directory cannot be determined"
1287test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1288 as_fn_error "pwd does not report name of working directory"
1289
1290
1291# Find the source files, if location was not specified.
1292if test -z "$srcdir"; then
1293 ac_srcdir_defaulted=yes
1294 # Try the directory containing this script, then the parent directory.
1295 ac_confdir=`$as_dirname -- "$as_myself" ||
1296$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1297 X"$as_myself" : 'X\(//\)[^/]' \| \
1298 X"$as_myself" : 'X\(//\)$' \| \
1299 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1300$as_echo X"$as_myself" |
1301 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1302 s//\1/
1303 q
1304 }
1305 /^X\(\/\/\)[^/].*/{
1306 s//\1/
1307 q
1308 }
1309 /^X\(\/\/\)$/{
1310 s//\1/
1311 q
1312 }
1313 /^X\(\/\).*/{
1314 s//\1/
1315 q
1316 }
1317 s/.*/./; q'`
1318 srcdir=$ac_confdir
1319 if test ! -r "$srcdir/$ac_unique_file"; then
1320 srcdir=..
1321 fi
1322else
1323 ac_srcdir_defaulted=no
1324fi
1325if test ! -r "$srcdir/$ac_unique_file"; then
1326 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1327 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1328fi
1329ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1330ac_abs_confdir=`(
1331 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1332 pwd)`
1333# When building in place, set srcdir=.
1334if test "$ac_abs_confdir" = "$ac_pwd"; then
1335 srcdir=.
1336fi
1337# Remove unnecessary trailing slashes from srcdir.
1338# Double slashes in file names in object file debugging info
1339# mess up M-x gdb in Emacs.
1340case $srcdir in
1341*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1342esac
1343ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1344
1345for ac_var in $ac_precious_vars; do
1346 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1347 eval ac_env_${ac_var}_value=\$${ac_var}
1348 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1349 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1350done
1351
1352#
1353# Report the --help message.
1354#
1355if test "$ac_init_help" = "long"; then
1356 # Omit some internal or obsolete options to make the list less imposing.
1357 # This message is too long to be a string in the A/UX 3.1 sh.
1358 cat <<_ACEOF
1359\`configure' configures this package to adapt to many kinds of systems.
1360
1361Usage: $0 [OPTION]... [VAR=VALUE]...
1362
1363To assign environment variables (e.g., CC, CFLAGS...), specify them as
1364VAR=VALUE. See below for descriptions of some of the useful variables.
1365
1366Defaults for the options are specified in brackets.
1367
1368Configuration:
1369 -h, --help display this help and exit
1370 --help=short display options specific to this package
1371 --help=recursive display the short help of all the included packages
1372 -V, --version display version information and exit
1373 -q, --quiet, --silent do not print \`checking...' messages
1374 --cache-file=FILE cache test results in FILE [disabled]
1375 -C, --config-cache alias for \`--cache-file=config.cache'
1376 -n, --no-create do not create output files
1377 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1378
1379Installation directories:
1380 --prefix=PREFIX install architecture-independent files in PREFIX
1381 [$ac_default_prefix]
1382 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1383 [PREFIX]
1384
1385By default, \`make install' will install all the files in
1386\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1387an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1388for instance \`--prefix=\$HOME'.
1389
1390For better control, use the options below.
1391
1392Fine tuning of the installation directories:
1393 --bindir=DIR user executables [EPREFIX/bin]
1394 --sbindir=DIR system admin executables [EPREFIX/sbin]
1395 --libexecdir=DIR program executables [EPREFIX/libexec]
1396 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1397 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1398 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1399 --libdir=DIR object code libraries [EPREFIX/lib]
1400 --includedir=DIR C header files [PREFIX/include]
1401 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1402 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1403 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1404 --infodir=DIR info documentation [DATAROOTDIR/info]
1405 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1406 --mandir=DIR man documentation [DATAROOTDIR/man]
1407 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1408 --htmldir=DIR html documentation [DOCDIR]
1409 --dvidir=DIR dvi documentation [DOCDIR]
1410 --pdfdir=DIR pdf documentation [DOCDIR]
1411 --psdir=DIR ps documentation [DOCDIR]
1412_ACEOF
1413
1414 cat <<\_ACEOF
1415
1416Program names:
1417 --program-prefix=PREFIX prepend PREFIX to installed program names
1418 --program-suffix=SUFFIX append SUFFIX to installed program names
1419 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1420
1421System types:
1422 --build=BUILD configure for building on BUILD [guessed]
1423 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1424 --target=TARGET configure for building compilers for TARGET [HOST]
1425_ACEOF
1426fi
1427
1428if test -n "$ac_init_help"; then
1429
1430 cat <<\_ACEOF
1431
1432Optional Features:
1433 --disable-option-checking ignore unrecognized --enable/--with options
1434 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1435 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1436 --enable-gold use gold instead of ld
1437 --enable-libada build libada directory
1438 --enable-libssp build libssp directory
1439 --enable-build-with-cxx build with C++ compiler instead of C compiler
1440 --disable-ppl-version-check disable check for PPL version
1441 --disable-cloog-version-check disable check for CLooG version
1442 --enable-stage1-languages[=all] choose additional languages to build during
1443 stage1. Mostly useful for compiler development.
1444 --enable-objc-gc enable use of Boehm's garbage collector with the
1445 GNU Objective-C runtime
1446 --enable-bootstrap enable bootstrapping [yes if native build]
1447 --enable-serial-[{host,target,build}-]configure
1448 force sequential configuration of
1449 sub-packages for the host, target or build
1450 machine, or all sub-packages
1451 --enable-maintainer-mode enable make rules and dependencies not useful
1452 (and sometimes confusing) to the casual installer
1453 --enable-stage1-checking[=all] choose additional checking for stage1
1454 of the compiler
1455 --enable-werror enable -Werror in bootstrap stage2 and later
1456
1457Optional Packages:
1458 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1459 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1460 --with-build-libsubdir=DIR Directory where to find libraries for build system
1461 --with-mpc=PATH specify prefix directory for installed MPC package.
1462 Equivalent to --with-mpc-include=PATH/include
1463 plus --with-mpc-lib=PATH/lib
1464 --with-mpc-include=PATH
1465 specify directory for installed MPC include files
1466 --with-mpc-lib=PATH specify directory for the installed MPC library
1467 --with-mpfr-dir=PATH this option has been REMOVED
1468 --with-mpfr=PATH specify prefix directory for installed MPFR package.
1469 Equivalent to --with-mpfr-include=PATH/include
1470 plus --with-mpfr-lib=PATH/lib
1471 --with-mpfr-include=PATH
1472 specify directory for installed MPFR include files
1473 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1474 --with-gmp-dir=PATH this option has been REMOVED
1475 --with-gmp=PATH specify prefix directory for the installed GMP package.
1476 Equivalent to --with-gmp-include=PATH/include
1477 plus --with-gmp-lib=PATH/lib
1478 --with-gmp-include=PATH specify directory for installed GMP include files
1479 --with-gmp-lib=PATH specify directory for the installed GMP library
1480 --with-host-libstdcxx=L Use linker arguments L to link with libstdc++
1481 when linking with PPL
1482 --with-stage1-ldflags=FLAGS Linker flags for stage1
1483 -with-stage1-libs=LIBS Libraries for stage1
1484 --with-boot-ldflags=FLAGS Linker flags for stage2 and later
1485 --with-boot-libs=LIBS Libraries for stage2 and later
1486 --with-ppl=PATH Specify prefix directory for the installed PPL package
1487 Equivalent to --with-ppl-include=PATH/include
1488 plus --with-ppl-lib=PATH/lib
1489 --with-ppl-include=PATH Specify directory for installed PPL include files
1490 --with-ppl-lib=PATH Specify the directory for the installed PPL library
1491 --with-cloog=PATH Specify prefix directory for the installed CLooG-PPL package
1492 Equivalent to --with-cloog-include=PATH/include
1493 plus --with-cloog-lib=PATH/lib
1494 --with-cloog-include=PATH Specify directory for installed CLooG include files
1495 --with-cloog-lib=PATH Specify the directory for the installed CLooG library
1496 --with-build-sysroot=SYSROOT
1497 use sysroot as the system root during the build
1498 --with-debug-prefix-map='A=B C=D ...'
1499 map A to B, C to D ... in debug information
1500 --with-build-time-tools=PATH
1501 use given path to find target tools during the build
1502
1503Some influential environment variables:
1504 CC C compiler command
1505 CFLAGS C compiler flags
1506 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1507 nonstandard directory <lib dir>
1508 LIBS libraries to pass to the linker, e.g. -l<library>
1509 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1510 you have headers in a nonstandard directory <include dir>
1511 CXX C++ compiler command
1512 CXXFLAGS C++ compiler flags
1513 AR AR for the host
1514 AS AS for the host
1515 DLLTOOL DLLTOOL for the host
1516 LD LD for the host
1517 LIPO LIPO for the host
1518 NM NM for the host
1519 RANLIB RANLIB for the host
1520 STRIP STRIP for the host
1521 WINDRES WINDRES for the host
1522 WINDMC WINDMC for the host
1523 OBJCOPY OBJCOPY for the host
1524 OBJDUMP OBJDUMP for the host
1525 CC_FOR_TARGET
1526 CC for the target
1527 CXX_FOR_TARGET
1528 CXX for the target
1529 GCC_FOR_TARGET
1530 GCC for the target
1531 GCJ_FOR_TARGET
1532 GCJ for the target
1533 GFORTRAN_FOR_TARGET
1534 GFORTRAN for the target
1535 AR_FOR_TARGET
1536 AR for the target
1537 AS_FOR_TARGET
1538 AS for the target
1539 DLLTOOL_FOR_TARGET
1540 DLLTOOL for the target
1541 LD_FOR_TARGET
1542 LD for the target
1543 LIPO_FOR_TARGET
1544 LIPO for the target
1545 NM_FOR_TARGET
1546 NM for the target
1547 OBJDUMP_FOR_TARGET
1548 OBJDUMP for the target
1549 RANLIB_FOR_TARGET
1550 RANLIB for the target
1551 STRIP_FOR_TARGET
1552 STRIP for the target
1553 WINDRES_FOR_TARGET
1554 WINDRES for the target
1555 WINDMC_FOR_TARGET
1556 WINDMC for the target
1557
1558Use these variables to override the choices made by `configure' or to help
1559it to find libraries and programs with nonstandard names/locations.
1560
1561Report bugs to the package provider.
1562_ACEOF
1563ac_status=$?
1564fi
1565
1566if test "$ac_init_help" = "recursive"; then
1567 # If there are subdirs, report their specific --help.
1568 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1569 test -d "$ac_dir" ||
1570 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1571 continue
1572 ac_builddir=.
1573
1574case "$ac_dir" in
1575.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1576*)
1577 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1578 # A ".." for each directory in $ac_dir_suffix.
1579 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1580 case $ac_top_builddir_sub in
1581 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1582 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1583 esac ;;
1584esac
1585ac_abs_top_builddir=$ac_pwd
1586ac_abs_builddir=$ac_pwd$ac_dir_suffix
1587# for backward compatibility:
1588ac_top_builddir=$ac_top_build_prefix
1589
1590case $srcdir in
1591 .) # We are building in place.
1592 ac_srcdir=.
1593 ac_top_srcdir=$ac_top_builddir_sub
1594 ac_abs_top_srcdir=$ac_pwd ;;
1595 [\\/]* | ?:[\\/]* ) # Absolute name.
1596 ac_srcdir=$srcdir$ac_dir_suffix;
1597 ac_top_srcdir=$srcdir
1598 ac_abs_top_srcdir=$srcdir ;;
1599 *) # Relative name.
1600 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1601 ac_top_srcdir=$ac_top_build_prefix$srcdir
1602 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1603esac
1604ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1605
1606 cd "$ac_dir" || { ac_status=$?; continue; }
1607 # Check for guested configure.
1608 if test -f "$ac_srcdir/configure.gnu"; then
1609 echo &&
1610 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1611 elif test -f "$ac_srcdir/configure"; then
1612 echo &&
1613 $SHELL "$ac_srcdir/configure" --help=recursive
1614 else
1615 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1616 fi || ac_status=$?
1617 cd "$ac_pwd" || { ac_status=$?; break; }
1618 done
1619fi
1620
1621test -n "$ac_init_help" && exit $ac_status
1622if $ac_init_version; then
1623 cat <<\_ACEOF
1624configure
1625generated by GNU Autoconf 2.64
1626
1627Copyright (C) 2009 Free Software Foundation, Inc.
1628This configure script is free software; the Free Software Foundation
1629gives unlimited permission to copy, distribute and modify it.
1630_ACEOF
1631 exit
1632fi
1633
1634## ------------------------ ##
1635## Autoconf initialization. ##
1636## ------------------------ ##
1637
1638# ac_fn_c_try_compile LINENO
1639# --------------------------
1640# Try to compile conftest.$ac_ext, and return whether this succeeded.
1641ac_fn_c_try_compile ()
1642{
1643 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1644 rm -f conftest.$ac_objext
1645 if { { ac_try="$ac_compile"
1646case "(($ac_try" in
1647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1648 *) ac_try_echo=$ac_try;;
1649esac
1650eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1651$as_echo "$ac_try_echo"; } >&5
1652 (eval "$ac_compile") 2>conftest.err
1653 ac_status=$?
1654 if test -s conftest.err; then
1655 grep -v '^ *+' conftest.err >conftest.er1
1656 cat conftest.er1 >&5
1657 mv -f conftest.er1 conftest.err
1658 fi
1659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1660 test $ac_status = 0; } && {
1661 test -z "$ac_c_werror_flag" ||
1662 test ! -s conftest.err
1663 } && test -s conftest.$ac_objext; then :
1664 ac_retval=0
1665else
1666 $as_echo "$as_me: failed program was:" >&5
1667sed 's/^/| /' conftest.$ac_ext >&5
1668
1669 ac_retval=1
1670fi
1671 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1672 return $ac_retval
1673
1674} # ac_fn_c_try_compile
1675
1676# ac_fn_cxx_try_compile LINENO
1677# ----------------------------
1678# Try to compile conftest.$ac_ext, and return whether this succeeded.
1679ac_fn_cxx_try_compile ()
1680{
1681 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1682 rm -f conftest.$ac_objext
1683 if { { ac_try="$ac_compile"
1684case "(($ac_try" in
1685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1686 *) ac_try_echo=$ac_try;;
1687esac
1688eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1689$as_echo "$ac_try_echo"; } >&5
1690 (eval "$ac_compile") 2>conftest.err
1691 ac_status=$?
1692 if test -s conftest.err; then
1693 grep -v '^ *+' conftest.err >conftest.er1
1694 cat conftest.er1 >&5
1695 mv -f conftest.er1 conftest.err
1696 fi
1697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1698 test $ac_status = 0; } && {
1699 test -z "$ac_cxx_werror_flag" ||
1700 test ! -s conftest.err
1701 } && test -s conftest.$ac_objext; then :
1702 ac_retval=0
1703else
1704 $as_echo "$as_me: failed program was:" >&5
1705sed 's/^/| /' conftest.$ac_ext >&5
1706
1707 ac_retval=1
1708fi
1709 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1710 return $ac_retval
1711
1712} # ac_fn_cxx_try_compile
1713
1714# ac_fn_c_try_link LINENO
1715# -----------------------
1716# Try to link conftest.$ac_ext, and return whether this succeeded.
1717ac_fn_c_try_link ()
1718{
1719 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1720 rm -f conftest.$ac_objext conftest$ac_exeext
1721 if { { ac_try="$ac_link"
1722case "(($ac_try" in
1723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1724 *) ac_try_echo=$ac_try;;
1725esac
1726eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1727$as_echo "$ac_try_echo"; } >&5
1728 (eval "$ac_link") 2>conftest.err
1729 ac_status=$?
1730 if test -s conftest.err; then
1731 grep -v '^ *+' conftest.err >conftest.er1
1732 cat conftest.er1 >&5
1733 mv -f conftest.er1 conftest.err
1734 fi
1735 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1736 test $ac_status = 0; } && {
1737 test -z "$ac_c_werror_flag" ||
1738 test ! -s conftest.err
1739 } && test -s conftest$ac_exeext && {
1740 test "$cross_compiling" = yes ||
1741 $as_test_x conftest$ac_exeext
1742 }; then :
1743 ac_retval=0
1744else
1745 $as_echo "$as_me: failed program was:" >&5
1746sed 's/^/| /' conftest.$ac_ext >&5
1747
1748 ac_retval=1
1749fi
1750 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1751 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1752 # interfere with the next link command; also delete a directory that is
1753 # left behind by Apple's compiler. We do this before executing the actions.
1754 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1755 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1756 return $ac_retval
1757
1758} # ac_fn_c_try_link
1759cat >config.log <<_ACEOF
1760This file contains any messages produced by compilers while
1761running configure, to aid debugging if configure makes a mistake.
1762
1763It was created by $as_me, which was
1764generated by GNU Autoconf 2.64. Invocation command line was
1765
1766 $ $0 $@
1767
1768_ACEOF
1769exec 5>>config.log
1770{
1771cat <<_ASUNAME
1772## --------- ##
1773## Platform. ##
1774## --------- ##
1775
1776hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1777uname -m = `(uname -m) 2>/dev/null || echo unknown`
1778uname -r = `(uname -r) 2>/dev/null || echo unknown`
1779uname -s = `(uname -s) 2>/dev/null || echo unknown`
1780uname -v = `(uname -v) 2>/dev/null || echo unknown`
1781
1782/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1783/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1784
1785/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1786/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1787/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1788/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1789/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1790/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1791/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1792
1793_ASUNAME
1794
1795as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1796for as_dir in $PATH
1797do
1798 IFS=$as_save_IFS
1799 test -z "$as_dir" && as_dir=.
1800 $as_echo "PATH: $as_dir"
1801 done
1802IFS=$as_save_IFS
1803
1804} >&5
1805
1806cat >&5 <<_ACEOF
1807
1808
1809## ----------- ##
1810## Core tests. ##
1811## ----------- ##
1812
1813_ACEOF
1814
1815
1816# Keep a trace of the command line.
1817# Strip out --no-create and --no-recursion so they do not pile up.
1818# Strip out --silent because we don't want to record it for future runs.
1819# Also quote any args containing shell meta-characters.
1820# Make two passes to allow for proper duplicate-argument suppression.
1821ac_configure_args=
1822ac_configure_args0=
1823ac_configure_args1=
1824ac_must_keep_next=false
1825for ac_pass in 1 2
1826do
1827 for ac_arg
1828 do
1829 case $ac_arg in
1830 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1831 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1832 | -silent | --silent | --silen | --sile | --sil)
1833 continue ;;
1834 *\'*)
1835 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1836 esac
1837 case $ac_pass in
1838 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1839 2)
1840 as_fn_append ac_configure_args1 " '$ac_arg'"
1841 if test $ac_must_keep_next = true; then
1842 ac_must_keep_next=false # Got value, back to normal.
1843 else
1844 case $ac_arg in
1845 *=* | --config-cache | -C | -disable-* | --disable-* \
1846 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1847 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1848 | -with-* | --with-* | -without-* | --without-* | --x)
1849 case "$ac_configure_args0 " in
1850 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1851 esac
1852 ;;
1853 -* ) ac_must_keep_next=true ;;
1854 esac
1855 fi
1856 as_fn_append ac_configure_args " '$ac_arg'"
1857 ;;
1858 esac
1859 done
1860done
1861{ ac_configure_args0=; unset ac_configure_args0;}
1862{ ac_configure_args1=; unset ac_configure_args1;}
1863
1864# When interrupted or exit'd, cleanup temporary files, and complete
1865# config.log. We remove comments because anyway the quotes in there
1866# would cause problems or look ugly.
1867# WARNING: Use '\'' to represent an apostrophe within the trap.
1868# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1869trap 'exit_status=$?
1870 # Save into config.log some information that might help in debugging.
1871 {
1872 echo
1873
1874 cat <<\_ASBOX
1875## ---------------- ##
1876## Cache variables. ##
1877## ---------------- ##
1878_ASBOX
1879 echo
1880 # The following way of writing the cache mishandles newlines in values,
1881(
1882 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1883 eval ac_val=\$$ac_var
1884 case $ac_val in #(
1885 *${as_nl}*)
1886 case $ac_var in #(
1887 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1888$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1889 esac
1890 case $ac_var in #(
1891 _ | IFS | as_nl) ;; #(
1892 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1893 *) { eval $ac_var=; unset $ac_var;} ;;
1894 esac ;;
1895 esac
1896 done
1897 (set) 2>&1 |
1898 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1899 *${as_nl}ac_space=\ *)
1900 sed -n \
1901 "s/'\''/'\''\\\\'\'''\''/g;
1902 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1903 ;; #(
1904 *)
1905 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1906 ;;
1907 esac |
1908 sort
1909)
1910 echo
1911
1912 cat <<\_ASBOX
1913## ----------------- ##
1914## Output variables. ##
1915## ----------------- ##
1916_ASBOX
1917 echo
1918 for ac_var in $ac_subst_vars
1919 do
1920 eval ac_val=\$$ac_var
1921 case $ac_val in
1922 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1923 esac
1924 $as_echo "$ac_var='\''$ac_val'\''"
1925 done | sort
1926 echo
1927
1928 if test -n "$ac_subst_files"; then
1929 cat <<\_ASBOX
1930## ------------------- ##
1931## File substitutions. ##
1932## ------------------- ##
1933_ASBOX
1934 echo
1935 for ac_var in $ac_subst_files
1936 do
1937 eval ac_val=\$$ac_var
1938 case $ac_val in
1939 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1940 esac
1941 $as_echo "$ac_var='\''$ac_val'\''"
1942 done | sort
1943 echo
1944 fi
1945
1946 if test -s confdefs.h; then
1947 cat <<\_ASBOX
1948## ----------- ##
1949## confdefs.h. ##
1950## ----------- ##
1951_ASBOX
1952 echo
1953 cat confdefs.h
1954 echo
1955 fi
1956 test "$ac_signal" != 0 &&
1957 $as_echo "$as_me: caught signal $ac_signal"
1958 $as_echo "$as_me: exit $exit_status"
1959 } >&5
1960 rm -f core *.core core.conftest.* &&
1961 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1962 exit $exit_status
1963' 0
1964for ac_signal in 1 2 13 15; do
1965 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1966done
1967ac_signal=0
1968
1969# confdefs.h avoids OS command line length limits that DEFS can exceed.
1970rm -f -r conftest* confdefs.h
1971
1972$as_echo "/* confdefs.h */" > confdefs.h
1973
1974# Predefined preprocessor variables.
1975
1976cat >>confdefs.h <<_ACEOF
1977#define PACKAGE_NAME "$PACKAGE_NAME"
1978_ACEOF
1979
1980cat >>confdefs.h <<_ACEOF
1981#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1982_ACEOF
1983
1984cat >>confdefs.h <<_ACEOF
1985#define PACKAGE_VERSION "$PACKAGE_VERSION"
1986_ACEOF
1987
1988cat >>confdefs.h <<_ACEOF
1989#define PACKAGE_STRING "$PACKAGE_STRING"
1990_ACEOF
1991
1992cat >>confdefs.h <<_ACEOF
1993#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1994_ACEOF
1995
1996cat >>confdefs.h <<_ACEOF
1997#define PACKAGE_URL "$PACKAGE_URL"
1998_ACEOF
1999
2000
2001# Let the site file select an alternate cache file if it wants to.
2002# Prefer an explicitly selected file to automatically selected ones.
2003ac_site_file1=NONE
2004ac_site_file2=NONE
2005if test -n "$CONFIG_SITE"; then
2006 ac_site_file1=$CONFIG_SITE
2007elif test "x$prefix" != xNONE; then
2008 ac_site_file1=$prefix/share/config.site
2009 ac_site_file2=$prefix/etc/config.site
2010else
2011 ac_site_file1=$ac_default_prefix/share/config.site
2012 ac_site_file2=$ac_default_prefix/etc/config.site
2013fi
2014for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2015do
2016 test "x$ac_site_file" = xNONE && continue
2017 if test -r "$ac_site_file"; then
2018 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2019$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2020 sed 's/^/| /' "$ac_site_file" >&5
2021 . "$ac_site_file"
2022 fi
2023done
2024
2025if test -r "$cache_file"; then
2026 # Some versions of bash will fail to source /dev/null (special
2027 # files actually), so we avoid doing that.
2028 if test -f "$cache_file"; then
2029 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2030$as_echo "$as_me: loading cache $cache_file" >&6;}
2031 case $cache_file in
2032 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2033 *) . "./$cache_file";;
2034 esac
2035 fi
2036else
2037 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2038$as_echo "$as_me: creating cache $cache_file" >&6;}
2039 >$cache_file
2040fi
2041
2042# Check that the precious variables saved in the cache have kept the same
2043# value.
2044ac_cache_corrupted=false
2045for ac_var in $ac_precious_vars; do
2046 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2047 eval ac_new_set=\$ac_env_${ac_var}_set
2048 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2049 eval ac_new_val=\$ac_env_${ac_var}_value
2050 case $ac_old_set,$ac_new_set in
2051 set,)
2052 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2053$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2054 ac_cache_corrupted=: ;;
2055 ,set)
2056 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2057$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2058 ac_cache_corrupted=: ;;
2059 ,);;
2060 *)
2061 if test "x$ac_old_val" != "x$ac_new_val"; then
2062 # differences in whitespace do not lead to failure.
2063 ac_old_val_w=`echo x $ac_old_val`
2064 ac_new_val_w=`echo x $ac_new_val`
2065 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2066 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2067$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2068 ac_cache_corrupted=:
2069 else
2070 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2071$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2072 eval $ac_var=\$ac_old_val
2073 fi
2074 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2075$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2076 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2077$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2078 fi;;
2079 esac
2080 # Pass precious variables to config.status.
2081 if test "$ac_new_set" = set; then
2082 case $ac_new_val in
2083 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2084 *) ac_arg=$ac_var=$ac_new_val ;;
2085 esac
2086 case " $ac_configure_args " in
2087 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2088 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2089 esac
2090 fi
2091done
2092if $ac_cache_corrupted; then
2093 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2094$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2095 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2096$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2097 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2098fi
2099## -------------------- ##
2100## Main body of script. ##
2101## -------------------- ##
2102
2103ac_ext=c
2104ac_cpp='$CPP $CPPFLAGS'
2105ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2106ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2107ac_compiler_gnu=$ac_cv_c_compiler_gnu
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117progname=$0
2118# if PWD already has a value, it is probably wrong.
2119if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2120
2121# Export original configure arguments for use by sub-configures.
2122# Quote arguments with shell meta charatcers.
2123TOPLEVEL_CONFIGURE_ARGUMENTS=
2124set -- "$progname" "$@"
2125for ac_arg
2126do
2127 case "$ac_arg" in
2128 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2129 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2130 # if the argument is of the form -foo=baz, quote the baz part only
2131 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2132 *) ;;
2133 esac
2134 # Add the quoted argument to the list.
2135 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2136done
2137if test "$silent" = yes; then
2138 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2139fi
2140# Remove the initial space we just introduced and, as these will be
2141# expanded by make, quote '$'.
2142TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2143
2144
2145# Find the build, host, and target systems.
2146ac_aux_dir=
2147for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2148 for ac_t in install-sh install.sh shtool; do
2149 if test -f "$ac_dir/$ac_t"; then
2150 ac_aux_dir=$ac_dir
2151 ac_install_sh="$ac_aux_dir/$ac_t -c"
2152 break 2
2153 fi
2154 done
2155done
2156if test -z "$ac_aux_dir"; then
2157 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2158fi
2159
2160# These three variables are undocumented and unsupported,
2161# and are intended to be withdrawn in a future Autoconf release.
2162# They can cause serious problems if a builder's source tree is in a directory
2163# whose full name contains unusual characters.
2164ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2165ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2166ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2167
2168
2169# Make sure we can run config.sub.
2170$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2171 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2172
2173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2174$as_echo_n "checking build system type... " >&6; }
2175if test "${ac_cv_build+set}" = set; then :
2176 $as_echo_n "(cached) " >&6
2177else
2178 ac_build_alias=$build_alias
2179test "x$ac_build_alias" = x &&
2180 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2181test "x$ac_build_alias" = x &&
2182 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2183ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2184 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2185
2186fi
2187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2188$as_echo "$ac_cv_build" >&6; }
2189case $ac_cv_build in
2190*-*-*) ;;
2191*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2192esac
2193build=$ac_cv_build
2194ac_save_IFS=$IFS; IFS='-'
2195set x $ac_cv_build
2196shift
2197build_cpu=$1
2198build_vendor=$2
2199shift; shift
2200# Remember, the first character of IFS is used to create $*,
2201# except with old shells:
2202build_os=$*
2203IFS=$ac_save_IFS
2204case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2205
2206
2207 case ${build_alias} in
2208 "") build_noncanonical=${build} ;;
2209 *) build_noncanonical=${build_alias} ;;
2210esac
2211
2212
2213
2214 case ${host_alias} in
2215 "") host_noncanonical=${build_noncanonical} ;;
2216 *) host_noncanonical=${host_alias} ;;
2217esac
2218
2219
2220
2221 case ${target_alias} in
2222 "") target_noncanonical=${host_noncanonical} ;;
2223 *) target_noncanonical=${target_alias} ;;
2224esac
2225
2226
2227
2228
2229test "$host_noncanonical" = "$target_noncanonical" &&
2230 test "$program_prefix$program_suffix$program_transform_name" = \
2231 NONENONEs,x,x, &&
2232 program_transform_name=s,y,y,
2233
2234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2235$as_echo_n "checking host system type... " >&6; }
2236if test "${ac_cv_host+set}" = set; then :
2237 $as_echo_n "(cached) " >&6
2238else
2239 if test "x$host_alias" = x; then
2240 ac_cv_host=$ac_cv_build
2241else
2242 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2243 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2244fi
2245
2246fi
2247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2248$as_echo "$ac_cv_host" >&6; }
2249case $ac_cv_host in
2250*-*-*) ;;
2251*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2252esac
2253host=$ac_cv_host
2254ac_save_IFS=$IFS; IFS='-'
2255set x $ac_cv_host
2256shift
2257host_cpu=$1
2258host_vendor=$2
2259shift; shift
2260# Remember, the first character of IFS is used to create $*,
2261# except with old shells:
2262host_os=$*
2263IFS=$ac_save_IFS
2264case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2265
2266
2267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2268$as_echo_n "checking target system type... " >&6; }
2269if test "${ac_cv_target+set}" = set; then :
2270 $as_echo_n "(cached) " >&6
2271else
2272 if test "x$target_alias" = x; then
2273 ac_cv_target=$ac_cv_host
2274else
2275 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2276 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2277fi
2278
2279fi
2280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2281$as_echo "$ac_cv_target" >&6; }
2282case $ac_cv_target in
2283*-*-*) ;;
2284*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2285esac
2286target=$ac_cv_target
2287ac_save_IFS=$IFS; IFS='-'
2288set x $ac_cv_target
2289shift
2290target_cpu=$1
2291target_vendor=$2
2292shift; shift
2293# Remember, the first character of IFS is used to create $*,
2294# except with old shells:
2295target_os=$*
2296IFS=$ac_save_IFS
2297case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2298
2299
2300# The aliases save the names the user supplied, while $host etc.
2301# will get canonicalized.
2302test -n "$target_alias" &&
2303 test "$program_prefix$program_suffix$program_transform_name" = \
2304 NONENONEs,x,x, &&
2305 program_prefix=${target_alias}-
2306
2307test "$program_prefix" != NONE &&
2308 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2309# Use a double $ so make ignores it.
2310test "$program_suffix" != NONE &&
2311 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2312# Double any \ or $.
2313# By default was `s,x,x', remove it if useless.
2314ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2315program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2316
2317
2318
2319# Get 'install' or 'install-sh' and its variants.
2320# Find a good install program. We prefer a C program (faster),
2321# so one script is as good as another. But avoid the broken or
2322# incompatible versions:
2323# SysV /etc/install, /usr/sbin/install
2324# SunOS /usr/etc/install
2325# IRIX /sbin/install
2326# AIX /bin/install
2327# AmigaOS /C/install, which installs bootblocks on floppy discs
2328# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2329# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2330# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2331# OS/2's system install, which has a completely different semantic
2332# ./install, which can be erroneously created by make from ./install.sh.
2333# Reject install programs that cannot install multiple files.
2334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2335$as_echo_n "checking for a BSD-compatible install... " >&6; }
2336if test -z "$INSTALL"; then
2337if test "${ac_cv_path_install+set}" = set; then :
2338 $as_echo_n "(cached) " >&6
2339else
2340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2341for as_dir in $PATH
2342do
2343 IFS=$as_save_IFS
2344 test -z "$as_dir" && as_dir=.
2345 # Account for people who put trailing slashes in PATH elements.
2346case $as_dir/ in #((
2347 ./ | .// | /[cC]/* | \
2348 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2349 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2350 /usr/ucb/* ) ;;
2351 *)
2352 # OSF1 and SCO ODT 3.0 have their own names for install.
2353 # Don't use installbsd from OSF since it installs stuff as root
2354 # by default.
2355 for ac_prog in ginstall scoinst install; do
2356 for ac_exec_ext in '' $ac_executable_extensions; do
2357 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2358 if test $ac_prog = install &&
2359 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2360 # AIX install. It has an incompatible calling convention.
2361 :
2362 elif test $ac_prog = install &&
2363 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2364 # program-specific install script used by HP pwplus--don't use.
2365 :
2366 else
2367 rm -rf conftest.one conftest.two conftest.dir
2368 echo one > conftest.one
2369 echo two > conftest.two
2370 mkdir conftest.dir
2371 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2372 test -s conftest.one && test -s conftest.two &&
2373 test -s conftest.dir/conftest.one &&
2374 test -s conftest.dir/conftest.two
2375 then
2376 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2377 break 3
2378 fi
2379 fi
2380 fi
2381 done
2382 done
2383 ;;
2384esac
2385
2386 done
2387IFS=$as_save_IFS
2388
2389rm -rf conftest.one conftest.two conftest.dir
2390
2391fi
2392 if test "${ac_cv_path_install+set}" = set; then
2393 INSTALL=$ac_cv_path_install
2394 else
2395 # As a last resort, use the slow shell script. Don't cache a
2396 # value for INSTALL within a source directory, because that will
2397 # break other packages using the cache if that directory is
2398 # removed, or if the value is a relative name.
2399 INSTALL=$ac_install_sh
2400 fi
2401fi
2402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2403$as_echo "$INSTALL" >&6; }
2404
2405# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2406# It thinks the first close brace ends the variable substitution.
2407test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2408
2409test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2410
2411test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2412
2413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2414$as_echo_n "checking whether ln works... " >&6; }
2415if test "${acx_cv_prog_LN+set}" = set; then :
2416 $as_echo_n "(cached) " >&6
2417else
2418 rm -f conftestdata_t
2419echo >conftestdata_f
2420if ln conftestdata_f conftestdata_t 2>/dev/null
2421then
2422 acx_cv_prog_LN=ln
2423else
2424 acx_cv_prog_LN=no
2425fi
2426rm -f conftestdata_f conftestdata_t
2427
2428fi
2429if test $acx_cv_prog_LN = no; then
2430 LN="cp"
2431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2432$as_echo "no, using $LN" >&6; }
2433else
2434 LN="$acx_cv_prog_LN"
2435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2436$as_echo "yes" >&6; }
2437fi
2438
2439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2440$as_echo_n "checking whether ln -s works... " >&6; }
2441LN_S=$as_ln_s
2442if test "$LN_S" = "ln -s"; then
2443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2444$as_echo "yes" >&6; }
2445else
2446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2447$as_echo "no, using $LN_S" >&6; }
2448fi
2449
2450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2451$as_echo_n "checking for a sed that does not truncate output... " >&6; }
2452if test "${ac_cv_path_SED+set}" = set; then :
2453 $as_echo_n "(cached) " >&6
2454else
2455 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2456 for ac_i in 1 2 3 4 5 6 7; do
2457 ac_script="$ac_script$as_nl$ac_script"
2458 done
2459 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2460 { ac_script=; unset ac_script;}
2461 if test -z "$SED"; then
2462 ac_path_SED_found=false
2463 # Loop through the user's path and test for each of PROGNAME-LIST
2464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2465for as_dir in $PATH
2466do
2467 IFS=$as_save_IFS
2468 test -z "$as_dir" && as_dir=.
2469 for ac_prog in sed gsed; do
2470 for ac_exec_ext in '' $ac_executable_extensions; do
2471 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2472 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2473# Check for GNU ac_path_SED and select it if it is found.
2474 # Check for GNU $ac_path_SED
2475case `"$ac_path_SED" --version 2>&1` in
2476*GNU*)
2477 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2478*)
2479 ac_count=0
2480 $as_echo_n 0123456789 >"conftest.in"
2481 while :
2482 do
2483 cat "conftest.in" "conftest.in" >"conftest.tmp"
2484 mv "conftest.tmp" "conftest.in"
2485 cp "conftest.in" "conftest.nl"
2486 $as_echo '' >> "conftest.nl"
2487 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2488 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2489 as_fn_arith $ac_count + 1 && ac_count=$as_val
2490 if test $ac_count -gt ${ac_path_SED_max-0}; then
2491 # Best one so far, save it but keep looking for a better one
2492 ac_cv_path_SED="$ac_path_SED"
2493 ac_path_SED_max=$ac_count
2494 fi
2495 # 10*(2^10) chars as input seems more than enough
2496 test $ac_count -gt 10 && break
2497 done
2498 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2499esac
2500
2501 $ac_path_SED_found && break 3
2502 done
2503 done
2504 done
2505IFS=$as_save_IFS
2506 if test -z "$ac_cv_path_SED"; then
2507 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
2508 fi
2509else
2510 ac_cv_path_SED=$SED
2511fi
2512
2513fi
2514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2515$as_echo "$ac_cv_path_SED" >&6; }
2516 SED="$ac_cv_path_SED"
2517 rm -f conftest.sed
2518
2519for ac_prog in gawk mawk nawk awk
2520do
2521 # Extract the first word of "$ac_prog", so it can be a program name with args.
2522set dummy $ac_prog; ac_word=$2
2523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2524$as_echo_n "checking for $ac_word... " >&6; }
2525if test "${ac_cv_prog_AWK+set}" = set; then :
2526 $as_echo_n "(cached) " >&6
2527else
2528 if test -n "$AWK"; then
2529 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2530else
2531as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2532for as_dir in $PATH
2533do
2534 IFS=$as_save_IFS
2535 test -z "$as_dir" && as_dir=.
2536 for ac_exec_ext in '' $ac_executable_extensions; do
2537 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2538 ac_cv_prog_AWK="$ac_prog"
2539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2540 break 2
2541 fi
2542done
2543 done
2544IFS=$as_save_IFS
2545
2546fi
2547fi
2548AWK=$ac_cv_prog_AWK
2549if test -n "$AWK"; then
2550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2551$as_echo "$AWK" >&6; }
2552else
2553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2554$as_echo "no" >&6; }
2555fi
2556
2557
2558 test -n "$AWK" && break
2559done
2560
2561
2562### we might need to use some other shell than /bin/sh for running subshells
2563### If we are on Windows, search for the shell. This will permit people
2564### to not have /bin/sh, but to be able to see /SOME/PATH/sh configure
2565### without also having to set CONFIG_SHELL. This code will work when
2566### using bash, which sets OSTYPE.
2567case "${OSTYPE}" in
2568*win32*)
2569 if test x${CONFIG_SHELL} = x ; then
2570 if test ! -f /bin/sh ; then
2571 if test x${SHELL} != x && test -f ${SHELL} ; then
2572 CONFIG_SHELL=${SHELL}
2573 export CONFIG_SHELL
2574 else
2575 for prog in sh sh.exe bash bash.exe; do
2576 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
2577 for dir in $PATH; do
2578 test -z "$dir" && dir=.
2579 if test -f $dir/$prog; then
2580 CONFIG_SHELL=$dir/$prog
2581 export CONFIG_SHELL
2582 break
2583 fi
2584 done
2585 IFS="$save_ifs"
2586 test -n "${CONFIG_SHELL}" && break
2587 done
2588 fi
2589 fi
2590 fi
2591 ;;
2592esac
2593
2594config_shell=${CONFIG_SHELL-/bin/sh}
2595
2596moveifchange=${srcdir}/move-if-change
2597
2598srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2599
2600# We pass INSTALL explicitly to sub-makes. Make sure that it is not
2601# a relative path.
2602if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2603 INSTALL="${srcpwd}/install-sh -c"
2604fi
2605
2606# Set srcdir to "." if that's what it is.
2607# This is important for multilib support.
2608pwd=`${PWDCMD-pwd}`
2609if test "${pwd}" = "${srcpwd}" ; then
2610 srcdir=.
2611fi
2612
2613topsrcdir=$srcpwd
2614
2615extra_host_args=
2616
2617### To add a new directory to the tree, first choose whether it is a target
2618### or a host dependent tool. Then put it into the appropriate list
2619### (library or tools, host or target), doing a dependency sort.
2620
2621# Subdirs will be configured in the order listed in build_configdirs,
2622# configdirs, or target_configdirs; see the serialization section below.
2623
2624# Dependency sorting is only needed when *configuration* must be done in
2625# a particular order. In all cases a dependency should be specified in
2626# the Makefile, whether or not it's implicitly specified here.
2627
2628# Double entries in build_configdirs, configdirs, or target_configdirs may
2629# cause circular dependencies and break everything horribly.
2630
2631# these library is used by various programs built for the build
2632# environment
2633#
2634build_libs="build-libiberty"
2635
2636# these tools are built for the build environment
2637build_tools="build-texinfo build-byacc build-flex build-bison build-m4 build-fixincludes"
2638
2639# these libraries are used by various programs built for the host environment
2640#
2641host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr mpc ppl cloog libiconv"
2642
2643# these tools are built for the host environment
2644# Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2645# know that we are building the simulator.
2646# binutils, gas and ld appear in that order because it makes sense to run
2647# "make check" in that particular order.
2648# If --enable-gold is used, "gold" will replace "ld".
2649host_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"
2650
2651# libgcj represents the runtime libraries only used by gcj.
2652libgcj="target-libffi \
2653 target-zlib \
2654 target-qthreads \
2655 target-libjava"
2656
2657# these libraries are built for the target environment, and are built after
2658# the host libraries and the host tools (which may be a cross compiler)
2659#
2660target_libraries="target-libgcc \
2661 target-libiberty \
2662 target-libgloss \
2663 target-newlib \
2664 target-libgomp \
2665 target-libstdc++-v3 \
2666 target-libmudflap \
2667 target-libssp \
2668 target-libgfortran \
2669 target-boehm-gc \
2670 ${libgcj} \
2671 target-libobjc \
2672 target-libada"
2673
2674# these tools are built using the target libraries, and are intended to
2675# run only in the target environment
2676#
2677# note: any program that *uses* libraries that are in the "target_libraries"
2678# list belongs in this list. those programs are also very likely
2679# candidates for the "native_only" list which follows
2680#
2681target_tools="target-examples target-groff target-gperf target-rda"
2682
2683################################################################################
2684
2685## All tools belong in one of the four categories, and are assigned above
2686## We assign ${configdirs} this way to remove all embedded newlines. This
2687## is important because configure will choke if they ever get through.
2688## ${configdirs} is directories we build using the host tools.
2689## ${target_configdirs} is directories we build using the target tools.
2690configdirs=`echo ${host_libs} ${host_tools}`
2691target_configdirs=`echo ${target_libraries} ${target_tools}`
2692build_configdirs=`echo ${build_libs} ${build_tools}`
2693
2694
2695
2696################################################################################
2697
2698srcname="gnu development package"
2699
2700# This gets set non-empty for some net releases of packages.
2701appdirs=""
2702
2703# Define is_cross_compiler to save on calls to 'test'.
2704is_cross_compiler=
2705if test x"${host}" = x"${target}" ; then
2706 is_cross_compiler=no
2707else
2708 is_cross_compiler=yes
2709fi
2710
2711# Find the build and target subdir names.
2712
2713# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2714# have matching libraries, they should use host libraries: Makefile.tpl
2715# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2716# However, they still use the build modules, because the corresponding
2717# host modules (e.g. bison) are only built for the host when bootstrap
2718# finishes. So:
2719# - build_subdir is where we find build modules, and never changes.
2720# - build_libsubdir is where we find build libraries, and can be overridden.
2721
2722# Prefix 'build-' so this never conflicts with target_subdir.
2723build_subdir="build-${build_noncanonical}"
2724
2725# Check whether --with-build-libsubdir was given.
2726if test "${with_build_libsubdir+set}" = set; then :
2727 withval=$with_build_libsubdir; build_libsubdir="$withval"
2728else
2729 build_libsubdir="$build_subdir"
2730fi
2731
2732# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2733if ( test $srcdir = . && test -d gcc ) \
2734 || test -d $srcdir/../host-${host_noncanonical}; then
2735 host_subdir="host-${host_noncanonical}"
2736else
2737 host_subdir=.
2738fi
2739# No prefix.
2740target_subdir=${target_noncanonical}
2741
2742
2743# Skipdirs are removed silently.
2744skipdirs=
2745# Noconfigdirs are removed loudly.
2746noconfigdirs=""
2747
2748use_gnu_ld=
2749# Make sure we don't let GNU ld be added if we didn't want it.
2750if test x$with_gnu_ld = xno ; then
2751 use_gnu_ld=no
2752 noconfigdirs="$noconfigdirs ld gold"
2753fi
2754
2755use_gnu_as=
2756# Make sure we don't let GNU as be added if we didn't want it.
2757if test x$with_gnu_as = xno ; then
2758 use_gnu_as=no
2759 noconfigdirs="$noconfigdirs gas"
2760fi
2761
2762# some tools are so dependent upon X11 that if we're not building with X,
2763# it's not even worth trying to configure, much less build, that tool.
2764
2765case ${with_x} in
2766 yes | "") ;; # the default value for this tree is that X11 is available
2767 no)
2768 skipdirs="${skipdirs} tk itcl libgui"
2769 # We won't be able to build gdbtk without X.
2770 enable_gdbtk=no
2771 ;;
2772 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2773esac
2774
2775# Some tools are only suitable for building in a "native" situation.
2776# Remove these if host!=target.
2777native_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"
2778
2779# Similarly, some are only suitable for cross toolchains.
2780# Remove these if host=target.
2781cross_only="target-libgloss target-newlib target-opcodes"
2782
2783case $is_cross_compiler in
2784 no) skipdirs="${skipdirs} ${cross_only}" ;;
2785 yes) skipdirs="${skipdirs} ${native_only}" ;;
2786esac
2787
2788# If both --with-headers and --with-libs are specified, default to
2789# --without-newlib.
2790if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2791 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2792 if test x"${with_newlib}" = x ; then
2793 with_newlib=no
2794 fi
2795fi
2796
2797# Recognize --with-newlib/--without-newlib.
2798case ${with_newlib} in
2799 no) skipdirs="${skipdirs} target-newlib" ;;
2800 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2801esac
2802
2803# Handle --enable-gold.
2804
2805# Check whether --enable-gold was given.
2806if test "${enable_gold+set}" = set; then :
2807 enableval=$enable_gold; ENABLE_GOLD=$enableval
2808else
2809 ENABLE_GOLD=no
2810fi
2811
2812if test "${ENABLE_GOLD}" = "yes"; then
2813 # Check for ELF target.
2814 is_elf=no
2815 case "${target}" in
2816 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
2817 | *-*-linux* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
2818 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-solaris2* | *-*-nto*)
2819 case "${target}" in
2820 *-*-linux*aout* | *-*-linux*oldld*)
2821 ;;
2822 *)
2823 is_elf=yes
2824 ;;
2825 esac
2826 esac
2827
2828 if test "$is_elf" = "yes"; then
2829 # Check for target supported by gold.
2830 case "${target}" in
2831 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-*)
2832 configdirs="`echo " ${configdirs} " | sed -e 's/ ld / gold /'`"
2833 ;;
2834 esac
2835 fi
2836fi
2837
2838# Configure extra directories which are host specific
2839
2840case "${host}" in
2841 *-cygwin*)
2842 configdirs="$configdirs libtermcap" ;;
2843esac
2844
2845# A target can indicate whether a language isn't supported for some reason.
2846# Only spaces may be used in this macro; not newlines or tabs.
2847unsupported_languages=
2848
2849# Remove more programs from consideration, based on the host or
2850# target this usually means that a port of the program doesn't
2851# exist yet.
2852
2853case "${host}" in
2854 hppa*64*-*-*)
2855 noconfigdirs="$noconfigdirs byacc"
2856 ;;
2857 i[3456789]86-*-vsta)
2858 noconfigdirs="$noconfigdirs tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl itcl gnuserv gettext"
2859 ;;
2860 i[3456789]86-*-go32* | i[3456789]86-*-msdosdjgpp*)
2861 noconfigdirs="$noconfigdirs tcl tk expect dejagnu send-pr uudecode guile itcl gnuserv libffi"
2862 ;;
2863 x86_64-*-mingw*)
2864 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
2865 ;;
2866 i[3456789]86-*-mingw32*)
2867 # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl itcl gnuserv"
2868 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
2869 ;;
2870 i[3456789]86-*-beos*)
2871 noconfigdirs="$noconfigdirs tk itcl libgui gdb"
2872 ;;
2873 *-*-cygwin*)
2874 noconfigdirs="$noconfigdirs autoconf automake send-pr rcs guile perl"
2875 ;;
2876 *-*-netbsd*)
2877 noconfigdirs="$noconfigdirs rcs"
2878 ;;
2879 ppc*-*-pe)
2880 noconfigdirs="$noconfigdirs patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl gnuserv"
2881 ;;
2882 powerpc-*-beos*)
2883 noconfigdirs="$noconfigdirs tk itcl libgui gdb dejagnu readline"
2884 ;;
2885esac
2886
2887
2888# Check whether --enable-libada was given.
2889if test "${enable_libada+set}" = set; then :
2890 enableval=$enable_libada; ENABLE_LIBADA=$enableval
2891else
2892 ENABLE_LIBADA=yes
2893fi
2894
2895if test "${ENABLE_LIBADA}" != "yes" ; then
2896 noconfigdirs="$noconfigdirs gnattools"
2897fi
2898
2899# Check whether --enable-libssp was given.
2900if test "${enable_libssp+set}" = set; then :
2901 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
2902else
2903 ENABLE_LIBSSP=yes
2904fi
2905
2906
2907# Save it here so that, even in case of --enable-libgcj, if the Java
2908# front-end isn't enabled, we still get libgcj disabled.
2909libgcj_saved=$libgcj
2910case $enable_libgcj in
2911yes)
2912 # If we reset it here, it won't get added to noconfigdirs in the
2913 # target-specific build rules, so it will be forcibly enabled
2914 # (unless the Java language itself isn't enabled).
2915 libgcj=
2916 ;;
2917no)
2918 # Make sure we get it printed in the list of not supported target libs.
2919 noconfigdirs="$noconfigdirs ${libgcj}"
2920 ;;
2921esac
2922
2923
2924# Disable libmudflap on some systems.
2925if test x$enable_libmudflap = x ; then
2926 case "${target}" in
2927 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | bfin*-*-uclinux* | *-*-kopensolaris*-gnu)
2928 # Enable libmudflap by default in GNU and friends.
2929 ;;
2930 *-*-freebsd*)
2931 # Enable libmudflap by default in FreeBSD.
2932 ;;
2933 *)
2934 # Disable it by default everywhere else.
2935 noconfigdirs="$noconfigdirs target-libmudflap"
2936 ;;
2937 esac
2938fi
2939
2940# Disable libgomp on non POSIX hosted systems.
2941if test x$enable_libgomp = x ; then
2942 # Enable libgomp by default on hosted POSIX systems.
2943 case "${target}" in
2944 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
2945 ;;
2946 *-*-netbsd* | *-*-freebsd* | *-*-openbsd*)
2947 ;;
2948 *-*-solaris2* | *-*-sysv4* | *-*-irix6* | *-*-osf* | *-*-hpux11*)
2949 ;;
2950 *-*-darwin* | *-*-aix*)
2951 ;;
2952 *)
2953 noconfigdirs="$noconfigdirs target-libgomp"
2954 ;;
2955 esac
2956fi
2957
2958# Default libgloss CPU subdirectory.
2959libgloss_dir="$target_cpu"
2960
2961case "${target}" in
2962 *-*-chorusos)
2963 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
2964 ;;
2965 powerpc-*-darwin*)
2966 noconfigdirs="$noconfigdirs ld gas gdb gprof"
2967 noconfigdirs="$noconfigdirs sim target-rda"
2968 ;;
2969 i[3456789]86-*-darwin*)
2970 noconfigdirs="$noconfigdirs ld gprof"
2971 noconfigdirs="$noconfigdirs sim target-rda"
2972 ;;
2973 x86_64-*-darwin[912]*)
2974 noconfigdirs="$noconfigdirs ld gas gprof"
2975 noconfigdirs="$noconfigdirs sim target-rda"
2976 ;;
2977 *-*-darwin*)
2978 noconfigdirs="$noconfigdirs ld gas gdb gprof"
2979 noconfigdirs="$noconfigdirs sim target-rda"
2980 noconfigdirs="$noconfigdirs ${libgcj}"
2981 ;;
2982 *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
2983 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
2984 ;;
2985 *-*-freebsd*)
2986 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2987 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
2988 && test -f /usr/local/include/gmp.h; then
2989 with_gmp=/usr/local
2990 fi
2991
2992 # Skip some stuff that's unsupported on some FreeBSD configurations.
2993 case "${target}" in
2994 i*86-*-*) ;;
2995 alpha*-*-*) ;;
2996 *)
2997 noconfigdirs="$noconfigdirs ${libgcj}"
2998 ;;
2999 esac
3000 ;;
3001 *-*-kaos*)
3002 # Remove unsupported stuff on all kaOS configurations.
3003 skipdirs="target-libiberty ${libgcj} target-libstdc++-v3 target-librx"
3004 skipdirs="$skipdirs target-libobjc target-examples target-groff target-gperf"
3005 skipdirs="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib"
3006 noconfigdirs="$noconfigdirs target-libgloss"
3007 ;;
3008 *-*-netbsd*)
3009 # Skip some stuff on all NetBSD configurations.
3010 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss"
3011
3012 # Skip some stuff that's unsupported on some NetBSD configurations.
3013 case "${target}" in
3014 i*86-*-netbsdelf*) ;;
3015 arm*-*-netbsdelf*) ;;
3016 *)
3017 noconfigdirs="$noconfigdirs ${libgcj}"
3018 ;;
3019 esac
3020 ;;
3021 *-*-netware*)
3022 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj} target-libmudflap"
3023 ;;
3024 *-*-rtems*)
3025 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3026 ;;
3027 # The tpf target doesn't support gdb yet.
3028 *-*-tpf*)
3029 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj} target-libmudflap gdb tcl tk libgui itcl"
3030 ;;
3031 *-*-uclinux*)
3032 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
3033 ;;
3034 *-*-vxworks*)
3035 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty target-libstdc++-v3 ${libgcj}"
3036 ;;
3037 alpha*-dec-osf*)
3038 # ld works, but does not support shared libraries.
3039 # newlib is not 64 bit ready. I'm not sure about fileutils.
3040 # gas doesn't generate exception information.
3041 noconfigdirs="$noconfigdirs gas ld fileutils target-newlib target-libgloss"
3042 ;;
3043 alpha*-*-*vms*)
3044 noconfigdirs="$noconfigdirs gdb ld target-newlib target-libgloss ${libgcj}"
3045 ;;
3046 alpha*-*-linux*)
3047 # newlib is not 64 bit ready
3048 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3049 ;;
3050 alpha*-*-*)
3051 # newlib is not 64 bit ready
3052 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
3053 ;;
3054 am33_2.0-*-linux*)
3055 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
3056 ;;
3057 sh-*-linux*)
3058 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
3059 ;;
3060 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3061 noconfigdirs="$noconfigdirs ${libgcj}"
3062 noconfigdirs="$noconfigdirs target-examples"
3063 noconfigdirs="$noconfigdirs target-libiberty texinfo send-pr"
3064 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
3065 noconfigdirs="$noconfigdirs expect dejagnu"
3066 # the C++ libraries don't build on top of CE's C libraries
3067 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3068 noconfigdirs="$noconfigdirs target-newlib"
3069 case "${host}" in
3070 *-*-cygwin*) ;; # keep gdb and readline
3071 *) noconfigdirs="$noconfigdirs gdb readline"
3072 ;;
3073 esac
3074 libgloss_dir=wince
3075 ;;
3076 arc-*-*)
3077 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3078 ;;
3079 arm-semi-aof )
3080 ;;
3081 arm-*-coff | strongarm-*-coff | xscale-*-coff)
3082 noconfigdirs="$noconfigdirs ${libgcj}"
3083 libgloss_dir=arm
3084 ;;
3085 arm-*-elf* | strongarm-*-elf* | xscale-*-elf* | arm*-*-eabi* )
3086 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
3087 libgloss_dir=arm
3088 ;;
3089 arm*-*-linux-gnueabi)
3090 noconfigdirs="$noconfigdirs target-qthreads"
3091 case ${with_newlib} in
3092 no) noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3093 esac
3094 libgloss_dir=arm
3095 ;;
3096 arm*-*-symbianelf*)
3097 noconfigdirs="$noconfigdirs ${libgcj} target-libiberty"
3098 libgloss_dir=arm
3099 ;;
3100 arm-*-pe*)
3101 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3102 ;;
3103 thumb-*-coff)
3104 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3105 ;;
3106 thumb-*-elf)
3107 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3108 ;;
3109 thumb-*-pe)
3110 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3111 ;;
3112 arm-*-riscix*)
3113 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
3114 ;;
3115 avr-*-*)
3116 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj} target-libssp"
3117 ;;
3118 bfin-*-*)
3119 noconfigdirs="$noconfigdirs gdb"
3120 if test x${is_cross_compiler} != xno ; then
3121 target_configdirs="${target_configdirs} target-bsp target-cygmon"
3122 fi
3123 ;;
3124 c4x-*-* | tic4x-*-*)
3125 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
3126 ;;
3127 c54x*-*-* | tic54x-*-*)
3128 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
3129 ;;
3130 cr16-*-*)
3131 noconfigdirs="$noconfigdirs ${libgcj} gdb"
3132 ;;
3133 cris-*-* | crisv32-*-*)
3134 unsupported_languages="$unsupported_languages java"
3135 case "${target}" in
3136 *-*-aout)
3137 unsupported_languages="$unsupported_languages fortran"
3138 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
3139 *-*-elf)
3140 noconfigdirs="$noconfigdirs target-boehm-gc";;
3141 *-*-linux*)
3142 noconfigdirs="$noconfigdirs target-newlib target-libgloss";;
3143 *)
3144 unsupported_languages="$unsupported_languages fortran"
3145 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss";;
3146 esac
3147 libgloss_dir=cris
3148 ;;
3149 crx-*-*)
3150 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-mudflap ${libgcj}"
3151 ;;
3152 d10v-*-*)
3153 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
3154 ;;
3155 d30v-*-*)
3156 noconfigdirs="$noconfigdirs ${libgcj} gdb"
3157 ;;
3158 ep9312-*-elf | ep9312-*-coff)
3159 libgloss_dir=arm
3160 ;;
3161 fr30-*-elf*)
3162 noconfigdirs="$noconfigdirs ${libgcj} gdb"
3163 ;;
3164 frv-*-*)
3165 noconfigdirs="$noconfigdirs ${libgcj}"
3166 ;;
3167 moxie-*-*)
3168 noconfigdirs="$noconfigdirs ${libgcj}"
3169 noconfigdirs="$noconfigdirs gprof"
3170 ;;
3171 h8300*-*-*)
3172 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3173 ;;
3174 h8500-*-*)
3175 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
3176 ;;
3177 hppa1.1-*-osf* | hppa1.1-*-bsd* )
3178 ;;
3179 hppa*64*-*-linux* | parisc*64*-*-linux*)
3180 # In this case, it's because the hppa64-linux target is for
3181 # the kernel only at this point and has no libc, and thus no
3182 # headers, crt*.o, etc., all of which are needed by these.
3183 noconfigdirs="$noconfigdirs target-zlib"
3184 ;;
3185 parisc*-*-linux* | hppa*-*-linux*)
3186 ;;
3187 hppa*-*-*elf* | \
3188 hppa*-*-lites* | \
3189 hppa*-*-openbsd* | \
3190 hppa*64*-*-*)
3191 noconfigdirs="$noconfigdirs ${libgcj}"
3192 ;;
3193 hppa*-hp-hpux11*)
3194 noconfigdirs="$noconfigdirs ld shellutils"
3195 ;;
3196 hppa*-*-pro*)
3197 libgloss_dir=pa
3198 ;;
3199 hppa*-*-*)
3200 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
3201 # build on HP-UX 10.20.
3202 noconfigdirs="$noconfigdirs ld shellutils ${libgcj}"
3203 ;;
3204 i960-*-*)
3205 noconfigdirs="$noconfigdirs ${libgcj} gdb"
3206 ;;
3207 ia64*-*-elf*)
3208 # No gdb support yet.
3209 noconfigdirs="$noconfigdirs readline mmalloc libgui itcl gdb"
3210 ;;
3211 ia64*-**-hpux*)
3212 # No gdb or ld support yet.
3213 noconfigdirs="$noconfigdirs ${libgcj} readline mmalloc libgui itcl gdb ld"
3214 ;;
3215 ia64*-*-*vms*)
3216 # No gdb or ld support yet.
3217 noconfigdirs="$noconfigdirs ${libgcj} tix readline mmalloc libgui itcl gdb ld"
3218 ;;
3219 i370-*-opened*)
3220 ;;
3221 i[3456789]86-*-coff | i[3456789]86-*-elf)
3222 noconfigdirs="$noconfigdirs ${libgcj}"
3223 libgloss_dir=i386
3224 ;;
3225 i[3456789]86-*-linux*)
3226 # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
3227 # not build java stuff by default.
3228 case "${target}" in
3229 *-*-*libc1*)
3230 noconfigdirs="$noconfigdirs ${libgcj}";;
3231 esac
3232
3233 # This section makes it possible to build newlib natively on linux.
3234 # If we are using a cross compiler then don't configure newlib.
3235 if test x${is_cross_compiler} != xno ; then
3236 noconfigdirs="$noconfigdirs target-newlib"
3237 fi
3238 noconfigdirs="$noconfigdirs target-libgloss"
3239 # If we are not using a cross compiler, do configure newlib.
3240 # Note however, that newlib will only be configured in this situation
3241 # if the --with-newlib option has been given, because otherwise
3242 # 'target-newlib' will appear in skipdirs.
3243 ;;
3244 i[3456789]86-*-mingw32*)
3245 target_configdirs="$target_configdirs target-winsup"
3246 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
3247 ;;
3248 x86_64-*-mingw*)
3249 target_configdirs="$target_configdirs target-winsup"
3250 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
3251 ;;
3252 *-*-cygwin*)
3253 target_configdirs="$target_configdirs target-libtermcap target-winsup"
3254 noconfigdirs="$noconfigdirs target-gperf target-libgloss"
3255 # always build newlib if winsup directory is present.
3256 if test -d "$srcdir/winsup/cygwin"; then
3257 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3258 elif test -d "$srcdir/newlib"; then
3259 echo "Warning: winsup/cygwin is missing so newlib can't be built."
3260 fi
3261 ;;
3262 i[3456789]86-moss-msdos | i[3456789]86-*-moss* | \
3263 i[3456789]86-*-uwin* | i[3456789]86-*-interix* )
3264 ;;
3265 i[3456789]86-*-pe)
3266 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
3267 ;;
3268 i[3456789]86-*-sco3.2v5*)
3269 # The linker does not yet know about weak symbols in COFF,
3270 # and is not configured to handle mixed ELF and COFF.
3271 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
3272 ;;
3273 i[3456789]86-*-sco*)
3274 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
3275 ;;
3276 i[3456789]86-*-solaris2*)
3277 noconfigdirs="$noconfigdirs target-libgloss"
3278 ;;
3279 i[3456789]86-*-sysv4*)
3280 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3281 ;;
3282 i[3456789]86-*-beos*)
3283 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
3284 ;;
3285 i[3456789]86-*-rdos*)
3286 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3287 ;;
3288 m32r-*-*)
3289 noconfigdirs="$noconfigdirs ${libgcj}"
3290 ;;
3291 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3292 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
3293 libgloss_dir=m68hc11
3294 ;;
3295 m68k-*-elf*)
3296 noconfigdirs="$noconfigdirs ${libgcj}"
3297 ;;
3298 m68k-*-coff*)
3299 noconfigdirs="$noconfigdirs ${libgcj}"
3300 ;;
3301 m68*-*-* | fido-*-*)
3302 libgloss_dir=m68k
3303 ;;
3304 mcore-*-pe*)
3305 # The EPOC C++ environment does not support exceptions or rtti,
3306 # and so building libstdc++-v3 tends not to always work.
3307 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3308 ;;
3309 mmix-*-*)
3310 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc gdb libgloss"
3311 unsupported_languages="$unsupported_languages fortran java"
3312 ;;
3313 mn10200-*-*)
3314 noconfigdirs="$noconfigdirs ${libgcj}"
3315 ;;
3316 mn10300-*-*)
3317 noconfigdirs="$noconfigdirs ${libgcj}"
3318 ;;
3319 mt-*-*)
3320 noconfigdirs="$noconfigdirs sim"
3321 ;;
3322 powerpc-*-aix*)
3323 # copied from rs6000-*-* entry
3324 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp target-newlib ${libgcj}"
3325 ;;
3326 powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe)
3327 target_configdirs="$target_configdirs target-winsup"
3328 noconfigdirs="$noconfigdirs gdb tcl tk make expect target-libgloss itcl gnuserv ${libgcj}"
3329 # always build newlib.
3330 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3331 ;;
3332 # This is temporary until we can link against shared libraries
3333 powerpcle-*-solaris*)
3334 noconfigdirs="$noconfigdirs gdb sim make tcl tk expect itcl gnuserv ${libgcj}"
3335 libgloss_dir=rs6000
3336 ;;
3337 powerpc-*-beos*)
3338 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
3339 ;;
3340 powerpc-*-eabi)
3341 noconfigdirs="$noconfigdirs ${libgcj}"
3342 libgloss_dir=rs6000
3343 ;;
3344 powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* )
3345 libgloss_dir=rs6000
3346 ;;
3347 rs6000-*-lynxos*)
3348 noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}"
3349 ;;
3350 rs6000-*-aix*)
3351 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp target-newlib ${libgcj}"
3352 ;;
3353 rs6000-*-*)
3354 noconfigdirs="$noconfigdirs gprof ${libgcj}"
3355 ;;
3356 m68k-apollo-*)
3357 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
3358 ;;
3359 microblaze*)
3360 noconfigdirs="$noconfigdirs gprof ${libgcj}"
3361 ;;
3362 mips*-sde-elf*)
3363 skipdirs="$skipdirs target-libiberty"
3364 noconfigdirs="$noconfigdirs ${libgcj}"
3365 if test x$with_newlib = xyes; then
3366 noconfigdirs="$noconfigdirs gprof"
3367 fi
3368 libgloss_dir=mips
3369 ;;
3370 mips*-*-irix5*)
3371 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
3372 ;;
3373 mips*-*-irix6*)
3374 # Linking libjava exceeds command-line length limits on at least
3375 # IRIX 6.2, but not on IRIX 6.5.
3376 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
3377 # <oldham@codesourcery.com>
3378 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
3379 ;;
3380 mips*-*-bsd*)
3381 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
3382 ;;
3383 mips*-*-linux*)
3384 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3385 ;;
3386 mips*-*-*)
3387 noconfigdirs="$noconfigdirs gprof ${libgcj}"
3388 libgloss_dir=mips
3389 ;;
3390 romp-*-*)
3391 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
3392 ;;
3393 sh-*-* | sh64-*-*)
3394 case "${host}" in
3395 i[3456789]86-*-vsta) ;; # don't add gprof back in
3396 i[3456789]86-*-go32*) ;; # don't add gprof back in
3397 i[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in
3398 *) skipdirs=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
3399 esac
3400 case "${target}" in
3401 sh*-*-elf)
3402 noconfigdirs="$noconfigdirs ${libgcj}" ;;
3403 *)
3404 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" ;;
3405 esac
3406 ;;
3407 sparclet-*-aout* | sparc86x-*-*)
3408 libgloss_dir=sparc
3409 ;;
3410 sparc-*-elf*)
3411 noconfigdirs="$noconfigdirs ${libgcj}"
3412 ;;
3413 sparc64-*-elf*)
3414 noconfigdirs="$noconfigdirs ${libgcj}"
3415 libgloss_dir=sparc
3416 ;;
3417 sparclite-*-*)
3418 noconfigdirs="$noconfigdirs ${libgcj}"
3419 libgloss_dir=sparc
3420 ;;
3421 sparc-*-sunos4*)
3422 noconfigdirs="$noconfigdirs ${libgcj}"
3423 if test x${is_cross_compiler} != xno ; then
3424 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3425 else
3426 use_gnu_ld=no
3427 fi
3428 ;;
3429 sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
3430 noconfigdirs="$noconfigdirs ${libgcj}"
3431 ;;
3432 sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
3433 ;;
3434 v810-*-*)
3435 noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
3436 ;;
3437 v850-*-*)
3438 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3439 ;;
3440 v850e-*-*)
3441 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3442 ;;
3443 v850ea-*-*)
3444 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3445 ;;
3446 vax-*-vms)
3447 noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
3448 ;;
3449 vax-*-*)
3450 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
3451 ;;
3452 xtensa*-*-*)
3453 noconfigdirs="$noconfigdirs ${libgcj}"
3454 ;;
3455 ip2k-*-*)
3456 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
3457 ;;
3458 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3459 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3460 ;;
3461 *-*-lynxos*)
3462 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
3463 ;;
3464 *-*-*)
3465 noconfigdirs="$noconfigdirs ${libgcj}"
3466 ;;
3467esac
3468
3469# If we aren't building newlib, then don't build libgloss, since libgloss
3470# depends upon some newlib header files.
3471case "${noconfigdirs}" in
3472 *target-libgloss*) ;;
3473 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3474esac
3475
3476# Work in distributions that contain no compiler tools, like Autoconf.
3477tentative_cc=""
3478host_makefile_frag=/dev/null
3479if test -d ${srcdir}/config ; then
3480case "${host}" in
3481 m68k-hp-hpux*)
3482 # Avoid "too much defining" errors from HPUX compiler.
3483 tentative_cc="cc -Wp,-H256000"
3484 # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
3485 # If it's HP/UX ar, this should be harmless.
3486 RANLIB="ar ts"
3487 ;;
3488 m68k-apollo-sysv*)
3489 tentative_cc="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
3490 ;;
3491 m68k-apollo-bsd*)
3492 #None of the Apollo compilers can compile gas or binutils. The preprocessor
3493 # chokes on bfd, the compiler won't let you assign integers to enums, and
3494 # other problems. Defining CC to gcc is a questionable way to say "don't use
3495 # the apollo compiler" (the preferred version of GCC could be called cc,
3496 # or whatever), but I'm not sure leaving CC as cc is any better...
3497 #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
3498 # Used to have BISON=yacc.
3499 tentative_cc=gcc
3500 ;;
3501 m88k-dg-dgux*)
3502 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
3503 ;;
3504 m88k-harris-cxux*)
3505 # Under CX/UX, we want to tell the compiler to use ANSI mode.
3506 tentative_cc="cc -Xa"
3507 host_makefile_frag="config/mh-cxux"
3508 ;;
3509 m88k-motorola-sysv*)
3510 ;;
3511 mips*-dec-ultrix*)
3512 tentative_cc="cc -Wf,-XNg1000"
3513 host_makefile_frag="config/mh-decstation"
3514 ;;
3515 mips*-nec-sysv4*)
3516 # The C compiler on NEC MIPS SVR4 needs bigger tables.
3517 tentative_cc="cc -ZXNd=5000 -ZXNg=1000"
3518 host_makefile_frag="config/mh-necv4"
3519 ;;
3520 mips*-sgi-irix4*)
3521 # Tell compiler to use K&R C. We can't compile under the SGI Ansi
3522 # environment. Also bump switch table size so that cp-parse will
3523 # compile. Bump string length limit so linker builds.
3524 tentative_cc="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
3525 ;;
3526 mips*-*-sysv4*)
3527 host_makefile_frag="config/mh-sysv4"
3528 ;;
3529 mips*-*-sysv*)
3530 # This is for a MIPS running RISC/os 4.52C.
3531
3532 # This is needed for GDB, but needs to be in the top-level make because
3533 # if a library is compiled with the bsd headers and gets linked with the
3534 # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
3535 # a different size).
3536 # ptrace(2) apparently has problems in the BSD environment. No workaround is
3537 # known except to select the sysv environment. Could we use /proc instead?
3538 # These "sysv environments" and "bsd environments" often end up being a pain.
3539 #
3540 # This is not part of CFLAGS because perhaps not all C compilers have this
3541 # option.
3542 tentative_cc="cc -systype sysv"
3543 ;;
3544 i370-ibm-opened*)
3545 tentative_cc="c89"
3546 ;;
3547 i[3456789]86-*-sysv5*)
3548 host_makefile_frag="config/mh-sysv5"
3549 ;;
3550 i[3456789]86-*-dgux*)
3551 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
3552 host_makefile_frag="config/mh-dgux386"
3553 ;;
3554 i[3456789]86-ncr-sysv4.3*)
3555 # The MetaWare compiler will generate a copyright message unless you
3556 # turn it off by adding the -Hnocopyr flag.
3557 tentative_cc="cc -Hnocopyr"
3558 ;;
3559 i[3456789]86-ncr-sysv4*)
3560 # for an NCR 3000 (i486/SVR4) system.
3561 # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
3562 # This compiler not only emits obnoxious copyright messages every time
3563 # you run it, but it chokes and dies on a whole bunch of GNU source
3564 # files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
3565 tentative_cc="/usr/ccs/ATT/cc"
3566 host_makefile_frag="config/mh-ncr3000"
3567 ;;
3568 i[3456789]86-*-sco3.2v5*)
3569 ;;
3570 i[3456789]86-*-sco*)
3571 # The native C compiler botches some simple uses of const. Unfortunately,
3572 # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
3573 tentative_cc="cc -Dconst="
3574 host_makefile_frag="config/mh-sco"
3575 ;;
3576 i[3456789]86-*-udk*)
3577 host_makefile_frag="config/mh-sysv5"
3578 ;;
3579 i[3456789]86-*-solaris2*)
3580 host_makefile_frag="config/mh-sysv4"
3581 ;;
3582 i[3456789]86-*-msdosdjgpp*)
3583 host_makefile_frag="config/mh-djgpp"
3584 ;;
3585 *-cygwin*)
3586
3587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3588$as_echo_n "checking to see if cat works as expected... " >&6; }
3589echo a >cygwin-cat-check
3590if test `cat cygwin-cat-check` == a ; then
3591 rm cygwin-cat-check
3592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3593$as_echo "yes" >&6; }
3594else
3595 rm cygwin-cat-check
3596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3597$as_echo "no" >&6; }
3598 as_fn_error "The cat command does not ignore carriage return characters.
3599 Please either mount the build directory in binary mode or run the following
3600 commands before running any configure script:
3601set -o igncr
3602export SHELLOPTS
3603 " "$LINENO" 5
3604fi
3605
3606 host_makefile_frag="config/mh-cygwin"
3607 ;;
3608 *-mingw*)
3609 host_makefile_frag="config/mh-mingw"
3610 ;;
3611 *-interix*)
3612 host_makefile_frag="config/mh-interix"
3613 ;;
3614 vax-*-ultrix2*)
3615 # The old BSD pcc isn't up to compiling parts of gdb so use gcc
3616 tentative_cc=gcc
3617 ;;
3618 *-*-solaris2*)
3619 host_makefile_frag="config/mh-solaris"
3620 ;;
3621 m68k-sun-sunos*)
3622 # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
3623 # without overflowing the jump tables (-J says to use a 32 bit table)
3624 tentative_cc="cc -J"
3625 ;;
3626 hppa*-hp-hpux10*)
3627 tentative_cc="cc -Wp,-H256000"
3628 host_makefile_frag="config/mh-pa-hpux10"
3629 ;;
3630 hppa*-hp-hpux* | hppa*-*-hiux*)
3631 tentative_cc="cc -Wp,-H256000"
3632 host_makefile_frag="config/mh-pa"
3633 ;;
3634 hppa*-*)
3635 host_makefile_frag="config/mh-pa"
3636 ;;
3637 *-hp-hpux* | *-*-hiux*)
3638 tentative_cc="cc -Wp,-H256000"
3639 ;;
3640 rs6000-*-lynxos*)
3641 # /bin/cc is less than useful for our purposes. Always use GCC
3642 tentative_cc="/usr/cygnus/progressive/bin/gcc"
3643 host_makefile_frag="config/mh-lynxrs6k"
3644 ;;
3645 powerpc-*-darwin*)
3646 host_makefile_frag="config/mh-ppc-darwin"
3647 ;;
3648 powerpc-*-aix*)
3649 host_makefile_frag="config/mh-ppc-aix"
3650 ;;
3651 rs6000-*-aix*)
3652 host_makefile_frag="config/mh-ppc-aix"
3653 ;;
3654 *-*-lynxos*)
3655 # /bin/cc is less than useful for our purposes. Always use GCC
3656 tentative_cc="/bin/gcc"
3657 ;;
3658 *-*-sysv4*)
3659 host_makefile_frag="config/mh-sysv4"
3660 ;;
3661 # This is placed last to prevent interfering with the cases above.
3662 i[3456789]86-*-*)
3663 # Build the stage2 and stage3 compilers with -fomit-frame-pointer.
3664 host_makefile_frag="config/mh-x86omitfp"
3665 ;;
3666esac
3667fi
3668
3669# If we aren't going to be using gcc, see if we can extract a definition
3670# of CC from the fragment.
3671# Actually, use the 'pre-extracted' version above.
3672if test -z "${CC}" && test "${build}" = "${host}" ; then
3673 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
3674 found=
3675 for dir in $PATH; do
3676 test -z "$dir" && dir=.
3677 if test -f $dir/gcc; then
3678 found=yes
3679 break
3680 fi
3681 done
3682 IFS="$save_ifs"
3683 if test -z "${found}" && test -n "${tentative_cc}" ; then
3684 CC=$tentative_cc
3685 fi
3686fi
3687
3688if test "${build}" != "${host}" ; then
3689 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
3690 AS_FOR_BUILD=${AS_FOR_BUILD-as}
3691 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
3692 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
3693 GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
3694 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
3695 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
3696 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
3697 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
3698 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
3699 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
3700 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
3701else
3702 AR_FOR_BUILD="\$(AR)"
3703 AS_FOR_BUILD="\$(AS)"
3704 CC_FOR_BUILD="\$(CC)"
3705 CXX_FOR_BUILD="\$(CXX)"
3706 GCJ_FOR_BUILD="\$(GCJ)"
3707 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
3708 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
3709 LD_FOR_BUILD="\$(LD)"
3710 NM_FOR_BUILD="\$(NM)"
3711 RANLIB_FOR_BUILD="\$(RANLIB)"
3712 WINDRES_FOR_BUILD="\$(WINDRES)"
3713 WINDMC_FOR_BUILD="\$(WINDMC)"
3714fi
3715
3716ac_ext=c
3717ac_cpp='$CPP $CPPFLAGS'
3718ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3719ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3720ac_compiler_gnu=$ac_cv_c_compiler_gnu
3721if test -n "$ac_tool_prefix"; then
3722 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3723set dummy ${ac_tool_prefix}gcc; ac_word=$2
3724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3725$as_echo_n "checking for $ac_word... " >&6; }
3726if test "${ac_cv_prog_CC+set}" = set; then :
3727 $as_echo_n "(cached) " >&6
3728else
3729 if test -n "$CC"; then
3730 ac_cv_prog_CC="$CC" # Let the user override the test.
3731else
3732as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3733for as_dir in $PATH
3734do
3735 IFS=$as_save_IFS
3736 test -z "$as_dir" && as_dir=.
3737 for ac_exec_ext in '' $ac_executable_extensions; do
3738 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3739 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3741 break 2
3742 fi
3743done
3744 done
3745IFS=$as_save_IFS
3746
3747fi
3748fi
3749CC=$ac_cv_prog_CC
3750if test -n "$CC"; then
3751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3752$as_echo "$CC" >&6; }
3753else
3754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3755$as_echo "no" >&6; }
3756fi
3757
3758
3759fi
3760if test -z "$ac_cv_prog_CC"; then
3761 ac_ct_CC=$CC
3762 # Extract the first word of "gcc", so it can be a program name with args.
3763set dummy gcc; ac_word=$2
3764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3765$as_echo_n "checking for $ac_word... " >&6; }
3766if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3767 $as_echo_n "(cached) " >&6
3768else
3769 if test -n "$ac_ct_CC"; then
3770 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3771else
3772as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3773for as_dir in $PATH
3774do
3775 IFS=$as_save_IFS
3776 test -z "$as_dir" && as_dir=.
3777 for ac_exec_ext in '' $ac_executable_extensions; do
3778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3779 ac_cv_prog_ac_ct_CC="gcc"
3780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3781 break 2
3782 fi
3783done
3784 done
3785IFS=$as_save_IFS
3786
3787fi
3788fi
3789ac_ct_CC=$ac_cv_prog_ac_ct_CC
3790if test -n "$ac_ct_CC"; then
3791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3792$as_echo "$ac_ct_CC" >&6; }
3793else
3794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3795$as_echo "no" >&6; }
3796fi
3797
3798 if test "x$ac_ct_CC" = x; then
3799 CC=""
3800 else
3801 case $cross_compiling:$ac_tool_warned in
3802yes:)
3803{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3804$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3805ac_tool_warned=yes ;;
3806esac
3807 CC=$ac_ct_CC
3808 fi
3809else
3810 CC="$ac_cv_prog_CC"
3811fi
3812
3813if test -z "$CC"; then
3814 if test -n "$ac_tool_prefix"; then
3815 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3816set dummy ${ac_tool_prefix}cc; ac_word=$2
3817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3818$as_echo_n "checking for $ac_word... " >&6; }
3819if test "${ac_cv_prog_CC+set}" = set; then :
3820 $as_echo_n "(cached) " >&6
3821else
3822 if test -n "$CC"; then
3823 ac_cv_prog_CC="$CC" # Let the user override the test.
3824else
3825as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3826for as_dir in $PATH
3827do
3828 IFS=$as_save_IFS
3829 test -z "$as_dir" && as_dir=.
3830 for ac_exec_ext in '' $ac_executable_extensions; do
3831 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3832 ac_cv_prog_CC="${ac_tool_prefix}cc"
3833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3834 break 2
3835 fi
3836done
3837 done
3838IFS=$as_save_IFS
3839
3840fi
3841fi
3842CC=$ac_cv_prog_CC
3843if test -n "$CC"; then
3844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3845$as_echo "$CC" >&6; }
3846else
3847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3848$as_echo "no" >&6; }
3849fi
3850
3851
3852 fi
3853fi
3854if test -z "$CC"; then
3855 # Extract the first word of "cc", so it can be a program name with args.
3856set dummy cc; ac_word=$2
3857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3858$as_echo_n "checking for $ac_word... " >&6; }
3859if test "${ac_cv_prog_CC+set}" = set; then :
3860 $as_echo_n "(cached) " >&6
3861else
3862 if test -n "$CC"; then
3863 ac_cv_prog_CC="$CC" # Let the user override the test.
3864else
3865 ac_prog_rejected=no
3866as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3867for as_dir in $PATH
3868do
3869 IFS=$as_save_IFS
3870 test -z "$as_dir" && as_dir=.
3871 for ac_exec_ext in '' $ac_executable_extensions; do
3872 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3873 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3874 ac_prog_rejected=yes
3875 continue
3876 fi
3877 ac_cv_prog_CC="cc"
3878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3879 break 2
3880 fi
3881done
3882 done
3883IFS=$as_save_IFS
3884
3885if test $ac_prog_rejected = yes; then
3886 # We found a bogon in the path, so make sur