3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.12.1
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix
=/usr
/local
13 # Any additions from configure.in:
15 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
17 --enable-shared build shared libraries [default=yes]"
19 --enable-static build static libraries [default=yes]"
21 --enable-bfd-assembler use BFD back end for writing object files"
23 targets alternative target configurations besides the primary"
25 --enable-commonbfdlib build shared BFD/opcodes/libiberty library"
27 --enable-maintainer-mode enable make rules and dependencies not useful
28 (and sometimes confusing) to the casual installer"
30 # Initialize some variables set by options.
31 # The variables have the same names as the options, with
32 # dashes changed to underlines.
34 cache_file
=.
/config.cache
43 program_transform_name
=s
,x
,x
,
51 bindir
='${exec_prefix}/bin'
52 sbindir
='${exec_prefix}/sbin'
53 libexecdir
='${exec_prefix}/libexec'
54 datadir
='${prefix}/share'
55 sysconfdir
='${prefix}/etc'
56 sharedstatedir
='${prefix}/com'
57 localstatedir
='${prefix}/var'
58 libdir
='${exec_prefix}/lib'
59 includedir
='${prefix}/include'
60 oldincludedir
='/usr/include'
61 infodir
='${prefix}/info'
62 mandir
='${prefix}/man'
64 # Initialize some other variables.
67 # Maximum number of lines to put in a shell here document.
74 # If the previous option needs an argument, assign it.
75 if test -n "$ac_prev"; then
76 eval "$ac_prev=\$ac_option"
82 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
86 # Accept the important Cygnus configure options, so we can diagnose typos.
90 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
92 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
93 bindir
="$ac_optarg" ;;
95 -build |
--build |
--buil |
--bui |
--bu)
97 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
100 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
101 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
102 ac_prev
=cache_file
;;
103 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
104 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
105 cache_file
="$ac_optarg" ;;
107 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
109 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
111 datadir
="$ac_optarg" ;;
113 -disable-* |
--disable-*)
114 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
115 # Reject names that are not valid shell variable names.
116 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
117 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
119 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
120 eval "enable_${ac_feature}=no" ;;
122 -enable-* |
--enable-*)
123 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
124 # Reject names that are not valid shell variable names.
125 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
126 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
128 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
133 eval "enable_${ac_feature}='$ac_optarg'" ;;
135 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
136 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
137 |
--exec |
--exe |
--ex)
138 ac_prev
=exec_prefix
;;
139 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
140 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
141 |
--exec=* |
--exe=* |
--ex=*)
142 exec_prefix
="$ac_optarg" ;;
144 -gas |
--gas |
--ga |
--g)
145 # Obsolete; use --with-gas.
148 -help |
--help |
--hel |
--he)
149 # Omit some internal or obsolete options to make the list less imposing.
150 # This message is too long to be a string in the A/UX 3.1 sh.
152 Usage: configure [options] [host]
153 Options: [defaults in brackets after descriptions]
155 --cache-file=FILE cache test results in FILE
156 --help print this message
157 --no-create do not create output files
158 --quiet, --silent do not print \`checking...' messages
159 --version print the version of autoconf that created configure
160 Directory and file names:
161 --prefix=PREFIX install architecture-independent files in PREFIX
163 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
165 --bindir=DIR user executables in DIR [EPREFIX/bin]
166 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
167 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
168 --datadir=DIR read-only architecture-independent data in DIR
170 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
171 --sharedstatedir=DIR modifiable architecture-independent data in DIR
173 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
174 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
175 --includedir=DIR C header files in DIR [PREFIX/include]
176 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
177 --infodir=DIR info documentation in DIR [PREFIX/info]
178 --mandir=DIR man documentation in DIR [PREFIX/man]
179 --srcdir=DIR find the sources in DIR [configure dir or ..]
180 --program-prefix=PREFIX prepend PREFIX to installed program names
181 --program-suffix=SUFFIX append SUFFIX to installed program names
182 --program-transform-name=PROGRAM
183 run sed PROGRAM on installed program names
187 --build=BUILD configure for building on BUILD [BUILD=HOST]
188 --host=HOST configure for HOST [guessed]
189 --target=TARGET configure for TARGET [TARGET=HOST]
190 Features and packages:
191 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
192 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
193 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
194 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
195 --x-includes=DIR X include files are in DIR
196 --x-libraries=DIR X library files are in DIR
198 if test -n "$ac_help"; then
199 echo "--enable and --with options recognized:$ac_help"
203 -host |
--host |
--hos |
--ho)
205 -host=* |
--host=* |
--hos=* |
--ho=*)
208 -includedir |
--includedir |
--includedi |
--included |
--include \
209 |
--includ |
--inclu |
--incl |
--inc)
210 ac_prev
=includedir
;;
211 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
212 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
213 includedir
="$ac_optarg" ;;
215 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
217 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
218 infodir
="$ac_optarg" ;;
220 -libdir |
--libdir |
--libdi |
--libd)
222 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
223 libdir
="$ac_optarg" ;;
225 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
226 |
--libexe |
--libex |
--libe)
227 ac_prev
=libexecdir
;;
228 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
229 |
--libexe=* |
--libex=* |
--libe=*)
230 libexecdir
="$ac_optarg" ;;
232 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
233 |
--localstate |
--localstat |
--localsta |
--localst \
234 |
--locals |
--local |
--loca |
--loc |
--lo)
235 ac_prev
=localstatedir
;;
236 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
237 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
238 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
239 localstatedir
="$ac_optarg" ;;
241 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
243 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
244 mandir
="$ac_optarg" ;;
247 # Obsolete; use --without-fp.
250 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
254 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
255 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
258 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
259 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
260 |
--oldin |
--oldi |
--old |
--ol |
--o)
261 ac_prev
=oldincludedir
;;
262 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
263 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
264 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
265 oldincludedir
="$ac_optarg" ;;
267 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
269 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
270 prefix
="$ac_optarg" ;;
272 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
273 |
--program-pre |
--program-pr |
--program-p)
274 ac_prev
=program_prefix
;;
275 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
276 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
277 program_prefix
="$ac_optarg" ;;
279 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
280 |
--program-suf |
--program-su |
--program-s)
281 ac_prev
=program_suffix
;;
282 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
283 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
284 program_suffix
="$ac_optarg" ;;
286 -program-transform-name |
--program-transform-name \
287 |
--program-transform-nam |
--program-transform-na \
288 |
--program-transform-n |
--program-transform- \
289 |
--program-transform |
--program-transfor \
290 |
--program-transfo |
--program-transf \
291 |
--program-trans |
--program-tran \
292 |
--progr-tra |
--program-tr |
--program-t)
293 ac_prev
=program_transform_name
;;
294 -program-transform-name=* |
--program-transform-name=* \
295 |
--program-transform-nam=* |
--program-transform-na=* \
296 |
--program-transform-n=* |
--program-transform-=* \
297 |
--program-transform=* |
--program-transfor=* \
298 |
--program-transfo=* |
--program-transf=* \
299 |
--program-trans=* |
--program-tran=* \
300 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
301 program_transform_name
="$ac_optarg" ;;
303 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
304 |
-silent |
--silent |
--silen |
--sile |
--sil)
307 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
309 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
311 sbindir
="$ac_optarg" ;;
313 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
314 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
315 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
317 ac_prev
=sharedstatedir
;;
318 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
319 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
320 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
322 sharedstatedir
="$ac_optarg" ;;
324 -site |
--site |
--sit)
326 -site=* |
--site=* |
--sit=*)
329 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
331 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
332 srcdir
="$ac_optarg" ;;
334 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
335 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
336 ac_prev
=sysconfdir
;;
337 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
338 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
339 sysconfdir
="$ac_optarg" ;;
341 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
343 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
344 target
="$ac_optarg" ;;
346 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
349 -version |
--version |
--versio |
--versi |
--vers)
350 echo "configure generated by autoconf version 2.12.1"
354 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
355 # Reject names that are not valid shell variable names.
356 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
357 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
359 ac_package
=`echo $ac_package| sed 's/-/_/g'`
364 eval "with_${ac_package}='$ac_optarg'" ;;
366 -without-* |
--without-*)
367 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
368 # Reject names that are not valid shell variable names.
369 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
370 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
372 ac_package
=`echo $ac_package| sed 's/-/_/g'`
373 eval "with_${ac_package}=no" ;;
376 # Obsolete; use --with-x.
379 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
380 |
--x-incl |
--x-inc |
--x-in |
--x-i)
381 ac_prev
=x_includes
;;
382 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
383 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
384 x_includes
="$ac_optarg" ;;
386 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
387 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
388 ac_prev
=x_libraries
;;
389 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
390 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
391 x_libraries
="$ac_optarg" ;;
393 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
397 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
398 echo "configure: warning: $ac_option: invalid host type" 1>&2
400 if test "x$nonopt" != xNONE
; then
401 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
409 if test -n "$ac_prev"; then
410 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
413 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
415 # File descriptor usage:
418 # 2 errors and warnings
419 # 3 some systems may open it to /dev/tty
420 # 4 used on the Kubota Titan
421 # 6 checking for... messages and results
422 # 5 compiler messages saved in config.log
423 if test "$silent" = yes; then
431 This file contains any messages produced by compilers while
432 running configure, to aid debugging if configure makes a mistake.
435 # Strip out --no-create and --no-recursion so they do not pile up.
436 # Also quote any args containing shell metacharacters.
441 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
442 |
--no-cr |
--no-c) ;;
443 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
444 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
445 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
446 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
447 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
452 # Only set these to C if already set. These must not be set unconditionally
453 # because not all systems understand e.g. LANG=C (notably SCO).
454 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
455 # Non-C LC_CTYPE values break the ctype check.
456 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
457 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
458 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
459 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
461 # confdefs.h avoids OS command line length limits that DEFS can exceed.
462 rm -rf conftest
* confdefs.h
463 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
466 # A filename unique to this package, relative to the directory that
467 # configure is in, which we can look for to find out if srcdir is correct.
470 # Find the source files, if location was not specified.
471 if test -z "$srcdir"; then
472 ac_srcdir_defaulted
=yes
473 # Try the directory containing this script, then its parent.
475 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
476 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
478 if test ! -r $srcdir/$ac_unique_file; then
482 ac_srcdir_defaulted
=no
484 if test ! -r $srcdir/$ac_unique_file; then
485 if test "$ac_srcdir_defaulted" = yes; then
486 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
488 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
491 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
493 # Prefer explicitly selected file to automatically selected ones.
494 if test -z "$CONFIG_SITE"; then
495 if test "x$prefix" != xNONE
; then
496 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
498 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
501 for ac_site_file
in $CONFIG_SITE; do
502 if test -r "$ac_site_file"; then
503 echo "loading site script $ac_site_file"
508 if test -r "$cache_file"; then
509 echo "loading cache $cache_file"
512 echo "creating cache $cache_file"
517 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
518 ac_cpp
='$CPP $CPPFLAGS'
519 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
520 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
521 cross_compiling
=$ac_cv_prog_cc_cross
523 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
524 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
525 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
532 ac_n
= ac_c
='\c' ac_t
=
538 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
539 if test -f $ac_dir/install-sh
; then
541 ac_install_sh
="$ac_aux_dir/install-sh -c"
543 elif test -f $ac_dir/install.sh
; then
545 ac_install_sh
="$ac_aux_dir/install.sh -c"
549 if test -z "$ac_aux_dir"; then
550 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
552 ac_config_guess
=$ac_aux_dir/config.guess
553 ac_config_sub
=$ac_aux_dir/config.sub
554 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
557 # Do some error checking and defaulting for the host and target type.
559 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
562 # 1. You are not allowed to specify --host, --target, and nonopt at the
564 # 2. Host defaults to nonopt.
565 # 3. If nonopt is not specified, then host defaults to the current host,
566 # as determined by config.guess.
567 # 4. Target and build default to nonopt.
568 # 5. If nonopt is not specified, then target and build default to host.
570 # The aliases save the names the user supplied, while $host etc.
571 # will get canonicalized.
572 case $host---$target---$nonopt in
573 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
574 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
578 # Make sure we can run config.sub.
579 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
580 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
583 echo $ac_n "checking host system type""... $ac_c" 1>&6
584 echo "configure:585: checking host system type" >&5
587 case "$host_alias" in
591 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
592 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
594 *) host_alias
=$nonopt ;;
598 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
599 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
600 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
601 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
602 echo "$ac_t""$host" 1>&6
604 echo $ac_n "checking target system type""... $ac_c" 1>&6
605 echo "configure:606: checking target system type" >&5
608 case "$target_alias" in
611 NONE
) target_alias
=$host_alias ;;
612 *) target_alias
=$nonopt ;;
616 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
617 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
618 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
619 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
620 echo "$ac_t""$target" 1>&6
622 echo $ac_n "checking build system type""... $ac_c" 1>&6
623 echo "configure:624: checking build system type" >&5
626 case "$build_alias" in
629 NONE
) build_alias
=$host_alias ;;
630 *) build_alias
=$nonopt ;;
634 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
635 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
636 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
637 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
638 echo "$ac_t""$build" 1>&6
640 test "$host_alias" != "$target_alias" &&
641 test "$program_prefix$program_suffix$program_transform_name" = \
643 program_prefix
=${target_alias}-
646 # Find a good install program. We prefer a C program (faster),
647 # so one script is as good as another. But avoid the broken or
648 # incompatible versions:
649 # SysV /etc/install, /usr/sbin/install
650 # SunOS /usr/etc/install
653 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
654 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
655 # ./install, which can be erroneously created by make from ./install.sh.
656 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
657 echo "configure:658: checking for a BSD compatible install" >&5
658 if test -z "$INSTALL"; then
659 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
660 echo $ac_n "(cached) $ac_c" 1>&6
662 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
663 for ac_dir
in $PATH; do
664 # Account for people who put trailing slashes in PATH elements.
666 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
668 # OSF1 and SCO ODT 3.0 have their own names for install.
669 for ac_prog
in ginstall installbsd scoinst
install; do
670 if test -f $ac_dir/$ac_prog; then
671 if test $ac_prog = install &&
672 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
673 # AIX install. It has an incompatible calling convention.
674 # OSF/1 installbsd also uses dspmsg, but is usable.
677 ac_cv_path_install
="$ac_dir/$ac_prog -c"
688 if test "${ac_cv_path_install+set}" = set; then
689 INSTALL
="$ac_cv_path_install"
691 # As a last resort, use the slow shell script. We don't cache a
692 # path for INSTALL within a source directory, because that will
693 # break other packages using the cache if that directory is
694 # removed, or if the path is relative.
695 INSTALL
="$ac_install_sh"
698 echo "$ac_t""$INSTALL" 1>&6
700 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
701 # It thinks the first close brace ends the variable substitution.
702 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
704 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
707 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
714 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status
; then
715 { echo "configure: error: source directory already configured; run "make distclean
" there first" 1>&2; exit 1; }
717 cat >> confdefs.h
<<EOF
718 #define PACKAGE "$PACKAGE"
721 cat >> confdefs.h
<<EOF
722 #define VERSION "$VERSION"
725 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
726 echo "configure:727: checking whether build environment is sane" >&5
729 echo timestamp
> conftestfile
730 # Do `set' in a subshell so we don't clobber the current shell's
731 # arguments. Must try -L first in case configure is actually a
732 # symlink; some systems play weird games with the mod time of symlinks
733 # (eg FreeBSD returns the mod time of the symlink's containing
736 set X
`ls -Lt $srcdir/configure conftestfile 2> /dev/null`
737 if test "" = "X"; then
739 set X
`ls -t $srcdir/configure conftestfile`
741 test "$2" = conftestfile
747 { echo "configure: error: newly created file is older than distributed files!
748 Check your system clock" 1>&2; exit 1; }
751 echo "$ac_t""yes" 1>&6
752 if test "$program_transform_name" = s
,x
,x
,; then
753 program_transform_name
=
755 # Double any \ or $. echo might interpret backslashes.
756 cat <<\EOF_SED
> conftestsed
757 s
,\\,\\\\,g
; s
,\$
,$$
,g
759 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
762 test "$program_prefix" != NONE
&&
763 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
764 # Use a double $ so make ignores it.
765 test "$program_suffix" != NONE
&&
766 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
768 # sed with no file args requires a program.
769 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
771 missing_dir
=`cd $ac_aux_dir && pwd`
772 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
773 echo "configure:774: checking for working aclocal" >&5
774 # Run test in a subshell; some versions of sh will print an error if
775 # an executable is not found, even if stderr is redirected.
776 # Redirect stdin to placate older versions of autoconf. Sigh.
777 if (aclocal
--version) < /dev
/null
> /dev
/null
2>&1; then
779 echo "$ac_t""found" 1>&6
781 ACLOCAL
="$missing_dir/missing aclocal"
782 echo "$ac_t""missing" 1>&6
785 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
786 echo "configure:787: checking for working autoconf" >&5
787 # Run test in a subshell; some versions of sh will print an error if
788 # an executable is not found, even if stderr is redirected.
789 # Redirect stdin to placate older versions of autoconf. Sigh.
790 if (autoconf
--version) < /dev
/null
> /dev
/null
2>&1; then
792 echo "$ac_t""found" 1>&6
794 AUTOCONF
="$missing_dir/missing autoconf"
795 echo "$ac_t""missing" 1>&6
798 echo $ac_n "checking for working automake""... $ac_c" 1>&6
799 echo "configure:800: checking for working automake" >&5
800 # Run test in a subshell; some versions of sh will print an error if
801 # an executable is not found, even if stderr is redirected.
802 # Redirect stdin to placate older versions of autoconf. Sigh.
803 if (automake
--version) < /dev
/null
> /dev
/null
2>&1; then
805 echo "$ac_t""found" 1>&6
807 AUTOMAKE
="$missing_dir/missing automake"
808 echo "$ac_t""missing" 1>&6
811 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
812 echo "configure:813: checking for working autoheader" >&5
813 # Run test in a subshell; some versions of sh will print an error if
814 # an executable is not found, even if stderr is redirected.
815 # Redirect stdin to placate older versions of autoconf. Sigh.
816 if (autoheader
--version) < /dev
/null
> /dev
/null
2>&1; then
817 AUTOHEADER
=autoheader
818 echo "$ac_t""found" 1>&6
820 AUTOHEADER
="$missing_dir/missing autoheader"
821 echo "$ac_t""missing" 1>&6
824 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
825 echo "configure:826: checking for working makeinfo" >&5
826 # Run test in a subshell; some versions of sh will print an error if
827 # an executable is not found, even if stderr is redirected.
828 # Redirect stdin to placate older versions of autoconf. Sigh.
829 if (makeinfo
--version) < /dev
/null
> /dev
/null
2>&1; then
831 echo "$ac_t""found" 1>&6
833 MAKEINFO
="$missing_dir/missing makeinfo"
834 echo "$ac_t""missing" 1>&6
837 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
838 echo "configure:839: checking whether ${MAKE-make} sets \${MAKE}" >&5
839 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
840 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
841 echo $ac_n "(cached) $ac_c" 1>&6
843 cat > conftestmake
<<\EOF
845 @
echo 'ac_maketemp="${MAKE}"'
847 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
848 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
849 if test -n "$ac_maketemp"; then
850 eval ac_cv_prog_make_
${ac_make}_set
=yes
852 eval ac_cv_prog_make_
${ac_make}_set
=no
856 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
857 echo "$ac_t""yes" 1>&6
860 echo "$ac_t""no" 1>&6
861 SET_MAKE
="MAKE=${MAKE-make}"
865 # Extract the first word of "gcc", so it can be a program name with args.
866 set dummy gcc
; ac_word
=$2
867 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
868 echo "configure:869: checking for $ac_word" >&5
869 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
870 echo $ac_n "(cached) $ac_c" 1>&6
872 if test -n "$CC"; then
873 ac_cv_prog_CC
="$CC" # Let the user override the test.
875 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
876 for ac_dir
in $PATH; do
877 test -z "$ac_dir" && ac_dir
=.
878 if test -f $ac_dir/$ac_word; then
887 if test -n "$CC"; then
888 echo "$ac_t""$CC" 1>&6
890 echo "$ac_t""no" 1>&6
893 if test -z "$CC"; then
894 # Extract the first word of "cc", so it can be a program name with args.
895 set dummy cc
; ac_word
=$2
896 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
897 echo "configure:898: checking for $ac_word" >&5
898 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
899 echo $ac_n "(cached) $ac_c" 1>&6
901 if test -n "$CC"; then
902 ac_cv_prog_CC
="$CC" # Let the user override the test.
904 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
906 for ac_dir
in $PATH; do
907 test -z "$ac_dir" && ac_dir
=.
908 if test -f $ac_dir/$ac_word; then
909 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
918 if test $ac_prog_rejected = yes; then
919 # We found a bogon in the path, so make sure we never use it.
920 set dummy
$ac_cv_prog_CC
922 if test $# -gt 0; then
923 # We chose a different compiler from the bogus one.
924 # However, it has the same basename, so the bogon will be chosen
925 # first if we set CC to just the basename; use the full file name.
927 set dummy
"$ac_dir/$ac_word" "$@"
935 if test -n "$CC"; then
936 echo "$ac_t""$CC" 1>&6
938 echo "$ac_t""no" 1>&6
941 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
944 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
945 echo "configure:946: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
948 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
949 ac_cpp
='$CPP $CPPFLAGS'
950 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
951 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
952 cross_compiling
=$ac_cv_prog_cc_cross
954 cat > conftest.
$ac_ext <<EOF
955 #line 956 "configure"
956 #include "confdefs.h"
959 if { (eval echo configure
:960: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
960 ac_cv_prog_cc_works
=yes
961 # If we can't run a trivial program, we are probably using a cross compiler.
962 if (.
/conftest
; exit) 2>/dev
/null
; then
963 ac_cv_prog_cc_cross
=no
965 ac_cv_prog_cc_cross
=yes
968 echo "configure: failed program was:" >&5
969 cat conftest.
$ac_ext >&5
970 ac_cv_prog_cc_works
=no
974 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
975 if test $ac_cv_prog_cc_works = no
; then
976 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
978 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
979 echo "configure:980: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
980 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
981 cross_compiling
=$ac_cv_prog_cc_cross
983 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
984 echo "configure:985: checking whether we are using GNU C" >&5
985 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
986 echo $ac_n "(cached) $ac_c" 1>&6
988 cat > conftest.c
<<EOF
993 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:994: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1000 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1002 if test $ac_cv_prog_gcc = yes; then
1004 ac_test_CFLAGS
="${CFLAGS+set}"
1005 ac_save_CFLAGS
="$CFLAGS"
1007 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1008 echo "configure:1009: checking whether ${CC-cc} accepts -g" >&5
1009 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1010 echo $ac_n "(cached) $ac_c" 1>&6
1012 echo 'void f(){}' > conftest.c
1013 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1022 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1023 if test "$ac_test_CFLAGS" = set; then
1024 CFLAGS
="$ac_save_CFLAGS"
1025 elif test $ac_cv_prog_cc_g = yes; then
1032 test "${CFLAGS+set}" = set || CFLAGS
="-g"
1035 # Extract the first word of "ranlib", so it can be a program name with args.
1036 set dummy ranlib
; ac_word
=$2
1037 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1038 echo "configure:1039: checking for $ac_word" >&5
1039 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1040 echo $ac_n "(cached) $ac_c" 1>&6
1042 if test -n "$RANLIB"; then
1043 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1045 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1046 for ac_dir
in $PATH; do
1047 test -z "$ac_dir" && ac_dir
=.
1048 if test -f $ac_dir/$ac_word; then
1049 ac_cv_prog_RANLIB
="ranlib"
1054 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1057 RANLIB
="$ac_cv_prog_RANLIB"
1058 if test -n "$RANLIB"; then
1059 echo "$ac_t""$RANLIB" 1>&6
1061 echo "$ac_t""no" 1>&6
1064 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1065 if test "${with_gnu_ld+set}" = set; then
1066 withval
="$with_gnu_ld"
1067 test "$withval" = no || with_gnu_ld
=yes
1072 if test "$with_gnu_ld" = yes; then
1073 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1074 echo "configure:1075: checking for GNU ld" >&5
1076 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1077 echo "configure:1078: checking for non-GNU ld" >&5
1079 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1080 echo $ac_n "(cached) $ac_c" 1>&6
1084 ac_cv_path_LD
="$LD" # Let the user override the test with a path.
1087 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1088 for ac_dir
in $PATH; do
1089 test -z "$ac_dir" && ac_dir
=.
1090 if test -f "$ac_dir/ld"; then
1091 ac_cv_path_LD
="$ac_dir/ld"
1092 # Check to see if the program is GNU ld. I'd rather use --version,
1093 # but apparently some GNU ld's only accept -v.
1094 # Break only if it was the GNU/non-GNU ld that we prefer.
1095 if "$ac_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU ld|with BFD)' > /dev
/null
; then
1096 test "$with_gnu_ld" = yes && break
1098 test "$with_gnu_ld" != yes && break
1108 if test -n "$LD"; then
1109 echo "$ac_t""$LD" 1>&6
1111 echo "$ac_t""no" 1>&6
1113 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1115 echo $ac_n "checking whether we are using GNU ld""... $ac_c" 1>&6
1116 echo "configure:1117: checking whether we are using GNU ld" >&5
1117 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1118 echo $ac_n "(cached) $ac_c" 1>&6
1120 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1121 if $LD -v 2>&1 </dev
/null |
egrep '(GNU ld|with BFD)' > /dev
/null
; then
1122 ac_cv_prog_gnu_ld
=yes
1124 ac_cv_prog_gnu_ld
=no
1128 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1131 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1132 echo "configure:1133: checking whether ln -s works" >&5
1133 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1134 echo $ac_n "(cached) $ac_c" 1>&6
1137 if ln -s X conftestdata
2>/dev
/null
1140 ac_cv_prog_LN_S
="ln -s"
1145 LN_S
="$ac_cv_prog_LN_S"
1146 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1147 echo "$ac_t""yes" 1>&6
1149 echo "$ac_t""no" 1>&6
1158 # Always use our own libtool.
1159 LIBTOOL
='$(top_builddir)/libtool'
1162 # Check whether --enable-shared or --disable-shared was given.
1163 if test "${enable_shared+set}" = set; then
1164 enableval
="$enable_shared"
1165 if test "$enableval" = no
; then
1173 test "$enable_shared" = no
&& libtool_shared
=" --disable-shared"
1175 # Check whether --enable-static or --disable-static was given.
1176 if test "${enable_static+set}" = set; then
1177 enableval
="$enable_static"
1178 if test "$enableval" = no
; then
1186 test "$enable_static" = no
&& libtool_static
=" --disable-static"
1188 libtool_flags
="$libtool_shared$libtool_static"
1189 test "$silent" = yes && libtool_flags
="$libtool_flags --silent"
1190 test "$ac_cv_prog_gcc" = yes && libtool_flags
="$libtool_flags --with-gcc"
1191 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags
="$libtool_flags --with-gnu-ld"
1193 # Some flags need to be propagated to the compiler or linker for good
1197 ac_save_CFLAGS
="$CFLAGS"
1198 # -n32 always needs to be added to the linker when using GCC.
1199 test "$ac_cv_prog_gcc" = yes && CFLAGS
="$CFLAGS -n32"
1200 for f
in '-32' '-64' '-cckr' '-n32' '-mips1' '-mips2' '-mips3' '-mips4'; do
1201 if echo " $CC $CFLAGS " |
egrep -e "[ ]$f[ ]" > /dev
/null
; then
1205 CFLAGS
="$ac_save_CFLAGS"
1209 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1210 CFLAGS
="$CFLAGS -belf"
1214 # Actually configure libtool. ac_aux_dir is where install-sh is found.
1215 CC
="$CC" CFLAGS
="$CFLAGS" CPPFLAGS
="$CPPFLAGS" \
1216 LD
="$LD" RANLIB
="$RANLIB" LN_S
="$LN_S" \
1217 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig \
1218 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh
$host \
1219 ||
{ echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1223 # Check whether --enable-bfd-assembler or --disable-bfd-assembler was given.
1224 if test "${enable_bfd_assembler+set}" = set; then
1225 enableval
="$enable_bfd_assembler"
1226 case "${enableval}" in
1227 yes) need_bfd
=yes user_bfd_gas
=yes ;;
1228 no
) user_bfd_gas
=no
;;
1229 *) { echo "configure: error: bad value ${enableval} given for bfd-assembler option" 1>&2; exit 1; } ;;
1232 # Check whether --enable-targets or --disable-targets was given.
1233 if test "${enable_targets+set}" = set; then
1234 enableval
="$enable_targets"
1235 case "${enableval}" in
1236 yes |
"") { echo "configure: error: enable-targets option must specify target names or 'all'" 1>&2; exit 1; }
1238 no
) enable_targets
= ;;
1239 *) enable_targets
=$enableval ;;
1242 # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
1243 if test "${enable_commonbfdlib+set}" = set; then
1244 enableval
="$enable_commonbfdlib"
1245 case "${enableval}" in
1246 yes) commonbfdlib
=true
;;
1247 no
) commonbfdlib
=false
;;
1248 *) { echo "configure: error: bad value ${enableval} for BFD commonbfdlib option" 1>&2; exit 1; } ;;
1252 # Generate a header file
1260 if test -n "$enable_targets" ; then
1261 for t
in `echo $enable_targets | sed 's/,/ /g'`; do
1262 result
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $t 2>/dev/null`
1263 if test -n "$result" ; then
1264 canon_targets
="$canon_targets $result"
1266 # # Permit "all", etc. We don't support it yet though.
1267 # canon_targets="$canon_targets $t"
1270 _gas_uniq_list
="$canon_targets"
1271 _gas_uniq_newlist
=""
1272 for _gas_uniq_i
in _gas_uniq_dummy
$_gas_uniq_list ; do
1273 case $_gas_uniq_i in
1275 *) case " $_gas_uniq_newlist " in
1276 *" $_gas_uniq_i "*) ;;
1277 *) _gas_uniq_newlist
="$_gas_uniq_newlist $_gas_uniq_i" ;;
1281 canon_targets
=$_gas_uniq_newlist
1287 for this_target
in $target $canon_targets ; do
1289 eval `echo $this_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/cpu=\1 vendor=\2 os=\3/'`
1291 # check for architecture variants
1294 armeb
) cpu_type
=arm endian
=big
;;
1295 arm
*) cpu_type
=arm endian
=little
;;
1296 thumb
*) cpu_type
=arm endian
=little
;;
1297 hppa
*) cpu_type
=hppa
;;
1298 i
[456]86) cpu_type
=i386
;;
1299 m680
[012346]0) cpu_type
=m68k
;;
1300 m68008
) cpu_type
=m68k
;;
1301 m683??
) cpu_type
=m68k
;;
1302 m8
*) cpu_type
=m88k
;;
1303 mips
*el
) cpu_type
=mips endian
=little
;;
1304 mips
*5900*) cpu_type
=mips endian
=little
;;
1305 mips
*) cpu_type
=mips endian
=big
;;
1306 powerpcle
*) cpu_type
=ppc endian
=little
;;
1307 powerpc
*) cpu_type
=ppc endian
=big
;;
1308 rs6000
*) cpu_type
=ppc
;;
1309 sparc64
) cpu_type
=sparc want_sparc_v9
=true
;;
1310 sparc
*) cpu_type
=sparc
;;
1311 *) cpu_type
=${cpu} ;;
1314 if test ${this_target} = $target ; then
1315 target_cpu_type
=${cpu_type}
1316 if test x
${endian} = xbig
; then
1317 cat >> confdefs.h
<<\EOF
1318 #define TARGET_BYTES_BIG_ENDIAN 1
1321 elif test x
${endian} = xlittle
; then
1322 cat >> confdefs.h
<<\EOF
1323 #define TARGET_BYTES_BIG_ENDIAN 0
1327 elif test ${target_cpu_type} != ${cpu_type} ; then
1331 generic_target
=${cpu_type}-$vendor-$os
1336 # assign object format
1337 case ${generic_target} in
1338 a29k-
*-coff) fmt=coff
;;
1339 a29k-amd-udi
) fmt=coff
;;
1340 a29k-amd-ebmon
) fmt=coff
;;
1341 a29k-nyu-sym1
) fmt=coff
;;
1342 a29k-
*-vxworks*) fmt=coff
;;
1344 alpha-
*-*vms
*) fmt=evax
;;
1345 alpha-
*-netware*) fmt=ecoff
;;
1346 alpha-
*-openbsd*) fmt=ecoff
;;
1347 alpha-
*-osf*) fmt=ecoff
;;
1348 alpha-
*-linuxecoff*) fmt=ecoff
;;
1349 alpha-
*-linux*) fmt=elf em
=linux
;;
1351 # start-sanitize-arc
1352 arc-
*-elf*) fmt=elf bfd_gas
=yes ;;
1355 arm-
*-riscix*) fmt=aout em
=riscix
;;
1356 arm-
*-aout) fmt=aout
;;
1357 arm-
*-coff | thumb-
*-coff) fmt=coff
;;
1358 arm-
*-riscix*) fmt=aout
;;
1359 arm-
*-pe) fmt=coff em
=pe
;;
1361 d10v-
*-*) fmt=elf bfd_gas
=yes ;;
1362 # start-sanitize-d30v
1363 d30v-
*-*) fmt=elf bfd_gas
=yes ;;
1366 hppa-
*-*elf
*) fmt=elf em
=hppa
;;
1367 hppa-
*-lites*) fmt=elf em
=hppa
;;
1368 hppa-
*-osf*) fmt=som em
=hppa
;;
1369 hppa-
*-rtems*) fmt=elf em
=hppa
;;
1370 hppa-
*-hpux*) fmt=som em
=hppa
;;
1371 hppa-
*-bsd*) fmt=som em
=hppa
;;
1372 hppa-
*-hiux*) fmt=som em
=hppa
;;
1374 h8300-
*-coff) fmt=coff
;;
1376 i386-ibm-aix
*) fmt=coff em
=i386aix
;;
1377 i386-sequent-bsd
*) fmt=aout em
=dynix bfd_gas
=yes ;;
1378 i386-
*-bsd*) fmt=aout em
=386bsd
;;
1379 i386-
*-netbsd0.8
) fmt=aout em
=386bsd
;;
1380 i386-
*-netbsd*) fmt=aout em
=nbsd bfd_gas
=yes;;
1381 i386-
*-openbsd*) fmt=aout em
=nbsd bfd_gas
=yes;;
1382 i386-
*-linux*aout
* | i386-
*-linuxoldld) fmt=aout em
=linux
;;
1383 i386-
*-linux*coff
*) fmt=coff em
=linux
;;
1384 i386-
*-linux*) fmt=elf em
=linux
;;
1385 i386-
*-lynxos*) fmt=coff em
=lynx
;;
1386 i386-
*-sysv4* | i386-
*-solaris* | i386-
*-elf | i386-
*-freebsdelf*)
1388 i386-
*-sco*elf
*) fmt=elf
1389 if test ${this_target} = $target; then
1390 cat >> confdefs.h
<<\EOF
1396 i386-
*-coff | i386-
*-sysv* | i386-
*-sco* | i386-
*-isc*)
1398 i386-
*-vsta) fmt=aout
;;
1399 i386-
*-msdosdjgpp* | i386-
*-go32*)
1401 i386-
*-rtems*) fmt=coff
;;
1402 i386-
*-gnu*) fmt=elf
;;
1404 fmt=aout em
=mach bfd_gas
=yes ;;
1405 i386-
*-msdos*) fmt=aout
;;
1406 i386-
*-moss*) fmt=elf
;;
1407 i386-
*-pe) fmt=coff em
=pe
;;
1408 i386-
*-cygwin32) fmt=coff em
=pe bfd_gas
=yes ;;
1409 i386-
*-*nt
) fmt=coff em
=pe
;;
1410 i960-
*-bout) fmt=bout
;;
1411 i960-
*-coff) fmt=coff em
=ic960
;;
1412 i960-
*-rtems*) fmt=coff em
=ic960
;;
1413 i960-
*-nindy*) fmt=bout
;;
1414 i960-
*-vxworks4*) fmt=bout
;;
1415 i960-
*-vxworks5.0
) fmt=bout
;;
1416 i960-
*-vxworks5.
*) fmt=coff em
=ic960
;;
1417 i960-
*-vxworks*) fmt=bout
;;
1419 m32r-
*-*) fmt=elf bfd_gas
=yes ;;
1421 m68k-
*-vxworks* | m68k-ericsson-ose | m68k-
*-sunos*)
1423 m68k-motorola-sysv
*) fmt=coff em
=delta
;;
1424 m68k-bull-sysv3
*) fmt=coff em
=dpx2
;;
1425 m68k-apollo-
*) fmt=coff em
=apollo
;;
1426 m68k-
*-sysv4*) # must be before -sysv*
1428 m68k-
*-elf*) fmt=elf
;;
1429 m68k-
*-coff | m68k-
*-sysv* | m68k-
*-rtems*)
1431 m68k-
*-hpux*) fmt=hp300 em
=hp300
;;
1432 m68k-
*-linux*aout
*) fmt=aout em
=linux
;;
1433 m68k-
*-linux*) fmt=elf em
=linux
;;
1434 m68k-
*-lynxos*) fmt=coff em
=lynx
;;
1435 m68k-
*-netbsd*) fmt=aout em
=nbsd bfd_gas
=yes ;;
1436 m68k-
*-openbsd*) fmt=aout em
=nbsd bfd_gas
=yes ;;
1437 m68k-apple-aux
*) fmt=coff em
=aux
;;
1438 m68k-
*-psos*) fmt=elf em
=psos
;;
1440 m88k-motorola-sysv3
*) fmt=coff em
=delt88
;;
1441 m88k-
*-coff*) fmt=coff
;;
1443 # don't change em like *-*-bsd does
1444 mips-dec-netbsd
*) fmt=elf endian
=little
;;
1445 mips-dec-openbsd
*) fmt=elf endian
=little
;;
1446 mips-dec-bsd
*) fmt=aout
;;
1447 mips-sony-bsd
*) fmt=ecoff
;;
1448 mips-
*-bsd*) { echo "configure: error: Unknown vendor for mips-bsd configuration." 1>&2; exit 1; } ;;
1449 mips-
*-ultrix*) fmt=ecoff endian
=little
;;
1450 mips-
*-osf*) fmt=ecoff endian
=little
;;
1451 mips-
*-ecoff*) fmt=ecoff
;;
1452 mips-
*-ecoff*) fmt=ecoff
;;
1453 mips-
*-irix6*) fmt=elf
;;
1454 mips-
*-irix5*) fmt=elf
;;
1455 mips-
*-irix*) fmt=ecoff
;;
1456 mips-
*-lnews*) fmt=ecoff em
=lnews
;;
1457 mips-
*-riscos*) fmt=ecoff
;;
1458 mips-
*-sysv*) fmt=ecoff
;;
1459 mips-
*-elf* | mips-
*-rtems* | mips-
*-linux* | mips-
*-gnu* | mips-
*-openbsd*)
1461 mn10200-
*-*) fmt=elf bfd_gas
=yes ;;
1462 mn10300-
*-*) fmt=elf bfd_gas
=yes ;;
1463 ppc-
*-pe | ppc-
*-cygwin32 | ppc-
*-winnt*)
1465 ppc-
*-aix*) fmt=coff
;;
1466 ppc-
*-beos*) fmt=coff
;;
1467 ppc-
*-*bsd
* | ppc-
*-elf* | ppc-
*-eabi* | ppc-
*-sysv4*)
1469 ppc-
*-linux*) fmt=elf
1472 *) { echo "configure: error: Linux must be configured big endian" 1>&2; exit 1; } ;;
1475 ppc-
*-solaris*) fmt=elf
1476 if test ${this_target} = $target; then
1477 cat >> confdefs.h
<<\EOF
1478 #define TARGET_SOLARIS_COMMENT 1
1482 if test x
${endian} = xbig
; then
1483 { echo "configure: error: Solaris must be configured little endian" 1>&2; exit 1; }
1486 ppc-
*-rtems*) fmt=elf
;;
1487 ppc-
*-macos* | ppc-
*-mpw*)
1488 fmt=coff em
=macos
;;
1489 ppc-
*-netware*) fmt=elf em
=ppcnw
;;
1491 sh-
*-elf*) fmt=elf
;;
1492 sh-
*-coff*) fmt=coff
;;
1494 ns32k-pc532-mach
* | ns32k-pc532-ux
*) fmt=aout em
=pc532mach
;;
1495 ns32k-pc532-netbsd
* | ns32k-pc532-lites
*) fmt=aout em
=nbsd532
;;
1496 ns32k-pc532-openbsd
*) fmt=aout em
=nbsd532
;;
1498 sparc-
*-rtems*) fmt=aout
;;
1499 sparc-
*-sunos4*) fmt=aout em
=sun3
;;
1500 sparc-
*-aout | sparc
*-*-vxworks*)
1501 fmt=aout em
=sparcaout
;;
1502 sparc-
*-coff) fmt=coff
;;
1503 sparc-
*-linux*aout
*) fmt=aout em
=linux
;;
1504 sparc-
*-linux*) fmt=elf em
=linux
;;
1505 sparc-
*-lynxos*) fmt=coff em
=lynx
;;
1506 sparc-fujitsu-none
) fmt=aout
;;
1507 sparc-
*-elf | sparc-
*-sysv4* | sparc-
*-solaris*)
1509 sparc-
*-netbsd*) fmt=aout em
=nbsd bfd_gas
=yes ;;
1510 sparc-
*-openbsd*) fmt=aout em
=nbsd bfd_gas
=yes ;;
1512 # start-sanitize-tic80
1513 tic80-
*-*) fmt=coff
;;
1514 # end-sanitize-tic80
1515 v850-
*-*) fmt=elf bfd_gas
=yes ;;
1516 # start-sanitize-v850e
1517 v850e-
*-*) fmt=elf bfd_gas
=yes
1518 target_cpu_type
=v850
;;
1519 # end-sanitize-v850e
1520 # start-sanitize-v850eq
1521 v850eq-
*-*) fmt=elf bfd_gas
=yes
1522 target_cpu_type
=v850
;;
1523 # end-sanitize-v850eq
1524 vax-
*-bsd* | vax-
*-ultrix*)
1526 vax-
*-vms) fmt=vms
;;
1528 z8k-
*-coff | z8k-
*-sim)
1531 w65-
*-*) fmt=coff
;;
1533 *-*-aout |
*-*-scout)
1539 *-*-generic) fmt=generic
;;
1540 *-*-xray |
*-*-hms) fmt=coff
;;
1541 *-*-sim) fmt=coff
;;
1542 *-*-elf |
*-*-sysv4* |
*-*-solaris*)
1543 echo "configure: warning: GAS support for ${generic_target} is incomplete." 1>&2
1545 *-*-vxworks) fmt=aout
;;
1546 *-*-netware) fmt=elf
;;
1549 case ${cpu_type}-${fmt} in
1550 alpha-
*) bfd_gas
=yes ;;
1551 arm-
*) bfd_gas
=yes ;;
1553 # i386-aout) bfd_gas=preferred ;;
1554 mips-
*) bfd_gas
=yes ;;
1555 ns32k-
*) bfd_gas
=yes ;;
1556 ppc-
*) bfd_gas
=yes ;;
1557 sparc-
*) bfd_gas
=yes ;;
1558 *-elf) bfd_gas
=yes ;;
1559 *-ecoff) bfd_gas
=yes ;;
1560 *-som) bfd_gas
=yes ;;
1564 # Other random stuff.
1566 # do we need the opcodes library?
1572 if test "${shared_opcodes}" = "true"; then
1573 # A shared libopcodes must be linked against libbfd.
1579 test -n "$want_sparc_v9" && cat >> confdefs.h
<<\EOF
1584 case ${cpu}-${vendor}-${os} in
1585 sparc64-
*-elf*) cat >> confdefs.h
<<\EOF
1586 #define SPARC_ARCH64 1
1593 case ${extra_objects} in
1595 *) extra_objects
="$extra_objects cgen.o"
1596 cat >> confdefs.h
<<\EOF
1597 #define USING_CGEN 1
1605 case ${extra_objects} in
1607 *) extra_objects
="$extra_objects m68k-parse.o" ;;
1612 echo ${extra_objects} |
grep -s "itbl-parse.o"
1613 if test $?
-ne 0 ; then
1614 extra_objects
="$extra_objects itbl-parse.o"
1617 echo ${extra_objects} |
grep -s "itbl-lex.o"
1618 if test $?
-ne 0 ; then
1619 extra_objects
="$extra_objects itbl-lex.o"
1622 echo ${extra_objects} |
grep -s "itbl-ops.o"
1623 if test $?
-ne 0 ; then
1624 extra_objects
="$extra_objects itbl-ops.o"
1632 # See if we really can support this configuration with the emulation code.
1634 if test $this_target = $target ; then
1635 primary_bfd_gas
=$bfd_gas
1639 if test $bfd_gas = no
; then
1640 # Can't support other configurations this way.
1643 elif test $bfd_gas = no
; then
1644 # Can't support this configuration.
1648 # From target name and format, produce a list of supported emulations.
1650 case ${generic_target}-${fmt} in
1651 mips-
*-irix5*-*) emulation
="mipsbelf mipslelf mipself mipsbecoff mipslecoff mipsecoff" ;;
1652 mips-
*-linux*-*) case "$endian" in
1653 big
) emulation
="mipsbelf mipslelf mipself mipsbecoff mipslecoff mipsecoff" ;;
1654 *) emulation
="mipslelf mipsbelf mipself mipslecoff mipsbecoff mipsecoff" ;;
1656 mips-
*-lnews*-ecoff) ;;
1657 mips-
*-*-ecoff) case "$endian" in
1658 big
) emulation
="mipsbecoff mipslecoff mipsecoff" ;;
1659 *) emulation
="mipslecoff mipsbecoff mipsecoff" ;;
1661 mips-
*-*-elf) case "$endian" in
1662 big
) emulation
="mipsbelf mipslelf mipself" ;;
1663 *) emulation
="mipslelf mipsbelf mipself" ;;
1664 # Uncommenting the next line will turn on support for i386 COFF
1665 # in any i386 ELF configuration. This probably doesn't work
1667 # i386-*-*-elf) emulation="i386coff i386elf" ;;
1671 emulations
="$emulations $emulation"
1675 # Assign floating point type. Most processors with FP support
1676 # IEEE FP. On those that don't support FP at all, usually IEEE
1678 case ${target_cpu} in
1679 vax | tahoe
) atof
=${target_cpu} ;;
1683 case "${obj_format}" in
1684 "") { echo "configure: error: GAS does not know what format to use for target ${target}" 1>&2; exit 1; } ;;
1688 if test ! -r ${srcdir}/config
/tc-
${target_cpu_type}.c
; then
1689 { echo "configure: error: GAS does not support target CPU ${target_cpu_type}" 1>&2; exit 1; }
1692 if test ! -r ${srcdir}/config
/obj-
${obj_format}.c
; then
1693 { echo "configure: error: GAS does not have support for object file format ${obj_format}" 1>&2; exit 1; }
1696 case ${user_bfd_gas}-${primary_bfd_gas} in
1698 # We didn't override user's choice.
1701 echo "configure: warning: Use of BFD is required for ${target}; overriding config options." 1>&2
1713 # User specified nothing.
1717 # Some COFF configurations want these random other flags set.
1718 case ${obj_format} in
1720 case ${target_cpu_type} in
1721 i386
) cat >> confdefs.h
<<\EOF
1725 m68k
) cat >> confdefs.h
<<\EOF
1729 m88k
) cat >> confdefs.h
<<\EOF
1737 # Getting this done right is going to be a bitch. Each configuration specified
1738 # with --enable-targets=... should be checked for environment, format, cpu, and
1741 # For each configuration, the necessary object file support code must be linked
1742 # in. This might be only one, it might be up to four. The necessary emulation
1743 # code needs to be provided, too.
1745 # And then there's "--enable-targets=all"....
1747 # For now, just always do it for MIPS ELF or ECOFF configurations. Sigh.
1749 formats
="${obj_format}"
1752 _gas_uniq_list
="$emulations"
1753 _gas_uniq_newlist
=""
1754 for _gas_uniq_i
in _gas_uniq_dummy
$_gas_uniq_list ; do
1755 case $_gas_uniq_i in
1757 *) case " $_gas_uniq_newlist " in
1758 *" $_gas_uniq_i "*) ;;
1759 *) _gas_uniq_newlist
="$_gas_uniq_newlist $_gas_uniq_i" ;;
1763 emulations
=$_gas_uniq_newlist
1765 for em
in .
$emulations ; do
1768 mipsbelf | mipslelf
)
1769 fmt=elf
file=mipself
;;
1770 mipsbecoff | mipslecoff
)
1771 fmt=ecoff
file=mipsecoff
;;
1773 fmt=coff
file=i386coff
;;
1775 fmt=elf
file=i386elf
;;
1777 formats
="$formats $fmt"
1778 emfiles
="$emfiles e-$file.o"
1779 EMULATIONS
="$EMULATIONS &$em,"
1781 _gas_uniq_list
="$formats"
1782 _gas_uniq_newlist
=""
1783 for _gas_uniq_i
in _gas_uniq_dummy
$_gas_uniq_list ; do
1784 case $_gas_uniq_i in
1786 *) case " $_gas_uniq_newlist " in
1787 *" $_gas_uniq_i "*) ;;
1788 *) _gas_uniq_newlist
="$_gas_uniq_newlist $_gas_uniq_i" ;;
1792 formats
=$_gas_uniq_newlist
1794 _gas_uniq_list
="$emfiles"
1795 _gas_uniq_newlist
=""
1796 for _gas_uniq_i
in _gas_uniq_dummy
$_gas_uniq_list ; do
1797 case $_gas_uniq_i in
1799 *) case " $_gas_uniq_newlist " in
1800 *" $_gas_uniq_i "*) ;;
1801 *) _gas_uniq_newlist
="$_gas_uniq_newlist $_gas_uniq_i" ;;
1805 emfiles
=$_gas_uniq_newlist
1807 if test `set . $formats ; shift ; echo $#` -gt 1 ; then
1808 for fmt in $formats ; do
1810 aout
) cat >> confdefs.h
<<\EOF
1811 #define OBJ_MAYBE_AOUT 1
1814 bout
) cat >> confdefs.h
<<\EOF
1815 #define OBJ_MAYBE_BOUT 1
1818 coff
) cat >> confdefs.h
<<\EOF
1819 #define OBJ_MAYBE_COFF 1
1822 ecoff
) cat >> confdefs.h
<<\EOF
1823 #define OBJ_MAYBE_ECOFF 1
1826 elf
) cat >> confdefs.h
<<\EOF
1827 #define OBJ_MAYBE_ELF 1
1830 generic
) cat >> confdefs.h
<<\EOF
1831 #define OBJ_MAYBE_GENERIC 1
1834 hp300
) cat >> confdefs.h
<<\EOF
1835 #define OBJ_MAYBE_HP300 1
1838 ieee
) cat >> confdefs.h
<<\EOF
1839 #define OBJ_MAYBE_IEEE 1
1842 som
) cat >> confdefs.h
<<\EOF
1843 #define OBJ_MAYBE_SOM 1
1846 vms
) cat >> confdefs.h
<<\EOF
1847 #define OBJ_MAYBE_VMS 1
1851 extra_objects
="$extra_objects obj-$fmt.o"
1855 if test `set . $emfiles ; shift ; echo $#` -gt 0 ; then
1857 extra_objects
="$extra_objects $emfiles"
1858 DEFAULT_EMULATION
=`set . $emulations ; echo $2`
1859 cat >> confdefs.h
<<\EOF
1860 #define USE_EMULATIONS 1
1865 cat >> confdefs.h
<<EOF
1866 #define EMULATIONS $EMULATIONS
1869 cat >> confdefs.h
<<EOF
1870 #define DEFAULT_EMULATION "$DEFAULT_EMULATION"
1874 case ${primary_bfd_gas}-${target_cpu_type}-${obj_format} in
1875 yes-
*-coff) need_bfd
=yes ;;
1876 no-
*-coff) need_bfd
=yes
1877 cat >> confdefs.h
<<\EOF
1878 #define MANY_SEGMENTS 1
1883 reject_dev_configs
=yes
1885 case ${reject_dev_configs}-${dev} in
1887 { echo "configure: error: GAS does not support the ${generic_target} configuration." 1>&2; exit 1; }
1896 case "${primary_bfd_gas}" in
1897 yes) cat >> confdefs.h
<<\EOF
1898 #define BFD_ASSEMBLER 1
1904 # do we need the opcodes library?
1905 case "${need_opcodes}" in
1907 OPCODES_LIB
=..
/opcodes
/libopcodes.la
1911 case "${need_bfd}" in
1913 BFDLIB
=..
/bfd
/libbfd.la
1914 ALL_OBJ_DEPS
="$ALL_OBJ_DEPS ../bfd/bfd.h"
1923 cat >> confdefs.h
<<EOF
1924 #define TARGET_ALIAS "${target_alias}"
1927 cat >> confdefs.h
<<EOF
1928 #define TARGET_CANONICAL "${target}"
1931 cat >> confdefs.h
<<EOF
1932 #define TARGET_CPU "${target_cpu}"
1935 cat >> confdefs.h
<<EOF
1936 #define TARGET_VENDOR "${target_vendor}"
1939 cat >> confdefs.h
<<EOF
1940 #define TARGET_OS "${target_os}"
1944 # Extract the first word of "gcc", so it can be a program name with args.
1945 set dummy gcc
; ac_word
=$2
1946 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1947 echo "configure:1943: checking for $ac_word" >&5
1948 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1949 echo $ac_n "(cached) $ac_c" 1>&6
1951 if test -n "$CC"; then
1952 ac_cv_prog_CC
="$CC" # Let the user override the test.
1954 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1955 for ac_dir
in $PATH; do
1956 test -z "$ac_dir" && ac_dir
=.
1957 if test -f $ac_dir/$ac_word; then
1966 if test -n "$CC"; then
1967 echo "$ac_t""$CC" 1>&6
1969 echo "$ac_t""no" 1>&6
1972 if test -z "$CC"; then
1973 # Extract the first word of "cc", so it can be a program name with args.
1974 set dummy cc
; ac_word
=$2
1975 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1976 echo "configure:1972: checking for $ac_word" >&5
1977 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1978 echo $ac_n "(cached) $ac_c" 1>&6
1980 if test -n "$CC"; then
1981 ac_cv_prog_CC
="$CC" # Let the user override the test.
1983 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1985 for ac_dir
in $PATH; do
1986 test -z "$ac_dir" && ac_dir
=.
1987 if test -f $ac_dir/$ac_word; then
1988 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1989 ac_prog_rejected
=yes
1997 if test $ac_prog_rejected = yes; then
1998 # We found a bogon in the path, so make sure we never use it.
1999 set dummy
$ac_cv_prog_CC
2001 if test $# -gt 0; then
2002 # We chose a different compiler from the bogus one.
2003 # However, it has the same basename, so the bogon will be chosen
2004 # first if we set CC to just the basename; use the full file name.
2006 set dummy
"$ac_dir/$ac_word" "$@"
2014 if test -n "$CC"; then
2015 echo "$ac_t""$CC" 1>&6
2017 echo "$ac_t""no" 1>&6
2020 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2023 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2024 echo "configure:2020: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
2027 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2028 ac_cpp
='$CPP $CPPFLAGS'
2029 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2030 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2031 cross_compiling
=$ac_cv_prog_cc_cross
2033 cat > conftest.
$ac_ext <<EOF
2034 #line 2030 "configure"
2035 #include "confdefs.h"
2038 if { (eval echo configure
:2034: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2039 ac_cv_prog_cc_works
=yes
2040 # If we can't run a trivial program, we are probably using a cross compiler.
2041 if (.
/conftest
; exit) 2>/dev
/null
; then
2042 ac_cv_prog_cc_cross
=no
2044 ac_cv_prog_cc_cross
=yes
2047 echo "configure: failed program was:" >&5
2048 cat conftest.
$ac_ext >&5
2049 ac_cv_prog_cc_works
=no
2053 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2054 if test $ac_cv_prog_cc_works = no
; then
2055 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2057 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2058 echo "configure:2054: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2059 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2060 cross_compiling
=$ac_cv_prog_cc_cross
2062 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2063 echo "configure:2059: checking whether we are using GNU C" >&5
2064 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
2065 echo $ac_n "(cached) $ac_c" 1>&6
2067 cat > conftest.c
<<EOF
2072 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:2068: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
2079 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2081 if test $ac_cv_prog_gcc = yes; then
2083 ac_test_CFLAGS
="${CFLAGS+set}"
2084 ac_save_CFLAGS
="$CFLAGS"
2086 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2087 echo "configure:2083: checking whether ${CC-cc} accepts -g" >&5
2088 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2089 echo $ac_n "(cached) $ac_c" 1>&6
2091 echo 'void f(){}' > conftest.c
2092 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2101 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2102 if test "$ac_test_CFLAGS" = set; then
2103 CFLAGS
="$ac_save_CFLAGS"
2104 elif test $ac_cv_prog_cc_g = yes; then
2111 test "${CFLAGS+set}" = set || CFLAGS
="-g"
2114 # Find a good install program. We prefer a C program (faster),
2115 # so one script is as good as another. But avoid the broken or
2116 # incompatible versions:
2117 # SysV /etc/install, /usr/sbin/install
2118 # SunOS /usr/etc/install
2119 # IRIX /sbin/install
2121 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2122 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2123 # ./install, which can be erroneously created by make from ./install.sh.
2124 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2125 echo "configure:2121: checking for a BSD compatible install" >&5
2126 if test -z "$INSTALL"; then
2127 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
2128 echo $ac_n "(cached) $ac_c" 1>&6
2130 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
2131 for ac_dir
in $PATH; do
2132 # Account for people who put trailing slashes in PATH elements.
2134 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
2136 # OSF1 and SCO ODT 3.0 have their own names for install.
2137 for ac_prog
in ginstall installbsd scoinst
install; do
2138 if test -f $ac_dir/$ac_prog; then
2139 if test $ac_prog = install &&
2140 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
2141 # AIX install. It has an incompatible calling convention.
2142 # OSF/1 installbsd also uses dspmsg, but is usable.
2145 ac_cv_path_install
="$ac_dir/$ac_prog -c"
2156 if test "${ac_cv_path_install+set}" = set; then
2157 INSTALL
="$ac_cv_path_install"
2159 # As a last resort, use the slow shell script. We don't cache a
2160 # path for INSTALL within a source directory, because that will
2161 # break other packages using the cache if that directory is
2162 # removed, or if the path is relative.
2163 INSTALL
="$ac_install_sh"
2166 echo "$ac_t""$INSTALL" 1>&6
2168 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2169 # It thinks the first close brace ends the variable substitution.
2170 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2172 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2175 for ac_prog
in 'bison -y' byacc
2177 # Extract the first word of "$ac_prog", so it can be a program name with args.
2178 set dummy
$ac_prog; ac_word
=$2
2179 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2180 echo "configure:2176: checking for $ac_word" >&5
2181 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
2182 echo $ac_n "(cached) $ac_c" 1>&6
2184 if test -n "$YACC"; then
2185 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
2187 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2188 for ac_dir
in $PATH; do
2189 test -z "$ac_dir" && ac_dir
=.
2190 if test -f $ac_dir/$ac_word; then
2191 ac_cv_prog_YACC
="$ac_prog"
2198 YACC
="$ac_cv_prog_YACC"
2199 if test -n "$YACC"; then
2200 echo "$ac_t""$YACC" 1>&6
2202 echo "$ac_t""no" 1>&6
2205 test -n "$YACC" && break
2207 test -n "$YACC" || YACC
="yacc"
2209 # Extract the first word of "flex", so it can be a program name with args.
2210 set dummy flex
; ac_word
=$2
2211 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2212 echo "configure:2208: checking for $ac_word" >&5
2213 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
2214 echo $ac_n "(cached) $ac_c" 1>&6
2216 if test -n "$LEX"; then
2217 ac_cv_prog_LEX
="$LEX" # Let the user override the test.
2219 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
2220 for ac_dir
in $PATH; do
2221 test -z "$ac_dir" && ac_dir
=.
2222 if test -f $ac_dir/$ac_word; then
2223 ac_cv_prog_LEX
="flex"
2228 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX
="lex"
2231 LEX
="$ac_cv_prog_LEX"
2232 if test -n "$LEX"; then
2233 echo "$ac_t""$LEX" 1>&6
2235 echo "$ac_t""no" 1>&6
2238 if test -z "$LEXLIB"
2244 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
2245 echo "configure:2241: checking for yywrap in -l$ac_lib" >&5
2246 ac_lib_var
=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
2247 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2248 echo $ac_n "(cached) $ac_c" 1>&6
2250 ac_save_LIBS
="$LIBS"
2251 LIBS
="-l$ac_lib $LIBS"
2252 cat > conftest.
$ac_ext <<EOF
2253 #line 2249 "configure"
2254 #include "confdefs.h"
2255 /* Override any gcc2 internal prototype to avoid an error. */
2256 /* We use char because int might match the return type of a gcc2
2257 builtin and then its argument prototype would still apply. */
2264 if { (eval echo configure
:2260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2266 eval "ac_cv_lib_$ac_lib_var=yes"
2268 echo "configure: failed program was:" >&5
2269 cat conftest.
$ac_ext >&5
2271 eval "ac_cv_lib_$ac_lib_var=no"
2274 LIBS
="$ac_save_LIBS"
2277 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2278 echo "$ac_t""yes" 1>&6
2281 echo "$ac_t""no" 1>&6
2286 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2287 echo "configure:2283: checking how to run the C preprocessor" >&5
2288 # On Suns, sometimes $CPP names a directory.
2289 if test -n "$CPP" && test -d "$CPP"; then
2292 if test -z "$CPP"; then
2293 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2294 echo $ac_n "(cached) $ac_c" 1>&6
2296 # This must be in double quotes, not single quotes, because CPP may get
2297 # substituted into the Makefile and "${CC-cc}" will confuse make.
2299 # On the NeXT, cc -E runs the code through the compiler's parser,
2300 # not just through cpp.
2301 cat > conftest.
$ac_ext <<EOF
2302 #line 2298 "configure"
2303 #include "confdefs.h"
2307 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2308 { (eval echo configure
:2304: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2309 ac_err
=`grep -v '^ *+' conftest.out`
2310 if test -z "$ac_err"; then
2314 echo "configure: failed program was:" >&5
2315 cat conftest.
$ac_ext >&5
2317 CPP
="${CC-cc} -E -traditional-cpp"
2318 cat > conftest.
$ac_ext <<EOF
2319 #line 2315 "configure"
2320 #include "confdefs.h"
2324 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2325 { (eval echo configure
:2321: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2326 ac_err
=`grep -v '^ *+' conftest.out`
2327 if test -z "$ac_err"; then
2331 echo "configure: failed program was:" >&5
2332 cat conftest.
$ac_ext >&5
2339 ac_cv_prog_CPP
="$CPP"
2341 CPP
="$ac_cv_prog_CPP"
2343 ac_cv_prog_CPP
="$CPP"
2345 echo "$ac_t""$CPP" 1>&6
2347 echo $ac_n "checking lex output file root""... $ac_c" 1>&6
2348 echo "configure:2344: checking lex output file root" >&5
2349 if eval "test \"`echo '$''{'ac_cv_prog_lex_root'+set}'`\" = set"; then
2350 echo $ac_n "(cached) $ac_c" 1>&6
2352 # The minimal lex program is just a single line: %%. But some broken lexes
2353 # (Solaris, I think it was) want two %% lines, so accommodate them.
2356 if test -f lex.yy.c
; then
2357 ac_cv_prog_lex_root
=lex.yy
2358 elif test -f lexyy.c
; then
2359 ac_cv_prog_lex_root
=lexyy
2361 { echo "configure: error: cannot find output from $LEX; giving up" 1>&2; exit 1; }
2365 echo "$ac_t""$ac_cv_prog_lex_root" 1>&6
2366 LEX_OUTPUT_ROOT
=$ac_cv_prog_lex_root
2368 echo $ac_n "checking whether yytext is a pointer""... $ac_c" 1>&6
2369 echo "configure:2365: checking whether yytext is a pointer" >&5
2370 if eval "test \"`echo '$''{'ac_cv_prog_lex_yytext_pointer'+set}'`\" = set"; then
2371 echo $ac_n "(cached) $ac_c" 1>&6
2373 # POSIX says lex can declare yytext either as a pointer or an array; the
2374 # default is implementation-dependent. Figure out which it is, since
2375 # not all implementations provide the %pointer and %array declarations.
2376 ac_cv_prog_lex_yytext_pointer
=no
2377 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
2378 ac_save_LIBS
="$LIBS"
2379 LIBS
="$LIBS $LEXLIB"
2380 cat > conftest.
$ac_ext <<EOF
2381 #line 2377 "configure"
2382 #include "confdefs.h"
2383 `cat $LEX_OUTPUT_ROOT.c`
2388 if { (eval echo configure
:2384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2390 ac_cv_prog_lex_yytext_pointer
=yes
2392 echo "configure: failed program was:" >&5
2393 cat conftest.
$ac_ext >&5
2396 LIBS
="$ac_save_LIBS"
2397 rm -f "${LEX_OUTPUT_ROOT}.c"
2401 echo "$ac_t""$ac_cv_prog_lex_yytext_pointer" 1>&6
2402 if test $ac_cv_prog_lex_yytext_pointer = yes; then
2403 cat >> confdefs.h
<<\EOF
2404 #define YYTEXT_POINTER 1
2410 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
2411 echo "configure:2407: checking whether to enable maintainer-specific portions of Makefiles" >&5
2412 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
2413 if test "${enable_maintainer_mode+set}" = set; then
2414 enableval
="$enable_maintainer_mode"
2415 USE_MAINTAINER_MODE
=$enableval
2417 USE_MAINTAINER_MODE
=no
2420 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
2421 if test $USE_MAINTAINER_MODE = yes; then
2428 echo $ac_n "checking for Cygwin32 environment""... $ac_c" 1>&6
2429 echo "configure:2425: checking for Cygwin32 environment" >&5
2430 if eval "test \"`echo '$''{'am_cv_cygwin32'+set}'`\" = set"; then
2431 echo $ac_n "(cached) $ac_c" 1>&6
2433 cat > conftest.
$ac_ext <<EOF
2434 #line 2430 "configure"
2435 #include "confdefs.h"
2438 int main () { return __CYGWIN32__; }
2441 if { (eval echo configure
:2437: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2445 echo "configure: failed program was:" >&5
2446 cat conftest.
$ac_ext >&5
2454 echo "$ac_t""$am_cv_cygwin32" 1>&6
2456 test "$am_cv_cygwin32" = yes && CYGWIN32
=yes
2458 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
2459 echo "configure:2455: checking for executable suffix" >&5
2460 if eval "test \"`echo '$''{'am_cv_exeext'+set}'`\" = set"; then
2461 echo $ac_n "(cached) $ac_c" 1>&6
2463 if test "$CYGWIN32" = yes; then
2466 cat > am_c_test.c
<< 'EOF'
2468 /* Nothing needed here
*/
2471 ${CC-cc} -o am_c_test
$CFLAGS $CPPFLAGS $LDFLAGS am_c_test.c
$LIBS 1>&5
2472 am_cv_exeext
=`echo am_c_test.* | grep -v am_c_test.c | sed -e s/am_c_test//`
2476 test x
"${am_cv_exeext}" = x
&& am_cv_exeext
=no
2479 test x
"${am_cv_exeext}" != xno
&& EXEEXT
=${am_cv_exeext}
2480 echo "$ac_t""${am_cv_exeext}" 1>&6
2483 for ac_hdr
in string.h stdlib.h memory.h
strings.h unistd.h stdarg.h varargs.h errno.h sys
/types.h
2485 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2486 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2487 echo "configure:2483: checking for $ac_hdr" >&5
2488 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2489 echo $ac_n "(cached) $ac_c" 1>&6
2491 cat > conftest.
$ac_ext <<EOF
2492 #line 2488 "configure"
2493 #include "confdefs.h"
2496 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2497 { (eval echo configure
:2493: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2498 ac_err
=`grep -v '^ *+' conftest.out`
2499 if test -z "$ac_err"; then
2501 eval "ac_cv_header_$ac_safe=yes"
2504 echo "configure: failed program was:" >&5
2505 cat conftest.
$ac_ext >&5
2507 eval "ac_cv_header_$ac_safe=no"
2511 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2512 echo "$ac_t""yes" 1>&6
2513 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2514 cat >> confdefs.h
<<EOF
2515 #define $ac_tr_hdr 1
2519 echo "$ac_t""no" 1>&6
2524 # Put this here so that autoconf's "cross-compiling" message doesn't confuse
2525 # people who are not cross-compiling but are compiling cross-assemblers.
2526 echo $ac_n "checking whether compiling a cross-assembler""... $ac_c" 1>&6
2527 echo "configure:2523: checking whether compiling a cross-assembler" >&5
2528 if test "${host}" = "${target}"; then
2532 cat >> confdefs.h
<<\EOF
2533 #define CROSS_COMPILE 1
2537 echo "$ac_t""$cross_gas" 1>&6
2539 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
2540 # for constant arguments. Useless!
2541 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
2542 echo "configure:2538: checking for working alloca.h" >&5
2543 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
2544 echo $ac_n "(cached) $ac_c" 1>&6
2546 cat > conftest.
$ac_ext <<EOF
2547 #line 2543 "configure"
2548 #include "confdefs.h"
2551 char *p = alloca(2 * sizeof(int));
2554 if { (eval echo configure
:2550: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2556 ac_cv_header_alloca_h
=yes
2558 echo "configure: failed program was:" >&5
2559 cat conftest.
$ac_ext >&5
2561 ac_cv_header_alloca_h
=no
2566 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
2567 if test $ac_cv_header_alloca_h = yes; then
2568 cat >> confdefs.h
<<\EOF
2569 #define HAVE_ALLOCA_H 1
2574 echo $ac_n "checking for alloca""... $ac_c" 1>&6
2575 echo "configure:2571: checking for alloca" >&5
2576 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
2577 echo $ac_n "(cached) $ac_c" 1>&6
2579 cat > conftest.
$ac_ext <<EOF
2580 #line 2576 "configure"
2581 #include "confdefs.h"
2584 # define alloca __builtin_alloca
2587 # include <alloca.h>
2592 # ifndef alloca /* predefined by HP cc +Olibcalls */
2600 char *p = (char *) alloca(1);
2603 if { (eval echo configure
:2599: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2605 ac_cv_func_alloca_works
=yes
2607 echo "configure: failed program was:" >&5
2608 cat conftest.
$ac_ext >&5
2610 ac_cv_func_alloca_works
=no
2615 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
2616 if test $ac_cv_func_alloca_works = yes; then
2617 cat >> confdefs.h
<<\EOF
2618 #define HAVE_ALLOCA 1
2623 if test $ac_cv_func_alloca_works = no
; then
2624 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
2625 # that cause trouble. Some versions do not even contain alloca or
2626 # contain a buggy version. If you still want to use their alloca,
2627 # use ar to extract alloca.o from them instead of compiling alloca.c.
2629 cat >> confdefs.h
<<\EOF
2634 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
2635 echo "configure:2631: checking whether alloca needs Cray hooks" >&5
2636 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
2637 echo $ac_n "(cached) $ac_c" 1>&6
2639 cat > conftest.
$ac_ext <<EOF
2640 #line 2636 "configure"
2641 #include "confdefs.h"
2642 #if defined(CRAY) && ! defined(CRAY2)
2649 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2650 egrep "webecray" >/dev
/null
2>&1; then
2661 echo "$ac_t""$ac_cv_os_cray" 1>&6
2662 if test $ac_cv_os_cray = yes; then
2663 for ac_func
in _getb67 GETB67 getb67
; do
2664 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2665 echo "configure:2661: checking for $ac_func" >&5
2666 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2667 echo $ac_n "(cached) $ac_c" 1>&6
2669 cat > conftest.
$ac_ext <<EOF
2670 #line 2666 "configure"
2671 #include "confdefs.h"
2672 /* System header to define __stub macros and hopefully few prototypes,
2673 which can conflict with char $ac_func(); below. */
2675 /* Override any gcc2 internal prototype to avoid an error. */
2676 /* We use char because int might match the return type of a gcc2
2677 builtin and then its argument prototype would still apply. */
2682 /* The GNU C library defines this for functions which it implements
2683 to always fail with ENOSYS. Some functions are actually named
2684 something starting with __ and the normal name is an alias. */
2685 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2693 if { (eval echo configure
:2689: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2695 eval "ac_cv_func_$ac_func=yes"
2697 echo "configure: failed program was:" >&5
2698 cat conftest.
$ac_ext >&5
2700 eval "ac_cv_func_$ac_func=no"
2705 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2706 echo "$ac_t""yes" 1>&6
2707 cat >> confdefs.h
<<EOF
2708 #define CRAY_STACKSEG_END $ac_func
2713 echo "$ac_t""no" 1>&6
2719 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
2720 echo "configure:2716: checking stack direction for C alloca" >&5
2721 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
2722 echo $ac_n "(cached) $ac_c" 1>&6
2724 if test "$cross_compiling" = yes; then
2725 ac_cv_c_stack_direction
=0
2727 cat > conftest.
$ac_ext <<EOF
2728 #line 2724 "configure"
2729 #include "confdefs.h"
2730 find_stack_direction ()
2732 static char *addr = 0;
2737 return find_stack_direction ();
2740 return (&dummy > addr) ? 1 : -1;
2744 exit (find_stack_direction() < 0);
2747 if { (eval echo configure
:2743: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
2749 ac_cv_c_stack_direction
=1
2751 echo "configure: failed program was:" >&5
2752 cat conftest.
$ac_ext >&5
2754 ac_cv_c_stack_direction
=-1
2761 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
2762 cat >> confdefs.h
<<EOF
2763 #define STACK_DIRECTION $ac_cv_c_stack_direction
2768 echo $ac_n "checking for inline""... $ac_c" 1>&6
2769 echo "configure:2765: checking for inline" >&5
2770 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2771 echo $ac_n "(cached) $ac_c" 1>&6
2774 for ac_kw
in inline __inline__ __inline
; do
2775 cat > conftest.
$ac_ext <<EOF
2776 #line 2772 "configure"
2777 #include "confdefs.h"
2783 if { (eval echo configure
:2779: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2785 ac_cv_c_inline
=$ac_kw; break
2787 echo "configure: failed program was:" >&5
2788 cat conftest.
$ac_ext >&5
2795 echo "$ac_t""$ac_cv_c_inline" 1>&6
2796 case "$ac_cv_c_inline" in
2798 no
) cat >> confdefs.h
<<\EOF
2802 *) cat >> confdefs.h
<<EOF
2803 #define inline $ac_cv_c_inline
2809 # VMS doesn't have unlink.
2810 for ac_func
in unlink remove
2812 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2813 echo "configure:2809: checking for $ac_func" >&5
2814 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2815 echo $ac_n "(cached) $ac_c" 1>&6
2817 cat > conftest.
$ac_ext <<EOF
2818 #line 2814 "configure"
2819 #include "confdefs.h"
2820 /* System header to define __stub macros and hopefully few prototypes,
2821 which can conflict with char $ac_func(); below. */
2823 /* Override any gcc2 internal prototype to avoid an error. */
2824 /* We use char because int might match the return type of a gcc2
2825 builtin and then its argument prototype would still apply. */
2830 /* The GNU C library defines this for functions which it implements
2831 to always fail with ENOSYS. Some functions are actually named
2832 something starting with __ and the normal name is an alias. */
2833 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2841 if { (eval echo configure
:2837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2843 eval "ac_cv_func_$ac_func=yes"
2845 echo "configure: failed program was:" >&5
2846 cat conftest.
$ac_ext >&5
2848 eval "ac_cv_func_$ac_func=no"
2853 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2854 echo "$ac_t""yes" 1>&6
2855 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2856 cat >> confdefs.h
<<EOF
2857 #define $ac_tr_func 1
2861 echo "$ac_t""no" 1>&6
2866 # Some systems don't have sbrk().
2869 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2870 echo "configure:2866: checking for $ac_func" >&5
2871 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2872 echo $ac_n "(cached) $ac_c" 1>&6
2874 cat > conftest.
$ac_ext <<EOF
2875 #line 2871 "configure"
2876 #include "confdefs.h"
2877 /* System header to define __stub macros and hopefully few prototypes,
2878 which can conflict with char $ac_func(); below. */
2880 /* Override any gcc2 internal prototype to avoid an error. */
2881 /* We use char because int might match the return type of a gcc2
2882 builtin and then its argument prototype would still apply. */
2887 /* The GNU C library defines this for functions which it implements
2888 to always fail with ENOSYS. Some functions are actually named
2889 something starting with __ and the normal name is an alias. */
2890 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2898 if { (eval echo configure
:2894: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2900 eval "ac_cv_func_$ac_func=yes"
2902 echo "configure: failed program was:" >&5
2903 cat conftest.
$ac_ext >&5
2905 eval "ac_cv_func_$ac_func=no"
2910 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2911 echo "$ac_t""yes" 1>&6
2912 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2913 cat >> confdefs.h
<<EOF
2914 #define $ac_tr_func 1
2918 echo "$ac_t""no" 1>&6
2923 # Some non-ANSI preprocessors botch requoting inside strings. That's bad
2924 # enough, but on some of those systems, the assert macro relies on requoting
2926 echo $ac_n "checking for working assert macro""... $ac_c" 1>&6
2927 echo "configure:2923: checking for working assert macro" >&5
2928 if eval "test \"`echo '$''{'gas_cv_assert_ok'+set}'`\" = set"; then
2929 echo $ac_n "(cached) $ac_c" 1>&6
2931 cat > conftest.
$ac_ext <<EOF
2932 #line 2928 "configure"
2933 #include "confdefs.h"
2938 /* check for requoting problems */
2939 static int a, b, c, d;
2941 assert (!strcmp(s, "foo bar baz quux"));
2942 /* check for newline handling */
2948 if { (eval echo configure
:2944: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2950 gas_cv_assert_ok
=yes
2952 echo "configure: failed program was:" >&5
2953 cat conftest.
$ac_ext >&5
2959 echo "$ac_t""$gas_cv_assert_ok" 1>&6
2960 test $gas_cv_assert_ok = yes ||
cat >> confdefs.h
<<\EOF
2961 #define BROKEN_ASSERT 1
2966 # On some systems, the system header files may not declare malloc, realloc,
2967 # and free. There are places where gas needs these functions to have been
2968 # declared -- such as when taking their addresses.
2970 #ifdef HAVE_MEMORY_H
2973 #ifdef HAVE_STRING_H
2976 #ifdef HAVE_STRINGS_H
2977 #include <strings.h>
2980 #ifdef HAVE_STDLIB_H
2983 #ifdef HAVE_UNISTD_H
2988 echo $ac_n "checking whether declaration is required for strstr""... $ac_c" 1>&6
2989 echo "configure:2985: checking whether declaration is required for strstr" >&5
2990 if eval "test \"`echo '$''{'gas_cv_decl_needed_strstr'+set}'`\" = set"; then
2991 echo $ac_n "(cached) $ac_c" 1>&6
2993 cat > conftest.
$ac_ext <<EOF
2994 #line 2990 "configure"
2995 #include "confdefs.h"
2999 typedef char *(*f)();
3005 if { (eval echo configure
:3001: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3007 gas_cv_decl_needed_strstr
=no
3009 echo "configure: failed program was:" >&5
3010 cat conftest.
$ac_ext >&5
3012 gas_cv_decl_needed_strstr
=yes
3016 echo "$ac_t""$gas_cv_decl_needed_strstr" 1>&6
3017 test $gas_cv_decl_needed_strstr = no ||
{
3018 cat >> confdefs.h
<<\EOF
3019 #define NEED_DECLARATION_STRSTR 1
3025 echo $ac_n "checking whether declaration is required for malloc""... $ac_c" 1>&6
3026 echo "configure:3022: checking whether declaration is required for malloc" >&5
3027 if eval "test \"`echo '$''{'gas_cv_decl_needed_malloc'+set}'`\" = set"; then
3028 echo $ac_n "(cached) $ac_c" 1>&6
3030 cat > conftest.
$ac_ext <<EOF
3031 #line 3027 "configure"
3032 #include "confdefs.h"
3036 typedef char *(*f)();
3042 if { (eval echo configure
:3038: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3044 gas_cv_decl_needed_malloc
=no
3046 echo "configure: failed program was:" >&5
3047 cat conftest.
$ac_ext >&5
3049 gas_cv_decl_needed_malloc
=yes
3053 echo "$ac_t""$gas_cv_decl_needed_malloc" 1>&6
3054 test $gas_cv_decl_needed_malloc = no ||
{
3055 cat >> confdefs.h
<<\EOF
3056 #define NEED_DECLARATION_MALLOC 1
3062 echo $ac_n "checking whether declaration is required for free""... $ac_c" 1>&6
3063 echo "configure:3059: checking whether declaration is required for free" >&5
3064 if eval "test \"`echo '$''{'gas_cv_decl_needed_free'+set}'`\" = set"; then
3065 echo $ac_n "(cached) $ac_c" 1>&6
3067 cat > conftest.
$ac_ext <<EOF
3068 #line 3064 "configure"
3069 #include "confdefs.h"
3073 typedef void (*f)();
3079 if { (eval echo configure
:3075: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3081 gas_cv_decl_needed_free
=no
3083 echo "configure: failed program was:" >&5
3084 cat conftest.
$ac_ext >&5
3086 gas_cv_decl_needed_free
=yes
3090 echo "$ac_t""$gas_cv_decl_needed_free" 1>&6
3091 test $gas_cv_decl_needed_free = no ||
{
3092 cat >> confdefs.h
<<\EOF
3093 #define NEED_DECLARATION_FREE 1
3099 echo $ac_n "checking whether declaration is required for sbrk""... $ac_c" 1>&6
3100 echo "configure:3096: checking whether declaration is required for sbrk" >&5
3101 if eval "test \"`echo '$''{'gas_cv_decl_needed_sbrk'+set}'`\" = set"; then
3102 echo $ac_n "(cached) $ac_c" 1>&6
3104 cat > conftest.
$ac_ext <<EOF
3105 #line 3101 "configure"
3106 #include "confdefs.h"
3110 typedef char *(*f)();
3116 if { (eval echo configure
:3112: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3118 gas_cv_decl_needed_sbrk
=no
3120 echo "configure: failed program was:" >&5
3121 cat conftest.
$ac_ext >&5
3123 gas_cv_decl_needed_sbrk
=yes
3127 echo "$ac_t""$gas_cv_decl_needed_sbrk" 1>&6
3128 test $gas_cv_decl_needed_sbrk = no ||
{
3129 cat >> confdefs.h
<<\EOF
3130 #define NEED_DECLARATION_SBRK 1
3136 # Does errno.h declare errno, or do we have to add a separate declaration
3139 echo $ac_n "checking whether declaration is required for errno""... $ac_c" 1>&6
3140 echo "configure:3136: checking whether declaration is required for errno" >&5
3141 if eval "test \"`echo '$''{'gas_cv_decl_needed_errno'+set}'`\" = set"; then
3142 echo $ac_n "(cached) $ac_c" 1>&6
3144 cat > conftest.
$ac_ext <<EOF
3145 #line 3141 "configure"
3146 #include "confdefs.h"
3160 if { (eval echo configure
:3156: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3162 gas_cv_decl_needed_errno
=no
3164 echo "configure: failed program was:" >&5
3165 cat conftest.
$ac_ext >&5
3167 gas_cv_decl_needed_errno
=yes
3171 echo "$ac_t""$gas_cv_decl_needed_errno" 1>&6
3172 test $gas_cv_decl_needed_errno = no ||
{
3173 cat >> confdefs.h
<<\EOF
3174 #define NEED_DECLARATION_ERRNO 1
3183 cat > confcache
<<\EOF
3184 # This file is a shell script that caches the results of configure
3185 # tests run on this system so they can be shared between configure
3186 # scripts and configure runs. It is not useful on other systems.
3187 # If it contains results you don't want to keep, you may remove or edit it.
3189 # By default, configure uses ./config.cache as the cache file,
3190 # creating it if it does not exist already. You can give configure
3191 # the --cache-file=FILE option to use a different cache file; that is
3192 # what configure does when it calls configure scripts in
3193 # subdirectories, so they share the cache.
3194 # Giving --cache-file=/dev/null disables caching, for debugging configure.
3195 # config.status only pays attention to the cache file if you give it the
3196 # --recheck option to rerun configure.
3199 # The following way of writing the cache mishandles newlines in values,
3200 # but we know of no workaround that is simple, portable, and efficient.
3201 # So, don't put newlines in cache variables' values.
3202 # Ultrix sh set writes to stderr and can't be redirected directly,
3203 # and sets the high bit in the cache file unless we assign to the vars.
3205 case `(ac_space=' '; set) 2>&1` in
3207 # `set' does not quote correctly, so add quotes (double-quote substitution
3208 # turns \\\\ into \\, and sed turns \\ into \).
3210 -e "s/'/'\\\\''/g" \
3211 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3214 # `set' quotes correctly as required by POSIX, so do not add quotes.
3215 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3218 if cmp -s $cache_file confcache
; then
3221 if test -w $cache_file; then
3222 echo "updating cache $cache_file"
3223 cat confcache
> $cache_file
3225 echo "not updating unwritable cache $cache_file"
3230 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3232 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
3233 # Let make expand exec_prefix.
3234 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
3236 # Any assignment to VPATH causes Sun make to only execute
3237 # the first set of double-colon rules, so remove it if not needed.
3238 # If there is a colon in the path, we need to keep it.
3239 if test "x$srcdir" = x.
; then
3240 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
3243 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3245 DEFS
=-DHAVE_CONFIG_H
3247 # Without the "./", some shells look in PATH for config.status.
3248 : ${CONFIG_STATUS=./config.status}
3250 echo creating
$CONFIG_STATUS
3251 rm -f $CONFIG_STATUS
3252 cat > $CONFIG_STATUS <<EOF
3254 # Generated automatically by configure.
3255 # Run this file to recreate the current configuration.
3256 # This directory was configured as follows,
3257 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3259 # $0 $ac_configure_args
3261 # Compiler output produced by configure, useful for debugging
3262 # configure, is in ./config.log if it exists.
3264 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3267 case "\$ac_option" in
3268 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3269 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3270 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3271 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3272 echo "$CONFIG_STATUS generated by autoconf version 2.12.1"
3274 -help | --help | --hel | --he | --h)
3275 echo "\$ac_cs_usage"; exit 0 ;;
3276 *) echo "\$ac_cs_usage"; exit 1 ;;
3280 ac_given_srcdir=$srcdir
3281 ac_given_INSTALL="$INSTALL"
3283 trap 'rm -fr `echo "Makefile doc/Makefile .gdbinit:gdbinit.in config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3285 cat >> $CONFIG_STATUS <<EOF
3287 # Protect against being on the right side of a sed subst in config.status.
3288 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3289 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3292 s%@CFLAGS@%$CFLAGS%g
3293 s%@CPPFLAGS@%$CPPFLAGS%g
3294 s%@CXXFLAGS@%$CXXFLAGS%g
3296 s%@LDFLAGS@%$LDFLAGS%g
3298 s%@exec_prefix@%$exec_prefix%g
3299 s%@prefix@%$prefix%g
3300 s%@program_transform_name@%$program_transform_name%g
3301 s%@bindir@%$bindir%g
3302 s%@sbindir@%$sbindir%g
3303 s%@libexecdir@%$libexecdir%g
3304 s%@datadir@%$datadir%g
3305 s%@sysconfdir@%$sysconfdir%g
3306 s%@sharedstatedir@%$sharedstatedir%g
3307 s%@localstatedir@%$localstatedir%g
3308 s%@libdir@%$libdir%g
3309 s%@includedir@%$includedir%g
3310 s%@oldincludedir@%$oldincludedir%g
3311 s%@infodir@%$infodir%g
3312 s%@mandir@%$mandir%g
3314 s%@host_alias@%$host_alias%g
3315 s%@host_cpu@%$host_cpu%g
3316 s%@host_vendor@%$host_vendor%g
3317 s%@host_os@%$host_os%g
3318 s%@target@%$target%g
3319 s%@target_alias@%$target_alias%g
3320 s%@target_cpu@%$target_cpu%g
3321 s%@target_vendor@%$target_vendor%g
3322 s%@target_os@%$target_os%g
3324 s%@build_alias@%$build_alias%g
3325 s%@build_cpu@%$build_cpu%g
3326 s%@build_vendor@%$build_vendor%g
3327 s%@build_os@%$build_os%g
3328 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3329 s%@INSTALL_DATA@%$INSTALL_DATA%g
3330 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
3331 s%@PACKAGE@%$PACKAGE%g
3332 s%@VERSION@%$VERSION%g
3333 s%@ACLOCAL@%$ACLOCAL%g
3334 s%@AUTOCONF@%$AUTOCONF%g
3335 s%@AUTOMAKE@%$AUTOMAKE%g
3336 s%@AUTOHEADER@%$AUTOHEADER%g
3337 s%@MAKEINFO@%$MAKEINFO%g
3338 s%@SET_MAKE@%$SET_MAKE%g
3340 s%@RANLIB@%$RANLIB%g
3343 s%@LIBTOOL@%$LIBTOOL%g
3344 s%@extra_objects@%$extra_objects%g
3345 s%@target_cpu_type@%$target_cpu_type%g
3346 s%@obj_format@%$obj_format%g
3347 s%@te_file@%$te_file%g
3349 s%@BFDLIB@%$BFDLIB%g
3350 s%@OPCODES_LIB@%$OPCODES_LIB%g
3351 s%@ALL_OBJ_DEPS@%$ALL_OBJ_DEPS%g
3354 s%@LEXLIB@%$LEXLIB%g
3356 s%@LEX_OUTPUT_ROOT@%$LEX_OUTPUT_ROOT%g
3358 s%@EXEEXT@%$EXEEXT%g
3359 s%@ALLOCA@%$ALLOCA%g
3364 cat >> $CONFIG_STATUS <<\EOF
3366 # Split the substitutions into bite-sized pieces for seds with
3367 # small command number limits, like on Digital OSF/1 and HP-UX.
3368 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
3369 ac_file
=1 # Number of current file.
3370 ac_beg
=1 # First line for current file.
3371 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
3374 while $ac_more_lines; do
3375 if test $ac_beg -gt 1; then
3376 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
3378 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
3380 if test ! -s conftest.s
$ac_file; then
3382 rm -f conftest.s
$ac_file
3384 if test -z "$ac_sed_cmds"; then
3385 ac_sed_cmds
="sed -f conftest.s$ac_file"
3387 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
3389 ac_file
=`expr $ac_file + 1`
3391 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
3394 if test -z "$ac_sed_cmds"; then
3399 cat >> $CONFIG_STATUS <<EOF
3401 CONFIG_FILES=\${CONFIG_FILES-"Makefile doc/Makefile .gdbinit:gdbinit.in"}
3403 cat >> $CONFIG_STATUS <<\EOF
3404 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
3405 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3407 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
3408 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
3409 *) ac_file_in
="${ac_file}.in" ;;
3412 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3414 # Remove last slash and all that follows it. Not all systems have dirname.
3415 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3416 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
3417 # The file is in a subdirectory.
3418 test ! -d "$ac_dir" && mkdir
"$ac_dir"
3419 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
3420 # A "../" for each directory in $ac_dir_suffix.
3421 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3423 ac_dir_suffix
= ac_dots
=
3426 case "$ac_given_srcdir" in
3428 if test -z "$ac_dots"; then top_srcdir
=.
3429 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3430 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
3432 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3433 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
3436 case "$ac_given_INSTALL" in
3437 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
3438 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
3441 echo creating
"$ac_file"
3443 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3445 *Makefile
*) ac_comsub
="1i\\
3446 # $configure_input" ;;
3450 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3452 s%@configure_input@%$configure_input%g
3453 s%@srcdir@%$srcdir%g
3454 s%@top_srcdir@%$top_srcdir%g
3455 s%@INSTALL@%$INSTALL%g
3456 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
3460 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3461 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3463 # ac_d sets the value in "#define NAME VALUE" lines.
3464 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3465 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
3468 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3469 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3470 ac_uB
='\([ ]\)%\1#\2define\3'
3473 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3474 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3475 ac_eB
='$%\1#\2define\3'
3479 if test "${CONFIG_HEADERS+set}" != set; then
3481 cat >> $CONFIG_STATUS <<EOF
3482 CONFIG_HEADERS="config.h:config.in"
3484 cat >> $CONFIG_STATUS <<\EOF
3486 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
3487 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3489 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
3490 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
3491 *) ac_file_in
="${ac_file}.in" ;;
3494 echo creating
$ac_file
3496 rm -f conftest.frag conftest.
in conftest.out
3497 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3498 cat $ac_file_inputs > conftest.
in
3502 # Transform confdefs.h into a sed script conftest.vals that substitutes
3503 # the proper values into config.h.in to produce config.h. And first:
3504 # Protect against being on the right side of a sed subst in config.status.
3505 # Protect against being in an unquoted here document in config.status.
3507 cat > conftest.hdr
<<\EOF
3510 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3514 sed -n -f conftest.hdr confdefs.h > conftest.vals
3517 # This sed command replaces #undef with comments. This is necessary, for
3518 # example, in the case of _POSIX_SOURCE, which is predefined and required
3519 # on some systems where configure will not decide to define it.
3520 cat >> conftest.vals <<\EOF
3521 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3524 # Break up conftest.vals because some shells have a limit on
3525 # the size of here documents, and old seds have small limits too.
3530 ac_lines=`grep -c . conftest.vals
`
3531 # grep -c gives empty output for an empty file on some AIX systems.
3532 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3533 # Write a limited-size here document to conftest.frag.
3534 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3535 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3537 sed -f conftest.frag conftest.in > conftest.out
3539 mv conftest.out conftest.in
3541 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3543 mv conftest.tail conftest.vals
3547 cat >> $CONFIG_STATUS <<\EOF
3548 rm -f conftest.frag conftest.h
3549 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3550 cat conftest.in >> conftest.h
3552 if cmp -s $ac_file conftest.h 2>/dev/null; then
3553 echo "$ac_file is unchanged"
3556 # Remove last slash and all that follows it. Not all systems have dirname.
3557 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
3558 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3559 # The file is in a subdirectory.
3560 test ! -d "$ac_dir" && mkdir "$ac_dir"
3563 mv conftest.h $ac_file
3568 cat >> $CONFIG_STATUS <<EOF
3570 target_cpu_type=${target_cpu_type}
3571 obj_format=${obj_format}
3574 cat >> $CONFIG_STATUS <<\EOF
3575 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
3576 rm -f targ-cpu.c targ-cpu.h obj-format.h obj-format.c targ-env.h atof-targ.c itbl-cpu.h
3577 echo '#include "tc-'"${target_cpu_type}"'.h"' > targ-cpu.h
3578 echo '#include "obj-'"${obj_format}"'.h"' > obj-format.h
3579 echo '#include "te-'"${te_file}"'.h"' > targ-env.h
3580 echo '#include "itbl-'"${target_cpu_type}"'.h"' > itbl-cpu.h
3581 case ${target_cpu_type} in
3582 m32r) echo '#include "opcodes/'"${target_cpu_type}"'-opc.h"' > cgen-opc.h ;;
3586 chmod +x $CONFIG_STATUS
3587 rm -fr confdefs* $ac_clean_files
3588 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1