3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13.1
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix
=/usr
/local
13 # Any additions from configure.in:
15 --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
,
59 bindir
='${exec_prefix}/bin'
60 sbindir
='${exec_prefix}/sbin'
61 libexecdir
='${exec_prefix}/libexec'
62 datadir
='${prefix}/share'
63 sysconfdir
='${prefix}/etc'
64 sharedstatedir
='${prefix}/com'
65 localstatedir
='${prefix}/var'
66 libdir
='${exec_prefix}/lib'
67 includedir
='${prefix}/include'
68 oldincludedir
='/usr/include'
69 infodir
='${prefix}/info'
70 mandir
='${prefix}/man'
72 # Initialize some other variables.
75 SHELL
=${CONFIG_SHELL-/bin/sh}
76 # Maximum number of lines to put in a shell here document.
83 # If the previous option needs an argument, assign it.
84 if test -n "$ac_prev"; then
85 eval "$ac_prev=\$ac_option"
91 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
95 # Accept the important Cygnus configure options, so we can diagnose typos.
99 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
101 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
102 bindir
="$ac_optarg" ;;
104 -build |
--build |
--buil |
--bui |
--bu)
106 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
107 build
="$ac_optarg" ;;
109 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
110 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
111 ac_prev
=cache_file
;;
112 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
113 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
114 cache_file
="$ac_optarg" ;;
116 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
118 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
120 datadir
="$ac_optarg" ;;
122 -disable-* |
--disable-*)
123 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
124 # Reject names that are not valid shell variable names.
125 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
126 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
128 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
129 eval "enable_${ac_feature}=no" ;;
131 -enable-* |
--enable-*)
132 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
133 # Reject names that are not valid shell variable names.
134 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
135 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
137 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
142 eval "enable_${ac_feature}='$ac_optarg'" ;;
144 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
145 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
146 |
--exec |
--exe |
--ex)
147 ac_prev
=exec_prefix
;;
148 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
149 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
150 |
--exec=* |
--exe=* |
--ex=*)
151 exec_prefix
="$ac_optarg" ;;
153 -gas |
--gas |
--ga |
--g)
154 # Obsolete; use --with-gas.
157 -help |
--help |
--hel |
--he)
158 # Omit some internal or obsolete options to make the list less imposing.
159 # This message is too long to be a string in the A/UX 3.1 sh.
161 Usage: configure [options] [host]
162 Options: [defaults in brackets after descriptions]
164 --cache-file=FILE cache test results in FILE
165 --help print this message
166 --no-create do not create output files
167 --quiet, --silent do not print \`checking...' messages
168 --version print the version of autoconf that created configure
169 Directory and file names:
170 --prefix=PREFIX install architecture-independent files in PREFIX
172 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
174 --bindir=DIR user executables in DIR [EPREFIX/bin]
175 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
176 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
177 --datadir=DIR read-only architecture-independent data in DIR
179 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
180 --sharedstatedir=DIR modifiable architecture-independent data in DIR
182 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
183 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
184 --includedir=DIR C header files in DIR [PREFIX/include]
185 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
186 --infodir=DIR info documentation in DIR [PREFIX/info]
187 --mandir=DIR man documentation in DIR [PREFIX/man]
188 --srcdir=DIR find the sources in DIR [configure dir or ..]
189 --program-prefix=PREFIX prepend PREFIX to installed program names
190 --program-suffix=SUFFIX append SUFFIX to installed program names
191 --program-transform-name=PROGRAM
192 run sed PROGRAM on installed program names
196 --build=BUILD configure for building on BUILD [BUILD=HOST]
197 --host=HOST configure for HOST [guessed]
198 --target=TARGET configure for TARGET [TARGET=HOST]
199 Features and packages:
200 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
201 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
202 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
203 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
204 --x-includes=DIR X include files are in DIR
205 --x-libraries=DIR X library files are in DIR
207 if test -n "$ac_help"; then
208 echo "--enable and --with options recognized:$ac_help"
212 -host |
--host |
--hos |
--ho)
214 -host=* |
--host=* |
--hos=* |
--ho=*)
217 -includedir |
--includedir |
--includedi |
--included |
--include \
218 |
--includ |
--inclu |
--incl |
--inc)
219 ac_prev
=includedir
;;
220 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
221 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
222 includedir
="$ac_optarg" ;;
224 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
226 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
227 infodir
="$ac_optarg" ;;
229 -libdir |
--libdir |
--libdi |
--libd)
231 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
232 libdir
="$ac_optarg" ;;
234 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
235 |
--libexe |
--libex |
--libe)
236 ac_prev
=libexecdir
;;
237 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
238 |
--libexe=* |
--libex=* |
--libe=*)
239 libexecdir
="$ac_optarg" ;;
241 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
242 |
--localstate |
--localstat |
--localsta |
--localst \
243 |
--locals |
--local |
--loca |
--loc |
--lo)
244 ac_prev
=localstatedir
;;
245 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
246 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
247 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
248 localstatedir
="$ac_optarg" ;;
250 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
252 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
253 mandir
="$ac_optarg" ;;
256 # Obsolete; use --without-fp.
259 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
263 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
264 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
267 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
268 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
269 |
--oldin |
--oldi |
--old |
--ol |
--o)
270 ac_prev
=oldincludedir
;;
271 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
272 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
273 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
274 oldincludedir
="$ac_optarg" ;;
276 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
278 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
279 prefix
="$ac_optarg" ;;
281 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
282 |
--program-pre |
--program-pr |
--program-p)
283 ac_prev
=program_prefix
;;
284 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
285 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
286 program_prefix
="$ac_optarg" ;;
288 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
289 |
--program-suf |
--program-su |
--program-s)
290 ac_prev
=program_suffix
;;
291 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
292 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
293 program_suffix
="$ac_optarg" ;;
295 -program-transform-name |
--program-transform-name \
296 |
--program-transform-nam |
--program-transform-na \
297 |
--program-transform-n |
--program-transform- \
298 |
--program-transform |
--program-transfor \
299 |
--program-transfo |
--program-transf \
300 |
--program-trans |
--program-tran \
301 |
--progr-tra |
--program-tr |
--program-t)
302 ac_prev
=program_transform_name
;;
303 -program-transform-name=* |
--program-transform-name=* \
304 |
--program-transform-nam=* |
--program-transform-na=* \
305 |
--program-transform-n=* |
--program-transform-=* \
306 |
--program-transform=* |
--program-transfor=* \
307 |
--program-transfo=* |
--program-transf=* \
308 |
--program-trans=* |
--program-tran=* \
309 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
310 program_transform_name
="$ac_optarg" ;;
312 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
313 |
-silent |
--silent |
--silen |
--sile |
--sil)
316 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
318 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
320 sbindir
="$ac_optarg" ;;
322 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
323 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
324 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
326 ac_prev
=sharedstatedir
;;
327 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
328 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
329 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
331 sharedstatedir
="$ac_optarg" ;;
333 -site |
--site |
--sit)
335 -site=* |
--site=* |
--sit=*)
338 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
340 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
341 srcdir
="$ac_optarg" ;;
343 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
344 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
345 ac_prev
=sysconfdir
;;
346 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
347 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
348 sysconfdir
="$ac_optarg" ;;
350 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
352 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
353 target
="$ac_optarg" ;;
355 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
358 -version |
--version |
--versio |
--versi |
--vers)
359 echo "configure generated by autoconf version 2.13.1"
363 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
364 # Reject names that are not valid shell variable names.
365 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
366 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
368 ac_package
=`echo $ac_package| sed 's/-/_/g'`
373 eval "with_${ac_package}='$ac_optarg'" ;;
375 -without-* |
--without-*)
376 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
377 # Reject names that are not valid shell variable names.
378 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
379 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
381 ac_package
=`echo $ac_package| sed 's/-/_/g'`
382 eval "with_${ac_package}=no" ;;
385 # Obsolete; use --with-x.
388 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
389 |
--x-incl |
--x-inc |
--x-in |
--x-i)
390 ac_prev
=x_includes
;;
391 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
392 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
393 x_includes
="$ac_optarg" ;;
395 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
396 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
397 ac_prev
=x_libraries
;;
398 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
399 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
400 x_libraries
="$ac_optarg" ;;
402 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
406 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
407 echo "configure: warning: $ac_option: invalid host type" 1>&2
409 if test "x$nonopt" != xNONE
; then
410 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
418 if test -n "$ac_prev"; then
419 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
422 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
424 # File descriptor usage:
427 # 2 errors and warnings
428 # 3 some systems may open it to /dev/tty
429 # 4 used on the Kubota Titan
430 # 6 checking for... messages and results
431 # 5 compiler messages saved in config.log
432 if test "$silent" = yes; then
440 This file contains any messages produced by compilers while
441 running configure, to aid debugging if configure makes a mistake.
444 # Strip out --no-create and --no-recursion so they do not pile up.
445 # Also quote any args containing shell metacharacters.
450 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
451 |
--no-cr |
--no-c) ;;
452 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
453 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
454 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
455 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
456 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
461 # Only set these to C if already set. These must not be set unconditionally
462 # because not all systems understand e.g. LANG=C (notably SCO).
463 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
464 # Non-C LC_CTYPE values break the ctype check.
465 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
466 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
467 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
468 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
470 # confdefs.h avoids OS command line length limits that DEFS can exceed.
471 rm -rf conftest
* confdefs.h
472 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
475 # A filename unique to this package, relative to the directory that
476 # configure is in, which we can look for to find out if srcdir is correct.
479 # Find the source files, if location was not specified.
480 if test -z "$srcdir"; then
481 ac_srcdir_defaulted
=yes
482 # Try the directory containing this script, then its parent.
484 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
485 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
487 if test ! -r $srcdir/$ac_unique_file; then
491 ac_srcdir_defaulted
=no
493 if test ! -r $srcdir/$ac_unique_file; then
494 if test "$ac_srcdir_defaulted" = yes; then
495 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
497 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
500 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
502 # Prefer explicitly selected file to automatically selected ones.
503 if test -z "$CONFIG_SITE"; then
504 if test "x$prefix" != xNONE
; then
505 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
507 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
510 for ac_site_file
in $CONFIG_SITE; do
511 if test -r "$ac_site_file"; then
512 echo "loading site script $ac_site_file"
517 if test -r "$cache_file"; then
518 echo "loading cache $cache_file"
519 test -f "$cache_file" && .
$cache_file
521 echo "creating cache $cache_file"
526 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
527 ac_cpp
='$CPP $CPPFLAGS'
528 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
529 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
530 cross_compiling
=$ac_cv_prog_cc_cross
534 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
535 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
536 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
543 ac_n
= ac_c
='\c' ac_t
=
549 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
550 if test -f $ac_dir/install-sh
; then
552 ac_install_sh
="$ac_aux_dir/install-sh -c"
554 elif test -f $ac_dir/install.sh
; then
556 ac_install_sh
="$ac_aux_dir/install.sh -c"
560 if test -z "$ac_aux_dir"; then
561 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
563 ac_config_guess
="$SHELL $ac_aux_dir/config.guess"
564 ac_config_sub
="$SHELL $ac_aux_dir/config.sub"
565 ac_configure
="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
568 echo $ac_n "checking host system type""... $ac_c" 1>&6
569 echo "configure:570: checking host system type" >&5
570 if test "x$ac_cv_host" = "x" ||
(test "x$host" != "xNONE" && test "x$host" != "x$ac_cv_host_alias"); then
572 # Make sure we can run config.sub.
573 if $ac_config_sub sun4
>/dev
/null
2>&1; then :
574 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
577 ac_cv_host_alias
=$host
578 case "$ac_cv_host_alias" in
582 if ac_cv_host_alias
=`$ac_config_guess`; then :
583 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
585 *) ac_cv_host_alias
=$nonopt ;;
589 ac_cv_host
=`$ac_config_sub $ac_cv_host_alias`
590 ac_cv_host_cpu
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
591 ac_cv_host_vendor
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
592 ac_cv_host_os
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
594 echo $ac_n "(cached) $ac_c" 1>&6
597 echo "$ac_t""$ac_cv_host" 1>&6
600 host_alias
=$ac_cv_host_alias
601 host_cpu
=$ac_cv_host_cpu
602 host_vendor
=$ac_cv_host_vendor
603 host_os
=$ac_cv_host_os
609 echo $ac_n "checking target system type""... $ac_c" 1>&6
610 echo "configure:611: checking target system type" >&5
611 if test "x$ac_cv_target" = "x" ||
(test "x$target" != "xNONE" && test "x$target" != "x$ac_cv_target_alias"); then
613 # Make sure we can run config.sub.
614 if $ac_config_sub sun4
>/dev
/null
2>&1; then :
615 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
618 ac_cv_target_alias
=$target
619 case "$ac_cv_target_alias" in
623 ac_cv_target_alias
=$host_alias ;;
625 *) ac_cv_target_alias
=$nonopt ;;
629 ac_cv_target
=`$ac_config_sub $ac_cv_target_alias`
630 ac_cv_target_cpu
=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
631 ac_cv_target_vendor
=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
632 ac_cv_target_os
=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
634 echo $ac_n "(cached) $ac_c" 1>&6
637 echo "$ac_t""$ac_cv_target" 1>&6
640 target_alias
=$ac_cv_target_alias
641 target_cpu
=$ac_cv_target_cpu
642 target_vendor
=$ac_cv_target_vendor
643 target_os
=$ac_cv_target_os
649 echo $ac_n "checking build system type""... $ac_c" 1>&6
650 echo "configure:651: checking build system type" >&5
651 if test "x$ac_cv_build" = "x" ||
(test "x$build" != "xNONE" && test "x$build" != "x$ac_cv_build_alias"); then
653 # Make sure we can run config.sub.
654 if $ac_config_sub sun4
>/dev
/null
2>&1; then :
655 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
658 ac_cv_build_alias
=$build
659 case "$ac_cv_build_alias" in
663 ac_cv_build_alias
=$host_alias ;;
665 *) ac_cv_build_alias
=$nonopt ;;
669 ac_cv_build
=`$ac_config_sub $ac_cv_build_alias`
670 ac_cv_build_cpu
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
671 ac_cv_build_vendor
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
672 ac_cv_build_os
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
674 echo $ac_n "(cached) $ac_c" 1>&6
677 echo "$ac_t""$ac_cv_build" 1>&6
680 build_alias
=$ac_cv_build_alias
681 build_cpu
=$ac_cv_build_cpu
682 build_vendor
=$ac_cv_build_vendor
683 build_os
=$ac_cv_build_os
689 # Do some error checking and defaulting for the host and target type.
691 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
694 # 1. You are not allowed to specify --host, --target, and nonopt at the
696 # 2. Host defaults to nonopt.
697 # 3. If nonopt is not specified, then host defaults to the current host,
698 # as determined by config.guess.
699 # 4. Target and build default to nonopt.
700 # 5. If nonopt is not specified, then target and build default to host.
702 # The aliases save the names the user supplied, while $host etc.
703 # will get canonicalized.
704 case $host---$target---$nonopt in
705 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
706 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
709 test "$host_alias" != "$target_alias" &&
710 test "$program_prefix$program_suffix$program_transform_name" = \
712 program_prefix
=${target_alias}-
715 # Find a good install program. We prefer a C program (faster),
716 # so one script is as good as another. But avoid the broken or
717 # incompatible versions:
718 # SysV /etc/install, /usr/sbin/install
719 # SunOS /usr/etc/install
722 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
723 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
724 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
725 # ./install, which can be erroneously created by make from ./install.sh.
726 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
727 echo "configure:728: checking for a BSD compatible install" >&5
728 if test -z "$INSTALL"; then
729 if eval "test \"\${ac_cv_path_install+set}\" = set"; then
730 echo $ac_n "(cached) $ac_c" 1>&6
732 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
733 for ac_dir
in $PATH; do
734 # Account for people who put trailing slashes in PATH elements.
736 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
738 # OSF1 and SCO ODT 3.0 have their own names for install.
739 # Don't use installbsd from OSF since it installs stuff as root
741 for ac_prog
in ginstall scoinst
install; do
742 if test -f $ac_dir/$ac_prog; then
743 if test $ac_prog = install &&
744 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
745 # AIX install. It has an incompatible calling convention.
747 elif test $ac_prog = install &&
748 grep pwplus
$ac_dir/$ac_prog >/dev
/null
2>&1; then
749 # program-specific install script used by HP pwplus--don't use.
752 ac_cv_path_install
="$ac_dir/$ac_prog -c"
763 if test "${ac_cv_path_install+set}" = set; then
764 INSTALL
="$ac_cv_path_install"
766 # As a last resort, use the slow shell script. We don't cache a
767 # path for INSTALL within a source directory, because that will
768 # break other packages using the cache if that directory is
769 # removed, or if the path is relative.
770 INSTALL
="$ac_install_sh"
773 echo "$ac_t""$INSTALL" 1>&6
775 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
776 # It thinks the first close brace ends the variable substitution.
777 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
779 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
781 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
783 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
784 echo "configure:785: checking whether build environment is sane" >&5
787 echo timestamp
> conftestfile
788 # Do `set' in a subshell so we don't clobber the current shell's
789 # arguments. Must try -L first in case configure is actually a
790 # symlink; some systems play weird games with the mod time of symlinks
791 # (eg FreeBSD returns the mod time of the symlink's containing
794 set X
`ls -Lt $srcdir/configure conftestfile 2> /dev/null`
795 if test "$*" = "X"; then
797 set X
`ls -t $srcdir/configure conftestfile`
799 if test "$*" != "X $srcdir/configure conftestfile" \
800 && test "$*" != "X conftestfile $srcdir/configure"; then
802 # If neither matched, then we have a broken ls. This can happen
803 # if, for instance, CONFIG_SHELL is bash and it inherits a
804 # broken ls alias from the environment. This has actually
805 # happened. Such a system could not be considered "sane".
806 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
807 alias in your environment" 1>&2; exit 1; }
810 test "$2" = conftestfile
816 { echo "configure: error: newly created file is older than distributed files!
817 Check your system clock" 1>&2; exit 1; }
820 echo "$ac_t""yes" 1>&6
821 if test "$program_transform_name" = s
,x
,x
,; then
822 program_transform_name
=
824 # Double any \ or $. echo might interpret backslashes.
825 cat <<\EOF_SED
> conftestsed
826 s
,\\,\\\\,g
; s
,\$
,$$
,g
828 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
831 test "$program_prefix" != NONE
&&
832 program_transform_name
="s,^,${program_prefix},;$program_transform_name"
833 # Use a double $ so make ignores it.
834 test "$program_suffix" != NONE
&&
835 program_transform_name
="s,\$\$,${program_suffix},;$program_transform_name"
837 # sed with no file args requires a program.
838 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
840 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
841 echo "configure:842: checking whether ${MAKE-make} sets \${MAKE}" >&5
842 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
843 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
844 echo $ac_n "(cached) $ac_c" 1>&6
846 cat > conftestmake
<<\EOF
848 @
echo 'ac_maketemp="${MAKE}"'
850 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
851 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
852 if test -n "$ac_maketemp"; then
853 eval ac_cv_prog_make_
${ac_make}_set
=yes
855 eval ac_cv_prog_make_
${ac_make}_set
=no
859 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
860 echo "$ac_t""yes" 1>&6
863 echo "$ac_t""no" 1>&6
864 SET_MAKE
="MAKE=${MAKE-make}"
872 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status
; then
873 { echo "configure: error: source directory already configured; run "make distclean
" there first" 1>&2; exit 1; }
875 cat >> confdefs.h
<<EOF
876 #define PACKAGE "$PACKAGE"
879 cat >> confdefs.h
<<EOF
880 #define VERSION "$VERSION"
885 missing_dir
=`cd $ac_aux_dir && pwd`
886 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
887 echo "configure:888: checking for working aclocal" >&5
888 # Run test in a subshell; some versions of sh will print an error if
889 # an executable is not found, even if stderr is redirected.
890 # Redirect stdin to placate older versions of autoconf. Sigh.
891 if (aclocal
--version) < /dev
/null
> /dev
/null
2>&1; then
893 echo "$ac_t""found" 1>&6
895 ACLOCAL
="$missing_dir/missing aclocal"
896 echo "$ac_t""missing" 1>&6
899 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
900 echo "configure:901: checking for working autoconf" >&5
901 # Run test in a subshell; some versions of sh will print an error if
902 # an executable is not found, even if stderr is redirected.
903 # Redirect stdin to placate older versions of autoconf. Sigh.
904 if (autoconf
--version) < /dev
/null
> /dev
/null
2>&1; then
906 echo "$ac_t""found" 1>&6
908 AUTOCONF
="$missing_dir/missing autoconf"
909 echo "$ac_t""missing" 1>&6
912 echo $ac_n "checking for working automake""... $ac_c" 1>&6
913 echo "configure:914: checking for working automake" >&5
914 # Run test in a subshell; some versions of sh will print an error if
915 # an executable is not found, even if stderr is redirected.
916 # Redirect stdin to placate older versions of autoconf. Sigh.
917 if (automake
--version) < /dev
/null
> /dev
/null
2>&1; then
919 echo "$ac_t""found" 1>&6
921 AUTOMAKE
="$missing_dir/missing automake"
922 echo "$ac_t""missing" 1>&6
925 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
926 echo "configure:927: checking for working autoheader" >&5
927 # Run test in a subshell; some versions of sh will print an error if
928 # an executable is not found, even if stderr is redirected.
929 # Redirect stdin to placate older versions of autoconf. Sigh.
930 if (autoheader
--version) < /dev
/null
> /dev
/null
2>&1; then
931 AUTOHEADER
=autoheader
932 echo "$ac_t""found" 1>&6
934 AUTOHEADER
="$missing_dir/missing autoheader"
935 echo "$ac_t""missing" 1>&6
938 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
939 echo "configure:940: checking for working makeinfo" >&5
940 # Run test in a subshell; some versions of sh will print an error if
941 # an executable is not found, even if stderr is redirected.
942 # Redirect stdin to placate older versions of autoconf. Sigh.
943 if (makeinfo
--version) < /dev
/null
> /dev
/null
2>&1; then
945 echo "$ac_t""found" 1>&6
947 MAKEINFO
="$missing_dir/missing makeinfo"
948 echo "$ac_t""missing" 1>&6
953 # Check whether --enable-shared or --disable-shared was given.
954 if test "${enable_shared+set}" = set; then
955 enableval
="$enable_shared"
958 yes) enable_shared
=yes ;;
959 no
) enable_shared
=no
;;
962 # Look at the argument we got. We use all the common list separators.
963 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
964 for pkg
in $enableval; do
965 if test "X$pkg" = "X$p"; then
976 # Check whether --enable-static or --disable-static was given.
977 if test "${enable_static+set}" = set; then
978 enableval
="$enable_static"
981 yes) enable_static
=yes ;;
982 no
) enable_static
=no
;;
985 # Look at the argument we got. We use all the common list separators.
986 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
987 for pkg
in $enableval; do
988 if test "X$pkg" = "X$p"; then
999 # Check whether --enable-fast-install or --disable-fast-install was given.
1000 if test "${enable_fast_install+set}" = set; then
1001 enableval
="$enable_fast_install"
1002 p
=${PACKAGE-default}
1003 case "$enableval" in
1004 yes) enable_fast_install
=yes ;;
1005 no
) enable_fast_install
=no
;;
1007 enable_fast_install
=no
1008 # Look at the argument we got. We use all the common list separators.
1009 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1010 for pkg
in $enableval; do
1011 if test "X$pkg" = "X$p"; then
1012 enable_fast_install
=yes
1019 enable_fast_install
=yes
1022 # Extract the first word of "ranlib", so it can be a program name with args.
1023 set dummy ranlib
; ac_word
=$2
1024 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1025 echo "configure:1026: checking for $ac_word" >&5
1026 if eval "test \"\${ac_cv_prog_RANLIB+set}\" = set"; then
1027 echo $ac_n "(cached) $ac_c" 1>&6
1029 if test -n "$RANLIB"; then
1030 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1032 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1034 for ac_dir
in $ac_dummy; do
1035 test -z "$ac_dir" && ac_dir
=.
1036 if test -f $ac_dir/$ac_word; then
1037 ac_cv_prog_RANLIB
="ranlib"
1042 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1045 RANLIB
="$ac_cv_prog_RANLIB"
1046 if test -n "$RANLIB"; then
1047 echo "$ac_t""$RANLIB" 1>&6
1049 echo "$ac_t""no" 1>&6
1052 # Extract the first word of "gcc", so it can be a program name with args.
1053 set dummy gcc
; ac_word
=$2
1054 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1055 echo "configure:1056: checking for $ac_word" >&5
1056 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
1057 echo $ac_n "(cached) $ac_c" 1>&6
1059 if test -n "$CC"; then
1060 ac_cv_prog_CC
="$CC" # Let the user override the test.
1062 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1064 for ac_dir
in $ac_dummy; do
1065 test -z "$ac_dir" && ac_dir
=.
1066 if test -f $ac_dir/$ac_word; then
1075 if test -n "$CC"; then
1076 echo "$ac_t""$CC" 1>&6
1078 echo "$ac_t""no" 1>&6
1081 if test -z "$CC"; then
1082 # Extract the first word of "cc", so it can be a program name with args.
1083 set dummy cc
; 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 \"\${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
=":"
1095 for ac_dir
in $ac_dummy; do
1096 test -z "$ac_dir" && ac_dir
=.
1097 if test -f $ac_dir/$ac_word; then
1098 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1099 ac_prog_rejected
=yes
1107 if test $ac_prog_rejected = yes; then
1108 # We found a bogon in the path, so make sure we never use it.
1109 set dummy
$ac_cv_prog_CC
1111 if test $# -gt 0; then
1112 # We chose a different compiler from the bogus one.
1113 # However, it has the same basename, so the bogon will be chosen
1114 # first if we set CC to just the basename; use the full file name.
1116 set dummy
"$ac_dir/$ac_word" "$@"
1124 if test -n "$CC"; then
1125 echo "$ac_t""$CC" 1>&6
1127 echo "$ac_t""no" 1>&6
1130 if test -z "$CC"; then
1131 case "`uname -s`" in
1132 *win32
* |
*WIN32
* |
*CYGWIN
*)
1133 # Extract the first word of "cl", so it can be a program name with args.
1134 set dummy cl
; ac_word
=$2
1135 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1136 echo "configure:1137: checking for $ac_word" >&5
1137 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
1138 echo $ac_n "(cached) $ac_c" 1>&6
1140 if test -n "$CC"; then
1141 ac_cv_prog_CC
="$CC" # Let the user override the test.
1143 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1145 for ac_dir
in $ac_dummy; do
1146 test -z "$ac_dir" && ac_dir
=.
1147 if test -f $ac_dir/$ac_word; then
1156 if test -n "$CC"; then
1157 echo "$ac_t""$CC" 1>&6
1159 echo "$ac_t""no" 1>&6
1164 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1167 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1168 echo "configure:1169: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works" >&5
1171 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1172 ac_cpp
='$CPP $CPPFLAGS'
1173 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1174 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1175 cross_compiling
=$ac_cv_prog_cc_cross
1177 cat > conftest.
$ac_ext << EOF
1179 #line 1180 "configure"
1180 #include "confdefs.h"
1184 if { (eval echo configure
:1185: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1185 ac_cv_prog_cc_works
=yes
1186 # If we can't run a trivial program, we are probably using a cross compiler.
1187 if (.
/conftest
; exit) 2>/dev
/null
; then
1188 ac_cv_prog_cc_cross
=no
1190 ac_cv_prog_cc_cross
=yes
1193 echo "configure: failed program was:" >&5
1194 cat conftest.
$ac_ext >&5
1195 ac_cv_prog_cc_works
=no
1199 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1200 ac_cpp
='$CPP $CPPFLAGS'
1201 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1202 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1203 cross_compiling
=$ac_cv_prog_cc_cross
1205 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1206 if test $ac_cv_prog_cc_works = no
; then
1207 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1209 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1210 echo "configure:1211: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler" >&5
1211 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1212 cross_compiling
=$ac_cv_prog_cc_cross
1214 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1215 echo "configure:1216: checking whether we are using GNU C" >&5
1216 if eval "test \"\${ac_cv_prog_gcc+set}\" = set"; then
1217 echo $ac_n "(cached) $ac_c" 1>&6
1219 cat > conftest.c
<<EOF
1224 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1225: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1231 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1233 if test $ac_cv_prog_gcc = yes; then
1239 ac_test_CFLAGS
="${CFLAGS+set}"
1240 ac_save_CFLAGS
="$CFLAGS"
1242 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1243 echo "configure:1244: checking whether ${CC-cc} accepts -g" >&5
1244 if eval "test \"\${ac_cv_prog_cc_g+set}\" = set"; then
1245 echo $ac_n "(cached) $ac_c" 1>&6
1247 echo 'void f(){}' > conftest.c
1248 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1257 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1258 if test "$ac_test_CFLAGS" = set; then
1259 CFLAGS
="$ac_save_CFLAGS"
1260 elif test $ac_cv_prog_cc_g = yes; then
1261 if test "$GCC" = yes; then
1267 if test "$GCC" = yes; then
1274 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1275 if test "${with_gnu_ld+set}" = set; then
1276 withval
="$with_gnu_ld"
1277 test "$withval" = no || with_gnu_ld
=yes
1283 if test "$ac_cv_prog_gcc" = yes; then
1284 # Check if gcc -print-prog-name=ld gives a path.
1285 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1286 echo "configure:1287: checking for ld used by GCC" >&5
1287 ac_prog
=`($CC -print-prog-name=ld) 2>&5`
1289 # Accept absolute paths.
1290 [\\/]* |
[A-Za-z
]:[\\/]*)
1291 re_direlt
='/[^/][^/]*/\.\./'
1292 # Canonicalize the path of ld
1293 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
1294 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
1295 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
1297 test -z "$LD" && LD
="$ac_prog"
1300 # If it fails, then pretend we aren't using GCC.
1304 # If it is relative, then search for the first ld in PATH.
1308 elif test "$with_gnu_ld" = yes; then
1309 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1310 echo "configure:1311: checking for GNU ld" >&5
1312 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1313 echo "configure:1314: checking for non-GNU ld" >&5
1315 if eval "test \"\${ac_cv_path_LD+set}\" = set"; then
1316 echo $ac_n "(cached) $ac_c" 1>&6
1318 if test -z "$LD"; then
1319 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1320 for ac_dir
in $PATH; do
1321 test -z "$ac_dir" && ac_dir
=.
1322 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
1323 ac_cv_path_LD
="$ac_dir/$ac_prog"
1324 # Check to see if the program is GNU ld. I'd rather use --version,
1325 # but apparently some GNU ld's only accept -v.
1326 # Break only if it was the GNU/non-GNU ld that we prefer.
1327 if "$ac_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
1328 test "$with_gnu_ld" != no
&& break
1330 test "$with_gnu_ld" != yes && break
1336 ac_cv_path_LD
="$LD" # Let the user override the test with a path.
1341 if test -n "$LD"; then
1342 echo "$ac_t""$LD" 1>&6
1344 echo "$ac_t""no" 1>&6
1346 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1347 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1348 echo "configure:1349: checking if the linker ($LD) is GNU ld" >&5
1349 if eval "test \"\${ac_cv_prog_gnu_ld+set}\" = set"; then
1350 echo $ac_n "(cached) $ac_c" 1>&6
1352 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1353 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
1354 ac_cv_prog_gnu_ld
=yes
1356 ac_cv_prog_gnu_ld
=no
1360 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1363 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1364 echo "configure:1365: checking for BSD-compatible nm" >&5
1365 if eval "test \"\${ac_cv_path_NM+set}\" = set"; then
1366 echo $ac_n "(cached) $ac_c" 1>&6
1368 if test -n "$NM"; then
1369 # Let the user override the test.
1372 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1373 for ac_dir
in $PATH /usr
/ccs
/bin
/usr
/ucb
/bin
; do
1374 test -z "$ac_dir" && ac_dir
=.
1375 if test -f $ac_dir/nm ||
test -f $ac_dir/nm
$ac_exeext ; then
1376 # Check to see if the nm accepts a BSD-compat flag.
1377 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1378 # nm: unknown option "B" ignored
1379 if ($ac_dir/nm
-B /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep /dev
/null
>/dev
/null
; then
1380 ac_cv_path_NM
="$ac_dir/nm -B"
1382 elif ($ac_dir/nm
-p /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep /dev
/null
>/dev
/null
; then
1383 ac_cv_path_NM
="$ac_dir/nm -p"
1386 ac_cv_path_NM
=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
1387 continue # so that we can try to find one that supports BSD flags
1392 test -z "$ac_cv_path_NM" && ac_cv_path_NM
=nm
1397 echo "$ac_t""$NM" 1>&6
1399 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1400 echo "configure:1401: checking whether ln -s works" >&5
1401 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
1402 echo $ac_n "(cached) $ac_c" 1>&6
1405 if ln -s X conftestdata
2>/dev
/null
1408 ac_cv_prog_LN_S
="ln -s"
1413 LN_S
="$ac_cv_prog_LN_S"
1414 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1415 echo "$ac_t""yes" 1>&6
1417 echo "$ac_t""no" 1>&6
1422 NONE
) lt_target
="$host" ;;
1423 *) lt_target
="$target" ;;
1426 # Check for any special flags to pass to ltconfig.
1427 libtool_flags
="--cache-file=$cache_file"
1428 test "$enable_shared" = no
&& libtool_flags
="$libtool_flags --disable-shared"
1429 test "$enable_static" = no
&& libtool_flags
="$libtool_flags --disable-static"
1430 test "$enable_fast_install" = no
&& libtool_flags
="$libtool_flags --disable-fast-install"
1431 test "$ac_cv_prog_gcc" = yes && libtool_flags
="$libtool_flags --with-gcc"
1432 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags
="$libtool_flags --with-gnu-ld"
1435 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
1436 if test "${enable_libtool_lock+set}" = set; then
1437 enableval
="$enable_libtool_lock"
1441 test "x$enable_libtool_lock" = xno
&& libtool_flags
="$libtool_flags --disable-lock"
1442 test x
"$silent" = xyes
&& libtool_flags
="$libtool_flags --silent"
1444 # Some flags need to be propagated to the compiler or linker for good
1446 case "$lt_target" in
1448 # Find out which ABI we are using.
1449 echo '#line 1450 "configure"' > conftest.
$ac_ext
1450 if { (eval echo configure
:1451: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1451 case "`/usr/bin/file conftest.o`" in
1467 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1468 SAVE_CFLAGS
="$CFLAGS"
1469 CFLAGS
="$CFLAGS -belf"
1470 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
1471 echo "configure:1472: checking whether the C compiler needs -belf" >&5
1472 if eval "test \"\${lt_cv_cc_needs_belf+set}\" = set"; then
1473 echo $ac_n "(cached) $ac_c" 1>&6
1475 cat > conftest.
$ac_ext <<EOF
1476 #line 1477 "configure"
1477 #include "confdefs.h"
1483 if { (eval echo configure
:1484: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1485 lt_cv_cc_needs_belf
=yes
1487 echo "configure: failed program was:" >&5
1488 cat conftest.
$ac_ext >&5
1490 lt_cv_cc_needs_belf
=no
1495 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
1496 if test x
"$lt_cv_cc_needs_belf" != x
"yes"; then
1497 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1498 CFLAGS
="$SAVE_CFLAGS"
1506 # Save cache, so that ltconfig can load it
1507 cat > confcache
<<\EOF
1508 # This file is a shell script that caches the results of configure
1509 # tests run on this system so they can be shared between configure
1510 # scripts and configure runs. It is not useful on other systems.
1511 # If it contains results you don't want to keep, you may remove or edit it.
1513 # By default, configure uses ./config.cache as the cache file,
1514 # creating it if it does not exist already. You can give configure
1515 # the --cache-file=FILE option to use a different cache file; that is
1516 # what configure does when it calls configure scripts in
1517 # subdirectories, so they share the cache.
1518 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1519 # config.status only pays attention to the cache file if you give it the
1520 # --recheck option to rerun configure.
1523 # The following way of writing the cache mishandles newlines in values,
1524 # but we know of no workaround that is simple, portable, and efficient.
1525 # So, don't put newlines in cache variables' values.
1526 # Ultrix sh set writes to stderr and can't be redirected directly,
1527 # and sets the high bit in the cache file unless we assign to the vars.
1529 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1531 # `set' does not quote correctly, so add quotes (double-quote substitution
1532 # turns \\\\ into \\, and sed turns \\ into \).
1534 -e "s/'/'\\\\''/g" \
1535 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1538 # `set' quotes correctly as required by POSIX, so do not add quotes.
1539 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1542 if cmp -s $cache_file confcache
; then
1545 if test -w $cache_file; then
1546 echo "updating cache $cache_file"
1547 cat confcache
> $cache_file
1549 echo "not updating unwritable cache $cache_file"
1555 # Actually configure libtool. ac_aux_dir is where install-sh is found.
1556 CC
="$CC" CFLAGS
="$CFLAGS" CPPFLAGS
="$CPPFLAGS" \
1557 LD
="$LD" LDFLAGS
="$LDFLAGS" LIBS
="$LIBS" \
1558 LN_S
="$LN_S" NM
="$NM" RANLIB
="$RANLIB" \
1559 DLLTOOL
="$DLLTOOL" AS
="$AS" OBJDUMP
="$OBJDUMP" \
1560 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig
--no-reexec \
1561 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh
$lt_target \
1562 ||
{ echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1564 # Reload cache, that may have been modified by ltconfig
1565 if test -r "$cache_file"; then
1566 echo "loading cache $cache_file"
1567 test -f "$cache_file" && .
$cache_file
1569 echo "creating cache $cache_file"
1574 # This can be used to rebuild libtool when needed
1575 LIBTOOL_DEPS
="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
1577 # Always use our own libtool.
1578 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
1580 # Redirect the config.log output again, so that the ltconfig log is not
1581 # clobbered by the next message.
1582 exec 5>>.
/config.log
1586 # Check whether --enable-bfd-assembler or --disable-bfd-assembler was given.
1587 if test "${enable_bfd_assembler+set}" = set; then
1588 enableval
="$enable_bfd_assembler"
1589 case "${enableval}" in
1590 yes) need_bfd
=yes user_bfd_gas
=yes ;;
1591 no
) user_bfd_gas
=no
;;
1592 *) { echo "configure: error: bad value ${enableval} given for bfd-assembler option" 1>&2; exit 1; } ;;
1595 # Check whether --enable-targets or --disable-targets was given.
1596 if test "${enable_targets+set}" = set; then
1597 enableval
="$enable_targets"
1598 case "${enableval}" in
1599 yes |
"") { echo "configure: error: enable-targets option must specify target names or 'all'" 1>&2; exit 1; }
1601 no
) enable_targets
= ;;
1602 *) enable_targets
=$enableval ;;
1605 # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
1606 if test "${enable_commonbfdlib+set}" = set; then
1607 enableval
="$enable_commonbfdlib"
1608 case "${enableval}" in
1609 yes) commonbfdlib
=true
;;
1610 no
) commonbfdlib
=false
;;
1611 *) { echo "configure: error: bad value ${enableval} for BFD commonbfdlib option" 1>&2; exit 1; } ;;
1617 # Generate a header file
1622 # If we are on a DOS filesystem, we must use gdb.ini rather than
1626 *-*-msdos* |
*-*-go32* |
*-*-mingw32* |
*-*-cygwin* |
*-*-windows*)
1634 # Makefile target for installing gas in $(tooldir)/bin.
1635 install_tooldir
=install-exec-tooldir
1639 if test -n "$enable_targets" ; then
1640 for t
in `echo $enable_targets | sed 's/,/ /g'`; do
1641 if test $t = "all"; then
1645 result
=`$ac_config_sub $t 2>/dev/null`
1646 if test -n "$result" ; then
1647 canon_targets
="$canon_targets $result"
1649 # # Permit "all", etc. We don't support it yet though.
1650 # canon_targets="$canon_targets $t"
1653 _gas_uniq_list
="$canon_targets"
1654 _gas_uniq_newlist
=""
1655 for _gas_uniq_i
in _gas_uniq_dummy
$_gas_uniq_list ; do
1656 case $_gas_uniq_i in
1658 *) case " $_gas_uniq_newlist " in
1659 *" $_gas_uniq_i "*) ;;
1660 *) _gas_uniq_newlist
="$_gas_uniq_newlist $_gas_uniq_i" ;;
1664 canon_targets
=$_gas_uniq_newlist
1670 for this_target
in $target $canon_targets ; do
1672 eval `echo $this_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/cpu=\1 vendor=\2 os=\3/'`
1674 # check for architecture variants
1678 alpha
*) cpu_type
=alpha
;;
1679 armeb
) cpu_type
=arm endian
=big
;;
1680 arm
*) cpu_type
=arm endian
=little
;;
1681 armb
*) cpu_type
=arm endian
=little
;;
1682 armv
*l
) cpu_type
=arm endian
=little
;;
1683 armv
*b
) cpu_type
=arm endian
=big
;;
1684 strongarm
*) cpu_type
=arm endian
=little
;;
1685 thumb
*) cpu_type
=arm endian
=little
;;
1686 hppa
*) cpu_type
=hppa
;;
1687 i
[456]86) cpu_type
=i386
;;
1688 m680
[012346]0) cpu_type
=m68k
;;
1689 m68008
) cpu_type
=m68k
;;
1690 m683??
) cpu_type
=m68k
;;
1691 m5200
) cpu_type
=m68k
;;
1692 m8
*) cpu_type
=m88k
;;
1693 mips
*el
) cpu_type
=mips endian
=little
;;
1694 mips
*) cpu_type
=mips endian
=big
;;
1695 pjl
*) cpu_type
=pj endian
=little
;;
1696 pj
*) cpu_type
=pj endian
=big
;;
1697 powerpcle
*) cpu_type
=ppc endian
=little
;;
1698 powerpc
*) cpu_type
=ppc endian
=big
;;
1699 rs6000
*) cpu_type
=ppc
;;
1700 sparclite
*) cpu_type
=sparc arch
=sparclite
;;
1701 sparclet
*) cpu_type
=sparc arch
=sparclet
;;
1702 sparc64
*) cpu_type
=sparc arch
=v9-64
;;
1703 sparc86x
*) cpu_type
=sparc arch
=sparc86x
;;
1704 sparc
*) cpu_type
=sparc arch
=sparclite
;; # ??? See tc-sparc.c.
1705 v850
*) cpu_type
=v850
;;
1706 *) cpu_type
=${cpu} ;;
1709 if test ${this_target} = $target ; then
1710 target_cpu_type
=${cpu_type}
1711 elif test ${target_cpu_type} != ${cpu_type} ; then
1715 generic_target
=${cpu_type}-$vendor-$os
1720 # assign object format
1721 case ${generic_target} in
1722 a29k-
*-coff) fmt=coff
;;
1723 a29k-amd-udi
) fmt=coff
;;
1724 a29k-amd-ebmon
) fmt=coff
;;
1725 a29k-nyu-sym1
) fmt=coff
;;
1726 a29k-
*-vxworks*) fmt=coff
;;
1728 alpha
*-*-*vms
*) fmt=evax
;;
1729 alpha
*-*-netware*) fmt=ecoff
;;
1730 alpha
*-*-openbsd*) fmt=ecoff
;;
1731 alpha
*-*-osf*) fmt=ecoff
;;
1732 alpha
*-*-linuxecoff*) fmt=ecoff
;;
1733 alpha
*-*-linux-gnu*) fmt=elf em
=linux
;;
1734 alpha
*-*-netbsd*) fmt=elf em
=nbsd
;;
1736 arc-
*-elf*) fmt=elf bfd_gas
=yes ;;
1738 arm-
*-aout) fmt=aout
;;
1739 arm-
*-coff | thumb-
*-coff) fmt=coff
;;
1740 arm-
*-elf | thumb-
*-elf) fmt=elf
;;
1741 arm
*-*-conix*) fmt=elf
;;
1742 arm-
*-linux*aout
*) fmt=aout em
=linux
;;
1743 arm
*-*-linux-gnu*) fmt=elf em
=linux
;;
1744 arm-
*-netbsd*) fmt=aout em
=nbsd bfd_gas
=yes ;;
1745 arm-
*-oabi | thumb-
*-oabi) fmt=elf
;;
1746 arm-epoc-pe | thumb-epoc-pe
) fmt=coff em
=epoc-pe
;;
1747 arm-
*-wince) fmt=coff em
=wince-pe bfd_gas
=yes;;
1748 arm-
*-pe | thumb-
*-pe) fmt=coff em
=pe
;;
1749 arm-
*-riscix*) fmt=aout em
=riscix
;;
1751 avr-
*-*) fmt=elf bfd_gas
=yes ;;
1753 d10v-
*-*) fmt=elf bfd_gas
=yes ;;
1754 d30v-
*-*) fmt=elf bfd_gas
=yes ;;
1757 fr30-
*-*) fmt=elf bfd_gas
=yes ;;
1759 hppa-
*-*elf
*) fmt=elf em
=hppa
;;
1760 hppa-
*-linux-gnu*) fmt=elf em
=hppa
;;
1761 hppa-
*-lites*) fmt=elf em
=hppa
;;
1762 hppa-
*-osf*) fmt=som em
=hppa
;;
1763 hppa-
*-rtems*) fmt=elf em
=hppa
;;
1764 hppa-
*-hpux*) fmt=som em
=hppa
;;
1765 hppa-
*-mpeix*) fmt=som em
=hppa
;;
1766 hppa-
*-bsd*) fmt=som em
=hppa
;;
1767 hppa-
*-hiux*) fmt=som em
=hppa
;;
1769 h8300-
*-coff) fmt=coff
;;
1771 i370-
*-elf* | i370-
*-linux*) fmt=elf
;;
1772 i386-ibm-aix
*) fmt=coff em
=i386aix
;;
1773 i386-sequent-bsd
*) fmt=aout em
=dynix bfd_gas
=yes ;;
1774 i386-
*-beospe*) fmt=coff em
=pe bfd_gas
=yes ;;
1775 i386-
*-beoself* | i386-
*-beos*) fmt=elf bfd_gas
=yes ;;
1776 i386-
*-bsd*) fmt=aout em
=386bsd
;;
1777 i386-
*-netbsd0.8
) fmt=aout em
=386bsd
;;
1778 i386-
*-netbsd*) fmt=aout em
=nbsd bfd_gas
=yes;;
1779 i386-
*-openbsd*) fmt=aout em
=nbsd bfd_gas
=yes;;
1780 i386-
*-linux*aout
* | i386-
*-linuxoldld) fmt=aout em
=linux
;;
1781 i386-
*-linux*coff
*) fmt=coff em
=linux
;;
1782 i386-
*-linux-gnu*) fmt=elf em
=linux bfd_gas
=yes ;;
1783 i386-
*-lynxos*) fmt=coff em
=lynx
;;
1784 i386-
*-sysv4* | i386-
*-solaris* | i386-
*-elf)
1785 fmt=elf bfd_gas
=yes ;;
1786 i386-
*-freebsdaout* | i386-
*-freebsd12.
* | i386-
*-freebsd12)
1787 fmt=aout em
=386bsd
;;
1788 i386-
*-freebsd*) fmt=elf bfd_gas
=yes ;;
1789 i386-
*-coff | i386-
*-sysv* | i386-
*-sco3.2v5
*coff | i386-
*-isc*)
1791 i386-
*-sco3.2v5
*) fmt=elf
1792 if test ${this_target} = $target; then
1793 cat >> confdefs.h
<<\EOF
1799 i386-
*-sco3.2
*) fmt=coff
;;
1800 i386-
*-vsta) fmt=aout
;;
1801 i386-
*-msdosdjgpp* | i386-
*-go32* | i386-go32-rtems
*)
1803 i386-
*-rtemself*) fmt=elf
;;
1804 i386-
*-rtems*) fmt=coff
;;
1805 i386-
*-gnu*) fmt=elf
;;
1807 fmt=aout em
=mach bfd_gas
=yes ;;
1808 i386-
*-msdos*) fmt=aout
;;
1809 i386-
*-moss*) fmt=elf
;;
1810 i386-
*-pe) fmt=coff em
=pe
;;
1811 i386-
*-cygwin*) fmt=coff em
=pe bfd_gas
=yes ;;
1812 i386-
*-interix*) fmt=coff em
=interix bfd_gas
=yes ;;
1813 i386-
*-mingw32*) fmt=coff em
=pe bfd_gas
=yes ;;
1814 i386-
*-*nt
*) fmt=coff em
=pe
;;
1815 i386-
*-vxworks*) fmt=aout
;;
1816 i960-
*-bout) fmt=bout
;;
1817 i960-
*-coff) fmt=coff em
=ic960
;;
1818 i960-
*-rtems*) fmt=coff em
=ic960
;;
1819 i960-
*-nindy*) fmt=bout
;;
1820 i960-
*-vxworks4*) fmt=bout
;;
1821 i960-
*-vxworks5.0
) fmt=bout
;;
1822 i960-
*-vxworks5.
*) fmt=coff em
=ic960
;;
1823 i960-
*-vxworks*) fmt=bout
;;
1824 i960-
*-elf*) fmt=elf
;;
1826 m32r-
*-*) fmt=elf bfd_gas
=yes ;;
1828 m68k-
*-vxworks* | m68k-ericsson-ose | m68k-
*-sunos*)
1830 m68k-motorola-sysv
*) fmt=coff em
=delta
;;
1831 m68k-bull-sysv3
*) fmt=coff em
=dpx2
;;
1832 m68k-apollo-
*) fmt=coff em
=apollo
;;
1833 m68k-
*-sysv4*) # must be before -sysv*
1835 m68k-
*-elf*) fmt=elf
;;
1836 m68k-
*-coff | m68k-
*-sysv* | m68k-
*-rtems*)
1838 m68k-
*-hpux*) fmt=hp300 em
=hp300
;;
1839 m68k-
*-linux*aout
*) fmt=aout em
=linux
;;
1840 m68k-
*-linux-gnu*) fmt=elf em
=linux
;;
1841 m68k-
*-gnu*) fmt=elf
;;
1842 m68k-
*-lynxos*) fmt=coff em
=lynx
;;
1843 m68k-
*-netbsd*) fmt=aout em
=nbsd bfd_gas
=yes ;;
1844 m68k-
*-openbsd*) fmt=aout em
=nbsd bfd_gas
=yes ;;
1845 m68k-apple-aux
*) fmt=coff em
=aux
;;
1846 m68k-
*-psos*) fmt=elf em
=psos
;;
1848 m88k-motorola-sysv3
*) fmt=coff em
=delt88
;;
1849 m88k-
*-coff*) fmt=coff
;;
1851 mcore-
*-elf) fmt=elf bfd_gas
=yes ;;
1852 mcore-
*-pe) fmt=coff em
=pe bfd_gas
=yes ;;
1854 # don't change em like *-*-bsd does
1855 mips-dec-netbsd
*) fmt=elf endian
=little
;;
1856 mips-dec-openbsd
*) fmt=elf endian
=little
;;
1857 mips-dec-bsd
*) fmt=aout endian
=little
;;
1858 mips-sony-bsd
*) fmt=ecoff
;;
1859 mips-
*-bsd*) { echo "configure: error: Unknown vendor for mips-bsd configuration." 1>&2; exit 1; } ;;
1860 mips-
*-ultrix*) fmt=ecoff endian
=little
;;
1861 mips-
*-osf*) fmt=ecoff endian
=little
;;
1862 mips-
*-ecoff*) fmt=ecoff
;;
1863 mips-
*-ecoff*) fmt=ecoff
;;
1864 mips-
*-pe*) fmt=coff endian
=little em
=pe
;;
1865 mips-
*-irix6*) fmt=elf
;;
1866 mips-
*-irix5*) fmt=elf
;;
1867 mips-
*-irix*) fmt=ecoff
;;
1868 mips-
*-lnews*) fmt=ecoff em
=lnews
;;
1869 mips-
*-riscos*) fmt=ecoff
;;
1870 mips-
*-sysv*) fmt=ecoff
;;
1871 mips-
*-elf* | mips-
*-rtems* | mips-
*-linux-gnu* | mips-
*-gnu* | mips-
*-openbsd*)
1873 mips-
*-vxworks*) fmt=elf
1874 cat >> confdefs.h
<<\EOF
1875 #define MIPS_STABS_ELF 1
1879 mn10200-
*-*) fmt=elf bfd_gas
=yes ;;
1880 mn10300-
*-*) fmt=elf bfd_gas
=yes ;;
1882 ppc-
*-pe | ppc-
*-cygwin* | ppc-
*-winnt*)
1884 ppc-
*-aix*) fmt=coff
;;
1885 ppc-
*-beos*) fmt=coff
;;
1886 ppc-
*-*bsd
* | ppc-
*-elf* | ppc-
*-eabi* | ppc-
*-sysv4*)
1888 ppc-
*-linux-gnu*) fmt=elf
1891 *) { echo "configure: error: GNU/Linux must be configured big endian" 1>&2; exit 1; } ;;
1894 ppc-
*-solaris*) fmt=elf
1895 if test ${this_target} = $target; then
1896 cat >> confdefs.h
<<\EOF
1897 #define TARGET_SOLARIS_COMMENT 1
1901 if test x
${endian} = xbig
; then
1902 { echo "configure: error: Solaris must be configured little endian" 1>&2; exit 1; }
1905 ppc-
*-rtems*) fmt=elf
;;
1906 ppc-
*-macos* | ppc-
*-mpw*)
1907 fmt=coff em
=macos
;;
1908 ppc-
*-netware*) fmt=elf em
=ppcnw
;;
1909 ppc-
*-vxworks*) fmt=elf
;;
1911 sh-
*-elf*) fmt=elf
;;
1912 sh-
*-coff*) fmt=coff
;;
1913 sh-
*-pe*) fmt=coff em
=pe bfd_gas
=yes;;
1914 sh-
*-rtemself*) fmt=elf
;;
1915 sh-
*-rtems*) fmt=coff
;;
1917 ns32k-pc532-mach
* | ns32k-pc532-ux
*) fmt=aout em
=pc532mach
;;
1918 ns32k-pc532-netbsd
* | ns32k-pc532-lites
*) fmt=aout em
=nbsd532
;;
1919 ns32k-pc532-openbsd
*) fmt=aout em
=nbsd532
;;
1921 sparc-
*-rtems*) fmt=aout
;;
1922 sparc-
*-sunos4*) fmt=aout em
=sun3
;;
1923 sparc-
*-aout | sparc
*-*-vxworks*)
1924 fmt=aout em
=sparcaout
;;
1925 sparc-
*-coff) fmt=coff
;;
1926 sparc-
*-linux*aout
*) fmt=aout em
=linux
;;
1927 sparc-
*-linux-gnu*) fmt=elf em
=linux
;;
1928 sparc-
*-lynxos*) fmt=coff em
=lynx
;;
1929 sparc-fujitsu-none
) fmt=aout
;;
1930 sparc-
*-elf | sparc-
*-sysv4* | sparc-
*-solaris*)
1932 sparc-
*-netbsd*) fmt=aout em
=nbsd
;;
1933 sparc-
*-openbsd*) fmt=aout em
=nbsd
;;
1935 strongarm-
*-coff) fmt=coff
;;
1936 strongarm-
*-elf) fmt=elf
;;
1938 tic30-
*-*aout
*) fmt=aout bfd_gas
=yes ;;
1939 tic30-
*-*coff
*) fmt=coff bfd_gas
=yes ;;
1940 tic80-
*-*) fmt=coff
;;
1942 v850-
*-*) fmt=elf bfd_gas
=yes ;;
1943 v850e-
*-*) fmt=elf bfd_gas
=yes ;;
1944 v850ea-
*-*) fmt=elf bfd_gas
=yes ;;
1946 vax-
*-bsd* | vax-
*-ultrix*)
1948 vax-
*-vms) fmt=vms
;;
1951 z8k-
*-coff | z8k-
*-sim)
1954 w65-
*-*) fmt=coff
;;
1956 *-*-aout |
*-*-scout)
1962 *-*-generic) fmt=generic
;;
1963 *-*-xray |
*-*-hms) fmt=coff
;;
1964 *-*-sim) fmt=coff
;;
1965 *-*-elf |
*-*-sysv4* |
*-*-solaris*)
1966 echo "configure: warning: GAS support for ${generic_target} is incomplete." 1>&2
1968 *-*-vxworks) fmt=aout
;;
1969 *-*-netware) fmt=elf
;;
1972 if test ${this_target} = $target ; then
1974 if test x
${endian} = xbig
; then
1976 elif test x
${endian} = xlittle
; then
1979 if test x
${endian_def} != x
; then
1980 cat >> confdefs.h
<<EOF
1981 #define TARGET_BYTES_BIG_ENDIAN $endian_def
1987 case ${cpu_type}-${fmt} in
1988 alpha
*-*) bfd_gas
=yes ;;
1989 arm-
*) bfd_gas
=yes ;;
1991 # i386-aout) bfd_gas=preferred ;;
1992 mips-
*) bfd_gas
=yes ;;
1993 ns32k-
*) bfd_gas
=yes ;;
1994 ppc-
*) bfd_gas
=yes ;;
1995 sparc-
*) bfd_gas
=yes ;;
1996 strongarm-
*) bfd_gas
=yes ;;
1997 *-elf) bfd_gas
=yes ;;
1998 *-ecoff) bfd_gas
=yes ;;
1999 *-som) bfd_gas
=yes ;;
2000 #enable bfd for coff and aout to allow testing if a bfd target is
2001 #the primary target, but not for coff or aout as the primary target
2002 i386-coff
) if test x
${primary_bfd_gas} = xyes
; then bfd_gas
=yes; fi ;;
2003 i386-aout
) if test x
${primary_bfd_gas} = xyes
; then bfd_gas
=yes; fi ;;
2007 # Other random stuff.
2009 # Do we need the opcodes library?
2017 case "${enable_shared}" in
2018 yes) shared_opcodes
=true
;;
2019 *opcodes
*) shared_opcodes
=true
;;
2020 *) shared_opcodes
=false
;;
2022 if test "${shared_opcodes}" = "true"; then
2023 # A shared libopcodes must be linked against libbfd.
2029 # Any other special object files needed ?
2036 case ${extra_objects} in
2038 *) extra_objects
="$extra_objects m68k-parse.o" ;;
2043 echo ${extra_objects} |
grep -s "itbl-parse.o"
2044 if test $?
-ne 0 ; then
2045 extra_objects
="$extra_objects itbl-parse.o"
2048 echo ${extra_objects} |
grep -s "itbl-lex.o"
2049 if test $?
-ne 0 ; then
2050 extra_objects
="$extra_objects itbl-lex.o"
2053 echo ${extra_objects} |
grep -s "itbl-ops.o"
2054 if test $?
-ne 0 ; then
2055 extra_objects
="$extra_objects itbl-ops.o"
2060 if test $this_target = $target ; then
2061 cat >> confdefs.h
<<EOF
2062 #define DEFAULT_ARCH "${arch}"
2071 if test $using_cgen = yes ; then
2072 case "x${extra_objects}" in
2074 *) extra_objects
="$extra_objects cgen.o" ;;
2078 # See if we really can support this configuration with the emulation code.
2080 if test $this_target = $target ; then
2081 primary_bfd_gas
=$bfd_gas
2085 if test $bfd_gas = no
; then
2086 # Can't support other configurations this way.
2089 elif test $bfd_gas = no
; then
2090 # Can't support this configuration.
2094 # From target name and format, produce a list of supported emulations.
2096 case ${generic_target}-${fmt} in
2097 mips-
*-irix5*-*) emulation
="mipsbelf mipslelf mipself mipsbecoff mipslecoff mipsecoff" ;;
2098 mips-
*-linux-gnu*-*) case "$endian" in
2099 big
) emulation
="mipsbelf mipslelf mipself mipsbecoff mipslecoff mipsecoff" ;;
2100 *) emulation
="mipslelf mipsbelf mipself mipslecoff mipsbecoff mipsecoff" ;;
2102 mips-
*-lnews*-ecoff) ;;
2103 mips-
*-*-ecoff) case "$endian" in
2104 big
) emulation
="mipsbecoff mipslecoff mipsecoff" ;;
2105 *) emulation
="mipslecoff mipsbecoff mipsecoff" ;;
2107 mips-
*-*-elf) case "$endian" in
2108 big
) emulation
="mipsbelf mipslelf mipself" ;;
2109 *) emulation
="mipslelf mipsbelf mipself" ;;
2111 # Uncommenting the next line will turn on support for i386 AOUT
2112 # for the default linux configuration
2113 # i386-*-linux*-elf) emulation="i386elf i386aout" ;;
2115 i386-
*-aout) emulation
="i386aout" ;;
2116 i386-
*-coff) emulation
="i386coff" ;;
2117 i386-
*-elf) emulation
="i386elf" ;;
2120 emulations
="$emulations $emulation"
2124 # Turn on all targets if possible
2125 if test ${all_targets} = "yes"; then
2126 case ${target_cpu_type} in
2128 case ${obj_format} in
2130 emulations
="$emulations i386coff i386elf"
2133 emulations
="$emulations i386aout i386elf"
2136 emulations
="$emulations i386aout i386coff"
2143 # Assign floating point type. Most processors with FP support
2144 # IEEE FP. On those that don't support FP at all, usually IEEE
2146 case ${target_cpu} in
2147 vax | tahoe
) atof
=${target_cpu} ;;
2151 case "${obj_format}" in
2152 "") { echo "configure: error: GAS does not know what format to use for target ${target}" 1>&2; exit 1; } ;;
2155 # Unfortunately the cpu in cpu-opc.h file isn't always $(TARGET_CPU).
2157 if test $using_cgen = yes ; then
2158 case ${target_cpu} in
2159 *) cgen_cpu_prefix
=${target_cpu} ;;
2162 cat >> confdefs.h
<<\EOF
2163 #define USING_CGEN 1
2169 if test ! -r ${srcdir}/config
/tc-
${target_cpu_type}.c
; then
2170 { echo "configure: error: GAS does not support target CPU ${target_cpu_type}" 1>&2; exit 1; }
2173 if test ! -r ${srcdir}/config
/obj-
${obj_format}.c
; then
2174 { echo "configure: error: GAS does not have support for object file format ${obj_format}" 1>&2; exit 1; }
2177 case ${user_bfd_gas}-${primary_bfd_gas} in
2179 # We didn't override user's choice.
2182 echo "configure: warning: Use of BFD is required for ${target}; overriding config options." 1>&2
2194 # User specified nothing.
2198 # Some COFF configurations want these random other flags set.
2199 case ${obj_format} in
2201 case ${target_cpu_type} in
2202 i386
) cat >> confdefs.h
<<\EOF
2206 m68k
) cat >> confdefs.h
<<\EOF
2210 m88k
) cat >> confdefs.h
<<\EOF
2218 # Getting this done right is going to be a bitch. Each configuration specified
2219 # with --enable-targets=... should be checked for environment, format, cpu, and
2222 # For each configuration, the necessary object file support code must be linked
2223 # in. This might be only one, it might be up to four. The necessary emulation
2224 # code needs to be provided, too.
2226 # And then there's "--enable-targets=all"....
2228 # For now, just always do it for MIPS ELF or ECOFF configurations. Sigh.
2230 formats
="${obj_format}"
2233 _gas_uniq_list
="$emulations"
2234 _gas_uniq_newlist
=""
2235 for _gas_uniq_i
in _gas_uniq_dummy
$_gas_uniq_list ; do
2236 case $_gas_uniq_i in
2238 *) case " $_gas_uniq_newlist " in
2239 *" $_gas_uniq_i "*) ;;
2240 *) _gas_uniq_newlist
="$_gas_uniq_newlist $_gas_uniq_i" ;;
2244 emulations
=$_gas_uniq_newlist
2246 for em
in .
$emulations ; do
2249 mipsbelf | mipslelf
)
2250 fmt=elf
file=mipself
;;
2251 mipsbecoff | mipslecoff
)
2252 fmt=ecoff
file=mipsecoff
;;
2254 fmt=aout
file=i386aout
;;
2256 fmt=coff
file=i386coff
;;
2258 fmt=elf
file=i386elf
;;
2260 formats
="$formats $fmt"
2261 emfiles
="$emfiles e-$file.o"
2262 EMULATIONS
="$EMULATIONS &$em,"
2264 _gas_uniq_list
="$formats"
2265 _gas_uniq_newlist
=""
2266 for _gas_uniq_i
in _gas_uniq_dummy
$_gas_uniq_list ; do
2267 case $_gas_uniq_i in
2269 *) case " $_gas_uniq_newlist " in
2270 *" $_gas_uniq_i "*) ;;
2271 *) _gas_uniq_newlist
="$_gas_uniq_newlist $_gas_uniq_i" ;;
2275 formats
=$_gas_uniq_newlist
2277 _gas_uniq_list
="$emfiles"
2278 _gas_uniq_newlist
=""
2279 for _gas_uniq_i
in _gas_uniq_dummy
$_gas_uniq_list ; do
2280 case $_gas_uniq_i in
2282 *) case " $_gas_uniq_newlist " in
2283 *" $_gas_uniq_i "*) ;;
2284 *) _gas_uniq_newlist
="$_gas_uniq_newlist $_gas_uniq_i" ;;
2288 emfiles
=$_gas_uniq_newlist
2290 if test `set . $formats ; shift ; echo $#` -gt 1 ; then
2291 for fmt in $formats ; do
2293 aout
) cat >> confdefs.h
<<\EOF
2294 #define OBJ_MAYBE_AOUT 1
2297 bout
) cat >> confdefs.h
<<\EOF
2298 #define OBJ_MAYBE_BOUT 1
2301 coff
) cat >> confdefs.h
<<\EOF
2302 #define OBJ_MAYBE_COFF 1
2305 ecoff
) cat >> confdefs.h
<<\EOF
2306 #define OBJ_MAYBE_ECOFF 1
2309 elf
) cat >> confdefs.h
<<\EOF
2310 #define OBJ_MAYBE_ELF 1
2313 generic
) cat >> confdefs.h
<<\EOF
2314 #define OBJ_MAYBE_GENERIC 1
2317 hp300
) cat >> confdefs.h
<<\EOF
2318 #define OBJ_MAYBE_HP300 1
2321 ieee
) cat >> confdefs.h
<<\EOF
2322 #define OBJ_MAYBE_IEEE 1
2325 som
) cat >> confdefs.h
<<\EOF
2326 #define OBJ_MAYBE_SOM 1
2329 vms
) cat >> confdefs.h
<<\EOF
2330 #define OBJ_MAYBE_VMS 1
2334 extra_objects
="$extra_objects obj-$fmt.o"
2338 if test `set . $emfiles ; shift ; echo $#` -gt 0 ; then
2339 DEFAULT_EMULATION
=`set . $emulations ; echo $2`
2340 # e-mips* has more than one emulation per file, e-i386* has just one at the
2341 # moment. If only one emulation is specified, then don't define
2342 # USE_EMULATIONS or include any of the e-files as they will only be bloat.
2343 case "${obj_format}${emfiles}" in
2345 extra_objects
="$extra_objects $emfiles"
2346 cat >> confdefs.h
<<\EOF
2347 #define USE_EMULATIONS 1
2353 cat >> confdefs.h
<<EOF
2354 #define EMULATIONS $EMULATIONS
2357 cat >> confdefs.h
<<EOF
2358 #define DEFAULT_EMULATION "$DEFAULT_EMULATION"
2362 case ${primary_bfd_gas}-${target_cpu_type}-${obj_format} in
2363 yes-
*-coff) need_bfd
=yes ;;
2364 no-
*-coff) need_bfd
=yes
2365 cat >> confdefs.h
<<\EOF
2366 #define MANY_SEGMENTS 1
2371 reject_dev_configs
=yes
2373 case ${reject_dev_configs}-${dev} in
2375 { echo "configure: error: GAS does not support the ${generic_target} configuration." 1>&2; exit 1; }
2385 case "${primary_bfd_gas}" in
2386 yes) cat >> confdefs.h
<<\EOF
2387 #define BFD_ASSEMBLER 1
2393 # do we need the opcodes library?
2394 case "${need_opcodes}" in
2396 OPCODES_LIB
=..
/opcodes
/libopcodes.la
2400 case "${need_bfd}" in
2402 BFDLIB
=..
/bfd
/libbfd.la
2403 ALL_OBJ_DEPS
="$ALL_OBJ_DEPS ../bfd/bfd.h"
2412 cat >> confdefs.h
<<EOF
2413 #define TARGET_ALIAS "${target_alias}"
2416 cat >> confdefs.h
<<EOF
2417 #define TARGET_CANONICAL "${target}"
2420 cat >> confdefs.h
<<EOF
2421 #define TARGET_CPU "${target_cpu}"
2424 cat >> confdefs.h
<<EOF
2425 #define TARGET_VENDOR "${target_vendor}"
2428 cat >> confdefs.h
<<EOF
2429 #define TARGET_OS "${target_os}"
2433 # Extract the first word of "gcc", so it can be a program name with args.
2434 set dummy gcc
; ac_word
=$2
2435 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2436 echo "configure:2437: checking for $ac_word" >&5
2437 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2438 echo $ac_n "(cached) $ac_c" 1>&6
2440 if test -n "$CC"; then
2441 ac_cv_prog_CC
="$CC" # Let the user override the test.
2443 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2445 for ac_dir
in $ac_dummy; do
2446 test -z "$ac_dir" && ac_dir
=.
2447 if test -f $ac_dir/$ac_word; then
2456 if test -n "$CC"; then
2457 echo "$ac_t""$CC" 1>&6
2459 echo "$ac_t""no" 1>&6
2462 if test -z "$CC"; then
2463 # Extract the first word of "cc", so it can be a program name with args.
2464 set dummy cc
; ac_word
=$2
2465 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2466 echo "configure:2467: checking for $ac_word" >&5
2467 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2468 echo $ac_n "(cached) $ac_c" 1>&6
2470 if test -n "$CC"; then
2471 ac_cv_prog_CC
="$CC" # Let the user override the test.
2473 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2476 for ac_dir
in $ac_dummy; do
2477 test -z "$ac_dir" && ac_dir
=.
2478 if test -f $ac_dir/$ac_word; then
2479 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2480 ac_prog_rejected
=yes
2488 if test $ac_prog_rejected = yes; then
2489 # We found a bogon in the path, so make sure we never use it.
2490 set dummy
$ac_cv_prog_CC
2492 if test $# -gt 0; then
2493 # We chose a different compiler from the bogus one.
2494 # However, it has the same basename, so the bogon will be chosen
2495 # first if we set CC to just the basename; use the full file name.
2497 set dummy
"$ac_dir/$ac_word" "$@"
2505 if test -n "$CC"; then
2506 echo "$ac_t""$CC" 1>&6
2508 echo "$ac_t""no" 1>&6
2511 if test -z "$CC"; then
2512 case "`uname -s`" in
2513 *win32
* |
*WIN32
* |
*CYGWIN
*)
2514 # Extract the first word of "cl", so it can be a program name with args.
2515 set dummy cl
; ac_word
=$2
2516 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2517 echo "configure:2518: checking for $ac_word" >&5
2518 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2519 echo $ac_n "(cached) $ac_c" 1>&6
2521 if test -n "$CC"; then
2522 ac_cv_prog_CC
="$CC" # Let the user override the test.
2524 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2526 for ac_dir
in $ac_dummy; do
2527 test -z "$ac_dir" && ac_dir
=.
2528 if test -f $ac_dir/$ac_word; then
2537 if test -n "$CC"; then
2538 echo "$ac_t""$CC" 1>&6
2540 echo "$ac_t""no" 1>&6
2545 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2548 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2549 echo "configure:2550: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works" >&5
2552 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2553 ac_cpp
='$CPP $CPPFLAGS'
2554 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2555 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2556 cross_compiling
=$ac_cv_prog_cc_cross
2558 cat > conftest.
$ac_ext << EOF
2560 #line 2561 "configure"
2561 #include "confdefs.h"
2565 if { (eval echo configure
:2566: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2566 ac_cv_prog_cc_works
=yes
2567 # If we can't run a trivial program, we are probably using a cross compiler.
2568 if (.
/conftest
; exit) 2>/dev
/null
; then
2569 ac_cv_prog_cc_cross
=no
2571 ac_cv_prog_cc_cross
=yes
2574 echo "configure: failed program was:" >&5
2575 cat conftest.
$ac_ext >&5
2576 ac_cv_prog_cc_works
=no
2580 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2581 ac_cpp
='$CPP $CPPFLAGS'
2582 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2583 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2584 cross_compiling
=$ac_cv_prog_cc_cross
2586 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2587 if test $ac_cv_prog_cc_works = no
; then
2588 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2590 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2591 echo "configure:2592: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler" >&5
2592 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2593 cross_compiling
=$ac_cv_prog_cc_cross
2595 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2596 echo "configure:2597: checking whether we are using GNU C" >&5
2597 if eval "test \"\${ac_cv_prog_gcc+set}\" = set"; then
2598 echo $ac_n "(cached) $ac_c" 1>&6
2600 cat > conftest.c
<<EOF
2605 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:2606: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
2612 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2614 if test $ac_cv_prog_gcc = yes; then
2620 ac_test_CFLAGS
="${CFLAGS+set}"
2621 ac_save_CFLAGS
="$CFLAGS"
2623 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2624 echo "configure:2625: checking whether ${CC-cc} accepts -g" >&5
2625 if eval "test \"\${ac_cv_prog_cc_g+set}\" = set"; then
2626 echo $ac_n "(cached) $ac_c" 1>&6
2628 echo 'void f(){}' > conftest.c
2629 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2638 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2639 if test "$ac_test_CFLAGS" = set; then
2640 CFLAGS
="$ac_save_CFLAGS"
2641 elif test $ac_cv_prog_cc_g = yes; then
2642 if test "$GCC" = yes; then
2648 if test "$GCC" = yes; then
2656 for ac_prog
in 'bison -y' byacc
2658 # Extract the first word of "$ac_prog", so it can be a program name with args.
2659 set dummy
$ac_prog; ac_word
=$2
2660 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2661 echo "configure:2662: checking for $ac_word" >&5
2662 if eval "test \"\${ac_cv_prog_YACC+set}\" = set"; then
2663 echo $ac_n "(cached) $ac_c" 1>&6
2665 if test -n "$YACC"; then
2666 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
2668 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2670 for ac_dir
in $ac_dummy; do
2671 test -z "$ac_dir" && ac_dir
=.
2672 if test -f $ac_dir/$ac_word; then
2673 ac_cv_prog_YACC
="$ac_prog"
2680 YACC
="$ac_cv_prog_YACC"
2681 if test -n "$YACC"; then
2682 echo "$ac_t""$YACC" 1>&6
2684 echo "$ac_t""no" 1>&6
2687 test -n "$YACC" && break
2689 test -n "$YACC" || YACC
="yacc"
2691 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2692 echo "configure:2693: checking how to run the C preprocessor" >&5
2693 # On Suns, sometimes $CPP names a directory.
2694 if test -n "$CPP" && test -d "$CPP"; then
2697 if test -z "$CPP"; then
2698 if eval "test \"\${ac_cv_prog_CPP+set}\" = set"; then
2699 echo $ac_n "(cached) $ac_c" 1>&6
2701 # This must be in double quotes, not single quotes, because CPP may get
2702 # substituted into the Makefile and "${CC-cc}" will confuse make.
2704 # On the NeXT, cc -E runs the code through the compiler's parser,
2705 # not just through cpp.
2706 cat > conftest.
$ac_ext <<EOF
2707 #line 2708 "configure"
2708 #include "confdefs.h"
2712 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2713 { (eval echo configure
:2714: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2714 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2715 if test -z "$ac_err"; then
2719 echo "configure: failed program was:" >&5
2720 cat conftest.
$ac_ext >&5
2722 CPP
="${CC-cc} -E -traditional-cpp"
2723 cat > conftest.
$ac_ext <<EOF
2724 #line 2725 "configure"
2725 #include "confdefs.h"
2729 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2730 { (eval echo configure
:2731: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2731 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2732 if test -z "$ac_err"; then
2736 echo "configure: failed program was:" >&5
2737 cat conftest.
$ac_ext >&5
2739 CPP
="${CC-cc} -nologo -E"
2740 cat > conftest.
$ac_ext <<EOF
2741 #line 2742 "configure"
2742 #include "confdefs.h"
2746 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2747 { (eval echo configure
:2748: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2748 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2749 if test -z "$ac_err"; then
2753 echo "configure: failed program was:" >&5
2754 cat conftest.
$ac_ext >&5
2763 ac_cv_prog_CPP
="$CPP"
2765 CPP
="$ac_cv_prog_CPP"
2767 ac_cv_prog_CPP
="$CPP"
2769 echo "$ac_t""$CPP" 1>&6
2771 missing_dir
=`cd $ac_aux_dir && pwd`
2772 for ac_prog
in flex
lex
2774 # Extract the first word of "$ac_prog", so it can be a program name with args.
2775 set dummy
$ac_prog; ac_word
=$2
2776 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2777 echo "configure:2778: checking for $ac_word" >&5
2778 if eval "test \"\${ac_cv_prog_LEX+set}\" = set"; then
2779 echo $ac_n "(cached) $ac_c" 1>&6
2781 if test -n "$LEX"; then
2782 ac_cv_prog_LEX
="$LEX" # Let the user override the test.
2784 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2786 for ac_dir
in $ac_dummy; do
2787 test -z "$ac_dir" && ac_dir
=.
2788 if test -f $ac_dir/$ac_word; then
2789 ac_cv_prog_LEX
="$ac_prog"
2796 LEX
="$ac_cv_prog_LEX"
2797 if test -n "$LEX"; then
2798 echo "$ac_t""$LEX" 1>&6
2800 echo "$ac_t""no" 1>&6
2803 test -n "$LEX" && break
2805 test -n "$LEX" || LEX
=""$missing_dir/missing flex
""
2807 # Extract the first word of "flex", so it can be a program name with args.
2808 set dummy flex
; ac_word
=$2
2809 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2810 echo "configure:2811: checking for $ac_word" >&5
2811 if eval "test \"\${ac_cv_prog_LEX+set}\" = set"; then
2812 echo $ac_n "(cached) $ac_c" 1>&6
2814 if test -n "$LEX"; then
2815 ac_cv_prog_LEX
="$LEX" # Let the user override the test.
2817 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2819 for ac_dir
in $ac_dummy; do
2820 test -z "$ac_dir" && ac_dir
=.
2821 if test -f $ac_dir/$ac_word; then
2822 ac_cv_prog_LEX
="flex"
2827 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX
="lex"
2830 LEX
="$ac_cv_prog_LEX"
2831 if test -n "$LEX"; then
2832 echo "$ac_t""$LEX" 1>&6
2834 echo "$ac_t""no" 1>&6
2837 if test -z "$LEXLIB"
2843 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
2844 echo "configure:2845: checking for yywrap in -l$ac_lib" >&5
2845 ac_lib_var
=`echo $ac_lib'_'yywrap | sed 'y%./+-:%__p__%'`
2846 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
2847 echo $ac_n "(cached) $ac_c" 1>&6
2849 ac_save_LIBS
="$LIBS"
2850 LIBS
="-l$ac_lib $LIBS"
2851 cat > conftest.
$ac_ext <<EOF
2852 #line 2853 "configure"
2853 #include "confdefs.h"
2854 /* Override any gcc2 internal prototype to avoid an error. */
2855 /* We use char because int might match the return type of a gcc2
2856 builtin and then its argument prototype would still apply. */
2863 if { (eval echo configure
:2864: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2865 eval "ac_cv_lib_$ac_lib_var=yes"
2867 echo "configure: failed program was:" >&5
2868 cat conftest.
$ac_ext >&5
2870 eval "ac_cv_lib_$ac_lib_var=no"
2873 LIBS
="$ac_save_LIBS"
2876 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2877 echo "$ac_t""yes" 1>&6
2880 echo "$ac_t""no" 1>&6
2885 echo $ac_n "checking lex output file root""... $ac_c" 1>&6
2886 echo "configure:2887: checking lex output file root" >&5
2887 if eval "test \"\${ac_cv_prog_lex_root+set}\" = set"; then
2888 echo $ac_n "(cached) $ac_c" 1>&6
2890 # The minimal lex program is just a single line: %%. But some broken lexes
2891 # (Solaris, I think it was) want two %% lines, so accommodate them.
2894 if test -f lex.yy.c
; then
2895 ac_cv_prog_lex_root
=lex.yy
2896 elif test -f lexyy.c
; then
2897 ac_cv_prog_lex_root
=lexyy
2899 { echo "configure: error: cannot find output from $LEX; giving up" 1>&2; exit 1; }
2903 echo "$ac_t""$ac_cv_prog_lex_root" 1>&6
2904 LEX_OUTPUT_ROOT
=$ac_cv_prog_lex_root
2906 echo $ac_n "checking whether yytext is a pointer""... $ac_c" 1>&6
2907 echo "configure:2908: checking whether yytext is a pointer" >&5
2908 if eval "test \"\${ac_cv_prog_lex_yytext_pointer+set}\" = set"; then
2909 echo $ac_n "(cached) $ac_c" 1>&6
2911 # POSIX says lex can declare yytext either as a pointer or an array; the
2912 # default is implementation-dependent. Figure out which it is, since
2913 # not all implementations provide the %pointer and %array declarations.
2914 ac_cv_prog_lex_yytext_pointer
=no
2915 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
2916 ac_save_LIBS
="$LIBS"
2917 LIBS
="$LIBS $LEXLIB"
2918 cat > conftest.
$ac_ext <<EOF
2919 #line 2920 "configure"
2920 #include "confdefs.h"
2921 `cat $LEX_OUTPUT_ROOT.c`
2926 if { (eval echo configure
:2927: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2928 ac_cv_prog_lex_yytext_pointer
=yes
2930 echo "configure: failed program was:" >&5
2931 cat conftest.
$ac_ext >&5
2934 LIBS
="$ac_save_LIBS"
2935 rm -f "${LEX_OUTPUT_ROOT}.c"
2939 echo "$ac_t""$ac_cv_prog_lex_yytext_pointer" 1>&6
2940 if test $ac_cv_prog_lex_yytext_pointer = yes; then
2941 cat >> confdefs.h
<<\EOF
2942 #define YYTEXT_POINTER 1
2949 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
2950 echo "configure:2951: checking for POSIXized ISC" >&5
2951 if test -d /etc
/conf
/kconfig.d
&&
2952 grep _POSIX_VERSION
/usr
/include
/sys
/unistd.h
>/dev
/null
2>&1
2954 echo "$ac_t""yes" 1>&6
2955 ISC
=yes # If later tests want to check for ISC.
2956 cat >> confdefs.h
<<\EOF
2957 #define _POSIX_SOURCE 1
2960 if test "$GCC" = yes; then
2966 echo "$ac_t""no" 1>&6
2970 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2971 echo "configure:2972: checking for ANSI C header files" >&5
2972 if eval "test \"\${ac_cv_header_stdc+set}\" = set"; then
2973 echo $ac_n "(cached) $ac_c" 1>&6
2975 cat > conftest.
$ac_ext <<EOF
2976 #line 2977 "configure"
2977 #include "confdefs.h"
2983 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2984 { (eval echo configure
:2985: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2985 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2986 if test -z "$ac_err"; then
2988 ac_cv_header_stdc
=yes
2991 echo "configure: failed program was:" >&5
2992 cat conftest.
$ac_ext >&5
2994 ac_cv_header_stdc
=no
2998 if test $ac_cv_header_stdc = yes; then
2999 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3000 cat > conftest.
$ac_ext <<EOF
3001 #line 3002 "configure"
3002 #include "confdefs.h"
3005 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3006 egrep "memchr" >/dev
/null
2>&1; then
3010 ac_cv_header_stdc
=no
3016 if test $ac_cv_header_stdc = yes; then
3017 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3018 cat > conftest.
$ac_ext <<EOF
3019 #line 3020 "configure"
3020 #include "confdefs.h"
3023 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3024 egrep "free" >/dev
/null
2>&1; then
3028 ac_cv_header_stdc
=no
3034 if test $ac_cv_header_stdc = yes; then
3035 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3036 if test "$cross_compiling" = yes; then
3039 cat > conftest.
$ac_ext <<EOF
3040 #line 3041 "configure"
3041 #include "confdefs.h"
3043 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3044 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3045 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3046 int main () { int i; for (i = 0; i < 256; i++)
3047 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3051 if { (eval echo configure
:3052: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3055 echo "configure: failed program was:" >&5
3056 cat conftest.
$ac_ext >&5
3058 ac_cv_header_stdc
=no
3066 echo "$ac_t""$ac_cv_header_stdc" 1>&6
3067 if test $ac_cv_header_stdc = yes; then
3068 cat >> confdefs.h
<<\EOF
3069 #define STDC_HEADERS 1
3074 echo $ac_n "checking for working const""... $ac_c" 1>&6
3075 echo "configure:3076: checking for working const" >&5
3076 if eval "test \"\${ac_cv_c_const+set}\" = set"; then
3077 echo $ac_n "(cached) $ac_c" 1>&6
3079 cat > conftest.
$ac_ext <<EOF
3080 #line 3081 "configure"
3081 #include "confdefs.h"
3085 /* Ultrix mips cc rejects this. */
3086 typedef int charset[2]; const charset x;
3087 /* SunOS 4.1.1 cc rejects this. */
3088 char const *const *ccp;
3090 /* NEC SVR4.0.2 mips cc rejects this. */
3091 struct point {int x, y;};
3092 static struct point const zero = {0,0};
3093 /* AIX XL C 1.02.0.0 rejects this.
3094 It does not let you subtract one const X* pointer from another in an arm
3095 of an if-expression whose if-part is not a constant expression */
3096 const char *g = "string";
3097 ccp = &g + (g ? g-g : 0);
3098 /* HPUX 7.0 cc rejects these. */
3101 ccp = (char const *const *) p;
3102 { /* SCO 3.2v4 cc rejects this. */
3104 char const *s = 0 ? (char *) 0 : (char const *) 0;
3108 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3110 const int *foo = &x[0];
3113 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3114 typedef const int *iptr;
3118 { /* AIX XL C 1.02.0.0 rejects this saying
3119 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3120 struct s { int j; const int *ap[3]; };
3121 struct s *b; b->j = 5;
3123 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3129 if { (eval echo configure
:3130: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3133 echo "configure: failed program was:" >&5
3134 cat conftest.
$ac_ext >&5
3141 echo "$ac_t""$ac_cv_c_const" 1>&6
3142 if test $ac_cv_c_const = no
; then
3143 cat >> confdefs.h
<<\EOF
3149 echo $ac_n "checking for inline""... $ac_c" 1>&6
3150 echo "configure:3151: checking for inline" >&5
3151 if eval "test \"\${ac_cv_c_inline+set}\" = set"; then
3152 echo $ac_n "(cached) $ac_c" 1>&6
3155 for ac_kw
in inline __inline__ __inline
; do
3156 cat > conftest.
$ac_ext <<EOF
3157 #line 3158 "configure"
3158 #include "confdefs.h"
3161 } $ac_kw int foo() {
3164 if { (eval echo configure
:3165: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3166 ac_cv_c_inline
=$ac_kw; break
3168 echo "configure: failed program was:" >&5
3169 cat conftest.
$ac_ext >&5
3176 echo "$ac_t""$ac_cv_c_inline" 1>&6
3177 case "$ac_cv_c_inline" in
3179 no
) cat >> confdefs.h
<<\EOF
3183 *) cat >> confdefs.h
<<EOF
3184 #define inline $ac_cv_c_inline
3189 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3190 echo "configure:3191: checking for off_t" >&5
3191 if eval "test \"\${ac_cv_type_off_t+set}\" = set"; then
3192 echo $ac_n "(cached) $ac_c" 1>&6
3194 cat > conftest.
$ac_ext <<EOF
3195 #line 3196 "configure"
3196 #include "confdefs.h"
3197 #include <sys/types.h>
3203 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3204 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3206 eval "ac_cv_type_off_t=yes"
3209 eval "ac_cv_type_off_t=no"
3214 if eval "test \"`echo '$ac_cv_type_'off_t`\" = yes"; then
3215 echo "$ac_t""yes" 1>&6
3217 echo "$ac_t""no" 1>&6
3218 cat >> confdefs.h
<<EOF
3224 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3225 echo "configure:3226: checking for size_t" >&5
3226 if eval "test \"\${ac_cv_type_size_t+set}\" = set"; then
3227 echo $ac_n "(cached) $ac_c" 1>&6
3229 cat > conftest.
$ac_ext <<EOF
3230 #line 3231 "configure"
3231 #include "confdefs.h"
3232 #include <sys/types.h>
3238 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3239 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3241 eval "ac_cv_type_size_t=yes"
3244 eval "ac_cv_type_size_t=no"
3249 if eval "test \"`echo '$ac_cv_type_'size_t`\" = yes"; then
3250 echo "$ac_t""yes" 1>&6
3252 echo "$ac_t""no" 1>&6
3253 cat >> confdefs.h
<<EOF
3254 #define size_t unsigned
3259 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
3260 # for constant arguments. Useless!
3261 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
3262 echo "configure:3263: checking for working alloca.h" >&5
3263 if eval "test \"\${ac_cv_header_alloca_h+set}\" = set"; then
3264 echo $ac_n "(cached) $ac_c" 1>&6
3266 cat > conftest.
$ac_ext <<EOF
3267 #line 3268 "configure"
3268 #include "confdefs.h"
3271 char *p = alloca(2 * sizeof(int));
3274 if { (eval echo configure
:3275: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3276 ac_cv_header_alloca_h
=yes
3278 echo "configure: failed program was:" >&5
3279 cat conftest.
$ac_ext >&5
3281 ac_cv_header_alloca_h
=no
3286 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
3287 if test $ac_cv_header_alloca_h = yes; then
3288 cat >> confdefs.h
<<\EOF
3289 #define HAVE_ALLOCA_H 1
3294 echo $ac_n "checking for alloca""... $ac_c" 1>&6
3295 echo "configure:3296: checking for alloca" >&5
3296 if eval "test \"\${ac_cv_func_alloca_works+set}\" = set"; then
3297 echo $ac_n "(cached) $ac_c" 1>&6
3299 cat > conftest.
$ac_ext <<EOF
3300 #line 3301 "configure"
3301 #include "confdefs.h"
3304 # define alloca __builtin_alloca
3307 # include <malloc.h>
3308 # define alloca _alloca
3311 # include <alloca.h>
3316 # ifndef alloca /* predefined by HP cc +Olibcalls */
3325 char *p = (char *) alloca(1);
3328 if { (eval echo configure
:3329: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3330 ac_cv_func_alloca_works
=yes
3332 echo "configure: failed program was:" >&5
3333 cat conftest.
$ac_ext >&5
3335 ac_cv_func_alloca_works
=no
3340 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
3341 if test $ac_cv_func_alloca_works = yes; then
3342 cat >> confdefs.h
<<\EOF
3343 #define HAVE_ALLOCA 1
3348 if test $ac_cv_func_alloca_works = no
; then
3349 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
3350 # that cause trouble. Some versions do not even contain alloca or
3351 # contain a buggy version. If you still want to use their alloca,
3352 # use ar to extract alloca.o from them instead of compiling alloca.c.
3353 ALLOCA
=alloca.
${ac_objext}
3354 cat >> confdefs.h
<<\EOF
3359 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
3360 echo "configure:3361: checking whether alloca needs Cray hooks" >&5
3361 if eval "test \"\${ac_cv_os_cray+set}\" = set"; then
3362 echo $ac_n "(cached) $ac_c" 1>&6
3364 cat > conftest.
$ac_ext <<EOF
3365 #line 3366 "configure"
3366 #include "confdefs.h"
3367 #if defined(CRAY) && ! defined(CRAY2)
3374 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3375 egrep "webecray" >/dev
/null
2>&1; then
3386 echo "$ac_t""$ac_cv_os_cray" 1>&6
3387 if test $ac_cv_os_cray = yes; then
3388 for ac_func
in _getb67 GETB67 getb67
; do
3389 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3390 echo "configure:3391: checking for $ac_func" >&5
3391 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
3392 echo $ac_n "(cached) $ac_c" 1>&6
3394 cat > conftest.
$ac_ext <<EOF
3395 #line 3396 "configure"
3396 #include "confdefs.h"
3397 /* System header to define __stub macros and hopefully few prototypes,
3398 which can conflict with char $ac_func(); below. */
3400 /* Override any gcc2 internal prototype to avoid an error. */
3401 /* We use char because int might match the return type of a gcc2
3402 builtin and then its argument prototype would still apply. */
3408 /* The GNU C library defines this for functions which it implements
3409 to always fail with ENOSYS. Some functions are actually named
3410 something starting with __ and the normal name is an alias. */
3411 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3419 if { (eval echo configure
:3420: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3421 eval "ac_cv_func_$ac_func=yes"
3423 echo "configure: failed program was:" >&5
3424 cat conftest.
$ac_ext >&5
3426 eval "ac_cv_func_$ac_func=no"
3431 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3432 echo "$ac_t""yes" 1>&6
3433 cat >> confdefs.h
<<EOF
3434 #define CRAY_STACKSEG_END $ac_func
3439 echo "$ac_t""no" 1>&6
3445 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
3446 echo "configure:3447: checking stack direction for C alloca" >&5
3447 if eval "test \"\${ac_cv_c_stack_direction+set}\" = set"; then
3448 echo $ac_n "(cached) $ac_c" 1>&6
3450 if test "$cross_compiling" = yes; then
3451 ac_cv_c_stack_direction
=0
3453 cat > conftest.
$ac_ext <<EOF
3454 #line 3455 "configure"
3455 #include "confdefs.h"
3456 find_stack_direction ()
3458 static char *addr = 0;
3463 return find_stack_direction ();
3466 return (&dummy > addr) ? 1 : -1;
3470 exit (find_stack_direction() < 0);
3473 if { (eval echo configure
:3474: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3475 ac_cv_c_stack_direction
=1
3477 echo "configure: failed program was:" >&5
3478 cat conftest.
$ac_ext >&5
3480 ac_cv_c_stack_direction
=-1
3487 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
3488 cat >> confdefs.h
<<EOF
3489 #define STACK_DIRECTION $ac_cv_c_stack_direction
3494 for ac_hdr
in unistd.h
3496 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3497 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3498 echo "configure:3499: checking for $ac_hdr" >&5
3499 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
3500 echo $ac_n "(cached) $ac_c" 1>&6
3502 cat > conftest.
$ac_ext <<EOF
3503 #line 3504 "configure"
3504 #include "confdefs.h"
3507 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3508 { (eval echo configure
:3509: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3509 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3510 if test -z "$ac_err"; then
3512 eval "ac_cv_header_$ac_safe=yes"
3515 echo "configure: failed program was:" >&5
3516 cat conftest.
$ac_ext >&5
3518 eval "ac_cv_header_$ac_safe=no"
3522 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3523 echo "$ac_t""yes" 1>&6
3524 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3525 cat >> confdefs.h
<<EOF
3526 #define $ac_tr_hdr 1
3530 echo "$ac_t""no" 1>&6
3534 for ac_func
in getpagesize
3536 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3537 echo "configure:3538: checking for $ac_func" >&5
3538 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
3539 echo $ac_n "(cached) $ac_c" 1>&6
3541 cat > conftest.
$ac_ext <<EOF
3542 #line 3543 "configure"
3543 #include "confdefs.h"
3544 /* System header to define __stub macros and hopefully few prototypes,
3545 which can conflict with char $ac_func(); below. */
3547 /* Override any gcc2 internal prototype to avoid an error. */
3548 /* We use char because int might match the return type of a gcc2
3549 builtin and then its argument prototype would still apply. */
3555 /* The GNU C library defines this for functions which it implements
3556 to always fail with ENOSYS. Some functions are actually named
3557 something starting with __ and the normal name is an alias. */
3558 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3566 if { (eval echo configure
:3567: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3568 eval "ac_cv_func_$ac_func=yes"
3570 echo "configure: failed program was:" >&5
3571 cat conftest.
$ac_ext >&5
3573 eval "ac_cv_func_$ac_func=no"
3578 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3579 echo "$ac_t""yes" 1>&6
3580 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3581 cat >> confdefs.h
<<EOF
3582 #define $ac_tr_func 1
3586 echo "$ac_t""no" 1>&6
3590 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
3591 echo "configure:3592: checking for working mmap" >&5
3592 if eval "test \"\${ac_cv_func_mmap_fixed_mapped+set}\" = set"; then
3593 echo $ac_n "(cached) $ac_c" 1>&6
3595 if test "$cross_compiling" = yes; then
3596 ac_cv_func_mmap_fixed_mapped
=no
3598 cat > conftest.
$ac_ext <<EOF
3599 #line 3600 "configure"
3600 #include "confdefs.h"
3602 /* Thanks to Mike Haertel and Jim Avera for this test.
3603 Here is a matrix of mmap possibilities:
3604 mmap private not fixed
3605 mmap private fixed at somewhere currently unmapped
3606 mmap private fixed at somewhere already mapped
3607 mmap shared not fixed
3608 mmap shared fixed at somewhere currently unmapped
3609 mmap shared fixed at somewhere already mapped
3610 For private mappings, we should verify that changes cannot be read()
3611 back from the file, nor mmap's back from the file at a different
3612 address. (There have been systems where private was not correctly
3613 implemented like the infamous i386 svr4.0, and systems where the
3614 VM page cache was not coherent with the filesystem buffer cache
3615 like early versions of FreeBSD and possibly contemporary NetBSD.)
3616 For shared mappings, we should conversely verify that changes get
3617 propogated back to all the places they're supposed to be.
3619 Grep wants private fixed already mapped.
3620 The main things grep needs to know about mmap are:
3621 * does it exist and is it safe to write into the mmap'd area
3622 * how to use it (BSD variants) */
3623 #include <sys/types.h>
3625 #include <sys/mman.h>
3627 /* This mess was copied from the GNU getpagesize.h. */
3628 #ifndef HAVE_GETPAGESIZE
3629 # ifdef HAVE_UNISTD_H
3630 # include <unistd.h>
3633 /* Assume that all systems that can run configure have sys/param.h. */
3634 # ifndef HAVE_SYS_PARAM_H
3635 # define HAVE_SYS_PARAM_H 1
3638 # ifdef _SC_PAGESIZE
3639 # define getpagesize() sysconf(_SC_PAGESIZE)
3640 # else /* no _SC_PAGESIZE */
3641 # ifdef HAVE_SYS_PARAM_H
3642 # include <sys/param.h>
3643 # ifdef EXEC_PAGESIZE
3644 # define getpagesize() EXEC_PAGESIZE
3645 # else /* no EXEC_PAGESIZE */
3647 # define getpagesize() NBPG * CLSIZE
3650 # endif /* no CLSIZE */
3651 # else /* no NBPG */
3653 # define getpagesize() NBPC
3654 # else /* no NBPC */
3656 # define getpagesize() PAGESIZE
3657 # endif /* PAGESIZE */
3658 # endif /* no NBPC */
3659 # endif /* no NBPG */
3660 # endif /* no EXEC_PAGESIZE */
3661 # else /* no HAVE_SYS_PARAM_H */
3662 # define getpagesize() 8192 /* punt totally */
3663 # endif /* no HAVE_SYS_PARAM_H */
3664 # endif /* no _SC_PAGESIZE */
3666 #endif /* no HAVE_GETPAGESIZE */
3669 extern "C" { void *malloc(unsigned); }
3677 char *data, *data2, *data3;
3681 pagesize = getpagesize();
3684 * First, make a file with some known garbage in it.
3686 data = malloc(pagesize);
3689 for (i = 0; i < pagesize; ++i)
3690 *(data + i) = rand();
3692 fd = creat("conftestmmap", 0600);
3695 if (write(fd, data, pagesize) != pagesize)
3700 * Next, try to mmap the file at a fixed address which
3701 * already has something else allocated at it. If we can,
3702 * also make sure that we see the same garbage.
3704 fd = open("conftestmmap", O_RDWR);
3707 data2 = malloc(2 * pagesize);
3710 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
3711 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
3712 MAP_PRIVATE | MAP_FIXED, fd, 0L))
3714 for (i = 0; i < pagesize; ++i)
3715 if (*(data + i) != *(data2 + i))
3719 * Finally, make sure that changes to the mapped area
3720 * do not percolate back to the file as seen by read().
3721 * (This is a bug on some variants of i386 svr4.0.)
3723 for (i = 0; i < pagesize; ++i)
3724 *(data2 + i) = *(data2 + i) + 1;
3725 data3 = malloc(pagesize);
3728 if (read(fd, data3, pagesize) != pagesize)
3730 for (i = 0; i < pagesize; ++i)
3731 if (*(data + i) != *(data3 + i))
3734 unlink("conftestmmap");
3739 if { (eval echo configure
:3740: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3741 ac_cv_func_mmap_fixed_mapped
=yes
3743 echo "configure: failed program was:" >&5
3744 cat conftest.
$ac_ext >&5
3746 ac_cv_func_mmap_fixed_mapped
=no
3753 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
3754 if test $ac_cv_func_mmap_fixed_mapped = yes; then
3755 cat >> confdefs.h
<<\EOF
3762 for ac_hdr
in argz.h limits.h locale.h nl_types.h malloc.h string.h \
3763 unistd.h values.h sys
/param.h
3765 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3766 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3767 echo "configure:3768: checking for $ac_hdr" >&5
3768 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
3769 echo $ac_n "(cached) $ac_c" 1>&6
3771 cat > conftest.
$ac_ext <<EOF
3772 #line 3773 "configure"
3773 #include "confdefs.h"
3776 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3777 { (eval echo configure
:3778: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3778 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3779 if test -z "$ac_err"; then
3781 eval "ac_cv_header_$ac_safe=yes"
3784 echo "configure: failed program was:" >&5
3785 cat conftest.
$ac_ext >&5
3787 eval "ac_cv_header_$ac_safe=no"
3791 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3792 echo "$ac_t""yes" 1>&6
3793 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3794 cat >> confdefs.h
<<EOF
3795 #define $ac_tr_hdr 1
3799 echo "$ac_t""no" 1>&6
3803 for ac_func
in getcwd munmap putenv setenv setlocale strchr strcasecmp \
3804 __argz_count __argz_stringify __argz_next
3806 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3807 echo "configure:3808: checking for $ac_func" >&5
3808 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
3809 echo $ac_n "(cached) $ac_c" 1>&6
3811 cat > conftest.
$ac_ext <<EOF
3812 #line 3813 "configure"
3813 #include "confdefs.h"
3814 /* System header to define __stub macros and hopefully few prototypes,
3815 which can conflict with char $ac_func(); below. */
3817 /* Override any gcc2 internal prototype to avoid an error. */
3818 /* We use char because int might match the return type of a gcc2
3819 builtin and then its argument prototype would still apply. */
3825 /* The GNU C library defines this for functions which it implements
3826 to always fail with ENOSYS. Some functions are actually named
3827 something starting with __ and the normal name is an alias. */
3828 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3836 if { (eval echo configure
:3837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3838 eval "ac_cv_func_$ac_func=yes"
3840 echo "configure: failed program was:" >&5
3841 cat conftest.
$ac_ext >&5
3843 eval "ac_cv_func_$ac_func=no"
3848 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3849 echo "$ac_t""yes" 1>&6
3850 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3851 cat >> confdefs.h
<<EOF
3852 #define $ac_tr_func 1
3856 echo "$ac_t""no" 1>&6
3861 if test "${ac_cv_func_stpcpy+set}" != "set"; then
3862 for ac_func
in stpcpy
3864 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3865 echo "configure:3866: checking for $ac_func" >&5
3866 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
3867 echo $ac_n "(cached) $ac_c" 1>&6
3869 cat > conftest.
$ac_ext <<EOF
3870 #line 3871 "configure"
3871 #include "confdefs.h"
3872 /* System header to define __stub macros and hopefully few prototypes,
3873 which can conflict with char $ac_func(); below. */
3875 /* Override any gcc2 internal prototype to avoid an error. */
3876 /* We use char because int might match the return type of a gcc2
3877 builtin and then its argument prototype would still apply. */
3883 /* The GNU C library defines this for functions which it implements
3884 to always fail with ENOSYS. Some functions are actually named
3885 something starting with __ and the normal name is an alias. */
3886 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3894 if { (eval echo configure
:3895: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3896 eval "ac_cv_func_$ac_func=yes"
3898 echo "configure: failed program was:" >&5
3899 cat conftest.
$ac_ext >&5
3901 eval "ac_cv_func_$ac_func=no"
3906 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3907 echo "$ac_t""yes" 1>&6
3908 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3909 cat >> confdefs.h
<<EOF
3910 #define $ac_tr_func 1
3914 echo "$ac_t""no" 1>&6
3919 if test "${ac_cv_func_stpcpy}" = "yes"; then
3920 cat >> confdefs.h
<<\EOF
3921 #define HAVE_STPCPY 1
3926 if test $ac_cv_header_locale_h = yes; then
3927 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
3928 echo "configure:3929: checking for LC_MESSAGES" >&5
3929 if eval "test \"\${am_cv_val_LC_MESSAGES+set}\" = set"; then
3930 echo $ac_n "(cached) $ac_c" 1>&6
3932 cat > conftest.
$ac_ext <<EOF
3933 #line 3934 "configure"
3934 #include "confdefs.h"
3940 if { (eval echo configure
:3941: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3942 am_cv_val_LC_MESSAGES
=yes
3944 echo "configure: failed program was:" >&5
3945 cat conftest.
$ac_ext >&5
3947 am_cv_val_LC_MESSAGES
=no
3952 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
3953 if test $am_cv_val_LC_MESSAGES = yes; then
3954 cat >> confdefs.h
<<\EOF
3955 #define HAVE_LC_MESSAGES 1
3960 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
3961 echo "configure:3962: checking whether NLS is requested" >&5
3962 # Check whether --enable-nls or --disable-nls was given.
3963 if test "${enable_nls+set}" = set; then
3964 enableval
="$enable_nls"
3970 echo "$ac_t""$USE_NLS" 1>&6
3973 USE_INCLUDED_LIBINTL
=no
3975 if test "$USE_NLS" = "yes"; then
3976 cat >> confdefs.h
<<\EOF
3977 #define ENABLE_NLS 1
3980 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
3981 echo "configure:3982: checking whether included gettext is requested" >&5
3982 # Check whether --with-included-gettext or --without-included-gettext was given.
3983 if test "${with_included_gettext+set}" = set; then
3984 withval
="$with_included_gettext"
3985 nls_cv_force_use_gnu_gettext
=$withval
3987 nls_cv_force_use_gnu_gettext
=no
3990 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
3992 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
3993 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
3995 nls_cv_header_libgt
=
3998 ac_safe
=`echo "libintl.h" | sed 'y%./+-%__p_%'`
3999 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
4000 echo "configure:4001: checking for libintl.h" >&5
4001 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
4002 echo $ac_n "(cached) $ac_c" 1>&6
4004 cat > conftest.
$ac_ext <<EOF
4005 #line 4006 "configure"
4006 #include "confdefs.h"
4007 #include <libintl.h>
4009 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4010 { (eval echo configure
:4011: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4011 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4012 if test -z "$ac_err"; then
4014 eval "ac_cv_header_$ac_safe=yes"
4017 echo "configure: failed program was:" >&5
4018 cat conftest.
$ac_ext >&5
4020 eval "ac_cv_header_$ac_safe=no"
4024 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4025 echo "$ac_t""yes" 1>&6
4026 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
4027 echo "configure:4028: checking for gettext in libc" >&5
4028 if eval "test \"\${gt_cv_func_gettext_libc+set}\" = set"; then
4029 echo $ac_n "(cached) $ac_c" 1>&6
4031 cat > conftest.
$ac_ext <<EOF
4032 #line 4033 "configure"
4033 #include "confdefs.h"
4034 #include <libintl.h>
4036 return (int) gettext ("")
4039 if { (eval echo configure
:4040: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4041 gt_cv_func_gettext_libc
=yes
4043 echo "configure: failed program was:" >&5
4044 cat conftest.
$ac_ext >&5
4046 gt_cv_func_gettext_libc
=no
4051 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
4053 if test "$gt_cv_func_gettext_libc" != "yes"; then
4054 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
4055 echo "configure:4056: checking for bindtextdomain in -lintl" >&5
4056 ac_lib_var
=`echo intl'_'bindtextdomain | sed 'y%./+-:%__p__%'`
4057 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4058 echo $ac_n "(cached) $ac_c" 1>&6
4060 ac_save_LIBS
="$LIBS"
4062 cat > conftest.
$ac_ext <<EOF
4063 #line 4064 "configure"
4064 #include "confdefs.h"
4065 /* Override any gcc2 internal prototype to avoid an error. */
4066 /* We use char because int might match the return type of a gcc2
4067 builtin and then its argument prototype would still apply. */
4068 char bindtextdomain();
4074 if { (eval echo configure
:4075: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4076 eval "ac_cv_lib_$ac_lib_var=yes"
4078 echo "configure: failed program was:" >&5
4079 cat conftest.
$ac_ext >&5
4081 eval "ac_cv_lib_$ac_lib_var=no"
4084 LIBS
="$ac_save_LIBS"
4087 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4088 echo "$ac_t""yes" 1>&6
4089 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
4090 echo "configure:4091: checking for gettext in libintl" >&5
4091 if eval "test \"\${gt_cv_func_gettext_libintl+set}\" = set"; then
4092 echo $ac_n "(cached) $ac_c" 1>&6
4094 cat > conftest.
$ac_ext <<EOF
4095 #line 4096 "configure"
4096 #include "confdefs.h"
4099 return (int) gettext ("")
4102 if { (eval echo configure
:4103: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4104 gt_cv_func_gettext_libintl
=yes
4106 echo "configure: failed program was:" >&5
4107 cat conftest.
$ac_ext >&5
4109 gt_cv_func_gettext_libintl
=no
4114 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
4116 echo "$ac_t""no" 1>&6
4121 if test "$gt_cv_func_gettext_libc" = "yes" \
4122 ||
test "$gt_cv_func_gettext_libintl" = "yes"; then
4123 cat >> confdefs.h
<<\EOF
4124 #define HAVE_GETTEXT 1
4127 # Extract the first word of "msgfmt", so it can be a program name with args.
4128 set dummy msgfmt
; ac_word
=$2
4129 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4130 echo "configure:4131: checking for $ac_word" >&5
4131 if eval "test \"\${ac_cv_path_MSGFMT+set}\" = set"; then
4132 echo $ac_n "(cached) $ac_c" 1>&6
4136 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
4139 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
4140 for ac_dir
in $PATH; do
4141 test -z "$ac_dir" && ac_dir
=.
4142 if test -f $ac_dir/$ac_word; then
4143 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
4144 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
4150 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="no"
4154 MSGFMT
="$ac_cv_path_MSGFMT"
4155 if test -n "$MSGFMT"; then
4156 echo "$ac_t""$MSGFMT" 1>&6
4158 echo "$ac_t""no" 1>&6
4160 if test "$MSGFMT" != "no"; then
4161 for ac_func
in dcgettext
4163 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4164 echo "configure:4165: checking for $ac_func" >&5
4165 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
4166 echo $ac_n "(cached) $ac_c" 1>&6
4168 cat > conftest.
$ac_ext <<EOF
4169 #line 4170 "configure"
4170 #include "confdefs.h"
4171 /* System header to define __stub macros and hopefully few prototypes,
4172 which can conflict with char $ac_func(); below. */
4174 /* Override any gcc2 internal prototype to avoid an error. */
4175 /* We use char because int might match the return type of a gcc2
4176 builtin and then its argument prototype would still apply. */
4182 /* The GNU C library defines this for functions which it implements
4183 to always fail with ENOSYS. Some functions are actually named
4184 something starting with __ and the normal name is an alias. */
4185 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4193 if { (eval echo configure
:4194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4195 eval "ac_cv_func_$ac_func=yes"
4197 echo "configure: failed program was:" >&5
4198 cat conftest.
$ac_ext >&5
4200 eval "ac_cv_func_$ac_func=no"
4205 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4206 echo "$ac_t""yes" 1>&6
4207 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4208 cat >> confdefs.h
<<EOF
4209 #define $ac_tr_func 1
4213 echo "$ac_t""no" 1>&6
4217 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4218 set dummy gmsgfmt
; ac_word
=$2
4219 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4220 echo "configure:4221: checking for $ac_word" >&5
4221 if eval "test \"\${ac_cv_path_GMSGFMT+set}\" = set"; then
4222 echo $ac_n "(cached) $ac_c" 1>&6
4226 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
4229 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
4232 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
4234 for ac_dir
in $ac_dummy; do
4235 test -z "$ac_dir" && ac_dir
=.
4236 if test -f $ac_dir/$ac_word; then
4237 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
4242 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
4246 GMSGFMT
="$ac_cv_path_GMSGFMT"
4247 if test -n "$GMSGFMT"; then
4248 echo "$ac_t""$GMSGFMT" 1>&6
4250 echo "$ac_t""no" 1>&6
4253 # Extract the first word of "xgettext", so it can be a program name with args.
4254 set dummy xgettext
; ac_word
=$2
4255 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4256 echo "configure:4257: checking for $ac_word" >&5
4257 if eval "test \"\${ac_cv_path_XGETTEXT+set}\" = set"; then
4258 echo $ac_n "(cached) $ac_c" 1>&6
4262 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
4265 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
4266 for ac_dir
in $PATH; do
4267 test -z "$ac_dir" && ac_dir
=.
4268 if test -f $ac_dir/$ac_word; then
4269 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
4270 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
4276 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
4280 XGETTEXT
="$ac_cv_path_XGETTEXT"
4281 if test -n "$XGETTEXT"; then
4282 echo "$ac_t""$XGETTEXT" 1>&6
4284 echo "$ac_t""no" 1>&6
4287 cat > conftest.
$ac_ext <<EOF
4288 #line 4289 "configure"
4289 #include "confdefs.h"
4292 extern int _nl_msg_cat_cntr;
4293 return _nl_msg_cat_cntr
4296 if { (eval echo configure
:4297: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4301 echo "configure: failed program was:" >&5
4302 cat conftest.
$ac_ext >&5
4313 echo "$ac_t""no" 1>&6
4318 if test "$CATOBJEXT" = "NONE"; then
4319 nls_cv_use_gnu_gettext
=yes
4323 if test "$nls_cv_use_gnu_gettext" = "yes"; then
4324 INTLOBJS
="\$(GETTOBJS)"
4325 # Extract the first word of "msgfmt", so it can be a program name with args.
4326 set dummy msgfmt
; ac_word
=$2
4327 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4328 echo "configure:4329: checking for $ac_word" >&5
4329 if eval "test \"\${ac_cv_path_MSGFMT+set}\" = set"; then
4330 echo $ac_n "(cached) $ac_c" 1>&6
4334 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
4337 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
4338 for ac_dir
in $PATH; do
4339 test -z "$ac_dir" && ac_dir
=.
4340 if test -f $ac_dir/$ac_word; then
4341 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
4342 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
4348 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="msgfmt"
4352 MSGFMT
="$ac_cv_path_MSGFMT"
4353 if test -n "$MSGFMT"; then
4354 echo "$ac_t""$MSGFMT" 1>&6
4356 echo "$ac_t""no" 1>&6
4359 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4360 set dummy gmsgfmt
; ac_word
=$2
4361 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4362 echo "configure:4363: checking for $ac_word" >&5
4363 if eval "test \"\${ac_cv_path_GMSGFMT+set}\" = set"; then
4364 echo $ac_n "(cached) $ac_c" 1>&6
4368 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
4371 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
4374 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
4376 for ac_dir
in $ac_dummy; do
4377 test -z "$ac_dir" && ac_dir
=.
4378 if test -f $ac_dir/$ac_word; then
4379 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
4384 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
4388 GMSGFMT
="$ac_cv_path_GMSGFMT"
4389 if test -n "$GMSGFMT"; then
4390 echo "$ac_t""$GMSGFMT" 1>&6
4392 echo "$ac_t""no" 1>&6
4395 # Extract the first word of "xgettext", so it can be a program name with args.
4396 set dummy xgettext
; ac_word
=$2
4397 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4398 echo "configure:4399: checking for $ac_word" >&5
4399 if eval "test \"\${ac_cv_path_XGETTEXT+set}\" = set"; then
4400 echo $ac_n "(cached) $ac_c" 1>&6
4404 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
4407 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
4408 for ac_dir
in $PATH; do
4409 test -z "$ac_dir" && ac_dir
=.
4410 if test -f $ac_dir/$ac_word; then
4411 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
4412 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
4418 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
4422 XGETTEXT
="$ac_cv_path_XGETTEXT"
4423 if test -n "$XGETTEXT"; then
4424 echo "$ac_t""$XGETTEXT" 1>&6
4426 echo "$ac_t""no" 1>&6
4430 USE_INCLUDED_LIBINTL
=yes
4434 INTLDEPS
='$(top_builddir)/../intl/libintl.a'
4436 LIBS
=`echo $LIBS | sed -e 's/-lintl//'`
4437 nls_cv_header_intl
=libintl.h
4438 nls_cv_header_libgt
=libgettext.h
4441 if test "$XGETTEXT" != ":"; then
4442 if $XGETTEXT --omit-header /dev
/null
2> /dev
/null
; then
4445 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
4450 # We need to process the po/ directory.
4454 nls_cv_header_intl
=libintl.h
4455 nls_cv_header_libgt
=libgettext.h
4458 # If this is used in GNU gettext we have to set USE_NLS to `yes'
4459 # because some of the sources are only built for this goal.
4460 if test "$PACKAGE" = gettext; then
4462 USE_INCLUDED_LIBINTL
=yes
4465 for lang
in $ALL_LINGUAS; do
4466 GMOFILES
="$GMOFILES $lang.gmo"
4467 POFILES
="$POFILES $lang.po"
4483 if test "x$CATOBJEXT" != "x"; then
4484 if test "x$ALL_LINGUAS" = "x"; then
4487 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
4488 echo "configure:4489: checking for catalogs to be installed" >&5
4490 for lang
in ${LINGUAS=$ALL_LINGUAS}; do
4491 case "$ALL_LINGUAS" in
4492 *$lang*) NEW_LINGUAS
="$NEW_LINGUAS $lang" ;;
4495 LINGUAS
=$NEW_LINGUAS
4496 echo "$ac_t""$LINGUAS" 1>&6
4499 if test -n "$LINGUAS"; then
4500 for lang
in $LINGUAS; do CATALOGS
="$CATALOGS $lang$CATOBJEXT"; done
4504 if test $ac_cv_header_locale_h = yes; then
4505 INCLUDE_LOCALE_H
="#include <locale.h>"
4508 /* The system does not provide the header <locale.h>. Take care yourself. */"
4512 if test -f $srcdir/po2tbl.
sed.
in; then
4513 if test "$CATOBJEXT" = ".cat"; then
4514 ac_safe
=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
4515 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
4516 echo "configure:4517: checking for linux/version.h" >&5
4517 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
4518 echo $ac_n "(cached) $ac_c" 1>&6
4520 cat > conftest.
$ac_ext <<EOF
4521 #line 4522 "configure"
4522 #include "confdefs.h"
4523 #include <linux/version.h>
4525 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4526 { (eval echo configure
:4527: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4527 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4528 if test -z "$ac_err"; then
4530 eval "ac_cv_header_$ac_safe=yes"
4533 echo "configure: failed program was:" >&5
4534 cat conftest.
$ac_ext >&5
4536 eval "ac_cv_header_$ac_safe=no"
4540 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4541 echo "$ac_t""yes" 1>&6
4544 echo "$ac_t""no" 1>&6
4549 sed -e '/^#/d' $srcdir/$msgformat-msg.
sed > po2msg.
sed
4551 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
4552 $srcdir/po2tbl.
sed.
in > po2tbl.
sed
4555 if test "$PACKAGE" = "gettext"; then
4565 MKINSTALLDIRS
="\$(srcdir)/../../mkinstalldirs"
4571 if test -d $srcdir/po
; then
4572 test -d po || mkdir po
4573 if test "x$srcdir" != "x."; then
4574 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
4575 posrcprefix
="$srcdir/"
4577 posrcprefix
="../$srcdir/"
4583 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
4584 < $srcdir/po
/POTFILES.
in > po
/POTFILES
4588 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
4589 echo "configure:4590: checking whether to enable maintainer-specific portions of Makefiles" >&5
4590 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4591 if test "${enable_maintainer_mode+set}" = set; then
4592 enableval
="$enable_maintainer_mode"
4593 USE_MAINTAINER_MODE
=$enableval
4595 USE_MAINTAINER_MODE
=no
4598 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
4601 if test $USE_MAINTAINER_MODE = yes; then
4602 MAINTAINER_MODE_TRUE
=
4603 MAINTAINER_MODE_FALSE
='#'
4605 MAINTAINER_MODE_TRUE
='#'
4606 MAINTAINER_MODE_FALSE
=
4608 MAINT
=$MAINTAINER_MODE_TRUE
4611 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
4612 echo "configure:4613: checking for Cygwin environment" >&5
4613 if eval "test \"\${ac_cv_cygwin+set}\" = set"; then
4614 echo $ac_n "(cached) $ac_c" 1>&6
4616 cat > conftest.
$ac_ext <<EOF
4617 #line 4618 "configure"
4618 #include "confdefs.h"
4623 #define __CYGWIN__ __CYGWIN32__
4628 if { (eval echo configure
:4629: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4632 echo "configure: failed program was:" >&5
4633 cat conftest.
$ac_ext >&5
4640 echo "$ac_t""$ac_cv_cygwin" 1>&6
4642 test "$ac_cv_cygwin" = yes && CYGWIN
=yes
4643 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
4644 echo "configure:4645: checking for mingw32 environment" >&5
4645 if eval "test \"\${ac_cv_mingw32+set}\" = set"; then
4646 echo $ac_n "(cached) $ac_c" 1>&6
4648 cat > conftest.
$ac_ext <<EOF
4649 #line 4650 "configure"
4650 #include "confdefs.h"
4656 if { (eval echo configure
:4657: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4660 echo "configure: failed program was:" >&5
4661 cat conftest.
$ac_ext >&5
4668 echo "$ac_t""$ac_cv_mingw32" 1>&6
4670 test "$ac_cv_mingw32" = yes && MINGW32
=yes
4671 echo $ac_n "checking for EMX OS/2 environment""... $ac_c" 1>&6
4672 echo "configure:4673: checking for EMX OS/2 environment" >&5
4673 if eval "test \"\${ac_cv_emxos2+set}\" = set"; then
4674 echo $ac_n "(cached) $ac_c" 1>&6
4676 cat > conftest.
$ac_ext <<EOF
4677 #line 4678 "configure"
4678 #include "confdefs.h"
4684 if { (eval echo configure
:4685: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4688 echo "configure: failed program was:" >&5
4689 cat conftest.
$ac_ext >&5
4696 echo "$ac_t""$ac_cv_emxos2" 1>&6
4698 test "$ac_cv_emxos2" = yes && EMXOS2
=yes
4702 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
4703 echo "configure:4704: checking for executable suffix" >&5
4704 if eval "test \"\${ac_cv_exeext+set}\" = set"; then
4705 echo $ac_n "(cached) $ac_c" 1>&6
4707 if test "$CYGWIN" = yes ||
test "$MINGW32" = yes ||
test "$EMXOS2" = yes; then
4711 echo 'int main () { return 0; }' > conftest.
$ac_ext
4713 if { (eval echo configure
:4714: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
4714 for file in conftest.
*; do
4716 *.c |
*.C |
*.o |
*.obj |
*.xcoff
) ;;
4717 *) ac_cv_exeext
=`echo $file | sed -e s/conftest//` ;;
4721 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
4724 test x
"${ac_cv_exeext}" = x
&& ac_cv_exeext
=no
4729 test x
"${ac_cv_exeext}" != xno
&& EXEEXT
=${ac_cv_exeext}
4730 echo "$ac_t""${ac_cv_exeext}" 1>&6
4734 for ac_hdr
in string.h stdlib.h memory.h
strings.h unistd.h stdarg.h varargs.h errno.h sys
/types.h
4736 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4737 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4738 echo "configure:4739: checking for $ac_hdr" >&5
4739 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
4740 echo $ac_n "(cached) $ac_c" 1>&6
4742 cat > conftest.
$ac_ext <<EOF
4743 #line 4744 "configure"
4744 #include "confdefs.h"
4747 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4748 { (eval echo configure
:4749: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4749 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4750 if test -z "$ac_err"; then
4752 eval "ac_cv_header_$ac_safe=yes"
4755 echo "configure: failed program was:" >&5
4756 cat conftest.
$ac_ext >&5
4758 eval "ac_cv_header_$ac_safe=no"
4762 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4763 echo "$ac_t""yes" 1>&6
4764 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4765 cat >> confdefs.h
<<EOF
4766 #define $ac_tr_hdr 1
4770 echo "$ac_t""no" 1>&6
4775 # Put this here so that autoconf's "cross-compiling" message doesn't confuse
4776 # people who are not cross-compiling but are compiling cross-assemblers.
4777 echo $ac_n "checking whether compiling a cross-assembler""... $ac_c" 1>&6
4778 echo "configure:4779: checking whether compiling a cross-assembler" >&5
4779 if test "${host}" = "${target}"; then
4783 cat >> confdefs.h
<<\EOF
4784 #define CROSS_COMPILE 1
4788 echo "$ac_t""$cross_gas" 1>&6
4790 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4791 # for constant arguments. Useless!
4792 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
4793 echo "configure:4794: checking for working alloca.h" >&5
4794 if eval "test \"\${ac_cv_header_alloca_h+set}\" = set"; then
4795 echo $ac_n "(cached) $ac_c" 1>&6
4797 cat > conftest.
$ac_ext <<EOF
4798 #line 4799 "configure"
4799 #include "confdefs.h"
4802 char *p = alloca(2 * sizeof(int));
4805 if { (eval echo configure
:4806: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4807 ac_cv_header_alloca_h
=yes
4809 echo "configure: failed program was:" >&5
4810 cat conftest.
$ac_ext >&5
4812 ac_cv_header_alloca_h
=no
4817 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
4818 if test $ac_cv_header_alloca_h = yes; then
4819 cat >> confdefs.h
<<\EOF
4820 #define HAVE_ALLOCA_H 1
4825 echo $ac_n "checking for alloca""... $ac_c" 1>&6
4826 echo "configure:4827: checking for alloca" >&5
4827 if eval "test \"\${ac_cv_func_alloca_works+set}\" = set"; then
4828 echo $ac_n "(cached) $ac_c" 1>&6
4830 cat > conftest.
$ac_ext <<EOF
4831 #line 4832 "configure"
4832 #include "confdefs.h"
4835 # define alloca __builtin_alloca
4838 # include <malloc.h>
4839 # define alloca _alloca
4842 # include <alloca.h>
4847 # ifndef alloca /* predefined by HP cc +Olibcalls */
4856 char *p = (char *) alloca(1);
4859 if { (eval echo configure
:4860: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4861 ac_cv_func_alloca_works
=yes
4863 echo "configure: failed program was:" >&5
4864 cat conftest.
$ac_ext >&5
4866 ac_cv_func_alloca_works
=no
4871 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
4872 if test $ac_cv_func_alloca_works = yes; then
4873 cat >> confdefs.h
<<\EOF
4874 #define HAVE_ALLOCA 1
4879 if test $ac_cv_func_alloca_works = no
; then
4880 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
4881 # that cause trouble. Some versions do not even contain alloca or
4882 # contain a buggy version. If you still want to use their alloca,
4883 # use ar to extract alloca.o from them instead of compiling alloca.c.
4884 ALLOCA
=alloca.
${ac_objext}
4885 cat >> confdefs.h
<<\EOF
4890 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
4891 echo "configure:4892: checking whether alloca needs Cray hooks" >&5
4892 if eval "test \"\${ac_cv_os_cray+set}\" = set"; then
4893 echo $ac_n "(cached) $ac_c" 1>&6
4895 cat > conftest.
$ac_ext <<EOF
4896 #line 4897 "configure"
4897 #include "confdefs.h"
4898 #if defined(CRAY) && ! defined(CRAY2)
4905 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4906 egrep "webecray" >/dev
/null
2>&1; then
4917 echo "$ac_t""$ac_cv_os_cray" 1>&6
4918 if test $ac_cv_os_cray = yes; then
4919 for ac_func
in _getb67 GETB67 getb67
; do
4920 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4921 echo "configure:4922: checking for $ac_func" >&5
4922 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
4923 echo $ac_n "(cached) $ac_c" 1>&6
4925 cat > conftest.
$ac_ext <<EOF
4926 #line 4927 "configure"
4927 #include "confdefs.h"
4928 /* System header to define __stub macros and hopefully few prototypes,
4929 which can conflict with char $ac_func(); below. */
4931 /* Override any gcc2 internal prototype to avoid an error. */
4932 /* We use char because int might match the return type of a gcc2
4933 builtin and then its argument prototype would still apply. */
4939 /* The GNU C library defines this for functions which it implements
4940 to always fail with ENOSYS. Some functions are actually named
4941 something starting with __ and the normal name is an alias. */
4942 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4950 if { (eval echo configure
:4951: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4952 eval "ac_cv_func_$ac_func=yes"
4954 echo "configure: failed program was:" >&5
4955 cat conftest.
$ac_ext >&5
4957 eval "ac_cv_func_$ac_func=no"
4962 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4963 echo "$ac_t""yes" 1>&6
4964 cat >> confdefs.h
<<EOF
4965 #define CRAY_STACKSEG_END $ac_func
4970 echo "$ac_t""no" 1>&6
4976 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
4977 echo "configure:4978: checking stack direction for C alloca" >&5
4978 if eval "test \"\${ac_cv_c_stack_direction+set}\" = set"; then
4979 echo $ac_n "(cached) $ac_c" 1>&6
4981 if test "$cross_compiling" = yes; then
4982 ac_cv_c_stack_direction
=0
4984 cat > conftest.
$ac_ext <<EOF
4985 #line 4986 "configure"
4986 #include "confdefs.h"
4987 find_stack_direction ()
4989 static char *addr = 0;
4994 return find_stack_direction ();
4997 return (&dummy > addr) ? 1 : -1;
5001 exit (find_stack_direction() < 0);
5004 if { (eval echo configure
:5005: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
5006 ac_cv_c_stack_direction
=1
5008 echo "configure: failed program was:" >&5
5009 cat conftest.
$ac_ext >&5
5011 ac_cv_c_stack_direction
=-1
5018 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
5019 cat >> confdefs.h
<<EOF
5020 #define STACK_DIRECTION $ac_cv_c_stack_direction
5025 echo $ac_n "checking for inline""... $ac_c" 1>&6
5026 echo "configure:5027: checking for inline" >&5
5027 if eval "test \"\${ac_cv_c_inline+set}\" = set"; then
5028 echo $ac_n "(cached) $ac_c" 1>&6
5031 for ac_kw
in inline __inline__ __inline
; do
5032 cat > conftest.
$ac_ext <<EOF
5033 #line 5034 "configure"
5034 #include "confdefs.h"
5037 } $ac_kw int foo() {
5040 if { (eval echo configure
:5041: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5042 ac_cv_c_inline
=$ac_kw; break
5044 echo "configure: failed program was:" >&5
5045 cat conftest.
$ac_ext >&5
5052 echo "$ac_t""$ac_cv_c_inline" 1>&6
5053 case "$ac_cv_c_inline" in
5055 no
) cat >> confdefs.h
<<\EOF
5059 *) cat >> confdefs.h
<<EOF
5060 #define inline $ac_cv_c_inline
5066 # VMS doesn't have unlink.
5067 for ac_func
in unlink remove
5069 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5070 echo "configure:5071: checking for $ac_func" >&5
5071 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
5072 echo $ac_n "(cached) $ac_c" 1>&6
5074 cat > conftest.
$ac_ext <<EOF
5075 #line 5076 "configure"
5076 #include "confdefs.h"
5077 /* System header to define __stub macros and hopefully few prototypes,
5078 which can conflict with char $ac_func(); below. */
5080 /* Override any gcc2 internal prototype to avoid an error. */
5081 /* We use char because int might match the return type of a gcc2
5082 builtin and then its argument prototype would still apply. */
5088 /* The GNU C library defines this for functions which it implements
5089 to always fail with ENOSYS. Some functions are actually named
5090 something starting with __ and the normal name is an alias. */
5091 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5099 if { (eval echo configure
:5100: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5101 eval "ac_cv_func_$ac_func=yes"
5103 echo "configure: failed program was:" >&5
5104 cat conftest.
$ac_ext >&5
5106 eval "ac_cv_func_$ac_func=no"
5111 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5112 echo "$ac_t""yes" 1>&6
5113 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5114 cat >> confdefs.h
<<EOF
5115 #define $ac_tr_func 1
5119 echo "$ac_t""no" 1>&6
5124 # Some systems don't have sbrk().
5127 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5128 echo "configure:5129: checking for $ac_func" >&5
5129 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
5130 echo $ac_n "(cached) $ac_c" 1>&6
5132 cat > conftest.
$ac_ext <<EOF
5133 #line 5134 "configure"
5134 #include "confdefs.h"
5135 /* System header to define __stub macros and hopefully few prototypes,
5136 which can conflict with char $ac_func(); below. */
5138 /* Override any gcc2 internal prototype to avoid an error. */
5139 /* We use char because int might match the return type of a gcc2
5140 builtin and then its argument prototype would still apply. */
5146 /* The GNU C library defines this for functions which it implements
5147 to always fail with ENOSYS. Some functions are actually named
5148 something starting with __ and the normal name is an alias. */
5149 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5157 if { (eval echo configure
:5158: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5159 eval "ac_cv_func_$ac_func=yes"
5161 echo "configure: failed program was:" >&5
5162 cat conftest.
$ac_ext >&5
5164 eval "ac_cv_func_$ac_func=no"
5169 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5170 echo "$ac_t""yes" 1>&6
5171 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5172 cat >> confdefs.h
<<EOF
5173 #define $ac_tr_func 1
5177 echo "$ac_t""no" 1>&6
5182 # Some non-ANSI preprocessors botch requoting inside strings. That's bad
5183 # enough, but on some of those systems, the assert macro relies on requoting
5185 echo $ac_n "checking for working assert macro""... $ac_c" 1>&6
5186 echo "configure:5187: checking for working assert macro" >&5
5187 if eval "test \"\${gas_cv_assert_ok+set}\" = set"; then
5188 echo $ac_n "(cached) $ac_c" 1>&6
5190 cat > conftest.
$ac_ext <<EOF
5191 #line 5192 "configure"
5192 #include "confdefs.h"
5197 /* check for requoting problems */
5198 static int a, b, c, d;
5200 assert (!strcmp(s, "foo bar baz quux"));
5201 /* check for newline handling */
5207 if { (eval echo configure
:5208: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5209 gas_cv_assert_ok
=yes
5211 echo "configure: failed program was:" >&5
5212 cat conftest.
$ac_ext >&5
5218 echo "$ac_t""$gas_cv_assert_ok" 1>&6
5219 test $gas_cv_assert_ok = yes ||
cat >> confdefs.h
<<\EOF
5220 #define BROKEN_ASSERT 1
5225 # On some systems, the system header files may not declare malloc, realloc,
5226 # and free. There are places where gas needs these functions to have been
5227 # declared -- such as when taking their addresses.
5229 #ifdef HAVE_MEMORY_H
5232 #ifdef HAVE_STRING_H
5235 #ifdef HAVE_STRINGS_H
5236 #include <strings.h>
5239 #ifdef HAVE_STDLIB_H
5242 #ifdef HAVE_UNISTD_H
5247 echo $ac_n "checking whether declaration is required for strstr""... $ac_c" 1>&6
5248 echo "configure:5249: checking whether declaration is required for strstr" >&5
5249 if eval "test \"\${gas_cv_decl_needed_strstr+set}\" = set"; then
5250 echo $ac_n "(cached) $ac_c" 1>&6
5252 cat > conftest.
$ac_ext <<EOF
5253 #line 5254 "configure"
5254 #include "confdefs.h"
5258 typedef char *(*f)();
5264 if { (eval echo configure
:5265: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5266 gas_cv_decl_needed_strstr
=no
5268 echo "configure: failed program was:" >&5
5269 cat conftest.
$ac_ext >&5
5271 gas_cv_decl_needed_strstr
=yes
5275 echo "$ac_t""$gas_cv_decl_needed_strstr" 1>&6
5276 if test $gas_cv_decl_needed_strstr = yes; then
5277 cat >> confdefs.h
<<\EOF
5278 #define NEED_DECLARATION_STRSTR 1
5284 echo $ac_n "checking whether declaration is required for malloc""... $ac_c" 1>&6
5285 echo "configure:5286: checking whether declaration is required for malloc" >&5
5286 if eval "test \"\${gas_cv_decl_needed_malloc+set}\" = set"; then
5287 echo $ac_n "(cached) $ac_c" 1>&6
5289 cat > conftest.
$ac_ext <<EOF
5290 #line 5291 "configure"
5291 #include "confdefs.h"
5295 typedef char *(*f)();
5301 if { (eval echo configure
:5302: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5303 gas_cv_decl_needed_malloc
=no
5305 echo "configure: failed program was:" >&5
5306 cat conftest.
$ac_ext >&5
5308 gas_cv_decl_needed_malloc
=yes
5312 echo "$ac_t""$gas_cv_decl_needed_malloc" 1>&6
5313 if test $gas_cv_decl_needed_malloc = yes; then
5314 cat >> confdefs.h
<<\EOF
5315 #define NEED_DECLARATION_MALLOC 1
5321 echo $ac_n "checking whether declaration is required for free""... $ac_c" 1>&6
5322 echo "configure:5323: checking whether declaration is required for free" >&5
5323 if eval "test \"\${gas_cv_decl_needed_free+set}\" = set"; then
5324 echo $ac_n "(cached) $ac_c" 1>&6
5326 cat > conftest.
$ac_ext <<EOF
5327 #line 5328 "configure"
5328 #include "confdefs.h"
5332 typedef void (*f)();
5338 if { (eval echo configure
:5339: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5340 gas_cv_decl_needed_free
=no
5342 echo "configure: failed program was:" >&5
5343 cat conftest.
$ac_ext >&5
5345 gas_cv_decl_needed_free
=yes
5349 echo "$ac_t""$gas_cv_decl_needed_free" 1>&6
5350 if test $gas_cv_decl_needed_free = yes; then
5351 cat >> confdefs.h
<<\EOF
5352 #define NEED_DECLARATION_FREE 1
5358 echo $ac_n "checking whether declaration is required for sbrk""... $ac_c" 1>&6
5359 echo "configure:5360: checking whether declaration is required for sbrk" >&5
5360 if eval "test \"\${gas_cv_decl_needed_sbrk+set}\" = set"; then
5361 echo $ac_n "(cached) $ac_c" 1>&6
5363 cat > conftest.
$ac_ext <<EOF
5364 #line 5365 "configure"
5365 #include "confdefs.h"
5369 typedef char *(*f)();
5375 if { (eval echo configure
:5376: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5377 gas_cv_decl_needed_sbrk
=no
5379 echo "configure: failed program was:" >&5
5380 cat conftest.
$ac_ext >&5
5382 gas_cv_decl_needed_sbrk
=yes
5386 echo "$ac_t""$gas_cv_decl_needed_sbrk" 1>&6
5387 if test $gas_cv_decl_needed_sbrk = yes; then
5388 cat >> confdefs.h
<<\EOF
5389 #define NEED_DECLARATION_SBRK 1
5395 echo $ac_n "checking whether declaration is required for environ""... $ac_c" 1>&6
5396 echo "configure:5397: checking whether declaration is required for environ" >&5
5397 if eval "test \"\${gas_cv_decl_needed_environ+set}\" = set"; then
5398 echo $ac_n "(cached) $ac_c" 1>&6
5400 cat > conftest.
$ac_ext <<EOF
5401 #line 5402 "configure"
5402 #include "confdefs.h"
5412 if { (eval echo configure
:5413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5414 gas_cv_decl_needed_environ
=no
5416 echo "configure: failed program was:" >&5
5417 cat conftest.
$ac_ext >&5
5419 gas_cv_decl_needed_environ
=yes
5423 echo "$ac_t""$gas_cv_decl_needed_environ" 1>&6
5424 if test $gas_cv_decl_needed_environ = yes; then
5425 cat >> confdefs.h
<<\EOF
5426 #define NEED_DECLARATION_ENVIRON 1
5432 # Does errno.h declare errno, or do we have to add a separate declaration
5435 echo $ac_n "checking whether declaration is required for errno""... $ac_c" 1>&6
5436 echo "configure:5437: checking whether declaration is required for errno" >&5
5437 if eval "test \"\${gas_cv_decl_needed_errno+set}\" = set"; then
5438 echo $ac_n "(cached) $ac_c" 1>&6
5440 cat > conftest.
$ac_ext <<EOF
5441 #line 5442 "configure"
5442 #include "confdefs.h"
5456 if { (eval echo configure
:5457: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5458 gas_cv_decl_needed_errno
=no
5460 echo "configure: failed program was:" >&5
5461 cat conftest.
$ac_ext >&5
5463 gas_cv_decl_needed_errno
=yes
5467 echo "$ac_t""$gas_cv_decl_needed_errno" 1>&6
5468 if test $gas_cv_decl_needed_errno = yes; then
5469 cat >> confdefs.h
<<\EOF
5470 #define NEED_DECLARATION_ERRNO 1
5479 cat > confcache
<<\EOF
5480 # This file is a shell script that caches the results of configure
5481 # tests run on this system so they can be shared between configure
5482 # scripts and configure runs. It is not useful on other systems.
5483 # If it contains results you don't want to keep, you may remove or edit it.
5485 # By default, configure uses ./config.cache as the cache file,
5486 # creating it if it does not exist already. You can give configure
5487 # the --cache-file=FILE option to use a different cache file; that is
5488 # what configure does when it calls configure scripts in
5489 # subdirectories, so they share the cache.
5490 # Giving --cache-file=/dev/null disables caching, for debugging configure.
5491 # config.status only pays attention to the cache file if you give it the
5492 # --recheck option to rerun configure.
5495 # The following way of writing the cache mishandles newlines in values,
5496 # but we know of no workaround that is simple, portable, and efficient.
5497 # So, don't put newlines in cache variables' values.
5498 # Ultrix sh set writes to stderr and can't be redirected directly,
5499 # and sets the high bit in the cache file unless we assign to the vars.
5501 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5503 # `set' does not quote correctly, so add quotes (double-quote substitution
5504 # turns \\\\ into \\, and sed turns \\ into \).
5506 -e "s/'/'\\\\''/g" \
5507 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
5510 # `set' quotes correctly as required by POSIX, so do not add quotes.
5511 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
5514 if cmp -s $cache_file confcache
; then
5517 if test -w $cache_file; then
5518 echo "updating cache $cache_file"
5519 cat confcache
> $cache_file
5521 echo "not updating unwritable cache $cache_file"
5526 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
5528 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
5529 # Let make expand exec_prefix.
5530 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
5532 # Any assignment to VPATH causes Sun make to only execute
5533 # the first set of double-colon rules, so remove it if not needed.
5534 # If there is a colon in the path, we need to keep it.
5535 if test "x$srcdir" = x.
; then
5536 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
5539 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
5541 DEFS
=-DHAVE_CONFIG_H
5543 # Without the "./", some shells look in PATH for config.status.
5544 : ${CONFIG_STATUS=./config.status}
5546 echo creating
$CONFIG_STATUS
5547 rm -f $CONFIG_STATUS
5548 cat > $CONFIG_STATUS <<EOF
5550 # Generated automatically by configure.
5551 # Run this file to recreate the current configuration.
5552 # This directory was configured as follows,
5553 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5555 # $0 $ac_configure_args
5557 # Compiler output produced by configure, useful for debugging
5558 # configure, is in ./config.log if it exists.
5560 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
5563 case "\$ac_option" in
5564 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5565 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
5566 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
5567 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
5568 echo "$CONFIG_STATUS generated by autoconf version 2.13.1"
5570 -help | --help | --hel | --he | --h)
5571 echo "\$ac_cs_usage"; exit 0 ;;
5572 *) echo "\$ac_cs_usage"; exit 1 ;;
5576 ac_given_srcdir=$srcdir
5577 ac_given_INSTALL="$INSTALL"
5579 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
5581 cat >> $CONFIG_STATUS <<EOF
5583 # Protect against being on the right side of a sed subst in config.status.
5584 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
5585 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
5589 s%@CFLAGS@%$CFLAGS%g
5590 s%@CPPFLAGS@%$CPPFLAGS%g
5591 s%@CXXFLAGS@%$CXXFLAGS%g
5592 s%@FFLAGS@%$FFLAGS%g
5594 s%@LDFLAGS@%$LDFLAGS%g
5596 s%@exec_prefix@%$exec_prefix%g
5597 s%@prefix@%$prefix%g
5598 s%@program_transform_name@%$program_transform_name%g
5599 s%@bindir@%$bindir%g
5600 s%@sbindir@%$sbindir%g
5601 s%@libexecdir@%$libexecdir%g
5602 s%@datadir@%$datadir%g
5603 s%@sysconfdir@%$sysconfdir%g
5604 s%@sharedstatedir@%$sharedstatedir%g
5605 s%@localstatedir@%$localstatedir%g
5606 s%@libdir@%$libdir%g
5607 s%@includedir@%$includedir%g
5608 s%@oldincludedir@%$oldincludedir%g
5609 s%@infodir@%$infodir%g
5610 s%@mandir@%$mandir%g
5612 s%@host_alias@%$host_alias%g
5613 s%@host_cpu@%$host_cpu%g
5614 s%@host_vendor@%$host_vendor%g
5615 s%@host_os@%$host_os%g
5616 s%@target@%$target%g
5617 s%@target_alias@%$target_alias%g
5618 s%@target_cpu@%$target_cpu%g
5619 s%@target_vendor@%$target_vendor%g
5620 s%@target_os@%$target_os%g
5622 s%@build_alias@%$build_alias%g
5623 s%@build_cpu@%$build_cpu%g
5624 s%@build_vendor@%$build_vendor%g
5625 s%@build_os@%$build_os%g
5626 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
5627 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
5628 s%@INSTALL_DATA@%$INSTALL_DATA%g
5629 s%@PACKAGE@%$PACKAGE%g
5630 s%@VERSION@%$VERSION%g
5631 s%@ACLOCAL@%$ACLOCAL%g
5632 s%@AUTOCONF@%$AUTOCONF%g
5633 s%@AUTOMAKE@%$AUTOMAKE%g
5634 s%@AUTOHEADER@%$AUTOHEADER%g
5635 s%@MAKEINFO@%$MAKEINFO%g
5636 s%@SET_MAKE@%$SET_MAKE%g
5637 s%@RANLIB@%$RANLIB%g
5640 s%@LIBTOOL@%$LIBTOOL%g
5641 s%@GDBINIT@%$GDBINIT%g
5642 s%@cgen_cpu_prefix@%$cgen_cpu_prefix%g
5643 s%@extra_objects@%$extra_objects%g
5644 s%@target_cpu_type@%$target_cpu_type%g
5645 s%@obj_format@%$obj_format%g
5646 s%@te_file@%$te_file%g
5647 s%@install_tooldir@%$install_tooldir%g
5649 s%@BFDLIB@%$BFDLIB%g
5650 s%@OPCODES_LIB@%$OPCODES_LIB%g
5651 s%@ALL_OBJ_DEPS@%$ALL_OBJ_DEPS%g
5654 s%@LEXLIB@%$LEXLIB%g
5656 s%@LEX_OUTPUT_ROOT@%$LEX_OUTPUT_ROOT%g
5657 s%@ALLOCA@%$ALLOCA%g
5658 s%@USE_NLS@%$USE_NLS%g
5659 s%@MSGFMT@%$MSGFMT%g
5660 s%@GMSGFMT@%$GMSGFMT%g
5661 s%@XGETTEXT@%$XGETTEXT%g
5662 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
5663 s%@CATALOGS@%$CATALOGS%g
5664 s%@CATOBJEXT@%$CATOBJEXT%g
5665 s%@DATADIRNAME@%$DATADIRNAME%g
5666 s%@GMOFILES@%$GMOFILES%g
5667 s%@INSTOBJEXT@%$INSTOBJEXT%g
5668 s%@INTLDEPS@%$INTLDEPS%g
5669 s%@INTLLIBS@%$INTLLIBS%g
5670 s%@INTLOBJS@%$INTLOBJS%g
5671 s%@POFILES@%$POFILES%g
5673 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
5675 s%@GT_YES@%$GT_YES%g
5676 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
5678 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
5679 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
5681 s%@EXEEXT@%$EXEEXT%g
5686 cat >> $CONFIG_STATUS <<\EOF
5688 # Split the substitutions into bite-sized pieces for seds with
5689 # small command number limits, like on Digital OSF/1 and HP-UX.
5690 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
5691 ac_file
=1 # Number of current file.
5692 ac_beg
=1 # First line for current file.
5693 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
5696 while $ac_more_lines; do
5697 if test $ac_beg -gt 1; then
5698 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
5700 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
5702 if test ! -s conftest.s
$ac_file; then
5704 rm -f conftest.s
$ac_file
5706 if test -z "$ac_sed_cmds"; then
5707 ac_sed_cmds
="sed -f conftest.s$ac_file"
5709 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
5711 ac_file
=`expr $ac_file + 1`
5713 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
5716 if test -z "$ac_sed_cmds"; then
5721 cat >> $CONFIG_STATUS <<EOF
5723 CONFIG_FILES=\${CONFIG_FILES-"Makefile doc/Makefile ${GDBINIT}:gdbinit.in po/Makefile.in:po/Make-in"}
5725 cat >> $CONFIG_STATUS <<\EOF
5726 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
5727 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5729 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
5730 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
5731 *) ac_file_in
="${ac_file}.in" ;;
5734 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
5736 # Remove last slash and all that follows it. Not all systems have dirname.
5737 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5738 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
5739 # The file is in a subdirectory.
5740 test ! -d "$ac_dir" && mkdir
"$ac_dir"
5741 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
5742 # A "../" for each directory in $ac_dir_suffix.
5743 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
5745 ac_dir_suffix
= ac_dots
=
5748 case "$ac_given_srcdir" in
5750 if test -z "$ac_dots"; then top_srcdir
=.
5751 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
5752 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
5754 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
5755 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
5758 case "$ac_given_INSTALL" in
5759 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
5760 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
5763 echo creating
"$ac_file"
5765 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
5767 *Makefile
*) ac_comsub
="1i\\
5768 # $configure_input" ;;
5772 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5774 s%@configure_input@%$configure_input%g
5775 s%@srcdir@%$srcdir%g
5776 s%@top_srcdir@%$top_srcdir%g
5777 s%@INSTALL@%$INSTALL%g
5778 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
5782 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5783 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5785 # ac_d sets the value in "#define NAME VALUE" lines.
5786 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5787 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
5790 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
5791 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5792 ac_uB
='\([ ]\)%\1#\2define\3'
5795 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5796 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5797 ac_eB
='$%\1#\2define\3'
5801 if test "${CONFIG_HEADERS+set}" != set; then
5803 cat >> $CONFIG_STATUS <<EOF
5804 CONFIG_HEADERS="config.h:config.in"
5806 cat >> $CONFIG_STATUS <<\EOF
5808 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
5809 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5811 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
5812 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
5813 *) ac_file_in
="${ac_file}.in" ;;
5816 echo creating
$ac_file
5818 rm -f conftest.frag conftest.
in conftest.out
5819 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5820 cat $ac_file_inputs > conftest.
in
5824 # Transform confdefs.h into a sed script conftest.vals that substitutes
5825 # the proper values into config.h.in to produce config.h. And first:
5826 # Protect against being on the right side of a sed subst in config.status.
5827 # Protect against being in an unquoted here document in config.status.
5829 cat > conftest.hdr
<<\EOF
5832 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
5836 sed -n -f conftest.hdr confdefs.h > conftest.vals
5839 # This sed command replaces #undef with comments. This is necessary, for
5840 # example, in the case of _POSIX_SOURCE, which is predefined and required
5841 # on some systems where configure will not decide to define it.
5842 cat >> conftest.vals <<\EOF
5843 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
5846 # Break up conftest.vals because some shells have a limit on
5847 # the size of here documents, and old seds have small limits too.
5852 ac_lines=`grep -c . conftest.vals
`
5853 # grep -c gives empty output for an empty file on some AIX systems.
5854 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
5855 # Write a limited-size here document to conftest.frag.
5856 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
5857 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
5859 sed -f conftest.frag conftest.in > conftest.out
5861 mv conftest.out conftest.in
5863 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
5865 mv conftest.tail conftest.vals
5869 cat >> $CONFIG_STATUS <<\EOF
5870 rm -f conftest.frag conftest.h
5871 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
5872 cat conftest.in >> conftest.h
5874 if cmp -s $ac_file conftest.h 2>/dev/null; then
5875 echo "$ac_file is unchanged"
5878 # Remove last slash and all that follows it. Not all systems have dirname.
5879 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
5880 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5881 # The file is in a subdirectory.
5882 test ! -d "$ac_dir" && mkdir "$ac_dir"
5885 mv conftest.h $ac_file
5890 cat >> $CONFIG_STATUS <<EOF
5892 target_cpu_type=${target_cpu_type}
5893 cgen_cpu_prefix=${cgen_cpu_prefix}
5894 obj_format=${obj_format}
5897 cat >> $CONFIG_STATUS <<\EOF
5898 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
5899 rm -f targ-cpu.c targ-cpu.h obj-format.h obj-format.c targ-env.h atof-targ.c itbl-cpu.h
5900 echo '#include "tc-'"${target_cpu_type}"'.h"' > targ-cpu.h
5901 echo '#include "obj-'"${obj_format}"'.h"' > obj-format.h
5902 echo '#include "te-'"${te_file}"'.h"' > targ-env.h
5903 echo '#include "itbl-'"${target_cpu_type}"'.h"' > itbl-cpu.h
5904 if test "x$cgen_cpu_prefix" != x ; then
5905 echo '#include "opcodes/'"${cgen_cpu_prefix}"'-desc.h"' > cgen-desc.h
5908 sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile
5911 chmod +x $CONFIG_STATUS
5912 rm -fr confdefs* $ac_clean_files
5913 test "$no_create" = yes || $SHELL $CONFIG_STATUS || exit 1