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 avoid locking (might break parallel builds)"
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
,
60 bindir
='${exec_prefix}/bin'
61 sbindir
='${exec_prefix}/sbin'
62 libexecdir
='${exec_prefix}/libexec'
63 datadir
='${prefix}/share'
64 sysconfdir
='${prefix}/etc'
65 sharedstatedir
='${prefix}/com'
66 localstatedir
='${prefix}/var'
67 libdir
='${exec_prefix}/lib'
68 includedir
='${prefix}/include'
69 oldincludedir
='/usr/include'
70 infodir
='${prefix}/info'
71 mandir
='${prefix}/man'
73 # Initialize some other variables.
76 SHELL
=${CONFIG_SHELL-/bin/sh}
77 # Maximum number of lines to put in a shell here document.
84 # If the previous option needs an argument, assign it.
85 if test -n "$ac_prev"; then
86 eval "$ac_prev=\$ac_option"
92 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
96 # Accept the important Cygnus configure options, so we can diagnose typos.
100 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
102 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
103 bindir
="$ac_optarg" ;;
105 -build |
--build |
--buil |
--bui |
--bu)
107 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
108 build
="$ac_optarg" ;;
110 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
111 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
112 ac_prev
=cache_file
;;
113 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
114 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
115 cache_file
="$ac_optarg" ;;
117 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
119 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
121 datadir
="$ac_optarg" ;;
123 -disable-* |
--disable-*)
124 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
125 # Reject names that are not valid shell variable names.
126 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
127 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
129 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
130 eval "enable_${ac_feature}=no" ;;
132 -enable-* |
--enable-*)
133 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
134 # Reject names that are not valid shell variable names.
135 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
136 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
138 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
143 eval "enable_${ac_feature}='$ac_optarg'" ;;
145 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
146 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
147 |
--exec |
--exe |
--ex)
148 ac_prev
=exec_prefix
;;
149 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
150 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
151 |
--exec=* |
--exe=* |
--ex=*)
152 exec_prefix
="$ac_optarg" ;;
154 -gas |
--gas |
--ga |
--g)
155 # Obsolete; use --with-gas.
158 -help |
--help |
--hel |
--he)
159 # Omit some internal or obsolete options to make the list less imposing.
160 # This message is too long to be a string in the A/UX 3.1 sh.
162 Usage: configure [options] [host]
163 Options: [defaults in brackets after descriptions]
165 --cache-file=FILE cache test results in FILE
166 --help print this message
167 --no-create do not create output files
168 --quiet, --silent do not print \`checking...' messages
169 --site-file=FILE use FILE as the site file
170 --version print the version of autoconf that created configure
171 Directory and file names:
172 --prefix=PREFIX install architecture-independent files in PREFIX
174 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
176 --bindir=DIR user executables in DIR [EPREFIX/bin]
177 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
178 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
179 --datadir=DIR read-only architecture-independent data in DIR
181 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
182 --sharedstatedir=DIR modifiable architecture-independent data in DIR
184 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
185 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
186 --includedir=DIR C header files in DIR [PREFIX/include]
187 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
188 --infodir=DIR info documentation in DIR [PREFIX/info]
189 --mandir=DIR man documentation in DIR [PREFIX/man]
190 --srcdir=DIR find the sources in DIR [configure dir or ..]
191 --program-prefix=PREFIX prepend PREFIX to installed program names
192 --program-suffix=SUFFIX append SUFFIX to installed program names
193 --program-transform-name=PROGRAM
194 run sed PROGRAM on installed program names
198 --build=BUILD configure for building on BUILD [BUILD=HOST]
199 --host=HOST configure for HOST [guessed]
200 --target=TARGET configure for TARGET [TARGET=HOST]
201 Features and packages:
202 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
203 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
204 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
205 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
206 --x-includes=DIR X include files are in DIR
207 --x-libraries=DIR X library files are in DIR
209 if test -n "$ac_help"; then
210 echo "--enable and --with options recognized:$ac_help"
214 -host |
--host |
--hos |
--ho)
216 -host=* |
--host=* |
--hos=* |
--ho=*)
219 -includedir |
--includedir |
--includedi |
--included |
--include \
220 |
--includ |
--inclu |
--incl |
--inc)
221 ac_prev
=includedir
;;
222 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
223 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
224 includedir
="$ac_optarg" ;;
226 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
228 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
229 infodir
="$ac_optarg" ;;
231 -libdir |
--libdir |
--libdi |
--libd)
233 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
234 libdir
="$ac_optarg" ;;
236 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
237 |
--libexe |
--libex |
--libe)
238 ac_prev
=libexecdir
;;
239 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
240 |
--libexe=* |
--libex=* |
--libe=*)
241 libexecdir
="$ac_optarg" ;;
243 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
244 |
--localstate |
--localstat |
--localsta |
--localst \
245 |
--locals |
--local |
--loca |
--loc |
--lo)
246 ac_prev
=localstatedir
;;
247 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
248 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
249 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
250 localstatedir
="$ac_optarg" ;;
252 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
254 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
255 mandir
="$ac_optarg" ;;
258 # Obsolete; use --without-fp.
261 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
265 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
266 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
269 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
270 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
271 |
--oldin |
--oldi |
--old |
--ol |
--o)
272 ac_prev
=oldincludedir
;;
273 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
274 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
275 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
276 oldincludedir
="$ac_optarg" ;;
278 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
280 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
281 prefix
="$ac_optarg" ;;
283 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
284 |
--program-pre |
--program-pr |
--program-p)
285 ac_prev
=program_prefix
;;
286 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
287 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
288 program_prefix
="$ac_optarg" ;;
290 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
291 |
--program-suf |
--program-su |
--program-s)
292 ac_prev
=program_suffix
;;
293 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
294 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
295 program_suffix
="$ac_optarg" ;;
297 -program-transform-name |
--program-transform-name \
298 |
--program-transform-nam |
--program-transform-na \
299 |
--program-transform-n |
--program-transform- \
300 |
--program-transform |
--program-transfor \
301 |
--program-transfo |
--program-transf \
302 |
--program-trans |
--program-tran \
303 |
--progr-tra |
--program-tr |
--program-t)
304 ac_prev
=program_transform_name
;;
305 -program-transform-name=* |
--program-transform-name=* \
306 |
--program-transform-nam=* |
--program-transform-na=* \
307 |
--program-transform-n=* |
--program-transform-=* \
308 |
--program-transform=* |
--program-transfor=* \
309 |
--program-transfo=* |
--program-transf=* \
310 |
--program-trans=* |
--program-tran=* \
311 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
312 program_transform_name
="$ac_optarg" ;;
314 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
315 |
-silent |
--silent |
--silen |
--sile |
--sil)
318 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
320 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
322 sbindir
="$ac_optarg" ;;
324 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
325 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
326 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
328 ac_prev
=sharedstatedir
;;
329 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
330 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
331 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
333 sharedstatedir
="$ac_optarg" ;;
335 -site |
--site |
--sit)
337 -site=* |
--site=* |
--sit=*)
340 -site-file |
--site-file |
--site-fil |
--site-fi |
--site-f)
342 -site-file=* |
--site-file=* |
--site-fil=* |
--site-fi=* |
--site-f=*)
343 sitefile
="$ac_optarg" ;;
345 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
347 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
348 srcdir
="$ac_optarg" ;;
350 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
351 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
352 ac_prev
=sysconfdir
;;
353 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
354 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
355 sysconfdir
="$ac_optarg" ;;
357 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
359 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
360 target
="$ac_optarg" ;;
362 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
365 -version |
--version |
--versio |
--versi |
--vers)
366 echo "configure generated by autoconf version 2.13"
370 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
371 # Reject names that are not valid shell variable names.
372 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
373 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
375 ac_package
=`echo $ac_package| sed 's/-/_/g'`
380 eval "with_${ac_package}='$ac_optarg'" ;;
382 -without-* |
--without-*)
383 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
384 # Reject names that are not valid shell variable names.
385 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
386 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
388 ac_package
=`echo $ac_package| sed 's/-/_/g'`
389 eval "with_${ac_package}=no" ;;
392 # Obsolete; use --with-x.
395 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
396 |
--x-incl |
--x-inc |
--x-in |
--x-i)
397 ac_prev
=x_includes
;;
398 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
399 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
400 x_includes
="$ac_optarg" ;;
402 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
403 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
404 ac_prev
=x_libraries
;;
405 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
406 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
407 x_libraries
="$ac_optarg" ;;
409 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
413 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
414 echo "configure: warning: $ac_option: invalid host type" 1>&2
416 if test "x$nonopt" != xNONE
; then
417 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
425 if test -n "$ac_prev"; then
426 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
429 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
431 # File descriptor usage:
434 # 2 errors and warnings
435 # 3 some systems may open it to /dev/tty
436 # 4 used on the Kubota Titan
437 # 6 checking for... messages and results
438 # 5 compiler messages saved in config.log
439 if test "$silent" = yes; then
447 This file contains any messages produced by compilers while
448 running configure, to aid debugging if configure makes a mistake.
451 # Strip out --no-create and --no-recursion so they do not pile up.
452 # Also quote any args containing shell metacharacters.
457 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
458 |
--no-cr |
--no-c) ;;
459 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
460 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
461 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
462 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
463 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
468 # Only set these to C if already set. These must not be set unconditionally
469 # because not all systems understand e.g. LANG=C (notably SCO).
470 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
471 # Non-C LC_CTYPE values break the ctype check.
472 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
473 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
474 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
475 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
477 # confdefs.h avoids OS command line length limits that DEFS can exceed.
478 rm -rf conftest
* confdefs.h
479 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
482 # A filename unique to this package, relative to the directory that
483 # configure is in, which we can look for to find out if srcdir is correct.
486 # Find the source files, if location was not specified.
487 if test -z "$srcdir"; then
488 ac_srcdir_defaulted
=yes
489 # Try the directory containing this script, then its parent.
491 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
492 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
494 if test ! -r $srcdir/$ac_unique_file; then
498 ac_srcdir_defaulted
=no
500 if test ! -r $srcdir/$ac_unique_file; then
501 if test "$ac_srcdir_defaulted" = yes; then
502 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
504 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
507 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
509 # Prefer explicitly selected file to automatically selected ones.
510 if test -z "$sitefile"; then
511 if test -z "$CONFIG_SITE"; then
512 if test "x$prefix" != xNONE
; then
513 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
515 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
519 CONFIG_SITE
="$sitefile"
521 for ac_site_file
in $CONFIG_SITE; do
522 if test -r "$ac_site_file"; then
523 echo "loading site script $ac_site_file"
528 if test -r "$cache_file"; then
529 echo "loading cache $cache_file"
532 echo "creating cache $cache_file"
537 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
538 ac_cpp
='$CPP $CPPFLAGS'
539 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
540 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
541 cross_compiling
=$ac_cv_prog_cc_cross
545 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
546 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
547 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
554 ac_n
= ac_c
='\c' ac_t
=
560 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
561 if test -f $ac_dir/install-sh
; then
563 ac_install_sh
="$ac_aux_dir/install-sh -c"
565 elif test -f $ac_dir/install.sh
; then
567 ac_install_sh
="$ac_aux_dir/install.sh -c"
571 if test -z "$ac_aux_dir"; then
572 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
574 ac_config_guess
=$ac_aux_dir/config.guess
575 ac_config_sub
=$ac_aux_dir/config.sub
576 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
579 # Do some error checking and defaulting for the host and target type.
581 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
584 # 1. You are not allowed to specify --host, --target, and nonopt at the
586 # 2. Host defaults to nonopt.
587 # 3. If nonopt is not specified, then host defaults to the current host,
588 # as determined by config.guess.
589 # 4. Target and build default to nonopt.
590 # 5. If nonopt is not specified, then target and build default to host.
592 # The aliases save the names the user supplied, while $host etc.
593 # will get canonicalized.
594 case $host---$target---$nonopt in
595 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
596 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
600 # Make sure we can run config.sub.
601 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
602 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
605 echo $ac_n "checking host system type""... $ac_c" 1>&6
606 echo "configure:607: checking host system type" >&5
609 case "$host_alias" in
613 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
614 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
616 *) host_alias
=$nonopt ;;
620 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
621 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
622 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
623 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
624 echo "$ac_t""$host" 1>&6
626 echo $ac_n "checking target system type""... $ac_c" 1>&6
627 echo "configure:628: checking target system type" >&5
630 case "$target_alias" in
633 NONE
) target_alias
=$host_alias ;;
634 *) target_alias
=$nonopt ;;
638 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
639 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
640 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
641 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
642 echo "$ac_t""$target" 1>&6
644 echo $ac_n "checking build system type""... $ac_c" 1>&6
645 echo "configure:646: checking build system type" >&5
648 case "$build_alias" in
651 NONE
) build_alias
=$host_alias ;;
652 *) build_alias
=$nonopt ;;
656 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
657 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
658 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
659 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
660 echo "$ac_t""$build" 1>&6
662 test "$host_alias" != "$target_alias" &&
663 test "$program_prefix$program_suffix$program_transform_name" = \
665 program_prefix
=${target_alias}-
668 # Find a good install program. We prefer a C program (faster),
669 # so one script is as good as another. But avoid the broken or
670 # incompatible versions:
671 # SysV /etc/install, /usr/sbin/install
672 # SunOS /usr/etc/install
675 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
676 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
677 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
678 # ./install, which can be erroneously created by make from ./install.sh.
679 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
680 echo "configure:681: checking for a BSD compatible install" >&5
681 if test -z "$INSTALL"; then
682 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
683 echo $ac_n "(cached) $ac_c" 1>&6
685 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
686 for ac_dir
in $PATH; do
687 # Account for people who put trailing slashes in PATH elements.
689 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
691 # OSF1 and SCO ODT 3.0 have their own names for install.
692 # Don't use installbsd from OSF since it installs stuff as root
694 for ac_prog
in ginstall scoinst
install; do
695 if test -f $ac_dir/$ac_prog; then
696 if test $ac_prog = install &&
697 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
698 # AIX install. It has an incompatible calling convention.
701 ac_cv_path_install
="$ac_dir/$ac_prog -c"
712 if test "${ac_cv_path_install+set}" = set; then
713 INSTALL
="$ac_cv_path_install"
715 # As a last resort, use the slow shell script. We don't cache a
716 # path for INSTALL within a source directory, because that will
717 # break other packages using the cache if that directory is
718 # removed, or if the path is relative.
719 INSTALL
="$ac_install_sh"
722 echo "$ac_t""$INSTALL" 1>&6
724 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
725 # It thinks the first close brace ends the variable substitution.
726 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
728 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
730 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
732 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
733 echo "configure:734: checking whether build environment is sane" >&5
736 echo timestamp
> conftestfile
737 # Do `set' in a subshell so we don't clobber the current shell's
738 # arguments. Must try -L first in case configure is actually a
739 # symlink; some systems play weird games with the mod time of symlinks
740 # (eg FreeBSD returns the mod time of the symlink's containing
743 set X
`ls -Lt $srcdir/configure conftestfile 2> /dev/null`
744 if test "$*" = "X"; then
746 set X
`ls -t $srcdir/configure conftestfile`
748 if test "$*" != "X $srcdir/configure conftestfile" \
749 && test "$*" != "X conftestfile $srcdir/configure"; then
751 # If neither matched, then we have a broken ls. This can happen
752 # if, for instance, CONFIG_SHELL is bash and it inherits a
753 # broken ls alias from the environment. This has actually
754 # happened. Such a system could not be considered "sane".
755 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
756 alias in your environment" 1>&2; exit 1; }
759 test "$2" = conftestfile
765 { echo "configure: error: newly created file is older than distributed files!
766 Check your system clock" 1>&2; exit 1; }
769 echo "$ac_t""yes" 1>&6
770 if test "$program_transform_name" = s
,x
,x
,; then
771 program_transform_name
=
773 # Double any \ or $. echo might interpret backslashes.
774 cat <<\EOF_SED
> conftestsed
775 s
,\\,\\\\,g
; s
,\$
,$$
,g
777 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
780 test "$program_prefix" != NONE
&&
781 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
782 # Use a double $ so make ignores it.
783 test "$program_suffix" != NONE
&&
784 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
786 # sed with no file args requires a program.
787 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
789 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
790 echo "configure:791: checking whether ${MAKE-make} sets \${MAKE}" >&5
791 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
792 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
793 echo $ac_n "(cached) $ac_c" 1>&6
795 cat > conftestmake
<<\EOF
797 @
echo 'ac_maketemp="${MAKE}"'
799 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
800 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
801 if test -n "$ac_maketemp"; then
802 eval ac_cv_prog_make_
${ac_make}_set
=yes
804 eval ac_cv_prog_make_
${ac_make}_set
=no
808 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
809 echo "$ac_t""yes" 1>&6
812 echo "$ac_t""no" 1>&6
813 SET_MAKE
="MAKE=${MAKE-make}"
821 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status
; then
822 { echo "configure: error: source directory already configured; run "make distclean
" there first" 1>&2; exit 1; }
824 cat >> confdefs.h
<<EOF
825 #define PACKAGE "$PACKAGE"
828 cat >> confdefs.h
<<EOF
829 #define VERSION "$VERSION"
834 missing_dir
=`cd $ac_aux_dir && pwd`
835 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
836 echo "configure:837: checking for working aclocal" >&5
837 # Run test in a subshell; some versions of sh will print an error if
838 # an executable is not found, even if stderr is redirected.
839 # Redirect stdin to placate older versions of autoconf. Sigh.
840 if (aclocal
--version) < /dev
/null
> /dev
/null
2>&1; then
842 echo "$ac_t""found" 1>&6
844 ACLOCAL
="$missing_dir/missing aclocal"
845 echo "$ac_t""missing" 1>&6
848 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
849 echo "configure:850: checking for working autoconf" >&5
850 # Run test in a subshell; some versions of sh will print an error if
851 # an executable is not found, even if stderr is redirected.
852 # Redirect stdin to placate older versions of autoconf. Sigh.
853 if (autoconf
--version) < /dev
/null
> /dev
/null
2>&1; then
855 echo "$ac_t""found" 1>&6
857 AUTOCONF
="$missing_dir/missing autoconf"
858 echo "$ac_t""missing" 1>&6
861 echo $ac_n "checking for working automake""... $ac_c" 1>&6
862 echo "configure:863: checking for working automake" >&5
863 # Run test in a subshell; some versions of sh will print an error if
864 # an executable is not found, even if stderr is redirected.
865 # Redirect stdin to placate older versions of autoconf. Sigh.
866 if (automake
--version) < /dev
/null
> /dev
/null
2>&1; then
868 echo "$ac_t""found" 1>&6
870 AUTOMAKE
="$missing_dir/missing automake"
871 echo "$ac_t""missing" 1>&6
874 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
875 echo "configure:876: checking for working autoheader" >&5
876 # Run test in a subshell; some versions of sh will print an error if
877 # an executable is not found, even if stderr is redirected.
878 # Redirect stdin to placate older versions of autoconf. Sigh.
879 if (autoheader
--version) < /dev
/null
> /dev
/null
2>&1; then
880 AUTOHEADER
=autoheader
881 echo "$ac_t""found" 1>&6
883 AUTOHEADER
="$missing_dir/missing autoheader"
884 echo "$ac_t""missing" 1>&6
887 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
888 echo "configure:889: checking for working makeinfo" >&5
889 # Run test in a subshell; some versions of sh will print an error if
890 # an executable is not found, even if stderr is redirected.
891 # Redirect stdin to placate older versions of autoconf. Sigh.
892 if (makeinfo
--version) < /dev
/null
> /dev
/null
2>&1; then
894 echo "$ac_t""found" 1>&6
896 MAKEINFO
="$missing_dir/missing makeinfo"
897 echo "$ac_t""missing" 1>&6
902 # Check whether --enable-shared or --disable-shared was given.
903 if test "${enable_shared+set}" = set; then
904 enableval
="$enable_shared"
907 yes) enable_shared
=yes ;;
908 no
) enable_shared
=no
;;
911 # Look at the argument we got. We use all the common list separators.
912 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
913 for pkg
in $enableval; do
914 if test "X$pkg" = "X$p"; then
925 # Check whether --enable-static or --disable-static was given.
926 if test "${enable_static+set}" = set; then
927 enableval
="$enable_static"
930 yes) enable_static
=yes ;;
931 no
) enable_static
=no
;;
934 # Look at the argument we got. We use all the common list separators.
935 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
936 for pkg
in $enableval; do
937 if test "X$pkg" = "X$p"; then
948 # Check whether --enable-fast-install or --disable-fast-install was given.
949 if test "${enable_fast_install+set}" = set; then
950 enableval
="$enable_fast_install"
953 yes) enable_fast_install
=yes ;;
954 no
) enable_fast_install
=no
;;
956 enable_fast_install
=no
957 # Look at the argument we got. We use all the common list separators.
958 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
959 for pkg
in $enableval; do
960 if test "X$pkg" = "X$p"; then
961 enable_fast_install
=yes
968 enable_fast_install
=yes
971 # Extract the first word of "ranlib", so it can be a program name with args.
972 set dummy ranlib
; ac_word
=$2
973 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
974 echo "configure:975: checking for $ac_word" >&5
975 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
976 echo $ac_n "(cached) $ac_c" 1>&6
978 if test -n "$RANLIB"; then
979 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
981 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
983 for ac_dir
in $ac_dummy; do
984 test -z "$ac_dir" && ac_dir
=.
985 if test -f $ac_dir/$ac_word; then
986 ac_cv_prog_RANLIB
="ranlib"
991 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
994 RANLIB
="$ac_cv_prog_RANLIB"
995 if test -n "$RANLIB"; then
996 echo "$ac_t""$RANLIB" 1>&6
998 echo "$ac_t""no" 1>&6
1001 # Extract the first word of "gcc", so it can be a program name with args.
1002 set dummy gcc
; ac_word
=$2
1003 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1004 echo "configure:1005: checking for $ac_word" >&5
1005 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1006 echo $ac_n "(cached) $ac_c" 1>&6
1008 if test -n "$CC"; then
1009 ac_cv_prog_CC
="$CC" # Let the user override the test.
1011 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1013 for ac_dir
in $ac_dummy; do
1014 test -z "$ac_dir" && ac_dir
=.
1015 if test -f $ac_dir/$ac_word; then
1024 if test -n "$CC"; then
1025 echo "$ac_t""$CC" 1>&6
1027 echo "$ac_t""no" 1>&6
1030 if test -z "$CC"; then
1031 # Extract the first word of "cc", so it can be a program name with args.
1032 set dummy cc
; ac_word
=$2
1033 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1034 echo "configure:1035: checking for $ac_word" >&5
1035 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1036 echo $ac_n "(cached) $ac_c" 1>&6
1038 if test -n "$CC"; then
1039 ac_cv_prog_CC
="$CC" # Let the user override the test.
1041 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1044 for ac_dir
in $ac_dummy; do
1045 test -z "$ac_dir" && ac_dir
=.
1046 if test -f $ac_dir/$ac_word; then
1047 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1048 ac_prog_rejected
=yes
1056 if test $ac_prog_rejected = yes; then
1057 # We found a bogon in the path, so make sure we never use it.
1058 set dummy
$ac_cv_prog_CC
1060 if test $# -gt 0; then
1061 # We chose a different compiler from the bogus one.
1062 # However, it has the same basename, so the bogon will be chosen
1063 # first if we set CC to just the basename; use the full file name.
1065 set dummy
"$ac_dir/$ac_word" "$@"
1073 if test -n "$CC"; then
1074 echo "$ac_t""$CC" 1>&6
1076 echo "$ac_t""no" 1>&6
1079 if test -z "$CC"; then
1080 case "`uname -s`" in
1082 # Extract the first word of "cl", so it can be a program name with args.
1083 set dummy cl
; ac_word
=$2
1084 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1085 echo "configure:1086: checking for $ac_word" >&5
1086 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1087 echo $ac_n "(cached) $ac_c" 1>&6
1089 if test -n "$CC"; then
1090 ac_cv_prog_CC
="$CC" # Let the user override the test.
1092 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1094 for ac_dir
in $ac_dummy; do
1095 test -z "$ac_dir" && ac_dir
=.
1096 if test -f $ac_dir/$ac_word; then
1105 if test -n "$CC"; then
1106 echo "$ac_t""$CC" 1>&6
1108 echo "$ac_t""no" 1>&6
1113 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1116 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1117 echo "configure:1118: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1120 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1121 ac_cpp
='$CPP $CPPFLAGS'
1122 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1123 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1124 cross_compiling
=$ac_cv_prog_cc_cross
1126 cat > conftest.
$ac_ext << EOF
1128 #line 1129 "configure"
1129 #include "confdefs.h"
1133 if { (eval echo configure
:1134: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1134 ac_cv_prog_cc_works
=yes
1135 # If we can't run a trivial program, we are probably using a cross compiler.
1136 if (.
/conftest
; exit) 2>/dev
/null
; then
1137 ac_cv_prog_cc_cross
=no
1139 ac_cv_prog_cc_cross
=yes
1142 echo "configure: failed program was:" >&5
1143 cat conftest.
$ac_ext >&5
1144 ac_cv_prog_cc_works
=no
1148 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1149 ac_cpp
='$CPP $CPPFLAGS'
1150 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1151 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1152 cross_compiling
=$ac_cv_prog_cc_cross
1154 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1155 if test $ac_cv_prog_cc_works = no
; then
1156 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1158 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1159 echo "configure:1160: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1160 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1161 cross_compiling
=$ac_cv_prog_cc_cross
1163 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1164 echo "configure:1165: checking whether we are using GNU C" >&5
1165 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1166 echo $ac_n "(cached) $ac_c" 1>&6
1168 cat > conftest.c
<<EOF
1173 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1174: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1180 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1182 if test $ac_cv_prog_gcc = yes; then
1188 ac_test_CFLAGS
="${CFLAGS+set}"
1189 ac_save_CFLAGS
="$CFLAGS"
1191 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1192 echo "configure:1193: checking whether ${CC-cc} accepts -g" >&5
1193 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1194 echo $ac_n "(cached) $ac_c" 1>&6
1196 echo 'void f(){}' > conftest.c
1197 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1206 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1207 if test "$ac_test_CFLAGS" = set; then
1208 CFLAGS
="$ac_save_CFLAGS"
1209 elif test $ac_cv_prog_cc_g = yes; then
1210 if test "$GCC" = yes; then
1216 if test "$GCC" = yes; then
1223 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1224 if test "${with_gnu_ld+set}" = set; then
1225 withval
="$with_gnu_ld"
1226 test "$withval" = no || with_gnu_ld
=yes
1232 if test "$ac_cv_prog_gcc" = yes; then
1233 # Check if gcc -print-prog-name=ld gives a path.
1234 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1235 echo "configure:1236: checking for ld used by GCC" >&5
1236 ac_prog
=`($CC -print-prog-name=ld) 2>&5`
1238 # Accept absolute paths.
1239 [\\/]* |
[A-Za-z
]:[\\/]*)
1240 re_direlt
='/[^/][^/]*/\.\./'
1241 # Canonicalize the path of ld
1242 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
1243 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
1244 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
1246 test -z "$LD" && LD
="$ac_prog"
1249 # If it fails, then pretend we aren't using GCC.
1253 # If it is relative, then search for the first ld in PATH.
1257 elif test "$with_gnu_ld" = yes; then
1258 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1259 echo "configure:1260: checking for GNU ld" >&5
1261 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1262 echo "configure:1263: checking for non-GNU ld" >&5
1264 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1265 echo $ac_n "(cached) $ac_c" 1>&6
1267 if test -z "$LD"; then
1268 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1269 for ac_dir
in $PATH; do
1270 test -z "$ac_dir" && ac_dir
=.
1271 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
1272 ac_cv_path_LD
="$ac_dir/$ac_prog"
1273 # Check to see if the program is GNU ld. I'd rather use --version,
1274 # but apparently some GNU ld's only accept -v.
1275 # Break only if it was the GNU/non-GNU ld that we prefer.
1276 if "$ac_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
1277 test "$with_gnu_ld" != no
&& break
1279 test "$with_gnu_ld" != yes && break
1285 ac_cv_path_LD
="$LD" # Let the user override the test with a path.
1290 if test -n "$LD"; then
1291 echo "$ac_t""$LD" 1>&6
1293 echo "$ac_t""no" 1>&6
1295 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1296 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1297 echo "configure:1298: checking if the linker ($LD) is GNU ld" >&5
1298 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1299 echo $ac_n "(cached) $ac_c" 1>&6
1301 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1302 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
1303 ac_cv_prog_gnu_ld
=yes
1305 ac_cv_prog_gnu_ld
=no
1309 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1312 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1313 echo "configure:1314: checking for BSD-compatible nm" >&5
1314 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1315 echo $ac_n "(cached) $ac_c" 1>&6
1317 if test -n "$NM"; then
1318 # Let the user override the test.
1321 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1322 for ac_dir
in $PATH /usr
/ccs
/bin
/usr
/ucb
/bin
; do
1323 test -z "$ac_dir" && ac_dir
=.
1324 if test -f $ac_dir/nm ||
test -f $ac_dir/nm
$ac_exeext ; then
1325 # Check to see if the nm accepts a BSD-compat flag.
1326 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1327 # nm: unknown option "B" ignored
1328 if ($ac_dir/nm
-B /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep /dev
/null
>/dev
/null
; then
1329 ac_cv_path_NM
="$ac_dir/nm -B"
1331 elif ($ac_dir/nm
-p /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep /dev
/null
>/dev
/null
; then
1332 ac_cv_path_NM
="$ac_dir/nm -p"
1335 ac_cv_path_NM
=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
1336 continue # so that we can try to find one that supports BSD flags
1341 test -z "$ac_cv_path_NM" && ac_cv_path_NM
=nm
1346 echo "$ac_t""$NM" 1>&6
1348 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1349 echo "configure:1350: checking whether ln -s works" >&5
1350 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1351 echo $ac_n "(cached) $ac_c" 1>&6
1354 if ln -s X conftestdata
2>/dev
/null
1357 ac_cv_prog_LN_S
="ln -s"
1362 LN_S
="$ac_cv_prog_LN_S"
1363 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1364 echo "$ac_t""yes" 1>&6
1366 echo "$ac_t""no" 1>&6
1371 NONE
) lt_target
="$host" ;;
1372 *) lt_target
="$target" ;;
1375 # Check for any special flags to pass to ltconfig.
1376 libtool_flags
="--cache-file=$cache_file"
1377 test "$enable_shared" = no
&& libtool_flags
="$libtool_flags --disable-shared"
1378 test "$enable_static" = no
&& libtool_flags
="$libtool_flags --disable-static"
1379 test "$enable_fast_install" = no
&& libtool_flags
="$libtool_flags --disable-fast-install"
1380 test "$ac_cv_prog_gcc" = yes && libtool_flags
="$libtool_flags --with-gcc"
1381 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags
="$libtool_flags --with-gnu-ld"
1384 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
1385 if test "${enable_libtool_lock+set}" = set; then
1386 enableval
="$enable_libtool_lock"
1390 test "x$enable_libtool_lock" = xno
&& libtool_flags
="$libtool_flags --disable-lock"
1391 test x
"$silent" = xyes
&& libtool_flags
="$libtool_flags --silent"
1393 # Some flags need to be propagated to the compiler or linker for good
1395 case "$lt_target" in
1397 # Find out which ABI we are using.
1398 echo '#line 1399 "configure"' > conftest.
$ac_ext
1399 if { (eval echo configure
:1400: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1400 case "`/usr/bin/file conftest.o`" in
1416 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1417 SAVE_CFLAGS
="$CFLAGS"
1418 CFLAGS
="$CFLAGS -belf"
1419 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
1420 echo "configure:1421: checking whether the C compiler needs -belf" >&5
1421 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
1422 echo $ac_n "(cached) $ac_c" 1>&6
1424 cat > conftest.
$ac_ext <<EOF
1425 #line 1426 "configure"
1426 #include "confdefs.h"
1432 if { (eval echo configure
:1433: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1434 lt_cv_cc_needs_belf
=yes
1436 echo "configure: failed program was:" >&5
1437 cat conftest.
$ac_ext >&5
1439 lt_cv_cc_needs_belf
=no
1444 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
1445 if test x
"$lt_cv_cc_needs_belf" != x
"yes"; then
1446 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1447 CFLAGS
="$SAVE_CFLAGS"
1455 # Save cache, so that ltconfig can load it
1456 cat > confcache
<<\EOF
1457 # This file is a shell script that caches the results of configure
1458 # tests run on this system so they can be shared between configure
1459 # scripts and configure runs. It is not useful on other systems.
1460 # If it contains results you don't want to keep, you may remove or edit it.
1462 # By default, configure uses ./config.cache as the cache file,
1463 # creating it if it does not exist already. You can give configure
1464 # the --cache-file=FILE option to use a different cache file; that is
1465 # what configure does when it calls configure scripts in
1466 # subdirectories, so they share the cache.
1467 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1468 # config.status only pays attention to the cache file if you give it the
1469 # --recheck option to rerun configure.
1472 # The following way of writing the cache mishandles newlines in values,
1473 # but we know of no workaround that is simple, portable, and efficient.
1474 # So, don't put newlines in cache variables' values.
1475 # Ultrix sh set writes to stderr and can't be redirected directly,
1476 # and sets the high bit in the cache file unless we assign to the vars.
1478 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1480 # `set' does not quote correctly, so add quotes (double-quote substitution
1481 # turns \\\\ into \\, and sed turns \\ into \).
1483 -e "s/'/'\\\\''/g" \
1484 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1487 # `set' quotes correctly as required by POSIX, so do not add quotes.
1488 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1491 if cmp -s $cache_file confcache
; then
1494 if test -w $cache_file; then
1495 echo "updating cache $cache_file"
1496 cat confcache
> $cache_file
1498 echo "not updating unwritable cache $cache_file"
1504 # Actually configure libtool. ac_aux_dir is where install-sh is found.
1505 CC
="$CC" CFLAGS
="$CFLAGS" CPPFLAGS
="$CPPFLAGS" \
1506 LD
="$LD" LDFLAGS
="$LDFLAGS" LIBS
="$LIBS" \
1507 LN_S
="$LN_S" NM
="$NM" RANLIB
="$RANLIB" \
1508 DLLTOOL
="$DLLTOOL" AS
="$AS" OBJDUMP
="$OBJDUMP" \
1509 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig
--no-reexec \
1510 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh
$lt_target \
1511 ||
{ echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1513 # Reload cache, that may have been modified by ltconfig
1514 if test -r "$cache_file"; then
1515 echo "loading cache $cache_file"
1518 echo "creating cache $cache_file"
1523 # This can be used to rebuild libtool when needed
1524 LIBTOOL_DEPS
="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
1526 # Always use our own libtool.
1527 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
1529 # Redirect the config.log output again, so that the ltconfig log is not
1530 # clobbered by the next message.
1531 exec 5>>.
/config.log
1535 # Check whether --enable-bfd-assembler or --disable-bfd-assembler was given.
1536 if test "${enable_bfd_assembler+set}" = set; then
1537 enableval
="$enable_bfd_assembler"
1538 case "${enableval}" in
1539 yes) need_bfd
=yes user_bfd_gas
=yes ;;
1540 no
) user_bfd_gas
=no
;;
1541 *) { echo "configure: error: bad value ${enableval} given for bfd-assembler option" 1>&2; exit 1; } ;;
1544 # Check whether --enable-targets or --disable-targets was given.
1545 if test "${enable_targets+set}" = set; then
1546 enableval
="$enable_targets"
1547 case "${enableval}" in
1548 yes |
"") { echo "configure: error: enable-targets option must specify target names or 'all'" 1>&2; exit 1; }
1550 no
) enable_targets
= ;;
1551 *) enable_targets
=$enableval ;;
1554 # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
1555 if test "${enable_commonbfdlib+set}" = set; then
1556 enableval
="$enable_commonbfdlib"
1557 case "${enableval}" in
1558 yes) commonbfdlib
=true
;;
1559 no
) commonbfdlib
=false
;;
1560 *) { echo "configure: error: bad value ${enableval} for BFD commonbfdlib option" 1>&2; exit 1; } ;;
1566 # Generate a header file
1571 # If we are on a DOS filesystem, we must use gdb.ini rather than
1575 *-*-msdos* |
*-*-go32* |
*-*-mingw32* |
*-*-cygwin* |
*-*-windows*)
1583 # Makefile target for installing gas in $(tooldir)/bin.
1584 install_tooldir
=install-exec-tooldir
1587 if test -n "$enable_targets" ; then
1588 for t
in `echo $enable_targets | sed 's/,/ /g'`; do
1589 result
=`$ac_config_sub $t 2>/dev/null`
1590 if test -n "$result" ; then
1591 canon_targets
="$canon_targets $result"
1593 # # Permit "all", etc. We don't support it yet though.
1594 # canon_targets="$canon_targets $t"
1597 _gas_uniq_list
="$canon_targets"
1598 _gas_uniq_newlist
=""
1599 for _gas_uniq_i
in _gas_uniq_dummy
$_gas_uniq_list ; do
1600 case $_gas_uniq_i in
1602 *) case " $_gas_uniq_newlist " in
1603 *" $_gas_uniq_i "*) ;;
1604 *) _gas_uniq_newlist
="$_gas_uniq_newlist $_gas_uniq_i" ;;
1608 canon_targets
=$_gas_uniq_newlist
1614 for this_target
in $target $canon_targets ; do
1616 eval `echo $this_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/cpu=\1 vendor=\2 os=\3/'`
1618 # check for architecture variants
1622 alpha
*) cpu_type
=alpha
;;
1623 armeb
) cpu_type
=arm endian
=big
;;
1624 arm
*) cpu_type
=arm endian
=little
;;
1625 armb
*) cpu_type
=arm endian
=little
;;
1626 armv
*l
) cpu_type
=arm endian
=little
;;
1627 armv
*b
) cpu_type
=arm endian
=big
;;
1628 strongarm
*) cpu_type
=arm endian
=little
;;
1629 thumb
*) cpu_type
=arm endian
=little
;;
1630 hppa
*) cpu_type
=hppa
;;
1631 i
[456]86) cpu_type
=i386
;;
1632 m680
[012346]0) cpu_type
=m68k
;;
1633 m68008
) cpu_type
=m68k
;;
1634 m683??
) cpu_type
=m68k
;;
1635 m5200
) cpu_type
=m68k
;;
1636 m8
*) cpu_type
=m88k
;;
1637 mips
*el
) cpu_type
=mips endian
=little
;;
1638 mips
*) cpu_type
=mips endian
=big
;;
1639 pjl
*) cpu_type
=pj endian
=little
;;
1640 pj
*) cpu_type
=pj endian
=big
;;
1641 powerpcle
*) cpu_type
=ppc endian
=little
;;
1642 powerpc
*) cpu_type
=ppc endian
=big
;;
1643 rs6000
*) cpu_type
=ppc
;;
1644 sparclite
*) cpu_type
=sparc arch
=sparclite
;;
1645 sparclet
*) cpu_type
=sparc arch
=sparclet
;;
1646 sparc64
*) cpu_type
=sparc arch
=v9-64
;;
1647 sparc86x
*) cpu_type
=sparc arch
=sparc86x
;;
1648 sparc
*) cpu_type
=sparc arch
=sparclite
;; # ??? See tc-sparc.c.
1649 v850
*) cpu_type
=v850
;;
1650 *) cpu_type
=${cpu} ;;
1653 if test ${this_target} = $target ; then
1654 target_cpu_type
=${cpu_type}
1655 elif test ${target_cpu_type} != ${cpu_type} ; then
1659 generic_target
=${cpu_type}-$vendor-$os
1664 # assign object format
1665 case ${generic_target} in
1666 a29k-
*-coff) fmt=coff
;;
1667 a29k-amd-udi
) fmt=coff
;;
1668 a29k-amd-ebmon
) fmt=coff
;;
1669 a29k-nyu-sym1
) fmt=coff
;;
1670 a29k-
*-vxworks*) fmt=coff
;;
1672 alpha
*-*-*vms
*) fmt=evax
;;
1673 alpha
*-*-netware*) fmt=ecoff
;;
1674 alpha
*-*-openbsd*) fmt=ecoff
;;
1675 alpha
*-*-osf*) fmt=ecoff
;;
1676 alpha
*-*-linuxecoff*) fmt=ecoff
;;
1677 alpha
*-*-linux-gnu*) fmt=elf em
=linux
;;
1678 alpha
*-*-netbsd*) fmt=elf em
=nbsd
;;
1680 arc-
*-elf*) fmt=elf bfd_gas
=yes ;;
1682 arm-
*-aout) fmt=aout
;;
1683 arm-
*-coff | thumb-
*-coff) fmt=coff
;;
1684 arm-
*-elf | thumb-
*-elf) fmt=elf
;;
1685 arm
*-*-conix*) fmt=elf
;;
1686 arm-
*-linux*aout
*) fmt=aout em
=linux
;;
1687 arm
*-*-linux-gnu*) fmt=elf em
=linux
;;
1688 arm-
*-netbsd*) fmt=aout em
=nbsd bfd_gas
=yes ;;
1689 arm-
*-oabi | thumb-
*-oabi) fmt=elf
;;
1690 arm-epoc-pe | thumb-epoc-pe
) fmt=coff em
=epoc-pe
;;
1691 arm-
*-wince) fmt=coff em
=wince-pe bfd_gas
=yes;;
1692 arm-
*-pe | thumb-
*-pe) fmt=coff em
=pe
;;
1693 arm-
*-riscix*) fmt=aout em
=riscix
;;
1695 d10v-
*-*) fmt=elf bfd_gas
=yes ;;
1696 d30v-
*-*) fmt=elf bfd_gas
=yes ;;
1699 fr30-
*-*) fmt=elf bfd_gas
=yes ;;
1701 hppa-
*-*elf
*) fmt=elf em
=hppa
;;
1702 hppa-
*-linux-gnu*) fmt=elf em
=hppa
;;
1703 hppa-
*-lites*) fmt=elf em
=hppa
;;
1704 hppa-
*-osf*) fmt=som em
=hppa
;;
1705 hppa-
*-rtems*) fmt=elf em
=hppa
;;
1706 hppa-
*-hpux*) fmt=som em
=hppa
;;
1707 hppa-
*-mpeix*) fmt=som em
=hppa
;;
1708 hppa-
*-bsd*) fmt=som em
=hppa
;;
1709 hppa-
*-hiux*) fmt=som em
=hppa
;;
1711 h8300-
*-coff) fmt=coff
;;
1713 i370-
*-elf* | i370-
*-linux*) fmt=elf
;;
1714 i386-ibm-aix
*) fmt=coff em
=i386aix
;;
1715 i386-sequent-bsd
*) fmt=aout em
=dynix bfd_gas
=yes ;;
1716 i386-
*-beospe*) fmt=coff em
=pe bfd_gas
=yes ;;
1717 i386-
*-beoself* | i386-
*-beos*) fmt=elf bfd_gas
=yes ;;
1718 i386-
*-bsd*) fmt=aout em
=386bsd
;;
1719 i386-
*-netbsd0.8
) fmt=aout em
=386bsd
;;
1720 i386-
*-netbsd*) fmt=aout em
=nbsd bfd_gas
=yes;;
1721 i386-
*-openbsd*) fmt=aout em
=nbsd bfd_gas
=yes;;
1722 i386-
*-linux*aout
* | i386-
*-linuxoldld) fmt=aout em
=linux
;;
1723 i386-
*-linux*coff
*) fmt=coff em
=linux
;;
1724 i386-
*-linux-gnu*) fmt=elf em
=linux bfd_gas
=yes ;;
1725 i386-
*-lynxos*) fmt=coff em
=lynx
;;
1726 i386-
*-sysv4* | i386-
*-solaris* | i386-
*-elf)
1727 fmt=elf bfd_gas
=yes ;;
1728 i386-
*-freebsdaout* | i386-
*-freebsd12.
* | i386-
*-freebsd12)
1729 fmt=aout em
=386bsd
;;
1730 i386-
*-freebsd*) fmt=elf bfd_gas
=yes ;;
1731 i386-
*-coff | i386-
*-sysv* | i386-
*-sco3.2v5
*coff | i386-
*-isc*)
1733 i386-
*-sco3.2v5
*) fmt=elf
1734 if test ${this_target} = $target; then
1735 cat >> confdefs.h
<<\EOF
1741 i386-
*-sco3.2
*) fmt=coff
;;
1742 i386-
*-vsta) fmt=aout
;;
1743 i386-
*-msdosdjgpp* | i386-
*-go32* | i386-go32-rtems
*)
1745 i386-
*-rtemself*) fmt=elf
;;
1746 i386-
*-rtems*) fmt=coff
;;
1747 i386-
*-gnu*) fmt=elf
;;
1749 fmt=aout em
=mach bfd_gas
=yes ;;
1750 i386-
*-msdos*) fmt=aout
;;
1751 i386-
*-moss*) fmt=elf
;;
1752 i386-
*-pe) fmt=coff em
=pe
;;
1753 i386-
*-cygwin*) fmt=coff em
=pe bfd_gas
=yes ;;
1754 i386-
*-interix*) fmt=coff em
=interix bfd_gas
=yes ;;
1755 i386-
*-mingw32*) fmt=coff em
=pe bfd_gas
=yes ;;
1756 i386-
*-*nt
*) fmt=coff em
=pe
;;
1757 i386-
*-vxworks*) fmt=aout
;;
1758 i960-
*-bout) fmt=bout
;;
1759 i960-
*-coff) fmt=coff em
=ic960
;;
1760 i960-
*-rtems*) fmt=coff em
=ic960
;;
1761 i960-
*-nindy*) fmt=bout
;;
1762 i960-
*-vxworks4*) fmt=bout
;;
1763 i960-
*-vxworks5.0
) fmt=bout
;;
1764 i960-
*-vxworks5.
*) fmt=coff em
=ic960
;;
1765 i960-
*-vxworks*) fmt=bout
;;
1766 i960-
*-elf*) fmt=elf
;;
1768 m32r-
*-*) fmt=elf bfd_gas
=yes ;;
1770 m68k-
*-vxworks* | m68k-ericsson-ose | m68k-
*-sunos*)
1772 m68k-motorola-sysv
*) fmt=coff em
=delta
;;
1773 m68k-bull-sysv3
*) fmt=coff em
=dpx2
;;
1774 m68k-apollo-
*) fmt=coff em
=apollo
;;
1775 m68k-
*-sysv4*) # must be before -sysv*
1777 m68k-
*-elf*) fmt=elf
;;
1778 m68k-
*-coff | m68k-
*-sysv* | m68k-
*-rtems*)
1780 m68k-
*-hpux*) fmt=hp300 em
=hp300
;;
1781 m68k-
*-linux*aout
*) fmt=aout em
=linux
;;
1782 m68k-
*-linux-gnu*) fmt=elf em
=linux
;;
1783 m68k-
*-gnu*) fmt=elf
;;
1784 m68k-
*-lynxos*) fmt=coff em
=lynx
;;
1785 m68k-
*-netbsd*) fmt=aout em
=nbsd bfd_gas
=yes ;;
1786 m68k-
*-openbsd*) fmt=aout em
=nbsd bfd_gas
=yes ;;
1787 m68k-apple-aux
*) fmt=coff em
=aux
;;
1788 m68k-
*-psos*) fmt=elf em
=psos
;;
1790 m88k-motorola-sysv3
*) fmt=coff em
=delt88
;;
1791 m88k-
*-coff*) fmt=coff
;;
1793 mcore-
*-elf) fmt=elf bfd_gas
=yes ;;
1794 mcore-
*-pe) fmt=coff em
=pe bfd_gas
=yes ;;
1796 # don't change em like *-*-bsd does
1797 mips-dec-netbsd
*) fmt=elf endian
=little
;;
1798 mips-dec-openbsd
*) fmt=elf endian
=little
;;
1799 mips-dec-bsd
*) fmt=aout endian
=little
;;
1800 mips-sony-bsd
*) fmt=ecoff
;;
1801 mips-
*-bsd*) { echo "configure: error: Unknown vendor for mips-bsd configuration." 1>&2; exit 1; } ;;
1802 mips-
*-ultrix*) fmt=ecoff endian
=little
;;
1803 mips-
*-osf*) fmt=ecoff endian
=little
;;
1804 mips-
*-ecoff*) fmt=ecoff
;;
1805 mips-
*-ecoff*) fmt=ecoff
;;
1806 mips-
*-pe*) fmt=coff endian
=little em
=pe
;;
1807 mips-
*-irix6*) fmt=elf
;;
1808 mips-
*-irix5*) fmt=elf
;;
1809 mips-
*-irix*) fmt=ecoff
;;
1810 mips-
*-lnews*) fmt=ecoff em
=lnews
;;
1811 mips-
*-riscos*) fmt=ecoff
;;
1812 mips-
*-sysv*) fmt=ecoff
;;
1813 mips-
*-elf* | mips-
*-rtems* | mips-
*-linux-gnu* | mips-
*-gnu* | mips-
*-openbsd*)
1815 mips-
*-vxworks*) fmt=elf
1816 cat >> confdefs.h
<<\EOF
1817 #define MIPS_STABS_ELF 1
1821 mn10200-
*-*) fmt=elf bfd_gas
=yes ;;
1822 mn10300-
*-*) fmt=elf bfd_gas
=yes ;;
1824 ppc-
*-pe | ppc-
*-cygwin* | ppc-
*-winnt*)
1826 ppc-
*-aix*) fmt=coff
;;
1827 ppc-
*-beos*) fmt=coff
;;
1828 ppc-
*-*bsd
* | ppc-
*-elf* | ppc-
*-eabi* | ppc-
*-sysv4*)
1830 ppc-
*-linux-gnu*) fmt=elf
1833 *) { echo "configure: error: GNU/Linux must be configured big endian" 1>&2; exit 1; } ;;
1836 ppc-
*-solaris*) fmt=elf
1837 if test ${this_target} = $target; then
1838 cat >> confdefs.h
<<\EOF
1839 #define TARGET_SOLARIS_COMMENT 1
1843 if test x
${endian} = xbig
; then
1844 { echo "configure: error: Solaris must be configured little endian" 1>&2; exit 1; }
1847 ppc-
*-rtems*) fmt=elf
;;
1848 ppc-
*-macos* | ppc-
*-mpw*)
1849 fmt=coff em
=macos
;;
1850 ppc-
*-netware*) fmt=elf em
=ppcnw
;;
1851 ppc-
*-vxworks*) fmt=elf
;;
1853 sh-
*-elf*) fmt=elf
;;
1854 sh-
*-coff*) fmt=coff
;;
1855 sh-
*-pe*) fmt=coff em
=pe bfd_gas
=yes;;
1856 sh-
*-rtemself*) fmt=elf
;;
1857 sh-
*-rtems*) fmt=coff
;;
1859 ns32k-pc532-mach
* | ns32k-pc532-ux
*) fmt=aout em
=pc532mach
;;
1860 ns32k-pc532-netbsd
* | ns32k-pc532-lites
*) fmt=aout em
=nbsd532
;;
1861 ns32k-pc532-openbsd
*) fmt=aout em
=nbsd532
;;
1863 sparc-
*-rtems*) fmt=aout
;;
1864 sparc-
*-sunos4*) fmt=aout em
=sun3
;;
1865 sparc-
*-aout | sparc
*-*-vxworks*)
1866 fmt=aout em
=sparcaout
;;
1867 sparc-
*-coff) fmt=coff
;;
1868 sparc-
*-linux*aout
*) fmt=aout em
=linux
;;
1869 sparc-
*-linux-gnu*) fmt=elf em
=linux
;;
1870 sparc-
*-lynxos*) fmt=coff em
=lynx
;;
1871 sparc-fujitsu-none
) fmt=aout
;;
1872 sparc-
*-elf | sparc-
*-sysv4* | sparc-
*-solaris*)
1874 sparc-
*-netbsd*) fmt=aout em
=nbsd
;;
1875 sparc-
*-openbsd*) fmt=aout em
=nbsd
;;
1877 strongarm-
*-coff) fmt=coff
;;
1878 strongarm-
*-elf) fmt=elf
;;
1880 tic30-
*-*aout
*) fmt=aout bfd_gas
=yes ;;
1881 tic30-
*-*coff
*) fmt=coff bfd_gas
=yes ;;
1882 tic80-
*-*) fmt=coff
;;
1884 v850-
*-*) fmt=elf bfd_gas
=yes ;;
1885 v850e-
*-*) fmt=elf bfd_gas
=yes ;;
1886 v850ea-
*-*) fmt=elf bfd_gas
=yes ;;
1888 vax-
*-bsd* | vax-
*-ultrix*)
1890 vax-
*-vms) fmt=vms
;;
1893 z8k-
*-coff | z8k-
*-sim)
1896 w65-
*-*) fmt=coff
;;
1898 *-*-aout |
*-*-scout)
1904 *-*-generic) fmt=generic
;;
1905 *-*-xray |
*-*-hms) fmt=coff
;;
1906 *-*-sim) fmt=coff
;;
1907 *-*-elf |
*-*-sysv4* |
*-*-solaris*)
1908 echo "configure: warning: GAS support for ${generic_target} is incomplete." 1>&2
1910 *-*-vxworks) fmt=aout
;;
1911 *-*-netware) fmt=elf
;;
1914 if test ${this_target} = $target ; then
1916 if test x
${endian} = xbig
; then
1918 elif test x
${endian} = xlittle
; then
1921 if test x
${endian_def} != x
; then
1922 cat >> confdefs.h
<<EOF
1923 #define TARGET_BYTES_BIG_ENDIAN $endian_def
1929 case ${cpu_type}-${fmt} in
1930 alpha
*-*) bfd_gas
=yes ;;
1931 arm-
*) bfd_gas
=yes ;;
1933 # i386-aout) bfd_gas=preferred ;;
1934 mips-
*) bfd_gas
=yes ;;
1935 ns32k-
*) bfd_gas
=yes ;;
1936 ppc-
*) bfd_gas
=yes ;;
1937 sparc-
*) bfd_gas
=yes ;;
1938 strongarm-
*) bfd_gas
=yes ;;
1939 *-elf) bfd_gas
=yes ;;
1940 *-ecoff) bfd_gas
=yes ;;
1941 *-som) bfd_gas
=yes ;;
1942 #enable bfd for coff and aout to allow testing if a bfd target is
1943 #the primary target, but not for coff or aout as the primary target
1944 i386-coff
) if test x
${primary_bfd_gas} = xyes
; then bfd_gas
=yes; fi ;;
1945 i386-aout
) if test x
${primary_bfd_gas} = xyes
; then bfd_gas
=yes; fi ;;
1949 # Other random stuff.
1951 # Do we need the opcodes library?
1959 case "${enable_shared}" in
1960 yes) shared_opcodes
=true
;;
1961 *opcodes
*) shared_opcodes
=true
;;
1962 *) shared_opcodes
=false
;;
1964 if test "${shared_opcodes}" = "true"; then
1965 # A shared libopcodes must be linked against libbfd.
1971 # Any other special object files needed ?
1978 case ${extra_objects} in
1980 *) extra_objects
="$extra_objects m68k-parse.o" ;;
1985 echo ${extra_objects} |
grep -s "itbl-parse.o"
1986 if test $?
-ne 0 ; then
1987 extra_objects
="$extra_objects itbl-parse.o"
1990 echo ${extra_objects} |
grep -s "itbl-lex.o"
1991 if test $?
-ne 0 ; then
1992 extra_objects
="$extra_objects itbl-lex.o"
1995 echo ${extra_objects} |
grep -s "itbl-ops.o"
1996 if test $?
-ne 0 ; then
1997 extra_objects
="$extra_objects itbl-ops.o"
2002 if test $this_target = $target ; then
2003 cat >> confdefs.h
<<EOF
2004 #define DEFAULT_ARCH "${arch}"
2013 if test $using_cgen = yes ; then
2014 case "x${extra_objects}" in
2016 *) extra_objects
="$extra_objects cgen.o" ;;
2020 # See if we really can support this configuration with the emulation code.
2022 if test $this_target = $target ; then
2023 primary_bfd_gas
=$bfd_gas
2027 if test $bfd_gas = no
; then
2028 # Can't support other configurations this way.
2031 elif test $bfd_gas = no
; then
2032 # Can't support this configuration.
2036 # From target name and format, produce a list of supported emulations.
2038 case ${generic_target}-${fmt} in
2039 mips-
*-irix5*-*) emulation
="mipsbelf mipslelf mipself mipsbecoff mipslecoff mipsecoff" ;;
2040 mips-
*-linux-gnu*-*) case "$endian" in
2041 big
) emulation
="mipsbelf mipslelf mipself mipsbecoff mipslecoff mipsecoff" ;;
2042 *) emulation
="mipslelf mipsbelf mipself mipslecoff mipsbecoff mipsecoff" ;;
2044 mips-
*-lnews*-ecoff) ;;
2045 mips-
*-*-ecoff) case "$endian" in
2046 big
) emulation
="mipsbecoff mipslecoff mipsecoff" ;;
2047 *) emulation
="mipslecoff mipsbecoff mipsecoff" ;;
2049 mips-
*-*-elf) case "$endian" in
2050 big
) emulation
="mipsbelf mipslelf mipself" ;;
2051 *) emulation
="mipslelf mipsbelf mipself" ;;
2053 # Uncommenting the next line will turn on support for i386 AOUT
2054 # for the default linux configuration
2055 # i386-*-linux*-elf) emulation="i386elf i386aout" ;;
2057 i386-
*-aout) emulation
="i386aout" ;;
2058 i386-
*-coff) emulation
="i386coff" ;;
2059 i386-
*-elf) emulation
="i386elf" ;;
2062 emulations
="$emulations $emulation"
2066 # Assign floating point type. Most processors with FP support
2067 # IEEE FP. On those that don't support FP at all, usually IEEE
2069 case ${target_cpu} in
2070 vax | tahoe
) atof
=${target_cpu} ;;
2074 case "${obj_format}" in
2075 "") { echo "configure: error: GAS does not know what format to use for target ${target}" 1>&2; exit 1; } ;;
2078 # Unfortunately the cpu in cpu-opc.h file isn't always $(TARGET_CPU).
2080 if test $using_cgen = yes ; then
2081 case ${target_cpu} in
2082 *) cgen_cpu_prefix
=${target_cpu} ;;
2085 cat >> confdefs.h
<<\EOF
2086 #define USING_CGEN 1
2092 if test ! -r ${srcdir}/config
/tc-
${target_cpu_type}.c
; then
2093 { echo "configure: error: GAS does not support target CPU ${target_cpu_type}" 1>&2; exit 1; }
2096 if test ! -r ${srcdir}/config
/obj-
${obj_format}.c
; then
2097 { echo "configure: error: GAS does not have support for object file format ${obj_format}" 1>&2; exit 1; }
2100 case ${user_bfd_gas}-${primary_bfd_gas} in
2102 # We didn't override user's choice.
2105 echo "configure: warning: Use of BFD is required for ${target}; overriding config options." 1>&2
2117 # User specified nothing.
2121 # Some COFF configurations want these random other flags set.
2122 case ${obj_format} in
2124 case ${target_cpu_type} in
2125 i386
) cat >> confdefs.h
<<\EOF
2129 m68k
) cat >> confdefs.h
<<\EOF
2133 m88k
) cat >> confdefs.h
<<\EOF
2141 # Getting this done right is going to be a bitch. Each configuration specified
2142 # with --enable-targets=... should be checked for environment, format, cpu, and
2145 # For each configuration, the necessary object file support code must be linked
2146 # in. This might be only one, it might be up to four. The necessary emulation
2147 # code needs to be provided, too.
2149 # And then there's "--enable-targets=all"....
2151 # For now, just always do it for MIPS ELF or ECOFF configurations. Sigh.
2153 formats
="${obj_format}"
2156 _gas_uniq_list
="$emulations"
2157 _gas_uniq_newlist
=""
2158 for _gas_uniq_i
in _gas_uniq_dummy
$_gas_uniq_list ; do
2159 case $_gas_uniq_i in
2161 *) case " $_gas_uniq_newlist " in
2162 *" $_gas_uniq_i "*) ;;
2163 *) _gas_uniq_newlist
="$_gas_uniq_newlist $_gas_uniq_i" ;;
2167 emulations
=$_gas_uniq_newlist
2169 for em
in .
$emulations ; do
2172 mipsbelf | mipslelf
)
2173 fmt=elf
file=mipself
;;
2174 mipsbecoff | mipslecoff
)
2175 fmt=ecoff
file=mipsecoff
;;
2177 fmt=aout
file=i386aout
;;
2179 fmt=coff
file=i386coff
;;
2181 fmt=elf
file=i386elf
;;
2183 formats
="$formats $fmt"
2184 emfiles
="$emfiles e-$file.o"
2185 EMULATIONS
="$EMULATIONS &$em,"
2187 _gas_uniq_list
="$formats"
2188 _gas_uniq_newlist
=""
2189 for _gas_uniq_i
in _gas_uniq_dummy
$_gas_uniq_list ; do
2190 case $_gas_uniq_i in
2192 *) case " $_gas_uniq_newlist " in
2193 *" $_gas_uniq_i "*) ;;
2194 *) _gas_uniq_newlist
="$_gas_uniq_newlist $_gas_uniq_i" ;;
2198 formats
=$_gas_uniq_newlist
2200 _gas_uniq_list
="$emfiles"
2201 _gas_uniq_newlist
=""
2202 for _gas_uniq_i
in _gas_uniq_dummy
$_gas_uniq_list ; do
2203 case $_gas_uniq_i in
2205 *) case " $_gas_uniq_newlist " in
2206 *" $_gas_uniq_i "*) ;;
2207 *) _gas_uniq_newlist
="$_gas_uniq_newlist $_gas_uniq_i" ;;
2211 emfiles
=$_gas_uniq_newlist
2213 if test `set . $formats ; shift ; echo $#` -gt 1 ; then
2214 for fmt in $formats ; do
2216 aout
) cat >> confdefs.h
<<\EOF
2217 #define OBJ_MAYBE_AOUT 1
2220 bout
) cat >> confdefs.h
<<\EOF
2221 #define OBJ_MAYBE_BOUT 1
2224 coff
) cat >> confdefs.h
<<\EOF
2225 #define OBJ_MAYBE_COFF 1
2228 ecoff
) cat >> confdefs.h
<<\EOF
2229 #define OBJ_MAYBE_ECOFF 1
2232 elf
) cat >> confdefs.h
<<\EOF
2233 #define OBJ_MAYBE_ELF 1
2236 generic
) cat >> confdefs.h
<<\EOF
2237 #define OBJ_MAYBE_GENERIC 1
2240 hp300
) cat >> confdefs.h
<<\EOF
2241 #define OBJ_MAYBE_HP300 1
2244 ieee
) cat >> confdefs.h
<<\EOF
2245 #define OBJ_MAYBE_IEEE 1
2248 som
) cat >> confdefs.h
<<\EOF
2249 #define OBJ_MAYBE_SOM 1
2252 vms
) cat >> confdefs.h
<<\EOF
2253 #define OBJ_MAYBE_VMS 1
2257 extra_objects
="$extra_objects obj-$fmt.o"
2261 if test `set . $emfiles ; shift ; echo $#` -gt 0 ; then
2262 DEFAULT_EMULATION
=`set . $emulations ; echo $2`
2263 # e-mips* has more than one emulation per file, e-i386* has just one at the
2264 # moment. If only one emulation is specified, then don't define
2265 # USE_EMULATIONS or include any of the e-files as they will only be bloat.
2266 case "${obj_format}${emfiles}" in
2268 extra_objects
="$extra_objects $emfiles"
2269 cat >> confdefs.h
<<\EOF
2270 #define USE_EMULATIONS 1
2276 cat >> confdefs.h
<<EOF
2277 #define EMULATIONS $EMULATIONS
2280 cat >> confdefs.h
<<EOF
2281 #define DEFAULT_EMULATION "$DEFAULT_EMULATION"
2285 case ${primary_bfd_gas}-${target_cpu_type}-${obj_format} in
2286 yes-
*-coff) need_bfd
=yes ;;
2287 no-
*-coff) need_bfd
=yes
2288 cat >> confdefs.h
<<\EOF
2289 #define MANY_SEGMENTS 1
2294 reject_dev_configs
=yes
2296 case ${reject_dev_configs}-${dev} in
2298 { echo "configure: error: GAS does not support the ${generic_target} configuration." 1>&2; exit 1; }
2308 case "${primary_bfd_gas}" in
2309 yes) cat >> confdefs.h
<<\EOF
2310 #define BFD_ASSEMBLER 1
2316 # do we need the opcodes library?
2317 case "${need_opcodes}" in
2319 OPCODES_LIB
=..
/opcodes
/libopcodes.la
2323 case "${need_bfd}" in
2325 BFDLIB
=..
/bfd
/libbfd.la
2326 ALL_OBJ_DEPS
="$ALL_OBJ_DEPS ../bfd/bfd.h"
2335 cat >> confdefs.h
<<EOF
2336 #define TARGET_ALIAS "${target_alias}"
2339 cat >> confdefs.h
<<EOF
2340 #define TARGET_CANONICAL "${target}"
2343 cat >> confdefs.h
<<EOF
2344 #define TARGET_CPU "${target_cpu}"
2347 cat >> confdefs.h
<<EOF
2348 #define TARGET_VENDOR "${target_vendor}"
2351 cat >> confdefs.h
<<EOF
2352 #define TARGET_OS "${target_os}"
2356 # Extract the first word of "gcc", so it can be a program name with args.
2357 set dummy gcc
; ac_word
=$2
2358 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2359 echo "configure:2360: checking for $ac_word" >&5
2360 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2361 echo $ac_n "(cached) $ac_c" 1>&6
2363 if test -n "$CC"; then
2364 ac_cv_prog_CC
="$CC" # Let the user override the test.
2366 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2368 for ac_dir
in $ac_dummy; do
2369 test -z "$ac_dir" && ac_dir
=.
2370 if test -f $ac_dir/$ac_word; then
2379 if test -n "$CC"; then
2380 echo "$ac_t""$CC" 1>&6
2382 echo "$ac_t""no" 1>&6
2385 if test -z "$CC"; then
2386 # Extract the first word of "cc", so it can be a program name with args.
2387 set dummy cc
; ac_word
=$2
2388 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2389 echo "configure:2390: checking for $ac_word" >&5
2390 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2391 echo $ac_n "(cached) $ac_c" 1>&6
2393 if test -n "$CC"; then
2394 ac_cv_prog_CC
="$CC" # Let the user override the test.
2396 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2399 for ac_dir
in $ac_dummy; do
2400 test -z "$ac_dir" && ac_dir
=.
2401 if test -f $ac_dir/$ac_word; then
2402 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2403 ac_prog_rejected
=yes
2411 if test $ac_prog_rejected = yes; then
2412 # We found a bogon in the path, so make sure we never use it.
2413 set dummy
$ac_cv_prog_CC
2415 if test $# -gt 0; then
2416 # We chose a different compiler from the bogus one.
2417 # However, it has the same basename, so the bogon will be chosen
2418 # first if we set CC to just the basename; use the full file name.
2420 set dummy
"$ac_dir/$ac_word" "$@"
2428 if test -n "$CC"; then
2429 echo "$ac_t""$CC" 1>&6
2431 echo "$ac_t""no" 1>&6
2434 if test -z "$CC"; then
2435 case "`uname -s`" in
2437 # Extract the first word of "cl", so it can be a program name with args.
2438 set dummy cl
; ac_word
=$2
2439 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2440 echo "configure:2441: checking for $ac_word" >&5
2441 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2442 echo $ac_n "(cached) $ac_c" 1>&6
2444 if test -n "$CC"; then
2445 ac_cv_prog_CC
="$CC" # Let the user override the test.
2447 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2449 for ac_dir
in $ac_dummy; do
2450 test -z "$ac_dir" && ac_dir
=.
2451 if test -f $ac_dir/$ac_word; then
2460 if test -n "$CC"; then
2461 echo "$ac_t""$CC" 1>&6
2463 echo "$ac_t""no" 1>&6
2468 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2471 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2472 echo "configure:2473: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
2475 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2476 ac_cpp
='$CPP $CPPFLAGS'
2477 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2478 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2479 cross_compiling
=$ac_cv_prog_cc_cross
2481 cat > conftest.
$ac_ext << EOF
2483 #line 2484 "configure"
2484 #include "confdefs.h"
2488 if { (eval echo configure
:2489: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2489 ac_cv_prog_cc_works
=yes
2490 # If we can't run a trivial program, we are probably using a cross compiler.
2491 if (.
/conftest
; exit) 2>/dev
/null
; then
2492 ac_cv_prog_cc_cross
=no
2494 ac_cv_prog_cc_cross
=yes
2497 echo "configure: failed program was:" >&5
2498 cat conftest.
$ac_ext >&5
2499 ac_cv_prog_cc_works
=no
2503 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2504 ac_cpp
='$CPP $CPPFLAGS'
2505 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2506 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2507 cross_compiling
=$ac_cv_prog_cc_cross
2509 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2510 if test $ac_cv_prog_cc_works = no
; then
2511 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2513 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2514 echo "configure:2515: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2515 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2516 cross_compiling
=$ac_cv_prog_cc_cross
2518 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2519 echo "configure:2520: checking whether we are using GNU C" >&5
2520 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
2521 echo $ac_n "(cached) $ac_c" 1>&6
2523 cat > conftest.c
<<EOF
2528 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:2529: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
2535 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2537 if test $ac_cv_prog_gcc = yes; then
2543 ac_test_CFLAGS
="${CFLAGS+set}"
2544 ac_save_CFLAGS
="$CFLAGS"
2546 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2547 echo "configure:2548: checking whether ${CC-cc} accepts -g" >&5
2548 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2549 echo $ac_n "(cached) $ac_c" 1>&6
2551 echo 'void f(){}' > conftest.c
2552 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2561 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2562 if test "$ac_test_CFLAGS" = set; then
2563 CFLAGS
="$ac_save_CFLAGS"
2564 elif test $ac_cv_prog_cc_g = yes; then
2565 if test "$GCC" = yes; then
2571 if test "$GCC" = yes; then
2579 for ac_prog
in 'bison -y' byacc
2581 # Extract the first word of "$ac_prog", so it can be a program name with args.
2582 set dummy
$ac_prog; ac_word
=$2
2583 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2584 echo "configure:2585: checking for $ac_word" >&5
2585 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
2586 echo $ac_n "(cached) $ac_c" 1>&6
2588 if test -n "$YACC"; then
2589 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
2591 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2593 for ac_dir
in $ac_dummy; do
2594 test -z "$ac_dir" && ac_dir
=.
2595 if test -f $ac_dir/$ac_word; then
2596 ac_cv_prog_YACC
="$ac_prog"
2603 YACC
="$ac_cv_prog_YACC"
2604 if test -n "$YACC"; then
2605 echo "$ac_t""$YACC" 1>&6
2607 echo "$ac_t""no" 1>&6
2610 test -n "$YACC" && break
2612 test -n "$YACC" || YACC
="yacc"
2614 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2615 echo "configure:2616: checking how to run the C preprocessor" >&5
2616 # On Suns, sometimes $CPP names a directory.
2617 if test -n "$CPP" && test -d "$CPP"; then
2620 if test -z "$CPP"; then
2621 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2622 echo $ac_n "(cached) $ac_c" 1>&6
2624 # This must be in double quotes, not single quotes, because CPP may get
2625 # substituted into the Makefile and "${CC-cc}" will confuse make.
2627 # On the NeXT, cc -E runs the code through the compiler's parser,
2628 # not just through cpp.
2629 cat > conftest.
$ac_ext <<EOF
2630 #line 2631 "configure"
2631 #include "confdefs.h"
2635 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2636 { (eval echo configure
:2637: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2637 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2638 if test -z "$ac_err"; then
2642 echo "configure: failed program was:" >&5
2643 cat conftest.
$ac_ext >&5
2645 CPP
="${CC-cc} -E -traditional-cpp"
2646 cat > conftest.
$ac_ext <<EOF
2647 #line 2648 "configure"
2648 #include "confdefs.h"
2652 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2653 { (eval echo configure
:2654: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2654 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2655 if test -z "$ac_err"; then
2659 echo "configure: failed program was:" >&5
2660 cat conftest.
$ac_ext >&5
2662 CPP
="${CC-cc} -nologo -E"
2663 cat > conftest.
$ac_ext <<EOF
2664 #line 2665 "configure"
2665 #include "confdefs.h"
2669 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2670 { (eval echo configure
:2671: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2671 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2672 if test -z "$ac_err"; then
2676 echo "configure: failed program was:" >&5
2677 cat conftest.
$ac_ext >&5
2686 ac_cv_prog_CPP
="$CPP"
2688 CPP
="$ac_cv_prog_CPP"
2690 ac_cv_prog_CPP
="$CPP"
2692 echo "$ac_t""$CPP" 1>&6
2694 missing_dir
=`cd $ac_aux_dir && pwd`
2695 for ac_prog
in flex
lex
2697 # Extract the first word of "$ac_prog", so it can be a program name with args.
2698 set dummy
$ac_prog; ac_word
=$2
2699 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2700 echo "configure:2701: checking for $ac_word" >&5
2701 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
2702 echo $ac_n "(cached) $ac_c" 1>&6
2704 if test -n "$LEX"; then
2705 ac_cv_prog_LEX
="$LEX" # Let the user override the test.
2707 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2709 for ac_dir
in $ac_dummy; do
2710 test -z "$ac_dir" && ac_dir
=.
2711 if test -f $ac_dir/$ac_word; then
2712 ac_cv_prog_LEX
="$ac_prog"
2719 LEX
="$ac_cv_prog_LEX"
2720 if test -n "$LEX"; then
2721 echo "$ac_t""$LEX" 1>&6
2723 echo "$ac_t""no" 1>&6
2726 test -n "$LEX" && break
2728 test -n "$LEX" || LEX
=""$missing_dir/missing flex
""
2730 # Extract the first word of "flex", so it can be a program name with args.
2731 set dummy flex
; ac_word
=$2
2732 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2733 echo "configure:2734: checking for $ac_word" >&5
2734 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
2735 echo $ac_n "(cached) $ac_c" 1>&6
2737 if test -n "$LEX"; then
2738 ac_cv_prog_LEX
="$LEX" # Let the user override the test.
2740 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2742 for ac_dir
in $ac_dummy; do
2743 test -z "$ac_dir" && ac_dir
=.
2744 if test -f $ac_dir/$ac_word; then
2745 ac_cv_prog_LEX
="flex"
2750 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX
="lex"
2753 LEX
="$ac_cv_prog_LEX"
2754 if test -n "$LEX"; then
2755 echo "$ac_t""$LEX" 1>&6
2757 echo "$ac_t""no" 1>&6
2760 if test -z "$LEXLIB"
2766 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
2767 echo "configure:2768: checking for yywrap in -l$ac_lib" >&5
2768 ac_lib_var
=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
2769 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2770 echo $ac_n "(cached) $ac_c" 1>&6
2772 ac_save_LIBS
="$LIBS"
2773 LIBS
="-l$ac_lib $LIBS"
2774 cat > conftest.
$ac_ext <<EOF
2775 #line 2776 "configure"
2776 #include "confdefs.h"
2777 /* Override any gcc2 internal prototype to avoid an error. */
2778 /* We use char because int might match the return type of a gcc2
2779 builtin and then its argument prototype would still apply. */
2786 if { (eval echo configure
:2787: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2788 eval "ac_cv_lib_$ac_lib_var=yes"
2790 echo "configure: failed program was:" >&5
2791 cat conftest.
$ac_ext >&5
2793 eval "ac_cv_lib_$ac_lib_var=no"
2796 LIBS
="$ac_save_LIBS"
2799 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2800 echo "$ac_t""yes" 1>&6
2803 echo "$ac_t""no" 1>&6
2808 echo $ac_n "checking lex output file root""... $ac_c" 1>&6
2809 echo "configure:2810: checking lex output file root" >&5
2810 if eval "test \"`echo '$''{'ac_cv_prog_lex_root'+set}'`\" = set"; then
2811 echo $ac_n "(cached) $ac_c" 1>&6
2813 # The minimal lex program is just a single line: %%. But some broken lexes
2814 # (Solaris, I think it was) want two %% lines, so accommodate them.
2817 if test -f lex.yy.c
; then
2818 ac_cv_prog_lex_root
=lex.yy
2819 elif test -f lexyy.c
; then
2820 ac_cv_prog_lex_root
=lexyy
2822 { echo "configure: error: cannot find output from $LEX; giving up" 1>&2; exit 1; }
2826 echo "$ac_t""$ac_cv_prog_lex_root" 1>&6
2827 LEX_OUTPUT_ROOT
=$ac_cv_prog_lex_root
2829 echo $ac_n "checking whether yytext is a pointer""... $ac_c" 1>&6
2830 echo "configure:2831: checking whether yytext is a pointer" >&5
2831 if eval "test \"`echo '$''{'ac_cv_prog_lex_yytext_pointer'+set}'`\" = set"; then
2832 echo $ac_n "(cached) $ac_c" 1>&6
2834 # POSIX says lex can declare yytext either as a pointer or an array; the
2835 # default is implementation-dependent. Figure out which it is, since
2836 # not all implementations provide the %pointer and %array declarations.
2837 ac_cv_prog_lex_yytext_pointer
=no
2838 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
2839 ac_save_LIBS
="$LIBS"
2840 LIBS
="$LIBS $LEXLIB"
2841 cat > conftest.
$ac_ext <<EOF
2842 #line 2843 "configure"
2843 #include "confdefs.h"
2844 `cat $LEX_OUTPUT_ROOT.c`
2849 if { (eval echo configure
:2850: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2851 ac_cv_prog_lex_yytext_pointer
=yes
2853 echo "configure: failed program was:" >&5
2854 cat conftest.
$ac_ext >&5
2857 LIBS
="$ac_save_LIBS"
2858 rm -f "${LEX_OUTPUT_ROOT}.c"
2862 echo "$ac_t""$ac_cv_prog_lex_yytext_pointer" 1>&6
2863 if test $ac_cv_prog_lex_yytext_pointer = yes; then
2864 cat >> confdefs.h
<<\EOF
2865 #define YYTEXT_POINTER 1
2872 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
2873 echo "configure:2874: checking for POSIXized ISC" >&5
2874 if test -d /etc
/conf
/kconfig.d
&&
2875 grep _POSIX_VERSION
/usr
/include
/sys
/unistd.h
>/dev
/null
2>&1
2877 echo "$ac_t""yes" 1>&6
2878 ISC
=yes # If later tests want to check for ISC.
2879 cat >> confdefs.h
<<\EOF
2880 #define _POSIX_SOURCE 1
2883 if test "$GCC" = yes; then
2889 echo "$ac_t""no" 1>&6
2893 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2894 echo "configure:2895: checking for ANSI C header files" >&5
2895 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2896 echo $ac_n "(cached) $ac_c" 1>&6
2898 cat > conftest.
$ac_ext <<EOF
2899 #line 2900 "configure"
2900 #include "confdefs.h"
2906 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2907 { (eval echo configure
:2908: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2908 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2909 if test -z "$ac_err"; then
2911 ac_cv_header_stdc
=yes
2914 echo "configure: failed program was:" >&5
2915 cat conftest.
$ac_ext >&5
2917 ac_cv_header_stdc
=no
2921 if test $ac_cv_header_stdc = yes; then
2922 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2923 cat > conftest.
$ac_ext <<EOF
2924 #line 2925 "configure"
2925 #include "confdefs.h"
2928 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2929 egrep "memchr" >/dev
/null
2>&1; then
2933 ac_cv_header_stdc
=no
2939 if test $ac_cv_header_stdc = yes; then
2940 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2941 cat > conftest.
$ac_ext <<EOF
2942 #line 2943 "configure"
2943 #include "confdefs.h"
2946 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2947 egrep "free" >/dev
/null
2>&1; then
2951 ac_cv_header_stdc
=no
2957 if test $ac_cv_header_stdc = yes; then
2958 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2959 if test "$cross_compiling" = yes; then
2962 cat > conftest.
$ac_ext <<EOF
2963 #line 2964 "configure"
2964 #include "confdefs.h"
2966 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2967 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2968 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2969 int main () { int i; for (i = 0; i < 256; i++)
2970 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2974 if { (eval echo configure
:2975: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2978 echo "configure: failed program was:" >&5
2979 cat conftest.
$ac_ext >&5
2981 ac_cv_header_stdc
=no
2989 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2990 if test $ac_cv_header_stdc = yes; then
2991 cat >> confdefs.h
<<\EOF
2992 #define STDC_HEADERS 1
2997 echo $ac_n "checking for working const""... $ac_c" 1>&6
2998 echo "configure:2999: checking for working const" >&5
2999 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3000 echo $ac_n "(cached) $ac_c" 1>&6
3002 cat > conftest.
$ac_ext <<EOF
3003 #line 3004 "configure"
3004 #include "confdefs.h"
3008 /* Ultrix mips cc rejects this. */
3009 typedef int charset[2]; const charset x;
3010 /* SunOS 4.1.1 cc rejects this. */
3011 char const *const *ccp;
3013 /* NEC SVR4.0.2 mips cc rejects this. */
3014 struct point {int x, y;};
3015 static struct point const zero = {0,0};
3016 /* AIX XL C 1.02.0.0 rejects this.
3017 It does not let you subtract one const X* pointer from another in an arm
3018 of an if-expression whose if-part is not a constant expression */
3019 const char *g = "string";
3020 ccp = &g + (g ? g-g : 0);
3021 /* HPUX 7.0 cc rejects these. */
3024 ccp = (char const *const *) p;
3025 { /* SCO 3.2v4 cc rejects this. */
3027 char const *s = 0 ? (char *) 0 : (char const *) 0;
3031 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3033 const int *foo = &x[0];
3036 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3037 typedef const int *iptr;
3041 { /* AIX XL C 1.02.0.0 rejects this saying
3042 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3043 struct s { int j; const int *ap[3]; };
3044 struct s *b; b->j = 5;
3046 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3052 if { (eval echo configure
:3053: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3056 echo "configure: failed program was:" >&5
3057 cat conftest.
$ac_ext >&5
3064 echo "$ac_t""$ac_cv_c_const" 1>&6
3065 if test $ac_cv_c_const = no
; then
3066 cat >> confdefs.h
<<\EOF
3072 echo $ac_n "checking for inline""... $ac_c" 1>&6
3073 echo "configure:3074: checking for inline" >&5
3074 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
3075 echo $ac_n "(cached) $ac_c" 1>&6
3078 for ac_kw
in inline __inline__ __inline
; do
3079 cat > conftest.
$ac_ext <<EOF
3080 #line 3081 "configure"
3081 #include "confdefs.h"
3087 if { (eval echo configure
:3088: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3089 ac_cv_c_inline
=$ac_kw; break
3091 echo "configure: failed program was:" >&5
3092 cat conftest.
$ac_ext >&5
3099 echo "$ac_t""$ac_cv_c_inline" 1>&6
3100 case "$ac_cv_c_inline" in
3102 no
) cat >> confdefs.h
<<\EOF
3106 *) cat >> confdefs.h
<<EOF
3107 #define inline $ac_cv_c_inline
3112 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3113 echo "configure:3114: checking for off_t" >&5
3114 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
3115 echo $ac_n "(cached) $ac_c" 1>&6
3117 cat > conftest.
$ac_ext <<EOF
3118 #line 3119 "configure"
3119 #include "confdefs.h"
3120 #include <sys/types.h>
3126 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3127 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3129 ac_cv_type_off_t
=yes
3137 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3138 if test $ac_cv_type_off_t = no
; then
3139 cat >> confdefs.h
<<\EOF
3145 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3146 echo "configure:3147: checking for size_t" >&5
3147 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3148 echo $ac_n "(cached) $ac_c" 1>&6
3150 cat > conftest.
$ac_ext <<EOF
3151 #line 3152 "configure"
3152 #include "confdefs.h"
3153 #include <sys/types.h>
3159 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3160 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3162 ac_cv_type_size_t
=yes
3165 ac_cv_type_size_t
=no
3170 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3171 if test $ac_cv_type_size_t = no
; then
3172 cat >> confdefs.h
<<\EOF
3173 #define size_t unsigned
3178 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
3179 # for constant arguments. Useless!
3180 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
3181 echo "configure:3182: checking for working alloca.h" >&5
3182 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
3183 echo $ac_n "(cached) $ac_c" 1>&6
3185 cat > conftest.
$ac_ext <<EOF
3186 #line 3187 "configure"
3187 #include "confdefs.h"
3190 char *p = alloca(2 * sizeof(int));
3193 if { (eval echo configure
:3194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3195 ac_cv_header_alloca_h
=yes
3197 echo "configure: failed program was:" >&5
3198 cat conftest.
$ac_ext >&5
3200 ac_cv_header_alloca_h
=no
3205 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
3206 if test $ac_cv_header_alloca_h = yes; then
3207 cat >> confdefs.h
<<\EOF
3208 #define HAVE_ALLOCA_H 1
3213 echo $ac_n "checking for alloca""... $ac_c" 1>&6
3214 echo "configure:3215: checking for alloca" >&5
3215 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
3216 echo $ac_n "(cached) $ac_c" 1>&6
3218 cat > conftest.
$ac_ext <<EOF
3219 #line 3220 "configure"
3220 #include "confdefs.h"
3223 # define alloca __builtin_alloca
3226 # include <malloc.h>
3227 # define alloca _alloca
3230 # include <alloca.h>
3235 # ifndef alloca /* predefined by HP cc +Olibcalls */
3244 char *p = (char *) alloca(1);
3247 if { (eval echo configure
:3248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3249 ac_cv_func_alloca_works
=yes
3251 echo "configure: failed program was:" >&5
3252 cat conftest.
$ac_ext >&5
3254 ac_cv_func_alloca_works
=no
3259 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
3260 if test $ac_cv_func_alloca_works = yes; then
3261 cat >> confdefs.h
<<\EOF
3262 #define HAVE_ALLOCA 1
3267 if test $ac_cv_func_alloca_works = no
; then
3268 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
3269 # that cause trouble. Some versions do not even contain alloca or
3270 # contain a buggy version. If you still want to use their alloca,
3271 # use ar to extract alloca.o from them instead of compiling alloca.c.
3272 ALLOCA
=alloca.
${ac_objext}
3273 cat >> confdefs.h
<<\EOF
3278 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
3279 echo "configure:3280: checking whether alloca needs Cray hooks" >&5
3280 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
3281 echo $ac_n "(cached) $ac_c" 1>&6
3283 cat > conftest.
$ac_ext <<EOF
3284 #line 3285 "configure"
3285 #include "confdefs.h"
3286 #if defined(CRAY) && ! defined(CRAY2)
3293 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3294 egrep "webecray" >/dev
/null
2>&1; then
3305 echo "$ac_t""$ac_cv_os_cray" 1>&6
3306 if test $ac_cv_os_cray = yes; then
3307 for ac_func
in _getb67 GETB67 getb67
; do
3308 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3309 echo "configure:3310: checking for $ac_func" >&5
3310 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3311 echo $ac_n "(cached) $ac_c" 1>&6
3313 cat > conftest.
$ac_ext <<EOF
3314 #line 3315 "configure"
3315 #include "confdefs.h"
3316 /* System header to define __stub macros and hopefully few prototypes,
3317 which can conflict with char $ac_func(); below. */
3319 /* Override any gcc2 internal prototype to avoid an error. */
3320 /* We use char because int might match the return type of a gcc2
3321 builtin and then its argument prototype would still apply. */
3326 /* The GNU C library defines this for functions which it implements
3327 to always fail with ENOSYS. Some functions are actually named
3328 something starting with __ and the normal name is an alias. */
3329 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3337 if { (eval echo configure
:3338: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3339 eval "ac_cv_func_$ac_func=yes"
3341 echo "configure: failed program was:" >&5
3342 cat conftest.
$ac_ext >&5
3344 eval "ac_cv_func_$ac_func=no"
3349 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3350 echo "$ac_t""yes" 1>&6
3351 cat >> confdefs.h
<<EOF
3352 #define CRAY_STACKSEG_END $ac_func
3357 echo "$ac_t""no" 1>&6
3363 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
3364 echo "configure:3365: checking stack direction for C alloca" >&5
3365 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
3366 echo $ac_n "(cached) $ac_c" 1>&6
3368 if test "$cross_compiling" = yes; then
3369 ac_cv_c_stack_direction
=0
3371 cat > conftest.
$ac_ext <<EOF
3372 #line 3373 "configure"
3373 #include "confdefs.h"
3374 find_stack_direction ()
3376 static char *addr = 0;
3381 return find_stack_direction ();
3384 return (&dummy > addr) ? 1 : -1;
3388 exit (find_stack_direction() < 0);
3391 if { (eval echo configure
:3392: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3393 ac_cv_c_stack_direction
=1
3395 echo "configure: failed program was:" >&5
3396 cat conftest.
$ac_ext >&5
3398 ac_cv_c_stack_direction
=-1
3405 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
3406 cat >> confdefs.h
<<EOF
3407 #define STACK_DIRECTION $ac_cv_c_stack_direction
3412 for ac_hdr
in unistd.h
3414 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3415 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3416 echo "configure:3417: checking for $ac_hdr" >&5
3417 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3418 echo $ac_n "(cached) $ac_c" 1>&6
3420 cat > conftest.
$ac_ext <<EOF
3421 #line 3422 "configure"
3422 #include "confdefs.h"
3425 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3426 { (eval echo configure
:3427: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3427 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3428 if test -z "$ac_err"; then
3430 eval "ac_cv_header_$ac_safe=yes"
3433 echo "configure: failed program was:" >&5
3434 cat conftest.
$ac_ext >&5
3436 eval "ac_cv_header_$ac_safe=no"
3440 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3441 echo "$ac_t""yes" 1>&6
3442 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3443 cat >> confdefs.h
<<EOF
3444 #define $ac_tr_hdr 1
3448 echo "$ac_t""no" 1>&6
3452 for ac_func
in getpagesize
3454 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3455 echo "configure:3456: checking for $ac_func" >&5
3456 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3457 echo $ac_n "(cached) $ac_c" 1>&6
3459 cat > conftest.
$ac_ext <<EOF
3460 #line 3461 "configure"
3461 #include "confdefs.h"
3462 /* System header to define __stub macros and hopefully few prototypes,
3463 which can conflict with char $ac_func(); below. */
3465 /* Override any gcc2 internal prototype to avoid an error. */
3466 /* We use char because int might match the return type of a gcc2
3467 builtin and then its argument prototype would still apply. */
3472 /* The GNU C library defines this for functions which it implements
3473 to always fail with ENOSYS. Some functions are actually named
3474 something starting with __ and the normal name is an alias. */
3475 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3483 if { (eval echo configure
:3484: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3485 eval "ac_cv_func_$ac_func=yes"
3487 echo "configure: failed program was:" >&5
3488 cat conftest.
$ac_ext >&5
3490 eval "ac_cv_func_$ac_func=no"
3495 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3496 echo "$ac_t""yes" 1>&6
3497 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3498 cat >> confdefs.h
<<EOF
3499 #define $ac_tr_func 1
3503 echo "$ac_t""no" 1>&6
3507 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
3508 echo "configure:3509: checking for working mmap" >&5
3509 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
3510 echo $ac_n "(cached) $ac_c" 1>&6
3512 if test "$cross_compiling" = yes; then
3513 ac_cv_func_mmap_fixed_mapped
=no
3515 cat > conftest.
$ac_ext <<EOF
3516 #line 3517 "configure"
3517 #include "confdefs.h"
3519 /* Thanks to Mike Haertel and Jim Avera for this test.
3520 Here is a matrix of mmap possibilities:
3521 mmap private not fixed
3522 mmap private fixed at somewhere currently unmapped
3523 mmap private fixed at somewhere already mapped
3524 mmap shared not fixed
3525 mmap shared fixed at somewhere currently unmapped
3526 mmap shared fixed at somewhere already mapped
3527 For private mappings, we should verify that changes cannot be read()
3528 back from the file, nor mmap's back from the file at a different
3529 address. (There have been systems where private was not correctly
3530 implemented like the infamous i386 svr4.0, and systems where the
3531 VM page cache was not coherent with the filesystem buffer cache
3532 like early versions of FreeBSD and possibly contemporary NetBSD.)
3533 For shared mappings, we should conversely verify that changes get
3534 propogated back to all the places they're supposed to be.
3536 Grep wants private fixed already mapped.
3537 The main things grep needs to know about mmap are:
3538 * does it exist and is it safe to write into the mmap'd area
3539 * how to use it (BSD variants) */
3540 #include <sys/types.h>
3542 #include <sys/mman.h>
3544 /* This mess was copied from the GNU getpagesize.h. */
3545 #ifndef HAVE_GETPAGESIZE
3546 # ifdef HAVE_UNISTD_H
3547 # include <unistd.h>
3550 /* Assume that all systems that can run configure have sys/param.h. */
3551 # ifndef HAVE_SYS_PARAM_H
3552 # define HAVE_SYS_PARAM_H 1
3555 # ifdef _SC_PAGESIZE
3556 # define getpagesize() sysconf(_SC_PAGESIZE)
3557 # else /* no _SC_PAGESIZE */
3558 # ifdef HAVE_SYS_PARAM_H
3559 # include <sys/param.h>
3560 # ifdef EXEC_PAGESIZE
3561 # define getpagesize() EXEC_PAGESIZE
3562 # else /* no EXEC_PAGESIZE */
3564 # define getpagesize() NBPG * CLSIZE
3567 # endif /* no CLSIZE */
3568 # else /* no NBPG */
3570 # define getpagesize() NBPC
3571 # else /* no NBPC */
3573 # define getpagesize() PAGESIZE
3574 # endif /* PAGESIZE */
3575 # endif /* no NBPC */
3576 # endif /* no NBPG */
3577 # endif /* no EXEC_PAGESIZE */
3578 # else /* no HAVE_SYS_PARAM_H */
3579 # define getpagesize() 8192 /* punt totally */
3580 # endif /* no HAVE_SYS_PARAM_H */
3581 # endif /* no _SC_PAGESIZE */
3583 #endif /* no HAVE_GETPAGESIZE */
3586 extern "C" { void *malloc(unsigned); }
3594 char *data, *data2, *data3;
3598 pagesize = getpagesize();
3601 * First, make a file with some known garbage in it.
3603 data = malloc(pagesize);
3606 for (i = 0; i < pagesize; ++i)
3607 *(data + i) = rand();
3609 fd = creat("conftestmmap", 0600);
3612 if (write(fd, data, pagesize) != pagesize)
3617 * Next, try to mmap the file at a fixed address which
3618 * already has something else allocated at it. If we can,
3619 * also make sure that we see the same garbage.
3621 fd = open("conftestmmap", O_RDWR);
3624 data2 = malloc(2 * pagesize);
3627 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
3628 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
3629 MAP_PRIVATE | MAP_FIXED, fd, 0L))
3631 for (i = 0; i < pagesize; ++i)
3632 if (*(data + i) != *(data2 + i))
3636 * Finally, make sure that changes to the mapped area
3637 * do not percolate back to the file as seen by read().
3638 * (This is a bug on some variants of i386 svr4.0.)
3640 for (i = 0; i < pagesize; ++i)
3641 *(data2 + i) = *(data2 + i) + 1;
3642 data3 = malloc(pagesize);
3645 if (read(fd, data3, pagesize) != pagesize)
3647 for (i = 0; i < pagesize; ++i)
3648 if (*(data + i) != *(data3 + i))
3651 unlink("conftestmmap");
3656 if { (eval echo configure
:3657: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3658 ac_cv_func_mmap_fixed_mapped
=yes
3660 echo "configure: failed program was:" >&5
3661 cat conftest.
$ac_ext >&5
3663 ac_cv_func_mmap_fixed_mapped
=no
3670 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
3671 if test $ac_cv_func_mmap_fixed_mapped = yes; then
3672 cat >> confdefs.h
<<\EOF
3679 for ac_hdr
in argz.h limits.h locale.h nl_types.h malloc.h string.h \
3680 unistd.h values.h sys
/param.h
3682 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3683 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3684 echo "configure:3685: checking for $ac_hdr" >&5
3685 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3686 echo $ac_n "(cached) $ac_c" 1>&6
3688 cat > conftest.
$ac_ext <<EOF
3689 #line 3690 "configure"
3690 #include "confdefs.h"
3693 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3694 { (eval echo configure
:3695: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3695 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3696 if test -z "$ac_err"; then
3698 eval "ac_cv_header_$ac_safe=yes"
3701 echo "configure: failed program was:" >&5
3702 cat conftest.
$ac_ext >&5
3704 eval "ac_cv_header_$ac_safe=no"
3708 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3709 echo "$ac_t""yes" 1>&6
3710 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3711 cat >> confdefs.h
<<EOF
3712 #define $ac_tr_hdr 1
3716 echo "$ac_t""no" 1>&6
3720 for ac_func
in getcwd munmap putenv setenv setlocale strchr strcasecmp \
3721 __argz_count __argz_stringify __argz_next
3723 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3724 echo "configure:3725: checking for $ac_func" >&5
3725 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3726 echo $ac_n "(cached) $ac_c" 1>&6
3728 cat > conftest.
$ac_ext <<EOF
3729 #line 3730 "configure"
3730 #include "confdefs.h"
3731 /* System header to define __stub macros and hopefully few prototypes,
3732 which can conflict with char $ac_func(); below. */
3734 /* Override any gcc2 internal prototype to avoid an error. */
3735 /* We use char because int might match the return type of a gcc2
3736 builtin and then its argument prototype would still apply. */
3741 /* The GNU C library defines this for functions which it implements
3742 to always fail with ENOSYS. Some functions are actually named
3743 something starting with __ and the normal name is an alias. */
3744 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3752 if { (eval echo configure
:3753: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3754 eval "ac_cv_func_$ac_func=yes"
3756 echo "configure: failed program was:" >&5
3757 cat conftest.
$ac_ext >&5
3759 eval "ac_cv_func_$ac_func=no"
3764 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3765 echo "$ac_t""yes" 1>&6
3766 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3767 cat >> confdefs.h
<<EOF
3768 #define $ac_tr_func 1
3772 echo "$ac_t""no" 1>&6
3777 if test "${ac_cv_func_stpcpy+set}" != "set"; then
3778 for ac_func
in stpcpy
3780 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3781 echo "configure:3782: checking for $ac_func" >&5
3782 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3783 echo $ac_n "(cached) $ac_c" 1>&6
3785 cat > conftest.
$ac_ext <<EOF
3786 #line 3787 "configure"
3787 #include "confdefs.h"
3788 /* System header to define __stub macros and hopefully few prototypes,
3789 which can conflict with char $ac_func(); below. */
3791 /* Override any gcc2 internal prototype to avoid an error. */
3792 /* We use char because int might match the return type of a gcc2
3793 builtin and then its argument prototype would still apply. */
3798 /* The GNU C library defines this for functions which it implements
3799 to always fail with ENOSYS. Some functions are actually named
3800 something starting with __ and the normal name is an alias. */
3801 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3809 if { (eval echo configure
:3810: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3811 eval "ac_cv_func_$ac_func=yes"
3813 echo "configure: failed program was:" >&5
3814 cat conftest.
$ac_ext >&5
3816 eval "ac_cv_func_$ac_func=no"
3821 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3822 echo "$ac_t""yes" 1>&6
3823 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3824 cat >> confdefs.h
<<EOF
3825 #define $ac_tr_func 1
3829 echo "$ac_t""no" 1>&6
3834 if test "${ac_cv_func_stpcpy}" = "yes"; then
3835 cat >> confdefs.h
<<\EOF
3836 #define HAVE_STPCPY 1
3841 if test $ac_cv_header_locale_h = yes; then
3842 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
3843 echo "configure:3844: checking for LC_MESSAGES" >&5
3844 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
3845 echo $ac_n "(cached) $ac_c" 1>&6
3847 cat > conftest.
$ac_ext <<EOF
3848 #line 3849 "configure"
3849 #include "confdefs.h"
3855 if { (eval echo configure
:3856: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3857 am_cv_val_LC_MESSAGES
=yes
3859 echo "configure: failed program was:" >&5
3860 cat conftest.
$ac_ext >&5
3862 am_cv_val_LC_MESSAGES
=no
3867 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
3868 if test $am_cv_val_LC_MESSAGES = yes; then
3869 cat >> confdefs.h
<<\EOF
3870 #define HAVE_LC_MESSAGES 1
3875 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
3876 echo "configure:3877: checking whether NLS is requested" >&5
3877 # Check whether --enable-nls or --disable-nls was given.
3878 if test "${enable_nls+set}" = set; then
3879 enableval
="$enable_nls"
3885 echo "$ac_t""$USE_NLS" 1>&6
3888 USE_INCLUDED_LIBINTL
=no
3890 if test "$USE_NLS" = "yes"; then
3891 cat >> confdefs.h
<<\EOF
3892 #define ENABLE_NLS 1
3895 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
3896 echo "configure:3897: checking whether included gettext is requested" >&5
3897 # Check whether --with-included-gettext or --without-included-gettext was given.
3898 if test "${with_included_gettext+set}" = set; then
3899 withval
="$with_included_gettext"
3900 nls_cv_force_use_gnu_gettext
=$withval
3902 nls_cv_force_use_gnu_gettext
=no
3905 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
3907 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
3908 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
3910 nls_cv_header_libgt
=
3913 ac_safe
=`echo "libintl.h" | sed 'y%./+-%__p_%'`
3914 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
3915 echo "configure:3916: checking for libintl.h" >&5
3916 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3917 echo $ac_n "(cached) $ac_c" 1>&6
3919 cat > conftest.
$ac_ext <<EOF
3920 #line 3921 "configure"
3921 #include "confdefs.h"
3922 #include <libintl.h>
3924 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3925 { (eval echo configure
:3926: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3926 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3927 if test -z "$ac_err"; then
3929 eval "ac_cv_header_$ac_safe=yes"
3932 echo "configure: failed program was:" >&5
3933 cat conftest.
$ac_ext >&5
3935 eval "ac_cv_header_$ac_safe=no"
3939 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3940 echo "$ac_t""yes" 1>&6
3941 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
3942 echo "configure:3943: checking for gettext in libc" >&5
3943 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
3944 echo $ac_n "(cached) $ac_c" 1>&6
3946 cat > conftest.
$ac_ext <<EOF
3947 #line 3948 "configure"
3948 #include "confdefs.h"
3949 #include <libintl.h>
3951 return (int) gettext ("")
3954 if { (eval echo configure
:3955: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3956 gt_cv_func_gettext_libc
=yes
3958 echo "configure: failed program was:" >&5
3959 cat conftest.
$ac_ext >&5
3961 gt_cv_func_gettext_libc
=no
3966 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
3968 if test "$gt_cv_func_gettext_libc" != "yes"; then
3969 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
3970 echo "configure:3971: checking for bindtextdomain in -lintl" >&5
3971 ac_lib_var
=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
3972 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3973 echo $ac_n "(cached) $ac_c" 1>&6
3975 ac_save_LIBS
="$LIBS"
3977 cat > conftest.
$ac_ext <<EOF
3978 #line 3979 "configure"
3979 #include "confdefs.h"
3980 /* Override any gcc2 internal prototype to avoid an error. */
3981 /* We use char because int might match the return type of a gcc2
3982 builtin and then its argument prototype would still apply. */
3983 char bindtextdomain();
3989 if { (eval echo configure
:3990: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3991 eval "ac_cv_lib_$ac_lib_var=yes"
3993 echo "configure: failed program was:" >&5
3994 cat conftest.
$ac_ext >&5
3996 eval "ac_cv_lib_$ac_lib_var=no"
3999 LIBS
="$ac_save_LIBS"
4002 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4003 echo "$ac_t""yes" 1>&6
4004 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
4005 echo "configure:4006: checking for gettext in libintl" >&5
4006 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
4007 echo $ac_n "(cached) $ac_c" 1>&6
4009 cat > conftest.
$ac_ext <<EOF
4010 #line 4011 "configure"
4011 #include "confdefs.h"
4014 return (int) gettext ("")
4017 if { (eval echo configure
:4018: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4019 gt_cv_func_gettext_libintl
=yes
4021 echo "configure: failed program was:" >&5
4022 cat conftest.
$ac_ext >&5
4024 gt_cv_func_gettext_libintl
=no
4029 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
4031 echo "$ac_t""no" 1>&6
4036 if test "$gt_cv_func_gettext_libc" = "yes" \
4037 ||
test "$gt_cv_func_gettext_libintl" = "yes"; then
4038 cat >> confdefs.h
<<\EOF
4039 #define HAVE_GETTEXT 1
4042 # Extract the first word of "msgfmt", so it can be a program name with args.
4043 set dummy msgfmt
; ac_word
=$2
4044 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4045 echo "configure:4046: checking for $ac_word" >&5
4046 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
4047 echo $ac_n "(cached) $ac_c" 1>&6
4051 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
4054 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
4055 for ac_dir
in $PATH; do
4056 test -z "$ac_dir" && ac_dir
=.
4057 if test -f $ac_dir/$ac_word; then
4058 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
4059 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
4065 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="no"
4069 MSGFMT
="$ac_cv_path_MSGFMT"
4070 if test -n "$MSGFMT"; then
4071 echo "$ac_t""$MSGFMT" 1>&6
4073 echo "$ac_t""no" 1>&6
4075 if test "$MSGFMT" != "no"; then
4076 for ac_func
in dcgettext
4078 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4079 echo "configure:4080: checking for $ac_func" >&5
4080 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4081 echo $ac_n "(cached) $ac_c" 1>&6
4083 cat > conftest.
$ac_ext <<EOF
4084 #line 4085 "configure"
4085 #include "confdefs.h"
4086 /* System header to define __stub macros and hopefully few prototypes,
4087 which can conflict with char $ac_func(); below. */
4089 /* Override any gcc2 internal prototype to avoid an error. */
4090 /* We use char because int might match the return type of a gcc2
4091 builtin and then its argument prototype would still apply. */
4096 /* The GNU C library defines this for functions which it implements
4097 to always fail with ENOSYS. Some functions are actually named
4098 something starting with __ and the normal name is an alias. */
4099 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4107 if { (eval echo configure
:4108: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4109 eval "ac_cv_func_$ac_func=yes"
4111 echo "configure: failed program was:" >&5
4112 cat conftest.
$ac_ext >&5
4114 eval "ac_cv_func_$ac_func=no"
4119 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4120 echo "$ac_t""yes" 1>&6
4121 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4122 cat >> confdefs.h
<<EOF
4123 #define $ac_tr_func 1
4127 echo "$ac_t""no" 1>&6
4131 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4132 set dummy gmsgfmt
; ac_word
=$2
4133 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4134 echo "configure:4135: checking for $ac_word" >&5
4135 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
4136 echo $ac_n "(cached) $ac_c" 1>&6
4140 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
4143 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
4146 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
4148 for ac_dir
in $ac_dummy; do
4149 test -z "$ac_dir" && ac_dir
=.
4150 if test -f $ac_dir/$ac_word; then
4151 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
4156 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
4160 GMSGFMT
="$ac_cv_path_GMSGFMT"
4161 if test -n "$GMSGFMT"; then
4162 echo "$ac_t""$GMSGFMT" 1>&6
4164 echo "$ac_t""no" 1>&6
4167 # Extract the first word of "xgettext", so it can be a program name with args.
4168 set dummy xgettext
; ac_word
=$2
4169 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4170 echo "configure:4171: checking for $ac_word" >&5
4171 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
4172 echo $ac_n "(cached) $ac_c" 1>&6
4176 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
4179 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
4180 for ac_dir
in $PATH; do
4181 test -z "$ac_dir" && ac_dir
=.
4182 if test -f $ac_dir/$ac_word; then
4183 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
4184 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
4190 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
4194 XGETTEXT
="$ac_cv_path_XGETTEXT"
4195 if test -n "$XGETTEXT"; then
4196 echo "$ac_t""$XGETTEXT" 1>&6
4198 echo "$ac_t""no" 1>&6
4201 cat > conftest.
$ac_ext <<EOF
4202 #line 4203 "configure"
4203 #include "confdefs.h"
4206 extern int _nl_msg_cat_cntr;
4207 return _nl_msg_cat_cntr
4210 if { (eval echo configure
:4211: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4215 echo "configure: failed program was:" >&5
4216 cat conftest.
$ac_ext >&5
4227 echo "$ac_t""no" 1>&6
4232 if test "$CATOBJEXT" = "NONE"; then
4233 nls_cv_use_gnu_gettext
=yes
4237 if test "$nls_cv_use_gnu_gettext" = "yes"; then
4238 INTLOBJS
="\$(GETTOBJS)"
4239 # Extract the first word of "msgfmt", so it can be a program name with args.
4240 set dummy msgfmt
; ac_word
=$2
4241 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4242 echo "configure:4243: checking for $ac_word" >&5
4243 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
4244 echo $ac_n "(cached) $ac_c" 1>&6
4248 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
4251 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
4252 for ac_dir
in $PATH; do
4253 test -z "$ac_dir" && ac_dir
=.
4254 if test -f $ac_dir/$ac_word; then
4255 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
4256 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
4262 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="msgfmt"
4266 MSGFMT
="$ac_cv_path_MSGFMT"
4267 if test -n "$MSGFMT"; then
4268 echo "$ac_t""$MSGFMT" 1>&6
4270 echo "$ac_t""no" 1>&6
4273 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4274 set dummy gmsgfmt
; ac_word
=$2
4275 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4276 echo "configure:4277: checking for $ac_word" >&5
4277 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
4278 echo $ac_n "(cached) $ac_c" 1>&6
4282 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
4285 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
4288 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
4290 for ac_dir
in $ac_dummy; do
4291 test -z "$ac_dir" && ac_dir
=.
4292 if test -f $ac_dir/$ac_word; then
4293 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
4298 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
4302 GMSGFMT
="$ac_cv_path_GMSGFMT"
4303 if test -n "$GMSGFMT"; then
4304 echo "$ac_t""$GMSGFMT" 1>&6
4306 echo "$ac_t""no" 1>&6
4309 # Extract the first word of "xgettext", so it can be a program name with args.
4310 set dummy xgettext
; ac_word
=$2
4311 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4312 echo "configure:4313: checking for $ac_word" >&5
4313 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
4314 echo $ac_n "(cached) $ac_c" 1>&6
4318 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
4321 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
4322 for ac_dir
in $PATH; do
4323 test -z "$ac_dir" && ac_dir
=.
4324 if test -f $ac_dir/$ac_word; then
4325 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
4326 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
4332 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
4336 XGETTEXT
="$ac_cv_path_XGETTEXT"
4337 if test -n "$XGETTEXT"; then
4338 echo "$ac_t""$XGETTEXT" 1>&6
4340 echo "$ac_t""no" 1>&6
4344 USE_INCLUDED_LIBINTL
=yes
4348 INTLDEPS
='$(top_builddir)/../intl/libintl.a'
4350 LIBS
=`echo $LIBS | sed -e 's/-lintl//'`
4351 nls_cv_header_intl
=libintl.h
4352 nls_cv_header_libgt
=libgettext.h
4355 if test "$XGETTEXT" != ":"; then
4356 if $XGETTEXT --omit-header /dev
/null
2> /dev
/null
; then
4359 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
4364 # We need to process the po/ directory.
4368 nls_cv_header_intl
=libintl.h
4369 nls_cv_header_libgt
=libgettext.h
4372 # If this is used in GNU gettext we have to set USE_NLS to `yes'
4373 # because some of the sources are only built for this goal.
4374 if test "$PACKAGE" = gettext; then
4376 USE_INCLUDED_LIBINTL
=yes
4379 for lang
in $ALL_LINGUAS; do
4380 GMOFILES
="$GMOFILES $lang.gmo"
4381 POFILES
="$POFILES $lang.po"
4397 if test "x$CATOBJEXT" != "x"; then
4398 if test "x$ALL_LINGUAS" = "x"; then
4401 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
4402 echo "configure:4403: checking for catalogs to be installed" >&5
4404 for lang
in ${LINGUAS=$ALL_LINGUAS}; do
4405 case "$ALL_LINGUAS" in
4406 *$lang*) NEW_LINGUAS
="$NEW_LINGUAS $lang" ;;
4409 LINGUAS
=$NEW_LINGUAS
4410 echo "$ac_t""$LINGUAS" 1>&6
4413 if test -n "$LINGUAS"; then
4414 for lang
in $LINGUAS; do CATALOGS
="$CATALOGS $lang$CATOBJEXT"; done
4418 if test $ac_cv_header_locale_h = yes; then
4419 INCLUDE_LOCALE_H
="#include <locale.h>"
4422 /* The system does not provide the header <locale.h>. Take care yourself. */"
4426 if test -f $srcdir/po2tbl.
sed.
in; then
4427 if test "$CATOBJEXT" = ".cat"; then
4428 ac_safe
=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
4429 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
4430 echo "configure:4431: checking for linux/version.h" >&5
4431 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4432 echo $ac_n "(cached) $ac_c" 1>&6
4434 cat > conftest.
$ac_ext <<EOF
4435 #line 4436 "configure"
4436 #include "confdefs.h"
4437 #include <linux/version.h>
4439 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4440 { (eval echo configure
:4441: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4441 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4442 if test -z "$ac_err"; then
4444 eval "ac_cv_header_$ac_safe=yes"
4447 echo "configure: failed program was:" >&5
4448 cat conftest.
$ac_ext >&5
4450 eval "ac_cv_header_$ac_safe=no"
4454 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4455 echo "$ac_t""yes" 1>&6
4458 echo "$ac_t""no" 1>&6
4463 sed -e '/^#/d' $srcdir/$msgformat-msg.
sed > po2msg.
sed
4465 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
4466 $srcdir/po2tbl.
sed.
in > po2tbl.
sed
4469 if test "$PACKAGE" = "gettext"; then
4479 MKINSTALLDIRS
="\$(srcdir)/../../mkinstalldirs"
4485 if test -d $srcdir/po
; then
4486 test -d po || mkdir po
4487 if test "x$srcdir" != "x."; then
4488 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
4489 posrcprefix
="$srcdir/"
4491 posrcprefix
="../$srcdir/"
4497 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
4498 < $srcdir/po
/POTFILES.
in > po
/POTFILES
4502 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
4503 echo "configure:4504: checking whether to enable maintainer-specific portions of Makefiles" >&5
4504 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4505 if test "${enable_maintainer_mode+set}" = set; then
4506 enableval
="$enable_maintainer_mode"
4507 USE_MAINTAINER_MODE
=$enableval
4509 USE_MAINTAINER_MODE
=no
4512 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
4515 if test $USE_MAINTAINER_MODE = yes; then
4516 MAINTAINER_MODE_TRUE
=
4517 MAINTAINER_MODE_FALSE
='#'
4519 MAINTAINER_MODE_TRUE
='#'
4520 MAINTAINER_MODE_FALSE
=
4522 MAINT
=$MAINTAINER_MODE_TRUE
4525 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
4526 echo "configure:4527: checking for Cygwin environment" >&5
4527 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
4528 echo $ac_n "(cached) $ac_c" 1>&6
4530 cat > conftest.
$ac_ext <<EOF
4531 #line 4532 "configure"
4532 #include "confdefs.h"
4537 #define __CYGWIN__ __CYGWIN32__
4542 if { (eval echo configure
:4543: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4546 echo "configure: failed program was:" >&5
4547 cat conftest.
$ac_ext >&5
4555 echo "$ac_t""$ac_cv_cygwin" 1>&6
4557 test "$ac_cv_cygwin" = yes && CYGWIN
=yes
4558 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
4559 echo "configure:4560: checking for mingw32 environment" >&5
4560 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
4561 echo $ac_n "(cached) $ac_c" 1>&6
4563 cat > conftest.
$ac_ext <<EOF
4564 #line 4565 "configure"
4565 #include "confdefs.h"
4571 if { (eval echo configure
:4572: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4575 echo "configure: failed program was:" >&5
4576 cat conftest.
$ac_ext >&5
4584 echo "$ac_t""$ac_cv_mingw32" 1>&6
4586 test "$ac_cv_mingw32" = yes && MINGW32
=yes
4589 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
4590 echo "configure:4591: checking for executable suffix" >&5
4591 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
4592 echo $ac_n "(cached) $ac_c" 1>&6
4594 if test "$CYGWIN" = yes ||
test "$MINGW32" = yes; then
4598 echo 'int main () { return 0; }' > conftest.
$ac_ext
4600 if { (eval echo configure
:4601: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
4601 for file in conftest.
*; do
4603 *.c |
*.o |
*.obj |
*.ilk |
*.pdb
) ;;
4604 *) ac_cv_exeext
=`echo $file | sed -e s/conftest//` ;;
4608 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
4611 test x
"${ac_cv_exeext}" = x
&& ac_cv_exeext
=no
4616 test x
"${ac_cv_exeext}" != xno
&& EXEEXT
=${ac_cv_exeext}
4617 echo "$ac_t""${ac_cv_exeext}" 1>&6
4621 for ac_hdr
in string.h stdlib.h memory.h
strings.h unistd.h stdarg.h varargs.h errno.h sys
/types.h
4623 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4624 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4625 echo "configure:4626: checking for $ac_hdr" >&5
4626 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4627 echo $ac_n "(cached) $ac_c" 1>&6
4629 cat > conftest.
$ac_ext <<EOF
4630 #line 4631 "configure"
4631 #include "confdefs.h"
4634 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4635 { (eval echo configure
:4636: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4636 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4637 if test -z "$ac_err"; then
4639 eval "ac_cv_header_$ac_safe=yes"
4642 echo "configure: failed program was:" >&5
4643 cat conftest.
$ac_ext >&5
4645 eval "ac_cv_header_$ac_safe=no"
4649 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4650 echo "$ac_t""yes" 1>&6
4651 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4652 cat >> confdefs.h
<<EOF
4653 #define $ac_tr_hdr 1
4657 echo "$ac_t""no" 1>&6
4662 # Put this here so that autoconf's "cross-compiling" message doesn't confuse
4663 # people who are not cross-compiling but are compiling cross-assemblers.
4664 echo $ac_n "checking whether compiling a cross-assembler""... $ac_c" 1>&6
4665 echo "configure:4666: checking whether compiling a cross-assembler" >&5
4666 if test "${host}" = "${target}"; then
4670 cat >> confdefs.h
<<\EOF
4671 #define CROSS_COMPILE 1
4675 echo "$ac_t""$cross_gas" 1>&6
4677 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4678 # for constant arguments. Useless!
4679 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
4680 echo "configure:4681: checking for working alloca.h" >&5
4681 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
4682 echo $ac_n "(cached) $ac_c" 1>&6
4684 cat > conftest.
$ac_ext <<EOF
4685 #line 4686 "configure"
4686 #include "confdefs.h"
4689 char *p = alloca(2 * sizeof(int));
4692 if { (eval echo configure
:4693: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4694 ac_cv_header_alloca_h
=yes
4696 echo "configure: failed program was:" >&5
4697 cat conftest.
$ac_ext >&5
4699 ac_cv_header_alloca_h
=no
4704 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
4705 if test $ac_cv_header_alloca_h = yes; then
4706 cat >> confdefs.h
<<\EOF
4707 #define HAVE_ALLOCA_H 1
4712 echo $ac_n "checking for alloca""... $ac_c" 1>&6
4713 echo "configure:4714: checking for alloca" >&5
4714 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
4715 echo $ac_n "(cached) $ac_c" 1>&6
4717 cat > conftest.
$ac_ext <<EOF
4718 #line 4719 "configure"
4719 #include "confdefs.h"
4722 # define alloca __builtin_alloca
4725 # include <malloc.h>
4726 # define alloca _alloca
4729 # include <alloca.h>
4734 # ifndef alloca /* predefined by HP cc +Olibcalls */
4743 char *p = (char *) alloca(1);
4746 if { (eval echo configure
:4747: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4748 ac_cv_func_alloca_works
=yes
4750 echo "configure: failed program was:" >&5
4751 cat conftest.
$ac_ext >&5
4753 ac_cv_func_alloca_works
=no
4758 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
4759 if test $ac_cv_func_alloca_works = yes; then
4760 cat >> confdefs.h
<<\EOF
4761 #define HAVE_ALLOCA 1
4766 if test $ac_cv_func_alloca_works = no
; then
4767 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
4768 # that cause trouble. Some versions do not even contain alloca or
4769 # contain a buggy version. If you still want to use their alloca,
4770 # use ar to extract alloca.o from them instead of compiling alloca.c.
4771 ALLOCA
=alloca.
${ac_objext}
4772 cat >> confdefs.h
<<\EOF
4777 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
4778 echo "configure:4779: checking whether alloca needs Cray hooks" >&5
4779 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
4780 echo $ac_n "(cached) $ac_c" 1>&6
4782 cat > conftest.
$ac_ext <<EOF
4783 #line 4784 "configure"
4784 #include "confdefs.h"
4785 #if defined(CRAY) && ! defined(CRAY2)
4792 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4793 egrep "webecray" >/dev
/null
2>&1; then
4804 echo "$ac_t""$ac_cv_os_cray" 1>&6
4805 if test $ac_cv_os_cray = yes; then
4806 for ac_func
in _getb67 GETB67 getb67
; do
4807 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4808 echo "configure:4809: checking for $ac_func" >&5
4809 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4810 echo $ac_n "(cached) $ac_c" 1>&6
4812 cat > conftest.
$ac_ext <<EOF
4813 #line 4814 "configure"
4814 #include "confdefs.h"
4815 /* System header to define __stub macros and hopefully few prototypes,
4816 which can conflict with char $ac_func(); below. */
4818 /* Override any gcc2 internal prototype to avoid an error. */
4819 /* We use char because int might match the return type of a gcc2
4820 builtin and then its argument prototype would still apply. */
4825 /* The GNU C library defines this for functions which it implements
4826 to always fail with ENOSYS. Some functions are actually named
4827 something starting with __ and the normal name is an alias. */
4828 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4836 if { (eval echo configure
:4837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4838 eval "ac_cv_func_$ac_func=yes"
4840 echo "configure: failed program was:" >&5
4841 cat conftest.
$ac_ext >&5
4843 eval "ac_cv_func_$ac_func=no"
4848 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4849 echo "$ac_t""yes" 1>&6
4850 cat >> confdefs.h
<<EOF
4851 #define CRAY_STACKSEG_END $ac_func
4856 echo "$ac_t""no" 1>&6
4862 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
4863 echo "configure:4864: checking stack direction for C alloca" >&5
4864 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
4865 echo $ac_n "(cached) $ac_c" 1>&6
4867 if test "$cross_compiling" = yes; then
4868 ac_cv_c_stack_direction
=0
4870 cat > conftest.
$ac_ext <<EOF
4871 #line 4872 "configure"
4872 #include "confdefs.h"
4873 find_stack_direction ()
4875 static char *addr = 0;
4880 return find_stack_direction ();
4883 return (&dummy > addr) ? 1 : -1;
4887 exit (find_stack_direction() < 0);
4890 if { (eval echo configure
:4891: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4892 ac_cv_c_stack_direction
=1
4894 echo "configure: failed program was:" >&5
4895 cat conftest.
$ac_ext >&5
4897 ac_cv_c_stack_direction
=-1
4904 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
4905 cat >> confdefs.h
<<EOF
4906 #define STACK_DIRECTION $ac_cv_c_stack_direction
4911 echo $ac_n "checking for inline""... $ac_c" 1>&6
4912 echo "configure:4913: checking for inline" >&5
4913 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
4914 echo $ac_n "(cached) $ac_c" 1>&6
4917 for ac_kw
in inline __inline__ __inline
; do
4918 cat > conftest.
$ac_ext <<EOF
4919 #line 4920 "configure"
4920 #include "confdefs.h"
4926 if { (eval echo configure
:4927: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4928 ac_cv_c_inline
=$ac_kw; break
4930 echo "configure: failed program was:" >&5
4931 cat conftest.
$ac_ext >&5
4938 echo "$ac_t""$ac_cv_c_inline" 1>&6
4939 case "$ac_cv_c_inline" in
4941 no
) cat >> confdefs.h
<<\EOF
4945 *) cat >> confdefs.h
<<EOF
4946 #define inline $ac_cv_c_inline
4952 # VMS doesn't have unlink.
4953 for ac_func
in unlink remove
4955 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4956 echo "configure:4957: checking for $ac_func" >&5
4957 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4958 echo $ac_n "(cached) $ac_c" 1>&6
4960 cat > conftest.
$ac_ext <<EOF
4961 #line 4962 "configure"
4962 #include "confdefs.h"
4963 /* System header to define __stub macros and hopefully few prototypes,
4964 which can conflict with char $ac_func(); below. */
4966 /* Override any gcc2 internal prototype to avoid an error. */
4967 /* We use char because int might match the return type of a gcc2
4968 builtin and then its argument prototype would still apply. */
4973 /* The GNU C library defines this for functions which it implements
4974 to always fail with ENOSYS. Some functions are actually named
4975 something starting with __ and the normal name is an alias. */
4976 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4984 if { (eval echo configure
:4985: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4986 eval "ac_cv_func_$ac_func=yes"
4988 echo "configure: failed program was:" >&5
4989 cat conftest.
$ac_ext >&5
4991 eval "ac_cv_func_$ac_func=no"
4996 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4997 echo "$ac_t""yes" 1>&6
4998 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4999 cat >> confdefs.h
<<EOF
5000 #define $ac_tr_func 1
5004 echo "$ac_t""no" 1>&6
5009 # Some systems don't have sbrk().
5012 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5013 echo "configure:5014: checking for $ac_func" >&5
5014 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5015 echo $ac_n "(cached) $ac_c" 1>&6
5017 cat > conftest.
$ac_ext <<EOF
5018 #line 5019 "configure"
5019 #include "confdefs.h"
5020 /* System header to define __stub macros and hopefully few prototypes,
5021 which can conflict with char $ac_func(); below. */
5023 /* Override any gcc2 internal prototype to avoid an error. */
5024 /* We use char because int might match the return type of a gcc2
5025 builtin and then its argument prototype would still apply. */
5030 /* The GNU C library defines this for functions which it implements
5031 to always fail with ENOSYS. Some functions are actually named
5032 something starting with __ and the normal name is an alias. */
5033 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5041 if { (eval echo configure
:5042: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5043 eval "ac_cv_func_$ac_func=yes"
5045 echo "configure: failed program was:" >&5
5046 cat conftest.
$ac_ext >&5
5048 eval "ac_cv_func_$ac_func=no"
5053 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5054 echo "$ac_t""yes" 1>&6
5055 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5056 cat >> confdefs.h
<<EOF
5057 #define $ac_tr_func 1
5061 echo "$ac_t""no" 1>&6
5066 # Some non-ANSI preprocessors botch requoting inside strings. That's bad
5067 # enough, but on some of those systems, the assert macro relies on requoting
5069 echo $ac_n "checking for working assert macro""... $ac_c" 1>&6
5070 echo "configure:5071: checking for working assert macro" >&5
5071 if eval "test \"`echo '$''{'gas_cv_assert_ok'+set}'`\" = set"; then
5072 echo $ac_n "(cached) $ac_c" 1>&6
5074 cat > conftest.
$ac_ext <<EOF
5075 #line 5076 "configure"
5076 #include "confdefs.h"
5081 /* check for requoting problems */
5082 static int a, b, c, d;
5084 assert (!strcmp(s, "foo bar baz quux"));
5085 /* check for newline handling */
5091 if { (eval echo configure
:5092: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5093 gas_cv_assert_ok
=yes
5095 echo "configure: failed program was:" >&5
5096 cat conftest.
$ac_ext >&5
5102 echo "$ac_t""$gas_cv_assert_ok" 1>&6
5103 test $gas_cv_assert_ok = yes ||
cat >> confdefs.h
<<\EOF
5104 #define BROKEN_ASSERT 1
5109 # On some systems, the system header files may not declare malloc, realloc,
5110 # and free. There are places where gas needs these functions to have been
5111 # declared -- such as when taking their addresses.
5113 #ifdef HAVE_MEMORY_H
5116 #ifdef HAVE_STRING_H
5119 #ifdef HAVE_STRINGS_H
5120 #include <strings.h>
5123 #ifdef HAVE_STDLIB_H
5126 #ifdef HAVE_UNISTD_H
5131 echo $ac_n "checking whether declaration is required for strstr""... $ac_c" 1>&6
5132 echo "configure:5133: checking whether declaration is required for strstr" >&5
5133 if eval "test \"`echo '$''{'gas_cv_decl_needed_strstr'+set}'`\" = set"; then
5134 echo $ac_n "(cached) $ac_c" 1>&6
5136 cat > conftest.
$ac_ext <<EOF
5137 #line 5138 "configure"
5138 #include "confdefs.h"
5142 typedef char *(*f)();
5148 if { (eval echo configure
:5149: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5150 gas_cv_decl_needed_strstr
=no
5152 echo "configure: failed program was:" >&5
5153 cat conftest.
$ac_ext >&5
5155 gas_cv_decl_needed_strstr
=yes
5159 echo "$ac_t""$gas_cv_decl_needed_strstr" 1>&6
5160 if test $gas_cv_decl_needed_strstr = yes; then
5161 cat >> confdefs.h
<<\EOF
5162 #define NEED_DECLARATION_STRSTR 1
5168 echo $ac_n "checking whether declaration is required for malloc""... $ac_c" 1>&6
5169 echo "configure:5170: checking whether declaration is required for malloc" >&5
5170 if eval "test \"`echo '$''{'gas_cv_decl_needed_malloc'+set}'`\" = set"; then
5171 echo $ac_n "(cached) $ac_c" 1>&6
5173 cat > conftest.
$ac_ext <<EOF
5174 #line 5175 "configure"
5175 #include "confdefs.h"
5179 typedef char *(*f)();
5185 if { (eval echo configure
:5186: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5187 gas_cv_decl_needed_malloc
=no
5189 echo "configure: failed program was:" >&5
5190 cat conftest.
$ac_ext >&5
5192 gas_cv_decl_needed_malloc
=yes
5196 echo "$ac_t""$gas_cv_decl_needed_malloc" 1>&6
5197 if test $gas_cv_decl_needed_malloc = yes; then
5198 cat >> confdefs.h
<<\EOF
5199 #define NEED_DECLARATION_MALLOC 1
5205 echo $ac_n "checking whether declaration is required for free""... $ac_c" 1>&6
5206 echo "configure:5207: checking whether declaration is required for free" >&5
5207 if eval "test \"`echo '$''{'gas_cv_decl_needed_free'+set}'`\" = set"; then
5208 echo $ac_n "(cached) $ac_c" 1>&6
5210 cat > conftest.
$ac_ext <<EOF
5211 #line 5212 "configure"
5212 #include "confdefs.h"
5216 typedef void (*f)();
5222 if { (eval echo configure
:5223: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5224 gas_cv_decl_needed_free
=no
5226 echo "configure: failed program was:" >&5
5227 cat conftest.
$ac_ext >&5
5229 gas_cv_decl_needed_free
=yes
5233 echo "$ac_t""$gas_cv_decl_needed_free" 1>&6
5234 if test $gas_cv_decl_needed_free = yes; then
5235 cat >> confdefs.h
<<\EOF
5236 #define NEED_DECLARATION_FREE 1
5242 echo $ac_n "checking whether declaration is required for sbrk""... $ac_c" 1>&6
5243 echo "configure:5244: checking whether declaration is required for sbrk" >&5
5244 if eval "test \"`echo '$''{'gas_cv_decl_needed_sbrk'+set}'`\" = set"; then
5245 echo $ac_n "(cached) $ac_c" 1>&6
5247 cat > conftest.
$ac_ext <<EOF
5248 #line 5249 "configure"
5249 #include "confdefs.h"
5253 typedef char *(*f)();
5259 if { (eval echo configure
:5260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5261 gas_cv_decl_needed_sbrk
=no
5263 echo "configure: failed program was:" >&5
5264 cat conftest.
$ac_ext >&5
5266 gas_cv_decl_needed_sbrk
=yes
5270 echo "$ac_t""$gas_cv_decl_needed_sbrk" 1>&6
5271 if test $gas_cv_decl_needed_sbrk = yes; then
5272 cat >> confdefs.h
<<\EOF
5273 #define NEED_DECLARATION_SBRK 1
5279 echo $ac_n "checking whether declaration is required for environ""... $ac_c" 1>&6
5280 echo "configure:5281: checking whether declaration is required for environ" >&5
5281 if eval "test \"`echo '$''{'gas_cv_decl_needed_environ'+set}'`\" = set"; then
5282 echo $ac_n "(cached) $ac_c" 1>&6
5284 cat > conftest.
$ac_ext <<EOF
5285 #line 5286 "configure"
5286 #include "confdefs.h"
5296 if { (eval echo configure
:5297: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5298 gas_cv_decl_needed_environ
=no
5300 echo "configure: failed program was:" >&5
5301 cat conftest.
$ac_ext >&5
5303 gas_cv_decl_needed_environ
=yes
5307 echo "$ac_t""$gas_cv_decl_needed_environ" 1>&6
5308 if test $gas_cv_decl_needed_environ = yes; then
5309 cat >> confdefs.h
<<\EOF
5310 #define NEED_DECLARATION_ENVIRON 1
5316 # Does errno.h declare errno, or do we have to add a separate declaration
5319 echo $ac_n "checking whether declaration is required for errno""... $ac_c" 1>&6
5320 echo "configure:5321: checking whether declaration is required for errno" >&5
5321 if eval "test \"`echo '$''{'gas_cv_decl_needed_errno'+set}'`\" = set"; then
5322 echo $ac_n "(cached) $ac_c" 1>&6
5324 cat > conftest.
$ac_ext <<EOF
5325 #line 5326 "configure"
5326 #include "confdefs.h"
5340 if { (eval echo configure
:5341: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5342 gas_cv_decl_needed_errno
=no
5344 echo "configure: failed program was:" >&5
5345 cat conftest.
$ac_ext >&5
5347 gas_cv_decl_needed_errno
=yes
5351 echo "$ac_t""$gas_cv_decl_needed_errno" 1>&6
5352 if test $gas_cv_decl_needed_errno = yes; then
5353 cat >> confdefs.h
<<\EOF
5354 #define NEED_DECLARATION_ERRNO 1
5363 cat > confcache
<<\EOF
5364 # This file is a shell script that caches the results of configure
5365 # tests run on this system so they can be shared between configure
5366 # scripts and configure runs. It is not useful on other systems.
5367 # If it contains results you don't want to keep, you may remove or edit it.
5369 # By default, configure uses ./config.cache as the cache file,
5370 # creating it if it does not exist already. You can give configure
5371 # the --cache-file=FILE option to use a different cache file; that is
5372 # what configure does when it calls configure scripts in
5373 # subdirectories, so they share the cache.
5374 # Giving --cache-file=/dev/null disables caching, for debugging configure.
5375 # config.status only pays attention to the cache file if you give it the
5376 # --recheck option to rerun configure.
5379 # The following way of writing the cache mishandles newlines in values,
5380 # but we know of no workaround that is simple, portable, and efficient.
5381 # So, don't put newlines in cache variables' values.
5382 # Ultrix sh set writes to stderr and can't be redirected directly,
5383 # and sets the high bit in the cache file unless we assign to the vars.
5385 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5387 # `set' does not quote correctly, so add quotes (double-quote substitution
5388 # turns \\\\ into \\, and sed turns \\ into \).
5390 -e "s/'/'\\\\''/g" \
5391 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
5394 # `set' quotes correctly as required by POSIX, so do not add quotes.
5395 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
5398 if cmp -s $cache_file confcache
; then
5401 if test -w $cache_file; then
5402 echo "updating cache $cache_file"
5403 cat confcache
> $cache_file
5405 echo "not updating unwritable cache $cache_file"
5410 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
5412 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
5413 # Let make expand exec_prefix.
5414 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
5416 # Any assignment to VPATH causes Sun make to only execute
5417 # the first set of double-colon rules, so remove it if not needed.
5418 # If there is a colon in the path, we need to keep it.
5419 if test "x$srcdir" = x.
; then
5420 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
5423 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
5425 DEFS
=-DHAVE_CONFIG_H
5427 # Without the "./", some shells look in PATH for config.status.
5428 : ${CONFIG_STATUS=./config.status}
5430 echo creating
$CONFIG_STATUS
5431 rm -f $CONFIG_STATUS
5432 cat > $CONFIG_STATUS <<EOF
5434 # Generated automatically by configure.
5435 # Run this file to recreate the current configuration.
5436 # This directory was configured as follows,
5437 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5439 # $0 $ac_configure_args
5441 # Compiler output produced by configure, useful for debugging
5442 # configure, is in ./config.log if it exists.
5444 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
5447 case "\$ac_option" in
5448 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5449 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
5450 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
5451 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
5452 echo "$CONFIG_STATUS generated by autoconf version 2.13"
5454 -help | --help | --hel | --he | --h)
5455 echo "\$ac_cs_usage"; exit 0 ;;
5456 *) echo "\$ac_cs_usage"; exit 1 ;;
5460 ac_given_srcdir=$srcdir
5461 ac_given_INSTALL="$INSTALL"
5463 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
5465 cat >> $CONFIG_STATUS <<EOF
5467 # Protect against being on the right side of a sed subst in config.status.
5468 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
5469 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
5473 s%@CFLAGS@%$CFLAGS%g
5474 s%@CPPFLAGS@%$CPPFLAGS%g
5475 s%@CXXFLAGS@%$CXXFLAGS%g
5476 s%@FFLAGS@%$FFLAGS%g
5478 s%@LDFLAGS@%$LDFLAGS%g
5480 s%@exec_prefix@%$exec_prefix%g
5481 s%@prefix@%$prefix%g
5482 s%@program_transform_name@%$program_transform_name%g
5483 s%@bindir@%$bindir%g
5484 s%@sbindir@%$sbindir%g
5485 s%@libexecdir@%$libexecdir%g
5486 s%@datadir@%$datadir%g
5487 s%@sysconfdir@%$sysconfdir%g
5488 s%@sharedstatedir@%$sharedstatedir%g
5489 s%@localstatedir@%$localstatedir%g
5490 s%@libdir@%$libdir%g
5491 s%@includedir@%$includedir%g
5492 s%@oldincludedir@%$oldincludedir%g
5493 s%@infodir@%$infodir%g
5494 s%@mandir@%$mandir%g
5496 s%@host_alias@%$host_alias%g
5497 s%@host_cpu@%$host_cpu%g
5498 s%@host_vendor@%$host_vendor%g
5499 s%@host_os@%$host_os%g
5500 s%@target@%$target%g
5501 s%@target_alias@%$target_alias%g
5502 s%@target_cpu@%$target_cpu%g
5503 s%@target_vendor@%$target_vendor%g
5504 s%@target_os@%$target_os%g
5506 s%@build_alias@%$build_alias%g
5507 s%@build_cpu@%$build_cpu%g
5508 s%@build_vendor@%$build_vendor%g
5509 s%@build_os@%$build_os%g
5510 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
5511 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
5512 s%@INSTALL_DATA@%$INSTALL_DATA%g
5513 s%@PACKAGE@%$PACKAGE%g
5514 s%@VERSION@%$VERSION%g
5515 s%@ACLOCAL@%$ACLOCAL%g
5516 s%@AUTOCONF@%$AUTOCONF%g
5517 s%@AUTOMAKE@%$AUTOMAKE%g
5518 s%@AUTOHEADER@%$AUTOHEADER%g
5519 s%@MAKEINFO@%$MAKEINFO%g
5520 s%@SET_MAKE@%$SET_MAKE%g
5521 s%@RANLIB@%$RANLIB%g
5524 s%@LIBTOOL@%$LIBTOOL%g
5525 s%@GDBINIT@%$GDBINIT%g
5526 s%@cgen_cpu_prefix@%$cgen_cpu_prefix%g
5527 s%@extra_objects@%$extra_objects%g
5528 s%@target_cpu_type@%$target_cpu_type%g
5529 s%@obj_format@%$obj_format%g
5530 s%@te_file@%$te_file%g
5531 s%@install_tooldir@%$install_tooldir%g
5533 s%@BFDLIB@%$BFDLIB%g
5534 s%@OPCODES_LIB@%$OPCODES_LIB%g
5535 s%@ALL_OBJ_DEPS@%$ALL_OBJ_DEPS%g
5538 s%@LEXLIB@%$LEXLIB%g
5540 s%@LEX_OUTPUT_ROOT@%$LEX_OUTPUT_ROOT%g
5541 s%@ALLOCA@%$ALLOCA%g
5542 s%@USE_NLS@%$USE_NLS%g
5543 s%@MSGFMT@%$MSGFMT%g
5544 s%@GMSGFMT@%$GMSGFMT%g
5545 s%@XGETTEXT@%$XGETTEXT%g
5546 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
5547 s%@CATALOGS@%$CATALOGS%g
5548 s%@CATOBJEXT@%$CATOBJEXT%g
5549 s%@DATADIRNAME@%$DATADIRNAME%g
5550 s%@GMOFILES@%$GMOFILES%g
5551 s%@INSTOBJEXT@%$INSTOBJEXT%g
5552 s%@INTLDEPS@%$INTLDEPS%g
5553 s%@INTLLIBS@%$INTLLIBS%g
5554 s%@INTLOBJS@%$INTLOBJS%g
5555 s%@POFILES@%$POFILES%g
5557 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
5559 s%@GT_YES@%$GT_YES%g
5560 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
5562 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
5563 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
5565 s%@EXEEXT@%$EXEEXT%g
5570 cat >> $CONFIG_STATUS <<\EOF
5572 # Split the substitutions into bite-sized pieces for seds with
5573 # small command number limits, like on Digital OSF/1 and HP-UX.
5574 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
5575 ac_file
=1 # Number of current file.
5576 ac_beg
=1 # First line for current file.
5577 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
5580 while $ac_more_lines; do
5581 if test $ac_beg -gt 1; then
5582 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
5584 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
5586 if test ! -s conftest.s
$ac_file; then
5588 rm -f conftest.s
$ac_file
5590 if test -z "$ac_sed_cmds"; then
5591 ac_sed_cmds
="sed -f conftest.s$ac_file"
5593 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
5595 ac_file
=`expr $ac_file + 1`
5597 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
5600 if test -z "$ac_sed_cmds"; then
5605 cat >> $CONFIG_STATUS <<EOF
5607 CONFIG_FILES=\${CONFIG_FILES-"Makefile doc/Makefile ${GDBINIT}:gdbinit.in po/Makefile.in:po/Make-in"}
5609 cat >> $CONFIG_STATUS <<\EOF
5610 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
5611 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5613 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
5614 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
5615 *) ac_file_in
="${ac_file}.in" ;;
5618 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
5620 # Remove last slash and all that follows it. Not all systems have dirname.
5621 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5622 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
5623 # The file is in a subdirectory.
5624 test ! -d "$ac_dir" && mkdir
"$ac_dir"
5625 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
5626 # A "../" for each directory in $ac_dir_suffix.
5627 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
5629 ac_dir_suffix
= ac_dots
=
5632 case "$ac_given_srcdir" in
5634 if test -z "$ac_dots"; then top_srcdir
=.
5635 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
5636 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
5638 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
5639 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
5642 case "$ac_given_INSTALL" in
5643 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
5644 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
5647 echo creating
"$ac_file"
5649 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
5651 *Makefile
*) ac_comsub
="1i\\
5652 # $configure_input" ;;
5656 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5658 s%@configure_input@%$configure_input%g
5659 s%@srcdir@%$srcdir%g
5660 s%@top_srcdir@%$top_srcdir%g
5661 s%@INSTALL@%$INSTALL%g
5662 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
5666 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5667 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5669 # ac_d sets the value in "#define NAME VALUE" lines.
5670 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5671 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
5674 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
5675 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5676 ac_uB
='\([ ]\)%\1#\2define\3'
5679 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5680 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5681 ac_eB
='$%\1#\2define\3'
5685 if test "${CONFIG_HEADERS+set}" != set; then
5687 cat >> $CONFIG_STATUS <<EOF
5688 CONFIG_HEADERS="config.h:config.in"
5690 cat >> $CONFIG_STATUS <<\EOF
5692 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
5693 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5695 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
5696 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
5697 *) ac_file_in
="${ac_file}.in" ;;
5700 echo creating
$ac_file
5702 rm -f conftest.frag conftest.
in conftest.out
5703 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5704 cat $ac_file_inputs > conftest.
in
5708 # Transform confdefs.h into a sed script conftest.vals that substitutes
5709 # the proper values into config.h.in to produce config.h. And first:
5710 # Protect against being on the right side of a sed subst in config.status.
5711 # Protect against being in an unquoted here document in config.status.
5713 cat > conftest.hdr
<<\EOF
5716 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
5720 sed -n -f conftest.hdr confdefs.h > conftest.vals
5723 # This sed command replaces #undef with comments. This is necessary, for
5724 # example, in the case of _POSIX_SOURCE, which is predefined and required
5725 # on some systems where configure will not decide to define it.
5726 cat >> conftest.vals <<\EOF
5727 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
5730 # Break up conftest.vals because some shells have a limit on
5731 # the size of here documents, and old seds have small limits too.
5736 ac_lines=`grep -c . conftest.vals
`
5737 # grep -c gives empty output for an empty file on some AIX systems.
5738 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
5739 # Write a limited-size here document to conftest.frag.
5740 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
5741 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
5743 sed -f conftest.frag conftest.in > conftest.out
5745 mv conftest.out conftest.in
5747 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
5749 mv conftest.tail conftest.vals
5753 cat >> $CONFIG_STATUS <<\EOF
5754 rm -f conftest.frag conftest.h
5755 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
5756 cat conftest.in >> conftest.h
5758 if cmp -s $ac_file conftest.h 2>/dev/null; then
5759 echo "$ac_file is unchanged"
5762 # Remove last slash and all that follows it. Not all systems have dirname.
5763 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
5764 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5765 # The file is in a subdirectory.
5766 test ! -d "$ac_dir" && mkdir "$ac_dir"
5769 mv conftest.h $ac_file
5774 cat >> $CONFIG_STATUS <<EOF
5776 target_cpu_type=${target_cpu_type}
5777 cgen_cpu_prefix=${cgen_cpu_prefix}
5778 obj_format=${obj_format}
5781 cat >> $CONFIG_STATUS <<\EOF
5782 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
5783 rm -f targ-cpu.c targ-cpu.h obj-format.h obj-format.c targ-env.h atof-targ.c itbl-cpu.h
5784 echo '#include "tc-'"${target_cpu_type}"'.h"' > targ-cpu.h
5785 echo '#include "obj-'"${obj_format}"'.h"' > obj-format.h
5786 echo '#include "te-'"${te_file}"'.h"' > targ-env.h
5787 echo '#include "itbl-'"${target_cpu_type}"'.h"' > itbl-cpu.h
5788 if test "x$cgen_cpu_prefix" != x ; then
5789 echo '#include "opcodes/'"${cgen_cpu_prefix}"'-desc.h"' > cgen-desc.h
5792 sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile
5795 chmod +x $CONFIG_STATUS
5796 rm -fr confdefs* $ac_clean_files
5797 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1