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-
*-lites*) fmt=elf em
=hppa
;;
2028 hppa-
*-osf*) fmt=som em
=hppa
;;
2029 hppa-
*-rtems*) fmt=elf em
=hppa
;;
2030 hppa-
*-hpux*) fmt=som em
=hppa
;;
2031 hppa-
*-mpeix*) fmt=som em
=hppa
;;
2032 hppa-
*-bsd*) fmt=som em
=hppa
;;
2033 hppa-
*-hiux*) fmt=som em
=hppa
;;
2035 h8300-
*-coff) fmt=coff
;;
2037 i386-ibm-aix
*) fmt=coff em
=i386aix
;;
2038 i386-sequent-bsd
*) fmt=aout em
=dynix bfd_gas
=yes ;;
2039 i386-
*-beospe*) fmt=coff em
=pe bfd_gas
=yes ;;
2040 i386-
*-beoself* | i386-
*-beos*) fmt=elf bfd_gas
=yes ;;
2041 i386-
*-bsd*) fmt=aout em
=386bsd
;;
2042 i386-
*-netbsd0.8
) fmt=aout em
=386bsd
;;
2043 i386-
*-netbsd*) fmt=aout em
=nbsd bfd_gas
=yes;;
2044 i386-
*-openbsd*) fmt=aout em
=nbsd bfd_gas
=yes;;
2045 i386-
*-linux*aout
* | i386-
*-linuxoldld) fmt=aout em
=linux
;;
2046 i386-
*-linux*coff
*) fmt=coff em
=linux
;;
2047 i386-
*-linux-gnu*) fmt=elf em
=linux bfd_gas
=yes ;;
2048 i386-
*-lynxos*) fmt=coff em
=lynx
;;
2049 i386-
*-sysv4* | i386-
*-solaris* | i386-
*-elf)
2050 fmt=elf bfd_gas
=yes ;;
2051 i386-
*-freebsdelf*) fmt=elf bfd_gas
=yes ;;
2052 i386-
*-freebsd*) fmt=aout em
=386bsd
;;
2053 i386-
*-coff | i386-
*-sysv* | i386-
*-sco3.2v5
*coff | i386-
*-isc*)
2055 i386-
*-sco3.2v5
*) fmt=elf
2056 if test ${this_target} = $target; then
2057 cat >> confdefs.h
<<\EOF
2063 i386-
*-sco3.2
*) fmt=coff
;;
2064 i386-
*-vsta) fmt=aout
;;
2065 i386-
*-msdosdjgpp* | i386-
*-go32* | i386-go32-rtems
*)
2067 i386-
*-rtemself*) fmt=elf
;;
2068 i386-
*-rtems*) fmt=coff
;;
2069 i386-
*-gnu*) fmt=elf
;;
2071 fmt=aout em
=mach bfd_gas
=yes ;;
2072 i386-
*-msdos*) fmt=aout
;;
2073 i386-
*-moss*) fmt=elf
;;
2074 i386-
*-pe) fmt=coff em
=pe
;;
2075 i386-
*-cygwin*) fmt=coff em
=pe bfd_gas
=yes ;;
2076 i386-
*-mingw32*) fmt=coff em
=pe bfd_gas
=yes ;;
2077 i386-
*-*nt
*) fmt=coff em
=pe
;;
2078 i960-
*-bout) fmt=bout
;;
2079 i960-
*-coff) fmt=coff em
=ic960
;;
2080 i960-
*-rtems*) fmt=coff em
=ic960
;;
2081 i960-
*-nindy*) fmt=bout
;;
2082 i960-
*-vxworks4*) fmt=bout
;;
2083 i960-
*-vxworks5.0
) fmt=bout
;;
2084 i960-
*-vxworks5.
*) fmt=coff em
=ic960
;;
2085 i960-
*-vxworks*) fmt=bout
;;
2086 i960-
*-elf*) fmt=elf
;;
2088 m32r-
*-*) fmt=elf bfd_gas
=yes ;;
2090 m68k-
*-vxworks* | m68k-ericsson-ose | m68k-
*-sunos*)
2092 m68k-motorola-sysv
*) fmt=coff em
=delta
;;
2093 m68k-bull-sysv3
*) fmt=coff em
=dpx2
;;
2094 m68k-apollo-
*) fmt=coff em
=apollo
;;
2095 m68k-
*-sysv4*) # must be before -sysv*
2097 m68k-
*-elf*) fmt=elf
;;
2098 m68k-
*-coff | m68k-
*-sysv* | m68k-
*-rtems*)
2100 m68k-
*-hpux*) fmt=hp300 em
=hp300
;;
2101 m68k-
*-linux*aout
*) fmt=aout em
=linux
;;
2102 m68k-
*-linux-gnu*) fmt=elf em
=linux
;;
2103 m68k-
*-gnu*) fmt=elf
;;
2104 m68k-
*-lynxos*) fmt=coff em
=lynx
;;
2105 m68k-
*-netbsd*) fmt=aout em
=nbsd bfd_gas
=yes ;;
2106 m68k-
*-openbsd*) fmt=aout em
=nbsd bfd_gas
=yes ;;
2107 m68k-apple-aux
*) fmt=coff em
=aux
;;
2108 m68k-
*-psos*) fmt=elf em
=psos
;;
2110 m88k-motorola-sysv3
*) fmt=coff em
=delt88
;;
2111 m88k-
*-coff*) fmt=coff
;;
2113 mcore-
*-elf) fmt=elf bfd_gas
=yes ;;
2114 mcore-
*-pe) fmt=coff em
=pe bfd_gas
=yes ;;
2116 # don't change em like *-*-bsd does
2117 mips-dec-netbsd
*) fmt=elf endian
=little
;;
2118 mips-dec-openbsd
*) fmt=elf endian
=little
;;
2119 mips-dec-bsd
*) fmt=aout endian
=little
;;
2120 mips-sony-bsd
*) fmt=ecoff
;;
2121 mips-
*-bsd*) { echo "configure: error: Unknown vendor for mips-bsd configuration." 1>&2; exit 1; } ;;
2122 mips-
*-ultrix*) fmt=ecoff endian
=little
;;
2123 mips-
*-osf*) fmt=ecoff endian
=little
;;
2124 mips-
*-ecoff*) fmt=ecoff
;;
2125 mips-
*-ecoff*) fmt=ecoff
;;
2126 mips-
*-irix6*) fmt=elf
;;
2127 mips-
*-irix5*) fmt=elf
;;
2128 mips-
*-irix*) fmt=ecoff
;;
2129 mips-
*-lnews*) fmt=ecoff em
=lnews
;;
2130 mips-
*-riscos*) fmt=ecoff
;;
2131 mips-
*-sysv*) fmt=ecoff
;;
2132 mips-
*-elf* | mips-
*-rtems* | mips-
*-linux-gnu* | mips-
*-gnu* | mips-
*-openbsd*)
2134 mips-
*-vxworks*) fmt=elf
2135 cat >> confdefs.h
<<\EOF
2136 #define MIPS_STABS_ELF 1
2140 mn10200-
*-*) fmt=elf bfd_gas
=yes ;;
2141 mn10300-
*-*) fmt=elf bfd_gas
=yes ;;
2142 ppc-
*-pe | ppc-
*-cygwin* | ppc-
*-winnt*)
2144 ppc-
*-aix*) fmt=coff
;;
2145 ppc-
*-beos*) fmt=coff
;;
2146 ppc-
*-*bsd
* | ppc-
*-elf* | ppc-
*-eabi* | ppc-
*-sysv4*)
2148 ppc-
*-linux-gnu*) fmt=elf
2151 *) { echo "configure: error: GNU/Linux must be configured big endian" 1>&2; exit 1; } ;;
2154 ppc-
*-solaris*) fmt=elf
2155 if test ${this_target} = $target; then
2156 cat >> confdefs.h
<<\EOF
2157 #define TARGET_SOLARIS_COMMENT 1
2161 if test x
${endian} = xbig
; then
2162 { echo "configure: error: Solaris must be configured little endian" 1>&2; exit 1; }
2165 ppc-
*-rtems*) fmt=elf
;;
2166 ppc-
*-macos* | ppc-
*-mpw*)
2167 fmt=coff em
=macos
;;
2168 ppc-
*-netware*) fmt=elf em
=ppcnw
;;
2170 sh-
*-elf*) fmt=elf
;;
2171 sh-
*-coff*) fmt=coff
;;
2172 sh-
*-rtemself*) fmt=elf
;;
2173 sh-
*-rtems*) fmt=coff
;;
2175 ns32k-pc532-mach
* | ns32k-pc532-ux
*) fmt=aout em
=pc532mach
;;
2176 ns32k-pc532-netbsd
* | ns32k-pc532-lites
*) fmt=aout em
=nbsd532
;;
2177 ns32k-pc532-openbsd
*) fmt=aout em
=nbsd532
;;
2179 sparc-
*-rtems*) fmt=aout
;;
2180 sparc-
*-sunos4*) fmt=aout em
=sun3
;;
2181 sparc-
*-aout | sparc
*-*-vxworks*)
2182 fmt=aout em
=sparcaout
;;
2183 sparc-
*-coff) fmt=coff
;;
2184 sparc-
*-linux*aout
*) fmt=aout em
=linux
;;
2185 sparc-
*-linux-gnu*) fmt=elf em
=linux
;;
2186 sparc-
*-lynxos*) fmt=coff em
=lynx
;;
2187 sparc-fujitsu-none
) fmt=aout
;;
2188 sparc-
*-elf | sparc-
*-sysv4* | sparc-
*-solaris*)
2190 sparc-
*-netbsd*) fmt=aout em
=nbsd
;;
2191 sparc-
*-openbsd*) fmt=aout em
=nbsd
;;
2193 strongarm-
*-coff) fmt=coff
;;
2194 strongarm-
*-elf) fmt=elf
;;
2196 tic30-
*-*aout
*) fmt=aout bfd_gas
=yes ;;
2197 tic30-
*-*coff
*) fmt=coff bfd_gas
=yes ;;
2198 tic80-
*-*) fmt=coff
;;
2200 v850-
*-*) fmt=elf bfd_gas
=yes ;;
2201 v850e-
*-*) fmt=elf bfd_gas
=yes ;;
2202 v850ea-
*-*) fmt=elf bfd_gas
=yes ;;
2204 vax-
*-bsd* | vax-
*-ultrix*)
2206 vax-
*-vms) fmt=vms
;;
2209 z8k-
*-coff | z8k-
*-sim)
2212 w65-
*-*) fmt=coff
;;
2214 *-*-aout |
*-*-scout)
2220 *-*-generic) fmt=generic
;;
2221 *-*-xray |
*-*-hms) fmt=coff
;;
2222 *-*-sim) fmt=coff
;;
2223 *-*-elf |
*-*-sysv4* |
*-*-solaris*)
2224 echo "configure: warning: GAS support for ${generic_target} is incomplete." 1>&2
2226 *-*-vxworks) fmt=aout
;;
2227 *-*-netware) fmt=elf
;;
2230 if test ${this_target} = $target ; then
2232 if test x
${endian} = xbig
; then
2234 elif test x
${endian} = xlittle
; then
2237 if test x
${endian_def} != x
; then
2238 cat >> confdefs.h
<<EOF
2239 #define TARGET_BYTES_BIG_ENDIAN $endian_def
2245 case ${cpu_type}-${fmt} in
2246 alpha
*-*) bfd_gas
=yes ;;
2247 arm-
*) bfd_gas
=yes ;;
2249 # i386-aout) bfd_gas=preferred ;;
2250 mips-
*) bfd_gas
=yes ;;
2251 ns32k-
*) bfd_gas
=yes ;;
2252 ppc-
*) bfd_gas
=yes ;;
2253 sparc-
*) bfd_gas
=yes ;;
2254 strongarm-
*) bfd_gas
=yes ;;
2255 *-elf) bfd_gas
=yes ;;
2256 *-ecoff) bfd_gas
=yes ;;
2257 *-som) bfd_gas
=yes ;;
2261 # Other random stuff.
2263 # Do we need the opcodes library?
2271 case "${enable_shared}" in
2272 yes) shared_opcodes
=true
;;
2273 *opcodes
*) shared_opcodes
=true
;;
2274 *) shared_opcodes
=false
;;
2276 if test "${shared_opcodes}" = "true"; then
2277 # A shared libopcodes must be linked against libbfd.
2283 # Any other special object files needed ?
2290 case ${extra_objects} in
2292 *) extra_objects
="$extra_objects m68k-parse.o" ;;
2297 echo ${extra_objects} |
grep -s "itbl-parse.o"
2298 if test $?
-ne 0 ; then
2299 extra_objects
="$extra_objects itbl-parse.o"
2302 echo ${extra_objects} |
grep -s "itbl-lex.o"
2303 if test $?
-ne 0 ; then
2304 extra_objects
="$extra_objects itbl-lex.o"
2307 echo ${extra_objects} |
grep -s "itbl-ops.o"
2308 if test $?
-ne 0 ; then
2309 extra_objects
="$extra_objects itbl-ops.o"
2314 if test $this_target = $target ; then
2315 cat >> confdefs.h
<<EOF
2316 #define DEFAULT_ARCH "${arch}"
2325 if test $using_cgen = yes ; then
2326 case "x${extra_objects}" in
2328 *) extra_objects
="$extra_objects cgen.o" ;;
2332 # See if we really can support this configuration with the emulation code.
2334 if test $this_target = $target ; then
2335 primary_bfd_gas
=$bfd_gas
2339 if test $bfd_gas = no
; then
2340 # Can't support other configurations this way.
2343 elif test $bfd_gas = no
; then
2344 # Can't support this configuration.
2348 # From target name and format, produce a list of supported emulations.
2350 case ${generic_target}-${fmt} in
2351 mips-
*-irix5*-*) emulation
="mipsbelf mipslelf mipself mipsbecoff mipslecoff mipsecoff" ;;
2352 mips-
*-linux-gnu*-*) case "$endian" in
2353 big
) emulation
="mipsbelf mipslelf mipself mipsbecoff mipslecoff mipsecoff" ;;
2354 *) emulation
="mipslelf mipsbelf mipself mipslecoff mipsbecoff mipsecoff" ;;
2356 mips-
*-lnews*-ecoff) ;;
2357 mips-
*-*-ecoff) case "$endian" in
2358 big
) emulation
="mipsbecoff mipslecoff mipsecoff" ;;
2359 *) emulation
="mipslecoff mipsbecoff mipsecoff" ;;
2361 mips-
*-*-elf) case "$endian" in
2362 big
) emulation
="mipsbelf mipslelf mipself" ;;
2363 *) emulation
="mipslelf mipsbelf mipself" ;;
2364 # Uncommenting the next line will turn on support for i386 COFF
2365 # in any i386 ELF configuration. This probably doesn't work
2367 # i386-*-*-elf) emulation="i386coff i386elf" ;;
2371 emulations
="$emulations $emulation"
2375 # Assign floating point type. Most processors with FP support
2376 # IEEE FP. On those that don't support FP at all, usually IEEE
2378 case ${target_cpu} in
2379 vax | tahoe
) atof
=${target_cpu} ;;
2383 case "${obj_format}" in
2384 "") { echo "configure: error: GAS does not know what format to use for target ${target}" 1>&2; exit 1; } ;;
2387 # Unfortunately the cpu in cpu-opc.h file isn't always $(TARGET_CPU).
2389 if test $using_cgen = yes ; then
2390 case ${target_cpu} in
2391 *) cgen_cpu_prefix
=${target_cpu} ;;
2394 cat >> confdefs.h
<<\EOF
2395 #define USING_CGEN 1
2401 if test ! -r ${srcdir}/config
/tc-
${target_cpu_type}.c
; then
2402 { echo "configure: error: GAS does not support target CPU ${target_cpu_type}" 1>&2; exit 1; }
2405 if test ! -r ${srcdir}/config
/obj-
${obj_format}.c
; then
2406 { echo "configure: error: GAS does not have support for object file format ${obj_format}" 1>&2; exit 1; }
2409 case ${user_bfd_gas}-${primary_bfd_gas} in
2411 # We didn't override user's choice.
2414 echo "configure: warning: Use of BFD is required for ${target}; overriding config options." 1>&2
2426 # User specified nothing.
2430 # Some COFF configurations want these random other flags set.
2431 case ${obj_format} in
2433 case ${target_cpu_type} in
2434 i386
) cat >> confdefs.h
<<\EOF
2438 m68k
) cat >> confdefs.h
<<\EOF
2442 m88k
) cat >> confdefs.h
<<\EOF
2450 # Getting this done right is going to be a bitch. Each configuration specified
2451 # with --enable-targets=... should be checked for environment, format, cpu, and
2454 # For each configuration, the necessary object file support code must be linked
2455 # in. This might be only one, it might be up to four. The necessary emulation
2456 # code needs to be provided, too.
2458 # And then there's "--enable-targets=all"....
2460 # For now, just always do it for MIPS ELF or ECOFF configurations. Sigh.
2462 formats
="${obj_format}"
2465 _gas_uniq_list
="$emulations"
2466 _gas_uniq_newlist
=""
2467 for _gas_uniq_i
in _gas_uniq_dummy
$_gas_uniq_list ; do
2468 case $_gas_uniq_i in
2470 *) case " $_gas_uniq_newlist " in
2471 *" $_gas_uniq_i "*) ;;
2472 *) _gas_uniq_newlist
="$_gas_uniq_newlist $_gas_uniq_i" ;;
2476 emulations
=$_gas_uniq_newlist
2478 for em
in .
$emulations ; do
2481 mipsbelf | mipslelf
)
2482 fmt=elf
file=mipself
;;
2483 mipsbecoff | mipslecoff
)
2484 fmt=ecoff
file=mipsecoff
;;
2486 fmt=coff
file=i386coff
;;
2488 fmt=elf
file=i386elf
;;
2490 formats
="$formats $fmt"
2491 emfiles
="$emfiles e-$file.o"
2492 EMULATIONS
="$EMULATIONS &$em,"
2494 _gas_uniq_list
="$formats"
2495 _gas_uniq_newlist
=""
2496 for _gas_uniq_i
in _gas_uniq_dummy
$_gas_uniq_list ; do
2497 case $_gas_uniq_i in
2499 *) case " $_gas_uniq_newlist " in
2500 *" $_gas_uniq_i "*) ;;
2501 *) _gas_uniq_newlist
="$_gas_uniq_newlist $_gas_uniq_i" ;;
2505 formats
=$_gas_uniq_newlist
2507 _gas_uniq_list
="$emfiles"
2508 _gas_uniq_newlist
=""
2509 for _gas_uniq_i
in _gas_uniq_dummy
$_gas_uniq_list ; do
2510 case $_gas_uniq_i in
2512 *) case " $_gas_uniq_newlist " in
2513 *" $_gas_uniq_i "*) ;;
2514 *) _gas_uniq_newlist
="$_gas_uniq_newlist $_gas_uniq_i" ;;
2518 emfiles
=$_gas_uniq_newlist
2520 if test `set . $formats ; shift ; echo $#` -gt 1 ; then
2521 for fmt in $formats ; do
2523 aout
) cat >> confdefs.h
<<\EOF
2524 #define OBJ_MAYBE_AOUT 1
2527 bout
) cat >> confdefs.h
<<\EOF
2528 #define OBJ_MAYBE_BOUT 1
2531 coff
) cat >> confdefs.h
<<\EOF
2532 #define OBJ_MAYBE_COFF 1
2535 ecoff
) cat >> confdefs.h
<<\EOF
2536 #define OBJ_MAYBE_ECOFF 1
2539 elf
) cat >> confdefs.h
<<\EOF
2540 #define OBJ_MAYBE_ELF 1
2543 generic
) cat >> confdefs.h
<<\EOF
2544 #define OBJ_MAYBE_GENERIC 1
2547 hp300
) cat >> confdefs.h
<<\EOF
2548 #define OBJ_MAYBE_HP300 1
2551 ieee
) cat >> confdefs.h
<<\EOF
2552 #define OBJ_MAYBE_IEEE 1
2555 som
) cat >> confdefs.h
<<\EOF
2556 #define OBJ_MAYBE_SOM 1
2559 vms
) cat >> confdefs.h
<<\EOF
2560 #define OBJ_MAYBE_VMS 1
2564 extra_objects
="$extra_objects obj-$fmt.o"
2568 if test `set . $emfiles ; shift ; echo $#` -gt 0 ; then
2570 extra_objects
="$extra_objects $emfiles"
2571 DEFAULT_EMULATION
=`set . $emulations ; echo $2`
2572 cat >> confdefs.h
<<\EOF
2573 #define USE_EMULATIONS 1
2578 cat >> confdefs.h
<<EOF
2579 #define EMULATIONS $EMULATIONS
2582 cat >> confdefs.h
<<EOF
2583 #define DEFAULT_EMULATION "$DEFAULT_EMULATION"
2587 case ${primary_bfd_gas}-${target_cpu_type}-${obj_format} in
2588 yes-
*-coff) need_bfd
=yes ;;
2589 no-
*-coff) need_bfd
=yes
2590 cat >> confdefs.h
<<\EOF
2591 #define MANY_SEGMENTS 1
2596 reject_dev_configs
=yes
2598 case ${reject_dev_configs}-${dev} in
2600 { echo "configure: error: GAS does not support the ${generic_target} configuration." 1>&2; exit 1; }
2610 case "${primary_bfd_gas}" in
2611 yes) cat >> confdefs.h
<<\EOF
2612 #define BFD_ASSEMBLER 1
2618 # do we need the opcodes library?
2619 case "${need_opcodes}" in
2621 OPCODES_LIB
=..
/opcodes
/libopcodes.la
2625 case "${need_bfd}" in
2627 BFDLIB
=..
/bfd
/libbfd.la
2628 ALL_OBJ_DEPS
="$ALL_OBJ_DEPS ../bfd/bfd.h"
2637 cat >> confdefs.h
<<EOF
2638 #define TARGET_ALIAS "${target_alias}"
2641 cat >> confdefs.h
<<EOF
2642 #define TARGET_CANONICAL "${target}"
2645 cat >> confdefs.h
<<EOF
2646 #define TARGET_CPU "${target_cpu}"
2649 cat >> confdefs.h
<<EOF
2650 #define TARGET_VENDOR "${target_vendor}"
2653 cat >> confdefs.h
<<EOF
2654 #define TARGET_OS "${target_os}"
2658 # Extract the first word of "gcc", so it can be a program name with args.
2659 set dummy gcc
; ac_word
=$2
2660 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2661 echo "configure:2662: checking for $ac_word" >&5
2662 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2663 echo $ac_n "(cached) $ac_c" 1>&6
2665 if test -n "$CC"; then
2666 ac_cv_prog_CC
="$CC" # Let the user override the test.
2668 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2670 for ac_dir
in $ac_dummy; do
2671 test -z "$ac_dir" && ac_dir
=.
2672 if test -f $ac_dir/$ac_word; then
2681 if test -n "$CC"; then
2682 echo "$ac_t""$CC" 1>&6
2684 echo "$ac_t""no" 1>&6
2687 if test -z "$CC"; then
2688 # Extract the first word of "cc", so it can be a program name with args.
2689 set dummy cc
; ac_word
=$2
2690 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2691 echo "configure:2692: checking for $ac_word" >&5
2692 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2693 echo $ac_n "(cached) $ac_c" 1>&6
2695 if test -n "$CC"; then
2696 ac_cv_prog_CC
="$CC" # Let the user override the test.
2698 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2701 for ac_dir
in $ac_dummy; do
2702 test -z "$ac_dir" && ac_dir
=.
2703 if test -f $ac_dir/$ac_word; then
2704 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2705 ac_prog_rejected
=yes
2713 if test $ac_prog_rejected = yes; then
2714 # We found a bogon in the path, so make sure we never use it.
2715 set dummy
$ac_cv_prog_CC
2717 if test $# -gt 0; then
2718 # We chose a different compiler from the bogus one.
2719 # However, it has the same basename, so the bogon will be chosen
2720 # first if we set CC to just the basename; use the full file name.
2722 set dummy
"$ac_dir/$ac_word" "$@"
2730 if test -n "$CC"; then
2731 echo "$ac_t""$CC" 1>&6
2733 echo "$ac_t""no" 1>&6
2736 if test -z "$CC"; then
2737 case "`uname -s`" in
2739 # Extract the first word of "cl", so it can be a program name with args.
2740 set dummy cl
; ac_word
=$2
2741 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2742 echo "configure:2743: checking for $ac_word" >&5
2743 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2744 echo $ac_n "(cached) $ac_c" 1>&6
2746 if test -n "$CC"; then
2747 ac_cv_prog_CC
="$CC" # Let the user override the test.
2749 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2751 for ac_dir
in $ac_dummy; do
2752 test -z "$ac_dir" && ac_dir
=.
2753 if test -f $ac_dir/$ac_word; then
2762 if test -n "$CC"; then
2763 echo "$ac_t""$CC" 1>&6
2765 echo "$ac_t""no" 1>&6
2770 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2773 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2774 echo "configure:2775: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
2777 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2778 ac_cpp
='$CPP $CPPFLAGS'
2779 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2780 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2781 cross_compiling
=$ac_cv_prog_cc_cross
2783 cat > conftest.
$ac_ext << EOF
2785 #line 2786 "configure"
2786 #include "confdefs.h"
2790 if { (eval echo configure
:2791: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2791 ac_cv_prog_cc_works
=yes
2792 # If we can't run a trivial program, we are probably using a cross compiler.
2793 if (.
/conftest
; exit) 2>/dev
/null
; then
2794 ac_cv_prog_cc_cross
=no
2796 ac_cv_prog_cc_cross
=yes
2799 echo "configure: failed program was:" >&5
2800 cat conftest.
$ac_ext >&5
2801 ac_cv_prog_cc_works
=no
2805 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2806 ac_cpp
='$CPP $CPPFLAGS'
2807 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2808 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2809 cross_compiling
=$ac_cv_prog_cc_cross
2811 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2812 if test $ac_cv_prog_cc_works = no
; then
2813 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2815 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2816 echo "configure:2817: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2817 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2818 cross_compiling
=$ac_cv_prog_cc_cross
2820 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2821 echo "configure:2822: checking whether we are using GNU C" >&5
2822 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
2823 echo $ac_n "(cached) $ac_c" 1>&6
2825 cat > conftest.c
<<EOF
2830 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:2831: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
2837 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2839 if test $ac_cv_prog_gcc = yes; then
2845 ac_test_CFLAGS
="${CFLAGS+set}"
2846 ac_save_CFLAGS
="$CFLAGS"
2848 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2849 echo "configure:2850: checking whether ${CC-cc} accepts -g" >&5
2850 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2851 echo $ac_n "(cached) $ac_c" 1>&6
2853 echo 'void f(){}' > conftest.c
2854 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2863 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2864 if test "$ac_test_CFLAGS" = set; then
2865 CFLAGS
="$ac_save_CFLAGS"
2866 elif test $ac_cv_prog_cc_g = yes; then
2867 if test "$GCC" = yes; then
2873 if test "$GCC" = yes; then
2881 for ac_prog
in 'bison -y' byacc
2883 # Extract the first word of "$ac_prog", so it can be a program name with args.
2884 set dummy
$ac_prog; ac_word
=$2
2885 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2886 echo "configure:2887: checking for $ac_word" >&5
2887 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
2888 echo $ac_n "(cached) $ac_c" 1>&6
2890 if test -n "$YACC"; then
2891 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
2893 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2895 for ac_dir
in $ac_dummy; do
2896 test -z "$ac_dir" && ac_dir
=.
2897 if test -f $ac_dir/$ac_word; then
2898 ac_cv_prog_YACC
="$ac_prog"
2905 YACC
="$ac_cv_prog_YACC"
2906 if test -n "$YACC"; then
2907 echo "$ac_t""$YACC" 1>&6
2909 echo "$ac_t""no" 1>&6
2912 test -n "$YACC" && break
2914 test -n "$YACC" || YACC
="yacc"
2916 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2917 echo "configure:2918: checking how to run the C preprocessor" >&5
2918 # On Suns, sometimes $CPP names a directory.
2919 if test -n "$CPP" && test -d "$CPP"; then
2922 if test -z "$CPP"; then
2923 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2924 echo $ac_n "(cached) $ac_c" 1>&6
2926 # This must be in double quotes, not single quotes, because CPP may get
2927 # substituted into the Makefile and "${CC-cc}" will confuse make.
2929 # On the NeXT, cc -E runs the code through the compiler's parser,
2930 # not just through cpp.
2931 cat > conftest.
$ac_ext <<EOF
2932 #line 2933 "configure"
2933 #include "confdefs.h"
2937 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2938 { (eval echo configure
:2939: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2939 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2940 if test -z "$ac_err"; then
2944 echo "configure: failed program was:" >&5
2945 cat conftest.
$ac_ext >&5
2947 CPP
="${CC-cc} -E -traditional-cpp"
2948 cat > conftest.
$ac_ext <<EOF
2949 #line 2950 "configure"
2950 #include "confdefs.h"
2954 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2955 { (eval echo configure
:2956: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2956 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2957 if test -z "$ac_err"; then
2961 echo "configure: failed program was:" >&5
2962 cat conftest.
$ac_ext >&5
2964 CPP
="${CC-cc} -nologo -E"
2965 cat > conftest.
$ac_ext <<EOF
2966 #line 2967 "configure"
2967 #include "confdefs.h"
2971 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2972 { (eval echo configure
:2973: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2973 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2974 if test -z "$ac_err"; then
2978 echo "configure: failed program was:" >&5
2979 cat conftest.
$ac_ext >&5
2988 ac_cv_prog_CPP
="$CPP"
2990 CPP
="$ac_cv_prog_CPP"
2992 ac_cv_prog_CPP
="$CPP"
2994 echo "$ac_t""$CPP" 1>&6
2996 missing_dir
=`cd $ac_aux_dir && pwd`
2997 for ac_prog
in flex
lex
2999 # Extract the first word of "$ac_prog", so it can be a program name with args.
3000 set dummy
$ac_prog; ac_word
=$2
3001 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3002 echo "configure:3003: checking for $ac_word" >&5
3003 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
3004 echo $ac_n "(cached) $ac_c" 1>&6
3006 if test -n "$LEX"; then
3007 ac_cv_prog_LEX
="$LEX" # Let the user override the test.
3009 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3011 for ac_dir
in $ac_dummy; do
3012 test -z "$ac_dir" && ac_dir
=.
3013 if test -f $ac_dir/$ac_word; then
3014 ac_cv_prog_LEX
="$ac_prog"
3021 LEX
="$ac_cv_prog_LEX"
3022 if test -n "$LEX"; then
3023 echo "$ac_t""$LEX" 1>&6
3025 echo "$ac_t""no" 1>&6
3028 test -n "$LEX" && break
3030 test -n "$LEX" || LEX
=""$missing_dir/missing flex
""
3032 # Extract the first word of "flex", so it can be a program name with args.
3033 set dummy flex
; ac_word
=$2
3034 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3035 echo "configure:3036: checking for $ac_word" >&5
3036 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
3037 echo $ac_n "(cached) $ac_c" 1>&6
3039 if test -n "$LEX"; then
3040 ac_cv_prog_LEX
="$LEX" # Let the user override the test.
3042 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3044 for ac_dir
in $ac_dummy; do
3045 test -z "$ac_dir" && ac_dir
=.
3046 if test -f $ac_dir/$ac_word; then
3047 ac_cv_prog_LEX
="flex"
3052 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX
="lex"
3055 LEX
="$ac_cv_prog_LEX"
3056 if test -n "$LEX"; then
3057 echo "$ac_t""$LEX" 1>&6
3059 echo "$ac_t""no" 1>&6
3062 if test -z "$LEXLIB"
3068 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
3069 echo "configure:3070: checking for yywrap in -l$ac_lib" >&5
3070 ac_lib_var
=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
3071 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3072 echo $ac_n "(cached) $ac_c" 1>&6
3074 ac_save_LIBS
="$LIBS"
3075 LIBS
="-l$ac_lib $LIBS"
3076 cat > conftest.
$ac_ext <<EOF
3077 #line 3078 "configure"
3078 #include "confdefs.h"
3079 /* Override any gcc2 internal prototype to avoid an error. */
3080 /* We use char because int might match the return type of a gcc2
3081 builtin and then its argument prototype would still apply. */
3088 if { (eval echo configure
:3089: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3090 eval "ac_cv_lib_$ac_lib_var=yes"
3092 echo "configure: failed program was:" >&5
3093 cat conftest.
$ac_ext >&5
3095 eval "ac_cv_lib_$ac_lib_var=no"
3098 LIBS
="$ac_save_LIBS"
3101 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3102 echo "$ac_t""yes" 1>&6
3105 echo "$ac_t""no" 1>&6
3110 echo $ac_n "checking lex output file root""... $ac_c" 1>&6
3111 echo "configure:3112: checking lex output file root" >&5
3112 if eval "test \"`echo '$''{'ac_cv_prog_lex_root'+set}'`\" = set"; then
3113 echo $ac_n "(cached) $ac_c" 1>&6
3115 # The minimal lex program is just a single line: %%. But some broken lexes
3116 # (Solaris, I think it was) want two %% lines, so accommodate them.
3119 if test -f lex.yy.c
; then
3120 ac_cv_prog_lex_root
=lex.yy
3121 elif test -f lexyy.c
; then
3122 ac_cv_prog_lex_root
=lexyy
3124 { echo "configure: error: cannot find output from $LEX; giving up" 1>&2; exit 1; }
3128 echo "$ac_t""$ac_cv_prog_lex_root" 1>&6
3129 LEX_OUTPUT_ROOT
=$ac_cv_prog_lex_root
3131 echo $ac_n "checking whether yytext is a pointer""... $ac_c" 1>&6
3132 echo "configure:3133: checking whether yytext is a pointer" >&5
3133 if eval "test \"`echo '$''{'ac_cv_prog_lex_yytext_pointer'+set}'`\" = set"; then
3134 echo $ac_n "(cached) $ac_c" 1>&6
3136 # POSIX says lex can declare yytext either as a pointer or an array; the
3137 # default is implementation-dependent. Figure out which it is, since
3138 # not all implementations provide the %pointer and %array declarations.
3139 ac_cv_prog_lex_yytext_pointer
=no
3140 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3141 ac_save_LIBS
="$LIBS"
3142 LIBS
="$LIBS $LEXLIB"
3143 cat > conftest.
$ac_ext <<EOF
3144 #line 3145 "configure"
3145 #include "confdefs.h"
3146 `cat $LEX_OUTPUT_ROOT.c`
3151 if { (eval echo configure
:3152: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3153 ac_cv_prog_lex_yytext_pointer
=yes
3155 echo "configure: failed program was:" >&5
3156 cat conftest.
$ac_ext >&5
3159 LIBS
="$ac_save_LIBS"
3160 rm -f "${LEX_OUTPUT_ROOT}.c"
3164 echo "$ac_t""$ac_cv_prog_lex_yytext_pointer" 1>&6
3165 if test $ac_cv_prog_lex_yytext_pointer = yes; then
3166 cat >> confdefs.h
<<\EOF
3167 #define YYTEXT_POINTER 1
3174 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
3175 echo "configure:3176: checking for POSIXized ISC" >&5
3176 if test -d /etc
/conf
/kconfig.d
&&
3177 grep _POSIX_VERSION
/usr
/include
/sys
/unistd.h
>/dev
/null
2>&1
3179 echo "$ac_t""yes" 1>&6
3180 ISC
=yes # If later tests want to check for ISC.
3181 cat >> confdefs.h
<<\EOF
3182 #define _POSIX_SOURCE 1
3185 if test "$GCC" = yes; then
3191 echo "$ac_t""no" 1>&6
3195 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3196 echo "configure:3197: checking for ANSI C header files" >&5
3197 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
3198 echo $ac_n "(cached) $ac_c" 1>&6
3200 cat > conftest.
$ac_ext <<EOF
3201 #line 3202 "configure"
3202 #include "confdefs.h"
3208 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3209 { (eval echo configure
:3210: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3210 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3211 if test -z "$ac_err"; then
3213 ac_cv_header_stdc
=yes
3216 echo "configure: failed program was:" >&5
3217 cat conftest.
$ac_ext >&5
3219 ac_cv_header_stdc
=no
3223 if test $ac_cv_header_stdc = yes; then
3224 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3225 cat > conftest.
$ac_ext <<EOF
3226 #line 3227 "configure"
3227 #include "confdefs.h"
3230 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3231 egrep "memchr" >/dev
/null
2>&1; then
3235 ac_cv_header_stdc
=no
3241 if test $ac_cv_header_stdc = yes; then
3242 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3243 cat > conftest.
$ac_ext <<EOF
3244 #line 3245 "configure"
3245 #include "confdefs.h"
3248 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3249 egrep "free" >/dev
/null
2>&1; then
3253 ac_cv_header_stdc
=no
3259 if test $ac_cv_header_stdc = yes; then
3260 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3261 if test "$cross_compiling" = yes; then
3264 cat > conftest.
$ac_ext <<EOF
3265 #line 3266 "configure"
3266 #include "confdefs.h"
3268 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3269 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3270 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3271 int main () { int i; for (i = 0; i < 256; i++)
3272 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3276 if { (eval echo configure
:3277: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3280 echo "configure: failed program was:" >&5
3281 cat conftest.
$ac_ext >&5
3283 ac_cv_header_stdc
=no
3291 echo "$ac_t""$ac_cv_header_stdc" 1>&6
3292 if test $ac_cv_header_stdc = yes; then
3293 cat >> confdefs.h
<<\EOF
3294 #define STDC_HEADERS 1
3299 echo $ac_n "checking for working const""... $ac_c" 1>&6
3300 echo "configure:3301: checking for working const" >&5
3301 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3302 echo $ac_n "(cached) $ac_c" 1>&6
3304 cat > conftest.
$ac_ext <<EOF
3305 #line 3306 "configure"
3306 #include "confdefs.h"
3310 /* Ultrix mips cc rejects this. */
3311 typedef int charset[2]; const charset x;
3312 /* SunOS 4.1.1 cc rejects this. */
3313 char const *const *ccp;
3315 /* NEC SVR4.0.2 mips cc rejects this. */
3316 struct point {int x, y;};
3317 static struct point const zero = {0,0};
3318 /* AIX XL C 1.02.0.0 rejects this.
3319 It does not let you subtract one const X* pointer from another in an arm
3320 of an if-expression whose if-part is not a constant expression */
3321 const char *g = "string";
3322 ccp = &g + (g ? g-g : 0);
3323 /* HPUX 7.0 cc rejects these. */
3326 ccp = (char const *const *) p;
3327 { /* SCO 3.2v4 cc rejects this. */
3329 char const *s = 0 ? (char *) 0 : (char const *) 0;
3333 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3335 const int *foo = &x[0];
3338 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3339 typedef const int *iptr;
3343 { /* AIX XL C 1.02.0.0 rejects this saying
3344 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3345 struct s { int j; const int *ap[3]; };
3346 struct s *b; b->j = 5;
3348 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3354 if { (eval echo configure
:3355: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3358 echo "configure: failed program was:" >&5
3359 cat conftest.
$ac_ext >&5
3366 echo "$ac_t""$ac_cv_c_const" 1>&6
3367 if test $ac_cv_c_const = no
; then
3368 cat >> confdefs.h
<<\EOF
3374 echo $ac_n "checking for inline""... $ac_c" 1>&6
3375 echo "configure:3376: checking for inline" >&5
3376 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
3377 echo $ac_n "(cached) $ac_c" 1>&6
3380 for ac_kw
in inline __inline__ __inline
; do
3381 cat > conftest.
$ac_ext <<EOF
3382 #line 3383 "configure"
3383 #include "confdefs.h"
3389 if { (eval echo configure
:3390: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3391 ac_cv_c_inline
=$ac_kw; break
3393 echo "configure: failed program was:" >&5
3394 cat conftest.
$ac_ext >&5
3401 echo "$ac_t""$ac_cv_c_inline" 1>&6
3402 case "$ac_cv_c_inline" in
3404 no
) cat >> confdefs.h
<<\EOF
3408 *) cat >> confdefs.h
<<EOF
3409 #define inline $ac_cv_c_inline
3414 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3415 echo "configure:3416: checking for off_t" >&5
3416 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
3417 echo $ac_n "(cached) $ac_c" 1>&6
3419 cat > conftest.
$ac_ext <<EOF
3420 #line 3421 "configure"
3421 #include "confdefs.h"
3422 #include <sys/types.h>
3428 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3429 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3431 ac_cv_type_off_t
=yes
3439 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3440 if test $ac_cv_type_off_t = no
; then
3441 cat >> confdefs.h
<<\EOF
3447 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3448 echo "configure:3449: checking for size_t" >&5
3449 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3450 echo $ac_n "(cached) $ac_c" 1>&6
3452 cat > conftest.
$ac_ext <<EOF
3453 #line 3454 "configure"
3454 #include "confdefs.h"
3455 #include <sys/types.h>
3461 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3462 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3464 ac_cv_type_size_t
=yes
3467 ac_cv_type_size_t
=no
3472 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3473 if test $ac_cv_type_size_t = no
; then
3474 cat >> confdefs.h
<<\EOF
3475 #define size_t unsigned
3480 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
3481 # for constant arguments. Useless!
3482 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
3483 echo "configure:3484: checking for working alloca.h" >&5
3484 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
3485 echo $ac_n "(cached) $ac_c" 1>&6
3487 cat > conftest.
$ac_ext <<EOF
3488 #line 3489 "configure"
3489 #include "confdefs.h"
3492 char *p = alloca(2 * sizeof(int));
3495 if { (eval echo configure
:3496: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3497 ac_cv_header_alloca_h
=yes
3499 echo "configure: failed program was:" >&5
3500 cat conftest.
$ac_ext >&5
3502 ac_cv_header_alloca_h
=no
3507 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
3508 if test $ac_cv_header_alloca_h = yes; then
3509 cat >> confdefs.h
<<\EOF
3510 #define HAVE_ALLOCA_H 1
3515 echo $ac_n "checking for alloca""... $ac_c" 1>&6
3516 echo "configure:3517: checking for alloca" >&5
3517 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
3518 echo $ac_n "(cached) $ac_c" 1>&6
3520 cat > conftest.
$ac_ext <<EOF
3521 #line 3522 "configure"
3522 #include "confdefs.h"
3525 # define alloca __builtin_alloca
3528 # include <malloc.h>
3529 # define alloca _alloca
3532 # include <alloca.h>
3537 # ifndef alloca /* predefined by HP cc +Olibcalls */
3546 char *p = (char *) alloca(1);
3549 if { (eval echo configure
:3550: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3551 ac_cv_func_alloca_works
=yes
3553 echo "configure: failed program was:" >&5
3554 cat conftest.
$ac_ext >&5
3556 ac_cv_func_alloca_works
=no
3561 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
3562 if test $ac_cv_func_alloca_works = yes; then
3563 cat >> confdefs.h
<<\EOF
3564 #define HAVE_ALLOCA 1
3569 if test $ac_cv_func_alloca_works = no
; then
3570 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
3571 # that cause trouble. Some versions do not even contain alloca or
3572 # contain a buggy version. If you still want to use their alloca,
3573 # use ar to extract alloca.o from them instead of compiling alloca.c.
3574 ALLOCA
=alloca.
${ac_objext}
3575 cat >> confdefs.h
<<\EOF
3580 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
3581 echo "configure:3582: checking whether alloca needs Cray hooks" >&5
3582 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
3583 echo $ac_n "(cached) $ac_c" 1>&6
3585 cat > conftest.
$ac_ext <<EOF
3586 #line 3587 "configure"
3587 #include "confdefs.h"
3588 #if defined(CRAY) && ! defined(CRAY2)
3595 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3596 egrep "webecray" >/dev
/null
2>&1; then
3607 echo "$ac_t""$ac_cv_os_cray" 1>&6
3608 if test $ac_cv_os_cray = yes; then
3609 for ac_func
in _getb67 GETB67 getb67
; do
3610 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3611 echo "configure:3612: checking for $ac_func" >&5
3612 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3613 echo $ac_n "(cached) $ac_c" 1>&6
3615 cat > conftest.
$ac_ext <<EOF
3616 #line 3617 "configure"
3617 #include "confdefs.h"
3618 /* System header to define __stub macros and hopefully few prototypes,
3619 which can conflict with char $ac_func(); below. */
3621 /* Override any gcc2 internal prototype to avoid an error. */
3622 /* We use char because int might match the return type of a gcc2
3623 builtin and then its argument prototype would still apply. */
3628 /* The GNU C library defines this for functions which it implements
3629 to always fail with ENOSYS. Some functions are actually named
3630 something starting with __ and the normal name is an alias. */
3631 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3639 if { (eval echo configure
:3640: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3641 eval "ac_cv_func_$ac_func=yes"
3643 echo "configure: failed program was:" >&5
3644 cat conftest.
$ac_ext >&5
3646 eval "ac_cv_func_$ac_func=no"
3651 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3652 echo "$ac_t""yes" 1>&6
3653 cat >> confdefs.h
<<EOF
3654 #define CRAY_STACKSEG_END $ac_func
3659 echo "$ac_t""no" 1>&6
3665 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
3666 echo "configure:3667: checking stack direction for C alloca" >&5
3667 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
3668 echo $ac_n "(cached) $ac_c" 1>&6
3670 if test "$cross_compiling" = yes; then
3671 ac_cv_c_stack_direction
=0
3673 cat > conftest.
$ac_ext <<EOF
3674 #line 3675 "configure"
3675 #include "confdefs.h"
3676 find_stack_direction ()
3678 static char *addr = 0;
3683 return find_stack_direction ();
3686 return (&dummy > addr) ? 1 : -1;
3690 exit (find_stack_direction() < 0);
3693 if { (eval echo configure
:3694: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3695 ac_cv_c_stack_direction
=1
3697 echo "configure: failed program was:" >&5
3698 cat conftest.
$ac_ext >&5
3700 ac_cv_c_stack_direction
=-1
3707 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
3708 cat >> confdefs.h
<<EOF
3709 #define STACK_DIRECTION $ac_cv_c_stack_direction
3714 for ac_hdr
in unistd.h
3716 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3717 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3718 echo "configure:3719: checking for $ac_hdr" >&5
3719 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3720 echo $ac_n "(cached) $ac_c" 1>&6
3722 cat > conftest.
$ac_ext <<EOF
3723 #line 3724 "configure"
3724 #include "confdefs.h"
3727 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3728 { (eval echo configure
:3729: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3729 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3730 if test -z "$ac_err"; then
3732 eval "ac_cv_header_$ac_safe=yes"
3735 echo "configure: failed program was:" >&5
3736 cat conftest.
$ac_ext >&5
3738 eval "ac_cv_header_$ac_safe=no"
3742 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3743 echo "$ac_t""yes" 1>&6
3744 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3745 cat >> confdefs.h
<<EOF
3746 #define $ac_tr_hdr 1
3750 echo "$ac_t""no" 1>&6
3754 for ac_func
in getpagesize
3756 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3757 echo "configure:3758: checking for $ac_func" >&5
3758 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3759 echo $ac_n "(cached) $ac_c" 1>&6
3761 cat > conftest.
$ac_ext <<EOF
3762 #line 3763 "configure"
3763 #include "confdefs.h"
3764 /* System header to define __stub macros and hopefully few prototypes,
3765 which can conflict with char $ac_func(); below. */
3767 /* Override any gcc2 internal prototype to avoid an error. */
3768 /* We use char because int might match the return type of a gcc2
3769 builtin and then its argument prototype would still apply. */
3774 /* The GNU C library defines this for functions which it implements
3775 to always fail with ENOSYS. Some functions are actually named
3776 something starting with __ and the normal name is an alias. */
3777 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3785 if { (eval echo configure
:3786: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3787 eval "ac_cv_func_$ac_func=yes"
3789 echo "configure: failed program was:" >&5
3790 cat conftest.
$ac_ext >&5
3792 eval "ac_cv_func_$ac_func=no"
3797 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3798 echo "$ac_t""yes" 1>&6
3799 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3800 cat >> confdefs.h
<<EOF
3801 #define $ac_tr_func 1
3805 echo "$ac_t""no" 1>&6
3809 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
3810 echo "configure:3811: checking for working mmap" >&5
3811 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
3812 echo $ac_n "(cached) $ac_c" 1>&6
3814 if test "$cross_compiling" = yes; then
3815 ac_cv_func_mmap_fixed_mapped
=no
3817 cat > conftest.
$ac_ext <<EOF
3818 #line 3819 "configure"
3819 #include "confdefs.h"
3821 /* Thanks to Mike Haertel and Jim Avera for this test.
3822 Here is a matrix of mmap possibilities:
3823 mmap private not fixed
3824 mmap private fixed at somewhere currently unmapped
3825 mmap private fixed at somewhere already mapped
3826 mmap shared not fixed
3827 mmap shared fixed at somewhere currently unmapped
3828 mmap shared fixed at somewhere already mapped
3829 For private mappings, we should verify that changes cannot be read()
3830 back from the file, nor mmap's back from the file at a different
3831 address. (There have been systems where private was not correctly
3832 implemented like the infamous i386 svr4.0, and systems where the
3833 VM page cache was not coherent with the filesystem buffer cache
3834 like early versions of FreeBSD and possibly contemporary NetBSD.)
3835 For shared mappings, we should conversely verify that changes get
3836 propogated back to all the places they're supposed to be.
3838 Grep wants private fixed already mapped.
3839 The main things grep needs to know about mmap are:
3840 * does it exist and is it safe to write into the mmap'd area
3841 * how to use it (BSD variants) */
3842 #include <sys/types.h>
3844 #include <sys/mman.h>
3846 /* This mess was copied from the GNU getpagesize.h. */
3847 #ifndef HAVE_GETPAGESIZE
3848 # ifdef HAVE_UNISTD_H
3849 # include <unistd.h>
3852 /* Assume that all systems that can run configure have sys/param.h. */
3853 # ifndef HAVE_SYS_PARAM_H
3854 # define HAVE_SYS_PARAM_H 1
3857 # ifdef _SC_PAGESIZE
3858 # define getpagesize() sysconf(_SC_PAGESIZE)
3859 # else /* no _SC_PAGESIZE */
3860 # ifdef HAVE_SYS_PARAM_H
3861 # include <sys/param.h>
3862 # ifdef EXEC_PAGESIZE
3863 # define getpagesize() EXEC_PAGESIZE
3864 # else /* no EXEC_PAGESIZE */
3866 # define getpagesize() NBPG * CLSIZE
3869 # endif /* no CLSIZE */
3870 # else /* no NBPG */
3872 # define getpagesize() NBPC
3873 # else /* no NBPC */
3875 # define getpagesize() PAGESIZE
3876 # endif /* PAGESIZE */
3877 # endif /* no NBPC */
3878 # endif /* no NBPG */
3879 # endif /* no EXEC_PAGESIZE */
3880 # else /* no HAVE_SYS_PARAM_H */
3881 # define getpagesize() 8192 /* punt totally */
3882 # endif /* no HAVE_SYS_PARAM_H */
3883 # endif /* no _SC_PAGESIZE */
3885 #endif /* no HAVE_GETPAGESIZE */
3888 extern "C" { void *malloc(unsigned); }
3896 char *data, *data2, *data3;
3900 pagesize = getpagesize();
3903 * First, make a file with some known garbage in it.
3905 data = malloc(pagesize);
3908 for (i = 0; i < pagesize; ++i)
3909 *(data + i) = rand();
3911 fd = creat("conftestmmap", 0600);
3914 if (write(fd, data, pagesize) != pagesize)
3919 * Next, try to mmap the file at a fixed address which
3920 * already has something else allocated at it. If we can,
3921 * also make sure that we see the same garbage.
3923 fd = open("conftestmmap", O_RDWR);
3926 data2 = malloc(2 * pagesize);
3929 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
3930 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
3931 MAP_PRIVATE | MAP_FIXED, fd, 0L))
3933 for (i = 0; i < pagesize; ++i)
3934 if (*(data + i) != *(data2 + i))
3938 * Finally, make sure that changes to the mapped area
3939 * do not percolate back to the file as seen by read().
3940 * (This is a bug on some variants of i386 svr4.0.)
3942 for (i = 0; i < pagesize; ++i)
3943 *(data2 + i) = *(data2 + i) + 1;
3944 data3 = malloc(pagesize);
3947 if (read(fd, data3, pagesize) != pagesize)
3949 for (i = 0; i < pagesize; ++i)
3950 if (*(data + i) != *(data3 + i))
3953 unlink("conftestmmap");
3958 if { (eval echo configure
:3959: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3960 ac_cv_func_mmap_fixed_mapped
=yes
3962 echo "configure: failed program was:" >&5
3963 cat conftest.
$ac_ext >&5
3965 ac_cv_func_mmap_fixed_mapped
=no
3972 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
3973 if test $ac_cv_func_mmap_fixed_mapped = yes; then
3974 cat >> confdefs.h
<<\EOF
3981 for ac_hdr
in argz.h limits.h locale.h nl_types.h malloc.h string.h \
3982 unistd.h values.h sys
/param.h
3984 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3985 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3986 echo "configure:3987: checking for $ac_hdr" >&5
3987 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3988 echo $ac_n "(cached) $ac_c" 1>&6
3990 cat > conftest.
$ac_ext <<EOF
3991 #line 3992 "configure"
3992 #include "confdefs.h"
3995 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3996 { (eval echo configure
:3997: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3997 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3998 if test -z "$ac_err"; then
4000 eval "ac_cv_header_$ac_safe=yes"
4003 echo "configure: failed program was:" >&5
4004 cat conftest.
$ac_ext >&5
4006 eval "ac_cv_header_$ac_safe=no"
4010 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4011 echo "$ac_t""yes" 1>&6
4012 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4013 cat >> confdefs.h
<<EOF
4014 #define $ac_tr_hdr 1
4018 echo "$ac_t""no" 1>&6
4022 for ac_func
in getcwd munmap putenv setenv setlocale strchr strcasecmp \
4023 __argz_count __argz_stringify __argz_next
4025 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4026 echo "configure:4027: checking for $ac_func" >&5
4027 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4028 echo $ac_n "(cached) $ac_c" 1>&6
4030 cat > conftest.
$ac_ext <<EOF
4031 #line 4032 "configure"
4032 #include "confdefs.h"
4033 /* System header to define __stub macros and hopefully few prototypes,
4034 which can conflict with char $ac_func(); below. */
4036 /* Override any gcc2 internal prototype to avoid an error. */
4037 /* We use char because int might match the return type of a gcc2
4038 builtin and then its argument prototype would still apply. */
4043 /* The GNU C library defines this for functions which it implements
4044 to always fail with ENOSYS. Some functions are actually named
4045 something starting with __ and the normal name is an alias. */
4046 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4054 if { (eval echo configure
:4055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4056 eval "ac_cv_func_$ac_func=yes"
4058 echo "configure: failed program was:" >&5
4059 cat conftest.
$ac_ext >&5
4061 eval "ac_cv_func_$ac_func=no"
4066 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4067 echo "$ac_t""yes" 1>&6
4068 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4069 cat >> confdefs.h
<<EOF
4070 #define $ac_tr_func 1
4074 echo "$ac_t""no" 1>&6
4079 if test "${ac_cv_func_stpcpy+set}" != "set"; then
4080 for ac_func
in stpcpy
4082 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4083 echo "configure:4084: checking for $ac_func" >&5
4084 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4085 echo $ac_n "(cached) $ac_c" 1>&6
4087 cat > conftest.
$ac_ext <<EOF
4088 #line 4089 "configure"
4089 #include "confdefs.h"
4090 /* System header to define __stub macros and hopefully few prototypes,
4091 which can conflict with char $ac_func(); below. */
4093 /* Override any gcc2 internal prototype to avoid an error. */
4094 /* We use char because int might match the return type of a gcc2
4095 builtin and then its argument prototype would still apply. */
4100 /* The GNU C library defines this for functions which it implements
4101 to always fail with ENOSYS. Some functions are actually named
4102 something starting with __ and the normal name is an alias. */
4103 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4111 if { (eval echo configure
:4112: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4113 eval "ac_cv_func_$ac_func=yes"
4115 echo "configure: failed program was:" >&5
4116 cat conftest.
$ac_ext >&5
4118 eval "ac_cv_func_$ac_func=no"
4123 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4124 echo "$ac_t""yes" 1>&6
4125 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4126 cat >> confdefs.h
<<EOF
4127 #define $ac_tr_func 1
4131 echo "$ac_t""no" 1>&6
4136 if test "${ac_cv_func_stpcpy}" = "yes"; then
4137 cat >> confdefs.h
<<\EOF
4138 #define HAVE_STPCPY 1
4143 if test $ac_cv_header_locale_h = yes; then
4144 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
4145 echo "configure:4146: checking for LC_MESSAGES" >&5
4146 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
4147 echo $ac_n "(cached) $ac_c" 1>&6
4149 cat > conftest.
$ac_ext <<EOF
4150 #line 4151 "configure"
4151 #include "confdefs.h"
4157 if { (eval echo configure
:4158: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4159 am_cv_val_LC_MESSAGES
=yes
4161 echo "configure: failed program was:" >&5
4162 cat conftest.
$ac_ext >&5
4164 am_cv_val_LC_MESSAGES
=no
4169 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
4170 if test $am_cv_val_LC_MESSAGES = yes; then
4171 cat >> confdefs.h
<<\EOF
4172 #define HAVE_LC_MESSAGES 1
4177 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
4178 echo "configure:4179: checking whether NLS is requested" >&5
4179 # Check whether --enable-nls or --disable-nls was given.
4180 if test "${enable_nls+set}" = set; then
4181 enableval
="$enable_nls"
4187 echo "$ac_t""$USE_NLS" 1>&6
4190 USE_INCLUDED_LIBINTL
=no
4192 if test "$USE_NLS" = "yes"; then
4193 cat >> confdefs.h
<<\EOF
4194 #define ENABLE_NLS 1
4197 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
4198 echo "configure:4199: checking whether included gettext is requested" >&5
4199 # Check whether --with-included-gettext or --without-included-gettext was given.
4200 if test "${with_included_gettext+set}" = set; then
4201 withval
="$with_included_gettext"
4202 nls_cv_force_use_gnu_gettext
=$withval
4204 nls_cv_force_use_gnu_gettext
=no
4207 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
4209 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
4210 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
4212 nls_cv_header_libgt
=
4215 ac_safe
=`echo "libintl.h" | sed 'y%./+-%__p_%'`
4216 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
4217 echo "configure:4218: checking for libintl.h" >&5
4218 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4219 echo $ac_n "(cached) $ac_c" 1>&6
4221 cat > conftest.
$ac_ext <<EOF
4222 #line 4223 "configure"
4223 #include "confdefs.h"
4224 #include <libintl.h>
4226 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4227 { (eval echo configure
:4228: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4228 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4229 if test -z "$ac_err"; then
4231 eval "ac_cv_header_$ac_safe=yes"
4234 echo "configure: failed program was:" >&5
4235 cat conftest.
$ac_ext >&5
4237 eval "ac_cv_header_$ac_safe=no"
4241 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4242 echo "$ac_t""yes" 1>&6
4243 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
4244 echo "configure:4245: checking for gettext in libc" >&5
4245 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
4246 echo $ac_n "(cached) $ac_c" 1>&6
4248 cat > conftest.
$ac_ext <<EOF
4249 #line 4250 "configure"
4250 #include "confdefs.h"
4251 #include <libintl.h>
4253 return (int) gettext ("")
4256 if { (eval echo configure
:4257: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4258 gt_cv_func_gettext_libc
=yes
4260 echo "configure: failed program was:" >&5
4261 cat conftest.
$ac_ext >&5
4263 gt_cv_func_gettext_libc
=no
4268 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
4270 if test "$gt_cv_func_gettext_libc" != "yes"; then
4271 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
4272 echo "configure:4273: checking for bindtextdomain in -lintl" >&5
4273 ac_lib_var
=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
4274 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4275 echo $ac_n "(cached) $ac_c" 1>&6
4277 ac_save_LIBS
="$LIBS"
4279 cat > conftest.
$ac_ext <<EOF
4280 #line 4281 "configure"
4281 #include "confdefs.h"
4282 /* Override any gcc2 internal prototype to avoid an error. */
4283 /* We use char because int might match the return type of a gcc2
4284 builtin and then its argument prototype would still apply. */
4285 char bindtextdomain();
4291 if { (eval echo configure
:4292: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4293 eval "ac_cv_lib_$ac_lib_var=yes"
4295 echo "configure: failed program was:" >&5
4296 cat conftest.
$ac_ext >&5
4298 eval "ac_cv_lib_$ac_lib_var=no"
4301 LIBS
="$ac_save_LIBS"
4304 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4305 echo "$ac_t""yes" 1>&6
4306 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
4307 echo "configure:4308: checking for gettext in libintl" >&5
4308 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
4309 echo $ac_n "(cached) $ac_c" 1>&6
4311 cat > conftest.
$ac_ext <<EOF
4312 #line 4313 "configure"
4313 #include "confdefs.h"
4316 return (int) gettext ("")
4319 if { (eval echo configure
:4320: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4321 gt_cv_func_gettext_libintl
=yes
4323 echo "configure: failed program was:" >&5
4324 cat conftest.
$ac_ext >&5
4326 gt_cv_func_gettext_libintl
=no
4331 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
4333 echo "$ac_t""no" 1>&6
4338 if test "$gt_cv_func_gettext_libc" = "yes" \
4339 ||
test "$gt_cv_func_gettext_libintl" = "yes"; then
4340 cat >> confdefs.h
<<\EOF
4341 #define HAVE_GETTEXT 1
4344 # Extract the first word of "msgfmt", so it can be a program name with args.
4345 set dummy msgfmt
; ac_word
=$2
4346 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4347 echo "configure:4348: checking for $ac_word" >&5
4348 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
4349 echo $ac_n "(cached) $ac_c" 1>&6
4353 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
4356 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
4357 for ac_dir
in $PATH; do
4358 test -z "$ac_dir" && ac_dir
=.
4359 if test -f $ac_dir/$ac_word; then
4360 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
4361 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
4367 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="no"
4371 MSGFMT
="$ac_cv_path_MSGFMT"
4372 if test -n "$MSGFMT"; then
4373 echo "$ac_t""$MSGFMT" 1>&6
4375 echo "$ac_t""no" 1>&6
4377 if test "$MSGFMT" != "no"; then
4378 for ac_func
in dcgettext
4380 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4381 echo "configure:4382: checking for $ac_func" >&5
4382 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4383 echo $ac_n "(cached) $ac_c" 1>&6
4385 cat > conftest.
$ac_ext <<EOF
4386 #line 4387 "configure"
4387 #include "confdefs.h"
4388 /* System header to define __stub macros and hopefully few prototypes,
4389 which can conflict with char $ac_func(); below. */
4391 /* Override any gcc2 internal prototype to avoid an error. */
4392 /* We use char because int might match the return type of a gcc2
4393 builtin and then its argument prototype would still apply. */
4398 /* The GNU C library defines this for functions which it implements
4399 to always fail with ENOSYS. Some functions are actually named
4400 something starting with __ and the normal name is an alias. */
4401 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4409 if { (eval echo configure
:4410: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4411 eval "ac_cv_func_$ac_func=yes"
4413 echo "configure: failed program was:" >&5
4414 cat conftest.
$ac_ext >&5
4416 eval "ac_cv_func_$ac_func=no"
4421 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4422 echo "$ac_t""yes" 1>&6
4423 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4424 cat >> confdefs.h
<<EOF
4425 #define $ac_tr_func 1
4429 echo "$ac_t""no" 1>&6
4433 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4434 set dummy gmsgfmt
; ac_word
=$2
4435 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4436 echo "configure:4437: checking for $ac_word" >&5
4437 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
4438 echo $ac_n "(cached) $ac_c" 1>&6
4442 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
4445 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
4448 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
4450 for ac_dir
in $ac_dummy; do
4451 test -z "$ac_dir" && ac_dir
=.
4452 if test -f $ac_dir/$ac_word; then
4453 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
4458 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
4462 GMSGFMT
="$ac_cv_path_GMSGFMT"
4463 if test -n "$GMSGFMT"; then
4464 echo "$ac_t""$GMSGFMT" 1>&6
4466 echo "$ac_t""no" 1>&6
4469 # Extract the first word of "xgettext", so it can be a program name with args.
4470 set dummy xgettext
; ac_word
=$2
4471 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4472 echo "configure:4473: checking for $ac_word" >&5
4473 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
4474 echo $ac_n "(cached) $ac_c" 1>&6
4478 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
4481 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
4482 for ac_dir
in $PATH; do
4483 test -z "$ac_dir" && ac_dir
=.
4484 if test -f $ac_dir/$ac_word; then
4485 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
4486 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
4492 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
4496 XGETTEXT
="$ac_cv_path_XGETTEXT"
4497 if test -n "$XGETTEXT"; then
4498 echo "$ac_t""$XGETTEXT" 1>&6
4500 echo "$ac_t""no" 1>&6
4503 cat > conftest.
$ac_ext <<EOF
4504 #line 4505 "configure"
4505 #include "confdefs.h"
4508 extern int _nl_msg_cat_cntr;
4509 return _nl_msg_cat_cntr
4512 if { (eval echo configure
:4513: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4517 echo "configure: failed program was:" >&5
4518 cat conftest.
$ac_ext >&5
4529 echo "$ac_t""no" 1>&6
4534 if test "$CATOBJEXT" = "NONE"; then
4535 nls_cv_use_gnu_gettext
=yes
4539 if test "$nls_cv_use_gnu_gettext" = "yes"; then
4540 INTLOBJS
="\$(GETTOBJS)"
4541 # Extract the first word of "msgfmt", so it can be a program name with args.
4542 set dummy msgfmt
; ac_word
=$2
4543 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4544 echo "configure:4545: checking for $ac_word" >&5
4545 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
4546 echo $ac_n "(cached) $ac_c" 1>&6
4550 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
4553 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
4554 for ac_dir
in $PATH; do
4555 test -z "$ac_dir" && ac_dir
=.
4556 if test -f $ac_dir/$ac_word; then
4557 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
4558 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
4564 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="msgfmt"
4568 MSGFMT
="$ac_cv_path_MSGFMT"
4569 if test -n "$MSGFMT"; then
4570 echo "$ac_t""$MSGFMT" 1>&6
4572 echo "$ac_t""no" 1>&6
4575 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4576 set dummy gmsgfmt
; ac_word
=$2
4577 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4578 echo "configure:4579: checking for $ac_word" >&5
4579 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
4580 echo $ac_n "(cached) $ac_c" 1>&6
4584 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
4587 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
4590 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
4592 for ac_dir
in $ac_dummy; do
4593 test -z "$ac_dir" && ac_dir
=.
4594 if test -f $ac_dir/$ac_word; then
4595 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
4600 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
4604 GMSGFMT
="$ac_cv_path_GMSGFMT"
4605 if test -n "$GMSGFMT"; then
4606 echo "$ac_t""$GMSGFMT" 1>&6
4608 echo "$ac_t""no" 1>&6
4611 # Extract the first word of "xgettext", so it can be a program name with args.
4612 set dummy xgettext
; ac_word
=$2
4613 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4614 echo "configure:4615: checking for $ac_word" >&5
4615 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
4616 echo $ac_n "(cached) $ac_c" 1>&6
4620 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
4623 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
4624 for ac_dir
in $PATH; do
4625 test -z "$ac_dir" && ac_dir
=.
4626 if test -f $ac_dir/$ac_word; then
4627 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
4628 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
4634 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
4638 XGETTEXT
="$ac_cv_path_XGETTEXT"
4639 if test -n "$XGETTEXT"; then
4640 echo "$ac_t""$XGETTEXT" 1>&6
4642 echo "$ac_t""no" 1>&6
4646 USE_INCLUDED_LIBINTL
=yes
4650 INTLDEPS
='$(top_builddir)/../intl/libintl.a'
4652 LIBS
=`echo $LIBS | sed -e 's/-lintl//'`
4653 nls_cv_header_intl
=libintl.h
4654 nls_cv_header_libgt
=libgettext.h
4657 if test "$XGETTEXT" != ":"; then
4658 if $XGETTEXT --omit-header /dev
/null
2> /dev
/null
; then
4661 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
4666 # We need to process the po/ directory.
4670 nls_cv_header_intl
=libintl.h
4671 nls_cv_header_libgt
=libgettext.h
4674 # If this is used in GNU gettext we have to set USE_NLS to `yes'
4675 # because some of the sources are only built for this goal.
4676 if test "$PACKAGE" = gettext; then
4678 USE_INCLUDED_LIBINTL
=yes
4681 for lang
in $ALL_LINGUAS; do
4682 GMOFILES
="$GMOFILES $lang.gmo"
4683 POFILES
="$POFILES $lang.po"
4699 if test "x$CATOBJEXT" != "x"; then
4700 if test "x$ALL_LINGUAS" = "x"; then
4703 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
4704 echo "configure:4705: checking for catalogs to be installed" >&5
4706 for lang
in ${LINGUAS=$ALL_LINGUAS}; do
4707 case "$ALL_LINGUAS" in
4708 *$lang*) NEW_LINGUAS
="$NEW_LINGUAS $lang" ;;
4711 LINGUAS
=$NEW_LINGUAS
4712 echo "$ac_t""$LINGUAS" 1>&6
4715 if test -n "$LINGUAS"; then
4716 for lang
in $LINGUAS; do CATALOGS
="$CATALOGS $lang$CATOBJEXT"; done
4720 if test $ac_cv_header_locale_h = yes; then
4721 INCLUDE_LOCALE_H
="#include <locale.h>"
4724 /* The system does not provide the header <locale.h>. Take care yourself. */"
4728 if test -f $srcdir/po2tbl.
sed.
in; then
4729 if test "$CATOBJEXT" = ".cat"; then
4730 ac_safe
=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
4731 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
4732 echo "configure:4733: checking for linux/version.h" >&5
4733 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4734 echo $ac_n "(cached) $ac_c" 1>&6
4736 cat > conftest.
$ac_ext <<EOF
4737 #line 4738 "configure"
4738 #include "confdefs.h"
4739 #include <linux/version.h>
4741 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4742 { (eval echo configure
:4743: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4743 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4744 if test -z "$ac_err"; then
4746 eval "ac_cv_header_$ac_safe=yes"
4749 echo "configure: failed program was:" >&5
4750 cat conftest.
$ac_ext >&5
4752 eval "ac_cv_header_$ac_safe=no"
4756 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4757 echo "$ac_t""yes" 1>&6
4760 echo "$ac_t""no" 1>&6
4765 sed -e '/^#/d' $srcdir/$msgformat-msg.
sed > po2msg.
sed
4767 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
4768 $srcdir/po2tbl.
sed.
in > po2tbl.
sed
4771 if test "$PACKAGE" = "gettext"; then
4781 MKINSTALLDIRS
="\$(srcdir)/../../mkinstalldirs"
4787 if test -d $srcdir/po
; then
4788 test -d po || mkdir po
4789 if test "x$srcdir" != "x."; then
4790 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
4791 posrcprefix
="$srcdir/"
4793 posrcprefix
="../$srcdir/"
4799 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
4800 < $srcdir/po
/POTFILES.
in > po
/POTFILES
4804 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
4805 echo "configure:4806: checking whether to enable maintainer-specific portions of Makefiles" >&5
4806 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4807 if test "${enable_maintainer_mode+set}" = set; then
4808 enableval
="$enable_maintainer_mode"
4809 USE_MAINTAINER_MODE
=$enableval
4811 USE_MAINTAINER_MODE
=no
4814 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
4817 if test $USE_MAINTAINER_MODE = yes; then
4818 MAINTAINER_MODE_TRUE
=
4819 MAINTAINER_MODE_FALSE
='#'
4821 MAINTAINER_MODE_TRUE
='#'
4822 MAINTAINER_MODE_FALSE
=
4824 MAINT
=$MAINTAINER_MODE_TRUE
4827 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
4828 echo "configure:4829: checking for Cygwin environment" >&5
4829 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
4830 echo $ac_n "(cached) $ac_c" 1>&6
4832 cat > conftest.
$ac_ext <<EOF
4833 #line 4834 "configure"
4834 #include "confdefs.h"
4839 #define __CYGWIN__ __CYGWIN32__
4844 if { (eval echo configure
:4845: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4848 echo "configure: failed program was:" >&5
4849 cat conftest.
$ac_ext >&5
4857 echo "$ac_t""$ac_cv_cygwin" 1>&6
4859 test "$ac_cv_cygwin" = yes && CYGWIN
=yes
4860 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
4861 echo "configure:4862: checking for mingw32 environment" >&5
4862 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
4863 echo $ac_n "(cached) $ac_c" 1>&6
4865 cat > conftest.
$ac_ext <<EOF
4866 #line 4867 "configure"
4867 #include "confdefs.h"
4873 if { (eval echo configure
:4874: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4877 echo "configure: failed program was:" >&5
4878 cat conftest.
$ac_ext >&5
4886 echo "$ac_t""$ac_cv_mingw32" 1>&6
4888 test "$ac_cv_mingw32" = yes && MINGW32
=yes
4891 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
4892 echo "configure:4893: checking for executable suffix" >&5
4893 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
4894 echo $ac_n "(cached) $ac_c" 1>&6
4896 if test "$CYGWIN" = yes ||
test "$MINGW32" = yes; then
4900 echo 'int main () { return 0; }' > conftest.
$ac_ext
4902 if { (eval echo configure
:4903: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
4903 for file in conftest.
*; do
4905 *.c |
*.o |
*.obj |
*.ilk |
*.pdb
) ;;
4906 *) ac_cv_exeext
=`echo $file | sed -e s/conftest//` ;;
4910 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
4913 test x
"${ac_cv_exeext}" = x
&& ac_cv_exeext
=no
4918 test x
"${ac_cv_exeext}" != xno
&& EXEEXT
=${ac_cv_exeext}
4919 echo "$ac_t""${ac_cv_exeext}" 1>&6
4923 for ac_hdr
in string.h stdlib.h memory.h
strings.h unistd.h stdarg.h varargs.h errno.h sys
/types.h
4925 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4926 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4927 echo "configure:4928: checking for $ac_hdr" >&5
4928 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4929 echo $ac_n "(cached) $ac_c" 1>&6
4931 cat > conftest.
$ac_ext <<EOF
4932 #line 4933 "configure"
4933 #include "confdefs.h"
4936 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4937 { (eval echo configure
:4938: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4938 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4939 if test -z "$ac_err"; then
4941 eval "ac_cv_header_$ac_safe=yes"
4944 echo "configure: failed program was:" >&5
4945 cat conftest.
$ac_ext >&5
4947 eval "ac_cv_header_$ac_safe=no"
4951 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4952 echo "$ac_t""yes" 1>&6
4953 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4954 cat >> confdefs.h
<<EOF
4955 #define $ac_tr_hdr 1
4959 echo "$ac_t""no" 1>&6
4964 # Put this here so that autoconf's "cross-compiling" message doesn't confuse
4965 # people who are not cross-compiling but are compiling cross-assemblers.
4966 echo $ac_n "checking whether compiling a cross-assembler""... $ac_c" 1>&6
4967 echo "configure:4968: checking whether compiling a cross-assembler" >&5
4968 if test "${host}" = "${target}"; then
4972 cat >> confdefs.h
<<\EOF
4973 #define CROSS_COMPILE 1
4977 echo "$ac_t""$cross_gas" 1>&6
4979 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4980 # for constant arguments. Useless!
4981 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
4982 echo "configure:4983: checking for working alloca.h" >&5
4983 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
4984 echo $ac_n "(cached) $ac_c" 1>&6
4986 cat > conftest.
$ac_ext <<EOF
4987 #line 4988 "configure"
4988 #include "confdefs.h"
4991 char *p = alloca(2 * sizeof(int));
4994 if { (eval echo configure
:4995: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4996 ac_cv_header_alloca_h
=yes
4998 echo "configure: failed program was:" >&5
4999 cat conftest.
$ac_ext >&5
5001 ac_cv_header_alloca_h
=no
5006 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
5007 if test $ac_cv_header_alloca_h = yes; then
5008 cat >> confdefs.h
<<\EOF
5009 #define HAVE_ALLOCA_H 1
5014 echo $ac_n "checking for alloca""... $ac_c" 1>&6
5015 echo "configure:5016: checking for alloca" >&5
5016 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
5017 echo $ac_n "(cached) $ac_c" 1>&6
5019 cat > conftest.
$ac_ext <<EOF
5020 #line 5021 "configure"
5021 #include "confdefs.h"
5024 # define alloca __builtin_alloca
5027 # include <malloc.h>
5028 # define alloca _alloca
5031 # include <alloca.h>
5036 # ifndef alloca /* predefined by HP cc +Olibcalls */
5045 char *p = (char *) alloca(1);
5048 if { (eval echo configure
:5049: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5050 ac_cv_func_alloca_works
=yes
5052 echo "configure: failed program was:" >&5
5053 cat conftest.
$ac_ext >&5
5055 ac_cv_func_alloca_works
=no
5060 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
5061 if test $ac_cv_func_alloca_works = yes; then
5062 cat >> confdefs.h
<<\EOF
5063 #define HAVE_ALLOCA 1
5068 if test $ac_cv_func_alloca_works = no
; then
5069 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5070 # that cause trouble. Some versions do not even contain alloca or
5071 # contain a buggy version. If you still want to use their alloca,
5072 # use ar to extract alloca.o from them instead of compiling alloca.c.
5073 ALLOCA
=alloca.
${ac_objext}
5074 cat >> confdefs.h
<<\EOF
5079 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
5080 echo "configure:5081: checking whether alloca needs Cray hooks" >&5
5081 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
5082 echo $ac_n "(cached) $ac_c" 1>&6
5084 cat > conftest.
$ac_ext <<EOF
5085 #line 5086 "configure"
5086 #include "confdefs.h"
5087 #if defined(CRAY) && ! defined(CRAY2)
5094 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5095 egrep "webecray" >/dev
/null
2>&1; then
5106 echo "$ac_t""$ac_cv_os_cray" 1>&6
5107 if test $ac_cv_os_cray = yes; then
5108 for ac_func
in _getb67 GETB67 getb67
; do
5109 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5110 echo "configure:5111: checking for $ac_func" >&5
5111 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5112 echo $ac_n "(cached) $ac_c" 1>&6
5114 cat > conftest.
$ac_ext <<EOF
5115 #line 5116 "configure"
5116 #include "confdefs.h"
5117 /* System header to define __stub macros and hopefully few prototypes,
5118 which can conflict with char $ac_func(); below. */
5120 /* Override any gcc2 internal prototype to avoid an error. */
5121 /* We use char because int might match the return type of a gcc2
5122 builtin and then its argument prototype would still apply. */
5127 /* The GNU C library defines this for functions which it implements
5128 to always fail with ENOSYS. Some functions are actually named
5129 something starting with __ and the normal name is an alias. */
5130 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5138 if { (eval echo configure
:5139: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5140 eval "ac_cv_func_$ac_func=yes"
5142 echo "configure: failed program was:" >&5
5143 cat conftest.
$ac_ext >&5
5145 eval "ac_cv_func_$ac_func=no"
5150 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5151 echo "$ac_t""yes" 1>&6
5152 cat >> confdefs.h
<<EOF
5153 #define CRAY_STACKSEG_END $ac_func
5158 echo "$ac_t""no" 1>&6
5164 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
5165 echo "configure:5166: checking stack direction for C alloca" >&5
5166 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
5167 echo $ac_n "(cached) $ac_c" 1>&6
5169 if test "$cross_compiling" = yes; then
5170 ac_cv_c_stack_direction
=0
5172 cat > conftest.
$ac_ext <<EOF
5173 #line 5174 "configure"
5174 #include "confdefs.h"
5175 find_stack_direction ()
5177 static char *addr = 0;
5182 return find_stack_direction ();
5185 return (&dummy > addr) ? 1 : -1;
5189 exit (find_stack_direction() < 0);
5192 if { (eval echo configure
:5193: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
5194 ac_cv_c_stack_direction
=1
5196 echo "configure: failed program was:" >&5
5197 cat conftest.
$ac_ext >&5
5199 ac_cv_c_stack_direction
=-1
5206 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
5207 cat >> confdefs.h
<<EOF
5208 #define STACK_DIRECTION $ac_cv_c_stack_direction
5213 echo $ac_n "checking for inline""... $ac_c" 1>&6
5214 echo "configure:5215: checking for inline" >&5
5215 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
5216 echo $ac_n "(cached) $ac_c" 1>&6
5219 for ac_kw
in inline __inline__ __inline
; do
5220 cat > conftest.
$ac_ext <<EOF
5221 #line 5222 "configure"
5222 #include "confdefs.h"
5228 if { (eval echo configure
:5229: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5230 ac_cv_c_inline
=$ac_kw; break
5232 echo "configure: failed program was:" >&5
5233 cat conftest.
$ac_ext >&5
5240 echo "$ac_t""$ac_cv_c_inline" 1>&6
5241 case "$ac_cv_c_inline" in
5243 no
) cat >> confdefs.h
<<\EOF
5247 *) cat >> confdefs.h
<<EOF
5248 #define inline $ac_cv_c_inline
5254 # VMS doesn't have unlink.
5255 for ac_func
in unlink remove
5257 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5258 echo "configure:5259: checking for $ac_func" >&5
5259 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5260 echo $ac_n "(cached) $ac_c" 1>&6
5262 cat > conftest.
$ac_ext <<EOF
5263 #line 5264 "configure"
5264 #include "confdefs.h"
5265 /* System header to define __stub macros and hopefully few prototypes,
5266 which can conflict with char $ac_func(); below. */
5268 /* Override any gcc2 internal prototype to avoid an error. */
5269 /* We use char because int might match the return type of a gcc2
5270 builtin and then its argument prototype would still apply. */
5275 /* The GNU C library defines this for functions which it implements
5276 to always fail with ENOSYS. Some functions are actually named
5277 something starting with __ and the normal name is an alias. */
5278 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5286 if { (eval echo configure
:5287: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5288 eval "ac_cv_func_$ac_func=yes"
5290 echo "configure: failed program was:" >&5
5291 cat conftest.
$ac_ext >&5
5293 eval "ac_cv_func_$ac_func=no"
5298 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5299 echo "$ac_t""yes" 1>&6
5300 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5301 cat >> confdefs.h
<<EOF
5302 #define $ac_tr_func 1
5306 echo "$ac_t""no" 1>&6
5311 # Some systems don't have sbrk().
5314 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5315 echo "configure:5316: checking for $ac_func" >&5
5316 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5317 echo $ac_n "(cached) $ac_c" 1>&6
5319 cat > conftest.
$ac_ext <<EOF
5320 #line 5321 "configure"
5321 #include "confdefs.h"
5322 /* System header to define __stub macros and hopefully few prototypes,
5323 which can conflict with char $ac_func(); below. */
5325 /* Override any gcc2 internal prototype to avoid an error. */
5326 /* We use char because int might match the return type of a gcc2
5327 builtin and then its argument prototype would still apply. */
5332 /* The GNU C library defines this for functions which it implements
5333 to always fail with ENOSYS. Some functions are actually named
5334 something starting with __ and the normal name is an alias. */
5335 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5343 if { (eval echo configure
:5344: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5345 eval "ac_cv_func_$ac_func=yes"
5347 echo "configure: failed program was:" >&5
5348 cat conftest.
$ac_ext >&5
5350 eval "ac_cv_func_$ac_func=no"
5355 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5356 echo "$ac_t""yes" 1>&6
5357 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5358 cat >> confdefs.h
<<EOF
5359 #define $ac_tr_func 1
5363 echo "$ac_t""no" 1>&6
5368 # Some non-ANSI preprocessors botch requoting inside strings. That's bad
5369 # enough, but on some of those systems, the assert macro relies on requoting
5371 echo $ac_n "checking for working assert macro""... $ac_c" 1>&6
5372 echo "configure:5373: checking for working assert macro" >&5
5373 if eval "test \"`echo '$''{'gas_cv_assert_ok'+set}'`\" = set"; then
5374 echo $ac_n "(cached) $ac_c" 1>&6
5376 cat > conftest.
$ac_ext <<EOF
5377 #line 5378 "configure"
5378 #include "confdefs.h"
5383 /* check for requoting problems */
5384 static int a, b, c, d;
5386 assert (!strcmp(s, "foo bar baz quux"));
5387 /* check for newline handling */
5393 if { (eval echo configure
:5394: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5395 gas_cv_assert_ok
=yes
5397 echo "configure: failed program was:" >&5
5398 cat conftest.
$ac_ext >&5
5404 echo "$ac_t""$gas_cv_assert_ok" 1>&6
5405 test $gas_cv_assert_ok = yes ||
cat >> confdefs.h
<<\EOF
5406 #define BROKEN_ASSERT 1
5411 # On some systems, the system header files may not declare malloc, realloc,
5412 # and free. There are places where gas needs these functions to have been
5413 # declared -- such as when taking their addresses.
5415 #ifdef HAVE_MEMORY_H
5418 #ifdef HAVE_STRING_H
5421 #ifdef HAVE_STRINGS_H
5422 #include <strings.h>
5425 #ifdef HAVE_STDLIB_H
5428 #ifdef HAVE_UNISTD_H
5433 echo $ac_n "checking whether declaration is required for strstr""... $ac_c" 1>&6
5434 echo "configure:5435: checking whether declaration is required for strstr" >&5
5435 if eval "test \"`echo '$''{'gas_cv_decl_needed_strstr'+set}'`\" = set"; then
5436 echo $ac_n "(cached) $ac_c" 1>&6
5438 cat > conftest.
$ac_ext <<EOF
5439 #line 5440 "configure"
5440 #include "confdefs.h"
5444 typedef char *(*f)();
5450 if { (eval echo configure
:5451: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5452 gas_cv_decl_needed_strstr
=no
5454 echo "configure: failed program was:" >&5
5455 cat conftest.
$ac_ext >&5
5457 gas_cv_decl_needed_strstr
=yes
5461 echo "$ac_t""$gas_cv_decl_needed_strstr" 1>&6
5462 if test $gas_cv_decl_needed_strstr = yes; then
5463 cat >> confdefs.h
<<\EOF
5464 #define NEED_DECLARATION_STRSTR 1
5470 echo $ac_n "checking whether declaration is required for malloc""... $ac_c" 1>&6
5471 echo "configure:5472: checking whether declaration is required for malloc" >&5
5472 if eval "test \"`echo '$''{'gas_cv_decl_needed_malloc'+set}'`\" = set"; then
5473 echo $ac_n "(cached) $ac_c" 1>&6
5475 cat > conftest.
$ac_ext <<EOF
5476 #line 5477 "configure"
5477 #include "confdefs.h"
5481 typedef char *(*f)();
5487 if { (eval echo configure
:5488: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5489 gas_cv_decl_needed_malloc
=no
5491 echo "configure: failed program was:" >&5
5492 cat conftest.
$ac_ext >&5
5494 gas_cv_decl_needed_malloc
=yes
5498 echo "$ac_t""$gas_cv_decl_needed_malloc" 1>&6
5499 if test $gas_cv_decl_needed_malloc = yes; then
5500 cat >> confdefs.h
<<\EOF
5501 #define NEED_DECLARATION_MALLOC 1
5507 echo $ac_n "checking whether declaration is required for free""... $ac_c" 1>&6
5508 echo "configure:5509: checking whether declaration is required for free" >&5
5509 if eval "test \"`echo '$''{'gas_cv_decl_needed_free'+set}'`\" = set"; then
5510 echo $ac_n "(cached) $ac_c" 1>&6
5512 cat > conftest.
$ac_ext <<EOF
5513 #line 5514 "configure"
5514 #include "confdefs.h"
5518 typedef void (*f)();
5524 if { (eval echo configure
:5525: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5526 gas_cv_decl_needed_free
=no
5528 echo "configure: failed program was:" >&5
5529 cat conftest.
$ac_ext >&5
5531 gas_cv_decl_needed_free
=yes
5535 echo "$ac_t""$gas_cv_decl_needed_free" 1>&6
5536 if test $gas_cv_decl_needed_free = yes; then
5537 cat >> confdefs.h
<<\EOF
5538 #define NEED_DECLARATION_FREE 1
5544 echo $ac_n "checking whether declaration is required for sbrk""... $ac_c" 1>&6
5545 echo "configure:5546: checking whether declaration is required for sbrk" >&5
5546 if eval "test \"`echo '$''{'gas_cv_decl_needed_sbrk'+set}'`\" = set"; then
5547 echo $ac_n "(cached) $ac_c" 1>&6
5549 cat > conftest.
$ac_ext <<EOF
5550 #line 5551 "configure"
5551 #include "confdefs.h"
5555 typedef char *(*f)();
5561 if { (eval echo configure
:5562: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5563 gas_cv_decl_needed_sbrk
=no
5565 echo "configure: failed program was:" >&5
5566 cat conftest.
$ac_ext >&5
5568 gas_cv_decl_needed_sbrk
=yes
5572 echo "$ac_t""$gas_cv_decl_needed_sbrk" 1>&6
5573 if test $gas_cv_decl_needed_sbrk = yes; then
5574 cat >> confdefs.h
<<\EOF
5575 #define NEED_DECLARATION_SBRK 1
5581 echo $ac_n "checking whether declaration is required for environ""... $ac_c" 1>&6
5582 echo "configure:5583: checking whether declaration is required for environ" >&5
5583 if eval "test \"`echo '$''{'gas_cv_decl_needed_environ'+set}'`\" = set"; then
5584 echo $ac_n "(cached) $ac_c" 1>&6
5586 cat > conftest.
$ac_ext <<EOF
5587 #line 5588 "configure"
5588 #include "confdefs.h"
5598 if { (eval echo configure
:5599: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5600 gas_cv_decl_needed_environ
=no
5602 echo "configure: failed program was:" >&5
5603 cat conftest.
$ac_ext >&5
5605 gas_cv_decl_needed_environ
=yes
5609 echo "$ac_t""$gas_cv_decl_needed_environ" 1>&6
5610 if test $gas_cv_decl_needed_environ = yes; then
5611 cat >> confdefs.h
<<\EOF
5612 #define NEED_DECLARATION_ENVIRON 1
5618 # Does errno.h declare errno, or do we have to add a separate declaration
5621 echo $ac_n "checking whether declaration is required for errno""... $ac_c" 1>&6
5622 echo "configure:5623: checking whether declaration is required for errno" >&5
5623 if eval "test \"`echo '$''{'gas_cv_decl_needed_errno'+set}'`\" = set"; then
5624 echo $ac_n "(cached) $ac_c" 1>&6
5626 cat > conftest.
$ac_ext <<EOF
5627 #line 5628 "configure"
5628 #include "confdefs.h"
5642 if { (eval echo configure
:5643: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5644 gas_cv_decl_needed_errno
=no
5646 echo "configure: failed program was:" >&5
5647 cat conftest.
$ac_ext >&5
5649 gas_cv_decl_needed_errno
=yes
5653 echo "$ac_t""$gas_cv_decl_needed_errno" 1>&6
5654 if test $gas_cv_decl_needed_errno = yes; then
5655 cat >> confdefs.h
<<\EOF
5656 #define NEED_DECLARATION_ERRNO 1
5665 cat > confcache
<<\EOF
5666 # This file is a shell script that caches the results of configure
5667 # tests run on this system so they can be shared between configure
5668 # scripts and configure runs. It is not useful on other systems.
5669 # If it contains results you don't want to keep, you may remove or edit it.
5671 # By default, configure uses ./config.cache as the cache file,
5672 # creating it if it does not exist already. You can give configure
5673 # the --cache-file=FILE option to use a different cache file; that is
5674 # what configure does when it calls configure scripts in
5675 # subdirectories, so they share the cache.
5676 # Giving --cache-file=/dev/null disables caching, for debugging configure.
5677 # config.status only pays attention to the cache file if you give it the
5678 # --recheck option to rerun configure.
5681 # The following way of writing the cache mishandles newlines in values,
5682 # but we know of no workaround that is simple, portable, and efficient.
5683 # So, don't put newlines in cache variables' values.
5684 # Ultrix sh set writes to stderr and can't be redirected directly,
5685 # and sets the high bit in the cache file unless we assign to the vars.
5687 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5689 # `set' does not quote correctly, so add quotes (double-quote substitution
5690 # turns \\\\ into \\, and sed turns \\ into \).
5692 -e "s/'/'\\\\''/g" \
5693 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
5696 # `set' quotes correctly as required by POSIX, so do not add quotes.
5697 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
5700 if cmp -s $cache_file confcache
; then
5703 if test -w $cache_file; then
5704 echo "updating cache $cache_file"
5705 cat confcache
> $cache_file
5707 echo "not updating unwritable cache $cache_file"
5712 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
5714 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
5715 # Let make expand exec_prefix.
5716 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
5718 # Any assignment to VPATH causes Sun make to only execute
5719 # the first set of double-colon rules, so remove it if not needed.
5720 # If there is a colon in the path, we need to keep it.
5721 if test "x$srcdir" = x.
; then
5722 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
5725 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
5727 DEFS
=-DHAVE_CONFIG_H
5729 # Without the "./", some shells look in PATH for config.status.
5730 : ${CONFIG_STATUS=./config.status}
5732 echo creating
$CONFIG_STATUS
5733 rm -f $CONFIG_STATUS
5734 cat > $CONFIG_STATUS <<EOF
5736 # Generated automatically by configure.
5737 # Run this file to recreate the current configuration.
5738 # This directory was configured as follows,
5739 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5741 # $0 $ac_configure_args
5743 # Compiler output produced by configure, useful for debugging
5744 # configure, is in ./config.log if it exists.
5746 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
5749 case "\$ac_option" in
5750 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5751 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
5752 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
5753 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
5754 echo "$CONFIG_STATUS generated by autoconf version 2.13"
5756 -help | --help | --hel | --he | --h)
5757 echo "\$ac_cs_usage"; exit 0 ;;
5758 *) echo "\$ac_cs_usage"; exit 1 ;;
5762 ac_given_srcdir=$srcdir
5763 ac_given_INSTALL="$INSTALL"
5765 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
5767 cat >> $CONFIG_STATUS <<EOF
5769 # Protect against being on the right side of a sed subst in config.status.
5770 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
5771 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
5775 s%@CFLAGS@%$CFLAGS%g
5776 s%@CPPFLAGS@%$CPPFLAGS%g
5777 s%@CXXFLAGS@%$CXXFLAGS%g
5778 s%@FFLAGS@%$FFLAGS%g
5780 s%@LDFLAGS@%$LDFLAGS%g
5782 s%@exec_prefix@%$exec_prefix%g
5783 s%@prefix@%$prefix%g
5784 s%@program_transform_name@%$program_transform_name%g
5785 s%@bindir@%$bindir%g
5786 s%@sbindir@%$sbindir%g
5787 s%@libexecdir@%$libexecdir%g
5788 s%@datadir@%$datadir%g
5789 s%@sysconfdir@%$sysconfdir%g
5790 s%@sharedstatedir@%$sharedstatedir%g
5791 s%@localstatedir@%$localstatedir%g
5792 s%@libdir@%$libdir%g
5793 s%@includedir@%$includedir%g
5794 s%@oldincludedir@%$oldincludedir%g
5795 s%@infodir@%$infodir%g
5796 s%@mandir@%$mandir%g
5798 s%@host_alias@%$host_alias%g
5799 s%@host_cpu@%$host_cpu%g
5800 s%@host_vendor@%$host_vendor%g
5801 s%@host_os@%$host_os%g
5802 s%@target@%$target%g
5803 s%@target_alias@%$target_alias%g
5804 s%@target_cpu@%$target_cpu%g
5805 s%@target_vendor@%$target_vendor%g
5806 s%@target_os@%$target_os%g
5808 s%@build_alias@%$build_alias%g
5809 s%@build_cpu@%$build_cpu%g
5810 s%@build_vendor@%$build_vendor%g
5811 s%@build_os@%$build_os%g
5812 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
5813 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
5814 s%@INSTALL_DATA@%$INSTALL_DATA%g
5815 s%@PACKAGE@%$PACKAGE%g
5816 s%@VERSION@%$VERSION%g
5817 s%@ACLOCAL@%$ACLOCAL%g
5818 s%@AUTOCONF@%$AUTOCONF%g
5819 s%@AUTOMAKE@%$AUTOMAKE%g
5820 s%@AUTOHEADER@%$AUTOHEADER%g
5821 s%@MAKEINFO@%$MAKEINFO%g
5822 s%@SET_MAKE@%$SET_MAKE%g
5823 s%@RANLIB@%$RANLIB%g
5827 s%@USE_SYMBOL_UNDERSCORE@%$USE_SYMBOL_UNDERSCORE%g
5829 s%@DLLTOOL@%$DLLTOOL%g
5831 s%@LIBTOOL@%$LIBTOOL%g
5832 s%@cgen_cpu_prefix@%$cgen_cpu_prefix%g
5833 s%@extra_objects@%$extra_objects%g
5834 s%@target_cpu_type@%$target_cpu_type%g
5835 s%@obj_format@%$obj_format%g
5836 s%@te_file@%$te_file%g
5837 s%@install_tooldir@%$install_tooldir%g
5839 s%@BFDLIB@%$BFDLIB%g
5840 s%@OPCODES_LIB@%$OPCODES_LIB%g
5841 s%@ALL_OBJ_DEPS@%$ALL_OBJ_DEPS%g
5844 s%@LEXLIB@%$LEXLIB%g
5846 s%@LEX_OUTPUT_ROOT@%$LEX_OUTPUT_ROOT%g
5847 s%@ALLOCA@%$ALLOCA%g
5848 s%@USE_NLS@%$USE_NLS%g
5849 s%@MSGFMT@%$MSGFMT%g
5850 s%@GMSGFMT@%$GMSGFMT%g
5851 s%@XGETTEXT@%$XGETTEXT%g
5852 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
5853 s%@CATALOGS@%$CATALOGS%g
5854 s%@CATOBJEXT@%$CATOBJEXT%g
5855 s%@DATADIRNAME@%$DATADIRNAME%g
5856 s%@GMOFILES@%$GMOFILES%g
5857 s%@INSTOBJEXT@%$INSTOBJEXT%g
5858 s%@INTLDEPS@%$INTLDEPS%g
5859 s%@INTLLIBS@%$INTLLIBS%g
5860 s%@INTLOBJS@%$INTLOBJS%g
5861 s%@POFILES@%$POFILES%g
5863 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
5865 s%@GT_YES@%$GT_YES%g
5866 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
5868 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
5869 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
5871 s%@EXEEXT@%$EXEEXT%g
5876 cat >> $CONFIG_STATUS <<\EOF
5878 # Split the substitutions into bite-sized pieces for seds with
5879 # small command number limits, like on Digital OSF/1 and HP-UX.
5880 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
5881 ac_file
=1 # Number of current file.
5882 ac_beg
=1 # First line for current file.
5883 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
5886 while $ac_more_lines; do
5887 if test $ac_beg -gt 1; then
5888 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
5890 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
5892 if test ! -s conftest.s
$ac_file; then
5894 rm -f conftest.s
$ac_file
5896 if test -z "$ac_sed_cmds"; then
5897 ac_sed_cmds
="sed -f conftest.s$ac_file"
5899 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
5901 ac_file
=`expr $ac_file + 1`
5903 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
5906 if test -z "$ac_sed_cmds"; then
5911 cat >> $CONFIG_STATUS <<EOF
5913 CONFIG_FILES=\${CONFIG_FILES-"Makefile doc/Makefile .gdbinit:gdbinit.in po/Makefile.in:po/Make-in"}
5915 cat >> $CONFIG_STATUS <<\EOF
5916 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
5917 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5919 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
5920 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
5921 *) ac_file_in
="${ac_file}.in" ;;
5924 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
5926 # Remove last slash and all that follows it. Not all systems have dirname.
5927 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5928 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
5929 # The file is in a subdirectory.
5930 test ! -d "$ac_dir" && mkdir
"$ac_dir"
5931 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
5932 # A "../" for each directory in $ac_dir_suffix.
5933 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
5935 ac_dir_suffix
= ac_dots
=
5938 case "$ac_given_srcdir" in
5940 if test -z "$ac_dots"; then top_srcdir
=.
5941 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
5942 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
5944 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
5945 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
5948 case "$ac_given_INSTALL" in
5949 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
5950 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
5953 echo creating
"$ac_file"
5955 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
5957 *Makefile
*) ac_comsub
="1i\\
5958 # $configure_input" ;;
5962 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5964 s%@configure_input@%$configure_input%g
5965 s%@srcdir@%$srcdir%g
5966 s%@top_srcdir@%$top_srcdir%g
5967 s%@INSTALL@%$INSTALL%g
5968 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
5972 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5973 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5975 # ac_d sets the value in "#define NAME VALUE" lines.
5976 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5977 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
5980 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
5981 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5982 ac_uB
='\([ ]\)%\1#\2define\3'
5985 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5986 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5987 ac_eB
='$%\1#\2define\3'
5991 if test "${CONFIG_HEADERS+set}" != set; then
5993 cat >> $CONFIG_STATUS <<EOF
5994 CONFIG_HEADERS="config.h:config.in"
5996 cat >> $CONFIG_STATUS <<\EOF
5998 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
5999 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6001 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
6002 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
6003 *) ac_file_in
="${ac_file}.in" ;;
6006 echo creating
$ac_file
6008 rm -f conftest.frag conftest.
in conftest.out
6009 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6010 cat $ac_file_inputs > conftest.
in
6014 # Transform confdefs.h into a sed script conftest.vals that substitutes
6015 # the proper values into config.h.in to produce config.h. And first:
6016 # Protect against being on the right side of a sed subst in config.status.
6017 # Protect against being in an unquoted here document in config.status.
6019 cat > conftest.hdr
<<\EOF
6022 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
6026 sed -n -f conftest.hdr confdefs.h > conftest.vals
6029 # This sed command replaces #undef with comments. This is necessary, for
6030 # example, in the case of _POSIX_SOURCE, which is predefined and required
6031 # on some systems where configure will not decide to define it.
6032 cat >> conftest.vals <<\EOF
6033 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
6036 # Break up conftest.vals because some shells have a limit on
6037 # the size of here documents, and old seds have small limits too.
6042 ac_lines=`grep -c . conftest.vals
`
6043 # grep -c gives empty output for an empty file on some AIX systems.
6044 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
6045 # Write a limited-size here document to conftest.frag.
6046 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
6047 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
6049 sed -f conftest.frag conftest.in > conftest.out
6051 mv conftest.out conftest.in
6053 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
6055 mv conftest.tail conftest.vals
6059 cat >> $CONFIG_STATUS <<\EOF
6060 rm -f conftest.frag conftest.h
6061 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
6062 cat conftest.in >> conftest.h
6064 if cmp -s $ac_file conftest.h 2>/dev/null; then
6065 echo "$ac_file is unchanged"
6068 # Remove last slash and all that follows it. Not all systems have dirname.
6069 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
6070 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6071 # The file is in a subdirectory.
6072 test ! -d "$ac_dir" && mkdir "$ac_dir"
6075 mv conftest.h $ac_file
6080 cat >> $CONFIG_STATUS <<EOF
6082 target_cpu_type=${target_cpu_type}
6083 cgen_cpu_prefix=${cgen_cpu_prefix}
6084 obj_format=${obj_format}
6087 cat >> $CONFIG_STATUS <<\EOF
6088 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
6089 rm -f targ-cpu.c targ-cpu.h obj-format.h obj-format.c targ-env.h atof-targ.c itbl-cpu.h
6090 echo '#include "tc-'"${target_cpu_type}"'.h"' > targ-cpu.h
6091 echo '#include "obj-'"${obj_format}"'.h"' > obj-format.h
6092 echo '#include "te-'"${te_file}"'.h"' > targ-env.h
6093 echo '#include "itbl-'"${target_cpu_type}"'.h"' > itbl-cpu.h
6094 if test "x$cgen_cpu_prefix" != x ; then
6095 echo '#include "opcodes/'"${cgen_cpu_prefix}"'-desc.h"' > cgen-desc.h
6098 sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile
6101 chmod +x $CONFIG_STATUS
6102 rm -fr confdefs* $ac_clean_files
6103 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1