3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
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 --enable-shared[=PKGS] build shared libraries [default=yes]"
17 --enable-static[=PKGS] build static libraries [default=yes]"
19 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
21 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
23 --disable-libtool-lock force libtool not to do file locking"
25 --enable-bfd-assembler use BFD back end for writing object files"
27 targets alternative target configurations besides the primary"
29 --enable-commonbfdlib build shared BFD/opcodes/libiberty library"
31 --disable-nls do not use Native Language Support"
33 --with-included-gettext use the GNU gettext library included here"
35 --enable-maintainer-mode enable make rules and dependencies not useful
36 (and sometimes confusing) to the casual installer"
38 # Initialize some variables set by options.
39 # The variables have the same names as the options, with
40 # dashes changed to underlines.
42 cache_file
=.
/config.cache
51 program_transform_name
=s
,x
,x
,
59 bindir
='${exec_prefix}/bin'
60 sbindir
='${exec_prefix}/sbin'
61 libexecdir
='${exec_prefix}/libexec'
62 datadir
='${prefix}/share'
63 sysconfdir
='${prefix}/etc'
64 sharedstatedir
='${prefix}/com'
65 localstatedir
='${prefix}/var'
66 libdir
='${exec_prefix}/lib'
67 includedir
='${prefix}/include'
68 oldincludedir
='/usr/include'
69 infodir
='${prefix}/info'
70 mandir
='${prefix}/man'
72 # Initialize some other variables.
75 SHELL
=${CONFIG_SHELL-/bin/sh}
76 # Maximum number of lines to put in a shell here document.
83 # If the previous option needs an argument, assign it.
84 if test -n "$ac_prev"; then
85 eval "$ac_prev=\$ac_option"
91 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
95 # Accept the important Cygnus configure options, so we can diagnose typos.
99 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
101 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
102 bindir
="$ac_optarg" ;;
104 -build |
--build |
--buil |
--bui |
--bu)
106 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
107 build
="$ac_optarg" ;;
109 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
110 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
111 ac_prev
=cache_file
;;
112 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
113 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
114 cache_file
="$ac_optarg" ;;
116 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
118 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
120 datadir
="$ac_optarg" ;;
122 -disable-* |
--disable-*)
123 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
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'`
129 eval "enable_${ac_feature}=no" ;;
131 -enable-* |
--enable-*)
132 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
133 # Reject names that are not valid shell variable names.
134 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
135 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
137 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
142 eval "enable_${ac_feature}='$ac_optarg'" ;;
144 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
145 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
146 |
--exec |
--exe |
--ex)
147 ac_prev
=exec_prefix
;;
148 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
149 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
150 |
--exec=* |
--exe=* |
--ex=*)
151 exec_prefix
="$ac_optarg" ;;
153 -gas |
--gas |
--ga |
--g)
154 # Obsolete; use --with-gas.
157 -help |
--help |
--hel |
--he)
158 # Omit some internal or obsolete options to make the list less imposing.
159 # This message is too long to be a string in the A/UX 3.1 sh.
161 Usage: configure [options] [host]
162 Options: [defaults in brackets after descriptions]
164 --cache-file=FILE cache test results in FILE
165 --help print this message
166 --no-create do not create output files
167 --quiet, --silent do not print \`checking...' messages
168 --version print the version of autoconf that created configure
169 Directory and file names:
170 --prefix=PREFIX install architecture-independent files in PREFIX
172 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
174 --bindir=DIR user executables in DIR [EPREFIX/bin]
175 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
176 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
177 --datadir=DIR read-only architecture-independent data in DIR
179 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
180 --sharedstatedir=DIR modifiable architecture-independent data in DIR
182 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
183 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
184 --includedir=DIR C header files in DIR [PREFIX/include]
185 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
186 --infodir=DIR info documentation in DIR [PREFIX/info]
187 --mandir=DIR man documentation in DIR [PREFIX/man]
188 --srcdir=DIR find the sources in DIR [configure dir or ..]
189 --program-prefix=PREFIX prepend PREFIX to installed program names
190 --program-suffix=SUFFIX append SUFFIX to installed program names
191 --program-transform-name=PROGRAM
192 run sed PROGRAM on installed program names
196 --build=BUILD configure for building on BUILD [BUILD=HOST]
197 --host=HOST configure for HOST [guessed]
198 --target=TARGET configure for TARGET [TARGET=HOST]
199 Features and packages:
200 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
201 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
202 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
203 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
204 --x-includes=DIR X include files are in DIR
205 --x-libraries=DIR X library files are in DIR
207 if test -n "$ac_help"; then
208 echo "--enable and --with options recognized:$ac_help"
212 -host |
--host |
--hos |
--ho)
214 -host=* |
--host=* |
--hos=* |
--ho=*)
217 -includedir |
--includedir |
--includedi |
--included |
--include \
218 |
--includ |
--inclu |
--incl |
--inc)
219 ac_prev
=includedir
;;
220 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
221 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
222 includedir
="$ac_optarg" ;;
224 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
226 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
227 infodir
="$ac_optarg" ;;
229 -libdir |
--libdir |
--libdi |
--libd)
231 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
232 libdir
="$ac_optarg" ;;
234 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
235 |
--libexe |
--libex |
--libe)
236 ac_prev
=libexecdir
;;
237 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
238 |
--libexe=* |
--libex=* |
--libe=*)
239 libexecdir
="$ac_optarg" ;;
241 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
242 |
--localstate |
--localstat |
--localsta |
--localst \
243 |
--locals |
--local |
--loca |
--loc |
--lo)
244 ac_prev
=localstatedir
;;
245 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
246 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
247 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
248 localstatedir
="$ac_optarg" ;;
250 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
252 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
253 mandir
="$ac_optarg" ;;
256 # Obsolete; use --without-fp.
259 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
263 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
264 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
267 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
268 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
269 |
--oldin |
--oldi |
--old |
--ol |
--o)
270 ac_prev
=oldincludedir
;;
271 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
272 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
273 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
274 oldincludedir
="$ac_optarg" ;;
276 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
278 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
279 prefix
="$ac_optarg" ;;
281 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
282 |
--program-pre |
--program-pr |
--program-p)
283 ac_prev
=program_prefix
;;
284 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
285 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
286 program_prefix
="$ac_optarg" ;;
288 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
289 |
--program-suf |
--program-su |
--program-s)
290 ac_prev
=program_suffix
;;
291 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
292 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
293 program_suffix
="$ac_optarg" ;;
295 -program-transform-name |
--program-transform-name \
296 |
--program-transform-nam |
--program-transform-na \
297 |
--program-transform-n |
--program-transform- \
298 |
--program-transform |
--program-transfor \
299 |
--program-transfo |
--program-transf \
300 |
--program-trans |
--program-tran \
301 |
--progr-tra |
--program-tr |
--program-t)
302 ac_prev
=program_transform_name
;;
303 -program-transform-name=* |
--program-transform-name=* \
304 |
--program-transform-nam=* |
--program-transform-na=* \
305 |
--program-transform-n=* |
--program-transform-=* \
306 |
--program-transform=* |
--program-transfor=* \
307 |
--program-transfo=* |
--program-transf=* \
308 |
--program-trans=* |
--program-tran=* \
309 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
310 program_transform_name
="$ac_optarg" ;;
312 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
313 |
-silent |
--silent |
--silen |
--sile |
--sil)
316 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
318 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
320 sbindir
="$ac_optarg" ;;
322 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
323 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
324 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
326 ac_prev
=sharedstatedir
;;
327 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
328 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
329 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
331 sharedstatedir
="$ac_optarg" ;;
333 -site |
--site |
--sit)
335 -site=* |
--site=* |
--sit=*)
338 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
340 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
341 srcdir
="$ac_optarg" ;;
343 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
344 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
345 ac_prev
=sysconfdir
;;
346 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
347 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
348 sysconfdir
="$ac_optarg" ;;
350 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
352 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
353 target
="$ac_optarg" ;;
355 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
358 -version |
--version |
--versio |
--versi |
--vers)
359 echo "configure generated by autoconf version 2.13"
363 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
364 # Reject names that are not valid shell variable names.
365 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
366 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
368 ac_package
=`echo $ac_package| sed 's/-/_/g'`
373 eval "with_${ac_package}='$ac_optarg'" ;;
375 -without-* |
--without-*)
376 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
377 # Reject names that are not valid shell variable names.
378 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
379 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
381 ac_package
=`echo $ac_package| sed 's/-/_/g'`
382 eval "with_${ac_package}=no" ;;
385 # Obsolete; use --with-x.
388 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
389 |
--x-incl |
--x-inc |
--x-in |
--x-i)
390 ac_prev
=x_includes
;;
391 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
392 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
393 x_includes
="$ac_optarg" ;;
395 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
396 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
397 ac_prev
=x_libraries
;;
398 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
399 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
400 x_libraries
="$ac_optarg" ;;
402 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
406 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
407 echo "configure: warning: $ac_option: invalid host type" 1>&2
409 if test "x$nonopt" != xNONE
; then
410 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
418 if test -n "$ac_prev"; then
419 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
422 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
424 # File descriptor usage:
427 # 2 errors and warnings
428 # 3 some systems may open it to /dev/tty
429 # 4 used on the Kubota Titan
430 # 6 checking for... messages and results
431 # 5 compiler messages saved in config.log
432 if test "$silent" = yes; then
440 This file contains any messages produced by compilers while
441 running configure, to aid debugging if configure makes a mistake.
444 # Strip out --no-create and --no-recursion so they do not pile up.
445 # Also quote any args containing shell metacharacters.
450 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
451 |
--no-cr |
--no-c) ;;
452 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
453 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
454 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
455 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
456 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
461 # Only set these to C if already set. These must not be set unconditionally
462 # because not all systems understand e.g. LANG=C (notably SCO).
463 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
464 # Non-C LC_CTYPE values break the ctype check.
465 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
466 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
467 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
468 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
470 # confdefs.h avoids OS command line length limits that DEFS can exceed.
471 rm -rf conftest
* confdefs.h
472 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
475 # A filename unique to this package, relative to the directory that
476 # configure is in, which we can look for to find out if srcdir is correct.
479 # Find the source files, if location was not specified.
480 if test -z "$srcdir"; then
481 ac_srcdir_defaulted
=yes
482 # Try the directory containing this script, then its parent.
484 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
485 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
487 if test ! -r $srcdir/$ac_unique_file; then
491 ac_srcdir_defaulted
=no
493 if test ! -r $srcdir/$ac_unique_file; then
494 if test "$ac_srcdir_defaulted" = yes; then
495 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
497 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
500 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
502 # Prefer explicitly selected file to automatically selected ones.
503 if test -z "$CONFIG_SITE"; then
504 if test "x$prefix" != xNONE
; then
505 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
507 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
510 for ac_site_file
in $CONFIG_SITE; do
511 if test -r "$ac_site_file"; then
512 echo "loading site script $ac_site_file"
517 if test -r "$cache_file"; then
518 echo "loading cache $cache_file"
521 echo "creating cache $cache_file"
526 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
527 ac_cpp
='$CPP $CPPFLAGS'
528 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
529 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
530 cross_compiling
=$ac_cv_prog_cc_cross
534 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
535 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
536 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
543 ac_n
= ac_c
='\c' ac_t
=
549 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
550 if test -f $ac_dir/install-sh
; then
552 ac_install_sh
="$ac_aux_dir/install-sh -c"
554 elif test -f $ac_dir/install.sh
; then
556 ac_install_sh
="$ac_aux_dir/install.sh -c"
560 if test -z "$ac_aux_dir"; then
561 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
563 ac_config_guess
=$ac_aux_dir/config.guess
564 ac_config_sub
=$ac_aux_dir/config.sub
565 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
568 # Do some error checking and defaulting for the host and target type.
570 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
573 # 1. You are not allowed to specify --host, --target, and nonopt at the
575 # 2. Host defaults to nonopt.
576 # 3. If nonopt is not specified, then host defaults to the current host,
577 # as determined by config.guess.
578 # 4. Target and build default to nonopt.
579 # 5. If nonopt is not specified, then target and build default to host.
581 # The aliases save the names the user supplied, while $host etc.
582 # will get canonicalized.
583 case $host---$target---$nonopt in
584 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
585 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
589 # Make sure we can run config.sub.
590 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
591 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
594 echo $ac_n "checking host system type""... $ac_c" 1>&6
595 echo "configure:596: checking host system type" >&5
598 case "$host_alias" in
602 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
603 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
605 *) host_alias
=$nonopt ;;
609 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
610 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
611 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
612 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
613 echo "$ac_t""$host" 1>&6
615 echo $ac_n "checking target system type""... $ac_c" 1>&6
616 echo "configure:617: checking target system type" >&5
619 case "$target_alias" in
622 NONE
) target_alias
=$host_alias ;;
623 *) target_alias
=$nonopt ;;
627 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
628 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
629 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
630 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
631 echo "$ac_t""$target" 1>&6
633 echo $ac_n "checking build system type""... $ac_c" 1>&6
634 echo "configure:635: checking build system type" >&5
637 case "$build_alias" in
640 NONE
) build_alias
=$host_alias ;;
641 *) build_alias
=$nonopt ;;
645 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
646 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
647 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
648 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
649 echo "$ac_t""$build" 1>&6
651 test "$host_alias" != "$target_alias" &&
652 test "$program_prefix$program_suffix$program_transform_name" = \
654 program_prefix
=${target_alias}-
657 # Find a good install program. We prefer a C program (faster),
658 # so one script is as good as another. But avoid the broken or
659 # incompatible versions:
660 # SysV /etc/install, /usr/sbin/install
661 # SunOS /usr/etc/install
664 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
665 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
666 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
667 # ./install, which can be erroneously created by make from ./install.sh.
668 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
669 echo "configure:670: checking for a BSD compatible install" >&5
670 if test -z "$INSTALL"; then
671 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
672 echo $ac_n "(cached) $ac_c" 1>&6
674 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
675 for ac_dir
in $PATH; do
676 # Account for people who put trailing slashes in PATH elements.
678 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
680 # OSF1 and SCO ODT 3.0 have their own names for install.
681 # Don't use installbsd from OSF since it installs stuff as root
683 for ac_prog
in ginstall scoinst
install; do
684 if test -f $ac_dir/$ac_prog; then
685 if test $ac_prog = install &&
686 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
687 # AIX install. It has an incompatible calling convention.
690 ac_cv_path_install
="$ac_dir/$ac_prog -c"
701 if test "${ac_cv_path_install+set}" = set; then
702 INSTALL
="$ac_cv_path_install"
704 # As a last resort, use the slow shell script. We don't cache a
705 # path for INSTALL within a source directory, because that will
706 # break other packages using the cache if that directory is
707 # removed, or if the path is relative.
708 INSTALL
="$ac_install_sh"
711 echo "$ac_t""$INSTALL" 1>&6
713 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
714 # It thinks the first close brace ends the variable substitution.
715 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
717 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
719 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
721 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
722 echo "configure:723: checking whether build environment is sane" >&5
725 echo timestamp
> conftestfile
726 # Do `set' in a subshell so we don't clobber the current shell's
727 # arguments. Must try -L first in case configure is actually a
728 # symlink; some systems play weird games with the mod time of symlinks
729 # (eg FreeBSD returns the mod time of the symlink's containing
732 set X
`ls -Lt $srcdir/configure conftestfile 2> /dev/null`
733 if test "$*" = "X"; then
735 set X
`ls -t $srcdir/configure conftestfile`
737 if test "$*" != "X $srcdir/configure conftestfile" \
738 && test "$*" != "X conftestfile $srcdir/configure"; then
740 # If neither matched, then we have a broken ls. This can happen
741 # if, for instance, CONFIG_SHELL is bash and it inherits a
742 # broken ls alias from the environment. This has actually
743 # happened. Such a system could not be considered "sane".
744 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
745 alias in your environment" 1>&2; exit 1; }
748 test "$2" = conftestfile
754 { echo "configure: error: newly created file is older than distributed files!
755 Check your system clock" 1>&2; exit 1; }
758 echo "$ac_t""yes" 1>&6
759 if test "$program_transform_name" = s
,x
,x
,; then
760 program_transform_name
=
762 # Double any \ or $. echo might interpret backslashes.
763 cat <<\EOF_SED
> conftestsed
764 s
,\\,\\\\,g
; s
,\$
,$$
,g
766 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
769 test "$program_prefix" != NONE
&&
770 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
771 # Use a double $ so make ignores it.
772 test "$program_suffix" != NONE
&&
773 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
775 # sed with no file args requires a program.
776 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
778 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
779 echo "configure:780: checking whether ${MAKE-make} sets \${MAKE}" >&5
780 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
781 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
782 echo $ac_n "(cached) $ac_c" 1>&6
784 cat > conftestmake
<<\EOF
786 @
echo 'ac_maketemp="${MAKE}"'
788 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
789 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
790 if test -n "$ac_maketemp"; then
791 eval ac_cv_prog_make_
${ac_make}_set
=yes
793 eval ac_cv_prog_make_
${ac_make}_set
=no
797 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
798 echo "$ac_t""yes" 1>&6
801 echo "$ac_t""no" 1>&6
802 SET_MAKE
="MAKE=${MAKE-make}"
810 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status
; then
811 { echo "configure: error: source directory already configured; run "make distclean
" there first" 1>&2; exit 1; }
813 cat >> confdefs.h
<<EOF
814 #define PACKAGE "$PACKAGE"
817 cat >> confdefs.h
<<EOF
818 #define VERSION "$VERSION"
823 missing_dir
=`cd $ac_aux_dir && pwd`
824 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
825 echo "configure:826: checking for working aclocal" >&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 (aclocal
--version) < /dev
/null
> /dev
/null
2>&1; then
831 echo "$ac_t""found" 1>&6
833 ACLOCAL
="$missing_dir/missing aclocal"
834 echo "$ac_t""missing" 1>&6
837 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
838 echo "configure:839: checking for working autoconf" >&5
839 # Run test in a subshell; some versions of sh will print an error if
840 # an executable is not found, even if stderr is redirected.
841 # Redirect stdin to placate older versions of autoconf. Sigh.
842 if (autoconf
--version) < /dev
/null
> /dev
/null
2>&1; then
844 echo "$ac_t""found" 1>&6
846 AUTOCONF
="$missing_dir/missing autoconf"
847 echo "$ac_t""missing" 1>&6
850 echo $ac_n "checking for working automake""... $ac_c" 1>&6
851 echo "configure:852: checking for working automake" >&5
852 # Run test in a subshell; some versions of sh will print an error if
853 # an executable is not found, even if stderr is redirected.
854 # Redirect stdin to placate older versions of autoconf. Sigh.
855 if (automake
--version) < /dev
/null
> /dev
/null
2>&1; then
857 echo "$ac_t""found" 1>&6
859 AUTOMAKE
="$missing_dir/missing automake"
860 echo "$ac_t""missing" 1>&6
863 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
864 echo "configure:865: checking for working autoheader" >&5
865 # Run test in a subshell; some versions of sh will print an error if
866 # an executable is not found, even if stderr is redirected.
867 # Redirect stdin to placate older versions of autoconf. Sigh.
868 if (autoheader
--version) < /dev
/null
> /dev
/null
2>&1; then
869 AUTOHEADER
=autoheader
870 echo "$ac_t""found" 1>&6
872 AUTOHEADER
="$missing_dir/missing autoheader"
873 echo "$ac_t""missing" 1>&6
876 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
877 echo "configure:878: checking for working makeinfo" >&5
878 # Run test in a subshell; some versions of sh will print an error if
879 # an executable is not found, even if stderr is redirected.
880 # Redirect stdin to placate older versions of autoconf. Sigh.
881 if (makeinfo
--version) < /dev
/null
> /dev
/null
2>&1; then
883 echo "$ac_t""found" 1>&6
885 MAKEINFO
="$missing_dir/missing makeinfo"
886 echo "$ac_t""missing" 1>&6
891 # Check whether --enable-shared or --disable-shared was given.
892 if test "${enable_shared+set}" = set; then
893 enableval
="$enable_shared"
896 yes) enable_shared
=yes ;;
897 no
) enable_shared
=no
;;
900 # Look at the argument we got. We use all the common list separators.
901 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
902 for pkg
in $enableval; do
903 if test "X$pkg" = "X$p"; then
914 # Check whether --enable-static or --disable-static was given.
915 if test "${enable_static+set}" = set; then
916 enableval
="$enable_static"
919 yes) enable_static
=yes ;;
920 no
) enable_static
=no
;;
923 # Look at the argument we got. We use all the common list separators.
924 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
925 for pkg
in $enableval; do
926 if test "X$pkg" = "X$p"; then
937 # Check whether --enable-fast-install or --disable-fast-install was given.
938 if test "${enable_fast_install+set}" = set; then
939 enableval
="$enable_fast_install"
942 yes) enable_fast_install
=yes ;;
943 no
) enable_fast_install
=no
;;
945 enable_fast_install
=no
946 # Look at the argument we got. We use all the common list separators.
947 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
948 for pkg
in $enableval; do
949 if test "X$pkg" = "X$p"; then
950 enable_fast_install
=yes
957 enable_fast_install
=yes
960 # Extract the first word of "ranlib", so it can be a program name with args.
961 set dummy ranlib
; ac_word
=$2
962 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
963 echo "configure:964: checking for $ac_word" >&5
964 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
965 echo $ac_n "(cached) $ac_c" 1>&6
967 if test -n "$RANLIB"; then
968 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
970 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
972 for ac_dir
in $ac_dummy; do
973 test -z "$ac_dir" && ac_dir
=.
974 if test -f $ac_dir/$ac_word; then
975 ac_cv_prog_RANLIB
="ranlib"
980 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
983 RANLIB
="$ac_cv_prog_RANLIB"
984 if test -n "$RANLIB"; then
985 echo "$ac_t""$RANLIB" 1>&6
987 echo "$ac_t""no" 1>&6
990 # Extract the first word of "gcc", so it can be a program name with args.
991 set dummy gcc
; ac_word
=$2
992 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
993 echo "configure:994: checking for $ac_word" >&5
994 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
995 echo $ac_n "(cached) $ac_c" 1>&6
997 if test -n "$CC"; then
998 ac_cv_prog_CC
="$CC" # Let the user override the test.
1000 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1002 for ac_dir
in $ac_dummy; do
1003 test -z "$ac_dir" && ac_dir
=.
1004 if test -f $ac_dir/$ac_word; then
1013 if test -n "$CC"; then
1014 echo "$ac_t""$CC" 1>&6
1016 echo "$ac_t""no" 1>&6
1019 if test -z "$CC"; then
1020 # Extract the first word of "cc", so it can be a program name with args.
1021 set dummy cc
; ac_word
=$2
1022 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1023 echo "configure:1024: checking for $ac_word" >&5
1024 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1025 echo $ac_n "(cached) $ac_c" 1>&6
1027 if test -n "$CC"; then
1028 ac_cv_prog_CC
="$CC" # Let the user override the test.
1030 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1033 for ac_dir
in $ac_dummy; do
1034 test -z "$ac_dir" && ac_dir
=.
1035 if test -f $ac_dir/$ac_word; then
1036 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1037 ac_prog_rejected
=yes
1045 if test $ac_prog_rejected = yes; then
1046 # We found a bogon in the path, so make sure we never use it.
1047 set dummy
$ac_cv_prog_CC
1049 if test $# -gt 0; then
1050 # We chose a different compiler from the bogus one.
1051 # However, it has the same basename, so the bogon will be chosen
1052 # first if we set CC to just the basename; use the full file name.
1054 set dummy
"$ac_dir/$ac_word" "$@"
1062 if test -n "$CC"; then
1063 echo "$ac_t""$CC" 1>&6
1065 echo "$ac_t""no" 1>&6
1068 if test -z "$CC"; then
1069 case "`uname -s`" in
1071 # Extract the first word of "cl", so it can be a program name with args.
1072 set dummy cl
; ac_word
=$2
1073 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1074 echo "configure:1075: checking for $ac_word" >&5
1075 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1076 echo $ac_n "(cached) $ac_c" 1>&6
1078 if test -n "$CC"; then
1079 ac_cv_prog_CC
="$CC" # Let the user override the test.
1081 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1083 for ac_dir
in $ac_dummy; do
1084 test -z "$ac_dir" && ac_dir
=.
1085 if test -f $ac_dir/$ac_word; then
1094 if test -n "$CC"; then
1095 echo "$ac_t""$CC" 1>&6
1097 echo "$ac_t""no" 1>&6
1102 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1105 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1106 echo "configure:1107: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1109 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1110 ac_cpp
='$CPP $CPPFLAGS'
1111 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1112 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1113 cross_compiling
=$ac_cv_prog_cc_cross
1115 cat > conftest.
$ac_ext << EOF
1117 #line 1118 "configure"
1118 #include "confdefs.h"
1122 if { (eval echo configure
:1123: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1123 ac_cv_prog_cc_works
=yes
1124 # If we can't run a trivial program, we are probably using a cross compiler.
1125 if (.
/conftest
; exit) 2>/dev
/null
; then
1126 ac_cv_prog_cc_cross
=no
1128 ac_cv_prog_cc_cross
=yes
1131 echo "configure: failed program was:" >&5
1132 cat conftest.
$ac_ext >&5
1133 ac_cv_prog_cc_works
=no
1137 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1138 ac_cpp
='$CPP $CPPFLAGS'
1139 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1140 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1141 cross_compiling
=$ac_cv_prog_cc_cross
1143 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1144 if test $ac_cv_prog_cc_works = no
; then
1145 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1147 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1148 echo "configure:1149: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1149 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1150 cross_compiling
=$ac_cv_prog_cc_cross
1152 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1153 echo "configure:1154: checking whether we are using GNU C" >&5
1154 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1155 echo $ac_n "(cached) $ac_c" 1>&6
1157 cat > conftest.c
<<EOF
1162 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1163: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1169 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1171 if test $ac_cv_prog_gcc = yes; then
1177 ac_test_CFLAGS
="${CFLAGS+set}"
1178 ac_save_CFLAGS
="$CFLAGS"
1180 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1181 echo "configure:1182: checking whether ${CC-cc} accepts -g" >&5
1182 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1183 echo $ac_n "(cached) $ac_c" 1>&6
1185 echo 'void f(){}' > conftest.c
1186 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1195 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1196 if test "$ac_test_CFLAGS" = set; then
1197 CFLAGS
="$ac_save_CFLAGS"
1198 elif test $ac_cv_prog_cc_g = yes; then
1199 if test "$GCC" = yes; then
1205 if test "$GCC" = yes; then
1212 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1213 if test "${with_gnu_ld+set}" = set; then
1214 withval
="$with_gnu_ld"
1215 test "$withval" = no || with_gnu_ld
=yes
1221 if test "$ac_cv_prog_gcc" = yes; then
1222 # Check if gcc -print-prog-name=ld gives a path.
1223 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1224 echo "configure:1225: checking for ld used by GCC" >&5
1225 ac_prog
=`($CC -print-prog-name=ld) 2>&5`
1227 # Accept absolute paths.
1228 /* |
[A-Za-z
]:[\\/]*)
1229 re_direlt
='/[^/][^/]*/\.\./'
1230 # Canonicalize the path of ld
1231 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
1232 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
1233 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
1235 test -z "$LD" && LD
="$ac_prog"
1238 # If it fails, then pretend we aren't using GCC.
1242 # If it is relative, then search for the first ld in PATH.
1246 elif test "$with_gnu_ld" = yes; then
1247 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1248 echo "configure:1249: checking for GNU ld" >&5
1250 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1251 echo "configure:1252: checking for non-GNU ld" >&5
1253 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1254 echo $ac_n "(cached) $ac_c" 1>&6
1256 if test -z "$LD"; then
1257 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1258 for ac_dir
in $PATH; do
1259 test -z "$ac_dir" && ac_dir
=.
1260 if test -f "$ac_dir/$ac_prog"; then
1261 ac_cv_path_LD
="$ac_dir/$ac_prog"
1262 # Check to see if the program is GNU ld. I'd rather use --version,
1263 # but apparently some GNU ld's only accept -v.
1264 # Break only if it was the GNU/non-GNU ld that we prefer.
1265 if "$ac_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
1266 test "$with_gnu_ld" != no
&& break
1268 test "$with_gnu_ld" != yes && break
1274 ac_cv_path_LD
="$LD" # Let the user override the test with a path.
1279 if test -n "$LD"; then
1280 echo "$ac_t""$LD" 1>&6
1282 echo "$ac_t""no" 1>&6
1284 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1286 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1287 echo "configure:1288: checking if the linker ($LD) is GNU ld" >&5
1288 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1289 echo $ac_n "(cached) $ac_c" 1>&6
1291 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1292 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
1293 ac_cv_prog_gnu_ld
=yes
1295 ac_cv_prog_gnu_ld
=no
1299 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1302 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1303 echo "configure:1304: checking for BSD-compatible nm" >&5
1304 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1305 echo $ac_n "(cached) $ac_c" 1>&6
1307 if test -n "$NM"; then
1308 # Let the user override the test.
1311 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1312 for ac_dir
in $PATH /usr
/ccs
/bin
/usr
/ucb
/bin
; do
1313 test -z "$ac_dir" && ac_dir
=.
1314 if test -f $ac_dir/nm
; then
1315 # Check to see if the nm accepts a BSD-compat flag.
1316 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1317 # nm: unknown option "B" ignored
1318 if ($ac_dir/nm
-B /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep /dev
/null
>/dev
/null
; then
1319 ac_cv_path_NM
="$ac_dir/nm -B"
1321 elif ($ac_dir/nm
-p /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep /dev
/null
>/dev
/null
; then
1322 ac_cv_path_NM
="$ac_dir/nm -p"
1325 ac_cv_path_NM
=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
1326 continue # so that we can try to find one that supports BSD flags
1331 test -z "$ac_cv_path_NM" && ac_cv_path_NM
=nm
1336 echo "$ac_t""$NM" 1>&6
1339 # Check for command to grab the raw symbol name followed by C symbol from nm.
1340 echo $ac_n "checking command to parse $NM output""... $ac_c" 1>&6
1341 echo "configure:1342: checking command to parse $NM output" >&5
1342 if eval "test \"`echo '$''{'ac_cv_sys_global_symbol_pipe'+set}'`\" = set"; then
1343 echo $ac_n "(cached) $ac_c" 1>&6
1345 # These are sane defaults that work on at least a few old systems.
1346 # {They come from Ultrix. What could be older than Ultrix?!! ;)}
1348 # Character class describing NM global symbol codes.
1349 ac_symcode
='[BCDEGRST]'
1351 # Regexp to match symbols that can be accessed directly from C.
1352 ac_sympat
='\([_A-Za-z][_A-Za-z0-9]*\)'
1354 # Transform the above into a raw symbol and a C symbol.
1355 ac_symxfrm
='\1 \2\3 \3'
1357 # Transform an extracted symbol line into a proper C declaration
1358 ac_global_symbol_to_cdecl
="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
1360 # Define system-specific variables.
1366 ac_symcode
='[ABCDGISTW]'
1369 ac_global_symbol_to_cdecl
="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^. .* \(.*\)$/extern char \1;/p'"
1372 ac_symcode
='[BCDEGRST]'
1379 # If we're using GNU nm, then use its standard symbol codes.
1380 if $NM -V 2>&1 |
egrep '(GNU|with BFD)' > /dev
/null
; then
1381 ac_symcode
='[ABCDGISTW]'
1384 # Try without a prefix undercore, then with it.
1385 for ac_symprfx
in "" "_"; do
1387 ac_cv_sys_global_symbol_pipe
="sed -n -e 's/^.* \($ac_symcode\) *\($ac_symprfx\)$ac_sympat$/$ac_symxfrm/p'"
1389 # Check to see that the pipe works correctly.
1391 rm -f conftest.
$ac_ext
1392 cat > conftest.
$ac_ext <<EOF
1397 void nm_test_func(){}
1401 int main(){nm_test_var='a';nm_test_func;return 0;}
1404 if { (eval echo configure
:1405: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1405 # Now try to grab the symbols.
1406 ac_nlist
=conftest.nm
1408 if { (eval echo configure
:1409: \"$NM conftest.
$ac_objext \|
$ac_cv_sys_global_symbol_pipe \
> $ac_nlist\") 1>&5; (eval $NM conftest.
$ac_objext \|
$ac_cv_sys_global_symbol_pipe \
> $ac_nlist) 2>&5; } && test -s "$ac_nlist"; then
1410 # Try sorting and uniquifying the output.
1411 if sort "$ac_nlist" |
uniq > "$ac_nlist"T
; then
1412 mv -f "$ac_nlist"T
"$ac_nlist"
1417 # Make sure that we snagged all the symbols we need.
1418 if egrep ' nm_test_var$' "$ac_nlist" >/dev
/null
; then
1419 if egrep ' nm_test_func$' "$ac_nlist" >/dev
/null
; then
1420 cat <<EOF > conftest.c
1426 # Now generate the symbol file.
1427 eval "$ac_global_symbol_to_cdecl"' < "$ac_nlist" >> conftest.c'
1429 cat <<EOF >> conftest.c
1430 #if defined (__STDC__) && __STDC__
1431 # define lt_ptr_t void *
1433 # define lt_ptr_t char *
1437 /* The mapping between symbol names and symbols. */
1442 lt_preloaded_symbols[] =
1445 sed 's/^. \(.*\) \(.*\)$/ {"\2", (lt_ptr_t) \&\2},/' < "$ac_nlist" >> conftest.c
1446 cat <<\EOF
>> conftest.c
1454 # Now try linking the two files.
1455 mv conftest.
$ac_objext conftestm.
$ac_objext
1456 ac_save_LIBS
="$LIBS"
1457 ac_save_CFLAGS
="$CFLAGS"
1458 LIBS
="conftestm.$ac_objext"
1459 CFLAGS
="$CFLAGS$no_builtin_flag"
1460 if { (eval echo configure
:1461: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1463 echo "configure: failed program was:" >&5
1466 LIBS
="$ac_save_LIBS"
1467 CFLAGS
="$ac_save_CFLAGS"
1469 echo "cannot find nm_test_func in $ac_nlist" >&5
1472 echo "cannot find nm_test_var in $ac_nlist" >&5
1475 echo "cannot run $ac_cv_sys_global_symbol_pipe" >&5
1478 echo "$progname: failed program was:" >&5
1483 # Do not use the global_symbol_pipe unless it works.
1484 if test "$ac_pipe_works" = yes; then
1485 if test x
"$ac_symprfx" = x
"_"; then
1486 ac_cv_sys_symbol_underscore
=yes
1488 ac_cv_sys_symbol_underscore
=no
1492 ac_cv_sys_global_symbol_pipe
=
1500 if test -z "$ac_cv_sys_global_symbol_pipe"; then
1503 echo "$ac_t""$ac_result" 1>&6
1505 echo $ac_n "checking for _ prefix in compiled symbols""... $ac_c" 1>&6
1506 echo "configure:1507: checking for _ prefix in compiled symbols" >&5
1507 if eval "test \"`echo '$''{'ac_cv_sys_symbol_underscore'+set}'`\" = set"; then
1508 echo $ac_n "(cached) $ac_c" 1>&6
1510 ac_cv_sys_symbol_underscore
=no
1511 cat > conftest.
$ac_ext <<EOF
1512 void nm_test_func(){}
1513 int main(){nm_test_func;return 0;}
1515 if { (eval echo configure
:1516: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1516 # Now try to grab the symbols.
1517 ac_nlist
=conftest.nm
1518 if { (eval echo configure
:1519: \"$NM conftest.
$ac_objext \|
$ac_cv_sys_global_symbol_pipe \
> $ac_nlist\") 1>&5; (eval $NM conftest.
$ac_objext \|
$ac_cv_sys_global_symbol_pipe \
> $ac_nlist) 2>&5; } && test -s "$ac_nlist"; then
1519 # See whether the symbols have a leading underscore.
1520 if egrep '^. _nm_test_func' "$ac_nlist" >/dev
/null
; then
1521 ac_cv_sys_symbol_underscore
=yes
1523 if egrep '^. nm_test_func ' "$ac_nlist" >/dev
/null
; then
1526 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
1530 echo "configure: cannot run $ac_cv_sys_global_symbol_pipe" >&5
1533 echo "configure: failed program was:" >&5
1540 echo "$ac_t""$ac_cv_sys_symbol_underscore" 1>&6
1541 USE_SYMBOL_UNDERSCORE
=${ac_cv_sys_symbol_underscore=no}
1543 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1544 echo "configure:1545: checking whether ln -s works" >&5
1545 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1546 echo $ac_n "(cached) $ac_c" 1>&6
1549 if ln -s X conftestdata
2>/dev
/null
1552 ac_cv_prog_LN_S
="ln -s"
1557 LN_S
="$ac_cv_prog_LN_S"
1558 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1559 echo "$ac_t""yes" 1>&6
1561 echo "$ac_t""no" 1>&6
1564 if test $host != $build; then
1565 ac_tool_prefix
=${host_alias}-
1571 # Check for any special flags to pass to ltconfig.
1572 libtool_flags
="--cache-file=$cache_file"
1573 test "$enable_shared" = no
&& libtool_flags
="$libtool_flags --disable-shared"
1574 test "$enable_static" = no
&& libtool_flags
="$libtool_flags --disable-static"
1575 test "$enable_fast_install" = no
&& libtool_flags
="$libtool_flags --disable-fast-install"
1576 test "$lt_dlopen" = yes && libtool_flags
="$libtool_flags --enable-dlopen"
1577 test "$silent" = yes && libtool_flags
="$libtool_flags --silent"
1578 test "$ac_cv_prog_gcc" = yes && libtool_flags
="$libtool_flags --with-gcc"
1579 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags
="$libtool_flags --with-gnu-ld"
1581 # Some flags need to be propagated to the compiler or linker for good
1585 # Find out which ABI we are using.
1586 echo '#line 1587 "configure"' > conftest.
$ac_ext
1587 if { (eval echo configure
:1588: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1588 case "`/usr/bin/file conftest.o`" in
1604 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1605 SAVE_CFLAGS
="$CFLAGS"
1606 CFLAGS
="$CFLAGS -belf"
1607 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
1608 echo "configure:1609: checking whether the C compiler needs -belf" >&5
1609 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
1610 echo $ac_n "(cached) $ac_c" 1>&6
1612 cat > conftest.
$ac_ext <<EOF
1613 #line 1614 "configure"
1614 #include "confdefs.h"
1620 if { (eval echo configure
:1621: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1622 lt_cv_cc_needs_belf
=yes
1624 echo "configure: failed program was:" >&5
1625 cat conftest.
$ac_ext >&5
1627 lt_cv_cc_needs_belf
=no
1632 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
1633 if test x
"$lt_cv_cc_needs_belf" != x
"yes"; then
1634 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1635 CFLAGS
="$SAVE_CFLAGS"
1640 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
1641 set dummy
${ac_tool_prefix}dlltool
; ac_word
=$2
1642 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1643 echo "configure:1644: checking for $ac_word" >&5
1644 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
1645 echo $ac_n "(cached) $ac_c" 1>&6
1647 if test -n "$DLLTOOL"; then
1648 ac_cv_prog_DLLTOOL
="$DLLTOOL" # Let the user override the test.
1650 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1652 for ac_dir
in $ac_dummy; do
1653 test -z "$ac_dir" && ac_dir
=.
1654 if test -f $ac_dir/$ac_word; then
1655 ac_cv_prog_DLLTOOL
="${ac_tool_prefix}dlltool"
1662 DLLTOOL
="$ac_cv_prog_DLLTOOL"
1663 if test -n "$DLLTOOL"; then
1664 echo "$ac_t""$DLLTOOL" 1>&6
1666 echo "$ac_t""no" 1>&6
1670 if test -z "$ac_cv_prog_DLLTOOL"; then
1671 if test -n "$ac_tool_prefix"; then
1672 # Extract the first word of "dlltool", so it can be a program name with args.
1673 set dummy dlltool
; ac_word
=$2
1674 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1675 echo "configure:1676: checking for $ac_word" >&5
1676 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
1677 echo $ac_n "(cached) $ac_c" 1>&6
1679 if test -n "$DLLTOOL"; then
1680 ac_cv_prog_DLLTOOL
="$DLLTOOL" # Let the user override the test.
1682 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1684 for ac_dir
in $ac_dummy; do
1685 test -z "$ac_dir" && ac_dir
=.
1686 if test -f $ac_dir/$ac_word; then
1687 ac_cv_prog_DLLTOOL
="dlltool"
1692 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL
="false"
1695 DLLTOOL
="$ac_cv_prog_DLLTOOL"
1696 if test -n "$DLLTOOL"; then
1697 echo "$ac_t""$DLLTOOL" 1>&6
1699 echo "$ac_t""no" 1>&6
1707 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1708 set dummy
${ac_tool_prefix}as
; ac_word
=$2
1709 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1710 echo "configure:1711: checking for $ac_word" >&5
1711 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1712 echo $ac_n "(cached) $ac_c" 1>&6
1714 if test -n "$AS"; then
1715 ac_cv_prog_AS
="$AS" # Let the user override the test.
1717 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1719 for ac_dir
in $ac_dummy; do
1720 test -z "$ac_dir" && ac_dir
=.
1721 if test -f $ac_dir/$ac_word; then
1722 ac_cv_prog_AS
="${ac_tool_prefix}as"
1730 if test -n "$AS"; then
1731 echo "$ac_t""$AS" 1>&6
1733 echo "$ac_t""no" 1>&6
1737 if test -z "$ac_cv_prog_AS"; then
1738 if test -n "$ac_tool_prefix"; then
1739 # Extract the first word of "as", so it can be a program name with args.
1740 set dummy as
; ac_word
=$2
1741 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1742 echo "configure:1743: checking for $ac_word" >&5
1743 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1744 echo $ac_n "(cached) $ac_c" 1>&6
1746 if test -n "$AS"; then
1747 ac_cv_prog_AS
="$AS" # Let the user override the test.
1749 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1751 for ac_dir
in $ac_dummy; do
1752 test -z "$ac_dir" && ac_dir
=.
1753 if test -f $ac_dir/$ac_word; then
1759 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS
="false"
1763 if test -n "$AS"; then
1764 echo "$ac_t""$AS" 1>&6
1766 echo "$ac_t""no" 1>&6
1779 # enable the --disable-libtool-lock switch
1781 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
1782 if test "${enable_libtool_lock+set}" = set; then
1783 enableval
="$enable_libtool_lock"
1784 need_locks
=$enableval
1790 if test x
"$need_locks" = xno
; then
1791 libtool_flags
="$libtool_flags --disable-lock"
1795 # Save cache, so that ltconfig can load it
1796 cat > confcache
<<\EOF
1797 # This file is a shell script that caches the results of configure
1798 # tests run on this system so they can be shared between configure
1799 # scripts and configure runs. It is not useful on other systems.
1800 # If it contains results you don't want to keep, you may remove or edit it.
1802 # By default, configure uses ./config.cache as the cache file,
1803 # creating it if it does not exist already. You can give configure
1804 # the --cache-file=FILE option to use a different cache file; that is
1805 # what configure does when it calls configure scripts in
1806 # subdirectories, so they share the cache.
1807 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1808 # config.status only pays attention to the cache file if you give it the
1809 # --recheck option to rerun configure.
1812 # The following way of writing the cache mishandles newlines in values,
1813 # but we know of no workaround that is simple, portable, and efficient.
1814 # So, don't put newlines in cache variables' values.
1815 # Ultrix sh set writes to stderr and can't be redirected directly,
1816 # and sets the high bit in the cache file unless we assign to the vars.
1818 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1820 # `set' does not quote correctly, so add quotes (double-quote substitution
1821 # turns \\\\ into \\, and sed turns \\ into \).
1823 -e "s/'/'\\\\''/g" \
1824 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1827 # `set' quotes correctly as required by POSIX, so do not add quotes.
1828 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1831 if cmp -s $cache_file confcache
; then
1834 if test -w $cache_file; then
1835 echo "updating cache $cache_file"
1836 cat confcache
> $cache_file
1838 echo "not updating unwritable cache $cache_file"
1844 # Actually configure libtool. ac_aux_dir is where install-sh is found.
1845 CC
="$CC" CFLAGS
="$CFLAGS" CPPFLAGS
="$CPPFLAGS" \
1846 LD
="$LD" NM
="$NM" RANLIB
="$RANLIB" LN_S
="$LN_S" \
1847 DLLTOOL
="$DLLTOOL" AS
="$AS" \
1848 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig
--no-reexec \
1849 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh
$host \
1850 ||
{ echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1852 # Reload cache, that may have been modified by ltconfig
1853 if test -r "$cache_file"; then
1854 echo "loading cache $cache_file"
1857 echo "creating cache $cache_file"
1862 # This can be used to rebuild libtool when needed
1863 LIBTOOL_DEPS
="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
1865 # Always use our own libtool.
1866 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
1868 # Redirect the config.log output again, so that the ltconfig log is not
1869 # clobbered by the next message.
1870 exec 5>>.
/config.log
1874 # Check whether --enable-bfd-assembler or --disable-bfd-assembler was given.
1875 if test "${enable_bfd_assembler+set}" = set; then
1876 enableval
="$enable_bfd_assembler"
1877 case "${enableval}" in
1878 yes) need_bfd
=yes user_bfd_gas
=yes ;;
1879 no
) user_bfd_gas
=no
;;
1880 *) { echo "configure: error: bad value ${enableval} given for bfd-assembler option" 1>&2; exit 1; } ;;
1883 # Check whether --enable-targets or --disable-targets was given.
1884 if test "${enable_targets+set}" = set; then
1885 enableval
="$enable_targets"
1886 case "${enableval}" in
1887 yes |
"") { echo "configure: error: enable-targets option must specify target names or 'all'" 1>&2; exit 1; }
1889 no
) enable_targets
= ;;
1890 *) enable_targets
=$enableval ;;
1893 # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
1894 if test "${enable_commonbfdlib+set}" = set; then
1895 enableval
="$enable_commonbfdlib"
1896 case "${enableval}" in
1897 yes) commonbfdlib
=true
;;
1898 no
) commonbfdlib
=false
;;
1899 *) { echo "configure: error: bad value ${enableval} for BFD commonbfdlib option" 1>&2; exit 1; } ;;
1905 # Generate a header file
1912 # Makefile target for installing gas in $(tooldir)/bin.
1913 install_tooldir
=install-exec-tooldir
1916 if test -n "$enable_targets" ; then
1917 for t
in `echo $enable_targets | sed 's/,/ /g'`; do
1918 result
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $t 2>/dev/null`
1919 if test -n "$result" ; then
1920 canon_targets
="$canon_targets $result"
1922 # # Permit "all", etc. We don't support it yet though.
1923 # canon_targets="$canon_targets $t"
1926 _gas_uniq_list
="$canon_targets"
1927 _gas_uniq_newlist
=""
1928 for _gas_uniq_i
in _gas_uniq_dummy
$_gas_uniq_list ; do
1929 case $_gas_uniq_i in
1931 *) case " $_gas_uniq_newlist " in
1932 *" $_gas_uniq_i "*) ;;
1933 *) _gas_uniq_newlist
="$_gas_uniq_newlist $_gas_uniq_i" ;;
1937 canon_targets
=$_gas_uniq_newlist
1943 for this_target
in $target $canon_targets ; do
1945 eval `echo $this_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/cpu=\1 vendor=\2 os=\3/'`
1947 # check for architecture variants
1951 alpha
*) cpu_type
=alpha
;;
1952 armeb
) cpu_type
=arm endian
=big
;;
1953 arm
*) cpu_type
=arm endian
=little
;;
1954 armb
*) cpu_type
=arm endian
=little
;;
1955 armv
*l
) cpu_type
=arm endian
=little
;;
1956 armv
*b
) cpu_type
=arm endian
=big
;;
1957 strongarm
*) cpu_type
=arm endian
=little
;;
1958 thumb
*) cpu_type
=arm endian
=little
;;
1959 hppa
*) cpu_type
=hppa
;;
1960 i
[456]86) cpu_type
=i386
;;
1961 m680
[012346]0) cpu_type
=m68k
;;
1962 m68008
) cpu_type
=m68k
;;
1963 m683??
) cpu_type
=m68k
;;
1964 m5200
) cpu_type
=m68k
;;
1965 m8
*) cpu_type
=m88k
;;
1966 mips
*el
) cpu_type
=mips endian
=little
;;
1967 mips
*) cpu_type
=mips endian
=big
;;
1968 powerpcle
*) cpu_type
=ppc endian
=little
;;
1969 powerpc
*) cpu_type
=ppc endian
=big
;;
1970 rs6000
*) cpu_type
=ppc
;;
1971 sparclite
*) cpu_type
=sparc arch
=sparclite
;;
1972 sparclet
*) cpu_type
=sparc arch
=sparclet
;;
1973 sparc64
*) cpu_type
=sparc arch
=v9-64
;;
1974 sparc86x
*) cpu_type
=sparc arch
=sparc86x
;;
1975 sparc
*) cpu_type
=sparc arch
=sparclite
;; # ??? See tc-sparc.c.
1976 v850
*) cpu_type
=v850
;;
1977 *) cpu_type
=${cpu} ;;
1980 if test ${this_target} = $target ; then
1981 target_cpu_type
=${cpu_type}
1982 elif test ${target_cpu_type} != ${cpu_type} ; then
1986 generic_target
=${cpu_type}-$vendor-$os
1991 # assign object format
1992 case ${generic_target} in
1993 a29k-
*-coff) fmt=coff
;;
1994 a29k-amd-udi
) fmt=coff
;;
1995 a29k-amd-ebmon
) fmt=coff
;;
1996 a29k-nyu-sym1
) fmt=coff
;;
1997 a29k-
*-vxworks*) fmt=coff
;;
1999 alpha
*-*-*vms
*) fmt=evax
;;
2000 alpha
*-*-netware*) fmt=ecoff
;;
2001 alpha
*-*-openbsd*) fmt=ecoff
;;
2002 alpha
*-*-osf*) fmt=ecoff
;;
2003 alpha
*-*-linuxecoff*) fmt=ecoff
;;
2004 alpha
*-*-linux-gnu*) fmt=elf em
=linux
;;
2005 alpha
*-*-netbsd*) fmt=elf em
=nbsd
;;
2007 arc-
*-elf*) fmt=elf bfd_gas
=yes ;;
2009 arm-
*-aout) fmt=aout
;;
2010 arm-
*-coff | thumb-
*-coff) fmt=coff
;;
2011 arm-
*-elf | thumb-
*-elf) fmt=elf
;;
2012 arm-
*-linux*aout
*) fmt=aout em
=linux
;;
2013 arm-
*-linux* | armv
*-*-linux-gnu) fmt=elf em
=linux
;;
2014 arm-
*-netbsd*) fmt=aout em
=nbsd bfd_gas
=yes ;;
2015 arm-
*-oabi | thumb-
*-oabi) fmt=elf
;;
2016 arm-epoc-pe | thumb-epoc-pe
) fmt=coff em
=epoc-pe
;;
2017 arm-
*-pe | thumb-
*-pe) fmt=coff em
=pe
;;
2018 arm-
*-riscix*) fmt=aout em
=riscix
;;
2020 d10v-
*-*) fmt=elf bfd_gas
=yes ;;
2021 d30v-
*-*) fmt=elf bfd_gas
=yes ;;
2024 fr30-
*-*) fmt=elf bfd_gas
=yes ;;
2026 hppa-
*-*elf
*) fmt=elf em
=hppa
;;
2027 hppa-
*-linux-gnu*) fmt=elf em
=hppa
;;
2028 hppa-
*-lites*) fmt=elf em
=hppa
;;
2029 hppa-
*-osf*) fmt=som em
=hppa
;;
2030 hppa-
*-rtems*) fmt=elf em
=hppa
;;
2031 hppa-
*-hpux*) fmt=som em
=hppa
;;
2032 hppa-
*-mpeix*) fmt=som em
=hppa
;;
2033 hppa-
*-bsd*) fmt=som em
=hppa
;;
2034 hppa-
*-hiux*) fmt=som em
=hppa
;;
2036 h8300-
*-coff) fmt=coff
;;
2038 i386-ibm-aix
*) fmt=coff em
=i386aix
;;
2039 i386-sequent-bsd
*) fmt=aout em
=dynix bfd_gas
=yes ;;
2040 i386-
*-beospe*) fmt=coff em
=pe bfd_gas
=yes ;;
2041 i386-
*-beoself* | i386-
*-beos*) fmt=elf bfd_gas
=yes ;;
2042 i386-
*-bsd*) fmt=aout em
=386bsd
;;
2043 i386-
*-netbsd0.8
) fmt=aout em
=386bsd
;;
2044 i386-
*-netbsd*) fmt=aout em
=nbsd bfd_gas
=yes;;
2045 i386-
*-openbsd*) fmt=aout em
=nbsd bfd_gas
=yes;;
2046 i386-
*-linux*aout
* | i386-
*-linuxoldld) fmt=aout em
=linux
;;
2047 i386-
*-linux*coff
*) fmt=coff em
=linux
;;
2048 i386-
*-linux-gnu*) fmt=elf em
=linux bfd_gas
=yes ;;
2049 i386-
*-lynxos*) fmt=coff em
=lynx
;;
2050 i386-
*-sysv4* | i386-
*-solaris* | i386-
*-elf)
2051 fmt=elf bfd_gas
=yes ;;
2052 i386-
*-freebsdaout* | i386-
*-freebsd12.
* | i386-
*-freebsd12)
2053 fmt=aout em
=386bsd
;;
2054 i386-
*-freebsd*) fmt=elf bfd_gas
=yes ;;
2055 i386-
*-coff | i386-
*-sysv* | i386-
*-sco3.2v5
*coff | i386-
*-isc*)
2057 i386-
*-sco3.2v5
*) fmt=elf
2058 if test ${this_target} = $target; then
2059 cat >> confdefs.h
<<\EOF
2065 i386-
*-sco3.2
*) fmt=coff
;;
2066 i386-
*-vsta) fmt=aout
;;
2067 i386-
*-msdosdjgpp* | i386-
*-go32* | i386-go32-rtems
*)
2069 i386-
*-rtemself*) fmt=elf
;;
2070 i386-
*-rtems*) fmt=coff
;;
2071 i386-
*-gnu*) fmt=elf
;;
2073 fmt=aout em
=mach bfd_gas
=yes ;;
2074 i386-
*-msdos*) fmt=aout
;;
2075 i386-
*-moss*) fmt=elf
;;
2076 i386-
*-pe) fmt=coff em
=pe
;;
2077 i386-
*-cygwin*) fmt=coff em
=pe bfd_gas
=yes ;;
2078 i386-
*-mingw32*) fmt=coff em
=pe bfd_gas
=yes ;;
2079 i386-
*-*nt
*) fmt=coff em
=pe
;;
2080 i960-
*-bout) fmt=bout
;;
2081 i960-
*-coff) fmt=coff em
=ic960
;;
2082 i960-
*-rtems*) fmt=coff em
=ic960
;;
2083 i960-
*-nindy*) fmt=bout
;;
2084 i960-
*-vxworks4*) fmt=bout
;;
2085 i960-
*-vxworks5.0
) fmt=bout
;;
2086 i960-
*-vxworks5.
*) fmt=coff em
=ic960
;;
2087 i960-
*-vxworks*) fmt=bout
;;
2088 i960-
*-elf*) fmt=elf
;;
2090 m32r-
*-*) fmt=elf bfd_gas
=yes ;;
2092 m68k-
*-vxworks* | m68k-ericsson-ose | m68k-
*-sunos*)
2094 m68k-motorola-sysv
*) fmt=coff em
=delta
;;
2095 m68k-bull-sysv3
*) fmt=coff em
=dpx2
;;
2096 m68k-apollo-
*) fmt=coff em
=apollo
;;
2097 m68k-
*-sysv4*) # must be before -sysv*
2099 m68k-
*-elf*) fmt=elf
;;
2100 m68k-
*-coff | m68k-
*-sysv* | m68k-
*-rtems*)
2102 m68k-
*-hpux*) fmt=hp300 em
=hp300
;;
2103 m68k-
*-linux*aout
*) fmt=aout em
=linux
;;
2104 m68k-
*-linux-gnu*) fmt=elf em
=linux
;;
2105 m68k-
*-gnu*) fmt=elf
;;
2106 m68k-
*-lynxos*) fmt=coff em
=lynx
;;
2107 m68k-
*-netbsd*) fmt=aout em
=nbsd bfd_gas
=yes ;;
2108 m68k-
*-openbsd*) fmt=aout em
=nbsd bfd_gas
=yes ;;
2109 m68k-apple-aux
*) fmt=coff em
=aux
;;
2110 m68k-
*-psos*) fmt=elf em
=psos
;;
2112 m88k-motorola-sysv3
*) fmt=coff em
=delt88
;;
2113 m88k-
*-coff*) fmt=coff
;;
2115 mcore-
*-elf) fmt=elf bfd_gas
=yes ;;
2116 mcore-
*-pe) fmt=coff em
=pe bfd_gas
=yes ;;
2118 # don't change em like *-*-bsd does
2119 mips-dec-netbsd
*) fmt=elf endian
=little
;;
2120 mips-dec-openbsd
*) fmt=elf endian
=little
;;
2121 mips-dec-bsd
*) fmt=aout endian
=little
;;
2122 mips-sony-bsd
*) fmt=ecoff
;;
2123 mips-
*-bsd*) { echo "configure: error: Unknown vendor for mips-bsd configuration." 1>&2; exit 1; } ;;
2124 mips-
*-ultrix*) fmt=ecoff endian
=little
;;
2125 mips-
*-osf*) fmt=ecoff endian
=little
;;
2126 mips-
*-ecoff*) fmt=ecoff
;;
2127 mips-
*-ecoff*) fmt=ecoff
;;
2128 mips-
*-irix6*) fmt=elf
;;
2129 mips-
*-irix5*) fmt=elf
;;
2130 mips-
*-irix*) fmt=ecoff
;;
2131 mips-
*-lnews*) fmt=ecoff em
=lnews
;;
2132 mips-
*-riscos*) fmt=ecoff
;;
2133 mips-
*-sysv*) fmt=ecoff
;;
2134 mips-
*-elf* | mips-
*-rtems* | mips-
*-linux-gnu* | mips-
*-gnu* | mips-
*-openbsd*)
2136 mips-
*-vxworks*) fmt=elf
2137 cat >> confdefs.h
<<\EOF
2138 #define MIPS_STABS_ELF 1
2142 mn10200-
*-*) fmt=elf bfd_gas
=yes ;;
2143 mn10300-
*-*) fmt=elf bfd_gas
=yes ;;
2144 ppc-
*-pe | ppc-
*-cygwin* | ppc-
*-winnt*)
2146 ppc-
*-aix*) fmt=coff
;;
2147 ppc-
*-beos*) fmt=coff
;;
2148 ppc-
*-*bsd
* | ppc-
*-elf* | ppc-
*-eabi* | ppc-
*-sysv4*)
2150 ppc-
*-linux-gnu*) fmt=elf
2153 *) { echo "configure: error: GNU/Linux must be configured big endian" 1>&2; exit 1; } ;;
2156 ppc-
*-solaris*) fmt=elf
2157 if test ${this_target} = $target; then
2158 cat >> confdefs.h
<<\EOF
2159 #define TARGET_SOLARIS_COMMENT 1
2163 if test x
${endian} = xbig
; then
2164 { echo "configure: error: Solaris must be configured little endian" 1>&2; exit 1; }
2167 ppc-
*-rtems*) fmt=elf
;;
2168 ppc-
*-macos* | ppc-
*-mpw*)
2169 fmt=coff em
=macos
;;
2170 ppc-
*-netware*) fmt=elf em
=ppcnw
;;
2171 ppc-
*-vxworks*) fmt=elf
;;
2173 sh-
*-elf*) fmt=elf
;;
2174 sh-
*-coff*) fmt=coff
;;
2175 sh-
*-rtemself*) fmt=elf
;;
2176 sh-
*-rtems*) fmt=coff
;;
2178 ns32k-pc532-mach
* | ns32k-pc532-ux
*) fmt=aout em
=pc532mach
;;
2179 ns32k-pc532-netbsd
* | ns32k-pc532-lites
*) fmt=aout em
=nbsd532
;;
2180 ns32k-pc532-openbsd
*) fmt=aout em
=nbsd532
;;
2182 sparc-
*-rtems*) fmt=aout
;;
2183 sparc-
*-sunos4*) fmt=aout em
=sun3
;;
2184 sparc-
*-aout | sparc
*-*-vxworks*)
2185 fmt=aout em
=sparcaout
;;
2186 sparc-
*-coff) fmt=coff
;;
2187 sparc-
*-linux*aout
*) fmt=aout em
=linux
;;
2188 sparc-
*-linux-gnu*) fmt=elf em
=linux
;;
2189 sparc-
*-lynxos*) fmt=coff em
=lynx
;;
2190 sparc-fujitsu-none
) fmt=aout
;;
2191 sparc-
*-elf | sparc-
*-sysv4* | sparc-
*-solaris*)
2193 sparc-
*-netbsd*) fmt=aout em
=nbsd
;;
2194 sparc-
*-openbsd*) fmt=aout em
=nbsd
;;
2196 strongarm-
*-coff) fmt=coff
;;
2197 strongarm-
*-elf) fmt=elf
;;
2199 tic30-
*-*aout
*) fmt=aout bfd_gas
=yes ;;
2200 tic30-
*-*coff
*) fmt=coff bfd_gas
=yes ;;
2201 tic80-
*-*) fmt=coff
;;
2203 v850-
*-*) fmt=elf bfd_gas
=yes ;;
2204 v850e-
*-*) fmt=elf bfd_gas
=yes ;;
2205 v850ea-
*-*) fmt=elf bfd_gas
=yes ;;
2207 vax-
*-bsd* | vax-
*-ultrix*)
2209 vax-
*-vms) fmt=vms
;;
2212 z8k-
*-coff | z8k-
*-sim)
2215 w65-
*-*) fmt=coff
;;
2217 *-*-aout |
*-*-scout)
2223 *-*-generic) fmt=generic
;;
2224 *-*-xray |
*-*-hms) fmt=coff
;;
2225 *-*-sim) fmt=coff
;;
2226 *-*-elf |
*-*-sysv4* |
*-*-solaris*)
2227 echo "configure: warning: GAS support for ${generic_target} is incomplete." 1>&2
2229 *-*-vxworks) fmt=aout
;;
2230 *-*-netware) fmt=elf
;;
2233 if test ${this_target} = $target ; then
2235 if test x
${endian} = xbig
; then
2237 elif test x
${endian} = xlittle
; then
2240 if test x
${endian_def} != x
; then
2241 cat >> confdefs.h
<<EOF
2242 #define TARGET_BYTES_BIG_ENDIAN $endian_def
2248 case ${cpu_type}-${fmt} in
2249 alpha
*-*) bfd_gas
=yes ;;
2250 arm-
*) bfd_gas
=yes ;;
2252 # i386-aout) bfd_gas=preferred ;;
2253 mips-
*) bfd_gas
=yes ;;
2254 ns32k-
*) bfd_gas
=yes ;;
2255 ppc-
*) bfd_gas
=yes ;;
2256 sparc-
*) bfd_gas
=yes ;;
2257 strongarm-
*) bfd_gas
=yes ;;
2258 *-elf) bfd_gas
=yes ;;
2259 *-ecoff) bfd_gas
=yes ;;
2260 *-som) bfd_gas
=yes ;;
2264 # Other random stuff.
2266 # Do we need the opcodes library?
2274 case "${enable_shared}" in
2275 yes) shared_opcodes
=true
;;
2276 *opcodes
*) shared_opcodes
=true
;;
2277 *) shared_opcodes
=false
;;
2279 if test "${shared_opcodes}" = "true"; then
2280 # A shared libopcodes must be linked against libbfd.
2286 # Any other special object files needed ?
2293 case ${extra_objects} in
2295 *) extra_objects
="$extra_objects m68k-parse.o" ;;
2300 echo ${extra_objects} |
grep -s "itbl-parse.o"
2301 if test $?
-ne 0 ; then
2302 extra_objects
="$extra_objects itbl-parse.o"
2305 echo ${extra_objects} |
grep -s "itbl-lex.o"
2306 if test $?
-ne 0 ; then
2307 extra_objects
="$extra_objects itbl-lex.o"
2310 echo ${extra_objects} |
grep -s "itbl-ops.o"
2311 if test $?
-ne 0 ; then
2312 extra_objects
="$extra_objects itbl-ops.o"
2317 if test $this_target = $target ; then
2318 cat >> confdefs.h
<<EOF
2319 #define DEFAULT_ARCH "${arch}"
2328 if test $using_cgen = yes ; then
2329 case "x${extra_objects}" in
2331 *) extra_objects
="$extra_objects cgen.o" ;;
2335 # See if we really can support this configuration with the emulation code.
2337 if test $this_target = $target ; then
2338 primary_bfd_gas
=$bfd_gas
2342 if test $bfd_gas = no
; then
2343 # Can't support other configurations this way.
2346 elif test $bfd_gas = no
; then
2347 # Can't support this configuration.
2351 # From target name and format, produce a list of supported emulations.
2353 case ${generic_target}-${fmt} in
2354 mips-
*-irix5*-*) emulation
="mipsbelf mipslelf mipself mipsbecoff mipslecoff mipsecoff" ;;
2355 mips-
*-linux-gnu*-*) case "$endian" in
2356 big
) emulation
="mipsbelf mipslelf mipself mipsbecoff mipslecoff mipsecoff" ;;
2357 *) emulation
="mipslelf mipsbelf mipself mipslecoff mipsbecoff mipsecoff" ;;
2359 mips-
*-lnews*-ecoff) ;;
2360 mips-
*-*-ecoff) case "$endian" in
2361 big
) emulation
="mipsbecoff mipslecoff mipsecoff" ;;
2362 *) emulation
="mipslecoff mipsbecoff mipsecoff" ;;
2364 mips-
*-*-elf) case "$endian" in
2365 big
) emulation
="mipsbelf mipslelf mipself" ;;
2366 *) emulation
="mipslelf mipsbelf mipself" ;;
2367 # Uncommenting the next line will turn on support for i386 COFF
2368 # in any i386 ELF configuration. This probably doesn't work
2370 # i386-*-*-elf) emulation="i386coff i386elf" ;;
2374 emulations
="$emulations $emulation"
2378 # Assign floating point type. Most processors with FP support
2379 # IEEE FP. On those that don't support FP at all, usually IEEE
2381 case ${target_cpu} in
2382 vax | tahoe
) atof
=${target_cpu} ;;
2386 case "${obj_format}" in
2387 "") { echo "configure: error: GAS does not know what format to use for target ${target}" 1>&2; exit 1; } ;;
2390 # Unfortunately the cpu in cpu-opc.h file isn't always $(TARGET_CPU).
2392 if test $using_cgen = yes ; then
2393 case ${target_cpu} in
2394 *) cgen_cpu_prefix
=${target_cpu} ;;
2397 cat >> confdefs.h
<<\EOF
2398 #define USING_CGEN 1
2404 if test ! -r ${srcdir}/config
/tc-
${target_cpu_type}.c
; then
2405 { echo "configure: error: GAS does not support target CPU ${target_cpu_type}" 1>&2; exit 1; }
2408 if test ! -r ${srcdir}/config
/obj-
${obj_format}.c
; then
2409 { echo "configure: error: GAS does not have support for object file format ${obj_format}" 1>&2; exit 1; }
2412 case ${user_bfd_gas}-${primary_bfd_gas} in
2414 # We didn't override user's choice.
2417 echo "configure: warning: Use of BFD is required for ${target}; overriding config options." 1>&2
2429 # User specified nothing.
2433 # Some COFF configurations want these random other flags set.
2434 case ${obj_format} in
2436 case ${target_cpu_type} in
2437 i386
) cat >> confdefs.h
<<\EOF
2441 m68k
) cat >> confdefs.h
<<\EOF
2445 m88k
) cat >> confdefs.h
<<\EOF
2453 # Getting this done right is going to be a bitch. Each configuration specified
2454 # with --enable-targets=... should be checked for environment, format, cpu, and
2457 # For each configuration, the necessary object file support code must be linked
2458 # in. This might be only one, it might be up to four. The necessary emulation
2459 # code needs to be provided, too.
2461 # And then there's "--enable-targets=all"....
2463 # For now, just always do it for MIPS ELF or ECOFF configurations. Sigh.
2465 formats
="${obj_format}"
2468 _gas_uniq_list
="$emulations"
2469 _gas_uniq_newlist
=""
2470 for _gas_uniq_i
in _gas_uniq_dummy
$_gas_uniq_list ; do
2471 case $_gas_uniq_i in
2473 *) case " $_gas_uniq_newlist " in
2474 *" $_gas_uniq_i "*) ;;
2475 *) _gas_uniq_newlist
="$_gas_uniq_newlist $_gas_uniq_i" ;;
2479 emulations
=$_gas_uniq_newlist
2481 for em
in .
$emulations ; do
2484 mipsbelf | mipslelf
)
2485 fmt=elf
file=mipself
;;
2486 mipsbecoff | mipslecoff
)
2487 fmt=ecoff
file=mipsecoff
;;
2489 fmt=coff
file=i386coff
;;
2491 fmt=elf
file=i386elf
;;
2493 formats
="$formats $fmt"
2494 emfiles
="$emfiles e-$file.o"
2495 EMULATIONS
="$EMULATIONS &$em,"
2497 _gas_uniq_list
="$formats"
2498 _gas_uniq_newlist
=""
2499 for _gas_uniq_i
in _gas_uniq_dummy
$_gas_uniq_list ; do
2500 case $_gas_uniq_i in
2502 *) case " $_gas_uniq_newlist " in
2503 *" $_gas_uniq_i "*) ;;
2504 *) _gas_uniq_newlist
="$_gas_uniq_newlist $_gas_uniq_i" ;;
2508 formats
=$_gas_uniq_newlist
2510 _gas_uniq_list
="$emfiles"
2511 _gas_uniq_newlist
=""
2512 for _gas_uniq_i
in _gas_uniq_dummy
$_gas_uniq_list ; do
2513 case $_gas_uniq_i in
2515 *) case " $_gas_uniq_newlist " in
2516 *" $_gas_uniq_i "*) ;;
2517 *) _gas_uniq_newlist
="$_gas_uniq_newlist $_gas_uniq_i" ;;
2521 emfiles
=$_gas_uniq_newlist
2523 if test `set . $formats ; shift ; echo $#` -gt 1 ; then
2524 for fmt in $formats ; do
2526 aout
) cat >> confdefs.h
<<\EOF
2527 #define OBJ_MAYBE_AOUT 1
2530 bout
) cat >> confdefs.h
<<\EOF
2531 #define OBJ_MAYBE_BOUT 1
2534 coff
) cat >> confdefs.h
<<\EOF
2535 #define OBJ_MAYBE_COFF 1
2538 ecoff
) cat >> confdefs.h
<<\EOF
2539 #define OBJ_MAYBE_ECOFF 1
2542 elf
) cat >> confdefs.h
<<\EOF
2543 #define OBJ_MAYBE_ELF 1
2546 generic
) cat >> confdefs.h
<<\EOF
2547 #define OBJ_MAYBE_GENERIC 1
2550 hp300
) cat >> confdefs.h
<<\EOF
2551 #define OBJ_MAYBE_HP300 1
2554 ieee
) cat >> confdefs.h
<<\EOF
2555 #define OBJ_MAYBE_IEEE 1
2558 som
) cat >> confdefs.h
<<\EOF
2559 #define OBJ_MAYBE_SOM 1
2562 vms
) cat >> confdefs.h
<<\EOF
2563 #define OBJ_MAYBE_VMS 1
2567 extra_objects
="$extra_objects obj-$fmt.o"
2571 if test `set . $emfiles ; shift ; echo $#` -gt 0 ; then
2573 extra_objects
="$extra_objects $emfiles"
2574 DEFAULT_EMULATION
=`set . $emulations ; echo $2`
2575 cat >> confdefs.h
<<\EOF
2576 #define USE_EMULATIONS 1
2581 cat >> confdefs.h
<<EOF
2582 #define EMULATIONS $EMULATIONS
2585 cat >> confdefs.h
<<EOF
2586 #define DEFAULT_EMULATION "$DEFAULT_EMULATION"
2590 case ${primary_bfd_gas}-${target_cpu_type}-${obj_format} in
2591 yes-
*-coff) need_bfd
=yes ;;
2592 no-
*-coff) need_bfd
=yes
2593 cat >> confdefs.h
<<\EOF
2594 #define MANY_SEGMENTS 1
2599 reject_dev_configs
=yes
2601 case ${reject_dev_configs}-${dev} in
2603 { echo "configure: error: GAS does not support the ${generic_target} configuration." 1>&2; exit 1; }
2613 case "${primary_bfd_gas}" in
2614 yes) cat >> confdefs.h
<<\EOF
2615 #define BFD_ASSEMBLER 1
2621 # do we need the opcodes library?
2622 case "${need_opcodes}" in
2624 OPCODES_LIB
=..
/opcodes
/libopcodes.la
2628 case "${need_bfd}" in
2630 BFDLIB
=..
/bfd
/libbfd.la
2631 ALL_OBJ_DEPS
="$ALL_OBJ_DEPS ../bfd/bfd.h"
2640 cat >> confdefs.h
<<EOF
2641 #define TARGET_ALIAS "${target_alias}"
2644 cat >> confdefs.h
<<EOF
2645 #define TARGET_CANONICAL "${target}"
2648 cat >> confdefs.h
<<EOF
2649 #define TARGET_CPU "${target_cpu}"
2652 cat >> confdefs.h
<<EOF
2653 #define TARGET_VENDOR "${target_vendor}"
2656 cat >> confdefs.h
<<EOF
2657 #define TARGET_OS "${target_os}"
2661 # Extract the first word of "gcc", so it can be a program name with args.
2662 set dummy gcc
; ac_word
=$2
2663 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2664 echo "configure:2665: checking for $ac_word" >&5
2665 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2666 echo $ac_n "(cached) $ac_c" 1>&6
2668 if test -n "$CC"; then
2669 ac_cv_prog_CC
="$CC" # Let the user override the test.
2671 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2673 for ac_dir
in $ac_dummy; do
2674 test -z "$ac_dir" && ac_dir
=.
2675 if test -f $ac_dir/$ac_word; then
2684 if test -n "$CC"; then
2685 echo "$ac_t""$CC" 1>&6
2687 echo "$ac_t""no" 1>&6
2690 if test -z "$CC"; then
2691 # Extract the first word of "cc", so it can be a program name with args.
2692 set dummy cc
; ac_word
=$2
2693 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2694 echo "configure:2695: checking for $ac_word" >&5
2695 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2696 echo $ac_n "(cached) $ac_c" 1>&6
2698 if test -n "$CC"; then
2699 ac_cv_prog_CC
="$CC" # Let the user override the test.
2701 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2704 for ac_dir
in $ac_dummy; do
2705 test -z "$ac_dir" && ac_dir
=.
2706 if test -f $ac_dir/$ac_word; then
2707 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2708 ac_prog_rejected
=yes
2716 if test $ac_prog_rejected = yes; then
2717 # We found a bogon in the path, so make sure we never use it.
2718 set dummy
$ac_cv_prog_CC
2720 if test $# -gt 0; then
2721 # We chose a different compiler from the bogus one.
2722 # However, it has the same basename, so the bogon will be chosen
2723 # first if we set CC to just the basename; use the full file name.
2725 set dummy
"$ac_dir/$ac_word" "$@"
2733 if test -n "$CC"; then
2734 echo "$ac_t""$CC" 1>&6
2736 echo "$ac_t""no" 1>&6
2739 if test -z "$CC"; then
2740 case "`uname -s`" in
2742 # Extract the first word of "cl", so it can be a program name with args.
2743 set dummy cl
; ac_word
=$2
2744 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2745 echo "configure:2746: checking for $ac_word" >&5
2746 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2747 echo $ac_n "(cached) $ac_c" 1>&6
2749 if test -n "$CC"; then
2750 ac_cv_prog_CC
="$CC" # Let the user override the test.
2752 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2754 for ac_dir
in $ac_dummy; do
2755 test -z "$ac_dir" && ac_dir
=.
2756 if test -f $ac_dir/$ac_word; then
2765 if test -n "$CC"; then
2766 echo "$ac_t""$CC" 1>&6
2768 echo "$ac_t""no" 1>&6
2773 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2776 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2777 echo "configure:2778: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
2780 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2781 ac_cpp
='$CPP $CPPFLAGS'
2782 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2783 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2784 cross_compiling
=$ac_cv_prog_cc_cross
2786 cat > conftest.
$ac_ext << EOF
2788 #line 2789 "configure"
2789 #include "confdefs.h"
2793 if { (eval echo configure
:2794: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2794 ac_cv_prog_cc_works
=yes
2795 # If we can't run a trivial program, we are probably using a cross compiler.
2796 if (.
/conftest
; exit) 2>/dev
/null
; then
2797 ac_cv_prog_cc_cross
=no
2799 ac_cv_prog_cc_cross
=yes
2802 echo "configure: failed program was:" >&5
2803 cat conftest.
$ac_ext >&5
2804 ac_cv_prog_cc_works
=no
2808 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2809 ac_cpp
='$CPP $CPPFLAGS'
2810 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2811 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2812 cross_compiling
=$ac_cv_prog_cc_cross
2814 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2815 if test $ac_cv_prog_cc_works = no
; then
2816 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2818 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2819 echo "configure:2820: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2820 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2821 cross_compiling
=$ac_cv_prog_cc_cross
2823 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2824 echo "configure:2825: checking whether we are using GNU C" >&5
2825 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
2826 echo $ac_n "(cached) $ac_c" 1>&6
2828 cat > conftest.c
<<EOF
2833 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:2834: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
2840 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2842 if test $ac_cv_prog_gcc = yes; then
2848 ac_test_CFLAGS
="${CFLAGS+set}"
2849 ac_save_CFLAGS
="$CFLAGS"
2851 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2852 echo "configure:2853: checking whether ${CC-cc} accepts -g" >&5
2853 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2854 echo $ac_n "(cached) $ac_c" 1>&6
2856 echo 'void f(){}' > conftest.c
2857 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2866 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2867 if test "$ac_test_CFLAGS" = set; then
2868 CFLAGS
="$ac_save_CFLAGS"
2869 elif test $ac_cv_prog_cc_g = yes; then
2870 if test "$GCC" = yes; then
2876 if test "$GCC" = yes; then
2884 for ac_prog
in 'bison -y' byacc
2886 # Extract the first word of "$ac_prog", so it can be a program name with args.
2887 set dummy
$ac_prog; ac_word
=$2
2888 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2889 echo "configure:2890: checking for $ac_word" >&5
2890 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
2891 echo $ac_n "(cached) $ac_c" 1>&6
2893 if test -n "$YACC"; then
2894 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
2896 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2898 for ac_dir
in $ac_dummy; do
2899 test -z "$ac_dir" && ac_dir
=.
2900 if test -f $ac_dir/$ac_word; then
2901 ac_cv_prog_YACC
="$ac_prog"
2908 YACC
="$ac_cv_prog_YACC"
2909 if test -n "$YACC"; then
2910 echo "$ac_t""$YACC" 1>&6
2912 echo "$ac_t""no" 1>&6
2915 test -n "$YACC" && break
2917 test -n "$YACC" || YACC
="yacc"
2919 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2920 echo "configure:2921: checking how to run the C preprocessor" >&5
2921 # On Suns, sometimes $CPP names a directory.
2922 if test -n "$CPP" && test -d "$CPP"; then
2925 if test -z "$CPP"; then
2926 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2927 echo $ac_n "(cached) $ac_c" 1>&6
2929 # This must be in double quotes, not single quotes, because CPP may get
2930 # substituted into the Makefile and "${CC-cc}" will confuse make.
2932 # On the NeXT, cc -E runs the code through the compiler's parser,
2933 # not just through cpp.
2934 cat > conftest.
$ac_ext <<EOF
2935 #line 2936 "configure"
2936 #include "confdefs.h"
2940 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2941 { (eval echo configure
:2942: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2942 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2943 if test -z "$ac_err"; then
2947 echo "configure: failed program was:" >&5
2948 cat conftest.
$ac_ext >&5
2950 CPP
="${CC-cc} -E -traditional-cpp"
2951 cat > conftest.
$ac_ext <<EOF
2952 #line 2953 "configure"
2953 #include "confdefs.h"
2957 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2958 { (eval echo configure
:2959: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2959 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2960 if test -z "$ac_err"; then
2964 echo "configure: failed program was:" >&5
2965 cat conftest.
$ac_ext >&5
2967 CPP
="${CC-cc} -nologo -E"
2968 cat > conftest.
$ac_ext <<EOF
2969 #line 2970 "configure"
2970 #include "confdefs.h"
2974 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2975 { (eval echo configure
:2976: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2976 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2977 if test -z "$ac_err"; then
2981 echo "configure: failed program was:" >&5
2982 cat conftest.
$ac_ext >&5
2991 ac_cv_prog_CPP
="$CPP"
2993 CPP
="$ac_cv_prog_CPP"
2995 ac_cv_prog_CPP
="$CPP"
2997 echo "$ac_t""$CPP" 1>&6
2999 missing_dir
=`cd $ac_aux_dir && pwd`
3000 for ac_prog
in flex
lex
3002 # Extract the first word of "$ac_prog", so it can be a program name with args.
3003 set dummy
$ac_prog; ac_word
=$2
3004 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3005 echo "configure:3006: checking for $ac_word" >&5
3006 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
3007 echo $ac_n "(cached) $ac_c" 1>&6
3009 if test -n "$LEX"; then
3010 ac_cv_prog_LEX
="$LEX" # Let the user override the test.
3012 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3014 for ac_dir
in $ac_dummy; do
3015 test -z "$ac_dir" && ac_dir
=.
3016 if test -f $ac_dir/$ac_word; then
3017 ac_cv_prog_LEX
="$ac_prog"
3024 LEX
="$ac_cv_prog_LEX"
3025 if test -n "$LEX"; then
3026 echo "$ac_t""$LEX" 1>&6
3028 echo "$ac_t""no" 1>&6
3031 test -n "$LEX" && break
3033 test -n "$LEX" || LEX
=""$missing_dir/missing flex
""
3035 # Extract the first word of "flex", so it can be a program name with args.
3036 set dummy flex
; ac_word
=$2
3037 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3038 echo "configure:3039: checking for $ac_word" >&5
3039 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
3040 echo $ac_n "(cached) $ac_c" 1>&6
3042 if test -n "$LEX"; then
3043 ac_cv_prog_LEX
="$LEX" # Let the user override the test.
3045 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3047 for ac_dir
in $ac_dummy; do
3048 test -z "$ac_dir" && ac_dir
=.
3049 if test -f $ac_dir/$ac_word; then
3050 ac_cv_prog_LEX
="flex"
3055 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX
="lex"
3058 LEX
="$ac_cv_prog_LEX"
3059 if test -n "$LEX"; then
3060 echo "$ac_t""$LEX" 1>&6
3062 echo "$ac_t""no" 1>&6
3065 if test -z "$LEXLIB"
3071 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
3072 echo "configure:3073: checking for yywrap in -l$ac_lib" >&5
3073 ac_lib_var
=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
3074 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3075 echo $ac_n "(cached) $ac_c" 1>&6
3077 ac_save_LIBS
="$LIBS"
3078 LIBS
="-l$ac_lib $LIBS"
3079 cat > conftest.
$ac_ext <<EOF
3080 #line 3081 "configure"
3081 #include "confdefs.h"
3082 /* Override any gcc2 internal prototype to avoid an error. */
3083 /* We use char because int might match the return type of a gcc2
3084 builtin and then its argument prototype would still apply. */
3091 if { (eval echo configure
:3092: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3093 eval "ac_cv_lib_$ac_lib_var=yes"
3095 echo "configure: failed program was:" >&5
3096 cat conftest.
$ac_ext >&5
3098 eval "ac_cv_lib_$ac_lib_var=no"
3101 LIBS
="$ac_save_LIBS"
3104 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3105 echo "$ac_t""yes" 1>&6
3108 echo "$ac_t""no" 1>&6
3113 echo $ac_n "checking lex output file root""... $ac_c" 1>&6
3114 echo "configure:3115: checking lex output file root" >&5
3115 if eval "test \"`echo '$''{'ac_cv_prog_lex_root'+set}'`\" = set"; then
3116 echo $ac_n "(cached) $ac_c" 1>&6
3118 # The minimal lex program is just a single line: %%. But some broken lexes
3119 # (Solaris, I think it was) want two %% lines, so accommodate them.
3122 if test -f lex.yy.c
; then
3123 ac_cv_prog_lex_root
=lex.yy
3124 elif test -f lexyy.c
; then
3125 ac_cv_prog_lex_root
=lexyy
3127 { echo "configure: error: cannot find output from $LEX; giving up" 1>&2; exit 1; }
3131 echo "$ac_t""$ac_cv_prog_lex_root" 1>&6
3132 LEX_OUTPUT_ROOT
=$ac_cv_prog_lex_root
3134 echo $ac_n "checking whether yytext is a pointer""... $ac_c" 1>&6
3135 echo "configure:3136: checking whether yytext is a pointer" >&5
3136 if eval "test \"`echo '$''{'ac_cv_prog_lex_yytext_pointer'+set}'`\" = set"; then
3137 echo $ac_n "(cached) $ac_c" 1>&6
3139 # POSIX says lex can declare yytext either as a pointer or an array; the
3140 # default is implementation-dependent. Figure out which it is, since
3141 # not all implementations provide the %pointer and %array declarations.
3142 ac_cv_prog_lex_yytext_pointer
=no
3143 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3144 ac_save_LIBS
="$LIBS"
3145 LIBS
="$LIBS $LEXLIB"
3146 cat > conftest.
$ac_ext <<EOF
3147 #line 3148 "configure"
3148 #include "confdefs.h"
3149 `cat $LEX_OUTPUT_ROOT.c`
3154 if { (eval echo configure
:3155: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3156 ac_cv_prog_lex_yytext_pointer
=yes
3158 echo "configure: failed program was:" >&5
3159 cat conftest.
$ac_ext >&5
3162 LIBS
="$ac_save_LIBS"
3163 rm -f "${LEX_OUTPUT_ROOT}.c"
3167 echo "$ac_t""$ac_cv_prog_lex_yytext_pointer" 1>&6
3168 if test $ac_cv_prog_lex_yytext_pointer = yes; then
3169 cat >> confdefs.h
<<\EOF
3170 #define YYTEXT_POINTER 1
3177 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
3178 echo "configure:3179: checking for POSIXized ISC" >&5
3179 if test -d /etc
/conf
/kconfig.d
&&
3180 grep _POSIX_VERSION
/usr
/include
/sys
/unistd.h
>/dev
/null
2>&1
3182 echo "$ac_t""yes" 1>&6
3183 ISC
=yes # If later tests want to check for ISC.
3184 cat >> confdefs.h
<<\EOF
3185 #define _POSIX_SOURCE 1
3188 if test "$GCC" = yes; then
3194 echo "$ac_t""no" 1>&6
3198 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3199 echo "configure:3200: checking for ANSI C header files" >&5
3200 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
3201 echo $ac_n "(cached) $ac_c" 1>&6
3203 cat > conftest.
$ac_ext <<EOF
3204 #line 3205 "configure"
3205 #include "confdefs.h"
3211 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3212 { (eval echo configure
:3213: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3213 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3214 if test -z "$ac_err"; then
3216 ac_cv_header_stdc
=yes
3219 echo "configure: failed program was:" >&5
3220 cat conftest.
$ac_ext >&5
3222 ac_cv_header_stdc
=no
3226 if test $ac_cv_header_stdc = yes; then
3227 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3228 cat > conftest.
$ac_ext <<EOF
3229 #line 3230 "configure"
3230 #include "confdefs.h"
3233 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3234 egrep "memchr" >/dev
/null
2>&1; then
3238 ac_cv_header_stdc
=no
3244 if test $ac_cv_header_stdc = yes; then
3245 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3246 cat > conftest.
$ac_ext <<EOF
3247 #line 3248 "configure"
3248 #include "confdefs.h"
3251 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3252 egrep "free" >/dev
/null
2>&1; then
3256 ac_cv_header_stdc
=no
3262 if test $ac_cv_header_stdc = yes; then
3263 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3264 if test "$cross_compiling" = yes; then
3267 cat > conftest.
$ac_ext <<EOF
3268 #line 3269 "configure"
3269 #include "confdefs.h"
3271 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3272 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3273 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3274 int main () { int i; for (i = 0; i < 256; i++)
3275 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3279 if { (eval echo configure
:3280: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3283 echo "configure: failed program was:" >&5
3284 cat conftest.
$ac_ext >&5
3286 ac_cv_header_stdc
=no
3294 echo "$ac_t""$ac_cv_header_stdc" 1>&6
3295 if test $ac_cv_header_stdc = yes; then
3296 cat >> confdefs.h
<<\EOF
3297 #define STDC_HEADERS 1
3302 echo $ac_n "checking for working const""... $ac_c" 1>&6
3303 echo "configure:3304: checking for working const" >&5
3304 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3305 echo $ac_n "(cached) $ac_c" 1>&6
3307 cat > conftest.
$ac_ext <<EOF
3308 #line 3309 "configure"
3309 #include "confdefs.h"
3313 /* Ultrix mips cc rejects this. */
3314 typedef int charset[2]; const charset x;
3315 /* SunOS 4.1.1 cc rejects this. */
3316 char const *const *ccp;
3318 /* NEC SVR4.0.2 mips cc rejects this. */
3319 struct point {int x, y;};
3320 static struct point const zero = {0,0};
3321 /* AIX XL C 1.02.0.0 rejects this.
3322 It does not let you subtract one const X* pointer from another in an arm
3323 of an if-expression whose if-part is not a constant expression */
3324 const char *g = "string";
3325 ccp = &g + (g ? g-g : 0);
3326 /* HPUX 7.0 cc rejects these. */
3329 ccp = (char const *const *) p;
3330 { /* SCO 3.2v4 cc rejects this. */
3332 char const *s = 0 ? (char *) 0 : (char const *) 0;
3336 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3338 const int *foo = &x[0];
3341 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3342 typedef const int *iptr;
3346 { /* AIX XL C 1.02.0.0 rejects this saying
3347 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3348 struct s { int j; const int *ap[3]; };
3349 struct s *b; b->j = 5;
3351 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3357 if { (eval echo configure
:3358: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3361 echo "configure: failed program was:" >&5
3362 cat conftest.
$ac_ext >&5
3369 echo "$ac_t""$ac_cv_c_const" 1>&6
3370 if test $ac_cv_c_const = no
; then
3371 cat >> confdefs.h
<<\EOF
3377 echo $ac_n "checking for inline""... $ac_c" 1>&6
3378 echo "configure:3379: checking for inline" >&5
3379 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
3380 echo $ac_n "(cached) $ac_c" 1>&6
3383 for ac_kw
in inline __inline__ __inline
; do
3384 cat > conftest.
$ac_ext <<EOF
3385 #line 3386 "configure"
3386 #include "confdefs.h"
3392 if { (eval echo configure
:3393: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3394 ac_cv_c_inline
=$ac_kw; break
3396 echo "configure: failed program was:" >&5
3397 cat conftest.
$ac_ext >&5
3404 echo "$ac_t""$ac_cv_c_inline" 1>&6
3405 case "$ac_cv_c_inline" in
3407 no
) cat >> confdefs.h
<<\EOF
3411 *) cat >> confdefs.h
<<EOF
3412 #define inline $ac_cv_c_inline
3417 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3418 echo "configure:3419: checking for off_t" >&5
3419 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
3420 echo $ac_n "(cached) $ac_c" 1>&6
3422 cat > conftest.
$ac_ext <<EOF
3423 #line 3424 "configure"
3424 #include "confdefs.h"
3425 #include <sys/types.h>
3431 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3432 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3434 ac_cv_type_off_t
=yes
3442 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3443 if test $ac_cv_type_off_t = no
; then
3444 cat >> confdefs.h
<<\EOF
3450 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3451 echo "configure:3452: checking for size_t" >&5
3452 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3453 echo $ac_n "(cached) $ac_c" 1>&6
3455 cat > conftest.
$ac_ext <<EOF
3456 #line 3457 "configure"
3457 #include "confdefs.h"
3458 #include <sys/types.h>
3464 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3465 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3467 ac_cv_type_size_t
=yes
3470 ac_cv_type_size_t
=no
3475 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3476 if test $ac_cv_type_size_t = no
; then
3477 cat >> confdefs.h
<<\EOF
3478 #define size_t unsigned
3483 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
3484 # for constant arguments. Useless!
3485 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
3486 echo "configure:3487: checking for working alloca.h" >&5
3487 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
3488 echo $ac_n "(cached) $ac_c" 1>&6
3490 cat > conftest.
$ac_ext <<EOF
3491 #line 3492 "configure"
3492 #include "confdefs.h"
3495 char *p = alloca(2 * sizeof(int));
3498 if { (eval echo configure
:3499: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3500 ac_cv_header_alloca_h
=yes
3502 echo "configure: failed program was:" >&5
3503 cat conftest.
$ac_ext >&5
3505 ac_cv_header_alloca_h
=no
3510 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
3511 if test $ac_cv_header_alloca_h = yes; then
3512 cat >> confdefs.h
<<\EOF
3513 #define HAVE_ALLOCA_H 1
3518 echo $ac_n "checking for alloca""... $ac_c" 1>&6
3519 echo "configure:3520: checking for alloca" >&5
3520 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
3521 echo $ac_n "(cached) $ac_c" 1>&6
3523 cat > conftest.
$ac_ext <<EOF
3524 #line 3525 "configure"
3525 #include "confdefs.h"
3528 # define alloca __builtin_alloca
3531 # include <malloc.h>
3532 # define alloca _alloca
3535 # include <alloca.h>
3540 # ifndef alloca /* predefined by HP cc +Olibcalls */
3549 char *p = (char *) alloca(1);
3552 if { (eval echo configure
:3553: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3554 ac_cv_func_alloca_works
=yes
3556 echo "configure: failed program was:" >&5
3557 cat conftest.
$ac_ext >&5
3559 ac_cv_func_alloca_works
=no
3564 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
3565 if test $ac_cv_func_alloca_works = yes; then
3566 cat >> confdefs.h
<<\EOF
3567 #define HAVE_ALLOCA 1
3572 if test $ac_cv_func_alloca_works = no
; then
3573 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
3574 # that cause trouble. Some versions do not even contain alloca or
3575 # contain a buggy version. If you still want to use their alloca,
3576 # use ar to extract alloca.o from them instead of compiling alloca.c.
3577 ALLOCA
=alloca.
${ac_objext}
3578 cat >> confdefs.h
<<\EOF
3583 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
3584 echo "configure:3585: checking whether alloca needs Cray hooks" >&5
3585 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
3586 echo $ac_n "(cached) $ac_c" 1>&6
3588 cat > conftest.
$ac_ext <<EOF
3589 #line 3590 "configure"
3590 #include "confdefs.h"
3591 #if defined(CRAY) && ! defined(CRAY2)
3598 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3599 egrep "webecray" >/dev
/null
2>&1; then
3610 echo "$ac_t""$ac_cv_os_cray" 1>&6
3611 if test $ac_cv_os_cray = yes; then
3612 for ac_func
in _getb67 GETB67 getb67
; do
3613 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3614 echo "configure:3615: checking for $ac_func" >&5
3615 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3616 echo $ac_n "(cached) $ac_c" 1>&6
3618 cat > conftest.
$ac_ext <<EOF
3619 #line 3620 "configure"
3620 #include "confdefs.h"
3621 /* System header to define __stub macros and hopefully few prototypes,
3622 which can conflict with char $ac_func(); below. */
3624 /* Override any gcc2 internal prototype to avoid an error. */
3625 /* We use char because int might match the return type of a gcc2
3626 builtin and then its argument prototype would still apply. */
3631 /* The GNU C library defines this for functions which it implements
3632 to always fail with ENOSYS. Some functions are actually named
3633 something starting with __ and the normal name is an alias. */
3634 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3642 if { (eval echo configure
:3643: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3644 eval "ac_cv_func_$ac_func=yes"
3646 echo "configure: failed program was:" >&5
3647 cat conftest.
$ac_ext >&5
3649 eval "ac_cv_func_$ac_func=no"
3654 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3655 echo "$ac_t""yes" 1>&6
3656 cat >> confdefs.h
<<EOF
3657 #define CRAY_STACKSEG_END $ac_func
3662 echo "$ac_t""no" 1>&6
3668 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
3669 echo "configure:3670: checking stack direction for C alloca" >&5
3670 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
3671 echo $ac_n "(cached) $ac_c" 1>&6
3673 if test "$cross_compiling" = yes; then
3674 ac_cv_c_stack_direction
=0
3676 cat > conftest.
$ac_ext <<EOF
3677 #line 3678 "configure"
3678 #include "confdefs.h"
3679 find_stack_direction ()
3681 static char *addr = 0;
3686 return find_stack_direction ();
3689 return (&dummy > addr) ? 1 : -1;
3693 exit (find_stack_direction() < 0);
3696 if { (eval echo configure
:3697: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3698 ac_cv_c_stack_direction
=1
3700 echo "configure: failed program was:" >&5
3701 cat conftest.
$ac_ext >&5
3703 ac_cv_c_stack_direction
=-1
3710 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
3711 cat >> confdefs.h
<<EOF
3712 #define STACK_DIRECTION $ac_cv_c_stack_direction
3717 for ac_hdr
in unistd.h
3719 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3720 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3721 echo "configure:3722: checking for $ac_hdr" >&5
3722 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3723 echo $ac_n "(cached) $ac_c" 1>&6
3725 cat > conftest.
$ac_ext <<EOF
3726 #line 3727 "configure"
3727 #include "confdefs.h"
3730 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3731 { (eval echo configure
:3732: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3732 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3733 if test -z "$ac_err"; then
3735 eval "ac_cv_header_$ac_safe=yes"
3738 echo "configure: failed program was:" >&5
3739 cat conftest.
$ac_ext >&5
3741 eval "ac_cv_header_$ac_safe=no"
3745 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3746 echo "$ac_t""yes" 1>&6
3747 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3748 cat >> confdefs.h
<<EOF
3749 #define $ac_tr_hdr 1
3753 echo "$ac_t""no" 1>&6
3757 for ac_func
in getpagesize
3759 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3760 echo "configure:3761: checking for $ac_func" >&5
3761 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3762 echo $ac_n "(cached) $ac_c" 1>&6
3764 cat > conftest.
$ac_ext <<EOF
3765 #line 3766 "configure"
3766 #include "confdefs.h"
3767 /* System header to define __stub macros and hopefully few prototypes,
3768 which can conflict with char $ac_func(); below. */
3770 /* Override any gcc2 internal prototype to avoid an error. */
3771 /* We use char because int might match the return type of a gcc2
3772 builtin and then its argument prototype would still apply. */
3777 /* The GNU C library defines this for functions which it implements
3778 to always fail with ENOSYS. Some functions are actually named
3779 something starting with __ and the normal name is an alias. */
3780 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3788 if { (eval echo configure
:3789: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3790 eval "ac_cv_func_$ac_func=yes"
3792 echo "configure: failed program was:" >&5
3793 cat conftest.
$ac_ext >&5
3795 eval "ac_cv_func_$ac_func=no"
3800 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3801 echo "$ac_t""yes" 1>&6
3802 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3803 cat >> confdefs.h
<<EOF
3804 #define $ac_tr_func 1
3808 echo "$ac_t""no" 1>&6
3812 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
3813 echo "configure:3814: checking for working mmap" >&5
3814 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
3815 echo $ac_n "(cached) $ac_c" 1>&6
3817 if test "$cross_compiling" = yes; then
3818 ac_cv_func_mmap_fixed_mapped
=no
3820 cat > conftest.
$ac_ext <<EOF
3821 #line 3822 "configure"
3822 #include "confdefs.h"
3824 /* Thanks to Mike Haertel and Jim Avera for this test.
3825 Here is a matrix of mmap possibilities:
3826 mmap private not fixed
3827 mmap private fixed at somewhere currently unmapped
3828 mmap private fixed at somewhere already mapped
3829 mmap shared not fixed
3830 mmap shared fixed at somewhere currently unmapped
3831 mmap shared fixed at somewhere already mapped
3832 For private mappings, we should verify that changes cannot be read()
3833 back from the file, nor mmap's back from the file at a different
3834 address. (There have been systems where private was not correctly
3835 implemented like the infamous i386 svr4.0, and systems where the
3836 VM page cache was not coherent with the filesystem buffer cache
3837 like early versions of FreeBSD and possibly contemporary NetBSD.)
3838 For shared mappings, we should conversely verify that changes get
3839 propogated back to all the places they're supposed to be.
3841 Grep wants private fixed already mapped.
3842 The main things grep needs to know about mmap are:
3843 * does it exist and is it safe to write into the mmap'd area
3844 * how to use it (BSD variants) */
3845 #include <sys/types.h>
3847 #include <sys/mman.h>
3849 /* This mess was copied from the GNU getpagesize.h. */
3850 #ifndef HAVE_GETPAGESIZE
3851 # ifdef HAVE_UNISTD_H
3852 # include <unistd.h>
3855 /* Assume that all systems that can run configure have sys/param.h. */
3856 # ifndef HAVE_SYS_PARAM_H
3857 # define HAVE_SYS_PARAM_H 1
3860 # ifdef _SC_PAGESIZE
3861 # define getpagesize() sysconf(_SC_PAGESIZE)
3862 # else /* no _SC_PAGESIZE */
3863 # ifdef HAVE_SYS_PARAM_H
3864 # include <sys/param.h>
3865 # ifdef EXEC_PAGESIZE
3866 # define getpagesize() EXEC_PAGESIZE
3867 # else /* no EXEC_PAGESIZE */
3869 # define getpagesize() NBPG * CLSIZE
3872 # endif /* no CLSIZE */
3873 # else /* no NBPG */
3875 # define getpagesize() NBPC
3876 # else /* no NBPC */
3878 # define getpagesize() PAGESIZE
3879 # endif /* PAGESIZE */
3880 # endif /* no NBPC */
3881 # endif /* no NBPG */
3882 # endif /* no EXEC_PAGESIZE */
3883 # else /* no HAVE_SYS_PARAM_H */
3884 # define getpagesize() 8192 /* punt totally */
3885 # endif /* no HAVE_SYS_PARAM_H */
3886 # endif /* no _SC_PAGESIZE */
3888 #endif /* no HAVE_GETPAGESIZE */
3891 extern "C" { void *malloc(unsigned); }
3899 char *data, *data2, *data3;
3903 pagesize = getpagesize();
3906 * First, make a file with some known garbage in it.
3908 data = malloc(pagesize);
3911 for (i = 0; i < pagesize; ++i)
3912 *(data + i) = rand();
3914 fd = creat("conftestmmap", 0600);
3917 if (write(fd, data, pagesize) != pagesize)
3922 * Next, try to mmap the file at a fixed address which
3923 * already has something else allocated at it. If we can,
3924 * also make sure that we see the same garbage.
3926 fd = open("conftestmmap", O_RDWR);
3929 data2 = malloc(2 * pagesize);
3932 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
3933 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
3934 MAP_PRIVATE | MAP_FIXED, fd, 0L))
3936 for (i = 0; i < pagesize; ++i)
3937 if (*(data + i) != *(data2 + i))
3941 * Finally, make sure that changes to the mapped area
3942 * do not percolate back to the file as seen by read().
3943 * (This is a bug on some variants of i386 svr4.0.)
3945 for (i = 0; i < pagesize; ++i)
3946 *(data2 + i) = *(data2 + i) + 1;
3947 data3 = malloc(pagesize);
3950 if (read(fd, data3, pagesize) != pagesize)
3952 for (i = 0; i < pagesize; ++i)
3953 if (*(data + i) != *(data3 + i))
3956 unlink("conftestmmap");
3961 if { (eval echo configure
:3962: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3963 ac_cv_func_mmap_fixed_mapped
=yes
3965 echo "configure: failed program was:" >&5
3966 cat conftest.
$ac_ext >&5
3968 ac_cv_func_mmap_fixed_mapped
=no
3975 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
3976 if test $ac_cv_func_mmap_fixed_mapped = yes; then
3977 cat >> confdefs.h
<<\EOF
3984 for ac_hdr
in argz.h limits.h locale.h nl_types.h malloc.h string.h \
3985 unistd.h values.h sys
/param.h
3987 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3988 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3989 echo "configure:3990: checking for $ac_hdr" >&5
3990 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3991 echo $ac_n "(cached) $ac_c" 1>&6
3993 cat > conftest.
$ac_ext <<EOF
3994 #line 3995 "configure"
3995 #include "confdefs.h"
3998 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3999 { (eval echo configure
:4000: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4000 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4001 if test -z "$ac_err"; then
4003 eval "ac_cv_header_$ac_safe=yes"
4006 echo "configure: failed program was:" >&5
4007 cat conftest.
$ac_ext >&5
4009 eval "ac_cv_header_$ac_safe=no"
4013 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4014 echo "$ac_t""yes" 1>&6
4015 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4016 cat >> confdefs.h
<<EOF
4017 #define $ac_tr_hdr 1
4021 echo "$ac_t""no" 1>&6
4025 for ac_func
in getcwd munmap putenv setenv setlocale strchr strcasecmp \
4026 __argz_count __argz_stringify __argz_next
4028 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4029 echo "configure:4030: checking for $ac_func" >&5
4030 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4031 echo $ac_n "(cached) $ac_c" 1>&6
4033 cat > conftest.
$ac_ext <<EOF
4034 #line 4035 "configure"
4035 #include "confdefs.h"
4036 /* System header to define __stub macros and hopefully few prototypes,
4037 which can conflict with char $ac_func(); below. */
4039 /* Override any gcc2 internal prototype to avoid an error. */
4040 /* We use char because int might match the return type of a gcc2
4041 builtin and then its argument prototype would still apply. */
4046 /* The GNU C library defines this for functions which it implements
4047 to always fail with ENOSYS. Some functions are actually named
4048 something starting with __ and the normal name is an alias. */
4049 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4057 if { (eval echo configure
:4058: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4059 eval "ac_cv_func_$ac_func=yes"
4061 echo "configure: failed program was:" >&5
4062 cat conftest.
$ac_ext >&5
4064 eval "ac_cv_func_$ac_func=no"
4069 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4070 echo "$ac_t""yes" 1>&6
4071 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4072 cat >> confdefs.h
<<EOF
4073 #define $ac_tr_func 1
4077 echo "$ac_t""no" 1>&6
4082 if test "${ac_cv_func_stpcpy+set}" != "set"; then
4083 for ac_func
in stpcpy
4085 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4086 echo "configure:4087: checking for $ac_func" >&5
4087 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4088 echo $ac_n "(cached) $ac_c" 1>&6
4090 cat > conftest.
$ac_ext <<EOF
4091 #line 4092 "configure"
4092 #include "confdefs.h"
4093 /* System header to define __stub macros and hopefully few prototypes,
4094 which can conflict with char $ac_func(); below. */
4096 /* Override any gcc2 internal prototype to avoid an error. */
4097 /* We use char because int might match the return type of a gcc2
4098 builtin and then its argument prototype would still apply. */
4103 /* The GNU C library defines this for functions which it implements
4104 to always fail with ENOSYS. Some functions are actually named
4105 something starting with __ and the normal name is an alias. */
4106 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4114 if { (eval echo configure
:4115: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4116 eval "ac_cv_func_$ac_func=yes"
4118 echo "configure: failed program was:" >&5
4119 cat conftest.
$ac_ext >&5
4121 eval "ac_cv_func_$ac_func=no"
4126 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4127 echo "$ac_t""yes" 1>&6
4128 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4129 cat >> confdefs.h
<<EOF
4130 #define $ac_tr_func 1
4134 echo "$ac_t""no" 1>&6
4139 if test "${ac_cv_func_stpcpy}" = "yes"; then
4140 cat >> confdefs.h
<<\EOF
4141 #define HAVE_STPCPY 1
4146 if test $ac_cv_header_locale_h = yes; then
4147 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
4148 echo "configure:4149: checking for LC_MESSAGES" >&5
4149 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
4150 echo $ac_n "(cached) $ac_c" 1>&6
4152 cat > conftest.
$ac_ext <<EOF
4153 #line 4154 "configure"
4154 #include "confdefs.h"
4160 if { (eval echo configure
:4161: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4162 am_cv_val_LC_MESSAGES
=yes
4164 echo "configure: failed program was:" >&5
4165 cat conftest.
$ac_ext >&5
4167 am_cv_val_LC_MESSAGES
=no
4172 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
4173 if test $am_cv_val_LC_MESSAGES = yes; then
4174 cat >> confdefs.h
<<\EOF
4175 #define HAVE_LC_MESSAGES 1
4180 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
4181 echo "configure:4182: checking whether NLS is requested" >&5
4182 # Check whether --enable-nls or --disable-nls was given.
4183 if test "${enable_nls+set}" = set; then
4184 enableval
="$enable_nls"
4190 echo "$ac_t""$USE_NLS" 1>&6
4193 USE_INCLUDED_LIBINTL
=no
4195 if test "$USE_NLS" = "yes"; then
4196 cat >> confdefs.h
<<\EOF
4197 #define ENABLE_NLS 1
4200 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
4201 echo "configure:4202: checking whether included gettext is requested" >&5
4202 # Check whether --with-included-gettext or --without-included-gettext was given.
4203 if test "${with_included_gettext+set}" = set; then
4204 withval
="$with_included_gettext"
4205 nls_cv_force_use_gnu_gettext
=$withval
4207 nls_cv_force_use_gnu_gettext
=no
4210 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
4212 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
4213 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
4215 nls_cv_header_libgt
=
4218 ac_safe
=`echo "libintl.h" | sed 'y%./+-%__p_%'`
4219 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
4220 echo "configure:4221: checking for libintl.h" >&5
4221 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4222 echo $ac_n "(cached) $ac_c" 1>&6
4224 cat > conftest.
$ac_ext <<EOF
4225 #line 4226 "configure"
4226 #include "confdefs.h"
4227 #include <libintl.h>
4229 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4230 { (eval echo configure
:4231: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4231 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4232 if test -z "$ac_err"; then
4234 eval "ac_cv_header_$ac_safe=yes"
4237 echo "configure: failed program was:" >&5
4238 cat conftest.
$ac_ext >&5
4240 eval "ac_cv_header_$ac_safe=no"
4244 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4245 echo "$ac_t""yes" 1>&6
4246 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
4247 echo "configure:4248: checking for gettext in libc" >&5
4248 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
4249 echo $ac_n "(cached) $ac_c" 1>&6
4251 cat > conftest.
$ac_ext <<EOF
4252 #line 4253 "configure"
4253 #include "confdefs.h"
4254 #include <libintl.h>
4256 return (int) gettext ("")
4259 if { (eval echo configure
:4260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4261 gt_cv_func_gettext_libc
=yes
4263 echo "configure: failed program was:" >&5
4264 cat conftest.
$ac_ext >&5
4266 gt_cv_func_gettext_libc
=no
4271 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
4273 if test "$gt_cv_func_gettext_libc" != "yes"; then
4274 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
4275 echo "configure:4276: checking for bindtextdomain in -lintl" >&5
4276 ac_lib_var
=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
4277 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4278 echo $ac_n "(cached) $ac_c" 1>&6
4280 ac_save_LIBS
="$LIBS"
4282 cat > conftest.
$ac_ext <<EOF
4283 #line 4284 "configure"
4284 #include "confdefs.h"
4285 /* Override any gcc2 internal prototype to avoid an error. */
4286 /* We use char because int might match the return type of a gcc2
4287 builtin and then its argument prototype would still apply. */
4288 char bindtextdomain();
4294 if { (eval echo configure
:4295: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4296 eval "ac_cv_lib_$ac_lib_var=yes"
4298 echo "configure: failed program was:" >&5
4299 cat conftest.
$ac_ext >&5
4301 eval "ac_cv_lib_$ac_lib_var=no"
4304 LIBS
="$ac_save_LIBS"
4307 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4308 echo "$ac_t""yes" 1>&6
4309 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
4310 echo "configure:4311: checking for gettext in libintl" >&5
4311 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
4312 echo $ac_n "(cached) $ac_c" 1>&6
4314 cat > conftest.
$ac_ext <<EOF
4315 #line 4316 "configure"
4316 #include "confdefs.h"
4319 return (int) gettext ("")
4322 if { (eval echo configure
:4323: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4324 gt_cv_func_gettext_libintl
=yes
4326 echo "configure: failed program was:" >&5
4327 cat conftest.
$ac_ext >&5
4329 gt_cv_func_gettext_libintl
=no
4334 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
4336 echo "$ac_t""no" 1>&6
4341 if test "$gt_cv_func_gettext_libc" = "yes" \
4342 ||
test "$gt_cv_func_gettext_libintl" = "yes"; then
4343 cat >> confdefs.h
<<\EOF
4344 #define HAVE_GETTEXT 1
4347 # Extract the first word of "msgfmt", so it can be a program name with args.
4348 set dummy msgfmt
; ac_word
=$2
4349 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4350 echo "configure:4351: checking for $ac_word" >&5
4351 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
4352 echo $ac_n "(cached) $ac_c" 1>&6
4356 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
4359 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
4360 for ac_dir
in $PATH; do
4361 test -z "$ac_dir" && ac_dir
=.
4362 if test -f $ac_dir/$ac_word; then
4363 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
4364 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
4370 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="no"
4374 MSGFMT
="$ac_cv_path_MSGFMT"
4375 if test -n "$MSGFMT"; then
4376 echo "$ac_t""$MSGFMT" 1>&6
4378 echo "$ac_t""no" 1>&6
4380 if test "$MSGFMT" != "no"; then
4381 for ac_func
in dcgettext
4383 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4384 echo "configure:4385: checking for $ac_func" >&5
4385 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4386 echo $ac_n "(cached) $ac_c" 1>&6
4388 cat > conftest.
$ac_ext <<EOF
4389 #line 4390 "configure"
4390 #include "confdefs.h"
4391 /* System header to define __stub macros and hopefully few prototypes,
4392 which can conflict with char $ac_func(); below. */
4394 /* Override any gcc2 internal prototype to avoid an error. */
4395 /* We use char because int might match the return type of a gcc2
4396 builtin and then its argument prototype would still apply. */
4401 /* The GNU C library defines this for functions which it implements
4402 to always fail with ENOSYS. Some functions are actually named
4403 something starting with __ and the normal name is an alias. */
4404 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4412 if { (eval echo configure
:4413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4414 eval "ac_cv_func_$ac_func=yes"
4416 echo "configure: failed program was:" >&5
4417 cat conftest.
$ac_ext >&5
4419 eval "ac_cv_func_$ac_func=no"
4424 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4425 echo "$ac_t""yes" 1>&6
4426 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4427 cat >> confdefs.h
<<EOF
4428 #define $ac_tr_func 1
4432 echo "$ac_t""no" 1>&6
4436 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4437 set dummy gmsgfmt
; ac_word
=$2
4438 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4439 echo "configure:4440: checking for $ac_word" >&5
4440 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
4441 echo $ac_n "(cached) $ac_c" 1>&6
4445 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
4448 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
4451 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
4453 for ac_dir
in $ac_dummy; do
4454 test -z "$ac_dir" && ac_dir
=.
4455 if test -f $ac_dir/$ac_word; then
4456 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
4461 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
4465 GMSGFMT
="$ac_cv_path_GMSGFMT"
4466 if test -n "$GMSGFMT"; then
4467 echo "$ac_t""$GMSGFMT" 1>&6
4469 echo "$ac_t""no" 1>&6
4472 # Extract the first word of "xgettext", so it can be a program name with args.
4473 set dummy xgettext
; ac_word
=$2
4474 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4475 echo "configure:4476: checking for $ac_word" >&5
4476 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
4477 echo $ac_n "(cached) $ac_c" 1>&6
4481 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
4484 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
4485 for ac_dir
in $PATH; do
4486 test -z "$ac_dir" && ac_dir
=.
4487 if test -f $ac_dir/$ac_word; then
4488 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
4489 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
4495 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
4499 XGETTEXT
="$ac_cv_path_XGETTEXT"
4500 if test -n "$XGETTEXT"; then
4501 echo "$ac_t""$XGETTEXT" 1>&6
4503 echo "$ac_t""no" 1>&6
4506 cat > conftest.
$ac_ext <<EOF
4507 #line 4508 "configure"
4508 #include "confdefs.h"
4511 extern int _nl_msg_cat_cntr;
4512 return _nl_msg_cat_cntr
4515 if { (eval echo configure
:4516: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4520 echo "configure: failed program was:" >&5
4521 cat conftest.
$ac_ext >&5
4532 echo "$ac_t""no" 1>&6
4537 if test "$CATOBJEXT" = "NONE"; then
4538 nls_cv_use_gnu_gettext
=yes
4542 if test "$nls_cv_use_gnu_gettext" = "yes"; then
4543 INTLOBJS
="\$(GETTOBJS)"
4544 # Extract the first word of "msgfmt", so it can be a program name with args.
4545 set dummy msgfmt
; ac_word
=$2
4546 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4547 echo "configure:4548: checking for $ac_word" >&5
4548 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
4549 echo $ac_n "(cached) $ac_c" 1>&6
4553 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
4556 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
4557 for ac_dir
in $PATH; do
4558 test -z "$ac_dir" && ac_dir
=.
4559 if test -f $ac_dir/$ac_word; then
4560 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
4561 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
4567 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="msgfmt"
4571 MSGFMT
="$ac_cv_path_MSGFMT"
4572 if test -n "$MSGFMT"; then
4573 echo "$ac_t""$MSGFMT" 1>&6
4575 echo "$ac_t""no" 1>&6
4578 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4579 set dummy gmsgfmt
; ac_word
=$2
4580 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4581 echo "configure:4582: checking for $ac_word" >&5
4582 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
4583 echo $ac_n "(cached) $ac_c" 1>&6
4587 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
4590 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
4593 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
4595 for ac_dir
in $ac_dummy; do
4596 test -z "$ac_dir" && ac_dir
=.
4597 if test -f $ac_dir/$ac_word; then
4598 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
4603 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
4607 GMSGFMT
="$ac_cv_path_GMSGFMT"
4608 if test -n "$GMSGFMT"; then
4609 echo "$ac_t""$GMSGFMT" 1>&6
4611 echo "$ac_t""no" 1>&6
4614 # Extract the first word of "xgettext", so it can be a program name with args.
4615 set dummy xgettext
; ac_word
=$2
4616 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4617 echo "configure:4618: checking for $ac_word" >&5
4618 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
4619 echo $ac_n "(cached) $ac_c" 1>&6
4623 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
4626 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
4627 for ac_dir
in $PATH; do
4628 test -z "$ac_dir" && ac_dir
=.
4629 if test -f $ac_dir/$ac_word; then
4630 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
4631 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
4637 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
4641 XGETTEXT
="$ac_cv_path_XGETTEXT"
4642 if test -n "$XGETTEXT"; then
4643 echo "$ac_t""$XGETTEXT" 1>&6
4645 echo "$ac_t""no" 1>&6
4649 USE_INCLUDED_LIBINTL
=yes
4653 INTLDEPS
='$(top_builddir)/../intl/libintl.a'
4655 LIBS
=`echo $LIBS | sed -e 's/-lintl//'`
4656 nls_cv_header_intl
=libintl.h
4657 nls_cv_header_libgt
=libgettext.h
4660 if test "$XGETTEXT" != ":"; then
4661 if $XGETTEXT --omit-header /dev
/null
2> /dev
/null
; then
4664 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
4669 # We need to process the po/ directory.
4673 nls_cv_header_intl
=libintl.h
4674 nls_cv_header_libgt
=libgettext.h
4677 # If this is used in GNU gettext we have to set USE_NLS to `yes'
4678 # because some of the sources are only built for this goal.
4679 if test "$PACKAGE" = gettext; then
4681 USE_INCLUDED_LIBINTL
=yes
4684 for lang
in $ALL_LINGUAS; do
4685 GMOFILES
="$GMOFILES $lang.gmo"
4686 POFILES
="$POFILES $lang.po"
4702 if test "x$CATOBJEXT" != "x"; then
4703 if test "x$ALL_LINGUAS" = "x"; then
4706 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
4707 echo "configure:4708: checking for catalogs to be installed" >&5
4709 for lang
in ${LINGUAS=$ALL_LINGUAS}; do
4710 case "$ALL_LINGUAS" in
4711 *$lang*) NEW_LINGUAS
="$NEW_LINGUAS $lang" ;;
4714 LINGUAS
=$NEW_LINGUAS
4715 echo "$ac_t""$LINGUAS" 1>&6
4718 if test -n "$LINGUAS"; then
4719 for lang
in $LINGUAS; do CATALOGS
="$CATALOGS $lang$CATOBJEXT"; done
4723 if test $ac_cv_header_locale_h = yes; then
4724 INCLUDE_LOCALE_H
="#include <locale.h>"
4727 /* The system does not provide the header <locale.h>. Take care yourself. */"
4731 if test -f $srcdir/po2tbl.
sed.
in; then
4732 if test "$CATOBJEXT" = ".cat"; then
4733 ac_safe
=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
4734 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
4735 echo "configure:4736: checking for linux/version.h" >&5
4736 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4737 echo $ac_n "(cached) $ac_c" 1>&6
4739 cat > conftest.
$ac_ext <<EOF
4740 #line 4741 "configure"
4741 #include "confdefs.h"
4742 #include <linux/version.h>
4744 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4745 { (eval echo configure
:4746: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4746 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4747 if test -z "$ac_err"; then
4749 eval "ac_cv_header_$ac_safe=yes"
4752 echo "configure: failed program was:" >&5
4753 cat conftest.
$ac_ext >&5
4755 eval "ac_cv_header_$ac_safe=no"
4759 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4760 echo "$ac_t""yes" 1>&6
4763 echo "$ac_t""no" 1>&6
4768 sed -e '/^#/d' $srcdir/$msgformat-msg.
sed > po2msg.
sed
4770 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
4771 $srcdir/po2tbl.
sed.
in > po2tbl.
sed
4774 if test "$PACKAGE" = "gettext"; then
4784 MKINSTALLDIRS
="\$(srcdir)/../../mkinstalldirs"
4790 if test -d $srcdir/po
; then
4791 test -d po || mkdir po
4792 if test "x$srcdir" != "x."; then
4793 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
4794 posrcprefix
="$srcdir/"
4796 posrcprefix
="../$srcdir/"
4802 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
4803 < $srcdir/po
/POTFILES.
in > po
/POTFILES
4807 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
4808 echo "configure:4809: checking whether to enable maintainer-specific portions of Makefiles" >&5
4809 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4810 if test "${enable_maintainer_mode+set}" = set; then
4811 enableval
="$enable_maintainer_mode"
4812 USE_MAINTAINER_MODE
=$enableval
4814 USE_MAINTAINER_MODE
=no
4817 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
4820 if test $USE_MAINTAINER_MODE = yes; then
4821 MAINTAINER_MODE_TRUE
=
4822 MAINTAINER_MODE_FALSE
='#'
4824 MAINTAINER_MODE_TRUE
='#'
4825 MAINTAINER_MODE_FALSE
=
4827 MAINT
=$MAINTAINER_MODE_TRUE
4830 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
4831 echo "configure:4832: checking for Cygwin environment" >&5
4832 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
4833 echo $ac_n "(cached) $ac_c" 1>&6
4835 cat > conftest.
$ac_ext <<EOF
4836 #line 4837 "configure"
4837 #include "confdefs.h"
4842 #define __CYGWIN__ __CYGWIN32__
4847 if { (eval echo configure
:4848: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4851 echo "configure: failed program was:" >&5
4852 cat conftest.
$ac_ext >&5
4860 echo "$ac_t""$ac_cv_cygwin" 1>&6
4862 test "$ac_cv_cygwin" = yes && CYGWIN
=yes
4863 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
4864 echo "configure:4865: checking for mingw32 environment" >&5
4865 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
4866 echo $ac_n "(cached) $ac_c" 1>&6
4868 cat > conftest.
$ac_ext <<EOF
4869 #line 4870 "configure"
4870 #include "confdefs.h"
4876 if { (eval echo configure
:4877: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4880 echo "configure: failed program was:" >&5
4881 cat conftest.
$ac_ext >&5
4889 echo "$ac_t""$ac_cv_mingw32" 1>&6
4891 test "$ac_cv_mingw32" = yes && MINGW32
=yes
4894 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
4895 echo "configure:4896: checking for executable suffix" >&5
4896 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
4897 echo $ac_n "(cached) $ac_c" 1>&6
4899 if test "$CYGWIN" = yes ||
test "$MINGW32" = yes; then
4903 echo 'int main () { return 0; }' > conftest.
$ac_ext
4905 if { (eval echo configure
:4906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
4906 for file in conftest.
*; do
4908 *.c |
*.o |
*.obj |
*.ilk |
*.pdb
) ;;
4909 *) ac_cv_exeext
=`echo $file | sed -e s/conftest//` ;;
4913 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
4916 test x
"${ac_cv_exeext}" = x
&& ac_cv_exeext
=no
4921 test x
"${ac_cv_exeext}" != xno
&& EXEEXT
=${ac_cv_exeext}
4922 echo "$ac_t""${ac_cv_exeext}" 1>&6
4926 for ac_hdr
in string.h stdlib.h memory.h
strings.h unistd.h stdarg.h varargs.h errno.h sys
/types.h
4928 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4929 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4930 echo "configure:4931: checking for $ac_hdr" >&5
4931 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4932 echo $ac_n "(cached) $ac_c" 1>&6
4934 cat > conftest.
$ac_ext <<EOF
4935 #line 4936 "configure"
4936 #include "confdefs.h"
4939 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4940 { (eval echo configure
:4941: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4941 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4942 if test -z "$ac_err"; then
4944 eval "ac_cv_header_$ac_safe=yes"
4947 echo "configure: failed program was:" >&5
4948 cat conftest.
$ac_ext >&5
4950 eval "ac_cv_header_$ac_safe=no"
4954 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4955 echo "$ac_t""yes" 1>&6
4956 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4957 cat >> confdefs.h
<<EOF
4958 #define $ac_tr_hdr 1
4962 echo "$ac_t""no" 1>&6
4967 # Put this here so that autoconf's "cross-compiling" message doesn't confuse
4968 # people who are not cross-compiling but are compiling cross-assemblers.
4969 echo $ac_n "checking whether compiling a cross-assembler""... $ac_c" 1>&6
4970 echo "configure:4971: checking whether compiling a cross-assembler" >&5
4971 if test "${host}" = "${target}"; then
4975 cat >> confdefs.h
<<\EOF
4976 #define CROSS_COMPILE 1
4980 echo "$ac_t""$cross_gas" 1>&6
4982 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4983 # for constant arguments. Useless!
4984 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
4985 echo "configure:4986: checking for working alloca.h" >&5
4986 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
4987 echo $ac_n "(cached) $ac_c" 1>&6
4989 cat > conftest.
$ac_ext <<EOF
4990 #line 4991 "configure"
4991 #include "confdefs.h"
4994 char *p = alloca(2 * sizeof(int));
4997 if { (eval echo configure
:4998: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4999 ac_cv_header_alloca_h
=yes
5001 echo "configure: failed program was:" >&5
5002 cat conftest.
$ac_ext >&5
5004 ac_cv_header_alloca_h
=no
5009 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
5010 if test $ac_cv_header_alloca_h = yes; then
5011 cat >> confdefs.h
<<\EOF
5012 #define HAVE_ALLOCA_H 1
5017 echo $ac_n "checking for alloca""... $ac_c" 1>&6
5018 echo "configure:5019: checking for alloca" >&5
5019 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
5020 echo $ac_n "(cached) $ac_c" 1>&6
5022 cat > conftest.
$ac_ext <<EOF
5023 #line 5024 "configure"
5024 #include "confdefs.h"
5027 # define alloca __builtin_alloca
5030 # include <malloc.h>
5031 # define alloca _alloca
5034 # include <alloca.h>
5039 # ifndef alloca /* predefined by HP cc +Olibcalls */
5048 char *p = (char *) alloca(1);
5051 if { (eval echo configure
:5052: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5053 ac_cv_func_alloca_works
=yes
5055 echo "configure: failed program was:" >&5
5056 cat conftest.
$ac_ext >&5
5058 ac_cv_func_alloca_works
=no
5063 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
5064 if test $ac_cv_func_alloca_works = yes; then
5065 cat >> confdefs.h
<<\EOF
5066 #define HAVE_ALLOCA 1
5071 if test $ac_cv_func_alloca_works = no
; then
5072 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5073 # that cause trouble. Some versions do not even contain alloca or
5074 # contain a buggy version. If you still want to use their alloca,
5075 # use ar to extract alloca.o from them instead of compiling alloca.c.
5076 ALLOCA
=alloca.
${ac_objext}
5077 cat >> confdefs.h
<<\EOF
5082 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
5083 echo "configure:5084: checking whether alloca needs Cray hooks" >&5
5084 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
5085 echo $ac_n "(cached) $ac_c" 1>&6
5087 cat > conftest.
$ac_ext <<EOF
5088 #line 5089 "configure"
5089 #include "confdefs.h"
5090 #if defined(CRAY) && ! defined(CRAY2)
5097 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5098 egrep "webecray" >/dev
/null
2>&1; then
5109 echo "$ac_t""$ac_cv_os_cray" 1>&6
5110 if test $ac_cv_os_cray = yes; then
5111 for ac_func
in _getb67 GETB67 getb67
; do
5112 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5113 echo "configure:5114: checking for $ac_func" >&5
5114 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5115 echo $ac_n "(cached) $ac_c" 1>&6
5117 cat > conftest.
$ac_ext <<EOF
5118 #line 5119 "configure"
5119 #include "confdefs.h"
5120 /* System header to define __stub macros and hopefully few prototypes,
5121 which can conflict with char $ac_func(); below. */
5123 /* Override any gcc2 internal prototype to avoid an error. */
5124 /* We use char because int might match the return type of a gcc2
5125 builtin and then its argument prototype would still apply. */
5130 /* The GNU C library defines this for functions which it implements
5131 to always fail with ENOSYS. Some functions are actually named
5132 something starting with __ and the normal name is an alias. */
5133 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5141 if { (eval echo configure
:5142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5143 eval "ac_cv_func_$ac_func=yes"
5145 echo "configure: failed program was:" >&5
5146 cat conftest.
$ac_ext >&5
5148 eval "ac_cv_func_$ac_func=no"
5153 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5154 echo "$ac_t""yes" 1>&6
5155 cat >> confdefs.h
<<EOF
5156 #define CRAY_STACKSEG_END $ac_func
5161 echo "$ac_t""no" 1>&6
5167 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
5168 echo "configure:5169: checking stack direction for C alloca" >&5
5169 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
5170 echo $ac_n "(cached) $ac_c" 1>&6
5172 if test "$cross_compiling" = yes; then
5173 ac_cv_c_stack_direction
=0
5175 cat > conftest.
$ac_ext <<EOF
5176 #line 5177 "configure"
5177 #include "confdefs.h"
5178 find_stack_direction ()
5180 static char *addr = 0;
5185 return find_stack_direction ();
5188 return (&dummy > addr) ? 1 : -1;
5192 exit (find_stack_direction() < 0);
5195 if { (eval echo configure
:5196: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
5197 ac_cv_c_stack_direction
=1
5199 echo "configure: failed program was:" >&5
5200 cat conftest.
$ac_ext >&5
5202 ac_cv_c_stack_direction
=-1
5209 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
5210 cat >> confdefs.h
<<EOF
5211 #define STACK_DIRECTION $ac_cv_c_stack_direction
5216 echo $ac_n "checking for inline""... $ac_c" 1>&6
5217 echo "configure:5218: checking for inline" >&5
5218 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
5219 echo $ac_n "(cached) $ac_c" 1>&6
5222 for ac_kw
in inline __inline__ __inline
; do
5223 cat > conftest.
$ac_ext <<EOF
5224 #line 5225 "configure"
5225 #include "confdefs.h"
5231 if { (eval echo configure
:5232: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5233 ac_cv_c_inline
=$ac_kw; break
5235 echo "configure: failed program was:" >&5
5236 cat conftest.
$ac_ext >&5
5243 echo "$ac_t""$ac_cv_c_inline" 1>&6
5244 case "$ac_cv_c_inline" in
5246 no
) cat >> confdefs.h
<<\EOF
5250 *) cat >> confdefs.h
<<EOF
5251 #define inline $ac_cv_c_inline
5257 # VMS doesn't have unlink.
5258 for ac_func
in unlink remove
5260 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5261 echo "configure:5262: checking for $ac_func" >&5
5262 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5263 echo $ac_n "(cached) $ac_c" 1>&6
5265 cat > conftest.
$ac_ext <<EOF
5266 #line 5267 "configure"
5267 #include "confdefs.h"
5268 /* System header to define __stub macros and hopefully few prototypes,
5269 which can conflict with char $ac_func(); below. */
5271 /* Override any gcc2 internal prototype to avoid an error. */
5272 /* We use char because int might match the return type of a gcc2
5273 builtin and then its argument prototype would still apply. */
5278 /* The GNU C library defines this for functions which it implements
5279 to always fail with ENOSYS. Some functions are actually named
5280 something starting with __ and the normal name is an alias. */
5281 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5289 if { (eval echo configure
:5290: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5291 eval "ac_cv_func_$ac_func=yes"
5293 echo "configure: failed program was:" >&5
5294 cat conftest.
$ac_ext >&5
5296 eval "ac_cv_func_$ac_func=no"
5301 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5302 echo "$ac_t""yes" 1>&6
5303 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5304 cat >> confdefs.h
<<EOF
5305 #define $ac_tr_func 1
5309 echo "$ac_t""no" 1>&6
5314 # Some systems don't have sbrk().
5317 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5318 echo "configure:5319: checking for $ac_func" >&5
5319 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5320 echo $ac_n "(cached) $ac_c" 1>&6
5322 cat > conftest.
$ac_ext <<EOF
5323 #line 5324 "configure"
5324 #include "confdefs.h"
5325 /* System header to define __stub macros and hopefully few prototypes,
5326 which can conflict with char $ac_func(); below. */
5328 /* Override any gcc2 internal prototype to avoid an error. */
5329 /* We use char because int might match the return type of a gcc2
5330 builtin and then its argument prototype would still apply. */
5335 /* The GNU C library defines this for functions which it implements
5336 to always fail with ENOSYS. Some functions are actually named
5337 something starting with __ and the normal name is an alias. */
5338 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5346 if { (eval echo configure
:5347: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5348 eval "ac_cv_func_$ac_func=yes"
5350 echo "configure: failed program was:" >&5
5351 cat conftest.
$ac_ext >&5
5353 eval "ac_cv_func_$ac_func=no"
5358 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5359 echo "$ac_t""yes" 1>&6
5360 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5361 cat >> confdefs.h
<<EOF
5362 #define $ac_tr_func 1
5366 echo "$ac_t""no" 1>&6
5371 # Some non-ANSI preprocessors botch requoting inside strings. That's bad
5372 # enough, but on some of those systems, the assert macro relies on requoting
5374 echo $ac_n "checking for working assert macro""... $ac_c" 1>&6
5375 echo "configure:5376: checking for working assert macro" >&5
5376 if eval "test \"`echo '$''{'gas_cv_assert_ok'+set}'`\" = set"; then
5377 echo $ac_n "(cached) $ac_c" 1>&6
5379 cat > conftest.
$ac_ext <<EOF
5380 #line 5381 "configure"
5381 #include "confdefs.h"
5386 /* check for requoting problems */
5387 static int a, b, c, d;
5389 assert (!strcmp(s, "foo bar baz quux"));
5390 /* check for newline handling */
5396 if { (eval echo configure
:5397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5398 gas_cv_assert_ok
=yes
5400 echo "configure: failed program was:" >&5
5401 cat conftest.
$ac_ext >&5
5407 echo "$ac_t""$gas_cv_assert_ok" 1>&6
5408 test $gas_cv_assert_ok = yes ||
cat >> confdefs.h
<<\EOF
5409 #define BROKEN_ASSERT 1
5414 # On some systems, the system header files may not declare malloc, realloc,
5415 # and free. There are places where gas needs these functions to have been
5416 # declared -- such as when taking their addresses.
5418 #ifdef HAVE_MEMORY_H
5421 #ifdef HAVE_STRING_H
5424 #ifdef HAVE_STRINGS_H
5425 #include <strings.h>
5428 #ifdef HAVE_STDLIB_H
5431 #ifdef HAVE_UNISTD_H
5436 echo $ac_n "checking whether declaration is required for strstr""... $ac_c" 1>&6
5437 echo "configure:5438: checking whether declaration is required for strstr" >&5
5438 if eval "test \"`echo '$''{'gas_cv_decl_needed_strstr'+set}'`\" = set"; then
5439 echo $ac_n "(cached) $ac_c" 1>&6
5441 cat > conftest.
$ac_ext <<EOF
5442 #line 5443 "configure"
5443 #include "confdefs.h"
5447 typedef char *(*f)();
5453 if { (eval echo configure
:5454: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5455 gas_cv_decl_needed_strstr
=no
5457 echo "configure: failed program was:" >&5
5458 cat conftest.
$ac_ext >&5
5460 gas_cv_decl_needed_strstr
=yes
5464 echo "$ac_t""$gas_cv_decl_needed_strstr" 1>&6
5465 if test $gas_cv_decl_needed_strstr = yes; then
5466 cat >> confdefs.h
<<\EOF
5467 #define NEED_DECLARATION_STRSTR 1
5473 echo $ac_n "checking whether declaration is required for malloc""... $ac_c" 1>&6
5474 echo "configure:5475: checking whether declaration is required for malloc" >&5
5475 if eval "test \"`echo '$''{'gas_cv_decl_needed_malloc'+set}'`\" = set"; then
5476 echo $ac_n "(cached) $ac_c" 1>&6
5478 cat > conftest.
$ac_ext <<EOF
5479 #line 5480 "configure"
5480 #include "confdefs.h"
5484 typedef char *(*f)();
5490 if { (eval echo configure
:5491: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5492 gas_cv_decl_needed_malloc
=no
5494 echo "configure: failed program was:" >&5
5495 cat conftest.
$ac_ext >&5
5497 gas_cv_decl_needed_malloc
=yes
5501 echo "$ac_t""$gas_cv_decl_needed_malloc" 1>&6
5502 if test $gas_cv_decl_needed_malloc = yes; then
5503 cat >> confdefs.h
<<\EOF
5504 #define NEED_DECLARATION_MALLOC 1
5510 echo $ac_n "checking whether declaration is required for free""... $ac_c" 1>&6
5511 echo "configure:5512: checking whether declaration is required for free" >&5
5512 if eval "test \"`echo '$''{'gas_cv_decl_needed_free'+set}'`\" = set"; then
5513 echo $ac_n "(cached) $ac_c" 1>&6
5515 cat > conftest.
$ac_ext <<EOF
5516 #line 5517 "configure"
5517 #include "confdefs.h"
5521 typedef void (*f)();
5527 if { (eval echo configure
:5528: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5529 gas_cv_decl_needed_free
=no
5531 echo "configure: failed program was:" >&5
5532 cat conftest.
$ac_ext >&5
5534 gas_cv_decl_needed_free
=yes
5538 echo "$ac_t""$gas_cv_decl_needed_free" 1>&6
5539 if test $gas_cv_decl_needed_free = yes; then
5540 cat >> confdefs.h
<<\EOF
5541 #define NEED_DECLARATION_FREE 1
5547 echo $ac_n "checking whether declaration is required for sbrk""... $ac_c" 1>&6
5548 echo "configure:5549: checking whether declaration is required for sbrk" >&5
5549 if eval "test \"`echo '$''{'gas_cv_decl_needed_sbrk'+set}'`\" = set"; then
5550 echo $ac_n "(cached) $ac_c" 1>&6
5552 cat > conftest.
$ac_ext <<EOF
5553 #line 5554 "configure"
5554 #include "confdefs.h"
5558 typedef char *(*f)();
5564 if { (eval echo configure
:5565: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5566 gas_cv_decl_needed_sbrk
=no
5568 echo "configure: failed program was:" >&5
5569 cat conftest.
$ac_ext >&5
5571 gas_cv_decl_needed_sbrk
=yes
5575 echo "$ac_t""$gas_cv_decl_needed_sbrk" 1>&6
5576 if test $gas_cv_decl_needed_sbrk = yes; then
5577 cat >> confdefs.h
<<\EOF
5578 #define NEED_DECLARATION_SBRK 1
5584 echo $ac_n "checking whether declaration is required for environ""... $ac_c" 1>&6
5585 echo "configure:5586: checking whether declaration is required for environ" >&5
5586 if eval "test \"`echo '$''{'gas_cv_decl_needed_environ'+set}'`\" = set"; then
5587 echo $ac_n "(cached) $ac_c" 1>&6
5589 cat > conftest.
$ac_ext <<EOF
5590 #line 5591 "configure"
5591 #include "confdefs.h"
5601 if { (eval echo configure
:5602: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5603 gas_cv_decl_needed_environ
=no
5605 echo "configure: failed program was:" >&5
5606 cat conftest.
$ac_ext >&5
5608 gas_cv_decl_needed_environ
=yes
5612 echo "$ac_t""$gas_cv_decl_needed_environ" 1>&6
5613 if test $gas_cv_decl_needed_environ = yes; then
5614 cat >> confdefs.h
<<\EOF
5615 #define NEED_DECLARATION_ENVIRON 1
5621 # Does errno.h declare errno, or do we have to add a separate declaration
5624 echo $ac_n "checking whether declaration is required for errno""... $ac_c" 1>&6
5625 echo "configure:5626: checking whether declaration is required for errno" >&5
5626 if eval "test \"`echo '$''{'gas_cv_decl_needed_errno'+set}'`\" = set"; then
5627 echo $ac_n "(cached) $ac_c" 1>&6
5629 cat > conftest.
$ac_ext <<EOF
5630 #line 5631 "configure"
5631 #include "confdefs.h"
5645 if { (eval echo configure
:5646: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5647 gas_cv_decl_needed_errno
=no
5649 echo "configure: failed program was:" >&5
5650 cat conftest.
$ac_ext >&5
5652 gas_cv_decl_needed_errno
=yes
5656 echo "$ac_t""$gas_cv_decl_needed_errno" 1>&6
5657 if test $gas_cv_decl_needed_errno = yes; then
5658 cat >> confdefs.h
<<\EOF
5659 #define NEED_DECLARATION_ERRNO 1
5668 cat > confcache
<<\EOF
5669 # This file is a shell script that caches the results of configure
5670 # tests run on this system so they can be shared between configure
5671 # scripts and configure runs. It is not useful on other systems.
5672 # If it contains results you don't want to keep, you may remove or edit it.
5674 # By default, configure uses ./config.cache as the cache file,
5675 # creating it if it does not exist already. You can give configure
5676 # the --cache-file=FILE option to use a different cache file; that is
5677 # what configure does when it calls configure scripts in
5678 # subdirectories, so they share the cache.
5679 # Giving --cache-file=/dev/null disables caching, for debugging configure.
5680 # config.status only pays attention to the cache file if you give it the
5681 # --recheck option to rerun configure.
5684 # The following way of writing the cache mishandles newlines in values,
5685 # but we know of no workaround that is simple, portable, and efficient.
5686 # So, don't put newlines in cache variables' values.
5687 # Ultrix sh set writes to stderr and can't be redirected directly,
5688 # and sets the high bit in the cache file unless we assign to the vars.
5690 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5692 # `set' does not quote correctly, so add quotes (double-quote substitution
5693 # turns \\\\ into \\, and sed turns \\ into \).
5695 -e "s/'/'\\\\''/g" \
5696 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
5699 # `set' quotes correctly as required by POSIX, so do not add quotes.
5700 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
5703 if cmp -s $cache_file confcache
; then
5706 if test -w $cache_file; then
5707 echo "updating cache $cache_file"
5708 cat confcache
> $cache_file
5710 echo "not updating unwritable cache $cache_file"
5715 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
5717 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
5718 # Let make expand exec_prefix.
5719 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
5721 # Any assignment to VPATH causes Sun make to only execute
5722 # the first set of double-colon rules, so remove it if not needed.
5723 # If there is a colon in the path, we need to keep it.
5724 if test "x$srcdir" = x.
; then
5725 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
5728 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
5730 DEFS
=-DHAVE_CONFIG_H
5732 # Without the "./", some shells look in PATH for config.status.
5733 : ${CONFIG_STATUS=./config.status}
5735 echo creating
$CONFIG_STATUS
5736 rm -f $CONFIG_STATUS
5737 cat > $CONFIG_STATUS <<EOF
5739 # Generated automatically by configure.
5740 # Run this file to recreate the current configuration.
5741 # This directory was configured as follows,
5742 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5744 # $0 $ac_configure_args
5746 # Compiler output produced by configure, useful for debugging
5747 # configure, is in ./config.log if it exists.
5749 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
5752 case "\$ac_option" in
5753 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5754 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
5755 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
5756 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
5757 echo "$CONFIG_STATUS generated by autoconf version 2.13"
5759 -help | --help | --hel | --he | --h)
5760 echo "\$ac_cs_usage"; exit 0 ;;
5761 *) echo "\$ac_cs_usage"; exit 1 ;;
5765 ac_given_srcdir=$srcdir
5766 ac_given_INSTALL="$INSTALL"
5768 trap 'rm -fr `echo "Makefile doc/Makefile .gdbinit:gdbinit.in po/Makefile.in:po/Make-in config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
5770 cat >> $CONFIG_STATUS <<EOF
5772 # Protect against being on the right side of a sed subst in config.status.
5773 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
5774 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
5778 s%@CFLAGS@%$CFLAGS%g
5779 s%@CPPFLAGS@%$CPPFLAGS%g
5780 s%@CXXFLAGS@%$CXXFLAGS%g
5781 s%@FFLAGS@%$FFLAGS%g
5783 s%@LDFLAGS@%$LDFLAGS%g
5785 s%@exec_prefix@%$exec_prefix%g
5786 s%@prefix@%$prefix%g
5787 s%@program_transform_name@%$program_transform_name%g
5788 s%@bindir@%$bindir%g
5789 s%@sbindir@%$sbindir%g
5790 s%@libexecdir@%$libexecdir%g
5791 s%@datadir@%$datadir%g
5792 s%@sysconfdir@%$sysconfdir%g
5793 s%@sharedstatedir@%$sharedstatedir%g
5794 s%@localstatedir@%$localstatedir%g
5795 s%@libdir@%$libdir%g
5796 s%@includedir@%$includedir%g
5797 s%@oldincludedir@%$oldincludedir%g
5798 s%@infodir@%$infodir%g
5799 s%@mandir@%$mandir%g
5801 s%@host_alias@%$host_alias%g
5802 s%@host_cpu@%$host_cpu%g
5803 s%@host_vendor@%$host_vendor%g
5804 s%@host_os@%$host_os%g
5805 s%@target@%$target%g
5806 s%@target_alias@%$target_alias%g
5807 s%@target_cpu@%$target_cpu%g
5808 s%@target_vendor@%$target_vendor%g
5809 s%@target_os@%$target_os%g
5811 s%@build_alias@%$build_alias%g
5812 s%@build_cpu@%$build_cpu%g
5813 s%@build_vendor@%$build_vendor%g
5814 s%@build_os@%$build_os%g
5815 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
5816 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
5817 s%@INSTALL_DATA@%$INSTALL_DATA%g
5818 s%@PACKAGE@%$PACKAGE%g
5819 s%@VERSION@%$VERSION%g
5820 s%@ACLOCAL@%$ACLOCAL%g
5821 s%@AUTOCONF@%$AUTOCONF%g
5822 s%@AUTOMAKE@%$AUTOMAKE%g
5823 s%@AUTOHEADER@%$AUTOHEADER%g
5824 s%@MAKEINFO@%$MAKEINFO%g
5825 s%@SET_MAKE@%$SET_MAKE%g
5826 s%@RANLIB@%$RANLIB%g
5830 s%@USE_SYMBOL_UNDERSCORE@%$USE_SYMBOL_UNDERSCORE%g
5832 s%@DLLTOOL@%$DLLTOOL%g
5834 s%@LIBTOOL@%$LIBTOOL%g
5835 s%@cgen_cpu_prefix@%$cgen_cpu_prefix%g
5836 s%@extra_objects@%$extra_objects%g
5837 s%@target_cpu_type@%$target_cpu_type%g
5838 s%@obj_format@%$obj_format%g
5839 s%@te_file@%$te_file%g
5840 s%@install_tooldir@%$install_tooldir%g
5842 s%@BFDLIB@%$BFDLIB%g
5843 s%@OPCODES_LIB@%$OPCODES_LIB%g
5844 s%@ALL_OBJ_DEPS@%$ALL_OBJ_DEPS%g
5847 s%@LEXLIB@%$LEXLIB%g
5849 s%@LEX_OUTPUT_ROOT@%$LEX_OUTPUT_ROOT%g
5850 s%@ALLOCA@%$ALLOCA%g
5851 s%@USE_NLS@%$USE_NLS%g
5852 s%@MSGFMT@%$MSGFMT%g
5853 s%@GMSGFMT@%$GMSGFMT%g
5854 s%@XGETTEXT@%$XGETTEXT%g
5855 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
5856 s%@CATALOGS@%$CATALOGS%g
5857 s%@CATOBJEXT@%$CATOBJEXT%g
5858 s%@DATADIRNAME@%$DATADIRNAME%g
5859 s%@GMOFILES@%$GMOFILES%g
5860 s%@INSTOBJEXT@%$INSTOBJEXT%g
5861 s%@INTLDEPS@%$INTLDEPS%g
5862 s%@INTLLIBS@%$INTLLIBS%g
5863 s%@INTLOBJS@%$INTLOBJS%g
5864 s%@POFILES@%$POFILES%g
5866 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
5868 s%@GT_YES@%$GT_YES%g
5869 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
5871 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
5872 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
5874 s%@EXEEXT@%$EXEEXT%g
5879 cat >> $CONFIG_STATUS <<\EOF
5881 # Split the substitutions into bite-sized pieces for seds with
5882 # small command number limits, like on Digital OSF/1 and HP-UX.
5883 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
5884 ac_file
=1 # Number of current file.
5885 ac_beg
=1 # First line for current file.
5886 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
5889 while $ac_more_lines; do
5890 if test $ac_beg -gt 1; then
5891 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
5893 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
5895 if test ! -s conftest.s
$ac_file; then
5897 rm -f conftest.s
$ac_file
5899 if test -z "$ac_sed_cmds"; then
5900 ac_sed_cmds
="sed -f conftest.s$ac_file"
5902 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
5904 ac_file
=`expr $ac_file + 1`
5906 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
5909 if test -z "$ac_sed_cmds"; then
5914 cat >> $CONFIG_STATUS <<EOF
5916 CONFIG_FILES=\${CONFIG_FILES-"Makefile doc/Makefile .gdbinit:gdbinit.in po/Makefile.in:po/Make-in"}
5918 cat >> $CONFIG_STATUS <<\EOF
5919 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
5920 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5922 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
5923 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
5924 *) ac_file_in
="${ac_file}.in" ;;
5927 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
5929 # Remove last slash and all that follows it. Not all systems have dirname.
5930 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5931 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
5932 # The file is in a subdirectory.
5933 test ! -d "$ac_dir" && mkdir
"$ac_dir"
5934 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
5935 # A "../" for each directory in $ac_dir_suffix.
5936 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
5938 ac_dir_suffix
= ac_dots
=
5941 case "$ac_given_srcdir" in
5943 if test -z "$ac_dots"; then top_srcdir
=.
5944 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
5945 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
5947 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
5948 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
5951 case "$ac_given_INSTALL" in
5952 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
5953 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
5956 echo creating
"$ac_file"
5958 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
5960 *Makefile
*) ac_comsub
="1i\\
5961 # $configure_input" ;;
5965 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5967 s%@configure_input@%$configure_input%g
5968 s%@srcdir@%$srcdir%g
5969 s%@top_srcdir@%$top_srcdir%g
5970 s%@INSTALL@%$INSTALL%g
5971 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
5975 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5976 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5978 # ac_d sets the value in "#define NAME VALUE" lines.
5979 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5980 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
5983 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
5984 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5985 ac_uB
='\([ ]\)%\1#\2define\3'
5988 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5989 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5990 ac_eB
='$%\1#\2define\3'
5994 if test "${CONFIG_HEADERS+set}" != set; then
5996 cat >> $CONFIG_STATUS <<EOF
5997 CONFIG_HEADERS="config.h:config.in"
5999 cat >> $CONFIG_STATUS <<\EOF
6001 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
6002 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6004 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
6005 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
6006 *) ac_file_in
="${ac_file}.in" ;;
6009 echo creating
$ac_file
6011 rm -f conftest.frag conftest.
in conftest.out
6012 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6013 cat $ac_file_inputs > conftest.
in
6017 # Transform confdefs.h into a sed script conftest.vals that substitutes
6018 # the proper values into config.h.in to produce config.h. And first:
6019 # Protect against being on the right side of a sed subst in config.status.
6020 # Protect against being in an unquoted here document in config.status.
6022 cat > conftest.hdr
<<\EOF
6025 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
6029 sed -n -f conftest.hdr confdefs.h > conftest.vals
6032 # This sed command replaces #undef with comments. This is necessary, for
6033 # example, in the case of _POSIX_SOURCE, which is predefined and required
6034 # on some systems where configure will not decide to define it.
6035 cat >> conftest.vals <<\EOF
6036 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
6039 # Break up conftest.vals because some shells have a limit on
6040 # the size of here documents, and old seds have small limits too.
6045 ac_lines=`grep -c . conftest.vals
`
6046 # grep -c gives empty output for an empty file on some AIX systems.
6047 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
6048 # Write a limited-size here document to conftest.frag.
6049 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
6050 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
6052 sed -f conftest.frag conftest.in > conftest.out
6054 mv conftest.out conftest.in
6056 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
6058 mv conftest.tail conftest.vals
6062 cat >> $CONFIG_STATUS <<\EOF
6063 rm -f conftest.frag conftest.h
6064 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
6065 cat conftest.in >> conftest.h
6067 if cmp -s $ac_file conftest.h 2>/dev/null; then
6068 echo "$ac_file is unchanged"
6071 # Remove last slash and all that follows it. Not all systems have dirname.
6072 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
6073 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6074 # The file is in a subdirectory.
6075 test ! -d "$ac_dir" && mkdir "$ac_dir"
6078 mv conftest.h $ac_file
6083 cat >> $CONFIG_STATUS <<EOF
6085 target_cpu_type=${target_cpu_type}
6086 cgen_cpu_prefix=${cgen_cpu_prefix}
6087 obj_format=${obj_format}
6090 cat >> $CONFIG_STATUS <<\EOF
6091 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
6092 rm -f targ-cpu.c targ-cpu.h obj-format.h obj-format.c targ-env.h atof-targ.c itbl-cpu.h
6093 echo '#include "tc-'"${target_cpu_type}"'.h"' > targ-cpu.h
6094 echo '#include "obj-'"${obj_format}"'.h"' > obj-format.h
6095 echo '#include "te-'"${te_file}"'.h"' > targ-env.h
6096 echo '#include "itbl-'"${target_cpu_type}"'.h"' > itbl-cpu.h
6097 if test "x$cgen_cpu_prefix" != x ; then
6098 echo '#include "opcodes/'"${cgen_cpu_prefix}"'-desc.h"' > cgen-desc.h
6101 sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile
6104 chmod +x $CONFIG_STATUS
6105 rm -fr confdefs* $ac_clean_files
6106 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1