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
1588 if test -n "$enable_targets" ; then
1589 for t
in `echo $enable_targets | sed 's/,/ /g'`; do
1590 if test $t = "all"; then
1594 result
=`$ac_config_sub $t 2>/dev/null`
1595 if test -n "$result" ; then
1596 canon_targets
="$canon_targets $result"
1598 # # Permit "all", etc. We don't support it yet though.
1599 # canon_targets="$canon_targets $t"
1602 _gas_uniq_list
="$canon_targets"
1603 _gas_uniq_newlist
=""
1604 for _gas_uniq_i
in _gas_uniq_dummy
$_gas_uniq_list ; do
1605 case $_gas_uniq_i in
1607 *) case " $_gas_uniq_newlist " in
1608 *" $_gas_uniq_i "*) ;;
1609 *) _gas_uniq_newlist
="$_gas_uniq_newlist $_gas_uniq_i" ;;
1613 canon_targets
=$_gas_uniq_newlist
1619 for this_target
in $target $canon_targets ; do
1621 eval `echo $this_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/cpu=\1 vendor=\2 os=\3/'`
1623 # check for architecture variants
1627 alpha
*) cpu_type
=alpha
;;
1628 armeb
) cpu_type
=arm endian
=big
;;
1629 arm
*) cpu_type
=arm endian
=little
;;
1630 armb
*) cpu_type
=arm endian
=little
;;
1631 armv
*l
) cpu_type
=arm endian
=little
;;
1632 armv
*b
) cpu_type
=arm endian
=big
;;
1633 strongarm
*) cpu_type
=arm endian
=little
;;
1634 thumb
*) cpu_type
=arm endian
=little
;;
1635 hppa
*) cpu_type
=hppa
;;
1636 i
[456]86) cpu_type
=i386
;;
1637 m680
[012346]0) cpu_type
=m68k
;;
1638 m68008
) cpu_type
=m68k
;;
1639 m683??
) cpu_type
=m68k
;;
1640 m5200
) cpu_type
=m68k
;;
1641 m8
*) cpu_type
=m88k
;;
1642 mips
*el
) cpu_type
=mips endian
=little
;;
1643 mips
*) cpu_type
=mips endian
=big
;;
1644 pjl
*) cpu_type
=pj endian
=little
;;
1645 pj
*) cpu_type
=pj endian
=big
;;
1646 powerpcle
*) cpu_type
=ppc endian
=little
;;
1647 powerpc
*) cpu_type
=ppc endian
=big
;;
1648 rs6000
*) cpu_type
=ppc
;;
1649 sparclite
*) cpu_type
=sparc arch
=sparclite
;;
1650 sparclet
*) cpu_type
=sparc arch
=sparclet
;;
1651 sparc64
*) cpu_type
=sparc arch
=v9-64
;;
1652 sparc86x
*) cpu_type
=sparc arch
=sparc86x
;;
1653 sparc
*) cpu_type
=sparc arch
=sparclite
;; # ??? See tc-sparc.c.
1654 v850
*) cpu_type
=v850
;;
1655 *) cpu_type
=${cpu} ;;
1658 if test ${this_target} = $target ; then
1659 target_cpu_type
=${cpu_type}
1660 elif test ${target_cpu_type} != ${cpu_type} ; then
1664 generic_target
=${cpu_type}-$vendor-$os
1669 # assign object format
1670 case ${generic_target} in
1671 a29k-
*-coff) fmt=coff
;;
1672 a29k-amd-udi
) fmt=coff
;;
1673 a29k-amd-ebmon
) fmt=coff
;;
1674 a29k-nyu-sym1
) fmt=coff
;;
1675 a29k-
*-vxworks*) fmt=coff
;;
1677 alpha
*-*-*vms
*) fmt=evax
;;
1678 alpha
*-*-netware*) fmt=ecoff
;;
1679 alpha
*-*-openbsd*) fmt=ecoff
;;
1680 alpha
*-*-osf*) fmt=ecoff
;;
1681 alpha
*-*-linuxecoff*) fmt=ecoff
;;
1682 alpha
*-*-linux-gnu*) fmt=elf em
=linux
;;
1683 alpha
*-*-netbsd*) fmt=elf em
=nbsd
;;
1685 arc-
*-elf*) fmt=elf bfd_gas
=yes ;;
1687 arm-
*-aout) fmt=aout
;;
1688 arm-
*-coff | thumb-
*-coff) fmt=coff
;;
1689 arm-
*-elf | thumb-
*-elf) fmt=elf
;;
1690 arm
*-*-conix*) fmt=elf
;;
1691 arm-
*-linux*aout
*) fmt=aout em
=linux
;;
1692 arm
*-*-linux-gnu*) fmt=elf em
=linux
;;
1693 arm-
*-netbsd*) fmt=aout em
=nbsd bfd_gas
=yes ;;
1694 arm-
*-oabi | thumb-
*-oabi) fmt=elf
;;
1695 arm-epoc-pe | thumb-epoc-pe
) fmt=coff em
=epoc-pe
;;
1696 arm-
*-wince) fmt=coff em
=wince-pe bfd_gas
=yes;;
1697 arm-
*-pe | thumb-
*-pe) fmt=coff em
=pe
;;
1698 arm-
*-riscix*) fmt=aout em
=riscix
;;
1700 d10v-
*-*) fmt=elf bfd_gas
=yes ;;
1701 d30v-
*-*) fmt=elf bfd_gas
=yes ;;
1704 fr30-
*-*) fmt=elf bfd_gas
=yes ;;
1706 hppa-
*-*elf
*) fmt=elf em
=hppa
;;
1707 hppa-
*-linux-gnu*) fmt=elf em
=hppa
;;
1708 hppa-
*-lites*) fmt=elf em
=hppa
;;
1709 hppa-
*-osf*) fmt=som em
=hppa
;;
1710 hppa-
*-rtems*) fmt=elf em
=hppa
;;
1711 hppa-
*-hpux*) fmt=som em
=hppa
;;
1712 hppa-
*-mpeix*) fmt=som em
=hppa
;;
1713 hppa-
*-bsd*) fmt=som em
=hppa
;;
1714 hppa-
*-hiux*) fmt=som em
=hppa
;;
1716 h8300-
*-coff) fmt=coff
;;
1718 i370-
*-elf* | i370-
*-linux*) fmt=elf
;;
1719 i386-ibm-aix
*) fmt=coff em
=i386aix
;;
1720 i386-sequent-bsd
*) fmt=aout em
=dynix bfd_gas
=yes ;;
1721 i386-
*-beospe*) fmt=coff em
=pe bfd_gas
=yes ;;
1722 i386-
*-beoself* | i386-
*-beos*) fmt=elf bfd_gas
=yes ;;
1723 i386-
*-bsd*) fmt=aout em
=386bsd
;;
1724 i386-
*-netbsd0.8
) fmt=aout em
=386bsd
;;
1725 i386-
*-netbsd*) fmt=aout em
=nbsd bfd_gas
=yes;;
1726 i386-
*-openbsd*) fmt=aout em
=nbsd bfd_gas
=yes;;
1727 i386-
*-linux*aout
* | i386-
*-linuxoldld) fmt=aout em
=linux
;;
1728 i386-
*-linux*coff
*) fmt=coff em
=linux
;;
1729 i386-
*-linux-gnu*) fmt=elf em
=linux bfd_gas
=yes ;;
1730 i386-
*-lynxos*) fmt=coff em
=lynx
;;
1731 i386-
*-sysv4* | i386-
*-solaris* | i386-
*-elf)
1732 fmt=elf bfd_gas
=yes ;;
1733 i386-
*-freebsdaout* | i386-
*-freebsd12.
* | i386-
*-freebsd12)
1734 fmt=aout em
=386bsd
;;
1735 i386-
*-freebsd*) fmt=elf bfd_gas
=yes ;;
1736 i386-
*-coff | i386-
*-sysv* | i386-
*-sco3.2v5
*coff | i386-
*-isc*)
1738 i386-
*-sco3.2v5
*) fmt=elf
1739 if test ${this_target} = $target; then
1740 cat >> confdefs.h
<<\EOF
1746 i386-
*-sco3.2
*) fmt=coff
;;
1747 i386-
*-vsta) fmt=aout
;;
1748 i386-
*-msdosdjgpp* | i386-
*-go32* | i386-go32-rtems
*)
1750 i386-
*-rtemself*) fmt=elf
;;
1751 i386-
*-rtems*) fmt=coff
;;
1752 i386-
*-gnu*) fmt=elf
;;
1754 fmt=aout em
=mach bfd_gas
=yes ;;
1755 i386-
*-msdos*) fmt=aout
;;
1756 i386-
*-moss*) fmt=elf
;;
1757 i386-
*-pe) fmt=coff em
=pe
;;
1758 i386-
*-cygwin*) fmt=coff em
=pe bfd_gas
=yes ;;
1759 i386-
*-interix*) fmt=coff em
=interix bfd_gas
=yes ;;
1760 i386-
*-mingw32*) fmt=coff em
=pe bfd_gas
=yes ;;
1761 i386-
*-*nt
*) fmt=coff em
=pe
;;
1762 i386-
*-vxworks*) fmt=aout
;;
1763 i960-
*-bout) fmt=bout
;;
1764 i960-
*-coff) fmt=coff em
=ic960
;;
1765 i960-
*-rtems*) fmt=coff em
=ic960
;;
1766 i960-
*-nindy*) fmt=bout
;;
1767 i960-
*-vxworks4*) fmt=bout
;;
1768 i960-
*-vxworks5.0
) fmt=bout
;;
1769 i960-
*-vxworks5.
*) fmt=coff em
=ic960
;;
1770 i960-
*-vxworks*) fmt=bout
;;
1771 i960-
*-elf*) fmt=elf
;;
1773 m32r-
*-*) fmt=elf bfd_gas
=yes ;;
1775 m68k-
*-vxworks* | m68k-ericsson-ose | m68k-
*-sunos*)
1777 m68k-motorola-sysv
*) fmt=coff em
=delta
;;
1778 m68k-bull-sysv3
*) fmt=coff em
=dpx2
;;
1779 m68k-apollo-
*) fmt=coff em
=apollo
;;
1780 m68k-
*-sysv4*) # must be before -sysv*
1782 m68k-
*-elf*) fmt=elf
;;
1783 m68k-
*-coff | m68k-
*-sysv* | m68k-
*-rtems*)
1785 m68k-
*-hpux*) fmt=hp300 em
=hp300
;;
1786 m68k-
*-linux*aout
*) fmt=aout em
=linux
;;
1787 m68k-
*-linux-gnu*) fmt=elf em
=linux
;;
1788 m68k-
*-gnu*) fmt=elf
;;
1789 m68k-
*-lynxos*) fmt=coff em
=lynx
;;
1790 m68k-
*-netbsd*) fmt=aout em
=nbsd bfd_gas
=yes ;;
1791 m68k-
*-openbsd*) fmt=aout em
=nbsd bfd_gas
=yes ;;
1792 m68k-apple-aux
*) fmt=coff em
=aux
;;
1793 m68k-
*-psos*) fmt=elf em
=psos
;;
1795 m88k-motorola-sysv3
*) fmt=coff em
=delt88
;;
1796 m88k-
*-coff*) fmt=coff
;;
1798 mcore-
*-elf) fmt=elf bfd_gas
=yes ;;
1799 mcore-
*-pe) fmt=coff em
=pe bfd_gas
=yes ;;
1801 # don't change em like *-*-bsd does
1802 mips-dec-netbsd
*) fmt=elf endian
=little
;;
1803 mips-dec-openbsd
*) fmt=elf endian
=little
;;
1804 mips-dec-bsd
*) fmt=aout endian
=little
;;
1805 mips-sony-bsd
*) fmt=ecoff
;;
1806 mips-
*-bsd*) { echo "configure: error: Unknown vendor for mips-bsd configuration." 1>&2; exit 1; } ;;
1807 mips-
*-ultrix*) fmt=ecoff endian
=little
;;
1808 mips-
*-osf*) fmt=ecoff endian
=little
;;
1809 mips-
*-ecoff*) fmt=ecoff
;;
1810 mips-
*-ecoff*) fmt=ecoff
;;
1811 mips-
*-pe*) fmt=coff endian
=little em
=pe
;;
1812 mips-
*-irix6*) fmt=elf
;;
1813 mips-
*-irix5*) fmt=elf
;;
1814 mips-
*-irix*) fmt=ecoff
;;
1815 mips-
*-lnews*) fmt=ecoff em
=lnews
;;
1816 mips-
*-riscos*) fmt=ecoff
;;
1817 mips-
*-sysv*) fmt=ecoff
;;
1818 mips-
*-elf* | mips-
*-rtems* | mips-
*-linux-gnu* | mips-
*-gnu* | mips-
*-openbsd*)
1820 mips-
*-vxworks*) fmt=elf
1821 cat >> confdefs.h
<<\EOF
1822 #define MIPS_STABS_ELF 1
1826 mn10200-
*-*) fmt=elf bfd_gas
=yes ;;
1827 mn10300-
*-*) fmt=elf bfd_gas
=yes ;;
1829 ppc-
*-pe | ppc-
*-cygwin* | ppc-
*-winnt*)
1831 ppc-
*-aix*) fmt=coff
;;
1832 ppc-
*-beos*) fmt=coff
;;
1833 ppc-
*-*bsd
* | ppc-
*-elf* | ppc-
*-eabi* | ppc-
*-sysv4*)
1835 ppc-
*-linux-gnu*) fmt=elf
1838 *) { echo "configure: error: GNU/Linux must be configured big endian" 1>&2; exit 1; } ;;
1841 ppc-
*-solaris*) fmt=elf
1842 if test ${this_target} = $target; then
1843 cat >> confdefs.h
<<\EOF
1844 #define TARGET_SOLARIS_COMMENT 1
1848 if test x
${endian} = xbig
; then
1849 { echo "configure: error: Solaris must be configured little endian" 1>&2; exit 1; }
1852 ppc-
*-rtems*) fmt=elf
;;
1853 ppc-
*-macos* | ppc-
*-mpw*)
1854 fmt=coff em
=macos
;;
1855 ppc-
*-netware*) fmt=elf em
=ppcnw
;;
1856 ppc-
*-vxworks*) fmt=elf
;;
1858 sh-
*-elf*) fmt=elf
;;
1859 sh-
*-coff*) fmt=coff
;;
1860 sh-
*-pe*) fmt=coff em
=pe bfd_gas
=yes;;
1861 sh-
*-rtemself*) fmt=elf
;;
1862 sh-
*-rtems*) fmt=coff
;;
1864 ns32k-pc532-mach
* | ns32k-pc532-ux
*) fmt=aout em
=pc532mach
;;
1865 ns32k-pc532-netbsd
* | ns32k-pc532-lites
*) fmt=aout em
=nbsd532
;;
1866 ns32k-pc532-openbsd
*) fmt=aout em
=nbsd532
;;
1868 sparc-
*-rtems*) fmt=aout
;;
1869 sparc-
*-sunos4*) fmt=aout em
=sun3
;;
1870 sparc-
*-aout | sparc
*-*-vxworks*)
1871 fmt=aout em
=sparcaout
;;
1872 sparc-
*-coff) fmt=coff
;;
1873 sparc-
*-linux*aout
*) fmt=aout em
=linux
;;
1874 sparc-
*-linux-gnu*) fmt=elf em
=linux
;;
1875 sparc-
*-lynxos*) fmt=coff em
=lynx
;;
1876 sparc-fujitsu-none
) fmt=aout
;;
1877 sparc-
*-elf | sparc-
*-sysv4* | sparc-
*-solaris*)
1879 sparc-
*-netbsd*) fmt=aout em
=nbsd
;;
1880 sparc-
*-openbsd*) fmt=aout em
=nbsd
;;
1882 strongarm-
*-coff) fmt=coff
;;
1883 strongarm-
*-elf) fmt=elf
;;
1885 tic30-
*-*aout
*) fmt=aout bfd_gas
=yes ;;
1886 tic30-
*-*coff
*) fmt=coff bfd_gas
=yes ;;
1887 tic80-
*-*) fmt=coff
;;
1889 v850-
*-*) fmt=elf bfd_gas
=yes ;;
1890 v850e-
*-*) fmt=elf bfd_gas
=yes ;;
1891 v850ea-
*-*) fmt=elf bfd_gas
=yes ;;
1893 vax-
*-bsd* | vax-
*-ultrix*)
1895 vax-
*-vms) fmt=vms
;;
1898 z8k-
*-coff | z8k-
*-sim)
1901 w65-
*-*) fmt=coff
;;
1903 *-*-aout |
*-*-scout)
1909 *-*-generic) fmt=generic
;;
1910 *-*-xray |
*-*-hms) fmt=coff
;;
1911 *-*-sim) fmt=coff
;;
1912 *-*-elf |
*-*-sysv4* |
*-*-solaris*)
1913 echo "configure: warning: GAS support for ${generic_target} is incomplete." 1>&2
1915 *-*-vxworks) fmt=aout
;;
1916 *-*-netware) fmt=elf
;;
1919 if test ${this_target} = $target ; then
1921 if test x
${endian} = xbig
; then
1923 elif test x
${endian} = xlittle
; then
1926 if test x
${endian_def} != x
; then
1927 cat >> confdefs.h
<<EOF
1928 #define TARGET_BYTES_BIG_ENDIAN $endian_def
1934 case ${cpu_type}-${fmt} in
1935 alpha
*-*) bfd_gas
=yes ;;
1936 arm-
*) bfd_gas
=yes ;;
1938 # i386-aout) bfd_gas=preferred ;;
1939 mips-
*) bfd_gas
=yes ;;
1940 ns32k-
*) bfd_gas
=yes ;;
1941 ppc-
*) bfd_gas
=yes ;;
1942 sparc-
*) bfd_gas
=yes ;;
1943 strongarm-
*) bfd_gas
=yes ;;
1944 *-elf) bfd_gas
=yes ;;
1945 *-ecoff) bfd_gas
=yes ;;
1946 *-som) bfd_gas
=yes ;;
1947 #enable bfd for coff and aout to allow testing if a bfd target is
1948 #the primary target, but not for coff or aout as the primary target
1949 i386-coff
) if test x
${primary_bfd_gas} = xyes
; then bfd_gas
=yes; fi ;;
1950 i386-aout
) if test x
${primary_bfd_gas} = xyes
; then bfd_gas
=yes; fi ;;
1954 # Other random stuff.
1956 # Do we need the opcodes library?
1964 case "${enable_shared}" in
1965 yes) shared_opcodes
=true
;;
1966 *opcodes
*) shared_opcodes
=true
;;
1967 *) shared_opcodes
=false
;;
1969 if test "${shared_opcodes}" = "true"; then
1970 # A shared libopcodes must be linked against libbfd.
1976 # Any other special object files needed ?
1983 case ${extra_objects} in
1985 *) extra_objects
="$extra_objects m68k-parse.o" ;;
1990 echo ${extra_objects} |
grep -s "itbl-parse.o"
1991 if test $?
-ne 0 ; then
1992 extra_objects
="$extra_objects itbl-parse.o"
1995 echo ${extra_objects} |
grep -s "itbl-lex.o"
1996 if test $?
-ne 0 ; then
1997 extra_objects
="$extra_objects itbl-lex.o"
2000 echo ${extra_objects} |
grep -s "itbl-ops.o"
2001 if test $?
-ne 0 ; then
2002 extra_objects
="$extra_objects itbl-ops.o"
2007 if test $this_target = $target ; then
2008 cat >> confdefs.h
<<EOF
2009 #define DEFAULT_ARCH "${arch}"
2018 if test $using_cgen = yes ; then
2019 case "x${extra_objects}" in
2021 *) extra_objects
="$extra_objects cgen.o" ;;
2025 # See if we really can support this configuration with the emulation code.
2027 if test $this_target = $target ; then
2028 primary_bfd_gas
=$bfd_gas
2032 if test $bfd_gas = no
; then
2033 # Can't support other configurations this way.
2036 elif test $bfd_gas = no
; then
2037 # Can't support this configuration.
2041 # From target name and format, produce a list of supported emulations.
2043 case ${generic_target}-${fmt} in
2044 mips-
*-irix5*-*) emulation
="mipsbelf mipslelf mipself mipsbecoff mipslecoff mipsecoff" ;;
2045 mips-
*-linux-gnu*-*) case "$endian" in
2046 big
) emulation
="mipsbelf mipslelf mipself mipsbecoff mipslecoff mipsecoff" ;;
2047 *) emulation
="mipslelf mipsbelf mipself mipslecoff mipsbecoff mipsecoff" ;;
2049 mips-
*-lnews*-ecoff) ;;
2050 mips-
*-*-ecoff) case "$endian" in
2051 big
) emulation
="mipsbecoff mipslecoff mipsecoff" ;;
2052 *) emulation
="mipslecoff mipsbecoff mipsecoff" ;;
2054 mips-
*-*-elf) case "$endian" in
2055 big
) emulation
="mipsbelf mipslelf mipself" ;;
2056 *) emulation
="mipslelf mipsbelf mipself" ;;
2058 # Uncommenting the next line will turn on support for i386 AOUT
2059 # for the default linux configuration
2060 # i386-*-linux*-elf) emulation="i386elf i386aout" ;;
2062 i386-
*-aout) emulation
="i386aout" ;;
2063 i386-
*-coff) emulation
="i386coff" ;;
2064 i386-
*-elf) emulation
="i386elf" ;;
2067 emulations
="$emulations $emulation"
2071 # Turn on all targets if possible
2072 if test ${all_targets} = "yes"; then
2073 case ${target_cpu_type} in
2075 case ${obj_format} in
2077 emulations
="$emulations i386coff i386elf"
2080 emulations
="$emulations i386aout i386elf"
2083 emulations
="$emulations i386aout i386coff"
2090 # Assign floating point type. Most processors with FP support
2091 # IEEE FP. On those that don't support FP at all, usually IEEE
2093 case ${target_cpu} in
2094 vax | tahoe
) atof
=${target_cpu} ;;
2098 case "${obj_format}" in
2099 "") { echo "configure: error: GAS does not know what format to use for target ${target}" 1>&2; exit 1; } ;;
2102 # Unfortunately the cpu in cpu-opc.h file isn't always $(TARGET_CPU).
2104 if test $using_cgen = yes ; then
2105 case ${target_cpu} in
2106 *) cgen_cpu_prefix
=${target_cpu} ;;
2109 cat >> confdefs.h
<<\EOF
2110 #define USING_CGEN 1
2116 if test ! -r ${srcdir}/config
/tc-
${target_cpu_type}.c
; then
2117 { echo "configure: error: GAS does not support target CPU ${target_cpu_type}" 1>&2; exit 1; }
2120 if test ! -r ${srcdir}/config
/obj-
${obj_format}.c
; then
2121 { echo "configure: error: GAS does not have support for object file format ${obj_format}" 1>&2; exit 1; }
2124 case ${user_bfd_gas}-${primary_bfd_gas} in
2126 # We didn't override user's choice.
2129 echo "configure: warning: Use of BFD is required for ${target}; overriding config options." 1>&2
2141 # User specified nothing.
2145 # Some COFF configurations want these random other flags set.
2146 case ${obj_format} in
2148 case ${target_cpu_type} in
2149 i386
) cat >> confdefs.h
<<\EOF
2153 m68k
) cat >> confdefs.h
<<\EOF
2157 m88k
) cat >> confdefs.h
<<\EOF
2165 # Getting this done right is going to be a bitch. Each configuration specified
2166 # with --enable-targets=... should be checked for environment, format, cpu, and
2169 # For each configuration, the necessary object file support code must be linked
2170 # in. This might be only one, it might be up to four. The necessary emulation
2171 # code needs to be provided, too.
2173 # And then there's "--enable-targets=all"....
2175 # For now, just always do it for MIPS ELF or ECOFF configurations. Sigh.
2177 formats
="${obj_format}"
2180 _gas_uniq_list
="$emulations"
2181 _gas_uniq_newlist
=""
2182 for _gas_uniq_i
in _gas_uniq_dummy
$_gas_uniq_list ; do
2183 case $_gas_uniq_i in
2185 *) case " $_gas_uniq_newlist " in
2186 *" $_gas_uniq_i "*) ;;
2187 *) _gas_uniq_newlist
="$_gas_uniq_newlist $_gas_uniq_i" ;;
2191 emulations
=$_gas_uniq_newlist
2193 for em
in .
$emulations ; do
2196 mipsbelf | mipslelf
)
2197 fmt=elf
file=mipself
;;
2198 mipsbecoff | mipslecoff
)
2199 fmt=ecoff
file=mipsecoff
;;
2201 fmt=aout
file=i386aout
;;
2203 fmt=coff
file=i386coff
;;
2205 fmt=elf
file=i386elf
;;
2207 formats
="$formats $fmt"
2208 emfiles
="$emfiles e-$file.o"
2209 EMULATIONS
="$EMULATIONS &$em,"
2211 _gas_uniq_list
="$formats"
2212 _gas_uniq_newlist
=""
2213 for _gas_uniq_i
in _gas_uniq_dummy
$_gas_uniq_list ; do
2214 case $_gas_uniq_i in
2216 *) case " $_gas_uniq_newlist " in
2217 *" $_gas_uniq_i "*) ;;
2218 *) _gas_uniq_newlist
="$_gas_uniq_newlist $_gas_uniq_i" ;;
2222 formats
=$_gas_uniq_newlist
2224 _gas_uniq_list
="$emfiles"
2225 _gas_uniq_newlist
=""
2226 for _gas_uniq_i
in _gas_uniq_dummy
$_gas_uniq_list ; do
2227 case $_gas_uniq_i in
2229 *) case " $_gas_uniq_newlist " in
2230 *" $_gas_uniq_i "*) ;;
2231 *) _gas_uniq_newlist
="$_gas_uniq_newlist $_gas_uniq_i" ;;
2235 emfiles
=$_gas_uniq_newlist
2237 if test `set . $formats ; shift ; echo $#` -gt 1 ; then
2238 for fmt in $formats ; do
2240 aout
) cat >> confdefs.h
<<\EOF
2241 #define OBJ_MAYBE_AOUT 1
2244 bout
) cat >> confdefs.h
<<\EOF
2245 #define OBJ_MAYBE_BOUT 1
2248 coff
) cat >> confdefs.h
<<\EOF
2249 #define OBJ_MAYBE_COFF 1
2252 ecoff
) cat >> confdefs.h
<<\EOF
2253 #define OBJ_MAYBE_ECOFF 1
2256 elf
) cat >> confdefs.h
<<\EOF
2257 #define OBJ_MAYBE_ELF 1
2260 generic
) cat >> confdefs.h
<<\EOF
2261 #define OBJ_MAYBE_GENERIC 1
2264 hp300
) cat >> confdefs.h
<<\EOF
2265 #define OBJ_MAYBE_HP300 1
2268 ieee
) cat >> confdefs.h
<<\EOF
2269 #define OBJ_MAYBE_IEEE 1
2272 som
) cat >> confdefs.h
<<\EOF
2273 #define OBJ_MAYBE_SOM 1
2276 vms
) cat >> confdefs.h
<<\EOF
2277 #define OBJ_MAYBE_VMS 1
2281 extra_objects
="$extra_objects obj-$fmt.o"
2285 if test `set . $emfiles ; shift ; echo $#` -gt 0 ; then
2286 DEFAULT_EMULATION
=`set . $emulations ; echo $2`
2287 # e-mips* has more than one emulation per file, e-i386* has just one at the
2288 # moment. If only one emulation is specified, then don't define
2289 # USE_EMULATIONS or include any of the e-files as they will only be bloat.
2290 case "${obj_format}${emfiles}" in
2292 extra_objects
="$extra_objects $emfiles"
2293 cat >> confdefs.h
<<\EOF
2294 #define USE_EMULATIONS 1
2300 cat >> confdefs.h
<<EOF
2301 #define EMULATIONS $EMULATIONS
2304 cat >> confdefs.h
<<EOF
2305 #define DEFAULT_EMULATION "$DEFAULT_EMULATION"
2309 case ${primary_bfd_gas}-${target_cpu_type}-${obj_format} in
2310 yes-
*-coff) need_bfd
=yes ;;
2311 no-
*-coff) need_bfd
=yes
2312 cat >> confdefs.h
<<\EOF
2313 #define MANY_SEGMENTS 1
2318 reject_dev_configs
=yes
2320 case ${reject_dev_configs}-${dev} in
2322 { echo "configure: error: GAS does not support the ${generic_target} configuration." 1>&2; exit 1; }
2332 case "${primary_bfd_gas}" in
2333 yes) cat >> confdefs.h
<<\EOF
2334 #define BFD_ASSEMBLER 1
2340 # do we need the opcodes library?
2341 case "${need_opcodes}" in
2343 OPCODES_LIB
=..
/opcodes
/libopcodes.la
2347 case "${need_bfd}" in
2349 BFDLIB
=..
/bfd
/libbfd.la
2350 ALL_OBJ_DEPS
="$ALL_OBJ_DEPS ../bfd/bfd.h"
2359 cat >> confdefs.h
<<EOF
2360 #define TARGET_ALIAS "${target_alias}"
2363 cat >> confdefs.h
<<EOF
2364 #define TARGET_CANONICAL "${target}"
2367 cat >> confdefs.h
<<EOF
2368 #define TARGET_CPU "${target_cpu}"
2371 cat >> confdefs.h
<<EOF
2372 #define TARGET_VENDOR "${target_vendor}"
2375 cat >> confdefs.h
<<EOF
2376 #define TARGET_OS "${target_os}"
2380 # Extract the first word of "gcc", so it can be a program name with args.
2381 set dummy gcc
; ac_word
=$2
2382 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2383 echo "configure:2384: checking for $ac_word" >&5
2384 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2385 echo $ac_n "(cached) $ac_c" 1>&6
2387 if test -n "$CC"; then
2388 ac_cv_prog_CC
="$CC" # Let the user override the test.
2390 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2392 for ac_dir
in $ac_dummy; do
2393 test -z "$ac_dir" && ac_dir
=.
2394 if test -f $ac_dir/$ac_word; then
2403 if test -n "$CC"; then
2404 echo "$ac_t""$CC" 1>&6
2406 echo "$ac_t""no" 1>&6
2409 if test -z "$CC"; then
2410 # Extract the first word of "cc", so it can be a program name with args.
2411 set dummy cc
; ac_word
=$2
2412 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2413 echo "configure:2414: checking for $ac_word" >&5
2414 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2415 echo $ac_n "(cached) $ac_c" 1>&6
2417 if test -n "$CC"; then
2418 ac_cv_prog_CC
="$CC" # Let the user override the test.
2420 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2423 for ac_dir
in $ac_dummy; do
2424 test -z "$ac_dir" && ac_dir
=.
2425 if test -f $ac_dir/$ac_word; then
2426 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2427 ac_prog_rejected
=yes
2435 if test $ac_prog_rejected = yes; then
2436 # We found a bogon in the path, so make sure we never use it.
2437 set dummy
$ac_cv_prog_CC
2439 if test $# -gt 0; then
2440 # We chose a different compiler from the bogus one.
2441 # However, it has the same basename, so the bogon will be chosen
2442 # first if we set CC to just the basename; use the full file name.
2444 set dummy
"$ac_dir/$ac_word" "$@"
2452 if test -n "$CC"; then
2453 echo "$ac_t""$CC" 1>&6
2455 echo "$ac_t""no" 1>&6
2458 if test -z "$CC"; then
2459 case "`uname -s`" in
2461 # Extract the first word of "cl", so it can be a program name with args.
2462 set dummy cl
; ac_word
=$2
2463 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2464 echo "configure:2465: checking for $ac_word" >&5
2465 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2466 echo $ac_n "(cached) $ac_c" 1>&6
2468 if test -n "$CC"; then
2469 ac_cv_prog_CC
="$CC" # Let the user override the test.
2471 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2473 for ac_dir
in $ac_dummy; do
2474 test -z "$ac_dir" && ac_dir
=.
2475 if test -f $ac_dir/$ac_word; then
2484 if test -n "$CC"; then
2485 echo "$ac_t""$CC" 1>&6
2487 echo "$ac_t""no" 1>&6
2492 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2495 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2496 echo "configure:2497: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
2499 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2500 ac_cpp
='$CPP $CPPFLAGS'
2501 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2502 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2503 cross_compiling
=$ac_cv_prog_cc_cross
2505 cat > conftest.
$ac_ext << EOF
2507 #line 2508 "configure"
2508 #include "confdefs.h"
2512 if { (eval echo configure
:2513: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2513 ac_cv_prog_cc_works
=yes
2514 # If we can't run a trivial program, we are probably using a cross compiler.
2515 if (.
/conftest
; exit) 2>/dev
/null
; then
2516 ac_cv_prog_cc_cross
=no
2518 ac_cv_prog_cc_cross
=yes
2521 echo "configure: failed program was:" >&5
2522 cat conftest.
$ac_ext >&5
2523 ac_cv_prog_cc_works
=no
2527 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2528 ac_cpp
='$CPP $CPPFLAGS'
2529 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2530 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2531 cross_compiling
=$ac_cv_prog_cc_cross
2533 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2534 if test $ac_cv_prog_cc_works = no
; then
2535 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2537 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2538 echo "configure:2539: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2539 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2540 cross_compiling
=$ac_cv_prog_cc_cross
2542 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2543 echo "configure:2544: checking whether we are using GNU C" >&5
2544 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
2545 echo $ac_n "(cached) $ac_c" 1>&6
2547 cat > conftest.c
<<EOF
2552 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:2553: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
2559 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2561 if test $ac_cv_prog_gcc = yes; then
2567 ac_test_CFLAGS
="${CFLAGS+set}"
2568 ac_save_CFLAGS
="$CFLAGS"
2570 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2571 echo "configure:2572: checking whether ${CC-cc} accepts -g" >&5
2572 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2573 echo $ac_n "(cached) $ac_c" 1>&6
2575 echo 'void f(){}' > conftest.c
2576 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2585 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2586 if test "$ac_test_CFLAGS" = set; then
2587 CFLAGS
="$ac_save_CFLAGS"
2588 elif test $ac_cv_prog_cc_g = yes; then
2589 if test "$GCC" = yes; then
2595 if test "$GCC" = yes; then
2603 for ac_prog
in 'bison -y' byacc
2605 # Extract the first word of "$ac_prog", so it can be a program name with args.
2606 set dummy
$ac_prog; ac_word
=$2
2607 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2608 echo "configure:2609: checking for $ac_word" >&5
2609 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
2610 echo $ac_n "(cached) $ac_c" 1>&6
2612 if test -n "$YACC"; then
2613 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
2615 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2617 for ac_dir
in $ac_dummy; do
2618 test -z "$ac_dir" && ac_dir
=.
2619 if test -f $ac_dir/$ac_word; then
2620 ac_cv_prog_YACC
="$ac_prog"
2627 YACC
="$ac_cv_prog_YACC"
2628 if test -n "$YACC"; then
2629 echo "$ac_t""$YACC" 1>&6
2631 echo "$ac_t""no" 1>&6
2634 test -n "$YACC" && break
2636 test -n "$YACC" || YACC
="yacc"
2638 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2639 echo "configure:2640: checking how to run the C preprocessor" >&5
2640 # On Suns, sometimes $CPP names a directory.
2641 if test -n "$CPP" && test -d "$CPP"; then
2644 if test -z "$CPP"; then
2645 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2646 echo $ac_n "(cached) $ac_c" 1>&6
2648 # This must be in double quotes, not single quotes, because CPP may get
2649 # substituted into the Makefile and "${CC-cc}" will confuse make.
2651 # On the NeXT, cc -E runs the code through the compiler's parser,
2652 # not just through cpp.
2653 cat > conftest.
$ac_ext <<EOF
2654 #line 2655 "configure"
2655 #include "confdefs.h"
2659 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2660 { (eval echo configure
:2661: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2661 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2662 if test -z "$ac_err"; then
2666 echo "configure: failed program was:" >&5
2667 cat conftest.
$ac_ext >&5
2669 CPP
="${CC-cc} -E -traditional-cpp"
2670 cat > conftest.
$ac_ext <<EOF
2671 #line 2672 "configure"
2672 #include "confdefs.h"
2676 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2677 { (eval echo configure
:2678: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2678 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2679 if test -z "$ac_err"; then
2683 echo "configure: failed program was:" >&5
2684 cat conftest.
$ac_ext >&5
2686 CPP
="${CC-cc} -nologo -E"
2687 cat > conftest.
$ac_ext <<EOF
2688 #line 2689 "configure"
2689 #include "confdefs.h"
2693 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2694 { (eval echo configure
:2695: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2695 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2696 if test -z "$ac_err"; then
2700 echo "configure: failed program was:" >&5
2701 cat conftest.
$ac_ext >&5
2710 ac_cv_prog_CPP
="$CPP"
2712 CPP
="$ac_cv_prog_CPP"
2714 ac_cv_prog_CPP
="$CPP"
2716 echo "$ac_t""$CPP" 1>&6
2718 missing_dir
=`cd $ac_aux_dir && pwd`
2719 for ac_prog
in flex
lex
2721 # Extract the first word of "$ac_prog", so it can be a program name with args.
2722 set dummy
$ac_prog; ac_word
=$2
2723 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2724 echo "configure:2725: checking for $ac_word" >&5
2725 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
2726 echo $ac_n "(cached) $ac_c" 1>&6
2728 if test -n "$LEX"; then
2729 ac_cv_prog_LEX
="$LEX" # Let the user override the test.
2731 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2733 for ac_dir
in $ac_dummy; do
2734 test -z "$ac_dir" && ac_dir
=.
2735 if test -f $ac_dir/$ac_word; then
2736 ac_cv_prog_LEX
="$ac_prog"
2743 LEX
="$ac_cv_prog_LEX"
2744 if test -n "$LEX"; then
2745 echo "$ac_t""$LEX" 1>&6
2747 echo "$ac_t""no" 1>&6
2750 test -n "$LEX" && break
2752 test -n "$LEX" || LEX
=""$missing_dir/missing flex
""
2754 # Extract the first word of "flex", so it can be a program name with args.
2755 set dummy flex
; ac_word
=$2
2756 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2757 echo "configure:2758: checking for $ac_word" >&5
2758 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
2759 echo $ac_n "(cached) $ac_c" 1>&6
2761 if test -n "$LEX"; then
2762 ac_cv_prog_LEX
="$LEX" # Let the user override the test.
2764 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2766 for ac_dir
in $ac_dummy; do
2767 test -z "$ac_dir" && ac_dir
=.
2768 if test -f $ac_dir/$ac_word; then
2769 ac_cv_prog_LEX
="flex"
2774 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX
="lex"
2777 LEX
="$ac_cv_prog_LEX"
2778 if test -n "$LEX"; then
2779 echo "$ac_t""$LEX" 1>&6
2781 echo "$ac_t""no" 1>&6
2784 if test -z "$LEXLIB"
2790 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
2791 echo "configure:2792: checking for yywrap in -l$ac_lib" >&5
2792 ac_lib_var
=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
2793 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2794 echo $ac_n "(cached) $ac_c" 1>&6
2796 ac_save_LIBS
="$LIBS"
2797 LIBS
="-l$ac_lib $LIBS"
2798 cat > conftest.
$ac_ext <<EOF
2799 #line 2800 "configure"
2800 #include "confdefs.h"
2801 /* Override any gcc2 internal prototype to avoid an error. */
2802 /* We use char because int might match the return type of a gcc2
2803 builtin and then its argument prototype would still apply. */
2810 if { (eval echo configure
:2811: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2812 eval "ac_cv_lib_$ac_lib_var=yes"
2814 echo "configure: failed program was:" >&5
2815 cat conftest.
$ac_ext >&5
2817 eval "ac_cv_lib_$ac_lib_var=no"
2820 LIBS
="$ac_save_LIBS"
2823 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2824 echo "$ac_t""yes" 1>&6
2827 echo "$ac_t""no" 1>&6
2832 echo $ac_n "checking lex output file root""... $ac_c" 1>&6
2833 echo "configure:2834: checking lex output file root" >&5
2834 if eval "test \"`echo '$''{'ac_cv_prog_lex_root'+set}'`\" = set"; then
2835 echo $ac_n "(cached) $ac_c" 1>&6
2837 # The minimal lex program is just a single line: %%. But some broken lexes
2838 # (Solaris, I think it was) want two %% lines, so accommodate them.
2841 if test -f lex.yy.c
; then
2842 ac_cv_prog_lex_root
=lex.yy
2843 elif test -f lexyy.c
; then
2844 ac_cv_prog_lex_root
=lexyy
2846 { echo "configure: error: cannot find output from $LEX; giving up" 1>&2; exit 1; }
2850 echo "$ac_t""$ac_cv_prog_lex_root" 1>&6
2851 LEX_OUTPUT_ROOT
=$ac_cv_prog_lex_root
2853 echo $ac_n "checking whether yytext is a pointer""... $ac_c" 1>&6
2854 echo "configure:2855: checking whether yytext is a pointer" >&5
2855 if eval "test \"`echo '$''{'ac_cv_prog_lex_yytext_pointer'+set}'`\" = set"; then
2856 echo $ac_n "(cached) $ac_c" 1>&6
2858 # POSIX says lex can declare yytext either as a pointer or an array; the
2859 # default is implementation-dependent. Figure out which it is, since
2860 # not all implementations provide the %pointer and %array declarations.
2861 ac_cv_prog_lex_yytext_pointer
=no
2862 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
2863 ac_save_LIBS
="$LIBS"
2864 LIBS
="$LIBS $LEXLIB"
2865 cat > conftest.
$ac_ext <<EOF
2866 #line 2867 "configure"
2867 #include "confdefs.h"
2868 `cat $LEX_OUTPUT_ROOT.c`
2873 if { (eval echo configure
:2874: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2875 ac_cv_prog_lex_yytext_pointer
=yes
2877 echo "configure: failed program was:" >&5
2878 cat conftest.
$ac_ext >&5
2881 LIBS
="$ac_save_LIBS"
2882 rm -f "${LEX_OUTPUT_ROOT}.c"
2886 echo "$ac_t""$ac_cv_prog_lex_yytext_pointer" 1>&6
2887 if test $ac_cv_prog_lex_yytext_pointer = yes; then
2888 cat >> confdefs.h
<<\EOF
2889 #define YYTEXT_POINTER 1
2896 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
2897 echo "configure:2898: checking for POSIXized ISC" >&5
2898 if test -d /etc
/conf
/kconfig.d
&&
2899 grep _POSIX_VERSION
/usr
/include
/sys
/unistd.h
>/dev
/null
2>&1
2901 echo "$ac_t""yes" 1>&6
2902 ISC
=yes # If later tests want to check for ISC.
2903 cat >> confdefs.h
<<\EOF
2904 #define _POSIX_SOURCE 1
2907 if test "$GCC" = yes; then
2913 echo "$ac_t""no" 1>&6
2917 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2918 echo "configure:2919: checking for ANSI C header files" >&5
2919 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2920 echo $ac_n "(cached) $ac_c" 1>&6
2922 cat > conftest.
$ac_ext <<EOF
2923 #line 2924 "configure"
2924 #include "confdefs.h"
2930 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2931 { (eval echo configure
:2932: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2932 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2933 if test -z "$ac_err"; then
2935 ac_cv_header_stdc
=yes
2938 echo "configure: failed program was:" >&5
2939 cat conftest.
$ac_ext >&5
2941 ac_cv_header_stdc
=no
2945 if test $ac_cv_header_stdc = yes; then
2946 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2947 cat > conftest.
$ac_ext <<EOF
2948 #line 2949 "configure"
2949 #include "confdefs.h"
2952 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2953 egrep "memchr" >/dev
/null
2>&1; then
2957 ac_cv_header_stdc
=no
2963 if test $ac_cv_header_stdc = yes; then
2964 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2965 cat > conftest.
$ac_ext <<EOF
2966 #line 2967 "configure"
2967 #include "confdefs.h"
2970 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2971 egrep "free" >/dev
/null
2>&1; then
2975 ac_cv_header_stdc
=no
2981 if test $ac_cv_header_stdc = yes; then
2982 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2983 if test "$cross_compiling" = yes; then
2986 cat > conftest.
$ac_ext <<EOF
2987 #line 2988 "configure"
2988 #include "confdefs.h"
2990 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2991 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2992 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2993 int main () { int i; for (i = 0; i < 256; i++)
2994 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2998 if { (eval echo configure
:2999: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3002 echo "configure: failed program was:" >&5
3003 cat conftest.
$ac_ext >&5
3005 ac_cv_header_stdc
=no
3013 echo "$ac_t""$ac_cv_header_stdc" 1>&6
3014 if test $ac_cv_header_stdc = yes; then
3015 cat >> confdefs.h
<<\EOF
3016 #define STDC_HEADERS 1
3021 echo $ac_n "checking for working const""... $ac_c" 1>&6
3022 echo "configure:3023: checking for working const" >&5
3023 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3024 echo $ac_n "(cached) $ac_c" 1>&6
3026 cat > conftest.
$ac_ext <<EOF
3027 #line 3028 "configure"
3028 #include "confdefs.h"
3032 /* Ultrix mips cc rejects this. */
3033 typedef int charset[2]; const charset x;
3034 /* SunOS 4.1.1 cc rejects this. */
3035 char const *const *ccp;
3037 /* NEC SVR4.0.2 mips cc rejects this. */
3038 struct point {int x, y;};
3039 static struct point const zero = {0,0};
3040 /* AIX XL C 1.02.0.0 rejects this.
3041 It does not let you subtract one const X* pointer from another in an arm
3042 of an if-expression whose if-part is not a constant expression */
3043 const char *g = "string";
3044 ccp = &g + (g ? g-g : 0);
3045 /* HPUX 7.0 cc rejects these. */
3048 ccp = (char const *const *) p;
3049 { /* SCO 3.2v4 cc rejects this. */
3051 char const *s = 0 ? (char *) 0 : (char const *) 0;
3055 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3057 const int *foo = &x[0];
3060 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3061 typedef const int *iptr;
3065 { /* AIX XL C 1.02.0.0 rejects this saying
3066 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3067 struct s { int j; const int *ap[3]; };
3068 struct s *b; b->j = 5;
3070 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3076 if { (eval echo configure
:3077: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3080 echo "configure: failed program was:" >&5
3081 cat conftest.
$ac_ext >&5
3088 echo "$ac_t""$ac_cv_c_const" 1>&6
3089 if test $ac_cv_c_const = no
; then
3090 cat >> confdefs.h
<<\EOF
3096 echo $ac_n "checking for inline""... $ac_c" 1>&6
3097 echo "configure:3098: checking for inline" >&5
3098 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
3099 echo $ac_n "(cached) $ac_c" 1>&6
3102 for ac_kw
in inline __inline__ __inline
; do
3103 cat > conftest.
$ac_ext <<EOF
3104 #line 3105 "configure"
3105 #include "confdefs.h"
3111 if { (eval echo configure
:3112: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3113 ac_cv_c_inline
=$ac_kw; break
3115 echo "configure: failed program was:" >&5
3116 cat conftest.
$ac_ext >&5
3123 echo "$ac_t""$ac_cv_c_inline" 1>&6
3124 case "$ac_cv_c_inline" in
3126 no
) cat >> confdefs.h
<<\EOF
3130 *) cat >> confdefs.h
<<EOF
3131 #define inline $ac_cv_c_inline
3136 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3137 echo "configure:3138: checking for off_t" >&5
3138 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
3139 echo $ac_n "(cached) $ac_c" 1>&6
3141 cat > conftest.
$ac_ext <<EOF
3142 #line 3143 "configure"
3143 #include "confdefs.h"
3144 #include <sys/types.h>
3150 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3151 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3153 ac_cv_type_off_t
=yes
3161 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3162 if test $ac_cv_type_off_t = no
; then
3163 cat >> confdefs.h
<<\EOF
3169 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3170 echo "configure:3171: checking for size_t" >&5
3171 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3172 echo $ac_n "(cached) $ac_c" 1>&6
3174 cat > conftest.
$ac_ext <<EOF
3175 #line 3176 "configure"
3176 #include "confdefs.h"
3177 #include <sys/types.h>
3183 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3184 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3186 ac_cv_type_size_t
=yes
3189 ac_cv_type_size_t
=no
3194 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3195 if test $ac_cv_type_size_t = no
; then
3196 cat >> confdefs.h
<<\EOF
3197 #define size_t unsigned
3202 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
3203 # for constant arguments. Useless!
3204 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
3205 echo "configure:3206: checking for working alloca.h" >&5
3206 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
3207 echo $ac_n "(cached) $ac_c" 1>&6
3209 cat > conftest.
$ac_ext <<EOF
3210 #line 3211 "configure"
3211 #include "confdefs.h"
3214 char *p = alloca(2 * sizeof(int));
3217 if { (eval echo configure
:3218: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3219 ac_cv_header_alloca_h
=yes
3221 echo "configure: failed program was:" >&5
3222 cat conftest.
$ac_ext >&5
3224 ac_cv_header_alloca_h
=no
3229 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
3230 if test $ac_cv_header_alloca_h = yes; then
3231 cat >> confdefs.h
<<\EOF
3232 #define HAVE_ALLOCA_H 1
3237 echo $ac_n "checking for alloca""... $ac_c" 1>&6
3238 echo "configure:3239: checking for alloca" >&5
3239 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
3240 echo $ac_n "(cached) $ac_c" 1>&6
3242 cat > conftest.
$ac_ext <<EOF
3243 #line 3244 "configure"
3244 #include "confdefs.h"
3247 # define alloca __builtin_alloca
3250 # include <malloc.h>
3251 # define alloca _alloca
3254 # include <alloca.h>
3259 # ifndef alloca /* predefined by HP cc +Olibcalls */
3268 char *p = (char *) alloca(1);
3271 if { (eval echo configure
:3272: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3273 ac_cv_func_alloca_works
=yes
3275 echo "configure: failed program was:" >&5
3276 cat conftest.
$ac_ext >&5
3278 ac_cv_func_alloca_works
=no
3283 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
3284 if test $ac_cv_func_alloca_works = yes; then
3285 cat >> confdefs.h
<<\EOF
3286 #define HAVE_ALLOCA 1
3291 if test $ac_cv_func_alloca_works = no
; then
3292 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
3293 # that cause trouble. Some versions do not even contain alloca or
3294 # contain a buggy version. If you still want to use their alloca,
3295 # use ar to extract alloca.o from them instead of compiling alloca.c.
3296 ALLOCA
=alloca.
${ac_objext}
3297 cat >> confdefs.h
<<\EOF
3302 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
3303 echo "configure:3304: checking whether alloca needs Cray hooks" >&5
3304 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
3305 echo $ac_n "(cached) $ac_c" 1>&6
3307 cat > conftest.
$ac_ext <<EOF
3308 #line 3309 "configure"
3309 #include "confdefs.h"
3310 #if defined(CRAY) && ! defined(CRAY2)
3317 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3318 egrep "webecray" >/dev
/null
2>&1; then
3329 echo "$ac_t""$ac_cv_os_cray" 1>&6
3330 if test $ac_cv_os_cray = yes; then
3331 for ac_func
in _getb67 GETB67 getb67
; do
3332 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3333 echo "configure:3334: checking for $ac_func" >&5
3334 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3335 echo $ac_n "(cached) $ac_c" 1>&6
3337 cat > conftest.
$ac_ext <<EOF
3338 #line 3339 "configure"
3339 #include "confdefs.h"
3340 /* System header to define __stub macros and hopefully few prototypes,
3341 which can conflict with char $ac_func(); below. */
3343 /* Override any gcc2 internal prototype to avoid an error. */
3344 /* We use char because int might match the return type of a gcc2
3345 builtin and then its argument prototype would still apply. */
3350 /* The GNU C library defines this for functions which it implements
3351 to always fail with ENOSYS. Some functions are actually named
3352 something starting with __ and the normal name is an alias. */
3353 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3361 if { (eval echo configure
:3362: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3363 eval "ac_cv_func_$ac_func=yes"
3365 echo "configure: failed program was:" >&5
3366 cat conftest.
$ac_ext >&5
3368 eval "ac_cv_func_$ac_func=no"
3373 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3374 echo "$ac_t""yes" 1>&6
3375 cat >> confdefs.h
<<EOF
3376 #define CRAY_STACKSEG_END $ac_func
3381 echo "$ac_t""no" 1>&6
3387 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
3388 echo "configure:3389: checking stack direction for C alloca" >&5
3389 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
3390 echo $ac_n "(cached) $ac_c" 1>&6
3392 if test "$cross_compiling" = yes; then
3393 ac_cv_c_stack_direction
=0
3395 cat > conftest.
$ac_ext <<EOF
3396 #line 3397 "configure"
3397 #include "confdefs.h"
3398 find_stack_direction ()
3400 static char *addr = 0;
3405 return find_stack_direction ();
3408 return (&dummy > addr) ? 1 : -1;
3412 exit (find_stack_direction() < 0);
3415 if { (eval echo configure
:3416: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3417 ac_cv_c_stack_direction
=1
3419 echo "configure: failed program was:" >&5
3420 cat conftest.
$ac_ext >&5
3422 ac_cv_c_stack_direction
=-1
3429 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
3430 cat >> confdefs.h
<<EOF
3431 #define STACK_DIRECTION $ac_cv_c_stack_direction
3436 for ac_hdr
in unistd.h
3438 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3439 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3440 echo "configure:3441: checking for $ac_hdr" >&5
3441 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3442 echo $ac_n "(cached) $ac_c" 1>&6
3444 cat > conftest.
$ac_ext <<EOF
3445 #line 3446 "configure"
3446 #include "confdefs.h"
3449 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3450 { (eval echo configure
:3451: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3451 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3452 if test -z "$ac_err"; then
3454 eval "ac_cv_header_$ac_safe=yes"
3457 echo "configure: failed program was:" >&5
3458 cat conftest.
$ac_ext >&5
3460 eval "ac_cv_header_$ac_safe=no"
3464 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3465 echo "$ac_t""yes" 1>&6
3466 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3467 cat >> confdefs.h
<<EOF
3468 #define $ac_tr_hdr 1
3472 echo "$ac_t""no" 1>&6
3476 for ac_func
in getpagesize
3478 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3479 echo "configure:3480: checking for $ac_func" >&5
3480 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3481 echo $ac_n "(cached) $ac_c" 1>&6
3483 cat > conftest.
$ac_ext <<EOF
3484 #line 3485 "configure"
3485 #include "confdefs.h"
3486 /* System header to define __stub macros and hopefully few prototypes,
3487 which can conflict with char $ac_func(); below. */
3489 /* Override any gcc2 internal prototype to avoid an error. */
3490 /* We use char because int might match the return type of a gcc2
3491 builtin and then its argument prototype would still apply. */
3496 /* The GNU C library defines this for functions which it implements
3497 to always fail with ENOSYS. Some functions are actually named
3498 something starting with __ and the normal name is an alias. */
3499 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3507 if { (eval echo configure
:3508: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3509 eval "ac_cv_func_$ac_func=yes"
3511 echo "configure: failed program was:" >&5
3512 cat conftest.
$ac_ext >&5
3514 eval "ac_cv_func_$ac_func=no"
3519 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3520 echo "$ac_t""yes" 1>&6
3521 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3522 cat >> confdefs.h
<<EOF
3523 #define $ac_tr_func 1
3527 echo "$ac_t""no" 1>&6
3531 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
3532 echo "configure:3533: checking for working mmap" >&5
3533 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
3534 echo $ac_n "(cached) $ac_c" 1>&6
3536 if test "$cross_compiling" = yes; then
3537 ac_cv_func_mmap_fixed_mapped
=no
3539 cat > conftest.
$ac_ext <<EOF
3540 #line 3541 "configure"
3541 #include "confdefs.h"
3543 /* Thanks to Mike Haertel and Jim Avera for this test.
3544 Here is a matrix of mmap possibilities:
3545 mmap private not fixed
3546 mmap private fixed at somewhere currently unmapped
3547 mmap private fixed at somewhere already mapped
3548 mmap shared not fixed
3549 mmap shared fixed at somewhere currently unmapped
3550 mmap shared fixed at somewhere already mapped
3551 For private mappings, we should verify that changes cannot be read()
3552 back from the file, nor mmap's back from the file at a different
3553 address. (There have been systems where private was not correctly
3554 implemented like the infamous i386 svr4.0, and systems where the
3555 VM page cache was not coherent with the filesystem buffer cache
3556 like early versions of FreeBSD and possibly contemporary NetBSD.)
3557 For shared mappings, we should conversely verify that changes get
3558 propogated back to all the places they're supposed to be.
3560 Grep wants private fixed already mapped.
3561 The main things grep needs to know about mmap are:
3562 * does it exist and is it safe to write into the mmap'd area
3563 * how to use it (BSD variants) */
3564 #include <sys/types.h>
3566 #include <sys/mman.h>
3568 /* This mess was copied from the GNU getpagesize.h. */
3569 #ifndef HAVE_GETPAGESIZE
3570 # ifdef HAVE_UNISTD_H
3571 # include <unistd.h>
3574 /* Assume that all systems that can run configure have sys/param.h. */
3575 # ifndef HAVE_SYS_PARAM_H
3576 # define HAVE_SYS_PARAM_H 1
3579 # ifdef _SC_PAGESIZE
3580 # define getpagesize() sysconf(_SC_PAGESIZE)
3581 # else /* no _SC_PAGESIZE */
3582 # ifdef HAVE_SYS_PARAM_H
3583 # include <sys/param.h>
3584 # ifdef EXEC_PAGESIZE
3585 # define getpagesize() EXEC_PAGESIZE
3586 # else /* no EXEC_PAGESIZE */
3588 # define getpagesize() NBPG * CLSIZE
3591 # endif /* no CLSIZE */
3592 # else /* no NBPG */
3594 # define getpagesize() NBPC
3595 # else /* no NBPC */
3597 # define getpagesize() PAGESIZE
3598 # endif /* PAGESIZE */
3599 # endif /* no NBPC */
3600 # endif /* no NBPG */
3601 # endif /* no EXEC_PAGESIZE */
3602 # else /* no HAVE_SYS_PARAM_H */
3603 # define getpagesize() 8192 /* punt totally */
3604 # endif /* no HAVE_SYS_PARAM_H */
3605 # endif /* no _SC_PAGESIZE */
3607 #endif /* no HAVE_GETPAGESIZE */
3610 extern "C" { void *malloc(unsigned); }
3618 char *data, *data2, *data3;
3622 pagesize = getpagesize();
3625 * First, make a file with some known garbage in it.
3627 data = malloc(pagesize);
3630 for (i = 0; i < pagesize; ++i)
3631 *(data + i) = rand();
3633 fd = creat("conftestmmap", 0600);
3636 if (write(fd, data, pagesize) != pagesize)
3641 * Next, try to mmap the file at a fixed address which
3642 * already has something else allocated at it. If we can,
3643 * also make sure that we see the same garbage.
3645 fd = open("conftestmmap", O_RDWR);
3648 data2 = malloc(2 * pagesize);
3651 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
3652 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
3653 MAP_PRIVATE | MAP_FIXED, fd, 0L))
3655 for (i = 0; i < pagesize; ++i)
3656 if (*(data + i) != *(data2 + i))
3660 * Finally, make sure that changes to the mapped area
3661 * do not percolate back to the file as seen by read().
3662 * (This is a bug on some variants of i386 svr4.0.)
3664 for (i = 0; i < pagesize; ++i)
3665 *(data2 + i) = *(data2 + i) + 1;
3666 data3 = malloc(pagesize);
3669 if (read(fd, data3, pagesize) != pagesize)
3671 for (i = 0; i < pagesize; ++i)
3672 if (*(data + i) != *(data3 + i))
3675 unlink("conftestmmap");
3680 if { (eval echo configure
:3681: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3682 ac_cv_func_mmap_fixed_mapped
=yes
3684 echo "configure: failed program was:" >&5
3685 cat conftest.
$ac_ext >&5
3687 ac_cv_func_mmap_fixed_mapped
=no
3694 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
3695 if test $ac_cv_func_mmap_fixed_mapped = yes; then
3696 cat >> confdefs.h
<<\EOF
3703 for ac_hdr
in argz.h limits.h locale.h nl_types.h malloc.h string.h \
3704 unistd.h values.h sys
/param.h
3706 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3707 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3708 echo "configure:3709: checking for $ac_hdr" >&5
3709 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3710 echo $ac_n "(cached) $ac_c" 1>&6
3712 cat > conftest.
$ac_ext <<EOF
3713 #line 3714 "configure"
3714 #include "confdefs.h"
3717 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3718 { (eval echo configure
:3719: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3719 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3720 if test -z "$ac_err"; then
3722 eval "ac_cv_header_$ac_safe=yes"
3725 echo "configure: failed program was:" >&5
3726 cat conftest.
$ac_ext >&5
3728 eval "ac_cv_header_$ac_safe=no"
3732 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3733 echo "$ac_t""yes" 1>&6
3734 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3735 cat >> confdefs.h
<<EOF
3736 #define $ac_tr_hdr 1
3740 echo "$ac_t""no" 1>&6
3744 for ac_func
in getcwd munmap putenv setenv setlocale strchr strcasecmp \
3745 __argz_count __argz_stringify __argz_next
3747 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3748 echo "configure:3749: checking for $ac_func" >&5
3749 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3750 echo $ac_n "(cached) $ac_c" 1>&6
3752 cat > conftest.
$ac_ext <<EOF
3753 #line 3754 "configure"
3754 #include "confdefs.h"
3755 /* System header to define __stub macros and hopefully few prototypes,
3756 which can conflict with char $ac_func(); below. */
3758 /* Override any gcc2 internal prototype to avoid an error. */
3759 /* We use char because int might match the return type of a gcc2
3760 builtin and then its argument prototype would still apply. */
3765 /* The GNU C library defines this for functions which it implements
3766 to always fail with ENOSYS. Some functions are actually named
3767 something starting with __ and the normal name is an alias. */
3768 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3776 if { (eval echo configure
:3777: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3778 eval "ac_cv_func_$ac_func=yes"
3780 echo "configure: failed program was:" >&5
3781 cat conftest.
$ac_ext >&5
3783 eval "ac_cv_func_$ac_func=no"
3788 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3789 echo "$ac_t""yes" 1>&6
3790 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3791 cat >> confdefs.h
<<EOF
3792 #define $ac_tr_func 1
3796 echo "$ac_t""no" 1>&6
3801 if test "${ac_cv_func_stpcpy+set}" != "set"; then
3802 for ac_func
in stpcpy
3804 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3805 echo "configure:3806: checking for $ac_func" >&5
3806 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3807 echo $ac_n "(cached) $ac_c" 1>&6
3809 cat > conftest.
$ac_ext <<EOF
3810 #line 3811 "configure"
3811 #include "confdefs.h"
3812 /* System header to define __stub macros and hopefully few prototypes,
3813 which can conflict with char $ac_func(); below. */
3815 /* Override any gcc2 internal prototype to avoid an error. */
3816 /* We use char because int might match the return type of a gcc2
3817 builtin and then its argument prototype would still apply. */
3822 /* The GNU C library defines this for functions which it implements
3823 to always fail with ENOSYS. Some functions are actually named
3824 something starting with __ and the normal name is an alias. */
3825 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3833 if { (eval echo configure
:3834: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3835 eval "ac_cv_func_$ac_func=yes"
3837 echo "configure: failed program was:" >&5
3838 cat conftest.
$ac_ext >&5
3840 eval "ac_cv_func_$ac_func=no"
3845 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3846 echo "$ac_t""yes" 1>&6
3847 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3848 cat >> confdefs.h
<<EOF
3849 #define $ac_tr_func 1
3853 echo "$ac_t""no" 1>&6
3858 if test "${ac_cv_func_stpcpy}" = "yes"; then
3859 cat >> confdefs.h
<<\EOF
3860 #define HAVE_STPCPY 1
3865 if test $ac_cv_header_locale_h = yes; then
3866 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
3867 echo "configure:3868: checking for LC_MESSAGES" >&5
3868 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
3869 echo $ac_n "(cached) $ac_c" 1>&6
3871 cat > conftest.
$ac_ext <<EOF
3872 #line 3873 "configure"
3873 #include "confdefs.h"
3879 if { (eval echo configure
:3880: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3881 am_cv_val_LC_MESSAGES
=yes
3883 echo "configure: failed program was:" >&5
3884 cat conftest.
$ac_ext >&5
3886 am_cv_val_LC_MESSAGES
=no
3891 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
3892 if test $am_cv_val_LC_MESSAGES = yes; then
3893 cat >> confdefs.h
<<\EOF
3894 #define HAVE_LC_MESSAGES 1
3899 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
3900 echo "configure:3901: checking whether NLS is requested" >&5
3901 # Check whether --enable-nls or --disable-nls was given.
3902 if test "${enable_nls+set}" = set; then
3903 enableval
="$enable_nls"
3909 echo "$ac_t""$USE_NLS" 1>&6
3912 USE_INCLUDED_LIBINTL
=no
3914 if test "$USE_NLS" = "yes"; then
3915 cat >> confdefs.h
<<\EOF
3916 #define ENABLE_NLS 1
3919 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
3920 echo "configure:3921: checking whether included gettext is requested" >&5
3921 # Check whether --with-included-gettext or --without-included-gettext was given.
3922 if test "${with_included_gettext+set}" = set; then
3923 withval
="$with_included_gettext"
3924 nls_cv_force_use_gnu_gettext
=$withval
3926 nls_cv_force_use_gnu_gettext
=no
3929 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
3931 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
3932 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
3934 nls_cv_header_libgt
=
3937 ac_safe
=`echo "libintl.h" | sed 'y%./+-%__p_%'`
3938 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
3939 echo "configure:3940: checking for libintl.h" >&5
3940 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3941 echo $ac_n "(cached) $ac_c" 1>&6
3943 cat > conftest.
$ac_ext <<EOF
3944 #line 3945 "configure"
3945 #include "confdefs.h"
3946 #include <libintl.h>
3948 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3949 { (eval echo configure
:3950: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3950 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3951 if test -z "$ac_err"; then
3953 eval "ac_cv_header_$ac_safe=yes"
3956 echo "configure: failed program was:" >&5
3957 cat conftest.
$ac_ext >&5
3959 eval "ac_cv_header_$ac_safe=no"
3963 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3964 echo "$ac_t""yes" 1>&6
3965 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
3966 echo "configure:3967: checking for gettext in libc" >&5
3967 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
3968 echo $ac_n "(cached) $ac_c" 1>&6
3970 cat > conftest.
$ac_ext <<EOF
3971 #line 3972 "configure"
3972 #include "confdefs.h"
3973 #include <libintl.h>
3975 return (int) gettext ("")
3978 if { (eval echo configure
:3979: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3980 gt_cv_func_gettext_libc
=yes
3982 echo "configure: failed program was:" >&5
3983 cat conftest.
$ac_ext >&5
3985 gt_cv_func_gettext_libc
=no
3990 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
3992 if test "$gt_cv_func_gettext_libc" != "yes"; then
3993 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
3994 echo "configure:3995: checking for bindtextdomain in -lintl" >&5
3995 ac_lib_var
=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
3996 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3997 echo $ac_n "(cached) $ac_c" 1>&6
3999 ac_save_LIBS
="$LIBS"
4001 cat > conftest.
$ac_ext <<EOF
4002 #line 4003 "configure"
4003 #include "confdefs.h"
4004 /* Override any gcc2 internal prototype to avoid an error. */
4005 /* We use char because int might match the return type of a gcc2
4006 builtin and then its argument prototype would still apply. */
4007 char bindtextdomain();
4013 if { (eval echo configure
:4014: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4015 eval "ac_cv_lib_$ac_lib_var=yes"
4017 echo "configure: failed program was:" >&5
4018 cat conftest.
$ac_ext >&5
4020 eval "ac_cv_lib_$ac_lib_var=no"
4023 LIBS
="$ac_save_LIBS"
4026 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4027 echo "$ac_t""yes" 1>&6
4028 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
4029 echo "configure:4030: checking for gettext in libintl" >&5
4030 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
4031 echo $ac_n "(cached) $ac_c" 1>&6
4033 cat > conftest.
$ac_ext <<EOF
4034 #line 4035 "configure"
4035 #include "confdefs.h"
4038 return (int) gettext ("")
4041 if { (eval echo configure
:4042: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4043 gt_cv_func_gettext_libintl
=yes
4045 echo "configure: failed program was:" >&5
4046 cat conftest.
$ac_ext >&5
4048 gt_cv_func_gettext_libintl
=no
4053 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
4055 echo "$ac_t""no" 1>&6
4060 if test "$gt_cv_func_gettext_libc" = "yes" \
4061 ||
test "$gt_cv_func_gettext_libintl" = "yes"; then
4062 cat >> confdefs.h
<<\EOF
4063 #define HAVE_GETTEXT 1
4066 # Extract the first word of "msgfmt", so it can be a program name with args.
4067 set dummy msgfmt
; ac_word
=$2
4068 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4069 echo "configure:4070: checking for $ac_word" >&5
4070 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
4071 echo $ac_n "(cached) $ac_c" 1>&6
4075 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
4078 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
4079 for ac_dir
in $PATH; do
4080 test -z "$ac_dir" && ac_dir
=.
4081 if test -f $ac_dir/$ac_word; then
4082 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
4083 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
4089 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="no"
4093 MSGFMT
="$ac_cv_path_MSGFMT"
4094 if test -n "$MSGFMT"; then
4095 echo "$ac_t""$MSGFMT" 1>&6
4097 echo "$ac_t""no" 1>&6
4099 if test "$MSGFMT" != "no"; then
4100 for ac_func
in dcgettext
4102 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4103 echo "configure:4104: checking for $ac_func" >&5
4104 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4105 echo $ac_n "(cached) $ac_c" 1>&6
4107 cat > conftest.
$ac_ext <<EOF
4108 #line 4109 "configure"
4109 #include "confdefs.h"
4110 /* System header to define __stub macros and hopefully few prototypes,
4111 which can conflict with char $ac_func(); below. */
4113 /* Override any gcc2 internal prototype to avoid an error. */
4114 /* We use char because int might match the return type of a gcc2
4115 builtin and then its argument prototype would still apply. */
4120 /* The GNU C library defines this for functions which it implements
4121 to always fail with ENOSYS. Some functions are actually named
4122 something starting with __ and the normal name is an alias. */
4123 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4131 if { (eval echo configure
:4132: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4133 eval "ac_cv_func_$ac_func=yes"
4135 echo "configure: failed program was:" >&5
4136 cat conftest.
$ac_ext >&5
4138 eval "ac_cv_func_$ac_func=no"
4143 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4144 echo "$ac_t""yes" 1>&6
4145 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4146 cat >> confdefs.h
<<EOF
4147 #define $ac_tr_func 1
4151 echo "$ac_t""no" 1>&6
4155 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4156 set dummy gmsgfmt
; ac_word
=$2
4157 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4158 echo "configure:4159: checking for $ac_word" >&5
4159 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
4160 echo $ac_n "(cached) $ac_c" 1>&6
4164 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
4167 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
4170 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
4172 for ac_dir
in $ac_dummy; do
4173 test -z "$ac_dir" && ac_dir
=.
4174 if test -f $ac_dir/$ac_word; then
4175 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
4180 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
4184 GMSGFMT
="$ac_cv_path_GMSGFMT"
4185 if test -n "$GMSGFMT"; then
4186 echo "$ac_t""$GMSGFMT" 1>&6
4188 echo "$ac_t""no" 1>&6
4191 # Extract the first word of "xgettext", so it can be a program name with args.
4192 set dummy xgettext
; ac_word
=$2
4193 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4194 echo "configure:4195: checking for $ac_word" >&5
4195 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
4196 echo $ac_n "(cached) $ac_c" 1>&6
4200 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
4203 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
4204 for ac_dir
in $PATH; do
4205 test -z "$ac_dir" && ac_dir
=.
4206 if test -f $ac_dir/$ac_word; then
4207 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
4208 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
4214 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
4218 XGETTEXT
="$ac_cv_path_XGETTEXT"
4219 if test -n "$XGETTEXT"; then
4220 echo "$ac_t""$XGETTEXT" 1>&6
4222 echo "$ac_t""no" 1>&6
4225 cat > conftest.
$ac_ext <<EOF
4226 #line 4227 "configure"
4227 #include "confdefs.h"
4230 extern int _nl_msg_cat_cntr;
4231 return _nl_msg_cat_cntr
4234 if { (eval echo configure
:4235: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4239 echo "configure: failed program was:" >&5
4240 cat conftest.
$ac_ext >&5
4251 echo "$ac_t""no" 1>&6
4256 if test "$CATOBJEXT" = "NONE"; then
4257 nls_cv_use_gnu_gettext
=yes
4261 if test "$nls_cv_use_gnu_gettext" = "yes"; then
4262 INTLOBJS
="\$(GETTOBJS)"
4263 # Extract the first word of "msgfmt", so it can be a program name with args.
4264 set dummy msgfmt
; ac_word
=$2
4265 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4266 echo "configure:4267: checking for $ac_word" >&5
4267 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
4268 echo $ac_n "(cached) $ac_c" 1>&6
4272 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
4275 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
4276 for ac_dir
in $PATH; do
4277 test -z "$ac_dir" && ac_dir
=.
4278 if test -f $ac_dir/$ac_word; then
4279 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
4280 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
4286 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="msgfmt"
4290 MSGFMT
="$ac_cv_path_MSGFMT"
4291 if test -n "$MSGFMT"; then
4292 echo "$ac_t""$MSGFMT" 1>&6
4294 echo "$ac_t""no" 1>&6
4297 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4298 set dummy gmsgfmt
; ac_word
=$2
4299 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4300 echo "configure:4301: checking for $ac_word" >&5
4301 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
4302 echo $ac_n "(cached) $ac_c" 1>&6
4306 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
4309 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
4312 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
4314 for ac_dir
in $ac_dummy; do
4315 test -z "$ac_dir" && ac_dir
=.
4316 if test -f $ac_dir/$ac_word; then
4317 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
4322 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
4326 GMSGFMT
="$ac_cv_path_GMSGFMT"
4327 if test -n "$GMSGFMT"; then
4328 echo "$ac_t""$GMSGFMT" 1>&6
4330 echo "$ac_t""no" 1>&6
4333 # Extract the first word of "xgettext", so it can be a program name with args.
4334 set dummy xgettext
; ac_word
=$2
4335 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4336 echo "configure:4337: checking for $ac_word" >&5
4337 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
4338 echo $ac_n "(cached) $ac_c" 1>&6
4342 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
4345 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
4346 for ac_dir
in $PATH; do
4347 test -z "$ac_dir" && ac_dir
=.
4348 if test -f $ac_dir/$ac_word; then
4349 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
4350 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
4356 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
4360 XGETTEXT
="$ac_cv_path_XGETTEXT"
4361 if test -n "$XGETTEXT"; then
4362 echo "$ac_t""$XGETTEXT" 1>&6
4364 echo "$ac_t""no" 1>&6
4368 USE_INCLUDED_LIBINTL
=yes
4372 INTLDEPS
='$(top_builddir)/../intl/libintl.a'
4374 LIBS
=`echo $LIBS | sed -e 's/-lintl//'`
4375 nls_cv_header_intl
=libintl.h
4376 nls_cv_header_libgt
=libgettext.h
4379 if test "$XGETTEXT" != ":"; then
4380 if $XGETTEXT --omit-header /dev
/null
2> /dev
/null
; then
4383 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
4388 # We need to process the po/ directory.
4392 nls_cv_header_intl
=libintl.h
4393 nls_cv_header_libgt
=libgettext.h
4396 # If this is used in GNU gettext we have to set USE_NLS to `yes'
4397 # because some of the sources are only built for this goal.
4398 if test "$PACKAGE" = gettext; then
4400 USE_INCLUDED_LIBINTL
=yes
4403 for lang
in $ALL_LINGUAS; do
4404 GMOFILES
="$GMOFILES $lang.gmo"
4405 POFILES
="$POFILES $lang.po"
4421 if test "x$CATOBJEXT" != "x"; then
4422 if test "x$ALL_LINGUAS" = "x"; then
4425 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
4426 echo "configure:4427: checking for catalogs to be installed" >&5
4428 for lang
in ${LINGUAS=$ALL_LINGUAS}; do
4429 case "$ALL_LINGUAS" in
4430 *$lang*) NEW_LINGUAS
="$NEW_LINGUAS $lang" ;;
4433 LINGUAS
=$NEW_LINGUAS
4434 echo "$ac_t""$LINGUAS" 1>&6
4437 if test -n "$LINGUAS"; then
4438 for lang
in $LINGUAS; do CATALOGS
="$CATALOGS $lang$CATOBJEXT"; done
4442 if test $ac_cv_header_locale_h = yes; then
4443 INCLUDE_LOCALE_H
="#include <locale.h>"
4446 /* The system does not provide the header <locale.h>. Take care yourself. */"
4450 if test -f $srcdir/po2tbl.
sed.
in; then
4451 if test "$CATOBJEXT" = ".cat"; then
4452 ac_safe
=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
4453 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
4454 echo "configure:4455: checking for linux/version.h" >&5
4455 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4456 echo $ac_n "(cached) $ac_c" 1>&6
4458 cat > conftest.
$ac_ext <<EOF
4459 #line 4460 "configure"
4460 #include "confdefs.h"
4461 #include <linux/version.h>
4463 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4464 { (eval echo configure
:4465: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4465 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4466 if test -z "$ac_err"; then
4468 eval "ac_cv_header_$ac_safe=yes"
4471 echo "configure: failed program was:" >&5
4472 cat conftest.
$ac_ext >&5
4474 eval "ac_cv_header_$ac_safe=no"
4478 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4479 echo "$ac_t""yes" 1>&6
4482 echo "$ac_t""no" 1>&6
4487 sed -e '/^#/d' $srcdir/$msgformat-msg.
sed > po2msg.
sed
4489 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
4490 $srcdir/po2tbl.
sed.
in > po2tbl.
sed
4493 if test "$PACKAGE" = "gettext"; then
4503 MKINSTALLDIRS
="\$(srcdir)/../../mkinstalldirs"
4509 if test -d $srcdir/po
; then
4510 test -d po || mkdir po
4511 if test "x$srcdir" != "x."; then
4512 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
4513 posrcprefix
="$srcdir/"
4515 posrcprefix
="../$srcdir/"
4521 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
4522 < $srcdir/po
/POTFILES.
in > po
/POTFILES
4526 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
4527 echo "configure:4528: checking whether to enable maintainer-specific portions of Makefiles" >&5
4528 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4529 if test "${enable_maintainer_mode+set}" = set; then
4530 enableval
="$enable_maintainer_mode"
4531 USE_MAINTAINER_MODE
=$enableval
4533 USE_MAINTAINER_MODE
=no
4536 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
4539 if test $USE_MAINTAINER_MODE = yes; then
4540 MAINTAINER_MODE_TRUE
=
4541 MAINTAINER_MODE_FALSE
='#'
4543 MAINTAINER_MODE_TRUE
='#'
4544 MAINTAINER_MODE_FALSE
=
4546 MAINT
=$MAINTAINER_MODE_TRUE
4549 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
4550 echo "configure:4551: checking for Cygwin environment" >&5
4551 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
4552 echo $ac_n "(cached) $ac_c" 1>&6
4554 cat > conftest.
$ac_ext <<EOF
4555 #line 4556 "configure"
4556 #include "confdefs.h"
4561 #define __CYGWIN__ __CYGWIN32__
4566 if { (eval echo configure
:4567: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4570 echo "configure: failed program was:" >&5
4571 cat conftest.
$ac_ext >&5
4579 echo "$ac_t""$ac_cv_cygwin" 1>&6
4581 test "$ac_cv_cygwin" = yes && CYGWIN
=yes
4582 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
4583 echo "configure:4584: checking for mingw32 environment" >&5
4584 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
4585 echo $ac_n "(cached) $ac_c" 1>&6
4587 cat > conftest.
$ac_ext <<EOF
4588 #line 4589 "configure"
4589 #include "confdefs.h"
4595 if { (eval echo configure
:4596: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4599 echo "configure: failed program was:" >&5
4600 cat conftest.
$ac_ext >&5
4608 echo "$ac_t""$ac_cv_mingw32" 1>&6
4610 test "$ac_cv_mingw32" = yes && MINGW32
=yes
4613 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
4614 echo "configure:4615: checking for executable suffix" >&5
4615 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
4616 echo $ac_n "(cached) $ac_c" 1>&6
4618 if test "$CYGWIN" = yes ||
test "$MINGW32" = yes; then
4622 echo 'int main () { return 0; }' > conftest.
$ac_ext
4624 if { (eval echo configure
:4625: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
4625 for file in conftest.
*; do
4627 *.c |
*.o |
*.obj |
*.ilk |
*.pdb
) ;;
4628 *) ac_cv_exeext
=`echo $file | sed -e s/conftest//` ;;
4632 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
4635 test x
"${ac_cv_exeext}" = x
&& ac_cv_exeext
=no
4640 test x
"${ac_cv_exeext}" != xno
&& EXEEXT
=${ac_cv_exeext}
4641 echo "$ac_t""${ac_cv_exeext}" 1>&6
4645 for ac_hdr
in string.h stdlib.h memory.h
strings.h unistd.h stdarg.h varargs.h errno.h sys
/types.h
4647 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4648 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4649 echo "configure:4650: checking for $ac_hdr" >&5
4650 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4651 echo $ac_n "(cached) $ac_c" 1>&6
4653 cat > conftest.
$ac_ext <<EOF
4654 #line 4655 "configure"
4655 #include "confdefs.h"
4658 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4659 { (eval echo configure
:4660: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4660 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4661 if test -z "$ac_err"; then
4663 eval "ac_cv_header_$ac_safe=yes"
4666 echo "configure: failed program was:" >&5
4667 cat conftest.
$ac_ext >&5
4669 eval "ac_cv_header_$ac_safe=no"
4673 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4674 echo "$ac_t""yes" 1>&6
4675 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4676 cat >> confdefs.h
<<EOF
4677 #define $ac_tr_hdr 1
4681 echo "$ac_t""no" 1>&6
4686 # Put this here so that autoconf's "cross-compiling" message doesn't confuse
4687 # people who are not cross-compiling but are compiling cross-assemblers.
4688 echo $ac_n "checking whether compiling a cross-assembler""... $ac_c" 1>&6
4689 echo "configure:4690: checking whether compiling a cross-assembler" >&5
4690 if test "${host}" = "${target}"; then
4694 cat >> confdefs.h
<<\EOF
4695 #define CROSS_COMPILE 1
4699 echo "$ac_t""$cross_gas" 1>&6
4701 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4702 # for constant arguments. Useless!
4703 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
4704 echo "configure:4705: checking for working alloca.h" >&5
4705 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
4706 echo $ac_n "(cached) $ac_c" 1>&6
4708 cat > conftest.
$ac_ext <<EOF
4709 #line 4710 "configure"
4710 #include "confdefs.h"
4713 char *p = alloca(2 * sizeof(int));
4716 if { (eval echo configure
:4717: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4718 ac_cv_header_alloca_h
=yes
4720 echo "configure: failed program was:" >&5
4721 cat conftest.
$ac_ext >&5
4723 ac_cv_header_alloca_h
=no
4728 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
4729 if test $ac_cv_header_alloca_h = yes; then
4730 cat >> confdefs.h
<<\EOF
4731 #define HAVE_ALLOCA_H 1
4736 echo $ac_n "checking for alloca""... $ac_c" 1>&6
4737 echo "configure:4738: checking for alloca" >&5
4738 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
4739 echo $ac_n "(cached) $ac_c" 1>&6
4741 cat > conftest.
$ac_ext <<EOF
4742 #line 4743 "configure"
4743 #include "confdefs.h"
4746 # define alloca __builtin_alloca
4749 # include <malloc.h>
4750 # define alloca _alloca
4753 # include <alloca.h>
4758 # ifndef alloca /* predefined by HP cc +Olibcalls */
4767 char *p = (char *) alloca(1);
4770 if { (eval echo configure
:4771: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4772 ac_cv_func_alloca_works
=yes
4774 echo "configure: failed program was:" >&5
4775 cat conftest.
$ac_ext >&5
4777 ac_cv_func_alloca_works
=no
4782 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
4783 if test $ac_cv_func_alloca_works = yes; then
4784 cat >> confdefs.h
<<\EOF
4785 #define HAVE_ALLOCA 1
4790 if test $ac_cv_func_alloca_works = no
; then
4791 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
4792 # that cause trouble. Some versions do not even contain alloca or
4793 # contain a buggy version. If you still want to use their alloca,
4794 # use ar to extract alloca.o from them instead of compiling alloca.c.
4795 ALLOCA
=alloca.
${ac_objext}
4796 cat >> confdefs.h
<<\EOF
4801 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
4802 echo "configure:4803: checking whether alloca needs Cray hooks" >&5
4803 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
4804 echo $ac_n "(cached) $ac_c" 1>&6
4806 cat > conftest.
$ac_ext <<EOF
4807 #line 4808 "configure"
4808 #include "confdefs.h"
4809 #if defined(CRAY) && ! defined(CRAY2)
4816 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4817 egrep "webecray" >/dev
/null
2>&1; then
4828 echo "$ac_t""$ac_cv_os_cray" 1>&6
4829 if test $ac_cv_os_cray = yes; then
4830 for ac_func
in _getb67 GETB67 getb67
; do
4831 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4832 echo "configure:4833: checking for $ac_func" >&5
4833 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4834 echo $ac_n "(cached) $ac_c" 1>&6
4836 cat > conftest.
$ac_ext <<EOF
4837 #line 4838 "configure"
4838 #include "confdefs.h"
4839 /* System header to define __stub macros and hopefully few prototypes,
4840 which can conflict with char $ac_func(); below. */
4842 /* Override any gcc2 internal prototype to avoid an error. */
4843 /* We use char because int might match the return type of a gcc2
4844 builtin and then its argument prototype would still apply. */
4849 /* The GNU C library defines this for functions which it implements
4850 to always fail with ENOSYS. Some functions are actually named
4851 something starting with __ and the normal name is an alias. */
4852 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4860 if { (eval echo configure
:4861: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4862 eval "ac_cv_func_$ac_func=yes"
4864 echo "configure: failed program was:" >&5
4865 cat conftest.
$ac_ext >&5
4867 eval "ac_cv_func_$ac_func=no"
4872 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4873 echo "$ac_t""yes" 1>&6
4874 cat >> confdefs.h
<<EOF
4875 #define CRAY_STACKSEG_END $ac_func
4880 echo "$ac_t""no" 1>&6
4886 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
4887 echo "configure:4888: checking stack direction for C alloca" >&5
4888 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
4889 echo $ac_n "(cached) $ac_c" 1>&6
4891 if test "$cross_compiling" = yes; then
4892 ac_cv_c_stack_direction
=0
4894 cat > conftest.
$ac_ext <<EOF
4895 #line 4896 "configure"
4896 #include "confdefs.h"
4897 find_stack_direction ()
4899 static char *addr = 0;
4904 return find_stack_direction ();
4907 return (&dummy > addr) ? 1 : -1;
4911 exit (find_stack_direction() < 0);
4914 if { (eval echo configure
:4915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4916 ac_cv_c_stack_direction
=1
4918 echo "configure: failed program was:" >&5
4919 cat conftest.
$ac_ext >&5
4921 ac_cv_c_stack_direction
=-1
4928 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
4929 cat >> confdefs.h
<<EOF
4930 #define STACK_DIRECTION $ac_cv_c_stack_direction
4935 echo $ac_n "checking for inline""... $ac_c" 1>&6
4936 echo "configure:4937: checking for inline" >&5
4937 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
4938 echo $ac_n "(cached) $ac_c" 1>&6
4941 for ac_kw
in inline __inline__ __inline
; do
4942 cat > conftest.
$ac_ext <<EOF
4943 #line 4944 "configure"
4944 #include "confdefs.h"
4950 if { (eval echo configure
:4951: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4952 ac_cv_c_inline
=$ac_kw; break
4954 echo "configure: failed program was:" >&5
4955 cat conftest.
$ac_ext >&5
4962 echo "$ac_t""$ac_cv_c_inline" 1>&6
4963 case "$ac_cv_c_inline" in
4965 no
) cat >> confdefs.h
<<\EOF
4969 *) cat >> confdefs.h
<<EOF
4970 #define inline $ac_cv_c_inline
4976 # VMS doesn't have unlink.
4977 for ac_func
in unlink remove
4979 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4980 echo "configure:4981: checking for $ac_func" >&5
4981 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4982 echo $ac_n "(cached) $ac_c" 1>&6
4984 cat > conftest.
$ac_ext <<EOF
4985 #line 4986 "configure"
4986 #include "confdefs.h"
4987 /* System header to define __stub macros and hopefully few prototypes,
4988 which can conflict with char $ac_func(); below. */
4990 /* Override any gcc2 internal prototype to avoid an error. */
4991 /* We use char because int might match the return type of a gcc2
4992 builtin and then its argument prototype would still apply. */
4997 /* The GNU C library defines this for functions which it implements
4998 to always fail with ENOSYS. Some functions are actually named
4999 something starting with __ and the normal name is an alias. */
5000 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5008 if { (eval echo configure
:5009: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5010 eval "ac_cv_func_$ac_func=yes"
5012 echo "configure: failed program was:" >&5
5013 cat conftest.
$ac_ext >&5
5015 eval "ac_cv_func_$ac_func=no"
5020 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5021 echo "$ac_t""yes" 1>&6
5022 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5023 cat >> confdefs.h
<<EOF
5024 #define $ac_tr_func 1
5028 echo "$ac_t""no" 1>&6
5033 # Some systems don't have sbrk().
5036 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5037 echo "configure:5038: checking for $ac_func" >&5
5038 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5039 echo $ac_n "(cached) $ac_c" 1>&6
5041 cat > conftest.
$ac_ext <<EOF
5042 #line 5043 "configure"
5043 #include "confdefs.h"
5044 /* System header to define __stub macros and hopefully few prototypes,
5045 which can conflict with char $ac_func(); below. */
5047 /* Override any gcc2 internal prototype to avoid an error. */
5048 /* We use char because int might match the return type of a gcc2
5049 builtin and then its argument prototype would still apply. */
5054 /* The GNU C library defines this for functions which it implements
5055 to always fail with ENOSYS. Some functions are actually named
5056 something starting with __ and the normal name is an alias. */
5057 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5065 if { (eval echo configure
:5066: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5067 eval "ac_cv_func_$ac_func=yes"
5069 echo "configure: failed program was:" >&5
5070 cat conftest.
$ac_ext >&5
5072 eval "ac_cv_func_$ac_func=no"
5077 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5078 echo "$ac_t""yes" 1>&6
5079 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5080 cat >> confdefs.h
<<EOF
5081 #define $ac_tr_func 1
5085 echo "$ac_t""no" 1>&6
5090 # Some non-ANSI preprocessors botch requoting inside strings. That's bad
5091 # enough, but on some of those systems, the assert macro relies on requoting
5093 echo $ac_n "checking for working assert macro""... $ac_c" 1>&6
5094 echo "configure:5095: checking for working assert macro" >&5
5095 if eval "test \"`echo '$''{'gas_cv_assert_ok'+set}'`\" = set"; then
5096 echo $ac_n "(cached) $ac_c" 1>&6
5098 cat > conftest.
$ac_ext <<EOF
5099 #line 5100 "configure"
5100 #include "confdefs.h"
5105 /* check for requoting problems */
5106 static int a, b, c, d;
5108 assert (!strcmp(s, "foo bar baz quux"));
5109 /* check for newline handling */
5115 if { (eval echo configure
:5116: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5117 gas_cv_assert_ok
=yes
5119 echo "configure: failed program was:" >&5
5120 cat conftest.
$ac_ext >&5
5126 echo "$ac_t""$gas_cv_assert_ok" 1>&6
5127 test $gas_cv_assert_ok = yes ||
cat >> confdefs.h
<<\EOF
5128 #define BROKEN_ASSERT 1
5133 # On some systems, the system header files may not declare malloc, realloc,
5134 # and free. There are places where gas needs these functions to have been
5135 # declared -- such as when taking their addresses.
5137 #ifdef HAVE_MEMORY_H
5140 #ifdef HAVE_STRING_H
5143 #ifdef HAVE_STRINGS_H
5144 #include <strings.h>
5147 #ifdef HAVE_STDLIB_H
5150 #ifdef HAVE_UNISTD_H
5155 echo $ac_n "checking whether declaration is required for strstr""... $ac_c" 1>&6
5156 echo "configure:5157: checking whether declaration is required for strstr" >&5
5157 if eval "test \"`echo '$''{'gas_cv_decl_needed_strstr'+set}'`\" = set"; then
5158 echo $ac_n "(cached) $ac_c" 1>&6
5160 cat > conftest.
$ac_ext <<EOF
5161 #line 5162 "configure"
5162 #include "confdefs.h"
5166 typedef char *(*f)();
5172 if { (eval echo configure
:5173: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5174 gas_cv_decl_needed_strstr
=no
5176 echo "configure: failed program was:" >&5
5177 cat conftest.
$ac_ext >&5
5179 gas_cv_decl_needed_strstr
=yes
5183 echo "$ac_t""$gas_cv_decl_needed_strstr" 1>&6
5184 if test $gas_cv_decl_needed_strstr = yes; then
5185 cat >> confdefs.h
<<\EOF
5186 #define NEED_DECLARATION_STRSTR 1
5192 echo $ac_n "checking whether declaration is required for malloc""... $ac_c" 1>&6
5193 echo "configure:5194: checking whether declaration is required for malloc" >&5
5194 if eval "test \"`echo '$''{'gas_cv_decl_needed_malloc'+set}'`\" = set"; then
5195 echo $ac_n "(cached) $ac_c" 1>&6
5197 cat > conftest.
$ac_ext <<EOF
5198 #line 5199 "configure"
5199 #include "confdefs.h"
5203 typedef char *(*f)();
5209 if { (eval echo configure
:5210: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5211 gas_cv_decl_needed_malloc
=no
5213 echo "configure: failed program was:" >&5
5214 cat conftest.
$ac_ext >&5
5216 gas_cv_decl_needed_malloc
=yes
5220 echo "$ac_t""$gas_cv_decl_needed_malloc" 1>&6
5221 if test $gas_cv_decl_needed_malloc = yes; then
5222 cat >> confdefs.h
<<\EOF
5223 #define NEED_DECLARATION_MALLOC 1
5229 echo $ac_n "checking whether declaration is required for free""... $ac_c" 1>&6
5230 echo "configure:5231: checking whether declaration is required for free" >&5
5231 if eval "test \"`echo '$''{'gas_cv_decl_needed_free'+set}'`\" = set"; then
5232 echo $ac_n "(cached) $ac_c" 1>&6
5234 cat > conftest.
$ac_ext <<EOF
5235 #line 5236 "configure"
5236 #include "confdefs.h"
5240 typedef void (*f)();
5246 if { (eval echo configure
:5247: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5248 gas_cv_decl_needed_free
=no
5250 echo "configure: failed program was:" >&5
5251 cat conftest.
$ac_ext >&5
5253 gas_cv_decl_needed_free
=yes
5257 echo "$ac_t""$gas_cv_decl_needed_free" 1>&6
5258 if test $gas_cv_decl_needed_free = yes; then
5259 cat >> confdefs.h
<<\EOF
5260 #define NEED_DECLARATION_FREE 1
5266 echo $ac_n "checking whether declaration is required for sbrk""... $ac_c" 1>&6
5267 echo "configure:5268: checking whether declaration is required for sbrk" >&5
5268 if eval "test \"`echo '$''{'gas_cv_decl_needed_sbrk'+set}'`\" = set"; then
5269 echo $ac_n "(cached) $ac_c" 1>&6
5271 cat > conftest.
$ac_ext <<EOF
5272 #line 5273 "configure"
5273 #include "confdefs.h"
5277 typedef char *(*f)();
5283 if { (eval echo configure
:5284: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5285 gas_cv_decl_needed_sbrk
=no
5287 echo "configure: failed program was:" >&5
5288 cat conftest.
$ac_ext >&5
5290 gas_cv_decl_needed_sbrk
=yes
5294 echo "$ac_t""$gas_cv_decl_needed_sbrk" 1>&6
5295 if test $gas_cv_decl_needed_sbrk = yes; then
5296 cat >> confdefs.h
<<\EOF
5297 #define NEED_DECLARATION_SBRK 1
5303 echo $ac_n "checking whether declaration is required for environ""... $ac_c" 1>&6
5304 echo "configure:5305: checking whether declaration is required for environ" >&5
5305 if eval "test \"`echo '$''{'gas_cv_decl_needed_environ'+set}'`\" = set"; then
5306 echo $ac_n "(cached) $ac_c" 1>&6
5308 cat > conftest.
$ac_ext <<EOF
5309 #line 5310 "configure"
5310 #include "confdefs.h"
5320 if { (eval echo configure
:5321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5322 gas_cv_decl_needed_environ
=no
5324 echo "configure: failed program was:" >&5
5325 cat conftest.
$ac_ext >&5
5327 gas_cv_decl_needed_environ
=yes
5331 echo "$ac_t""$gas_cv_decl_needed_environ" 1>&6
5332 if test $gas_cv_decl_needed_environ = yes; then
5333 cat >> confdefs.h
<<\EOF
5334 #define NEED_DECLARATION_ENVIRON 1
5340 # Does errno.h declare errno, or do we have to add a separate declaration
5343 echo $ac_n "checking whether declaration is required for errno""... $ac_c" 1>&6
5344 echo "configure:5345: checking whether declaration is required for errno" >&5
5345 if eval "test \"`echo '$''{'gas_cv_decl_needed_errno'+set}'`\" = set"; then
5346 echo $ac_n "(cached) $ac_c" 1>&6
5348 cat > conftest.
$ac_ext <<EOF
5349 #line 5350 "configure"
5350 #include "confdefs.h"
5364 if { (eval echo configure
:5365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5366 gas_cv_decl_needed_errno
=no
5368 echo "configure: failed program was:" >&5
5369 cat conftest.
$ac_ext >&5
5371 gas_cv_decl_needed_errno
=yes
5375 echo "$ac_t""$gas_cv_decl_needed_errno" 1>&6
5376 if test $gas_cv_decl_needed_errno = yes; then
5377 cat >> confdefs.h
<<\EOF
5378 #define NEED_DECLARATION_ERRNO 1
5387 cat > confcache
<<\EOF
5388 # This file is a shell script that caches the results of configure
5389 # tests run on this system so they can be shared between configure
5390 # scripts and configure runs. It is not useful on other systems.
5391 # If it contains results you don't want to keep, you may remove or edit it.
5393 # By default, configure uses ./config.cache as the cache file,
5394 # creating it if it does not exist already. You can give configure
5395 # the --cache-file=FILE option to use a different cache file; that is
5396 # what configure does when it calls configure scripts in
5397 # subdirectories, so they share the cache.
5398 # Giving --cache-file=/dev/null disables caching, for debugging configure.
5399 # config.status only pays attention to the cache file if you give it the
5400 # --recheck option to rerun configure.
5403 # The following way of writing the cache mishandles newlines in values,
5404 # but we know of no workaround that is simple, portable, and efficient.
5405 # So, don't put newlines in cache variables' values.
5406 # Ultrix sh set writes to stderr and can't be redirected directly,
5407 # and sets the high bit in the cache file unless we assign to the vars.
5409 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5411 # `set' does not quote correctly, so add quotes (double-quote substitution
5412 # turns \\\\ into \\, and sed turns \\ into \).
5414 -e "s/'/'\\\\''/g" \
5415 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
5418 # `set' quotes correctly as required by POSIX, so do not add quotes.
5419 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
5422 if cmp -s $cache_file confcache
; then
5425 if test -w $cache_file; then
5426 echo "updating cache $cache_file"
5427 cat confcache
> $cache_file
5429 echo "not updating unwritable cache $cache_file"
5434 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
5436 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
5437 # Let make expand exec_prefix.
5438 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
5440 # Any assignment to VPATH causes Sun make to only execute
5441 # the first set of double-colon rules, so remove it if not needed.
5442 # If there is a colon in the path, we need to keep it.
5443 if test "x$srcdir" = x.
; then
5444 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
5447 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
5449 DEFS
=-DHAVE_CONFIG_H
5451 # Without the "./", some shells look in PATH for config.status.
5452 : ${CONFIG_STATUS=./config.status}
5454 echo creating
$CONFIG_STATUS
5455 rm -f $CONFIG_STATUS
5456 cat > $CONFIG_STATUS <<EOF
5458 # Generated automatically by configure.
5459 # Run this file to recreate the current configuration.
5460 # This directory was configured as follows,
5461 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5463 # $0 $ac_configure_args
5465 # Compiler output produced by configure, useful for debugging
5466 # configure, is in ./config.log if it exists.
5468 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
5471 case "\$ac_option" in
5472 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5473 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
5474 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
5475 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
5476 echo "$CONFIG_STATUS generated by autoconf version 2.13"
5478 -help | --help | --hel | --he | --h)
5479 echo "\$ac_cs_usage"; exit 0 ;;
5480 *) echo "\$ac_cs_usage"; exit 1 ;;
5484 ac_given_srcdir=$srcdir
5485 ac_given_INSTALL="$INSTALL"
5487 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
5489 cat >> $CONFIG_STATUS <<EOF
5491 # Protect against being on the right side of a sed subst in config.status.
5492 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
5493 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
5497 s%@CFLAGS@%$CFLAGS%g
5498 s%@CPPFLAGS@%$CPPFLAGS%g
5499 s%@CXXFLAGS@%$CXXFLAGS%g
5500 s%@FFLAGS@%$FFLAGS%g
5502 s%@LDFLAGS@%$LDFLAGS%g
5504 s%@exec_prefix@%$exec_prefix%g
5505 s%@prefix@%$prefix%g
5506 s%@program_transform_name@%$program_transform_name%g
5507 s%@bindir@%$bindir%g
5508 s%@sbindir@%$sbindir%g
5509 s%@libexecdir@%$libexecdir%g
5510 s%@datadir@%$datadir%g
5511 s%@sysconfdir@%$sysconfdir%g
5512 s%@sharedstatedir@%$sharedstatedir%g
5513 s%@localstatedir@%$localstatedir%g
5514 s%@libdir@%$libdir%g
5515 s%@includedir@%$includedir%g
5516 s%@oldincludedir@%$oldincludedir%g
5517 s%@infodir@%$infodir%g
5518 s%@mandir@%$mandir%g
5520 s%@host_alias@%$host_alias%g
5521 s%@host_cpu@%$host_cpu%g
5522 s%@host_vendor@%$host_vendor%g
5523 s%@host_os@%$host_os%g
5524 s%@target@%$target%g
5525 s%@target_alias@%$target_alias%g
5526 s%@target_cpu@%$target_cpu%g
5527 s%@target_vendor@%$target_vendor%g
5528 s%@target_os@%$target_os%g
5530 s%@build_alias@%$build_alias%g
5531 s%@build_cpu@%$build_cpu%g
5532 s%@build_vendor@%$build_vendor%g
5533 s%@build_os@%$build_os%g
5534 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
5535 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
5536 s%@INSTALL_DATA@%$INSTALL_DATA%g
5537 s%@PACKAGE@%$PACKAGE%g
5538 s%@VERSION@%$VERSION%g
5539 s%@ACLOCAL@%$ACLOCAL%g
5540 s%@AUTOCONF@%$AUTOCONF%g
5541 s%@AUTOMAKE@%$AUTOMAKE%g
5542 s%@AUTOHEADER@%$AUTOHEADER%g
5543 s%@MAKEINFO@%$MAKEINFO%g
5544 s%@SET_MAKE@%$SET_MAKE%g
5545 s%@RANLIB@%$RANLIB%g
5548 s%@LIBTOOL@%$LIBTOOL%g
5549 s%@GDBINIT@%$GDBINIT%g
5550 s%@cgen_cpu_prefix@%$cgen_cpu_prefix%g
5551 s%@extra_objects@%$extra_objects%g
5552 s%@target_cpu_type@%$target_cpu_type%g
5553 s%@obj_format@%$obj_format%g
5554 s%@te_file@%$te_file%g
5555 s%@install_tooldir@%$install_tooldir%g
5557 s%@BFDLIB@%$BFDLIB%g
5558 s%@OPCODES_LIB@%$OPCODES_LIB%g
5559 s%@ALL_OBJ_DEPS@%$ALL_OBJ_DEPS%g
5562 s%@LEXLIB@%$LEXLIB%g
5564 s%@LEX_OUTPUT_ROOT@%$LEX_OUTPUT_ROOT%g
5565 s%@ALLOCA@%$ALLOCA%g
5566 s%@USE_NLS@%$USE_NLS%g
5567 s%@MSGFMT@%$MSGFMT%g
5568 s%@GMSGFMT@%$GMSGFMT%g
5569 s%@XGETTEXT@%$XGETTEXT%g
5570 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
5571 s%@CATALOGS@%$CATALOGS%g
5572 s%@CATOBJEXT@%$CATOBJEXT%g
5573 s%@DATADIRNAME@%$DATADIRNAME%g
5574 s%@GMOFILES@%$GMOFILES%g
5575 s%@INSTOBJEXT@%$INSTOBJEXT%g
5576 s%@INTLDEPS@%$INTLDEPS%g
5577 s%@INTLLIBS@%$INTLLIBS%g
5578 s%@INTLOBJS@%$INTLOBJS%g
5579 s%@POFILES@%$POFILES%g
5581 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
5583 s%@GT_YES@%$GT_YES%g
5584 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
5586 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
5587 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
5589 s%@EXEEXT@%$EXEEXT%g
5594 cat >> $CONFIG_STATUS <<\EOF
5596 # Split the substitutions into bite-sized pieces for seds with
5597 # small command number limits, like on Digital OSF/1 and HP-UX.
5598 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
5599 ac_file
=1 # Number of current file.
5600 ac_beg
=1 # First line for current file.
5601 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
5604 while $ac_more_lines; do
5605 if test $ac_beg -gt 1; then
5606 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
5608 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
5610 if test ! -s conftest.s
$ac_file; then
5612 rm -f conftest.s
$ac_file
5614 if test -z "$ac_sed_cmds"; then
5615 ac_sed_cmds
="sed -f conftest.s$ac_file"
5617 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
5619 ac_file
=`expr $ac_file + 1`
5621 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
5624 if test -z "$ac_sed_cmds"; then
5629 cat >> $CONFIG_STATUS <<EOF
5631 CONFIG_FILES=\${CONFIG_FILES-"Makefile doc/Makefile ${GDBINIT}:gdbinit.in po/Makefile.in:po/Make-in"}
5633 cat >> $CONFIG_STATUS <<\EOF
5634 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
5635 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5637 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
5638 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
5639 *) ac_file_in
="${ac_file}.in" ;;
5642 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
5644 # Remove last slash and all that follows it. Not all systems have dirname.
5645 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5646 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
5647 # The file is in a subdirectory.
5648 test ! -d "$ac_dir" && mkdir
"$ac_dir"
5649 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
5650 # A "../" for each directory in $ac_dir_suffix.
5651 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
5653 ac_dir_suffix
= ac_dots
=
5656 case "$ac_given_srcdir" in
5658 if test -z "$ac_dots"; then top_srcdir
=.
5659 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
5660 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
5662 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
5663 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
5666 case "$ac_given_INSTALL" in
5667 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
5668 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
5671 echo creating
"$ac_file"
5673 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
5675 *Makefile
*) ac_comsub
="1i\\
5676 # $configure_input" ;;
5680 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5682 s%@configure_input@%$configure_input%g
5683 s%@srcdir@%$srcdir%g
5684 s%@top_srcdir@%$top_srcdir%g
5685 s%@INSTALL@%$INSTALL%g
5686 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
5690 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5691 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5693 # ac_d sets the value in "#define NAME VALUE" lines.
5694 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5695 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
5698 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
5699 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5700 ac_uB
='\([ ]\)%\1#\2define\3'
5703 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5704 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5705 ac_eB
='$%\1#\2define\3'
5709 if test "${CONFIG_HEADERS+set}" != set; then
5711 cat >> $CONFIG_STATUS <<EOF
5712 CONFIG_HEADERS="config.h:config.in"
5714 cat >> $CONFIG_STATUS <<\EOF
5716 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
5717 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5719 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
5720 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
5721 *) ac_file_in
="${ac_file}.in" ;;
5724 echo creating
$ac_file
5726 rm -f conftest.frag conftest.
in conftest.out
5727 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5728 cat $ac_file_inputs > conftest.
in
5732 # Transform confdefs.h into a sed script conftest.vals that substitutes
5733 # the proper values into config.h.in to produce config.h. And first:
5734 # Protect against being on the right side of a sed subst in config.status.
5735 # Protect against being in an unquoted here document in config.status.
5737 cat > conftest.hdr
<<\EOF
5740 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
5744 sed -n -f conftest.hdr confdefs.h > conftest.vals
5747 # This sed command replaces #undef with comments. This is necessary, for
5748 # example, in the case of _POSIX_SOURCE, which is predefined and required
5749 # on some systems where configure will not decide to define it.
5750 cat >> conftest.vals <<\EOF
5751 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
5754 # Break up conftest.vals because some shells have a limit on
5755 # the size of here documents, and old seds have small limits too.
5760 ac_lines=`grep -c . conftest.vals
`
5761 # grep -c gives empty output for an empty file on some AIX systems.
5762 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
5763 # Write a limited-size here document to conftest.frag.
5764 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
5765 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
5767 sed -f conftest.frag conftest.in > conftest.out
5769 mv conftest.out conftest.in
5771 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
5773 mv conftest.tail conftest.vals
5777 cat >> $CONFIG_STATUS <<\EOF
5778 rm -f conftest.frag conftest.h
5779 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
5780 cat conftest.in >> conftest.h
5782 if cmp -s $ac_file conftest.h 2>/dev/null; then
5783 echo "$ac_file is unchanged"
5786 # Remove last slash and all that follows it. Not all systems have dirname.
5787 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
5788 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5789 # The file is in a subdirectory.
5790 test ! -d "$ac_dir" && mkdir "$ac_dir"
5793 mv conftest.h $ac_file
5798 cat >> $CONFIG_STATUS <<EOF
5800 target_cpu_type=${target_cpu_type}
5801 cgen_cpu_prefix=${cgen_cpu_prefix}
5802 obj_format=${obj_format}
5805 cat >> $CONFIG_STATUS <<\EOF
5806 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
5807 rm -f targ-cpu.c targ-cpu.h obj-format.h obj-format.c targ-env.h atof-targ.c itbl-cpu.h
5808 echo '#include "tc-'"${target_cpu_type}"'.h"' > targ-cpu.h
5809 echo '#include "obj-'"${obj_format}"'.h"' > obj-format.h
5810 echo '#include "te-'"${te_file}"'.h"' > targ-env.h
5811 echo '#include "itbl-'"${target_cpu_type}"'.h"' > itbl-cpu.h
5812 if test "x$cgen_cpu_prefix" != x ; then
5813 echo '#include "opcodes/'"${cgen_cpu_prefix}"'-desc.h"' > cgen-desc.h
5816 sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile
5819 chmod +x $CONFIG_STATUS
5820 rm -fr confdefs* $ac_clean_files
5821 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1