3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix
=/usr
/local
13 # Any additions from configure.in:
15 --enable-shared[=PKGS] build shared libraries [default=yes]"
17 --enable-static[=PKGS] build static libraries [default=yes]"
19 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
21 --enable-bfd-assembler use BFD back end for writing object files"
23 targets alternative target configurations besides the primary"
25 --enable-commonbfdlib build shared BFD/opcodes/libiberty library"
27 --disable-nls do not use Native Language Support"
29 --with-included-gettext use the GNU gettext library included here"
31 --enable-maintainer-mode enable make rules and dependencies not useful
32 (and sometimes confusing) to the casual installer"
34 # Initialize some variables set by options.
35 # The variables have the same names as the options, with
36 # dashes changed to underlines.
38 cache_file
=.
/config.cache
47 program_transform_name
=s
,x
,x
,
55 bindir
='${exec_prefix}/bin'
56 sbindir
='${exec_prefix}/sbin'
57 libexecdir
='${exec_prefix}/libexec'
58 datadir
='${prefix}/share'
59 sysconfdir
='${prefix}/etc'
60 sharedstatedir
='${prefix}/com'
61 localstatedir
='${prefix}/var'
62 libdir
='${exec_prefix}/lib'
63 includedir
='${prefix}/include'
64 oldincludedir
='/usr/include'
65 infodir
='${prefix}/info'
66 mandir
='${prefix}/man'
68 # Initialize some other variables.
71 SHELL
=${CONFIG_SHELL-/bin/sh}
72 # Maximum number of lines to put in a shell here document.
79 # If the previous option needs an argument, assign it.
80 if test -n "$ac_prev"; then
81 eval "$ac_prev=\$ac_option"
87 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
91 # Accept the important Cygnus configure options, so we can diagnose typos.
95 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
97 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
98 bindir
="$ac_optarg" ;;
100 -build |
--build |
--buil |
--bui |
--bu)
102 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
103 build
="$ac_optarg" ;;
105 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
106 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
107 ac_prev
=cache_file
;;
108 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
109 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
110 cache_file
="$ac_optarg" ;;
112 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
114 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
116 datadir
="$ac_optarg" ;;
118 -disable-* |
--disable-*)
119 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
120 # Reject names that are not valid shell variable names.
121 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
122 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
124 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
125 eval "enable_${ac_feature}=no" ;;
127 -enable-* |
--enable-*)
128 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
129 # Reject names that are not valid shell variable names.
130 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
131 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
133 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
138 eval "enable_${ac_feature}='$ac_optarg'" ;;
140 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
141 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
142 |
--exec |
--exe |
--ex)
143 ac_prev
=exec_prefix
;;
144 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
145 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
146 |
--exec=* |
--exe=* |
--ex=*)
147 exec_prefix
="$ac_optarg" ;;
149 -gas |
--gas |
--ga |
--g)
150 # Obsolete; use --with-gas.
153 -help |
--help |
--hel |
--he)
154 # Omit some internal or obsolete options to make the list less imposing.
155 # This message is too long to be a string in the A/UX 3.1 sh.
157 Usage: configure [options] [host]
158 Options: [defaults in brackets after descriptions]
160 --cache-file=FILE cache test results in FILE
161 --help print this message
162 --no-create do not create output files
163 --quiet, --silent do not print \`checking...' messages
164 --version print the version of autoconf that created configure
165 Directory and file names:
166 --prefix=PREFIX install architecture-independent files in PREFIX
168 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
170 --bindir=DIR user executables in DIR [EPREFIX/bin]
171 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
172 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
173 --datadir=DIR read-only architecture-independent data in DIR
175 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
176 --sharedstatedir=DIR modifiable architecture-independent data in DIR
178 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
179 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
180 --includedir=DIR C header files in DIR [PREFIX/include]
181 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
182 --infodir=DIR info documentation in DIR [PREFIX/info]
183 --mandir=DIR man documentation in DIR [PREFIX/man]
184 --srcdir=DIR find the sources in DIR [configure dir or ..]
185 --program-prefix=PREFIX prepend PREFIX to installed program names
186 --program-suffix=SUFFIX append SUFFIX to installed program names
187 --program-transform-name=PROGRAM
188 run sed PROGRAM on installed program names
192 --build=BUILD configure for building on BUILD [BUILD=HOST]
193 --host=HOST configure for HOST [guessed]
194 --target=TARGET configure for TARGET [TARGET=HOST]
195 Features and packages:
196 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
197 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
198 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
199 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
200 --x-includes=DIR X include files are in DIR
201 --x-libraries=DIR X library files are in DIR
203 if test -n "$ac_help"; then
204 echo "--enable and --with options recognized:$ac_help"
208 -host |
--host |
--hos |
--ho)
210 -host=* |
--host=* |
--hos=* |
--ho=*)
213 -includedir |
--includedir |
--includedi |
--included |
--include \
214 |
--includ |
--inclu |
--incl |
--inc)
215 ac_prev
=includedir
;;
216 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
217 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
218 includedir
="$ac_optarg" ;;
220 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
222 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
223 infodir
="$ac_optarg" ;;
225 -libdir |
--libdir |
--libdi |
--libd)
227 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
228 libdir
="$ac_optarg" ;;
230 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
231 |
--libexe |
--libex |
--libe)
232 ac_prev
=libexecdir
;;
233 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
234 |
--libexe=* |
--libex=* |
--libe=*)
235 libexecdir
="$ac_optarg" ;;
237 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
238 |
--localstate |
--localstat |
--localsta |
--localst \
239 |
--locals |
--local |
--loca |
--loc |
--lo)
240 ac_prev
=localstatedir
;;
241 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
242 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
243 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
244 localstatedir
="$ac_optarg" ;;
246 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
248 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
249 mandir
="$ac_optarg" ;;
252 # Obsolete; use --without-fp.
255 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
259 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
260 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
263 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
264 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
265 |
--oldin |
--oldi |
--old |
--ol |
--o)
266 ac_prev
=oldincludedir
;;
267 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
268 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
269 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
270 oldincludedir
="$ac_optarg" ;;
272 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
274 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
275 prefix
="$ac_optarg" ;;
277 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
278 |
--program-pre |
--program-pr |
--program-p)
279 ac_prev
=program_prefix
;;
280 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
281 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
282 program_prefix
="$ac_optarg" ;;
284 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
285 |
--program-suf |
--program-su |
--program-s)
286 ac_prev
=program_suffix
;;
287 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
288 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
289 program_suffix
="$ac_optarg" ;;
291 -program-transform-name |
--program-transform-name \
292 |
--program-transform-nam |
--program-transform-na \
293 |
--program-transform-n |
--program-transform- \
294 |
--program-transform |
--program-transfor \
295 |
--program-transfo |
--program-transf \
296 |
--program-trans |
--program-tran \
297 |
--progr-tra |
--program-tr |
--program-t)
298 ac_prev
=program_transform_name
;;
299 -program-transform-name=* |
--program-transform-name=* \
300 |
--program-transform-nam=* |
--program-transform-na=* \
301 |
--program-transform-n=* |
--program-transform-=* \
302 |
--program-transform=* |
--program-transfor=* \
303 |
--program-transfo=* |
--program-transf=* \
304 |
--program-trans=* |
--program-tran=* \
305 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
306 program_transform_name
="$ac_optarg" ;;
308 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
309 |
-silent |
--silent |
--silen |
--sile |
--sil)
312 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
314 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
316 sbindir
="$ac_optarg" ;;
318 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
319 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
320 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
322 ac_prev
=sharedstatedir
;;
323 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
324 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
325 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
327 sharedstatedir
="$ac_optarg" ;;
329 -site |
--site |
--sit)
331 -site=* |
--site=* |
--sit=*)
334 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
336 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
337 srcdir
="$ac_optarg" ;;
339 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
340 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
341 ac_prev
=sysconfdir
;;
342 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
343 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
344 sysconfdir
="$ac_optarg" ;;
346 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
348 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
349 target
="$ac_optarg" ;;
351 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
354 -version |
--version |
--versio |
--versi |
--vers)
355 echo "configure generated by autoconf version 2.13"
359 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
360 # Reject names that are not valid shell variable names.
361 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
362 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
364 ac_package
=`echo $ac_package| sed 's/-/_/g'`
369 eval "with_${ac_package}='$ac_optarg'" ;;
371 -without-* |
--without-*)
372 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
373 # Reject names that are not valid shell variable names.
374 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
375 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
377 ac_package
=`echo $ac_package| sed 's/-/_/g'`
378 eval "with_${ac_package}=no" ;;
381 # Obsolete; use --with-x.
384 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
385 |
--x-incl |
--x-inc |
--x-in |
--x-i)
386 ac_prev
=x_includes
;;
387 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
388 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
389 x_includes
="$ac_optarg" ;;
391 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
392 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
393 ac_prev
=x_libraries
;;
394 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
395 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
396 x_libraries
="$ac_optarg" ;;
398 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
402 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
403 echo "configure: warning: $ac_option: invalid host type" 1>&2
405 if test "x$nonopt" != xNONE
; then
406 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
414 if test -n "$ac_prev"; then
415 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
418 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
420 # File descriptor usage:
423 # 2 errors and warnings
424 # 3 some systems may open it to /dev/tty
425 # 4 used on the Kubota Titan
426 # 6 checking for... messages and results
427 # 5 compiler messages saved in config.log
428 if test "$silent" = yes; then
436 This file contains any messages produced by compilers while
437 running configure, to aid debugging if configure makes a mistake.
440 # Strip out --no-create and --no-recursion so they do not pile up.
441 # Also quote any args containing shell metacharacters.
446 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
447 |
--no-cr |
--no-c) ;;
448 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
449 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
450 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
451 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
452 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
457 # Only set these to C if already set. These must not be set unconditionally
458 # because not all systems understand e.g. LANG=C (notably SCO).
459 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
460 # Non-C LC_CTYPE values break the ctype check.
461 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
462 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
463 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
464 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
466 # confdefs.h avoids OS command line length limits that DEFS can exceed.
467 rm -rf conftest
* confdefs.h
468 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
471 # A filename unique to this package, relative to the directory that
472 # configure is in, which we can look for to find out if srcdir is correct.
475 # Find the source files, if location was not specified.
476 if test -z "$srcdir"; then
477 ac_srcdir_defaulted
=yes
478 # Try the directory containing this script, then its parent.
480 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
481 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
483 if test ! -r $srcdir/$ac_unique_file; then
487 ac_srcdir_defaulted
=no
489 if test ! -r $srcdir/$ac_unique_file; then
490 if test "$ac_srcdir_defaulted" = yes; then
491 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
493 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
496 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
498 # Prefer explicitly selected file to automatically selected ones.
499 if test -z "$CONFIG_SITE"; then
500 if test "x$prefix" != xNONE
; then
501 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
503 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
506 for ac_site_file
in $CONFIG_SITE; do
507 if test -r "$ac_site_file"; then
508 echo "loading site script $ac_site_file"
513 if test -r "$cache_file"; then
514 echo "loading cache $cache_file"
517 echo "creating cache $cache_file"
522 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
523 ac_cpp
='$CPP $CPPFLAGS'
524 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
525 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
526 cross_compiling
=$ac_cv_prog_cc_cross
530 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
531 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
532 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
539 ac_n
= ac_c
='\c' ac_t
=
545 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
546 if test -f $ac_dir/install-sh
; then
548 ac_install_sh
="$ac_aux_dir/install-sh -c"
550 elif test -f $ac_dir/install.sh
; then
552 ac_install_sh
="$ac_aux_dir/install.sh -c"
556 if test -z "$ac_aux_dir"; then
557 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
559 ac_config_guess
=$ac_aux_dir/config.guess
560 ac_config_sub
=$ac_aux_dir/config.sub
561 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
564 # Do some error checking and defaulting for the host and target type.
566 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
569 # 1. You are not allowed to specify --host, --target, and nonopt at the
571 # 2. Host defaults to nonopt.
572 # 3. If nonopt is not specified, then host defaults to the current host,
573 # as determined by config.guess.
574 # 4. Target and build default to nonopt.
575 # 5. If nonopt is not specified, then target and build default to host.
577 # The aliases save the names the user supplied, while $host etc.
578 # will get canonicalized.
579 case $host---$target---$nonopt in
580 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
581 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
585 # Make sure we can run config.sub.
586 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
587 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
590 echo $ac_n "checking host system type""... $ac_c" 1>&6
591 echo "configure:592: checking host system type" >&5
594 case "$host_alias" in
598 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
599 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
601 *) host_alias
=$nonopt ;;
605 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
606 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
607 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
608 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
609 echo "$ac_t""$host" 1>&6
611 echo $ac_n "checking target system type""... $ac_c" 1>&6
612 echo "configure:613: checking target system type" >&5
615 case "$target_alias" in
618 NONE
) target_alias
=$host_alias ;;
619 *) target_alias
=$nonopt ;;
623 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
624 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
625 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
626 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
627 echo "$ac_t""$target" 1>&6
629 echo $ac_n "checking build system type""... $ac_c" 1>&6
630 echo "configure:631: checking build system type" >&5
633 case "$build_alias" in
636 NONE
) build_alias
=$host_alias ;;
637 *) build_alias
=$nonopt ;;
641 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
642 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
643 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
644 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
645 echo "$ac_t""$build" 1>&6
647 test "$host_alias" != "$target_alias" &&
648 test "$program_prefix$program_suffix$program_transform_name" = \
650 program_prefix
=${target_alias}-
653 # Find a good install program. We prefer a C program (faster),
654 # so one script is as good as another. But avoid the broken or
655 # incompatible versions:
656 # SysV /etc/install, /usr/sbin/install
657 # SunOS /usr/etc/install
660 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
661 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
662 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
663 # ./install, which can be erroneously created by make from ./install.sh.
664 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
665 echo "configure:666: checking for a BSD compatible install" >&5
666 if test -z "$INSTALL"; then
667 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
668 echo $ac_n "(cached) $ac_c" 1>&6
670 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
671 for ac_dir
in $PATH; do
672 # Account for people who put trailing slashes in PATH elements.
674 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
676 # OSF1 and SCO ODT 3.0 have their own names for install.
677 # Don't use installbsd from OSF since it installs stuff as root
679 for ac_prog
in ginstall scoinst
install; do
680 if test -f $ac_dir/$ac_prog; then
681 if test $ac_prog = install &&
682 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
683 # AIX install. It has an incompatible calling convention.
686 ac_cv_path_install
="$ac_dir/$ac_prog -c"
697 if test "${ac_cv_path_install+set}" = set; then
698 INSTALL
="$ac_cv_path_install"
700 # As a last resort, use the slow shell script. We don't cache a
701 # path for INSTALL within a source directory, because that will
702 # break other packages using the cache if that directory is
703 # removed, or if the path is relative.
704 INSTALL
="$ac_install_sh"
707 echo "$ac_t""$INSTALL" 1>&6
709 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
710 # It thinks the first close brace ends the variable substitution.
711 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
713 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
715 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
717 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
718 echo "configure:719: checking whether build environment is sane" >&5
721 echo timestamp
> conftestfile
722 # Do `set' in a subshell so we don't clobber the current shell's
723 # arguments. Must try -L first in case configure is actually a
724 # symlink; some systems play weird games with the mod time of symlinks
725 # (eg FreeBSD returns the mod time of the symlink's containing
728 set X
`ls -Lt $srcdir/configure conftestfile 2> /dev/null`
729 if test "$*" = "X"; then
731 set X
`ls -t $srcdir/configure conftestfile`
733 if test "$*" != "X $srcdir/configure conftestfile" \
734 && test "$*" != "X conftestfile $srcdir/configure"; then
736 # If neither matched, then we have a broken ls. This can happen
737 # if, for instance, CONFIG_SHELL is bash and it inherits a
738 # broken ls alias from the environment. This has actually
739 # happened. Such a system could not be considered "sane".
740 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
741 alias in your environment" 1>&2; exit 1; }
744 test "$2" = conftestfile
750 { echo "configure: error: newly created file is older than distributed files!
751 Check your system clock" 1>&2; exit 1; }
754 echo "$ac_t""yes" 1>&6
755 if test "$program_transform_name" = s
,x
,x
,; then
756 program_transform_name
=
758 # Double any \ or $. echo might interpret backslashes.
759 cat <<\EOF_SED
> conftestsed
760 s
,\\,\\\\,g
; s
,\$
,$$
,g
762 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
765 test "$program_prefix" != NONE
&&
766 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
767 # Use a double $ so make ignores it.
768 test "$program_suffix" != NONE
&&
769 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
771 # sed with no file args requires a program.
772 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
774 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
775 echo "configure:776: checking whether ${MAKE-make} sets \${MAKE}" >&5
776 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
777 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
778 echo $ac_n "(cached) $ac_c" 1>&6
780 cat > conftestmake
<<\EOF
782 @
echo 'ac_maketemp="${MAKE}"'
784 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
785 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
786 if test -n "$ac_maketemp"; then
787 eval ac_cv_prog_make_
${ac_make}_set
=yes
789 eval ac_cv_prog_make_
${ac_make}_set
=no
793 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
794 echo "$ac_t""yes" 1>&6
797 echo "$ac_t""no" 1>&6
798 SET_MAKE
="MAKE=${MAKE-make}"
806 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status
; then
807 { echo "configure: error: source directory already configured; run "make distclean
" there first" 1>&2; exit 1; }
809 cat >> confdefs.h
<<EOF
810 #define PACKAGE "$PACKAGE"
813 cat >> confdefs.h
<<EOF
814 #define VERSION "$VERSION"
819 missing_dir
=`cd $ac_aux_dir && pwd`
820 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
821 echo "configure:822: checking for working aclocal" >&5
822 # Run test in a subshell; some versions of sh will print an error if
823 # an executable is not found, even if stderr is redirected.
824 # Redirect stdin to placate older versions of autoconf. Sigh.
825 if (aclocal
--version) < /dev
/null
> /dev
/null
2>&1; then
827 echo "$ac_t""found" 1>&6
829 ACLOCAL
="$missing_dir/missing aclocal"
830 echo "$ac_t""missing" 1>&6
833 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
834 echo "configure:835: checking for working autoconf" >&5
835 # Run test in a subshell; some versions of sh will print an error if
836 # an executable is not found, even if stderr is redirected.
837 # Redirect stdin to placate older versions of autoconf. Sigh.
838 if (autoconf
--version) < /dev
/null
> /dev
/null
2>&1; then
840 echo "$ac_t""found" 1>&6
842 AUTOCONF
="$missing_dir/missing autoconf"
843 echo "$ac_t""missing" 1>&6
846 echo $ac_n "checking for working automake""... $ac_c" 1>&6
847 echo "configure:848: checking for working automake" >&5
848 # Run test in a subshell; some versions of sh will print an error if
849 # an executable is not found, even if stderr is redirected.
850 # Redirect stdin to placate older versions of autoconf. Sigh.
851 if (automake
--version) < /dev
/null
> /dev
/null
2>&1; then
853 echo "$ac_t""found" 1>&6
855 AUTOMAKE
="$missing_dir/missing automake"
856 echo "$ac_t""missing" 1>&6
859 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
860 echo "configure:861: checking for working autoheader" >&5
861 # Run test in a subshell; some versions of sh will print an error if
862 # an executable is not found, even if stderr is redirected.
863 # Redirect stdin to placate older versions of autoconf. Sigh.
864 if (autoheader
--version) < /dev
/null
> /dev
/null
2>&1; then
865 AUTOHEADER
=autoheader
866 echo "$ac_t""found" 1>&6
868 AUTOHEADER
="$missing_dir/missing autoheader"
869 echo "$ac_t""missing" 1>&6
872 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
873 echo "configure:874: checking for working makeinfo" >&5
874 # Run test in a subshell; some versions of sh will print an error if
875 # an executable is not found, even if stderr is redirected.
876 # Redirect stdin to placate older versions of autoconf. Sigh.
877 if (makeinfo
--version) < /dev
/null
> /dev
/null
2>&1; then
879 echo "$ac_t""found" 1>&6
881 MAKEINFO
="$missing_dir/missing makeinfo"
882 echo "$ac_t""missing" 1>&6
887 # Check whether --enable-shared or --disable-shared was given.
888 if test "${enable_shared+set}" = set; then
889 enableval
="$enable_shared"
892 yes) enable_shared
=yes ;;
893 no
) enable_shared
=no
;;
896 # Look at the argument we got. We use all the common list separators.
897 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
898 for pkg
in $enableval; do
899 if test "X$pkg" = "X$p"; then
910 # Check whether --enable-static or --disable-static was given.
911 if test "${enable_static+set}" = set; then
912 enableval
="$enable_static"
915 yes) enable_static
=yes ;;
916 no
) enable_static
=no
;;
919 # Look at the argument we got. We use all the common list separators.
920 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
921 for pkg
in $enableval; do
922 if test "X$pkg" = "X$p"; then
933 # Extract the first word of "ranlib", so it can be a program name with args.
934 set dummy ranlib
; ac_word
=$2
935 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
936 echo "configure:937: checking for $ac_word" >&5
937 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
938 echo $ac_n "(cached) $ac_c" 1>&6
940 if test -n "$RANLIB"; then
941 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
943 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
945 for ac_dir
in $ac_dummy; do
946 test -z "$ac_dir" && ac_dir
=.
947 if test -f $ac_dir/$ac_word; then
948 ac_cv_prog_RANLIB
="ranlib"
953 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
956 RANLIB
="$ac_cv_prog_RANLIB"
957 if test -n "$RANLIB"; then
958 echo "$ac_t""$RANLIB" 1>&6
960 echo "$ac_t""no" 1>&6
963 # Extract the first word of "gcc", so it can be a program name with args.
964 set dummy gcc
; ac_word
=$2
965 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
966 echo "configure:967: checking for $ac_word" >&5
967 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
968 echo $ac_n "(cached) $ac_c" 1>&6
970 if test -n "$CC"; then
971 ac_cv_prog_CC
="$CC" # Let the user override the test.
973 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
975 for ac_dir
in $ac_dummy; do
976 test -z "$ac_dir" && ac_dir
=.
977 if test -f $ac_dir/$ac_word; then
986 if test -n "$CC"; then
987 echo "$ac_t""$CC" 1>&6
989 echo "$ac_t""no" 1>&6
992 if test -z "$CC"; then
993 # Extract the first word of "cc", so it can be a program name with args.
994 set dummy cc
; ac_word
=$2
995 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
996 echo "configure:997: checking for $ac_word" >&5
997 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
998 echo $ac_n "(cached) $ac_c" 1>&6
1000 if test -n "$CC"; then
1001 ac_cv_prog_CC
="$CC" # Let the user override the test.
1003 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1006 for ac_dir
in $ac_dummy; do
1007 test -z "$ac_dir" && ac_dir
=.
1008 if test -f $ac_dir/$ac_word; then
1009 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1010 ac_prog_rejected
=yes
1018 if test $ac_prog_rejected = yes; then
1019 # We found a bogon in the path, so make sure we never use it.
1020 set dummy
$ac_cv_prog_CC
1022 if test $# -gt 0; then
1023 # We chose a different compiler from the bogus one.
1024 # However, it has the same basename, so the bogon will be chosen
1025 # first if we set CC to just the basename; use the full file name.
1027 set dummy
"$ac_dir/$ac_word" "$@"
1035 if test -n "$CC"; then
1036 echo "$ac_t""$CC" 1>&6
1038 echo "$ac_t""no" 1>&6
1041 if test -z "$CC"; then
1042 case "`uname -s`" in
1044 # Extract the first word of "cl", so it can be a program name with args.
1045 set dummy cl
; ac_word
=$2
1046 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1047 echo "configure:1048: checking for $ac_word" >&5
1048 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1049 echo $ac_n "(cached) $ac_c" 1>&6
1051 if test -n "$CC"; then
1052 ac_cv_prog_CC
="$CC" # Let the user override the test.
1054 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1056 for ac_dir
in $ac_dummy; do
1057 test -z "$ac_dir" && ac_dir
=.
1058 if test -f $ac_dir/$ac_word; then
1067 if test -n "$CC"; then
1068 echo "$ac_t""$CC" 1>&6
1070 echo "$ac_t""no" 1>&6
1075 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1078 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1079 echo "configure:1080: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1082 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1083 ac_cpp
='$CPP $CPPFLAGS'
1084 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1085 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1086 cross_compiling
=$ac_cv_prog_cc_cross
1088 cat > conftest.
$ac_ext << EOF
1090 #line 1091 "configure"
1091 #include "confdefs.h"
1095 if { (eval echo configure
:1096: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1096 ac_cv_prog_cc_works
=yes
1097 # If we can't run a trivial program, we are probably using a cross compiler.
1098 if (.
/conftest
; exit) 2>/dev
/null
; then
1099 ac_cv_prog_cc_cross
=no
1101 ac_cv_prog_cc_cross
=yes
1104 echo "configure: failed program was:" >&5
1105 cat conftest.
$ac_ext >&5
1106 ac_cv_prog_cc_works
=no
1110 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1111 ac_cpp
='$CPP $CPPFLAGS'
1112 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1113 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1114 cross_compiling
=$ac_cv_prog_cc_cross
1116 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1117 if test $ac_cv_prog_cc_works = no
; then
1118 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1120 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1121 echo "configure:1122: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1122 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1123 cross_compiling
=$ac_cv_prog_cc_cross
1125 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1126 echo "configure:1127: checking whether we are using GNU C" >&5
1127 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1128 echo $ac_n "(cached) $ac_c" 1>&6
1130 cat > conftest.c
<<EOF
1135 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1136: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1142 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1144 if test $ac_cv_prog_gcc = yes; then
1150 ac_test_CFLAGS
="${CFLAGS+set}"
1151 ac_save_CFLAGS
="$CFLAGS"
1153 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1154 echo "configure:1155: checking whether ${CC-cc} accepts -g" >&5
1155 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1156 echo $ac_n "(cached) $ac_c" 1>&6
1158 echo 'void f(){}' > conftest.c
1159 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1168 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1169 if test "$ac_test_CFLAGS" = set; then
1170 CFLAGS
="$ac_save_CFLAGS"
1171 elif test $ac_cv_prog_cc_g = yes; then
1172 if test "$GCC" = yes; then
1178 if test "$GCC" = yes; then
1185 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1186 if test "${with_gnu_ld+set}" = set; then
1187 withval
="$with_gnu_ld"
1188 test "$withval" = no || with_gnu_ld
=yes
1195 if test "$ac_cv_prog_gcc" = yes; then
1196 # Check if gcc -print-prog-name=ld gives a path.
1197 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1198 echo "configure:1199: checking for ld used by GCC" >&5
1199 ac_prog
=`($CC -print-prog-name=ld) 2>&5`
1201 # Accept absolute paths.
1203 test -z "$LD" && LD
="$ac_prog"
1206 # If it fails, then pretend we aren't using GCC.
1210 # If it is relative, then search for the first ld in PATH.
1214 elif test "$with_gnu_ld" = yes; then
1215 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1216 echo "configure:1217: checking for GNU ld" >&5
1218 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1219 echo "configure:1220: checking for non-GNU ld" >&5
1221 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1222 echo $ac_n "(cached) $ac_c" 1>&6
1224 if test -z "$LD"; then
1225 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1226 for ac_dir
in $PATH; do
1227 test -z "$ac_dir" && ac_dir
=.
1228 if test -f "$ac_dir/$ac_prog"; then
1229 ac_cv_path_LD
="$ac_dir/$ac_prog"
1230 # Check to see if the program is GNU ld. I'd rather use --version,
1231 # but apparently some GNU ld's only accept -v.
1232 # Break only if it was the GNU/non-GNU ld that we prefer.
1233 if "$ac_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
1234 test "$with_gnu_ld" != no
&& break
1236 test "$with_gnu_ld" != yes && break
1242 ac_cv_path_LD
="$LD" # Let the user override the test with a path.
1247 if test -n "$LD"; then
1248 echo "$ac_t""$LD" 1>&6
1250 echo "$ac_t""no" 1>&6
1252 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1254 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1255 echo "configure:1256: checking if the linker ($LD) is GNU ld" >&5
1256 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1257 echo $ac_n "(cached) $ac_c" 1>&6
1259 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1260 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
1261 ac_cv_prog_gnu_ld
=yes
1263 ac_cv_prog_gnu_ld
=no
1267 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1270 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1271 echo "configure:1272: checking for BSD-compatible nm" >&5
1272 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1273 echo $ac_n "(cached) $ac_c" 1>&6
1275 if test -n "$NM"; then
1276 # Let the user override the test.
1279 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1280 for ac_dir
in /usr
/ucb
/usr
/ccs
/bin
$PATH /bin
; do
1281 test -z "$ac_dir" && ac_dir
=.
1282 if test -f $ac_dir/nm
; then
1283 # Check to see if the nm accepts a BSD-compat flag.
1284 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1285 # nm: unknown option "B" ignored
1286 if ($ac_dir/nm
-B /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep /dev
/null
>/dev
/null
; then
1287 ac_cv_path_NM
="$ac_dir/nm -B"
1288 elif ($ac_dir/nm
-p /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep /dev
/null
>/dev
/null
; then
1289 ac_cv_path_NM
="$ac_dir/nm -p"
1291 ac_cv_path_NM
="$ac_dir/nm"
1297 test -z "$ac_cv_path_NM" && ac_cv_path_NM
=nm
1302 echo "$ac_t""$NM" 1>&6
1305 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1306 echo "configure:1307: checking whether ln -s works" >&5
1307 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1308 echo $ac_n "(cached) $ac_c" 1>&6
1311 if ln -s X conftestdata
2>/dev
/null
1314 ac_cv_prog_LN_S
="ln -s"
1319 LN_S
="$ac_cv_prog_LN_S"
1320 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1321 echo "$ac_t""yes" 1>&6
1323 echo "$ac_t""no" 1>&6
1326 if test $host != $build; then
1327 ac_tool_prefix
=${host_alias}-
1332 # Always use our own libtool.
1333 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
1335 # Check for any special flags to pass to ltconfig.
1337 test "$enable_shared" = no
&& libtool_flags
="$libtool_flags --disable-shared"
1338 test "$enable_static" = no
&& libtool_flags
="$libtool_flags --disable-static"
1339 test "$silent" = yes && libtool_flags
="$libtool_flags --silent"
1340 test "$ac_cv_prog_gcc" = yes && libtool_flags
="$libtool_flags --with-gcc"
1341 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags
="$libtool_flags --with-gnu-ld"
1343 # Some flags need to be propagated to the compiler or linker for good
1347 # Find out which ABI we are using.
1348 echo '#line 1349 "configure"' > conftest.
$ac_ext
1349 if { (eval echo configure
:1350: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1350 case "`/usr/bin/file conftest.o`" in
1366 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1367 CFLAGS
="$CFLAGS -belf"
1371 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
1372 set dummy
${ac_tool_prefix}dlltool
; ac_word
=$2
1373 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1374 echo "configure:1375: checking for $ac_word" >&5
1375 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
1376 echo $ac_n "(cached) $ac_c" 1>&6
1378 if test -n "$DLLTOOL"; then
1379 ac_cv_prog_DLLTOOL
="$DLLTOOL" # Let the user override the test.
1381 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1383 for ac_dir
in $ac_dummy; do
1384 test -z "$ac_dir" && ac_dir
=.
1385 if test -f $ac_dir/$ac_word; then
1386 ac_cv_prog_DLLTOOL
="${ac_tool_prefix}dlltool"
1393 DLLTOOL
="$ac_cv_prog_DLLTOOL"
1394 if test -n "$DLLTOOL"; then
1395 echo "$ac_t""$DLLTOOL" 1>&6
1397 echo "$ac_t""no" 1>&6
1401 if test -z "$ac_cv_prog_DLLTOOL"; then
1402 if test -n "$ac_tool_prefix"; then
1403 # Extract the first word of "dlltool", so it can be a program name with args.
1404 set dummy dlltool
; ac_word
=$2
1405 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1406 echo "configure:1407: checking for $ac_word" >&5
1407 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
1408 echo $ac_n "(cached) $ac_c" 1>&6
1410 if test -n "$DLLTOOL"; then
1411 ac_cv_prog_DLLTOOL
="$DLLTOOL" # Let the user override the test.
1413 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1415 for ac_dir
in $ac_dummy; do
1416 test -z "$ac_dir" && ac_dir
=.
1417 if test -f $ac_dir/$ac_word; then
1418 ac_cv_prog_DLLTOOL
="dlltool"
1423 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL
="false"
1426 DLLTOOL
="$ac_cv_prog_DLLTOOL"
1427 if test -n "$DLLTOOL"; then
1428 echo "$ac_t""$DLLTOOL" 1>&6
1430 echo "$ac_t""no" 1>&6
1438 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1439 set dummy
${ac_tool_prefix}as
; ac_word
=$2
1440 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1441 echo "configure:1442: checking for $ac_word" >&5
1442 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1443 echo $ac_n "(cached) $ac_c" 1>&6
1445 if test -n "$AS"; then
1446 ac_cv_prog_AS
="$AS" # Let the user override the test.
1448 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1450 for ac_dir
in $ac_dummy; do
1451 test -z "$ac_dir" && ac_dir
=.
1452 if test -f $ac_dir/$ac_word; then
1453 ac_cv_prog_AS
="${ac_tool_prefix}as"
1461 if test -n "$AS"; then
1462 echo "$ac_t""$AS" 1>&6
1464 echo "$ac_t""no" 1>&6
1468 if test -z "$ac_cv_prog_AS"; then
1469 if test -n "$ac_tool_prefix"; then
1470 # Extract the first word of "as", so it can be a program name with args.
1471 set dummy as
; ac_word
=$2
1472 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1473 echo "configure:1474: checking for $ac_word" >&5
1474 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1475 echo $ac_n "(cached) $ac_c" 1>&6
1477 if test -n "$AS"; then
1478 ac_cv_prog_AS
="$AS" # Let the user override the test.
1480 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1482 for ac_dir
in $ac_dummy; do
1483 test -z "$ac_dir" && ac_dir
=.
1484 if test -f $ac_dir/$ac_word; then
1490 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS
="false"
1494 if test -n "$AS"; then
1495 echo "$ac_t""$AS" 1>&6
1497 echo "$ac_t""no" 1>&6
1510 # Actually configure libtool. ac_aux_dir is where install-sh is found.
1511 CC
="$CC" CFLAGS
="$CFLAGS" CPPFLAGS
="$CPPFLAGS" \
1512 LD
="$LD" NM
="$NM" RANLIB
="$RANLIB" LN_S
="$LN_S" \
1513 DLLTOOL
="$DLLTOOL" AS
="$AS" \
1514 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig
--no-reexec \
1515 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh
$host \
1516 ||
{ echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1518 # Redirect the config.log output again, so that the ltconfig log is not
1519 # clobbered by the next message.
1520 exec 5>>.
/config.log
1524 # Check whether --enable-bfd-assembler or --disable-bfd-assembler was given.
1525 if test "${enable_bfd_assembler+set}" = set; then
1526 enableval
="$enable_bfd_assembler"
1527 case "${enableval}" in
1528 yes) need_bfd
=yes user_bfd_gas
=yes ;;
1529 no
) user_bfd_gas
=no
;;
1530 *) { echo "configure: error: bad value ${enableval} given for bfd-assembler option" 1>&2; exit 1; } ;;
1533 # Check whether --enable-targets or --disable-targets was given.
1534 if test "${enable_targets+set}" = set; then
1535 enableval
="$enable_targets"
1536 case "${enableval}" in
1537 yes |
"") { echo "configure: error: enable-targets option must specify target names or 'all'" 1>&2; exit 1; }
1539 no
) enable_targets
= ;;
1540 *) enable_targets
=$enableval ;;
1543 # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
1544 if test "${enable_commonbfdlib+set}" = set; then
1545 enableval
="$enable_commonbfdlib"
1546 case "${enableval}" in
1547 yes) commonbfdlib
=true
;;
1548 no
) commonbfdlib
=false
;;
1549 *) { echo "configure: error: bad value ${enableval} for BFD commonbfdlib option" 1>&2; exit 1; } ;;
1555 # Generate a header file
1562 # Makefile target for installing gas in $(tooldir)/bin.
1563 install_tooldir
=install-exec-tooldir
1566 if test -n "$enable_targets" ; then
1567 for t
in `echo $enable_targets | sed 's/,/ /g'`; do
1568 result
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $t 2>/dev/null`
1569 if test -n "$result" ; then
1570 canon_targets
="$canon_targets $result"
1572 # # Permit "all", etc. We don't support it yet though.
1573 # canon_targets="$canon_targets $t"
1576 _gas_uniq_list
="$canon_targets"
1577 _gas_uniq_newlist
=""
1578 for _gas_uniq_i
in _gas_uniq_dummy
$_gas_uniq_list ; do
1579 case $_gas_uniq_i in
1581 *) case " $_gas_uniq_newlist " in
1582 *" $_gas_uniq_i "*) ;;
1583 *) _gas_uniq_newlist
="$_gas_uniq_newlist $_gas_uniq_i" ;;
1587 canon_targets
=$_gas_uniq_newlist
1593 for this_target
in $target $canon_targets ; do
1595 eval `echo $this_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/cpu=\1 vendor=\2 os=\3/'`
1597 # check for architecture variants
1601 alpha
*) cpu_type
=alpha
;;
1602 armeb
) cpu_type
=arm endian
=big
;;
1603 arm
*) cpu_type
=arm endian
=little
;;
1604 strongarm
*) cpu_type
=arm endian
=little
;;
1605 thumb
*) cpu_type
=arm endian
=little
;;
1606 hppa
*) cpu_type
=hppa
;;
1607 i
[456]86) cpu_type
=i386
;;
1608 m680
[012346]0) cpu_type
=m68k
;;
1609 m68008
) cpu_type
=m68k
;;
1610 m683??
) cpu_type
=m68k
;;
1611 m5200
) cpu_type
=m68k
;;
1612 m8
*) cpu_type
=m88k
;;
1613 mips
*el
) cpu_type
=mips endian
=little
;;
1614 # start-sanitize-r5900
1615 mips
*5900*) cpu_type
=mips endian
=little
;;
1616 # end-sanitize-r5900
1617 mips
*) cpu_type
=mips endian
=big
;;
1618 powerpcle
*) cpu_type
=ppc endian
=little
;;
1619 powerpc
*) cpu_type
=ppc endian
=big
;;
1620 rs6000
*) cpu_type
=ppc
;;
1621 sparclite
*) cpu_type
=sparc arch
=sparclite
;;
1622 sparclet
*) cpu_type
=sparc arch
=sparclet
;;
1623 sparc64
*) cpu_type
=sparc arch
=v9-64
;;
1624 sparc86x
*) cpu_type
=sparc arch
=sparc86x
;;
1625 sparc
*) cpu_type
=sparc arch
=sparclite
;; # ??? See tc-sparc.c.
1626 v850
*) cpu_type
=v850
;;
1627 *) cpu_type
=${cpu} ;;
1630 if test ${this_target} = $target ; then
1631 target_cpu_type
=${cpu_type}
1632 elif test ${target_cpu_type} != ${cpu_type} ; then
1636 generic_target
=${cpu_type}-$vendor-$os
1641 # assign object format
1642 case ${generic_target} in
1643 a29k-
*-coff) fmt=coff
;;
1644 a29k-amd-udi
) fmt=coff
;;
1645 a29k-amd-ebmon
) fmt=coff
;;
1646 a29k-nyu-sym1
) fmt=coff
;;
1647 a29k-
*-vxworks*) fmt=coff
;;
1649 alpha
*-*-*vms
*) fmt=evax
;;
1650 alpha
*-*-netware*) fmt=ecoff
;;
1651 alpha
*-*-openbsd*) fmt=ecoff
;;
1652 alpha
*-*-osf*) fmt=ecoff
;;
1653 alpha
*-*-linuxecoff*) fmt=ecoff
;;
1654 alpha
*-*-linux-gnu*) fmt=elf em
=linux
;;
1655 alpha
*-*-netbsd*) fmt=elf em
=nbsd
;;
1657 arc-
*-elf*) fmt=elf bfd_gas
=yes ;;
1659 arm-
*-riscix*) fmt=aout em
=riscix
;;
1660 arm-
*-aout) fmt=aout
;;
1661 arm-
*-coff | thumb-
*-coff) fmt=coff
;;
1662 arm-
*-elf | thumb-
*-elf) fmt=elf
;;
1663 arm-
*-oabi | thumb-
*-oabi) fmt=elf
;;
1664 arm-
*-riscix*) fmt=aout
;;
1665 arm-
*-pe | thumb-
*-pe) fmt=coff em
=pe
;;
1667 d10v-
*-*) fmt=elf bfd_gas
=yes ;;
1668 d30v-
*-*) fmt=elf bfd_gas
=yes ;;
1670 # start-sanitize-sky
1671 dvp-
*-*) fmt=elf bfd_gas
=yes install_tooldir
= ;;
1674 fr30-
*-*) fmt=elf bfd_gas
=yes ;;
1676 hppa-
*-*elf
*) fmt=elf em
=hppa
;;
1677 hppa-
*-lites*) fmt=elf em
=hppa
;;
1678 hppa-
*-osf*) fmt=som em
=hppa
;;
1679 hppa-
*-rtems*) fmt=elf em
=hppa
;;
1680 hppa-
*-hpux*) fmt=som em
=hppa
;;
1681 hppa-
*-mpeix*) fmt=som em
=hppa
;;
1682 hppa-
*-bsd*) fmt=som em
=hppa
;;
1683 hppa-
*-hiux*) fmt=som em
=hppa
;;
1685 h8300-
*-coff) fmt=coff
;;
1687 i386-ibm-aix
*) fmt=coff em
=i386aix
;;
1688 i386-sequent-bsd
*) fmt=aout em
=dynix bfd_gas
=yes ;;
1689 i386-
*-beospe*) fmt=coff em
=pe bfd_gas
=yes ;;
1690 i386-
*-beoself* | i386-
*-beos*) fmt=elf bfd_gas
=yes ;;
1691 i386-
*-bsd*) fmt=aout em
=386bsd
;;
1692 i386-
*-netbsd0.8
) fmt=aout em
=386bsd
;;
1693 i386-
*-netbsd*) fmt=aout em
=nbsd bfd_gas
=yes;;
1694 i386-
*-openbsd*) fmt=aout em
=nbsd bfd_gas
=yes;;
1695 i386-
*-linux*aout
* | i386-
*-linuxoldld) fmt=aout em
=linux
;;
1696 i386-
*-linux*coff
*) fmt=coff em
=linux
;;
1697 i386-
*-linux-gnu*) fmt=elf em
=linux bfd_gas
=yes ;;
1698 i386-
*-lynxos*) fmt=coff em
=lynx
;;
1699 i386-
*-sysv4* | i386-
*-solaris* | i386-
*-elf)
1700 fmt=elf bfd_gas
=yes ;;
1701 i386-
*-freebsdelf*) fmt=elf bfd_gas
=yes ;;
1702 i386-
*-freebsd*) fmt=aout em
=386bsd
;;
1703 i386-
*-coff | i386-
*-sysv* | i386-
*-sco3.2v5
*coff | i386-
*-isc*)
1705 i386-
*-sco3.2v5
*) fmt=elf
1706 if test ${this_target} = $target; then
1707 cat >> confdefs.h
<<\EOF
1713 i386-
*-sco3.2
*) fmt=coff
;;
1714 i386-
*-vsta) fmt=aout
;;
1715 i386-
*-msdosdjgpp* | i386-
*-go32* | i386-go32-rtems
*)
1717 i386-
*-rtems*) fmt=coff
;;
1718 i386-
*-gnu*) fmt=elf
;;
1720 fmt=aout em
=mach bfd_gas
=yes ;;
1721 i386-
*-msdos*) fmt=aout
;;
1722 i386-
*-moss*) fmt=elf
;;
1723 i386-
*-pe) fmt=coff em
=pe
;;
1724 i386-
*-cygwin*) fmt=coff em
=pe bfd_gas
=yes ;;
1725 i386-
*-mingw32*) fmt=coff em
=pe bfd_gas
=yes ;;
1726 i386-
*-*nt
*) fmt=coff em
=pe
;;
1727 i960-
*-bout) fmt=bout
;;
1728 i960-
*-coff) fmt=coff em
=ic960
;;
1729 i960-
*-rtems*) fmt=coff em
=ic960
;;
1730 i960-
*-nindy*) fmt=bout
;;
1731 i960-
*-vxworks4*) fmt=bout
;;
1732 i960-
*-vxworks5.0
) fmt=bout
;;
1733 i960-
*-vxworks5.
*) fmt=coff em
=ic960
;;
1734 i960-
*-vxworks*) fmt=bout
;;
1736 m32r-
*-*) fmt=elf bfd_gas
=yes ;;
1738 m68k-
*-vxworks* | m68k-ericsson-ose | m68k-
*-sunos*)
1740 m68k-motorola-sysv
*) fmt=coff em
=delta
;;
1741 m68k-bull-sysv3
*) fmt=coff em
=dpx2
;;
1742 m68k-apollo-
*) fmt=coff em
=apollo
;;
1743 m68k-
*-sysv4*) # must be before -sysv*
1745 m68k-
*-elf*) fmt=elf
;;
1746 m68k-
*-coff | m68k-
*-sysv* | m68k-
*-rtems*)
1748 m68k-
*-hpux*) fmt=hp300 em
=hp300
;;
1749 m68k-
*-linux*aout
*) fmt=aout em
=linux
;;
1750 m68k-
*-linux-gnu*) fmt=elf em
=linux
;;
1751 m68k-
*-gnu*) fmt=elf
;;
1752 m68k-
*-lynxos*) fmt=coff em
=lynx
;;
1753 m68k-
*-netbsd*) fmt=aout em
=nbsd bfd_gas
=yes ;;
1754 m68k-
*-openbsd*) fmt=aout em
=nbsd bfd_gas
=yes ;;
1755 m68k-apple-aux
*) fmt=coff em
=aux
;;
1756 m68k-
*-psos*) fmt=elf em
=psos
;;
1758 m88k-motorola-sysv3
*) fmt=coff em
=delt88
;;
1759 m88k-
*-coff*) fmt=coff
;;
1761 # don't change em like *-*-bsd does
1762 mips-dec-netbsd
*) fmt=elf endian
=little
;;
1763 mips-dec-openbsd
*) fmt=elf endian
=little
;;
1764 mips-dec-bsd
*) fmt=aout endian
=little
;;
1765 mips-sony-bsd
*) fmt=ecoff
;;
1766 mips-
*-bsd*) { echo "configure: error: Unknown vendor for mips-bsd configuration." 1>&2; exit 1; } ;;
1767 mips-
*-ultrix*) fmt=ecoff endian
=little
;;
1768 mips-
*-osf*) fmt=ecoff endian
=little
;;
1769 mips-
*-ecoff*) fmt=ecoff
;;
1770 mips-
*-ecoff*) fmt=ecoff
;;
1771 mips-
*-irix6*) fmt=elf
;;
1772 mips-
*-irix5*) fmt=elf
;;
1773 mips-
*-irix*) fmt=ecoff
;;
1774 mips-
*-lnews*) fmt=ecoff em
=lnews
;;
1775 mips-
*-riscos*) fmt=ecoff
;;
1776 mips-
*-sysv*) fmt=ecoff
;;
1777 mips-
*-elf* | mips-
*-rtems* | mips-
*-linux-gnu* | mips-
*-gnu* | mips-
*-openbsd*)
1779 mn10200-
*-*) fmt=elf bfd_gas
=yes ;;
1780 mn10300-
*-*) fmt=elf bfd_gas
=yes ;;
1781 ppc-
*-pe | ppc-
*-cygwin* | ppc-
*-winnt*)
1783 ppc-
*-aix*) fmt=coff
;;
1784 ppc-
*-beos*) fmt=coff
;;
1785 ppc-
*-*bsd
* | ppc-
*-elf* | ppc-
*-eabi* | ppc-
*-sysv4*)
1787 ppc-
*-linux-gnu*) fmt=elf
1790 *) { echo "configure: error: GNU/Linux must be configured big endian" 1>&2; exit 1; } ;;
1793 ppc-
*-solaris*) fmt=elf
1794 if test ${this_target} = $target; then
1795 cat >> confdefs.h
<<\EOF
1796 #define TARGET_SOLARIS_COMMENT 1
1800 if test x
${endian} = xbig
; then
1801 { echo "configure: error: Solaris must be configured little endian" 1>&2; exit 1; }
1804 ppc-
*-rtems*) fmt=elf
;;
1805 ppc-
*-macos* | ppc-
*-mpw*)
1806 fmt=coff em
=macos
;;
1807 ppc-
*-netware*) fmt=elf em
=ppcnw
;;
1809 sh-
*-elf*) fmt=elf
;;
1810 sh-
*-coff*) fmt=coff
;;
1811 sh-
*-rtems*) fmt=coff
;;
1813 ns32k-pc532-mach
* | ns32k-pc532-ux
*) fmt=aout em
=pc532mach
;;
1814 ns32k-pc532-netbsd
* | ns32k-pc532-lites
*) fmt=aout em
=nbsd532
;;
1815 ns32k-pc532-openbsd
*) fmt=aout em
=nbsd532
;;
1817 sparc-
*-rtems*) fmt=aout
;;
1818 sparc-
*-sunos4*) fmt=aout em
=sun3
;;
1819 sparc-
*-aout | sparc
*-*-vxworks*)
1820 fmt=aout em
=sparcaout
;;
1821 sparc-
*-coff) fmt=coff
;;
1822 sparc-
*-linux*aout
*) fmt=aout em
=linux
;;
1823 sparc-
*-linux-gnu*) fmt=elf em
=linux
;;
1824 sparc-
*-lynxos*) fmt=coff em
=lynx
;;
1825 sparc-fujitsu-none
) fmt=aout
;;
1826 sparc-
*-elf | sparc-
*-sysv4* | sparc-
*-solaris*)
1828 sparc-
*-netbsd*) fmt=aout em
=nbsd
;;
1829 sparc-
*-openbsd*) fmt=aout em
=nbsd
;;
1831 strongarm-
*-coff) fmt=coff
;;
1832 strongarm-
*-elf) fmt=elf
;;
1834 tic30-
*-*aout
*) fmt=aout bfd_gas
=yes ;;
1835 tic30-
*-*coff
*) fmt=coff bfd_gas
=yes ;;
1836 # start-sanitize-tic80
1837 tic80-
*-*) fmt=coff
;;
1838 # end-sanitize-tic80
1840 v850-
*-*) fmt=elf bfd_gas
=yes ;;
1841 v850e-
*-*) fmt=elf bfd_gas
=yes ;;
1842 v850ea-
*-*) fmt=elf bfd_gas
=yes ;;
1844 vax-
*-bsd* | vax-
*-ultrix*)
1846 vax-
*-vms) fmt=vms
;;
1848 z8k-
*-coff | z8k-
*-sim)
1851 w65-
*-*) fmt=coff
;;
1853 *-*-aout |
*-*-scout)
1859 *-*-generic) fmt=generic
;;
1860 *-*-xray |
*-*-hms) fmt=coff
;;
1861 *-*-sim) fmt=coff
;;
1862 *-*-elf |
*-*-sysv4* |
*-*-solaris*)
1863 echo "configure: warning: GAS support for ${generic_target} is incomplete." 1>&2
1865 *-*-vxworks) fmt=aout
;;
1866 *-*-netware) fmt=elf
;;
1869 if test ${this_target} = $target ; then
1870 if test x
${endian} = xbig
; then
1871 cat >> confdefs.h
<<\EOF
1872 #define TARGET_BYTES_BIG_ENDIAN 1
1875 elif test x
${endian} = xlittle
; then
1876 cat >> confdefs.h
<<\EOF
1877 #define TARGET_BYTES_BIG_ENDIAN 0
1883 case ${cpu_type}-${fmt} in
1884 alpha
*-*) bfd_gas
=yes ;;
1885 arm-
*) bfd_gas
=yes ;;
1887 # i386-aout) bfd_gas=preferred ;;
1888 mips-
*) bfd_gas
=yes ;;
1889 ns32k-
*) bfd_gas
=yes ;;
1890 ppc-
*) bfd_gas
=yes ;;
1891 sparc-
*) bfd_gas
=yes ;;
1892 strongarm-
*) bfd_gas
=yes ;;
1893 *-elf) bfd_gas
=yes ;;
1894 *-ecoff) bfd_gas
=yes ;;
1895 *-som) bfd_gas
=yes ;;
1899 # Other random stuff.
1901 # Do we need the opcodes library?
1909 case "${enable_shared}" in
1910 yes) shared_opcodes
=true
;;
1911 *opcodes
*) shared_opcodes
=true
;;
1912 *) shared_opcodes
=false
;;
1914 if test "${shared_opcodes}" = "true"; then
1915 # A shared libopcodes must be linked against libbfd.
1921 # Any other special object files needed ?
1928 case ${extra_objects} in
1930 *) extra_objects
="$extra_objects m68k-parse.o" ;;
1935 echo ${extra_objects} |
grep -s "itbl-parse.o"
1936 if test $?
-ne 0 ; then
1937 extra_objects
="$extra_objects itbl-parse.o"
1940 echo ${extra_objects} |
grep -s "itbl-lex.o"
1941 if test $?
-ne 0 ; then
1942 extra_objects
="$extra_objects itbl-lex.o"
1945 echo ${extra_objects} |
grep -s "itbl-ops.o"
1946 if test $?
-ne 0 ; then
1947 extra_objects
="$extra_objects itbl-ops.o"
1952 if test $this_target = $target ; then
1953 cat >> confdefs.h
<<EOF
1954 #define DEFAULT_ARCH "${arch}"
1964 if test $using_cgen = yes ; then
1965 case "x${extra_objects}" in
1967 *) extra_objects
="$extra_objects cgen.o" ;;
1971 # See if we really can support this configuration with the emulation code.
1973 if test $this_target = $target ; then
1974 primary_bfd_gas
=$bfd_gas
1978 if test $bfd_gas = no
; then
1979 # Can't support other configurations this way.
1982 elif test $bfd_gas = no
; then
1983 # Can't support this configuration.
1987 # From target name and format, produce a list of supported emulations.
1989 case ${generic_target}-${fmt} in
1990 mips-
*-irix5*-*) emulation
="mipsbelf mipslelf mipself mipsbecoff mipslecoff mipsecoff" ;;
1991 mips-
*-linux-gnu*-*) case "$endian" in
1992 big
) emulation
="mipsbelf mipslelf mipself mipsbecoff mipslecoff mipsecoff" ;;
1993 *) emulation
="mipslelf mipsbelf mipself mipslecoff mipsbecoff mipsecoff" ;;
1995 mips-
*-lnews*-ecoff) ;;
1996 mips-
*-*-ecoff) case "$endian" in
1997 big
) emulation
="mipsbecoff mipslecoff mipsecoff" ;;
1998 *) emulation
="mipslecoff mipsbecoff mipsecoff" ;;
2000 mips-
*-*-elf) case "$endian" in
2001 big
) emulation
="mipsbelf mipslelf mipself" ;;
2002 *) emulation
="mipslelf mipsbelf mipself" ;;
2003 # Uncommenting the next line will turn on support for i386 COFF
2004 # in any i386 ELF configuration. This probably doesn't work
2006 # i386-*-*-elf) emulation="i386coff i386elf" ;;
2010 emulations
="$emulations $emulation"
2014 # Assign floating point type. Most processors with FP support
2015 # IEEE FP. On those that don't support FP at all, usually IEEE
2017 case ${target_cpu} in
2018 vax | tahoe
) atof
=${target_cpu} ;;
2022 case "${obj_format}" in
2023 "") { echo "configure: error: GAS does not know what format to use for target ${target}" 1>&2; exit 1; } ;;
2026 # Unfortunately the cpu in cpu-opc.h file isn't always $(TARGET_CPU).
2028 if test $using_cgen = yes ; then
2029 case ${target_cpu} in
2030 *) cgen_cpu_prefix
=${target_cpu} ;;
2033 cat >> confdefs.h
<<\EOF
2034 #define USING_CGEN 1
2040 if test ! -r ${srcdir}/config
/tc-
${target_cpu_type}.c
; then
2041 { echo "configure: error: GAS does not support target CPU ${target_cpu_type}" 1>&2; exit 1; }
2044 if test ! -r ${srcdir}/config
/obj-
${obj_format}.c
; then
2045 { echo "configure: error: GAS does not have support for object file format ${obj_format}" 1>&2; exit 1; }
2048 case ${user_bfd_gas}-${primary_bfd_gas} in
2050 # We didn't override user's choice.
2053 echo "configure: warning: Use of BFD is required for ${target}; overriding config options." 1>&2
2065 # User specified nothing.
2069 # Some COFF configurations want these random other flags set.
2070 case ${obj_format} in
2072 case ${target_cpu_type} in
2073 i386
) cat >> confdefs.h
<<\EOF
2077 m68k
) cat >> confdefs.h
<<\EOF
2081 m88k
) cat >> confdefs.h
<<\EOF
2089 # Getting this done right is going to be a bitch. Each configuration specified
2090 # with --enable-targets=... should be checked for environment, format, cpu, and
2093 # For each configuration, the necessary object file support code must be linked
2094 # in. This might be only one, it might be up to four. The necessary emulation
2095 # code needs to be provided, too.
2097 # And then there's "--enable-targets=all"....
2099 # For now, just always do it for MIPS ELF or ECOFF configurations. Sigh.
2101 formats
="${obj_format}"
2104 _gas_uniq_list
="$emulations"
2105 _gas_uniq_newlist
=""
2106 for _gas_uniq_i
in _gas_uniq_dummy
$_gas_uniq_list ; do
2107 case $_gas_uniq_i in
2109 *) case " $_gas_uniq_newlist " in
2110 *" $_gas_uniq_i "*) ;;
2111 *) _gas_uniq_newlist
="$_gas_uniq_newlist $_gas_uniq_i" ;;
2115 emulations
=$_gas_uniq_newlist
2117 for em
in .
$emulations ; do
2120 mipsbelf | mipslelf
)
2121 fmt=elf
file=mipself
;;
2122 mipsbecoff | mipslecoff
)
2123 fmt=ecoff
file=mipsecoff
;;
2125 fmt=coff
file=i386coff
;;
2127 fmt=elf
file=i386elf
;;
2129 formats
="$formats $fmt"
2130 emfiles
="$emfiles e-$file.o"
2131 EMULATIONS
="$EMULATIONS &$em,"
2133 _gas_uniq_list
="$formats"
2134 _gas_uniq_newlist
=""
2135 for _gas_uniq_i
in _gas_uniq_dummy
$_gas_uniq_list ; do
2136 case $_gas_uniq_i in
2138 *) case " $_gas_uniq_newlist " in
2139 *" $_gas_uniq_i "*) ;;
2140 *) _gas_uniq_newlist
="$_gas_uniq_newlist $_gas_uniq_i" ;;
2144 formats
=$_gas_uniq_newlist
2146 _gas_uniq_list
="$emfiles"
2147 _gas_uniq_newlist
=""
2148 for _gas_uniq_i
in _gas_uniq_dummy
$_gas_uniq_list ; do
2149 case $_gas_uniq_i in
2151 *) case " $_gas_uniq_newlist " in
2152 *" $_gas_uniq_i "*) ;;
2153 *) _gas_uniq_newlist
="$_gas_uniq_newlist $_gas_uniq_i" ;;
2157 emfiles
=$_gas_uniq_newlist
2159 if test `set . $formats ; shift ; echo $#` -gt 1 ; then
2160 for fmt in $formats ; do
2162 aout
) cat >> confdefs.h
<<\EOF
2163 #define OBJ_MAYBE_AOUT 1
2166 bout
) cat >> confdefs.h
<<\EOF
2167 #define OBJ_MAYBE_BOUT 1
2170 coff
) cat >> confdefs.h
<<\EOF
2171 #define OBJ_MAYBE_COFF 1
2174 ecoff
) cat >> confdefs.h
<<\EOF
2175 #define OBJ_MAYBE_ECOFF 1
2178 elf
) cat >> confdefs.h
<<\EOF
2179 #define OBJ_MAYBE_ELF 1
2182 generic
) cat >> confdefs.h
<<\EOF
2183 #define OBJ_MAYBE_GENERIC 1
2186 hp300
) cat >> confdefs.h
<<\EOF
2187 #define OBJ_MAYBE_HP300 1
2190 ieee
) cat >> confdefs.h
<<\EOF
2191 #define OBJ_MAYBE_IEEE 1
2194 som
) cat >> confdefs.h
<<\EOF
2195 #define OBJ_MAYBE_SOM 1
2198 vms
) cat >> confdefs.h
<<\EOF
2199 #define OBJ_MAYBE_VMS 1
2203 extra_objects
="$extra_objects obj-$fmt.o"
2207 if test `set . $emfiles ; shift ; echo $#` -gt 0 ; then
2209 extra_objects
="$extra_objects $emfiles"
2210 DEFAULT_EMULATION
=`set . $emulations ; echo $2`
2211 cat >> confdefs.h
<<\EOF
2212 #define USE_EMULATIONS 1
2217 cat >> confdefs.h
<<EOF
2218 #define EMULATIONS $EMULATIONS
2221 cat >> confdefs.h
<<EOF
2222 #define DEFAULT_EMULATION "$DEFAULT_EMULATION"
2226 case ${primary_bfd_gas}-${target_cpu_type}-${obj_format} in
2227 yes-
*-coff) need_bfd
=yes ;;
2228 no-
*-coff) need_bfd
=yes
2229 cat >> confdefs.h
<<\EOF
2230 #define MANY_SEGMENTS 1
2235 reject_dev_configs
=yes
2237 case ${reject_dev_configs}-${dev} in
2239 { echo "configure: error: GAS does not support the ${generic_target} configuration." 1>&2; exit 1; }
2249 case "${primary_bfd_gas}" in
2250 yes) cat >> confdefs.h
<<\EOF
2251 #define BFD_ASSEMBLER 1
2257 # do we need the opcodes library?
2258 case "${need_opcodes}" in
2260 OPCODES_LIB
=..
/opcodes
/libopcodes.la
2264 case "${need_bfd}" in
2266 BFDLIB
=..
/bfd
/libbfd.la
2267 ALL_OBJ_DEPS
="$ALL_OBJ_DEPS ../bfd/bfd.h"
2276 cat >> confdefs.h
<<EOF
2277 #define TARGET_ALIAS "${target_alias}"
2280 cat >> confdefs.h
<<EOF
2281 #define TARGET_CANONICAL "${target}"
2284 cat >> confdefs.h
<<EOF
2285 #define TARGET_CPU "${target_cpu}"
2288 cat >> confdefs.h
<<EOF
2289 #define TARGET_VENDOR "${target_vendor}"
2292 cat >> confdefs.h
<<EOF
2293 #define TARGET_OS "${target_os}"
2297 # Extract the first word of "gcc", so it can be a program name with args.
2298 set dummy gcc
; ac_word
=$2
2299 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2300 echo "configure:2301: checking for $ac_word" >&5
2301 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2302 echo $ac_n "(cached) $ac_c" 1>&6
2304 if test -n "$CC"; then
2305 ac_cv_prog_CC
="$CC" # Let the user override the test.
2307 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2309 for ac_dir
in $ac_dummy; do
2310 test -z "$ac_dir" && ac_dir
=.
2311 if test -f $ac_dir/$ac_word; then
2320 if test -n "$CC"; then
2321 echo "$ac_t""$CC" 1>&6
2323 echo "$ac_t""no" 1>&6
2326 if test -z "$CC"; then
2327 # Extract the first word of "cc", so it can be a program name with args.
2328 set dummy cc
; ac_word
=$2
2329 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2330 echo "configure:2331: checking for $ac_word" >&5
2331 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2332 echo $ac_n "(cached) $ac_c" 1>&6
2334 if test -n "$CC"; then
2335 ac_cv_prog_CC
="$CC" # Let the user override the test.
2337 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2340 for ac_dir
in $ac_dummy; do
2341 test -z "$ac_dir" && ac_dir
=.
2342 if test -f $ac_dir/$ac_word; then
2343 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2344 ac_prog_rejected
=yes
2352 if test $ac_prog_rejected = yes; then
2353 # We found a bogon in the path, so make sure we never use it.
2354 set dummy
$ac_cv_prog_CC
2356 if test $# -gt 0; then
2357 # We chose a different compiler from the bogus one.
2358 # However, it has the same basename, so the bogon will be chosen
2359 # first if we set CC to just the basename; use the full file name.
2361 set dummy
"$ac_dir/$ac_word" "$@"
2369 if test -n "$CC"; then
2370 echo "$ac_t""$CC" 1>&6
2372 echo "$ac_t""no" 1>&6
2375 if test -z "$CC"; then
2376 case "`uname -s`" in
2378 # Extract the first word of "cl", so it can be a program name with args.
2379 set dummy cl
; ac_word
=$2
2380 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2381 echo "configure:2382: checking for $ac_word" >&5
2382 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2383 echo $ac_n "(cached) $ac_c" 1>&6
2385 if test -n "$CC"; then
2386 ac_cv_prog_CC
="$CC" # Let the user override the test.
2388 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2390 for ac_dir
in $ac_dummy; do
2391 test -z "$ac_dir" && ac_dir
=.
2392 if test -f $ac_dir/$ac_word; then
2401 if test -n "$CC"; then
2402 echo "$ac_t""$CC" 1>&6
2404 echo "$ac_t""no" 1>&6
2409 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2412 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2413 echo "configure:2414: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
2416 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2417 ac_cpp
='$CPP $CPPFLAGS'
2418 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2419 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2420 cross_compiling
=$ac_cv_prog_cc_cross
2422 cat > conftest.
$ac_ext << EOF
2424 #line 2425 "configure"
2425 #include "confdefs.h"
2429 if { (eval echo configure
:2430: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2430 ac_cv_prog_cc_works
=yes
2431 # If we can't run a trivial program, we are probably using a cross compiler.
2432 if (.
/conftest
; exit) 2>/dev
/null
; then
2433 ac_cv_prog_cc_cross
=no
2435 ac_cv_prog_cc_cross
=yes
2438 echo "configure: failed program was:" >&5
2439 cat conftest.
$ac_ext >&5
2440 ac_cv_prog_cc_works
=no
2444 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2445 ac_cpp
='$CPP $CPPFLAGS'
2446 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2447 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2448 cross_compiling
=$ac_cv_prog_cc_cross
2450 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2451 if test $ac_cv_prog_cc_works = no
; then
2452 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2454 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2455 echo "configure:2456: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2456 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2457 cross_compiling
=$ac_cv_prog_cc_cross
2459 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2460 echo "configure:2461: checking whether we are using GNU C" >&5
2461 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
2462 echo $ac_n "(cached) $ac_c" 1>&6
2464 cat > conftest.c
<<EOF
2469 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:2470: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
2476 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2478 if test $ac_cv_prog_gcc = yes; then
2484 ac_test_CFLAGS
="${CFLAGS+set}"
2485 ac_save_CFLAGS
="$CFLAGS"
2487 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2488 echo "configure:2489: checking whether ${CC-cc} accepts -g" >&5
2489 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2490 echo $ac_n "(cached) $ac_c" 1>&6
2492 echo 'void f(){}' > conftest.c
2493 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2502 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2503 if test "$ac_test_CFLAGS" = set; then
2504 CFLAGS
="$ac_save_CFLAGS"
2505 elif test $ac_cv_prog_cc_g = yes; then
2506 if test "$GCC" = yes; then
2512 if test "$GCC" = yes; then
2520 for ac_prog
in 'bison -y' byacc
2522 # Extract the first word of "$ac_prog", so it can be a program name with args.
2523 set dummy
$ac_prog; ac_word
=$2
2524 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2525 echo "configure:2526: checking for $ac_word" >&5
2526 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
2527 echo $ac_n "(cached) $ac_c" 1>&6
2529 if test -n "$YACC"; then
2530 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
2532 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2534 for ac_dir
in $ac_dummy; do
2535 test -z "$ac_dir" && ac_dir
=.
2536 if test -f $ac_dir/$ac_word; then
2537 ac_cv_prog_YACC
="$ac_prog"
2544 YACC
="$ac_cv_prog_YACC"
2545 if test -n "$YACC"; then
2546 echo "$ac_t""$YACC" 1>&6
2548 echo "$ac_t""no" 1>&6
2551 test -n "$YACC" && break
2553 test -n "$YACC" || YACC
="yacc"
2555 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2556 echo "configure:2557: checking how to run the C preprocessor" >&5
2557 # On Suns, sometimes $CPP names a directory.
2558 if test -n "$CPP" && test -d "$CPP"; then
2561 if test -z "$CPP"; then
2562 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2563 echo $ac_n "(cached) $ac_c" 1>&6
2565 # This must be in double quotes, not single quotes, because CPP may get
2566 # substituted into the Makefile and "${CC-cc}" will confuse make.
2568 # On the NeXT, cc -E runs the code through the compiler's parser,
2569 # not just through cpp.
2570 cat > conftest.
$ac_ext <<EOF
2571 #line 2572 "configure"
2572 #include "confdefs.h"
2576 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2577 { (eval echo configure
:2578: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2578 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2579 if test -z "$ac_err"; then
2583 echo "configure: failed program was:" >&5
2584 cat conftest.
$ac_ext >&5
2586 CPP
="${CC-cc} -E -traditional-cpp"
2587 cat > conftest.
$ac_ext <<EOF
2588 #line 2589 "configure"
2589 #include "confdefs.h"
2593 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2594 { (eval echo configure
:2595: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2595 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2596 if test -z "$ac_err"; then
2600 echo "configure: failed program was:" >&5
2601 cat conftest.
$ac_ext >&5
2603 CPP
="${CC-cc} -nologo -E"
2604 cat > conftest.
$ac_ext <<EOF
2605 #line 2606 "configure"
2606 #include "confdefs.h"
2610 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2611 { (eval echo configure
:2612: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2612 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2613 if test -z "$ac_err"; then
2617 echo "configure: failed program was:" >&5
2618 cat conftest.
$ac_ext >&5
2627 ac_cv_prog_CPP
="$CPP"
2629 CPP
="$ac_cv_prog_CPP"
2631 ac_cv_prog_CPP
="$CPP"
2633 echo "$ac_t""$CPP" 1>&6
2635 missing_dir
=`cd $ac_aux_dir && pwd`
2636 for ac_prog
in flex
lex
2638 # Extract the first word of "$ac_prog", so it can be a program name with args.
2639 set dummy
$ac_prog; ac_word
=$2
2640 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2641 echo "configure:2642: checking for $ac_word" >&5
2642 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
2643 echo $ac_n "(cached) $ac_c" 1>&6
2645 if test -n "$LEX"; then
2646 ac_cv_prog_LEX
="$LEX" # Let the user override the test.
2648 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2650 for ac_dir
in $ac_dummy; do
2651 test -z "$ac_dir" && ac_dir
=.
2652 if test -f $ac_dir/$ac_word; then
2653 ac_cv_prog_LEX
="$ac_prog"
2660 LEX
="$ac_cv_prog_LEX"
2661 if test -n "$LEX"; then
2662 echo "$ac_t""$LEX" 1>&6
2664 echo "$ac_t""no" 1>&6
2667 test -n "$LEX" && break
2669 test -n "$LEX" || LEX
=""$missing_dir/missing flex
""
2671 # Extract the first word of "flex", so it can be a program name with args.
2672 set dummy flex
; ac_word
=$2
2673 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2674 echo "configure:2675: checking for $ac_word" >&5
2675 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
2676 echo $ac_n "(cached) $ac_c" 1>&6
2678 if test -n "$LEX"; then
2679 ac_cv_prog_LEX
="$LEX" # Let the user override the test.
2681 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2683 for ac_dir
in $ac_dummy; do
2684 test -z "$ac_dir" && ac_dir
=.
2685 if test -f $ac_dir/$ac_word; then
2686 ac_cv_prog_LEX
="flex"
2691 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX
="lex"
2694 LEX
="$ac_cv_prog_LEX"
2695 if test -n "$LEX"; then
2696 echo "$ac_t""$LEX" 1>&6
2698 echo "$ac_t""no" 1>&6
2701 if test -z "$LEXLIB"
2707 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
2708 echo "configure:2709: checking for yywrap in -l$ac_lib" >&5
2709 ac_lib_var
=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
2710 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2711 echo $ac_n "(cached) $ac_c" 1>&6
2713 ac_save_LIBS
="$LIBS"
2714 LIBS
="-l$ac_lib $LIBS"
2715 cat > conftest.
$ac_ext <<EOF
2716 #line 2717 "configure"
2717 #include "confdefs.h"
2718 /* Override any gcc2 internal prototype to avoid an error. */
2719 /* We use char because int might match the return type of a gcc2
2720 builtin and then its argument prototype would still apply. */
2727 if { (eval echo configure
:2728: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2729 eval "ac_cv_lib_$ac_lib_var=yes"
2731 echo "configure: failed program was:" >&5
2732 cat conftest.
$ac_ext >&5
2734 eval "ac_cv_lib_$ac_lib_var=no"
2737 LIBS
="$ac_save_LIBS"
2740 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2741 echo "$ac_t""yes" 1>&6
2744 echo "$ac_t""no" 1>&6
2749 echo $ac_n "checking lex output file root""... $ac_c" 1>&6
2750 echo "configure:2751: checking lex output file root" >&5
2751 if eval "test \"`echo '$''{'ac_cv_prog_lex_root'+set}'`\" = set"; then
2752 echo $ac_n "(cached) $ac_c" 1>&6
2754 # The minimal lex program is just a single line: %%. But some broken lexes
2755 # (Solaris, I think it was) want two %% lines, so accommodate them.
2758 if test -f lex.yy.c
; then
2759 ac_cv_prog_lex_root
=lex.yy
2760 elif test -f lexyy.c
; then
2761 ac_cv_prog_lex_root
=lexyy
2763 { echo "configure: error: cannot find output from $LEX; giving up" 1>&2; exit 1; }
2767 echo "$ac_t""$ac_cv_prog_lex_root" 1>&6
2768 LEX_OUTPUT_ROOT
=$ac_cv_prog_lex_root
2770 echo $ac_n "checking whether yytext is a pointer""... $ac_c" 1>&6
2771 echo "configure:2772: checking whether yytext is a pointer" >&5
2772 if eval "test \"`echo '$''{'ac_cv_prog_lex_yytext_pointer'+set}'`\" = set"; then
2773 echo $ac_n "(cached) $ac_c" 1>&6
2775 # POSIX says lex can declare yytext either as a pointer or an array; the
2776 # default is implementation-dependent. Figure out which it is, since
2777 # not all implementations provide the %pointer and %array declarations.
2778 ac_cv_prog_lex_yytext_pointer
=no
2779 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
2780 ac_save_LIBS
="$LIBS"
2781 LIBS
="$LIBS $LEXLIB"
2782 cat > conftest.
$ac_ext <<EOF
2783 #line 2784 "configure"
2784 #include "confdefs.h"
2785 `cat $LEX_OUTPUT_ROOT.c`
2790 if { (eval echo configure
:2791: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2792 ac_cv_prog_lex_yytext_pointer
=yes
2794 echo "configure: failed program was:" >&5
2795 cat conftest.
$ac_ext >&5
2798 LIBS
="$ac_save_LIBS"
2799 rm -f "${LEX_OUTPUT_ROOT}.c"
2803 echo "$ac_t""$ac_cv_prog_lex_yytext_pointer" 1>&6
2804 if test $ac_cv_prog_lex_yytext_pointer = yes; then
2805 cat >> confdefs.h
<<\EOF
2806 #define YYTEXT_POINTER 1
2813 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
2814 echo "configure:2815: checking for POSIXized ISC" >&5
2815 if test -d /etc
/conf
/kconfig.d
&&
2816 grep _POSIX_VERSION
/usr
/include
/sys
/unistd.h
>/dev
/null
2>&1
2818 echo "$ac_t""yes" 1>&6
2819 ISC
=yes # If later tests want to check for ISC.
2820 cat >> confdefs.h
<<\EOF
2821 #define _POSIX_SOURCE 1
2824 if test "$GCC" = yes; then
2830 echo "$ac_t""no" 1>&6
2834 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2835 echo "configure:2836: checking for ANSI C header files" >&5
2836 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2837 echo $ac_n "(cached) $ac_c" 1>&6
2839 cat > conftest.
$ac_ext <<EOF
2840 #line 2841 "configure"
2841 #include "confdefs.h"
2847 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2848 { (eval echo configure
:2849: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2849 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2850 if test -z "$ac_err"; then
2852 ac_cv_header_stdc
=yes
2855 echo "configure: failed program was:" >&5
2856 cat conftest.
$ac_ext >&5
2858 ac_cv_header_stdc
=no
2862 if test $ac_cv_header_stdc = yes; then
2863 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2864 cat > conftest.
$ac_ext <<EOF
2865 #line 2866 "configure"
2866 #include "confdefs.h"
2869 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2870 egrep "memchr" >/dev
/null
2>&1; then
2874 ac_cv_header_stdc
=no
2880 if test $ac_cv_header_stdc = yes; then
2881 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2882 cat > conftest.
$ac_ext <<EOF
2883 #line 2884 "configure"
2884 #include "confdefs.h"
2887 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2888 egrep "free" >/dev
/null
2>&1; then
2892 ac_cv_header_stdc
=no
2898 if test $ac_cv_header_stdc = yes; then
2899 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2900 if test "$cross_compiling" = yes; then
2903 cat > conftest.
$ac_ext <<EOF
2904 #line 2905 "configure"
2905 #include "confdefs.h"
2907 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2908 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2909 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2910 int main () { int i; for (i = 0; i < 256; i++)
2911 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2915 if { (eval echo configure
:2916: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2919 echo "configure: failed program was:" >&5
2920 cat conftest.
$ac_ext >&5
2922 ac_cv_header_stdc
=no
2930 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2931 if test $ac_cv_header_stdc = yes; then
2932 cat >> confdefs.h
<<\EOF
2933 #define STDC_HEADERS 1
2938 echo $ac_n "checking for working const""... $ac_c" 1>&6
2939 echo "configure:2940: checking for working const" >&5
2940 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2941 echo $ac_n "(cached) $ac_c" 1>&6
2943 cat > conftest.
$ac_ext <<EOF
2944 #line 2945 "configure"
2945 #include "confdefs.h"
2949 /* Ultrix mips cc rejects this. */
2950 typedef int charset[2]; const charset x;
2951 /* SunOS 4.1.1 cc rejects this. */
2952 char const *const *ccp;
2954 /* NEC SVR4.0.2 mips cc rejects this. */
2955 struct point {int x, y;};
2956 static struct point const zero = {0,0};
2957 /* AIX XL C 1.02.0.0 rejects this.
2958 It does not let you subtract one const X* pointer from another in an arm
2959 of an if-expression whose if-part is not a constant expression */
2960 const char *g = "string";
2961 ccp = &g + (g ? g-g : 0);
2962 /* HPUX 7.0 cc rejects these. */
2965 ccp = (char const *const *) p;
2966 { /* SCO 3.2v4 cc rejects this. */
2968 char const *s = 0 ? (char *) 0 : (char const *) 0;
2972 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2974 const int *foo = &x[0];
2977 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2978 typedef const int *iptr;
2982 { /* AIX XL C 1.02.0.0 rejects this saying
2983 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2984 struct s { int j; const int *ap[3]; };
2985 struct s *b; b->j = 5;
2987 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2993 if { (eval echo configure
:2994: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2997 echo "configure: failed program was:" >&5
2998 cat conftest.
$ac_ext >&5
3005 echo "$ac_t""$ac_cv_c_const" 1>&6
3006 if test $ac_cv_c_const = no
; then
3007 cat >> confdefs.h
<<\EOF
3013 echo $ac_n "checking for inline""... $ac_c" 1>&6
3014 echo "configure:3015: checking for inline" >&5
3015 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
3016 echo $ac_n "(cached) $ac_c" 1>&6
3019 for ac_kw
in inline __inline__ __inline
; do
3020 cat > conftest.
$ac_ext <<EOF
3021 #line 3022 "configure"
3022 #include "confdefs.h"
3028 if { (eval echo configure
:3029: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3030 ac_cv_c_inline
=$ac_kw; break
3032 echo "configure: failed program was:" >&5
3033 cat conftest.
$ac_ext >&5
3040 echo "$ac_t""$ac_cv_c_inline" 1>&6
3041 case "$ac_cv_c_inline" in
3043 no
) cat >> confdefs.h
<<\EOF
3047 *) cat >> confdefs.h
<<EOF
3048 #define inline $ac_cv_c_inline
3053 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3054 echo "configure:3055: checking for off_t" >&5
3055 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
3056 echo $ac_n "(cached) $ac_c" 1>&6
3058 cat > conftest.
$ac_ext <<EOF
3059 #line 3060 "configure"
3060 #include "confdefs.h"
3061 #include <sys/types.h>
3067 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3068 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3070 ac_cv_type_off_t
=yes
3078 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3079 if test $ac_cv_type_off_t = no
; then
3080 cat >> confdefs.h
<<\EOF
3086 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3087 echo "configure:3088: checking for size_t" >&5
3088 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3089 echo $ac_n "(cached) $ac_c" 1>&6
3091 cat > conftest.
$ac_ext <<EOF
3092 #line 3093 "configure"
3093 #include "confdefs.h"
3094 #include <sys/types.h>
3100 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3101 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3103 ac_cv_type_size_t
=yes
3106 ac_cv_type_size_t
=no
3111 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3112 if test $ac_cv_type_size_t = no
; then
3113 cat >> confdefs.h
<<\EOF
3114 #define size_t unsigned
3119 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
3120 # for constant arguments. Useless!
3121 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
3122 echo "configure:3123: checking for working alloca.h" >&5
3123 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
3124 echo $ac_n "(cached) $ac_c" 1>&6
3126 cat > conftest.
$ac_ext <<EOF
3127 #line 3128 "configure"
3128 #include "confdefs.h"
3131 char *p = alloca(2 * sizeof(int));
3134 if { (eval echo configure
:3135: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3136 ac_cv_header_alloca_h
=yes
3138 echo "configure: failed program was:" >&5
3139 cat conftest.
$ac_ext >&5
3141 ac_cv_header_alloca_h
=no
3146 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
3147 if test $ac_cv_header_alloca_h = yes; then
3148 cat >> confdefs.h
<<\EOF
3149 #define HAVE_ALLOCA_H 1
3154 echo $ac_n "checking for alloca""... $ac_c" 1>&6
3155 echo "configure:3156: checking for alloca" >&5
3156 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
3157 echo $ac_n "(cached) $ac_c" 1>&6
3159 cat > conftest.
$ac_ext <<EOF
3160 #line 3161 "configure"
3161 #include "confdefs.h"
3164 # define alloca __builtin_alloca
3167 # include <malloc.h>
3168 # define alloca _alloca
3171 # include <alloca.h>
3176 # ifndef alloca /* predefined by HP cc +Olibcalls */
3185 char *p = (char *) alloca(1);
3188 if { (eval echo configure
:3189: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3190 ac_cv_func_alloca_works
=yes
3192 echo "configure: failed program was:" >&5
3193 cat conftest.
$ac_ext >&5
3195 ac_cv_func_alloca_works
=no
3200 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
3201 if test $ac_cv_func_alloca_works = yes; then
3202 cat >> confdefs.h
<<\EOF
3203 #define HAVE_ALLOCA 1
3208 if test $ac_cv_func_alloca_works = no
; then
3209 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
3210 # that cause trouble. Some versions do not even contain alloca or
3211 # contain a buggy version. If you still want to use their alloca,
3212 # use ar to extract alloca.o from them instead of compiling alloca.c.
3213 ALLOCA
=alloca.
${ac_objext}
3214 cat >> confdefs.h
<<\EOF
3219 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
3220 echo "configure:3221: checking whether alloca needs Cray hooks" >&5
3221 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
3222 echo $ac_n "(cached) $ac_c" 1>&6
3224 cat > conftest.
$ac_ext <<EOF
3225 #line 3226 "configure"
3226 #include "confdefs.h"
3227 #if defined(CRAY) && ! defined(CRAY2)
3234 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3235 egrep "webecray" >/dev
/null
2>&1; then
3246 echo "$ac_t""$ac_cv_os_cray" 1>&6
3247 if test $ac_cv_os_cray = yes; then
3248 for ac_func
in _getb67 GETB67 getb67
; do
3249 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3250 echo "configure:3251: checking for $ac_func" >&5
3251 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3252 echo $ac_n "(cached) $ac_c" 1>&6
3254 cat > conftest.
$ac_ext <<EOF
3255 #line 3256 "configure"
3256 #include "confdefs.h"
3257 /* System header to define __stub macros and hopefully few prototypes,
3258 which can conflict with char $ac_func(); below. */
3260 /* Override any gcc2 internal prototype to avoid an error. */
3261 /* We use char because int might match the return type of a gcc2
3262 builtin and then its argument prototype would still apply. */
3267 /* The GNU C library defines this for functions which it implements
3268 to always fail with ENOSYS. Some functions are actually named
3269 something starting with __ and the normal name is an alias. */
3270 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3278 if { (eval echo configure
:3279: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3280 eval "ac_cv_func_$ac_func=yes"
3282 echo "configure: failed program was:" >&5
3283 cat conftest.
$ac_ext >&5
3285 eval "ac_cv_func_$ac_func=no"
3290 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3291 echo "$ac_t""yes" 1>&6
3292 cat >> confdefs.h
<<EOF
3293 #define CRAY_STACKSEG_END $ac_func
3298 echo "$ac_t""no" 1>&6
3304 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
3305 echo "configure:3306: checking stack direction for C alloca" >&5
3306 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
3307 echo $ac_n "(cached) $ac_c" 1>&6
3309 if test "$cross_compiling" = yes; then
3310 ac_cv_c_stack_direction
=0
3312 cat > conftest.
$ac_ext <<EOF
3313 #line 3314 "configure"
3314 #include "confdefs.h"
3315 find_stack_direction ()
3317 static char *addr = 0;
3322 return find_stack_direction ();
3325 return (&dummy > addr) ? 1 : -1;
3329 exit (find_stack_direction() < 0);
3332 if { (eval echo configure
:3333: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3334 ac_cv_c_stack_direction
=1
3336 echo "configure: failed program was:" >&5
3337 cat conftest.
$ac_ext >&5
3339 ac_cv_c_stack_direction
=-1
3346 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
3347 cat >> confdefs.h
<<EOF
3348 #define STACK_DIRECTION $ac_cv_c_stack_direction
3353 for ac_hdr
in unistd.h
3355 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3356 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3357 echo "configure:3358: checking for $ac_hdr" >&5
3358 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3359 echo $ac_n "(cached) $ac_c" 1>&6
3361 cat > conftest.
$ac_ext <<EOF
3362 #line 3363 "configure"
3363 #include "confdefs.h"
3366 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3367 { (eval echo configure
:3368: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3368 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3369 if test -z "$ac_err"; then
3371 eval "ac_cv_header_$ac_safe=yes"
3374 echo "configure: failed program was:" >&5
3375 cat conftest.
$ac_ext >&5
3377 eval "ac_cv_header_$ac_safe=no"
3381 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3382 echo "$ac_t""yes" 1>&6
3383 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3384 cat >> confdefs.h
<<EOF
3385 #define $ac_tr_hdr 1
3389 echo "$ac_t""no" 1>&6
3393 for ac_func
in getpagesize
3395 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3396 echo "configure:3397: checking for $ac_func" >&5
3397 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3398 echo $ac_n "(cached) $ac_c" 1>&6
3400 cat > conftest.
$ac_ext <<EOF
3401 #line 3402 "configure"
3402 #include "confdefs.h"
3403 /* System header to define __stub macros and hopefully few prototypes,
3404 which can conflict with char $ac_func(); below. */
3406 /* Override any gcc2 internal prototype to avoid an error. */
3407 /* We use char because int might match the return type of a gcc2
3408 builtin and then its argument prototype would still apply. */
3413 /* The GNU C library defines this for functions which it implements
3414 to always fail with ENOSYS. Some functions are actually named
3415 something starting with __ and the normal name is an alias. */
3416 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3424 if { (eval echo configure
:3425: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3426 eval "ac_cv_func_$ac_func=yes"
3428 echo "configure: failed program was:" >&5
3429 cat conftest.
$ac_ext >&5
3431 eval "ac_cv_func_$ac_func=no"
3436 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3437 echo "$ac_t""yes" 1>&6
3438 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3439 cat >> confdefs.h
<<EOF
3440 #define $ac_tr_func 1
3444 echo "$ac_t""no" 1>&6
3448 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
3449 echo "configure:3450: checking for working mmap" >&5
3450 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
3451 echo $ac_n "(cached) $ac_c" 1>&6
3453 if test "$cross_compiling" = yes; then
3454 ac_cv_func_mmap_fixed_mapped
=no
3456 cat > conftest.
$ac_ext <<EOF
3457 #line 3458 "configure"
3458 #include "confdefs.h"
3460 /* Thanks to Mike Haertel and Jim Avera for this test.
3461 Here is a matrix of mmap possibilities:
3462 mmap private not fixed
3463 mmap private fixed at somewhere currently unmapped
3464 mmap private fixed at somewhere already mapped
3465 mmap shared not fixed
3466 mmap shared fixed at somewhere currently unmapped
3467 mmap shared fixed at somewhere already mapped
3468 For private mappings, we should verify that changes cannot be read()
3469 back from the file, nor mmap's back from the file at a different
3470 address. (There have been systems where private was not correctly
3471 implemented like the infamous i386 svr4.0, and systems where the
3472 VM page cache was not coherent with the filesystem buffer cache
3473 like early versions of FreeBSD and possibly contemporary NetBSD.)
3474 For shared mappings, we should conversely verify that changes get
3475 propogated back to all the places they're supposed to be.
3477 Grep wants private fixed already mapped.
3478 The main things grep needs to know about mmap are:
3479 * does it exist and is it safe to write into the mmap'd area
3480 * how to use it (BSD variants) */
3481 #include <sys/types.h>
3483 #include <sys/mman.h>
3485 /* This mess was copied from the GNU getpagesize.h. */
3486 #ifndef HAVE_GETPAGESIZE
3487 # ifdef HAVE_UNISTD_H
3488 # include <unistd.h>
3491 /* Assume that all systems that can run configure have sys/param.h. */
3492 # ifndef HAVE_SYS_PARAM_H
3493 # define HAVE_SYS_PARAM_H 1
3496 # ifdef _SC_PAGESIZE
3497 # define getpagesize() sysconf(_SC_PAGESIZE)
3498 # else /* no _SC_PAGESIZE */
3499 # ifdef HAVE_SYS_PARAM_H
3500 # include <sys/param.h>
3501 # ifdef EXEC_PAGESIZE
3502 # define getpagesize() EXEC_PAGESIZE
3503 # else /* no EXEC_PAGESIZE */
3505 # define getpagesize() NBPG * CLSIZE
3508 # endif /* no CLSIZE */
3509 # else /* no NBPG */
3511 # define getpagesize() NBPC
3512 # else /* no NBPC */
3514 # define getpagesize() PAGESIZE
3515 # endif /* PAGESIZE */
3516 # endif /* no NBPC */
3517 # endif /* no NBPG */
3518 # endif /* no EXEC_PAGESIZE */
3519 # else /* no HAVE_SYS_PARAM_H */
3520 # define getpagesize() 8192 /* punt totally */
3521 # endif /* no HAVE_SYS_PARAM_H */
3522 # endif /* no _SC_PAGESIZE */
3524 #endif /* no HAVE_GETPAGESIZE */
3527 extern "C" { void *malloc(unsigned); }
3535 char *data, *data2, *data3;
3539 pagesize = getpagesize();
3542 * First, make a file with some known garbage in it.
3544 data = malloc(pagesize);
3547 for (i = 0; i < pagesize; ++i)
3548 *(data + i) = rand();
3550 fd = creat("conftestmmap", 0600);
3553 if (write(fd, data, pagesize) != pagesize)
3558 * Next, try to mmap the file at a fixed address which
3559 * already has something else allocated at it. If we can,
3560 * also make sure that we see the same garbage.
3562 fd = open("conftestmmap", O_RDWR);
3565 data2 = malloc(2 * pagesize);
3568 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
3569 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
3570 MAP_PRIVATE | MAP_FIXED, fd, 0L))
3572 for (i = 0; i < pagesize; ++i)
3573 if (*(data + i) != *(data2 + i))
3577 * Finally, make sure that changes to the mapped area
3578 * do not percolate back to the file as seen by read().
3579 * (This is a bug on some variants of i386 svr4.0.)
3581 for (i = 0; i < pagesize; ++i)
3582 *(data2 + i) = *(data2 + i) + 1;
3583 data3 = malloc(pagesize);
3586 if (read(fd, data3, pagesize) != pagesize)
3588 for (i = 0; i < pagesize; ++i)
3589 if (*(data + i) != *(data3 + i))
3592 unlink("conftestmmap");
3597 if { (eval echo configure
:3598: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3599 ac_cv_func_mmap_fixed_mapped
=yes
3601 echo "configure: failed program was:" >&5
3602 cat conftest.
$ac_ext >&5
3604 ac_cv_func_mmap_fixed_mapped
=no
3611 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
3612 if test $ac_cv_func_mmap_fixed_mapped = yes; then
3613 cat >> confdefs.h
<<\EOF
3620 for ac_hdr
in argz.h limits.h locale.h nl_types.h malloc.h string.h \
3621 unistd.h values.h sys
/param.h
3623 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3624 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3625 echo "configure:3626: checking for $ac_hdr" >&5
3626 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3627 echo $ac_n "(cached) $ac_c" 1>&6
3629 cat > conftest.
$ac_ext <<EOF
3630 #line 3631 "configure"
3631 #include "confdefs.h"
3634 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3635 { (eval echo configure
:3636: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3636 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3637 if test -z "$ac_err"; then
3639 eval "ac_cv_header_$ac_safe=yes"
3642 echo "configure: failed program was:" >&5
3643 cat conftest.
$ac_ext >&5
3645 eval "ac_cv_header_$ac_safe=no"
3649 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3650 echo "$ac_t""yes" 1>&6
3651 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3652 cat >> confdefs.h
<<EOF
3653 #define $ac_tr_hdr 1
3657 echo "$ac_t""no" 1>&6
3661 for ac_func
in getcwd munmap putenv setenv setlocale strchr strcasecmp \
3662 __argz_count __argz_stringify __argz_next
3664 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3665 echo "configure:3666: checking for $ac_func" >&5
3666 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3667 echo $ac_n "(cached) $ac_c" 1>&6
3669 cat > conftest.
$ac_ext <<EOF
3670 #line 3671 "configure"
3671 #include "confdefs.h"
3672 /* System header to define __stub macros and hopefully few prototypes,
3673 which can conflict with char $ac_func(); below. */
3675 /* Override any gcc2 internal prototype to avoid an error. */
3676 /* We use char because int might match the return type of a gcc2
3677 builtin and then its argument prototype would still apply. */
3682 /* The GNU C library defines this for functions which it implements
3683 to always fail with ENOSYS. Some functions are actually named
3684 something starting with __ and the normal name is an alias. */
3685 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3693 if { (eval echo configure
:3694: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3695 eval "ac_cv_func_$ac_func=yes"
3697 echo "configure: failed program was:" >&5
3698 cat conftest.
$ac_ext >&5
3700 eval "ac_cv_func_$ac_func=no"
3705 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3706 echo "$ac_t""yes" 1>&6
3707 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3708 cat >> confdefs.h
<<EOF
3709 #define $ac_tr_func 1
3713 echo "$ac_t""no" 1>&6
3718 if test "${ac_cv_func_stpcpy+set}" != "set"; then
3719 for ac_func
in stpcpy
3721 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3722 echo "configure:3723: checking for $ac_func" >&5
3723 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3724 echo $ac_n "(cached) $ac_c" 1>&6
3726 cat > conftest.
$ac_ext <<EOF
3727 #line 3728 "configure"
3728 #include "confdefs.h"
3729 /* System header to define __stub macros and hopefully few prototypes,
3730 which can conflict with char $ac_func(); below. */
3732 /* Override any gcc2 internal prototype to avoid an error. */
3733 /* We use char because int might match the return type of a gcc2
3734 builtin and then its argument prototype would still apply. */
3739 /* The GNU C library defines this for functions which it implements
3740 to always fail with ENOSYS. Some functions are actually named
3741 something starting with __ and the normal name is an alias. */
3742 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3750 if { (eval echo configure
:3751: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3752 eval "ac_cv_func_$ac_func=yes"
3754 echo "configure: failed program was:" >&5
3755 cat conftest.
$ac_ext >&5
3757 eval "ac_cv_func_$ac_func=no"
3762 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3763 echo "$ac_t""yes" 1>&6
3764 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3765 cat >> confdefs.h
<<EOF
3766 #define $ac_tr_func 1
3770 echo "$ac_t""no" 1>&6
3775 if test "${ac_cv_func_stpcpy}" = "yes"; then
3776 cat >> confdefs.h
<<\EOF
3777 #define HAVE_STPCPY 1
3782 if test $ac_cv_header_locale_h = yes; then
3783 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
3784 echo "configure:3785: checking for LC_MESSAGES" >&5
3785 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
3786 echo $ac_n "(cached) $ac_c" 1>&6
3788 cat > conftest.
$ac_ext <<EOF
3789 #line 3790 "configure"
3790 #include "confdefs.h"
3796 if { (eval echo configure
:3797: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3798 am_cv_val_LC_MESSAGES
=yes
3800 echo "configure: failed program was:" >&5
3801 cat conftest.
$ac_ext >&5
3803 am_cv_val_LC_MESSAGES
=no
3808 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
3809 if test $am_cv_val_LC_MESSAGES = yes; then
3810 cat >> confdefs.h
<<\EOF
3811 #define HAVE_LC_MESSAGES 1
3816 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
3817 echo "configure:3818: checking whether NLS is requested" >&5
3818 # Check whether --enable-nls or --disable-nls was given.
3819 if test "${enable_nls+set}" = set; then
3820 enableval
="$enable_nls"
3826 echo "$ac_t""$USE_NLS" 1>&6
3829 USE_INCLUDED_LIBINTL
=no
3831 if test "$USE_NLS" = "yes"; then
3832 cat >> confdefs.h
<<\EOF
3833 #define ENABLE_NLS 1
3836 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
3837 echo "configure:3838: checking whether included gettext is requested" >&5
3838 # Check whether --with-included-gettext or --without-included-gettext was given.
3839 if test "${with_included_gettext+set}" = set; then
3840 withval
="$with_included_gettext"
3841 nls_cv_force_use_gnu_gettext
=$withval
3843 nls_cv_force_use_gnu_gettext
=no
3846 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
3848 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
3849 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
3851 nls_cv_header_libgt
=
3854 ac_safe
=`echo "libintl.h" | sed 'y%./+-%__p_%'`
3855 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
3856 echo "configure:3857: checking for libintl.h" >&5
3857 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3858 echo $ac_n "(cached) $ac_c" 1>&6
3860 cat > conftest.
$ac_ext <<EOF
3861 #line 3862 "configure"
3862 #include "confdefs.h"
3863 #include <libintl.h>
3865 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3866 { (eval echo configure
:3867: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3867 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3868 if test -z "$ac_err"; then
3870 eval "ac_cv_header_$ac_safe=yes"
3873 echo "configure: failed program was:" >&5
3874 cat conftest.
$ac_ext >&5
3876 eval "ac_cv_header_$ac_safe=no"
3880 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3881 echo "$ac_t""yes" 1>&6
3882 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
3883 echo "configure:3884: checking for gettext in libc" >&5
3884 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
3885 echo $ac_n "(cached) $ac_c" 1>&6
3887 cat > conftest.
$ac_ext <<EOF
3888 #line 3889 "configure"
3889 #include "confdefs.h"
3890 #include <libintl.h>
3892 return (int) gettext ("")
3895 if { (eval echo configure
:3896: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3897 gt_cv_func_gettext_libc
=yes
3899 echo "configure: failed program was:" >&5
3900 cat conftest.
$ac_ext >&5
3902 gt_cv_func_gettext_libc
=no
3907 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
3909 if test "$gt_cv_func_gettext_libc" != "yes"; then
3910 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
3911 echo "configure:3912: checking for bindtextdomain in -lintl" >&5
3912 ac_lib_var
=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
3913 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3914 echo $ac_n "(cached) $ac_c" 1>&6
3916 ac_save_LIBS
="$LIBS"
3918 cat > conftest.
$ac_ext <<EOF
3919 #line 3920 "configure"
3920 #include "confdefs.h"
3921 /* Override any gcc2 internal prototype to avoid an error. */
3922 /* We use char because int might match the return type of a gcc2
3923 builtin and then its argument prototype would still apply. */
3924 char bindtextdomain();
3930 if { (eval echo configure
:3931: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3932 eval "ac_cv_lib_$ac_lib_var=yes"
3934 echo "configure: failed program was:" >&5
3935 cat conftest.
$ac_ext >&5
3937 eval "ac_cv_lib_$ac_lib_var=no"
3940 LIBS
="$ac_save_LIBS"
3943 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3944 echo "$ac_t""yes" 1>&6
3945 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
3946 echo "configure:3947: checking for gettext in libintl" >&5
3947 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
3948 echo $ac_n "(cached) $ac_c" 1>&6
3950 cat > conftest.
$ac_ext <<EOF
3951 #line 3952 "configure"
3952 #include "confdefs.h"
3955 return (int) gettext ("")
3958 if { (eval echo configure
:3959: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3960 gt_cv_func_gettext_libintl
=yes
3962 echo "configure: failed program was:" >&5
3963 cat conftest.
$ac_ext >&5
3965 gt_cv_func_gettext_libintl
=no
3970 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
3972 echo "$ac_t""no" 1>&6
3977 if test "$gt_cv_func_gettext_libc" = "yes" \
3978 ||
test "$gt_cv_func_gettext_libintl" = "yes"; then
3979 cat >> confdefs.h
<<\EOF
3980 #define HAVE_GETTEXT 1
3983 # Extract the first word of "msgfmt", so it can be a program name with args.
3984 set dummy msgfmt
; ac_word
=$2
3985 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3986 echo "configure:3987: checking for $ac_word" >&5
3987 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
3988 echo $ac_n "(cached) $ac_c" 1>&6
3992 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
3995 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
3996 for ac_dir
in $PATH; do
3997 test -z "$ac_dir" && ac_dir
=.
3998 if test -f $ac_dir/$ac_word; then
3999 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
4000 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
4006 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="no"
4010 MSGFMT
="$ac_cv_path_MSGFMT"
4011 if test -n "$MSGFMT"; then
4012 echo "$ac_t""$MSGFMT" 1>&6
4014 echo "$ac_t""no" 1>&6
4016 if test "$MSGFMT" != "no"; then
4017 for ac_func
in dcgettext
4019 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4020 echo "configure:4021: checking for $ac_func" >&5
4021 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4022 echo $ac_n "(cached) $ac_c" 1>&6
4024 cat > conftest.
$ac_ext <<EOF
4025 #line 4026 "configure"
4026 #include "confdefs.h"
4027 /* System header to define __stub macros and hopefully few prototypes,
4028 which can conflict with char $ac_func(); below. */
4030 /* Override any gcc2 internal prototype to avoid an error. */
4031 /* We use char because int might match the return type of a gcc2
4032 builtin and then its argument prototype would still apply. */
4037 /* The GNU C library defines this for functions which it implements
4038 to always fail with ENOSYS. Some functions are actually named
4039 something starting with __ and the normal name is an alias. */
4040 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4048 if { (eval echo configure
:4049: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4050 eval "ac_cv_func_$ac_func=yes"
4052 echo "configure: failed program was:" >&5
4053 cat conftest.
$ac_ext >&5
4055 eval "ac_cv_func_$ac_func=no"
4060 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4061 echo "$ac_t""yes" 1>&6
4062 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4063 cat >> confdefs.h
<<EOF
4064 #define $ac_tr_func 1
4068 echo "$ac_t""no" 1>&6
4072 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4073 set dummy gmsgfmt
; ac_word
=$2
4074 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4075 echo "configure:4076: checking for $ac_word" >&5
4076 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
4077 echo $ac_n "(cached) $ac_c" 1>&6
4081 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
4084 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
4087 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
4089 for ac_dir
in $ac_dummy; do
4090 test -z "$ac_dir" && ac_dir
=.
4091 if test -f $ac_dir/$ac_word; then
4092 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
4097 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
4101 GMSGFMT
="$ac_cv_path_GMSGFMT"
4102 if test -n "$GMSGFMT"; then
4103 echo "$ac_t""$GMSGFMT" 1>&6
4105 echo "$ac_t""no" 1>&6
4108 # Extract the first word of "xgettext", so it can be a program name with args.
4109 set dummy xgettext
; ac_word
=$2
4110 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4111 echo "configure:4112: checking for $ac_word" >&5
4112 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
4113 echo $ac_n "(cached) $ac_c" 1>&6
4117 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
4120 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
4121 for ac_dir
in $PATH; do
4122 test -z "$ac_dir" && ac_dir
=.
4123 if test -f $ac_dir/$ac_word; then
4124 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
4125 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
4131 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
4135 XGETTEXT
="$ac_cv_path_XGETTEXT"
4136 if test -n "$XGETTEXT"; then
4137 echo "$ac_t""$XGETTEXT" 1>&6
4139 echo "$ac_t""no" 1>&6
4142 cat > conftest.
$ac_ext <<EOF
4143 #line 4144 "configure"
4144 #include "confdefs.h"
4147 extern int _nl_msg_cat_cntr;
4148 return _nl_msg_cat_cntr
4151 if { (eval echo configure
:4152: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4156 echo "configure: failed program was:" >&5
4157 cat conftest.
$ac_ext >&5
4168 echo "$ac_t""no" 1>&6
4173 if test "$CATOBJEXT" = "NONE"; then
4174 nls_cv_use_gnu_gettext
=yes
4178 if test "$nls_cv_use_gnu_gettext" = "yes"; then
4179 INTLOBJS
="\$(GETTOBJS)"
4180 # Extract the first word of "msgfmt", so it can be a program name with args.
4181 set dummy msgfmt
; ac_word
=$2
4182 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4183 echo "configure:4184: checking for $ac_word" >&5
4184 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
4185 echo $ac_n "(cached) $ac_c" 1>&6
4189 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
4192 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
4193 for ac_dir
in $PATH; do
4194 test -z "$ac_dir" && ac_dir
=.
4195 if test -f $ac_dir/$ac_word; then
4196 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
4197 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
4203 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="msgfmt"
4207 MSGFMT
="$ac_cv_path_MSGFMT"
4208 if test -n "$MSGFMT"; then
4209 echo "$ac_t""$MSGFMT" 1>&6
4211 echo "$ac_t""no" 1>&6
4214 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4215 set dummy gmsgfmt
; ac_word
=$2
4216 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4217 echo "configure:4218: checking for $ac_word" >&5
4218 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
4219 echo $ac_n "(cached) $ac_c" 1>&6
4223 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
4226 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
4229 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
4231 for ac_dir
in $ac_dummy; do
4232 test -z "$ac_dir" && ac_dir
=.
4233 if test -f $ac_dir/$ac_word; then
4234 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
4239 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
4243 GMSGFMT
="$ac_cv_path_GMSGFMT"
4244 if test -n "$GMSGFMT"; then
4245 echo "$ac_t""$GMSGFMT" 1>&6
4247 echo "$ac_t""no" 1>&6
4250 # Extract the first word of "xgettext", so it can be a program name with args.
4251 set dummy xgettext
; ac_word
=$2
4252 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4253 echo "configure:4254: checking for $ac_word" >&5
4254 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
4255 echo $ac_n "(cached) $ac_c" 1>&6
4259 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
4262 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
4263 for ac_dir
in $PATH; do
4264 test -z "$ac_dir" && ac_dir
=.
4265 if test -f $ac_dir/$ac_word; then
4266 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
4267 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
4273 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
4277 XGETTEXT
="$ac_cv_path_XGETTEXT"
4278 if test -n "$XGETTEXT"; then
4279 echo "$ac_t""$XGETTEXT" 1>&6
4281 echo "$ac_t""no" 1>&6
4285 USE_INCLUDED_LIBINTL
=yes
4289 INTLDEPS
='$(top_builddir)/../intl/libintl.a'
4291 LIBS
=`echo $LIBS | sed -e 's/-lintl//'`
4292 nls_cv_header_intl
=libintl.h
4293 nls_cv_header_libgt
=libgettext.h
4296 if test "$XGETTEXT" != ":"; then
4297 if $XGETTEXT --omit-header /dev
/null
2> /dev
/null
; then
4300 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
4305 # We need to process the po/ directory.
4309 nls_cv_header_intl
=libintl.h
4310 nls_cv_header_libgt
=libgettext.h
4313 # If this is used in GNU gettext we have to set USE_NLS to `yes'
4314 # because some of the sources are only built for this goal.
4315 if test "$PACKAGE" = gettext; then
4317 USE_INCLUDED_LIBINTL
=yes
4320 for lang
in $ALL_LINGUAS; do
4321 GMOFILES
="$GMOFILES $lang.gmo"
4322 POFILES
="$POFILES $lang.po"
4338 if test "x$CATOBJEXT" != "x"; then
4339 if test "x$ALL_LINGUAS" = "x"; then
4342 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
4343 echo "configure:4344: checking for catalogs to be installed" >&5
4345 for lang
in ${LINGUAS=$ALL_LINGUAS}; do
4346 case "$ALL_LINGUAS" in
4347 *$lang*) NEW_LINGUAS
="$NEW_LINGUAS $lang" ;;
4350 LINGUAS
=$NEW_LINGUAS
4351 echo "$ac_t""$LINGUAS" 1>&6
4354 if test -n "$LINGUAS"; then
4355 for lang
in $LINGUAS; do CATALOGS
="$CATALOGS $lang$CATOBJEXT"; done
4359 if test $ac_cv_header_locale_h = yes; then
4360 INCLUDE_LOCALE_H
="#include <locale.h>"
4363 /* The system does not provide the header <locale.h>. Take care yourself. */"
4367 if test -f $srcdir/po2tbl.
sed.
in; then
4368 if test "$CATOBJEXT" = ".cat"; then
4369 ac_safe
=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
4370 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
4371 echo "configure:4372: checking for linux/version.h" >&5
4372 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4373 echo $ac_n "(cached) $ac_c" 1>&6
4375 cat > conftest.
$ac_ext <<EOF
4376 #line 4377 "configure"
4377 #include "confdefs.h"
4378 #include <linux/version.h>
4380 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4381 { (eval echo configure
:4382: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4382 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4383 if test -z "$ac_err"; then
4385 eval "ac_cv_header_$ac_safe=yes"
4388 echo "configure: failed program was:" >&5
4389 cat conftest.
$ac_ext >&5
4391 eval "ac_cv_header_$ac_safe=no"
4395 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4396 echo "$ac_t""yes" 1>&6
4399 echo "$ac_t""no" 1>&6
4404 sed -e '/^#/d' $srcdir/$msgformat-msg.
sed > po2msg.
sed
4406 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
4407 $srcdir/po2tbl.
sed.
in > po2tbl.
sed
4410 if test "$PACKAGE" = "gettext"; then
4420 MKINSTALLDIRS
="\$(srcdir)/../../mkinstalldirs"
4426 if test -d $srcdir/po
; then
4427 test -d po || mkdir po
4428 if test "x$srcdir" != "x."; then
4429 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
4430 posrcprefix
="$srcdir/"
4432 posrcprefix
="../$srcdir/"
4438 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
4439 < $srcdir/po
/POTFILES.
in > po
/POTFILES
4443 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
4444 echo "configure:4445: checking whether to enable maintainer-specific portions of Makefiles" >&5
4445 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4446 if test "${enable_maintainer_mode+set}" = set; then
4447 enableval
="$enable_maintainer_mode"
4448 USE_MAINTAINER_MODE
=$enableval
4450 USE_MAINTAINER_MODE
=no
4453 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
4456 if test $USE_MAINTAINER_MODE = yes; then
4457 MAINTAINER_MODE_TRUE
=
4458 MAINTAINER_MODE_FALSE
='#'
4460 MAINTAINER_MODE_TRUE
='#'
4461 MAINTAINER_MODE_FALSE
=
4463 MAINT
=$MAINTAINER_MODE_TRUE
4466 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
4467 echo "configure:4468: checking for Cygwin environment" >&5
4468 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
4469 echo $ac_n "(cached) $ac_c" 1>&6
4471 cat > conftest.
$ac_ext <<EOF
4472 #line 4473 "configure"
4473 #include "confdefs.h"
4478 #define __CYGWIN__ __CYGWIN32__
4483 if { (eval echo configure
:4484: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4487 echo "configure: failed program was:" >&5
4488 cat conftest.
$ac_ext >&5
4496 echo "$ac_t""$ac_cv_cygwin" 1>&6
4498 test "$ac_cv_cygwin" = yes && CYGWIN
=yes
4499 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
4500 echo "configure:4501: checking for mingw32 environment" >&5
4501 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
4502 echo $ac_n "(cached) $ac_c" 1>&6
4504 cat > conftest.
$ac_ext <<EOF
4505 #line 4506 "configure"
4506 #include "confdefs.h"
4512 if { (eval echo configure
:4513: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4516 echo "configure: failed program was:" >&5
4517 cat conftest.
$ac_ext >&5
4525 echo "$ac_t""$ac_cv_mingw32" 1>&6
4527 test "$ac_cv_mingw32" = yes && MINGW32
=yes
4530 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
4531 echo "configure:4532: checking for executable suffix" >&5
4532 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
4533 echo $ac_n "(cached) $ac_c" 1>&6
4535 if test "$CYGWIN" = yes ||
test "$MINGW32" = yes; then
4539 echo 'int main () { return 0; }' > conftest.
$ac_ext
4541 if { (eval echo configure
:4542: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
4542 for file in conftest.
*; do
4544 *.c |
*.o |
*.obj |
*.ilk |
*.pdb
) ;;
4545 *) ac_cv_exeext
=`echo $file | sed -e s/conftest//` ;;
4549 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
4552 test x
"${ac_cv_exeext}" = x
&& ac_cv_exeext
=no
4557 test x
"${ac_cv_exeext}" != xno
&& EXEEXT
=${ac_cv_exeext}
4558 echo "$ac_t""${ac_cv_exeext}" 1>&6
4562 for ac_hdr
in string.h stdlib.h memory.h
strings.h unistd.h stdarg.h varargs.h errno.h sys
/types.h
4564 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4565 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4566 echo "configure:4567: checking for $ac_hdr" >&5
4567 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4568 echo $ac_n "(cached) $ac_c" 1>&6
4570 cat > conftest.
$ac_ext <<EOF
4571 #line 4572 "configure"
4572 #include "confdefs.h"
4575 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4576 { (eval echo configure
:4577: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4577 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4578 if test -z "$ac_err"; then
4580 eval "ac_cv_header_$ac_safe=yes"
4583 echo "configure: failed program was:" >&5
4584 cat conftest.
$ac_ext >&5
4586 eval "ac_cv_header_$ac_safe=no"
4590 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4591 echo "$ac_t""yes" 1>&6
4592 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4593 cat >> confdefs.h
<<EOF
4594 #define $ac_tr_hdr 1
4598 echo "$ac_t""no" 1>&6
4603 # Put this here so that autoconf's "cross-compiling" message doesn't confuse
4604 # people who are not cross-compiling but are compiling cross-assemblers.
4605 echo $ac_n "checking whether compiling a cross-assembler""... $ac_c" 1>&6
4606 echo "configure:4607: checking whether compiling a cross-assembler" >&5
4607 if test "${host}" = "${target}"; then
4611 cat >> confdefs.h
<<\EOF
4612 #define CROSS_COMPILE 1
4616 echo "$ac_t""$cross_gas" 1>&6
4618 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4619 # for constant arguments. Useless!
4620 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
4621 echo "configure:4622: checking for working alloca.h" >&5
4622 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
4623 echo $ac_n "(cached) $ac_c" 1>&6
4625 cat > conftest.
$ac_ext <<EOF
4626 #line 4627 "configure"
4627 #include "confdefs.h"
4630 char *p = alloca(2 * sizeof(int));
4633 if { (eval echo configure
:4634: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4635 ac_cv_header_alloca_h
=yes
4637 echo "configure: failed program was:" >&5
4638 cat conftest.
$ac_ext >&5
4640 ac_cv_header_alloca_h
=no
4645 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
4646 if test $ac_cv_header_alloca_h = yes; then
4647 cat >> confdefs.h
<<\EOF
4648 #define HAVE_ALLOCA_H 1
4653 echo $ac_n "checking for alloca""... $ac_c" 1>&6
4654 echo "configure:4655: checking for alloca" >&5
4655 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
4656 echo $ac_n "(cached) $ac_c" 1>&6
4658 cat > conftest.
$ac_ext <<EOF
4659 #line 4660 "configure"
4660 #include "confdefs.h"
4663 # define alloca __builtin_alloca
4666 # include <malloc.h>
4667 # define alloca _alloca
4670 # include <alloca.h>
4675 # ifndef alloca /* predefined by HP cc +Olibcalls */
4684 char *p = (char *) alloca(1);
4687 if { (eval echo configure
:4688: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4689 ac_cv_func_alloca_works
=yes
4691 echo "configure: failed program was:" >&5
4692 cat conftest.
$ac_ext >&5
4694 ac_cv_func_alloca_works
=no
4699 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
4700 if test $ac_cv_func_alloca_works = yes; then
4701 cat >> confdefs.h
<<\EOF
4702 #define HAVE_ALLOCA 1
4707 if test $ac_cv_func_alloca_works = no
; then
4708 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
4709 # that cause trouble. Some versions do not even contain alloca or
4710 # contain a buggy version. If you still want to use their alloca,
4711 # use ar to extract alloca.o from them instead of compiling alloca.c.
4712 ALLOCA
=alloca.
${ac_objext}
4713 cat >> confdefs.h
<<\EOF
4718 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
4719 echo "configure:4720: checking whether alloca needs Cray hooks" >&5
4720 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
4721 echo $ac_n "(cached) $ac_c" 1>&6
4723 cat > conftest.
$ac_ext <<EOF
4724 #line 4725 "configure"
4725 #include "confdefs.h"
4726 #if defined(CRAY) && ! defined(CRAY2)
4733 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4734 egrep "webecray" >/dev
/null
2>&1; then
4745 echo "$ac_t""$ac_cv_os_cray" 1>&6
4746 if test $ac_cv_os_cray = yes; then
4747 for ac_func
in _getb67 GETB67 getb67
; do
4748 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4749 echo "configure:4750: checking for $ac_func" >&5
4750 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4751 echo $ac_n "(cached) $ac_c" 1>&6
4753 cat > conftest.
$ac_ext <<EOF
4754 #line 4755 "configure"
4755 #include "confdefs.h"
4756 /* System header to define __stub macros and hopefully few prototypes,
4757 which can conflict with char $ac_func(); below. */
4759 /* Override any gcc2 internal prototype to avoid an error. */
4760 /* We use char because int might match the return type of a gcc2
4761 builtin and then its argument prototype would still apply. */
4766 /* The GNU C library defines this for functions which it implements
4767 to always fail with ENOSYS. Some functions are actually named
4768 something starting with __ and the normal name is an alias. */
4769 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4777 if { (eval echo configure
:4778: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4779 eval "ac_cv_func_$ac_func=yes"
4781 echo "configure: failed program was:" >&5
4782 cat conftest.
$ac_ext >&5
4784 eval "ac_cv_func_$ac_func=no"
4789 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4790 echo "$ac_t""yes" 1>&6
4791 cat >> confdefs.h
<<EOF
4792 #define CRAY_STACKSEG_END $ac_func
4797 echo "$ac_t""no" 1>&6
4803 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
4804 echo "configure:4805: checking stack direction for C alloca" >&5
4805 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
4806 echo $ac_n "(cached) $ac_c" 1>&6
4808 if test "$cross_compiling" = yes; then
4809 ac_cv_c_stack_direction
=0
4811 cat > conftest.
$ac_ext <<EOF
4812 #line 4813 "configure"
4813 #include "confdefs.h"
4814 find_stack_direction ()
4816 static char *addr = 0;
4821 return find_stack_direction ();
4824 return (&dummy > addr) ? 1 : -1;
4828 exit (find_stack_direction() < 0);
4831 if { (eval echo configure
:4832: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4833 ac_cv_c_stack_direction
=1
4835 echo "configure: failed program was:" >&5
4836 cat conftest.
$ac_ext >&5
4838 ac_cv_c_stack_direction
=-1
4845 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
4846 cat >> confdefs.h
<<EOF
4847 #define STACK_DIRECTION $ac_cv_c_stack_direction
4852 echo $ac_n "checking for inline""... $ac_c" 1>&6
4853 echo "configure:4854: checking for inline" >&5
4854 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
4855 echo $ac_n "(cached) $ac_c" 1>&6
4858 for ac_kw
in inline __inline__ __inline
; do
4859 cat > conftest.
$ac_ext <<EOF
4860 #line 4861 "configure"
4861 #include "confdefs.h"
4867 if { (eval echo configure
:4868: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4869 ac_cv_c_inline
=$ac_kw; break
4871 echo "configure: failed program was:" >&5
4872 cat conftest.
$ac_ext >&5
4879 echo "$ac_t""$ac_cv_c_inline" 1>&6
4880 case "$ac_cv_c_inline" in
4882 no
) cat >> confdefs.h
<<\EOF
4886 *) cat >> confdefs.h
<<EOF
4887 #define inline $ac_cv_c_inline
4893 # VMS doesn't have unlink.
4894 for ac_func
in unlink remove
4896 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4897 echo "configure:4898: checking for $ac_func" >&5
4898 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4899 echo $ac_n "(cached) $ac_c" 1>&6
4901 cat > conftest.
$ac_ext <<EOF
4902 #line 4903 "configure"
4903 #include "confdefs.h"
4904 /* System header to define __stub macros and hopefully few prototypes,
4905 which can conflict with char $ac_func(); below. */
4907 /* Override any gcc2 internal prototype to avoid an error. */
4908 /* We use char because int might match the return type of a gcc2
4909 builtin and then its argument prototype would still apply. */
4914 /* The GNU C library defines this for functions which it implements
4915 to always fail with ENOSYS. Some functions are actually named
4916 something starting with __ and the normal name is an alias. */
4917 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4925 if { (eval echo configure
:4926: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4927 eval "ac_cv_func_$ac_func=yes"
4929 echo "configure: failed program was:" >&5
4930 cat conftest.
$ac_ext >&5
4932 eval "ac_cv_func_$ac_func=no"
4937 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4938 echo "$ac_t""yes" 1>&6
4939 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4940 cat >> confdefs.h
<<EOF
4941 #define $ac_tr_func 1
4945 echo "$ac_t""no" 1>&6
4950 # Some systems don't have sbrk().
4953 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4954 echo "configure:4955: checking for $ac_func" >&5
4955 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4956 echo $ac_n "(cached) $ac_c" 1>&6
4958 cat > conftest.
$ac_ext <<EOF
4959 #line 4960 "configure"
4960 #include "confdefs.h"
4961 /* System header to define __stub macros and hopefully few prototypes,
4962 which can conflict with char $ac_func(); below. */
4964 /* Override any gcc2 internal prototype to avoid an error. */
4965 /* We use char because int might match the return type of a gcc2
4966 builtin and then its argument prototype would still apply. */
4971 /* The GNU C library defines this for functions which it implements
4972 to always fail with ENOSYS. Some functions are actually named
4973 something starting with __ and the normal name is an alias. */
4974 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4982 if { (eval echo configure
:4983: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4984 eval "ac_cv_func_$ac_func=yes"
4986 echo "configure: failed program was:" >&5
4987 cat conftest.
$ac_ext >&5
4989 eval "ac_cv_func_$ac_func=no"
4994 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4995 echo "$ac_t""yes" 1>&6
4996 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4997 cat >> confdefs.h
<<EOF
4998 #define $ac_tr_func 1
5002 echo "$ac_t""no" 1>&6
5007 # Some non-ANSI preprocessors botch requoting inside strings. That's bad
5008 # enough, but on some of those systems, the assert macro relies on requoting
5010 echo $ac_n "checking for working assert macro""... $ac_c" 1>&6
5011 echo "configure:5012: checking for working assert macro" >&5
5012 if eval "test \"`echo '$''{'gas_cv_assert_ok'+set}'`\" = set"; then
5013 echo $ac_n "(cached) $ac_c" 1>&6
5015 cat > conftest.
$ac_ext <<EOF
5016 #line 5017 "configure"
5017 #include "confdefs.h"
5022 /* check for requoting problems */
5023 static int a, b, c, d;
5025 assert (!strcmp(s, "foo bar baz quux"));
5026 /* check for newline handling */
5032 if { (eval echo configure
:5033: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5034 gas_cv_assert_ok
=yes
5036 echo "configure: failed program was:" >&5
5037 cat conftest.
$ac_ext >&5
5043 echo "$ac_t""$gas_cv_assert_ok" 1>&6
5044 test $gas_cv_assert_ok = yes ||
cat >> confdefs.h
<<\EOF
5045 #define BROKEN_ASSERT 1
5050 # On some systems, the system header files may not declare malloc, realloc,
5051 # and free. There are places where gas needs these functions to have been
5052 # declared -- such as when taking their addresses.
5054 #ifdef HAVE_MEMORY_H
5057 #ifdef HAVE_STRING_H
5060 #ifdef HAVE_STRINGS_H
5061 #include <strings.h>
5064 #ifdef HAVE_STDLIB_H
5067 #ifdef HAVE_UNISTD_H
5072 echo $ac_n "checking whether declaration is required for strstr""... $ac_c" 1>&6
5073 echo "configure:5074: checking whether declaration is required for strstr" >&5
5074 if eval "test \"`echo '$''{'gas_cv_decl_needed_strstr'+set}'`\" = set"; then
5075 echo $ac_n "(cached) $ac_c" 1>&6
5077 cat > conftest.
$ac_ext <<EOF
5078 #line 5079 "configure"
5079 #include "confdefs.h"
5083 typedef char *(*f)();
5089 if { (eval echo configure
:5090: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5091 gas_cv_decl_needed_strstr
=no
5093 echo "configure: failed program was:" >&5
5094 cat conftest.
$ac_ext >&5
5096 gas_cv_decl_needed_strstr
=yes
5100 echo "$ac_t""$gas_cv_decl_needed_strstr" 1>&6
5101 test $gas_cv_decl_needed_strstr = no ||
{
5102 cat >> confdefs.h
<<\EOF
5103 #define NEED_DECLARATION_STRSTR 1
5109 echo $ac_n "checking whether declaration is required for malloc""... $ac_c" 1>&6
5110 echo "configure:5111: checking whether declaration is required for malloc" >&5
5111 if eval "test \"`echo '$''{'gas_cv_decl_needed_malloc'+set}'`\" = set"; then
5112 echo $ac_n "(cached) $ac_c" 1>&6
5114 cat > conftest.
$ac_ext <<EOF
5115 #line 5116 "configure"
5116 #include "confdefs.h"
5120 typedef char *(*f)();
5126 if { (eval echo configure
:5127: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5128 gas_cv_decl_needed_malloc
=no
5130 echo "configure: failed program was:" >&5
5131 cat conftest.
$ac_ext >&5
5133 gas_cv_decl_needed_malloc
=yes
5137 echo "$ac_t""$gas_cv_decl_needed_malloc" 1>&6
5138 test $gas_cv_decl_needed_malloc = no ||
{
5139 cat >> confdefs.h
<<\EOF
5140 #define NEED_DECLARATION_MALLOC 1
5146 echo $ac_n "checking whether declaration is required for free""... $ac_c" 1>&6
5147 echo "configure:5148: checking whether declaration is required for free" >&5
5148 if eval "test \"`echo '$''{'gas_cv_decl_needed_free'+set}'`\" = set"; then
5149 echo $ac_n "(cached) $ac_c" 1>&6
5151 cat > conftest.
$ac_ext <<EOF
5152 #line 5153 "configure"
5153 #include "confdefs.h"
5157 typedef void (*f)();
5163 if { (eval echo configure
:5164: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5165 gas_cv_decl_needed_free
=no
5167 echo "configure: failed program was:" >&5
5168 cat conftest.
$ac_ext >&5
5170 gas_cv_decl_needed_free
=yes
5174 echo "$ac_t""$gas_cv_decl_needed_free" 1>&6
5175 test $gas_cv_decl_needed_free = no ||
{
5176 cat >> confdefs.h
<<\EOF
5177 #define NEED_DECLARATION_FREE 1
5183 echo $ac_n "checking whether declaration is required for sbrk""... $ac_c" 1>&6
5184 echo "configure:5185: checking whether declaration is required for sbrk" >&5
5185 if eval "test \"`echo '$''{'gas_cv_decl_needed_sbrk'+set}'`\" = set"; then
5186 echo $ac_n "(cached) $ac_c" 1>&6
5188 cat > conftest.
$ac_ext <<EOF
5189 #line 5190 "configure"
5190 #include "confdefs.h"
5194 typedef char *(*f)();
5200 if { (eval echo configure
:5201: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5202 gas_cv_decl_needed_sbrk
=no
5204 echo "configure: failed program was:" >&5
5205 cat conftest.
$ac_ext >&5
5207 gas_cv_decl_needed_sbrk
=yes
5211 echo "$ac_t""$gas_cv_decl_needed_sbrk" 1>&6
5212 test $gas_cv_decl_needed_sbrk = no ||
{
5213 cat >> confdefs.h
<<\EOF
5214 #define NEED_DECLARATION_SBRK 1
5220 # Does errno.h declare errno, or do we have to add a separate declaration
5223 echo $ac_n "checking whether declaration is required for errno""... $ac_c" 1>&6
5224 echo "configure:5225: checking whether declaration is required for errno" >&5
5225 if eval "test \"`echo '$''{'gas_cv_decl_needed_errno'+set}'`\" = set"; then
5226 echo $ac_n "(cached) $ac_c" 1>&6
5228 cat > conftest.
$ac_ext <<EOF
5229 #line 5230 "configure"
5230 #include "confdefs.h"
5244 if { (eval echo configure
:5245: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5246 gas_cv_decl_needed_errno
=no
5248 echo "configure: failed program was:" >&5
5249 cat conftest.
$ac_ext >&5
5251 gas_cv_decl_needed_errno
=yes
5255 echo "$ac_t""$gas_cv_decl_needed_errno" 1>&6
5256 test $gas_cv_decl_needed_errno = no ||
{
5257 cat >> confdefs.h
<<\EOF
5258 #define NEED_DECLARATION_ERRNO 1
5267 cat > confcache
<<\EOF
5268 # This file is a shell script that caches the results of configure
5269 # tests run on this system so they can be shared between configure
5270 # scripts and configure runs. It is not useful on other systems.
5271 # If it contains results you don't want to keep, you may remove or edit it.
5273 # By default, configure uses ./config.cache as the cache file,
5274 # creating it if it does not exist already. You can give configure
5275 # the --cache-file=FILE option to use a different cache file; that is
5276 # what configure does when it calls configure scripts in
5277 # subdirectories, so they share the cache.
5278 # Giving --cache-file=/dev/null disables caching, for debugging configure.
5279 # config.status only pays attention to the cache file if you give it the
5280 # --recheck option to rerun configure.
5283 # The following way of writing the cache mishandles newlines in values,
5284 # but we know of no workaround that is simple, portable, and efficient.
5285 # So, don't put newlines in cache variables' values.
5286 # Ultrix sh set writes to stderr and can't be redirected directly,
5287 # and sets the high bit in the cache file unless we assign to the vars.
5289 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5291 # `set' does not quote correctly, so add quotes (double-quote substitution
5292 # turns \\\\ into \\, and sed turns \\ into \).
5294 -e "s/'/'\\\\''/g" \
5295 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
5298 # `set' quotes correctly as required by POSIX, so do not add quotes.
5299 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
5302 if cmp -s $cache_file confcache
; then
5305 if test -w $cache_file; then
5306 echo "updating cache $cache_file"
5307 cat confcache
> $cache_file
5309 echo "not updating unwritable cache $cache_file"
5314 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
5316 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
5317 # Let make expand exec_prefix.
5318 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
5320 # Any assignment to VPATH causes Sun make to only execute
5321 # the first set of double-colon rules, so remove it if not needed.
5322 # If there is a colon in the path, we need to keep it.
5323 if test "x$srcdir" = x.
; then
5324 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
5327 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
5329 DEFS
=-DHAVE_CONFIG_H
5331 # Without the "./", some shells look in PATH for config.status.
5332 : ${CONFIG_STATUS=./config.status}
5334 echo creating
$CONFIG_STATUS
5335 rm -f $CONFIG_STATUS
5336 cat > $CONFIG_STATUS <<EOF
5338 # Generated automatically by configure.
5339 # Run this file to recreate the current configuration.
5340 # This directory was configured as follows,
5341 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5343 # $0 $ac_configure_args
5345 # Compiler output produced by configure, useful for debugging
5346 # configure, is in ./config.log if it exists.
5348 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
5351 case "\$ac_option" in
5352 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5353 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
5354 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
5355 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
5356 echo "$CONFIG_STATUS generated by autoconf version 2.13"
5358 -help | --help | --hel | --he | --h)
5359 echo "\$ac_cs_usage"; exit 0 ;;
5360 *) echo "\$ac_cs_usage"; exit 1 ;;
5364 ac_given_srcdir=$srcdir
5365 ac_given_INSTALL="$INSTALL"
5367 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
5369 cat >> $CONFIG_STATUS <<EOF
5371 # Protect against being on the right side of a sed subst in config.status.
5372 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
5373 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
5377 s%@CFLAGS@%$CFLAGS%g
5378 s%@CPPFLAGS@%$CPPFLAGS%g
5379 s%@CXXFLAGS@%$CXXFLAGS%g
5380 s%@FFLAGS@%$FFLAGS%g
5382 s%@LDFLAGS@%$LDFLAGS%g
5384 s%@exec_prefix@%$exec_prefix%g
5385 s%@prefix@%$prefix%g
5386 s%@program_transform_name@%$program_transform_name%g
5387 s%@bindir@%$bindir%g
5388 s%@sbindir@%$sbindir%g
5389 s%@libexecdir@%$libexecdir%g
5390 s%@datadir@%$datadir%g
5391 s%@sysconfdir@%$sysconfdir%g
5392 s%@sharedstatedir@%$sharedstatedir%g
5393 s%@localstatedir@%$localstatedir%g
5394 s%@libdir@%$libdir%g
5395 s%@includedir@%$includedir%g
5396 s%@oldincludedir@%$oldincludedir%g
5397 s%@infodir@%$infodir%g
5398 s%@mandir@%$mandir%g
5400 s%@host_alias@%$host_alias%g
5401 s%@host_cpu@%$host_cpu%g
5402 s%@host_vendor@%$host_vendor%g
5403 s%@host_os@%$host_os%g
5404 s%@target@%$target%g
5405 s%@target_alias@%$target_alias%g
5406 s%@target_cpu@%$target_cpu%g
5407 s%@target_vendor@%$target_vendor%g
5408 s%@target_os@%$target_os%g
5410 s%@build_alias@%$build_alias%g
5411 s%@build_cpu@%$build_cpu%g
5412 s%@build_vendor@%$build_vendor%g
5413 s%@build_os@%$build_os%g
5414 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
5415 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
5416 s%@INSTALL_DATA@%$INSTALL_DATA%g
5417 s%@PACKAGE@%$PACKAGE%g
5418 s%@VERSION@%$VERSION%g
5419 s%@ACLOCAL@%$ACLOCAL%g
5420 s%@AUTOCONF@%$AUTOCONF%g
5421 s%@AUTOMAKE@%$AUTOMAKE%g
5422 s%@AUTOHEADER@%$AUTOHEADER%g
5423 s%@MAKEINFO@%$MAKEINFO%g
5424 s%@SET_MAKE@%$SET_MAKE%g
5425 s%@RANLIB@%$RANLIB%g
5430 s%@LIBTOOL@%$LIBTOOL%g
5431 s%@DLLTOOL@%$DLLTOOL%g
5433 s%@cgen_cpu_prefix@%$cgen_cpu_prefix%g
5434 s%@extra_objects@%$extra_objects%g
5435 s%@target_cpu_type@%$target_cpu_type%g
5436 s%@obj_format@%$obj_format%g
5437 s%@te_file@%$te_file%g
5438 s%@install_tooldir@%$install_tooldir%g
5440 s%@BFDLIB@%$BFDLIB%g
5441 s%@OPCODES_LIB@%$OPCODES_LIB%g
5442 s%@ALL_OBJ_DEPS@%$ALL_OBJ_DEPS%g
5445 s%@LEXLIB@%$LEXLIB%g
5447 s%@LEX_OUTPUT_ROOT@%$LEX_OUTPUT_ROOT%g
5448 s%@ALLOCA@%$ALLOCA%g
5449 s%@USE_NLS@%$USE_NLS%g
5450 s%@MSGFMT@%$MSGFMT%g
5451 s%@GMSGFMT@%$GMSGFMT%g
5452 s%@XGETTEXT@%$XGETTEXT%g
5453 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
5454 s%@CATALOGS@%$CATALOGS%g
5455 s%@CATOBJEXT@%$CATOBJEXT%g
5456 s%@DATADIRNAME@%$DATADIRNAME%g
5457 s%@GMOFILES@%$GMOFILES%g
5458 s%@INSTOBJEXT@%$INSTOBJEXT%g
5459 s%@INTLDEPS@%$INTLDEPS%g
5460 s%@INTLLIBS@%$INTLLIBS%g
5461 s%@INTLOBJS@%$INTLOBJS%g
5462 s%@POFILES@%$POFILES%g
5464 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
5466 s%@GT_YES@%$GT_YES%g
5467 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
5469 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
5470 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
5472 s%@EXEEXT@%$EXEEXT%g
5477 cat >> $CONFIG_STATUS <<\EOF
5479 # Split the substitutions into bite-sized pieces for seds with
5480 # small command number limits, like on Digital OSF/1 and HP-UX.
5481 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
5482 ac_file
=1 # Number of current file.
5483 ac_beg
=1 # First line for current file.
5484 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
5487 while $ac_more_lines; do
5488 if test $ac_beg -gt 1; then
5489 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
5491 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
5493 if test ! -s conftest.s
$ac_file; then
5495 rm -f conftest.s
$ac_file
5497 if test -z "$ac_sed_cmds"; then
5498 ac_sed_cmds
="sed -f conftest.s$ac_file"
5500 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
5502 ac_file
=`expr $ac_file + 1`
5504 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
5507 if test -z "$ac_sed_cmds"; then
5512 cat >> $CONFIG_STATUS <<EOF
5514 CONFIG_FILES=\${CONFIG_FILES-"Makefile doc/Makefile .gdbinit:gdbinit.in po/Makefile.in:po/Make-in"}
5516 cat >> $CONFIG_STATUS <<\EOF
5517 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
5518 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5520 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
5521 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
5522 *) ac_file_in
="${ac_file}.in" ;;
5525 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
5527 # Remove last slash and all that follows it. Not all systems have dirname.
5528 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5529 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
5530 # The file is in a subdirectory.
5531 test ! -d "$ac_dir" && mkdir
"$ac_dir"
5532 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
5533 # A "../" for each directory in $ac_dir_suffix.
5534 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
5536 ac_dir_suffix
= ac_dots
=
5539 case "$ac_given_srcdir" in
5541 if test -z "$ac_dots"; then top_srcdir
=.
5542 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
5543 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
5545 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
5546 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
5549 case "$ac_given_INSTALL" in
5550 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
5551 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
5554 echo creating
"$ac_file"
5556 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
5558 *Makefile
*) ac_comsub
="1i\\
5559 # $configure_input" ;;
5563 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5565 s%@configure_input@%$configure_input%g
5566 s%@srcdir@%$srcdir%g
5567 s%@top_srcdir@%$top_srcdir%g
5568 s%@INSTALL@%$INSTALL%g
5569 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
5573 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5574 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5576 # ac_d sets the value in "#define NAME VALUE" lines.
5577 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5578 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
5581 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
5582 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5583 ac_uB
='\([ ]\)%\1#\2define\3'
5586 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5587 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5588 ac_eB
='$%\1#\2define\3'
5592 if test "${CONFIG_HEADERS+set}" != set; then
5594 cat >> $CONFIG_STATUS <<EOF
5595 CONFIG_HEADERS="config.h:config.in"
5597 cat >> $CONFIG_STATUS <<\EOF
5599 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
5600 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5602 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
5603 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
5604 *) ac_file_in
="${ac_file}.in" ;;
5607 echo creating
$ac_file
5609 rm -f conftest.frag conftest.
in conftest.out
5610 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5611 cat $ac_file_inputs > conftest.
in
5615 # Transform confdefs.h into a sed script conftest.vals that substitutes
5616 # the proper values into config.h.in to produce config.h. And first:
5617 # Protect against being on the right side of a sed subst in config.status.
5618 # Protect against being in an unquoted here document in config.status.
5620 cat > conftest.hdr
<<\EOF
5623 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
5627 sed -n -f conftest.hdr confdefs.h > conftest.vals
5630 # This sed command replaces #undef with comments. This is necessary, for
5631 # example, in the case of _POSIX_SOURCE, which is predefined and required
5632 # on some systems where configure will not decide to define it.
5633 cat >> conftest.vals <<\EOF
5634 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
5637 # Break up conftest.vals because some shells have a limit on
5638 # the size of here documents, and old seds have small limits too.
5643 ac_lines=`grep -c . conftest.vals
`
5644 # grep -c gives empty output for an empty file on some AIX systems.
5645 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
5646 # Write a limited-size here document to conftest.frag.
5647 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
5648 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
5650 sed -f conftest.frag conftest.in > conftest.out
5652 mv conftest.out conftest.in
5654 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
5656 mv conftest.tail conftest.vals
5660 cat >> $CONFIG_STATUS <<\EOF
5661 rm -f conftest.frag conftest.h
5662 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
5663 cat conftest.in >> conftest.h
5665 if cmp -s $ac_file conftest.h 2>/dev/null; then
5666 echo "$ac_file is unchanged"
5669 # Remove last slash and all that follows it. Not all systems have dirname.
5670 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
5671 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5672 # The file is in a subdirectory.
5673 test ! -d "$ac_dir" && mkdir "$ac_dir"
5676 mv conftest.h $ac_file
5681 cat >> $CONFIG_STATUS <<EOF
5683 target_cpu_type=${target_cpu_type}
5684 cgen_cpu_prefix=${cgen_cpu_prefix}
5685 obj_format=${obj_format}
5688 cat >> $CONFIG_STATUS <<\EOF
5689 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
5690 rm -f targ-cpu.c targ-cpu.h obj-format.h obj-format.c targ-env.h atof-targ.c itbl-cpu.h
5691 echo '#include "tc-'"${target_cpu_type}"'.h"' > targ-cpu.h
5692 echo '#include "obj-'"${obj_format}"'.h"' > obj-format.h
5693 echo '#include "te-'"${te_file}"'.h"' > targ-env.h
5694 echo '#include "itbl-'"${target_cpu_type}"'.h"' > itbl-cpu.h
5695 if test "x$cgen_cpu_prefix" != x ; then
5696 echo '#include "opcodes/'"${cgen_cpu_prefix}"'-desc.h"' > cgen-desc.h
5699 sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile
5702 chmod +x $CONFIG_STATUS
5703 rm -fr confdefs* $ac_clean_files
5704 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1