3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
15 --enable-shared[=PKGS] build shared libraries [default=yes]"
17 --enable-static[=PKGS] build static libraries [default=yes]"
19 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
21 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
23 --disable-libtool-lock avoid locking (might break parallel builds)"
25 --with-pic try to use only PIC/non-PIC objects [default=use both]"
27 --enable-bfd-assembler use BFD back end for writing object files"
29 targets alternative target configurations besides the primary"
31 --enable-commonbfdlib build shared BFD/opcodes/libiberty library"
33 --enable-build-warnings Enable build-time compiler warnings if gcc is used"
35 --disable-nls do not use Native Language Support"
37 --with-included-gettext use the GNU gettext library included here"
39 --enable-maintainer-mode enable make rules and dependencies not useful
40 (and sometimes confusing) to the casual installer"
42 # Initialize some variables set by options.
43 # The variables have the same names as the options, with
44 # dashes changed to underlines.
46 cache_file=./config.cache
55 program_transform_name=s,x,x,
64 bindir='${exec_prefix}/bin'
65 sbindir='${exec_prefix}/sbin'
66 libexecdir='${exec_prefix}/libexec'
67 datadir='${prefix}/share'
68 sysconfdir='${prefix}/etc'
69 sharedstatedir='${prefix}/com'
70 localstatedir='${prefix}/var'
71 libdir='${exec_prefix}/lib'
72 includedir='${prefix}/include'
73 oldincludedir='/usr/include'
74 infodir='${prefix}/info'
75 mandir='${prefix}/man'
77 # Initialize some other variables.
80 SHELL=${CONFIG_SHELL-/bin/sh}
81 # Maximum number of lines to put in a shell here document.
88 # If the previous option needs an argument, assign it.
89 if test -n "$ac_prev"; then
90 eval "$ac_prev=\$ac_option"
96 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
100 # Accept the important Cygnus configure options, so we can diagnose typos.
104 -bindir | --bindir | --bindi | --bind | --bin | --bi)
106 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
107 bindir="$ac_optarg" ;;
109 -build | --build | --buil | --bui | --bu)
111 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
112 build="$ac_optarg" ;;
114 -cache-file | --cache-file | --cache-fil | --cache-fi \
115 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
116 ac_prev=cache_file ;;
117 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
118 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
119 cache_file="$ac_optarg" ;;
121 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
123 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
125 datadir="$ac_optarg" ;;
127 -disable-* | --disable-*)
128 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
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'`
134 eval "enable_${ac_feature}=no" ;;
136 -enable-* | --enable-*)
137 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
138 # Reject names that are not valid shell variable names.
139 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
140 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
142 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
147 eval "enable_${ac_feature}='$ac_optarg'" ;;
149 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
150 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
151 | --exec | --exe | --ex)
152 ac_prev=exec_prefix ;;
153 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
154 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
155 | --exec=* | --exe=* | --ex=*)
156 exec_prefix="$ac_optarg" ;;
158 -gas | --gas | --ga | --g)
159 # Obsolete; use --with-gas.
162 -help | --help | --hel | --he)
163 # Omit some internal or obsolete options to make the list less imposing.
164 # This message is too long to be a string in the A/UX 3.1 sh.
166 Usage: configure [options] [host]
167 Options: [defaults in brackets after descriptions]
169 --cache-file=FILE cache test results in FILE
170 --help print this message
171 --no-create do not create output files
172 --quiet, --silent do not print \`checking...' messages
173 --site-file=FILE use FILE as the site file
174 --version print the version of autoconf that created configure
175 Directory and file names:
176 --prefix=PREFIX install architecture-independent files in PREFIX
178 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
180 --bindir=DIR user executables in DIR [EPREFIX/bin]
181 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
182 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
183 --datadir=DIR read-only architecture-independent data in DIR
185 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
186 --sharedstatedir=DIR modifiable architecture-independent data in DIR
188 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
189 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
190 --includedir=DIR C header files in DIR [PREFIX/include]
191 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
192 --infodir=DIR info documentation in DIR [PREFIX/info]
193 --mandir=DIR man documentation in DIR [PREFIX/man]
194 --srcdir=DIR find the sources in DIR [configure dir or ..]
195 --program-prefix=PREFIX prepend PREFIX to installed program names
196 --program-suffix=SUFFIX append SUFFIX to installed program names
197 --program-transform-name=PROGRAM
198 run sed PROGRAM on installed program names
202 --build=BUILD configure for building on BUILD [BUILD=HOST]
203 --host=HOST configure for HOST [guessed]
204 --target=TARGET configure for TARGET [TARGET=HOST]
205 Features and packages:
206 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
207 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
208 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
209 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
210 --x-includes=DIR X include files are in DIR
211 --x-libraries=DIR X library files are in DIR
213 if test -n "$ac_help"; then
214 echo "--enable and --with options recognized:$ac_help"
218 -host | --host | --hos | --ho)
220 -host=* | --host=* | --hos=* | --ho=*)
223 -includedir | --includedir | --includedi | --included | --include \
224 | --includ | --inclu | --incl | --inc)
225 ac_prev=includedir ;;
226 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
227 | --includ=* | --inclu=* | --incl=* | --inc=*)
228 includedir="$ac_optarg" ;;
230 -infodir | --infodir | --infodi | --infod | --info | --inf)
232 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
233 infodir="$ac_optarg" ;;
235 -libdir | --libdir | --libdi | --libd)
237 -libdir=* | --libdir=* | --libdi=* | --libd=*)
238 libdir="$ac_optarg" ;;
240 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
241 | --libexe | --libex | --libe)
242 ac_prev=libexecdir ;;
243 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
244 | --libexe=* | --libex=* | --libe=*)
245 libexecdir="$ac_optarg" ;;
247 -localstatedir | --localstatedir | --localstatedi | --localstated \
248 | --localstate | --localstat | --localsta | --localst \
249 | --locals | --local | --loca | --loc | --lo)
250 ac_prev=localstatedir ;;
251 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
252 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
253 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
254 localstatedir="$ac_optarg" ;;
256 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
258 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
259 mandir="$ac_optarg" ;;
262 # Obsolete; use --without-fp.
265 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
269 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
270 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
273 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
274 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
275 | --oldin | --oldi | --old | --ol | --o)
276 ac_prev=oldincludedir ;;
277 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
278 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
279 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
280 oldincludedir="$ac_optarg" ;;
282 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
284 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
285 prefix="$ac_optarg" ;;
287 -program-prefix | --program-prefix | --program-prefi | --program-pref \
288 | --program-pre | --program-pr | --program-p)
289 ac_prev=program_prefix ;;
290 -program-prefix=* | --program-prefix=* | --program-prefi=* \
291 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
292 program_prefix="$ac_optarg" ;;
294 -program-suffix | --program-suffix | --program-suffi | --program-suff \
295 | --program-suf | --program-su | --program-s)
296 ac_prev=program_suffix ;;
297 -program-suffix=* | --program-suffix=* | --program-suffi=* \
298 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
299 program_suffix="$ac_optarg" ;;
301 -program-transform-name | --program-transform-name \
302 | --program-transform-nam | --program-transform-na \
303 | --program-transform-n | --program-transform- \
304 | --program-transform | --program-transfor \
305 | --program-transfo | --program-transf \
306 | --program-trans | --program-tran \
307 | --progr-tra | --program-tr | --program-t)
308 ac_prev=program_transform_name ;;
309 -program-transform-name=* | --program-transform-name=* \
310 | --program-transform-nam=* | --program-transform-na=* \
311 | --program-transform-n=* | --program-transform-=* \
312 | --program-transform=* | --program-transfor=* \
313 | --program-transfo=* | --program-transf=* \
314 | --program-trans=* | --program-tran=* \
315 | --progr-tra=* | --program-tr=* | --program-t=*)
316 program_transform_name="$ac_optarg" ;;
318 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
319 | -silent | --silent | --silen | --sile | --sil)
322 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
324 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
326 sbindir="$ac_optarg" ;;
328 -sharedstatedir | --sharedstatedir | --sharedstatedi \
329 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
330 | --sharedst | --shareds | --shared | --share | --shar \
332 ac_prev=sharedstatedir ;;
333 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
334 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
335 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
337 sharedstatedir="$ac_optarg" ;;
339 -site | --site | --sit)
341 -site=* | --site=* | --sit=*)
344 -site-file | --site-file | --site-fil | --site-fi | --site-f)
346 -site-file=* | --site-file=* | --site-fil=* | --site-fi=* | --site-f=*)
347 sitefile="$ac_optarg" ;;
349 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
351 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
352 srcdir="$ac_optarg" ;;
354 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
355 | --syscon | --sysco | --sysc | --sys | --sy)
356 ac_prev=sysconfdir ;;
357 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
358 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
359 sysconfdir="$ac_optarg" ;;
361 -target | --target | --targe | --targ | --tar | --ta | --t)
363 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
364 target="$ac_optarg" ;;
366 -v | -verbose | --verbose | --verbos | --verbo | --verb)
369 -version | --version | --versio | --versi | --vers)
370 echo "configure generated by autoconf version 2.13"
374 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
375 # Reject names that are not valid shell variable names.
376 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
377 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
379 ac_package=`echo $ac_package| sed 's/-/_/g'`
384 eval "with_${ac_package}='$ac_optarg'" ;;
386 -without-* | --without-*)
387 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
388 # Reject names that are not valid shell variable names.
389 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
390 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
392 ac_package=`echo $ac_package| sed 's/-/_/g'`
393 eval "with_${ac_package}=no" ;;
396 # Obsolete; use --with-x.
399 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
400 | --x-incl | --x-inc | --x-in | --x-i)
401 ac_prev=x_includes ;;
402 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
403 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
404 x_includes="$ac_optarg" ;;
406 -x-libraries | --x-libraries | --x-librarie | --x-librari \
407 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
408 ac_prev=x_libraries ;;
409 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
410 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
411 x_libraries="$ac_optarg" ;;
413 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
417 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
418 echo "configure: warning: $ac_option: invalid host type" 1>&2
420 if test "x$nonopt" != xNONE; then
421 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
429 if test -n "$ac_prev"; then
430 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
433 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
435 # File descriptor usage:
438 # 2 errors and warnings
439 # 3 some systems may open it to /dev/tty
440 # 4 used on the Kubota Titan
441 # 6 checking for... messages and results
442 # 5 compiler messages saved in config.log
443 if test "$silent" = yes; then
451 This file contains any messages produced by compilers while
452 running configure, to aid debugging if configure makes a mistake.
455 # Strip out --no-create and --no-recursion so they do not pile up.
456 # Also quote any args containing shell metacharacters.
461 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
462 | --no-cr | --no-c) ;;
463 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
464 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
465 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
466 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
467 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
472 # Only set these to C if already set. These must not be set unconditionally
473 # because not all systems understand e.g. LANG=C (notably SCO).
474 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
475 # Non-C LC_CTYPE values break the ctype check.
476 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
477 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
478 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
479 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
481 # confdefs.h avoids OS command line length limits that DEFS can exceed.
482 rm -rf conftest* confdefs.h
483 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
486 # A filename unique to this package, relative to the directory that
487 # configure is in, which we can look for to find out if srcdir is correct.
490 # Find the source files, if location was not specified.
491 if test -z "$srcdir"; then
492 ac_srcdir_defaulted=yes
493 # Try the directory containing this script, then its parent.
495 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
496 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
498 if test ! -r $srcdir/$ac_unique_file; then
502 ac_srcdir_defaulted=no
504 if test ! -r $srcdir/$ac_unique_file; then
505 if test "$ac_srcdir_defaulted" = yes; then
506 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
508 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
511 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
513 # Prefer explicitly selected file to automatically selected ones.
514 if test -z "$sitefile"; then
515 if test -z "$CONFIG_SITE"; then
516 if test "x$prefix" != xNONE; then
517 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
519 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
523 CONFIG_SITE="$sitefile"
525 for ac_site_file in $CONFIG_SITE; do
526 if test -r "$ac_site_file"; then
527 echo "loading site script $ac_site_file"
532 if test -r "$cache_file"; then
533 echo "loading cache $cache_file"
536 echo "creating cache $cache_file"
541 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
542 ac_cpp='$CPP $CPPFLAGS'
543 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
544 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
545 cross_compiling=$ac_cv_prog_cc_cross
549 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
550 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
551 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
558 ac_n= ac_c='\c' ac_t=
561 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
562 echo "configure:563: checking for Cygwin environment" >&5
563 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
564 echo $ac_n "(cached) $ac_c" 1>&6
566 cat > conftest.$ac_ext <<EOF
567 #line 568 "configure"
568 #include "confdefs.h"
573 #define __CYGWIN__ __CYGWIN32__
578 if { (eval echo configure:579: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
582 echo "configure: failed program was:" >&5
583 cat conftest.$ac_ext >&5
591 echo "$ac_t""$ac_cv_cygwin" 1>&6
593 test "$ac_cv_cygwin" = yes && CYGWIN=yes
594 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
595 echo "configure:596: checking for mingw32 environment" >&5
596 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
597 echo $ac_n "(cached) $ac_c" 1>&6
599 cat > conftest.$ac_ext <<EOF
600 #line 601 "configure"
601 #include "confdefs.h"
607 if { (eval echo configure:608: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
611 echo "configure: failed program was:" >&5
612 cat conftest.$ac_ext >&5
620 echo "$ac_t""$ac_cv_mingw32" 1>&6
622 test "$ac_cv_mingw32" = yes && MINGW32=yes
626 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
627 if test -f $ac_dir/install-sh; then
629 ac_install_sh="$ac_aux_dir/install-sh -c"
631 elif test -f $ac_dir/install.sh; then
633 ac_install_sh="$ac_aux_dir/install.sh -c"
637 if test -z "$ac_aux_dir"; then
638 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
640 ac_config_guess=$ac_aux_dir/config.guess
641 ac_config_sub=$ac_aux_dir/config.sub
642 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
645 # Do some error checking and defaulting for the host and target type.
647 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
650 # 1. You are not allowed to specify --host, --target, and nonopt at the
652 # 2. Host defaults to nonopt.
653 # 3. If nonopt is not specified, then host defaults to the current host,
654 # as determined by config.guess.
655 # 4. Target and build default to nonopt.
656 # 5. If nonopt is not specified, then target and build default to host.
658 # The aliases save the names the user supplied, while $host etc.
659 # will get canonicalized.
660 case $host---$target---$nonopt in
661 NONE---*---* | *---NONE---* | *---*---NONE) ;;
662 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
666 # Make sure we can run config.sub.
667 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
668 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
671 echo $ac_n "checking host system type""... $ac_c" 1>&6
672 echo "configure:673: checking host system type" >&5
675 case "$host_alias" in
679 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
680 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
682 *) host_alias=$nonopt ;;
686 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
687 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
688 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
689 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
690 echo "$ac_t""$host" 1>&6
692 echo $ac_n "checking target system type""... $ac_c" 1>&6
693 echo "configure:694: checking target system type" >&5
696 case "$target_alias" in
699 NONE) target_alias=$host_alias ;;
700 *) target_alias=$nonopt ;;
704 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
705 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
706 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
707 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
708 echo "$ac_t""$target" 1>&6
710 echo $ac_n "checking build system type""... $ac_c" 1>&6
711 echo "configure:712: checking build system type" >&5
714 case "$build_alias" in
717 NONE) build_alias=$host_alias ;;
718 *) build_alias=$nonopt ;;
722 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
723 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
724 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
725 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
726 echo "$ac_t""$build" 1>&6
728 test "$host_alias" != "$target_alias" &&
729 test "$program_prefix$program_suffix$program_transform_name" = \
731 program_prefix=${target_alias}-
734 # Find a good install program. We prefer a C program (faster),
735 # so one script is as good as another. But avoid the broken or
736 # incompatible versions:
737 # SysV /etc/install, /usr/sbin/install
738 # SunOS /usr/etc/install
741 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
742 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
743 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
744 # ./install, which can be erroneously created by make from ./install.sh.
745 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
746 echo "configure:747: checking for a BSD compatible install" >&5
747 if test -z "$INSTALL"; then
748 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
749 echo $ac_n "(cached) $ac_c" 1>&6
751 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
752 for ac_dir in $PATH; do
753 # Account for people who put trailing slashes in PATH elements.
755 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
757 # OSF1 and SCO ODT 3.0 have their own names for install.
758 # Don't use installbsd from OSF since it installs stuff as root
760 for ac_prog in ginstall scoinst install; do
761 if test -f $ac_dir/$ac_prog; then
762 if test $ac_prog = install &&
763 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
764 # AIX install. It has an incompatible calling convention.
767 ac_cv_path_install="$ac_dir/$ac_prog -c"
778 if test "${ac_cv_path_install+set}" = set; then
779 INSTALL="$ac_cv_path_install"
781 # As a last resort, use the slow shell script. We don't cache a
782 # path for INSTALL within a source directory, because that will
783 # break other packages using the cache if that directory is
784 # removed, or if the path is relative.
785 INSTALL="$ac_install_sh"
788 echo "$ac_t""$INSTALL" 1>&6
790 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
791 # It thinks the first close brace ends the variable substitution.
792 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
794 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
796 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
798 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
799 echo "configure:800: checking whether build environment is sane" >&5
802 echo timestamp > conftestfile
803 # Do `set' in a subshell so we don't clobber the current shell's
804 # arguments. Must try -L first in case configure is actually a
805 # symlink; some systems play weird games with the mod time of symlinks
806 # (eg FreeBSD returns the mod time of the symlink's containing
809 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
810 if test "$*" = "X"; then
812 set X `ls -t $srcdir/configure conftestfile`
814 if test "$*" != "X $srcdir/configure conftestfile" \
815 && test "$*" != "X conftestfile $srcdir/configure"; then
817 # If neither matched, then we have a broken ls. This can happen
818 # if, for instance, CONFIG_SHELL is bash and it inherits a
819 # broken ls alias from the environment. This has actually
820 # happened. Such a system could not be considered "sane".
821 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
822 alias in your environment" 1>&2; exit 1; }
825 test "$2" = conftestfile
831 { echo "configure: error: newly created file is older than distributed files!
832 Check your system clock" 1>&2; exit 1; }
835 echo "$ac_t""yes" 1>&6
836 if test "$program_transform_name" = s,x,x,; then
837 program_transform_name=
839 # Double any \ or $. echo might interpret backslashes.
840 cat <<\EOF_SED > conftestsed
841 s,\\,\\\\,g; s,\$,$$,g
843 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
846 test "$program_prefix" != NONE &&
847 program_transform_name="s,^,${program_prefix},; $program_transform_name"
848 # Use a double $ so make ignores it.
849 test "$program_suffix" != NONE &&
850 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
852 # sed with no file args requires a program.
853 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
855 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
856 echo "configure:857: checking whether ${MAKE-make} sets \${MAKE}" >&5
857 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
858 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
859 echo $ac_n "(cached) $ac_c" 1>&6
861 cat > conftestmake <<\EOF
863 @echo 'ac_maketemp="${MAKE}"'
865 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
866 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
867 if test -n "$ac_maketemp"; then
868 eval ac_cv_prog_make_${ac_make}_set=yes
870 eval ac_cv_prog_make_${ac_make}_set=no
874 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
875 echo "$ac_t""yes" 1>&6
878 echo "$ac_t""no" 1>&6
879 SET_MAKE="MAKE=${MAKE-make}"
887 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
888 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
890 cat >> confdefs.h <<EOF
891 #define PACKAGE "$PACKAGE"
894 cat >> confdefs.h <<EOF
895 #define VERSION "$VERSION"
900 missing_dir=`cd $ac_aux_dir && pwd`
901 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
902 echo "configure:903: checking for working aclocal" >&5
903 # Run test in a subshell; some versions of sh will print an error if
904 # an executable is not found, even if stderr is redirected.
905 # Redirect stdin to placate older versions of autoconf. Sigh.
906 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
908 echo "$ac_t""found" 1>&6
910 ACLOCAL="$missing_dir/missing aclocal"
911 echo "$ac_t""missing" 1>&6
914 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
915 echo "configure:916: checking for working autoconf" >&5
916 # Run test in a subshell; some versions of sh will print an error if
917 # an executable is not found, even if stderr is redirected.
918 # Redirect stdin to placate older versions of autoconf. Sigh.
919 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
921 echo "$ac_t""found" 1>&6
923 AUTOCONF="$missing_dir/missing autoconf"
924 echo "$ac_t""missing" 1>&6
927 echo $ac_n "checking for working automake""... $ac_c" 1>&6
928 echo "configure:929: checking for working automake" >&5
929 # Run test in a subshell; some versions of sh will print an error if
930 # an executable is not found, even if stderr is redirected.
931 # Redirect stdin to placate older versions of autoconf. Sigh.
932 if (automake --version) < /dev/null > /dev/null 2>&1; then
934 echo "$ac_t""found" 1>&6
936 AUTOMAKE="$missing_dir/missing automake"
937 echo "$ac_t""missing" 1>&6
940 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
941 echo "configure:942: checking for working autoheader" >&5
942 # Run test in a subshell; some versions of sh will print an error if
943 # an executable is not found, even if stderr is redirected.
944 # Redirect stdin to placate older versions of autoconf. Sigh.
945 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
946 AUTOHEADER=autoheader
947 echo "$ac_t""found" 1>&6
949 AUTOHEADER="$missing_dir/missing autoheader"
950 echo "$ac_t""missing" 1>&6
953 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
954 echo "configure:955: checking for working makeinfo" >&5
955 # Run test in a subshell; some versions of sh will print an error if
956 # an executable is not found, even if stderr is redirected.
957 # Redirect stdin to placate older versions of autoconf. Sigh.
958 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
960 echo "$ac_t""found" 1>&6
962 MAKEINFO="$missing_dir/missing makeinfo"
963 echo "$ac_t""missing" 1>&6
968 # Check whether --enable-shared or --disable-shared was given.
969 if test "${enable_shared+set}" = set; then
970 enableval="$enable_shared"
973 yes) enable_shared=yes ;;
974 no) enable_shared=no ;;
977 # Look at the argument we got. We use all the common list separators.
978 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
979 for pkg in $enableval; do
980 if test "X$pkg" = "X$p"; then
991 # Check whether --enable-static or --disable-static was given.
992 if test "${enable_static+set}" = set; then
993 enableval="$enable_static"
996 yes) enable_static=yes ;;
997 no) enable_static=no ;;
1000 # Look at the argument we got. We use all the common list separators.
1001 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1002 for pkg in $enableval; do
1003 if test "X$pkg" = "X$p"; then
1014 # Check whether --enable-fast-install or --disable-fast-install was given.
1015 if test "${enable_fast_install+set}" = set; then
1016 enableval="$enable_fast_install"
1017 p=${PACKAGE-default}
1018 case "$enableval" in
1019 yes) enable_fast_install=yes ;;
1020 no) enable_fast_install=no ;;
1022 enable_fast_install=no
1023 # Look at the argument we got. We use all the common list separators.
1024 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1025 for pkg in $enableval; do
1026 if test "X$pkg" = "X$p"; then
1027 enable_fast_install=yes
1034 enable_fast_install=yes
1037 # Extract the first word of "gcc", so it can be a program name with args.
1038 set dummy gcc; ac_word=$2
1039 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1040 echo "configure:1041: checking for $ac_word" >&5
1041 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1042 echo $ac_n "(cached) $ac_c" 1>&6
1044 if test -n "$CC"; then
1045 ac_cv_prog_CC="$CC" # Let the user override the test.
1047 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1049 for ac_dir in $ac_dummy; do
1050 test -z "$ac_dir" && ac_dir=.
1051 if test -f $ac_dir/$ac_word; then
1060 if test -n "$CC"; then
1061 echo "$ac_t""$CC" 1>&6
1063 echo "$ac_t""no" 1>&6
1066 if test -z "$CC"; then
1067 # Extract the first word of "cc", so it can be a program name with args.
1068 set dummy cc; ac_word=$2
1069 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1070 echo "configure:1071: checking for $ac_word" >&5
1071 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1072 echo $ac_n "(cached) $ac_c" 1>&6
1074 if test -n "$CC"; then
1075 ac_cv_prog_CC="$CC" # Let the user override the test.
1077 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1080 for ac_dir in $ac_dummy; do
1081 test -z "$ac_dir" && ac_dir=.
1082 if test -f $ac_dir/$ac_word; then
1083 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1084 ac_prog_rejected=yes
1092 if test $ac_prog_rejected = yes; then
1093 # We found a bogon in the path, so make sure we never use it.
1094 set dummy $ac_cv_prog_CC
1096 if test $# -gt 0; then
1097 # We chose a different compiler from the bogus one.
1098 # However, it has the same basename, so the bogon will be chosen
1099 # first if we set CC to just the basename; use the full file name.
1101 set dummy "$ac_dir/$ac_word" "$@"
1109 if test -n "$CC"; then
1110 echo "$ac_t""$CC" 1>&6
1112 echo "$ac_t""no" 1>&6
1115 if test -z "$CC"; then
1116 case "`uname -s`" in
1118 # Extract the first word of "cl", so it can be a program name with args.
1119 set dummy cl; ac_word=$2
1120 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1121 echo "configure:1122: checking for $ac_word" >&5
1122 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1123 echo $ac_n "(cached) $ac_c" 1>&6
1125 if test -n "$CC"; then
1126 ac_cv_prog_CC="$CC" # Let the user override the test.
1128 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1130 for ac_dir in $ac_dummy; do
1131 test -z "$ac_dir" && ac_dir=.
1132 if test -f $ac_dir/$ac_word; then
1141 if test -n "$CC"; then
1142 echo "$ac_t""$CC" 1>&6
1144 echo "$ac_t""no" 1>&6
1149 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1152 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1153 echo "configure:1154: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1156 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1157 ac_cpp='$CPP $CPPFLAGS'
1158 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1159 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1160 cross_compiling=$ac_cv_prog_cc_cross
1162 cat > conftest.$ac_ext << EOF
1164 #line 1165 "configure"
1165 #include "confdefs.h"
1169 if { (eval echo configure:1170: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1170 ac_cv_prog_cc_works=yes
1171 # If we can't run a trivial program, we are probably using a cross compiler.
1172 if (./conftest; exit) 2>/dev/null; then
1173 ac_cv_prog_cc_cross=no
1175 ac_cv_prog_cc_cross=yes
1178 echo "configure: failed program was:" >&5
1179 cat conftest.$ac_ext >&5
1180 ac_cv_prog_cc_works=no
1184 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1185 ac_cpp='$CPP $CPPFLAGS'
1186 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1187 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1188 cross_compiling=$ac_cv_prog_cc_cross
1190 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1191 if test $ac_cv_prog_cc_works = no; then
1192 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1194 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1195 echo "configure:1196: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1196 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1197 cross_compiling=$ac_cv_prog_cc_cross
1199 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1200 echo "configure:1201: checking whether we are using GNU C" >&5
1201 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1202 echo $ac_n "(cached) $ac_c" 1>&6
1204 cat > conftest.c <<EOF
1209 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1210: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1216 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1218 if test $ac_cv_prog_gcc = yes; then
1224 ac_test_CFLAGS="${CFLAGS+set}"
1225 ac_save_CFLAGS="$CFLAGS"
1227 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1228 echo "configure:1229: checking whether ${CC-cc} accepts -g" >&5
1229 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1230 echo $ac_n "(cached) $ac_c" 1>&6
1232 echo 'void f(){}' > conftest.c
1233 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1242 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1243 if test "$ac_test_CFLAGS" = set; then
1244 CFLAGS="$ac_save_CFLAGS"
1245 elif test $ac_cv_prog_cc_g = yes; then
1246 if test "$GCC" = yes; then
1252 if test "$GCC" = yes; then
1259 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1260 if test "${with_gnu_ld+set}" = set; then
1261 withval="$with_gnu_ld"
1262 test "$withval" = no || with_gnu_ld=yes
1268 if test "$ac_cv_prog_gcc" = yes; then
1269 # Check if gcc -print-prog-name=ld gives a path.
1270 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1271 echo "configure:1272: checking for ld used by GCC" >&5
1274 # gcc leaves a trailing carriage return which upsets mingw
1275 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1277 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1280 # Accept absolute paths.
1281 [\\/]* | [A-Za-z]:[\\/]*)
1282 re_direlt='/[^/][^/]*/\.\./'
1283 # Canonicalize the path of ld
1284 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1285 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1286 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1288 test -z "$LD" && LD="$ac_prog"
1291 # If it fails, then pretend we aren't using GCC.
1295 # If it is relative, then search for the first ld in PATH.
1299 elif test "$with_gnu_ld" = yes; then
1300 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1301 echo "configure:1302: checking for GNU ld" >&5
1303 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1304 echo "configure:1305: checking for non-GNU ld" >&5
1306 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1307 echo $ac_n "(cached) $ac_c" 1>&6
1309 if test -z "$LD"; then
1310 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1311 for ac_dir in $PATH; do
1312 test -z "$ac_dir" && ac_dir=.
1313 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1314 ac_cv_path_LD="$ac_dir/$ac_prog"
1315 # Check to see if the program is GNU ld. I'd rather use --version,
1316 # but apparently some GNU ld's only accept -v.
1317 # Break only if it was the GNU/non-GNU ld that we prefer.
1318 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1319 test "$with_gnu_ld" != no && break
1321 test "$with_gnu_ld" != yes && break
1327 ac_cv_path_LD="$LD" # Let the user override the test with a path.
1332 if test -n "$LD"; then
1333 echo "$ac_t""$LD" 1>&6
1335 echo "$ac_t""no" 1>&6
1337 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1338 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1339 echo "configure:1340: checking if the linker ($LD) is GNU ld" >&5
1340 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1341 echo $ac_n "(cached) $ac_c" 1>&6
1343 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1344 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1345 ac_cv_prog_gnu_ld=yes
1347 ac_cv_prog_gnu_ld=no
1351 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1352 with_gnu_ld=$ac_cv_prog_gnu_ld
1355 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1356 echo "configure:1357: checking for $LD option to reload object files" >&5
1357 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1358 echo $ac_n "(cached) $ac_c" 1>&6
1360 lt_cv_ld_reload_flag='-r'
1363 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1364 reload_flag=$lt_cv_ld_reload_flag
1365 test -n "$reload_flag" && reload_flag=" $reload_flag"
1367 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1368 echo "configure:1369: checking for BSD-compatible nm" >&5
1369 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1370 echo $ac_n "(cached) $ac_c" 1>&6
1372 if test -n "$NM"; then
1373 # Let the user override the test.
1376 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1377 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1378 test -z "$ac_dir" && ac_dir=.
1379 tmp_nm=$ac_dir/${ac_tool_prefix}nm
1380 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1381 # Check to see if the nm accepts a BSD-compat flag.
1382 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1383 # nm: unknown option "B" ignored
1384 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1385 ac_cv_path_NM="$tmp_nm -B"
1387 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1388 ac_cv_path_NM="$tmp_nm -p"
1391 ac_cv_path_NM=${ac_cv_path_NM="$tmp_nm"} # keep the first match, but
1392 continue # so that we can try to find one that supports BSD flags
1397 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
1402 echo "$ac_t""$NM" 1>&6
1404 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1405 echo "configure:1406: checking whether ln -s works" >&5
1406 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1407 echo $ac_n "(cached) $ac_c" 1>&6
1410 if ln -s X conftestdata 2>/dev/null
1413 ac_cv_prog_LN_S="ln -s"
1418 LN_S="$ac_cv_prog_LN_S"
1419 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1420 echo "$ac_t""yes" 1>&6
1422 echo "$ac_t""no" 1>&6
1425 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1426 echo "configure:1427: checking how to recognise dependant libraries" >&5
1427 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1428 echo $ac_n "(cached) $ac_c" 1>&6
1430 lt_cv_file_magic_cmd='${MAGIC}'
1431 lt_cv_file_magic_test_file=
1432 lt_cv_deplibs_check_method='unknown'
1433 # Need to set the preceding variable on all platforms that support
1434 # interlibrary dependencies.
1435 # 'none' -- dependencies not supported.
1436 # `unknown' -- same as none, but documents that we really don't know.
1437 # 'pass_all' -- all dependencies passed with no checks.
1438 # 'test_compile' -- check by making test program.
1439 # 'file_magic [regex]' -- check by looking for files in library path
1440 # which responds to the $file_magic_cmd with a given egrep regex.
1441 # If you have `file' or equivalent on your system and you're not sure
1442 # whether `pass_all' will *always* work, you probably want this one.
1446 lt_cv_deplibs_check_method=pass_all
1450 lt_cv_deplibs_check_method=pass_all
1454 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1455 lt_cv_file_magic_cmd='/usr/bin/file -L'
1456 lt_cv_file_magic_test_file=/shlib/libc.so
1460 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1461 lt_cv_file_magic_cmd='${OBJDUMP} -f'
1465 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1468 lt_cv_deplibs_check_method=='file_magic OpenBSD/i[3-9]86 demand paged shared library'
1469 lt_cv_file_magic_cmd=/usr/bin/file
1470 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1474 lt_cv_deplibs_check_method=pass_all
1479 lt_cv_deplibs_check_method=pass_all
1483 # TODO: Does this work for hpux-11 too?
1484 lt_cv_deplibs_check_method='file_magic (s0-90-90-9|PA-RISC0-9.0-9) shared library'
1485 lt_cv_file_magic_cmd=/usr/bin/file
1486 lt_cv_file_magic_test_file=/usr/lib/libc.sl
1492 # this will be overridden with pass_all, but let us keep it just in case
1493 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
1497 *-32|*"-32 ") libmagic=32-bit;;
1498 *-n32|*"-n32 ") libmagic=N32;;
1499 *-64|*"-64 ") libmagic=64-bit;;
1500 *) libmagic=never-match;;
1502 # this will be overridden with pass_all, but let us keep it just in case
1503 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
1506 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
1507 lt_cv_deplibs_check_method=pass_all
1510 # This must be Linux ELF.
1513 alpha* | i*86 | powerpc* | sparc* | ia64* )
1514 lt_cv_deplibs_check_method=pass_all ;;
1516 # glibc up to 2.1.1 does not perform some relocations on ARM
1517 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
1519 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
1523 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then :
1525 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
1526 lt_cv_file_magic_cmd='/usr/bin/file -L'
1527 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
1531 osf3* | osf4* | osf5*)
1532 # this will be overridden with pass_all, but let us keep it just in case
1533 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
1534 lt_cv_file_magic_test_file=/shlib/libc.so
1535 lt_cv_deplibs_check_method=pass_all
1539 lt_cv_deplibs_check_method=pass_all
1543 lt_cv_deplibs_check_method=pass_all
1544 lt_cv_file_magic_test_file=/lib/libc.so
1547 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
1548 case "$host_vendor" in
1550 lt_cv_deplibs_check_method=pass_all
1553 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
1554 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
1562 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
1563 file_magic_cmd=$lt_cv_file_magic_cmd
1564 deplibs_check_method=$lt_cv_deplibs_check_method
1566 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
1567 echo "configure:1568: checking for object suffix" >&5
1568 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
1569 echo $ac_n "(cached) $ac_c" 1>&6
1572 echo 'int i = 1;' > conftest.$ac_ext
1573 if { (eval echo configure:1574: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1574 for ac_file in conftest.*; do
1577 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
1581 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
1586 echo "$ac_t""$ac_cv_objext" 1>&6
1587 OBJEXT=$ac_cv_objext
1588 ac_objext=$ac_cv_objext
1592 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1593 echo "configure:1594: checking for executable suffix" >&5
1594 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1595 echo $ac_n "(cached) $ac_c" 1>&6
1597 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1601 echo 'int main () { return 0; }' > conftest.$ac_ext
1603 if { (eval echo configure:1604: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1604 for file in conftest.*; do
1606 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
1607 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1611 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1614 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1619 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1620 echo "$ac_t""${ac_cv_exeext}" 1>&6
1623 if test $host != $build; then
1624 ac_tool_prefix=${host_alias}-
1629 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
1631 # Only perform the check for file, if the check method requires it
1632 case "$deplibs_check_method" in
1634 if test "$file_magic_cmd" = '${MAGIC}'; then
1635 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
1636 echo "configure:1637: checking for ${ac_tool_prefix}file" >&5
1637 if eval "test \"`echo '$''{'lt_cv_path_MAGIC'+set}'`\" = set"; then
1638 echo $ac_n "(cached) $ac_c" 1>&6
1642 lt_cv_path_MAGIC="$MAGIC" # Let the user override the test with a path.
1645 ac_cv_path_MAGIC="$MAGIC" # Let the user override the test with a dos path.
1648 ac_save_MAGIC="$MAGIC"
1649 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1650 ac_dummy="/usr/bin:$PATH"
1651 for ac_dir in $ac_dummy; do
1652 test -z "$ac_dir" && ac_dir=.
1653 if test -f $ac_dir/${ac_tool_prefix}file; then
1654 lt_cv_path_MAGIC="$ac_dir/${ac_tool_prefix}file"
1655 if test -n "$file_magic_test_file"; then
1656 case "$deplibs_check_method" in
1658 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
1659 MAGIC="$lt_cv_path_MAGIC"
1660 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
1661 egrep "$file_magic_regex" > /dev/null; then
1666 *** Warning: the command libtool uses to detect shared libraries,
1667 *** $file_magic_cmd, produces output that libtool cannot recognize.
1668 *** The result is that libtool may fail to recognize shared libraries
1669 *** as such. This will affect the creation of libtool libraries that
1670 *** depend on shared libraries, but programs linked with such libtool
1671 *** libraries will work regardless of this problem. Nevertheless, you
1672 *** may want to report the problem to your system manager and/or to
1673 *** bug-libtool@gnu.org
1683 MAGIC="$ac_save_MAGIC"
1688 MAGIC="$lt_cv_path_MAGIC"
1689 if test -n "$MAGIC"; then
1690 echo "$ac_t""$MAGIC" 1>&6
1692 echo "$ac_t""no" 1>&6
1695 if test -z "$lt_cv_path_MAGIC"; then
1696 if test -n "$ac_tool_prefix"; then
1697 echo $ac_n "checking for file""... $ac_c" 1>&6
1698 echo "configure:1699: checking for file" >&5
1699 if eval "test \"`echo '$''{'lt_cv_path_MAGIC'+set}'`\" = set"; then
1700 echo $ac_n "(cached) $ac_c" 1>&6
1704 lt_cv_path_MAGIC="$MAGIC" # Let the user override the test with a path.
1707 ac_cv_path_MAGIC="$MAGIC" # Let the user override the test with a dos path.
1710 ac_save_MAGIC="$MAGIC"
1711 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1712 ac_dummy="/usr/bin:$PATH"
1713 for ac_dir in $ac_dummy; do
1714 test -z "$ac_dir" && ac_dir=.
1715 if test -f $ac_dir/file; then
1716 lt_cv_path_MAGIC="$ac_dir/file"
1717 if test -n "$file_magic_test_file"; then
1718 case "$deplibs_check_method" in
1720 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
1721 MAGIC="$lt_cv_path_MAGIC"
1722 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
1723 egrep "$file_magic_regex" > /dev/null; then
1728 *** Warning: the command libtool uses to detect shared libraries,
1729 *** $file_magic_cmd, produces output that libtool cannot recognize.
1730 *** The result is that libtool may fail to recognize shared libraries
1731 *** as such. This will affect the creation of libtool libraries that
1732 *** depend on shared libraries, but programs linked with such libtool
1733 *** libraries will work regardless of this problem. Nevertheless, you
1734 *** may want to report the problem to your system manager and/or to
1735 *** bug-libtool@gnu.org
1745 MAGIC="$ac_save_MAGIC"
1750 MAGIC="$lt_cv_path_MAGIC"
1751 if test -n "$MAGIC"; then
1752 echo "$ac_t""$MAGIC" 1>&6
1754 echo "$ac_t""no" 1>&6
1766 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1767 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1768 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1769 echo "configure:1770: checking for $ac_word" >&5
1770 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1771 echo $ac_n "(cached) $ac_c" 1>&6
1773 if test -n "$RANLIB"; then
1774 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1776 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1778 for ac_dir in $ac_dummy; do
1779 test -z "$ac_dir" && ac_dir=.
1780 if test -f $ac_dir/$ac_word; then
1781 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1788 RANLIB="$ac_cv_prog_RANLIB"
1789 if test -n "$RANLIB"; then
1790 echo "$ac_t""$RANLIB" 1>&6
1792 echo "$ac_t""no" 1>&6
1796 if test -z "$ac_cv_prog_RANLIB"; then
1797 if test -n "$ac_tool_prefix"; then
1798 # Extract the first word of "ranlib", so it can be a program name with args.
1799 set dummy ranlib; ac_word=$2
1800 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1801 echo "configure:1802: checking for $ac_word" >&5
1802 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1803 echo $ac_n "(cached) $ac_c" 1>&6
1805 if test -n "$RANLIB"; then
1806 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1808 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1810 for ac_dir in $ac_dummy; do
1811 test -z "$ac_dir" && ac_dir=.
1812 if test -f $ac_dir/$ac_word; then
1813 ac_cv_prog_RANLIB="ranlib"
1818 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1821 RANLIB="$ac_cv_prog_RANLIB"
1822 if test -n "$RANLIB"; then
1823 echo "$ac_t""$RANLIB" 1>&6
1825 echo "$ac_t""no" 1>&6
1833 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1834 set dummy ${ac_tool_prefix}strip; ac_word=$2
1835 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1836 echo "configure:1837: checking for $ac_word" >&5
1837 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1838 echo $ac_n "(cached) $ac_c" 1>&6
1840 if test -n "$STRIP"; then
1841 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1843 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1845 for ac_dir in $ac_dummy; do
1846 test -z "$ac_dir" && ac_dir=.
1847 if test -f $ac_dir/$ac_word; then
1848 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1855 STRIP="$ac_cv_prog_STRIP"
1856 if test -n "$STRIP"; then
1857 echo "$ac_t""$STRIP" 1>&6
1859 echo "$ac_t""no" 1>&6
1863 if test -z "$ac_cv_prog_STRIP"; then
1864 if test -n "$ac_tool_prefix"; then
1865 # Extract the first word of "strip", so it can be a program name with args.
1866 set dummy strip; ac_word=$2
1867 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1868 echo "configure:1869: checking for $ac_word" >&5
1869 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1870 echo $ac_n "(cached) $ac_c" 1>&6
1872 if test -n "$STRIP"; then
1873 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1875 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1877 for ac_dir in $ac_dummy; do
1878 test -z "$ac_dir" && ac_dir=.
1879 if test -f $ac_dir/$ac_word; then
1880 ac_cv_prog_STRIP="strip"
1885 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
1888 STRIP="$ac_cv_prog_STRIP"
1889 if test -n "$STRIP"; then
1890 echo "$ac_t""$STRIP" 1>&6
1892 echo "$ac_t""no" 1>&6
1901 # Check for any special flags to pass to ltconfig.
1902 libtool_flags="--cache-file=$cache_file"
1903 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
1904 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
1905 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
1906 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
1907 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
1910 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
1911 if test "${enable_libtool_lock+set}" = set; then
1912 enableval="$enable_libtool_lock"
1916 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
1917 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
1919 # Check whether --with-pic or --without-pic was given.
1920 if test "${with_pic+set}" = set; then
1927 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
1928 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
1930 # Some flags need to be propagated to the compiler or linker for good
1934 # Find out which ABI we are using.
1935 echo '#line 1936 "configure"' > conftest.$ac_ext
1936 if { (eval echo configure:1937: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1937 case "`/usr/bin/file conftest.o`" in
1953 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1954 SAVE_CFLAGS="$CFLAGS"
1955 CFLAGS="$CFLAGS -belf"
1956 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
1957 echo "configure:1958: checking whether the C compiler needs -belf" >&5
1958 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
1959 echo $ac_n "(cached) $ac_c" 1>&6
1963 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1964 ac_cpp='$CPP $CPPFLAGS'
1965 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1966 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1967 cross_compiling=$ac_cv_prog_cc_cross
1969 cat > conftest.$ac_ext <<EOF
1970 #line 1971 "configure"
1971 #include "confdefs.h"
1977 if { (eval echo configure:1978: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1979 lt_cv_cc_needs_belf=yes
1981 echo "configure: failed program was:" >&5
1982 cat conftest.$ac_ext >&5
1984 lt_cv_cc_needs_belf=no
1988 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1989 ac_cpp='$CPP $CPPFLAGS'
1990 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1991 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1992 cross_compiling=$ac_cv_prog_cc_cross
1996 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
1997 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1998 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1999 CFLAGS="$SAVE_CFLAGS"
2007 # Save cache, so that ltconfig can load it
2008 cat > confcache <<\EOF
2009 # This file is a shell script that caches the results of configure
2010 # tests run on this system so they can be shared between configure
2011 # scripts and configure runs. It is not useful on other systems.
2012 # If it contains results you don't want to keep, you may remove or edit it.
2014 # By default, configure uses ./config.cache as the cache file,
2015 # creating it if it does not exist already. You can give configure
2016 # the --cache-file=FILE option to use a different cache file; that is
2017 # what configure does when it calls configure scripts in
2018 # subdirectories, so they share the cache.
2019 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2020 # config.status only pays attention to the cache file if you give it the
2021 # --recheck option to rerun configure.
2024 # The following way of writing the cache mishandles newlines in values,
2025 # but we know of no workaround that is simple, portable, and efficient.
2026 # So, don't put newlines in cache variables' values.
2027 # Ultrix sh set writes to stderr and can't be redirected directly,
2028 # and sets the high bit in the cache file unless we assign to the vars.
2030 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2032 # `set' does not quote correctly, so add quotes (double-quote substitution
2033 # turns \\\\ into \\, and sed turns \\ into \).
2035 -e "s/'/'\\\\''/g" \
2036 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2039 # `set' quotes correctly as required by POSIX, so do not add quotes.
2040 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2043 if cmp -s $cache_file confcache; then
2046 if test -w $cache_file; then
2047 echo "updating cache $cache_file"
2048 cat confcache > $cache_file
2050 echo "not updating unwritable cache $cache_file"
2056 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2057 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2058 MAGIC="$MAGIC" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2059 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2060 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2061 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2062 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
2063 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2064 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
2065 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2067 # Reload cache, that may have been modified by ltconfig
2068 if test -r "$cache_file"; then
2069 echo "loading cache $cache_file"
2072 echo "creating cache $cache_file"
2077 # This can be used to rebuild libtool when needed
2078 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2080 # Always use our own libtool.
2081 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2083 # Redirect the config.log output again, so that the ltconfig log is not
2084 # clobbered by the next message.
2085 exec 5>>./config.log
2094 # Check whether --enable-bfd-assembler or --disable-bfd-assembler was given.
2095 if test "${enable_bfd_assembler+set}" = set; then
2096 enableval="$enable_bfd_assembler"
2097 case "${enableval}" in
2098 yes) need_bfd=yes user_bfd_gas=yes ;;
2099 no) user_bfd_gas=no ;;
2100 *) { echo "configure: error: bad value ${enableval} given for bfd-assembler option" 1>&2; exit 1; } ;;
2103 # Check whether --enable-targets or --disable-targets was given.
2104 if test "${enable_targets+set}" = set; then
2105 enableval="$enable_targets"
2106 case "${enableval}" in
2107 yes | "") { echo "configure: error: enable-targets option must specify target names or 'all'" 1>&2; exit 1; }
2109 no) enable_targets= ;;
2110 *) enable_targets=$enableval ;;
2113 # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
2114 if test "${enable_commonbfdlib+set}" = set; then
2115 enableval="$enable_commonbfdlib"
2116 case "${enableval}" in
2117 yes) commonbfdlib=true ;;
2118 no) commonbfdlib=false ;;
2119 *) { echo "configure: error: bad value ${enableval} for BFD commonbfdlib option" 1>&2; exit 1; } ;;
2125 build_warnings="-W -Wall"
2126 # Check whether --enable-build-warnings or --disable-build-warnings was given.
2127 if test "${enable_build_warnings+set}" = set; then
2128 enableval="$enable_build_warnings"
2129 case "${enableval}" in
2131 no) build_warnings="-w";;
2132 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
2133 build_warnings="${build_warnings} ${t}";;
2134 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
2135 build_warnings="${t} ${build_warnings}";;
2136 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
2138 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
2139 echo "Setting warning flags = $build_warnings" 6>&1
2143 if test "x${build_warnings}" != x -a "x$GCC" = xyes ; then
2144 WARN_CFLAGS="${build_warnings}"
2148 # Generate a header file
2153 # If we are on a DOS filesystem, we must use gdb.ini rather than
2157 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
2165 # Makefile target for installing gas in $(tooldir)/bin.
2166 install_tooldir=install-exec-tooldir
2170 if test -n "$enable_targets" ; then
2171 for t in `echo $enable_targets | sed 's/,/ /g'`; do
2172 if test $t = "all"; then
2176 result=`$ac_config_sub $t 2>/dev/null`
2177 if test -n "$result" ; then
2178 canon_targets="$canon_targets $result"
2180 # # Permit "all", etc. We don't support it yet though.
2181 # canon_targets="$canon_targets $t"
2184 _gas_uniq_list="$canon_targets"
2185 _gas_uniq_newlist=""
2186 for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
2187 case $_gas_uniq_i in
2189 *) case " $_gas_uniq_newlist " in
2190 *" $_gas_uniq_i "*) ;;
2191 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
2195 canon_targets=$_gas_uniq_newlist
2201 for this_target in $target $canon_targets ; do
2203 eval `echo $this_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/cpu=\1 vendor=\2 os=\3/'`
2205 # check for architecture variants
2209 alpha*) cpu_type=alpha ;;
2210 armeb) cpu_type=arm endian=big ;;
2211 arm*) cpu_type=arm endian=little ;;
2212 armb*) cpu_type=arm endian=little ;;
2213 armv*l) cpu_type=arm endian=little ;;
2214 armv*b) cpu_type=arm endian=big ;;
2215 strongarm*) cpu_type=arm endian=little ;;
2216 thumb*) cpu_type=arm endian=little ;;
2217 hppa*) cpu_type=hppa ;;
2218 i[456]86) cpu_type=i386 ;;
2219 ia64) cpu_type=ia64 ;;
2220 m6811|m6812) cpu_type=m68hc11 ;;
2221 m680[012346]0) cpu_type=m68k ;;
2222 m68008) cpu_type=m68k ;;
2223 m683??) cpu_type=m68k ;;
2224 m5200) cpu_type=m68k ;;
2225 m8*) cpu_type=m88k ;;
2226 mips*el) cpu_type=mips endian=little ;;
2227 mips*) cpu_type=mips endian=big ;;
2228 pjl*) cpu_type=pj endian=little ;;
2229 pj*) cpu_type=pj endian=big ;;
2230 powerpcle*) cpu_type=ppc endian=little ;;
2231 powerpc*) cpu_type=ppc endian=big ;;
2232 rs6000*) cpu_type=ppc ;;
2233 sparclite*) cpu_type=sparc arch=sparclite ;;
2234 sparclet*) cpu_type=sparc arch=sparclet ;;
2235 sparc64*) cpu_type=sparc arch=v9-64 ;;
2236 sparc86x*) cpu_type=sparc arch=sparc86x ;;
2237 sparc*) cpu_type=sparc arch=sparclite ;; # ??? See tc-sparc.c.
2238 v850*) cpu_type=v850 ;;
2239 *) cpu_type=${cpu} ;;
2242 if test ${this_target} = $target ; then
2243 target_cpu_type=${cpu_type}
2244 elif test ${target_cpu_type} != ${cpu_type} ; then
2248 generic_target=${cpu_type}-$vendor-$os
2253 # assign object format
2254 case ${generic_target} in
2255 a29k-*-coff) fmt=coff ;;
2256 a29k-amd-udi) fmt=coff ;;
2257 a29k-amd-ebmon) fmt=coff ;;
2258 a29k-nyu-sym1) fmt=coff ;;
2259 a29k-*-vxworks*) fmt=coff ;;
2261 alpha*-*-*vms*) fmt=evax ;;
2262 alpha*-*-netware*) fmt=ecoff ;;
2263 alpha*-*-openbsd*) fmt=ecoff ;;
2264 alpha*-*-osf*) fmt=ecoff ;;
2265 alpha*-*-linuxecoff*) fmt=ecoff ;;
2266 alpha*-*-linux-gnu*) fmt=elf em=linux ;;
2267 alpha*-*-netbsd*) fmt=elf em=nbsd ;;
2269 arc-*-elf*) fmt=elf bfd_gas=yes ;;
2271 arm-*-aout) fmt=aout ;;
2272 arm-*-coff | thumb-*-coff) fmt=coff ;;
2273 arm-*-elf | thumb-*-elf) fmt=elf ;;
2274 arm*-*-conix*) fmt=elf ;;
2275 arm-*-linux*aout*) fmt=aout em=linux ;;
2276 arm*-*-linux-gnu*) fmt=elf em=linux ;;
2277 arm-*-netbsd*) fmt=aout em=nbsd ;;
2278 arm-*-oabi | thumb-*-oabi) fmt=elf ;;
2279 arm-epoc-pe | thumb-epoc-pe) fmt=coff em=epoc-pe ;;
2280 arm-*-wince) fmt=coff em=wince-pe ;;
2281 arm-*-pe | thumb-*-pe) fmt=coff em=pe ;;
2282 arm-*-riscix*) fmt=aout em=riscix ;;
2284 avr-*-*) fmt=elf bfd_gas=yes ;;
2286 cris-*-*) fmt=multi bfd_gas=yes ;;
2288 d10v-*-*) fmt=elf bfd_gas=yes ;;
2289 d30v-*-*) fmt=elf bfd_gas=yes ;;
2292 fr30-*-*) fmt=elf bfd_gas=yes ;;
2294 hppa-*-linux-gnu*) case ${cpu} in
2296 fmt=elf em=hppalinux64;;
2300 hppa-*-*elf*) fmt=elf em=hppa ;;
2301 hppa-*-lites*) fmt=elf em=hppa ;;
2302 hppa-*-osf*) fmt=som em=hppa ;;
2303 hppa-*-rtems*) fmt=elf em=hppa ;;
2304 hppa-*-hpux11*) case ${cpu} in
2306 fmt=elf em=hppa64 ;;
2310 hppa-*-hpux*) fmt=som em=hppa ;;
2311 hppa-*-mpeix*) fmt=som em=hppa ;;
2312 hppa-*-bsd*) fmt=som em=hppa ;;
2313 hppa-*-hiux*) fmt=som em=hppa ;;
2315 h8300-*-coff) fmt=coff ;;
2317 i370-*-elf* | i370-*-linux*) fmt=elf ;;
2318 i386-ibm-aix*) fmt=coff em=i386aix ;;
2319 i386-sequent-bsd*) fmt=aout em=dynix bfd_gas=yes ;;
2320 i386-*-beospe*) fmt=coff em=pe bfd_gas=yes ;;
2321 i386-*-beoself* | i386-*-beos*) fmt=elf bfd_gas=yes ;;
2322 i386-*-bsd*) fmt=aout em=386bsd ;;
2323 i386-*-netbsd0.8) fmt=aout em=386bsd ;;
2324 i386-*-netbsd*) fmt=aout em=nbsd bfd_gas=yes;;
2325 i386-*-openbsd*) fmt=aout em=nbsd bfd_gas=yes;;
2326 i386-*-linux*aout* | i386-*-linuxoldld) fmt=aout em=linux ;;
2327 i386-*-linux*coff*) fmt=coff em=linux ;;
2328 i386-*-linux-gnu*) fmt=elf em=linux bfd_gas=yes ;;
2329 i386-*-lynxos*) fmt=coff em=lynx ;;
2330 i386-*-sysv[45]* | i386-*-solaris* | i386-*-elf)
2331 fmt=elf bfd_gas=yes ;;
2332 i386-*-freebsdaout* | i386-*-freebsd[12].* | i386-*-freebsd[12])
2333 fmt=aout em=386bsd ;;
2334 i386-*-freebsd*) fmt=elf bfd_gas=yes ;;
2335 i386-*-coff | i386-*-sysv* | i386-*-sco3.2v5*coff | i386-*-isc*)
2337 i386-*-sco3.2v5*) fmt=elf
2338 if test ${this_target} = $target; then
2339 cat >> confdefs.h <<\EOF
2345 i386-*-sco3.2*) fmt=coff ;;
2346 i386-*-vsta) fmt=aout ;;
2347 i386-*-msdosdjgpp* | i386-*-go32* | i386-go32-rtems*)
2349 cat >> confdefs.h <<\EOF
2350 #define STRICTCOFF 1
2354 i386-*-rtemself*) fmt=elf ;;
2355 i386-*-rtems*) fmt=coff ;;
2356 i386-*-gnu*) fmt=elf ;;
2358 fmt=aout em=mach bfd_gas=yes ;;
2359 i386-*-msdos*) fmt=aout ;;
2360 i386-*-moss*) fmt=elf ;;
2361 i386-*-pe) fmt=coff em=pe bfd_gas=yes ;;
2362 i386-*-cygwin*) fmt=coff em=pe bfd_gas=yes ;;
2363 i386-*-interix*) fmt=coff em=interix bfd_gas=yes ;;
2364 i386-*-mingw32*) fmt=coff em=pe bfd_gas=yes ;;
2365 i386-*-*nt*) fmt=coff em=pe bfd_gas=yes ;;
2366 i386-*-vxworks*) fmt=aout ;;
2367 i860-stardent-sysv4* | i860-stardent-elf*)
2368 fmt=elf bfd_gas=yes endian=little
2369 echo "configure: warning: GAS support for ${generic_target} is preliminary and a work in progress" 1>&2 ;;
2370 i960-*-bout) fmt=bout ;;
2371 i960-*-coff) fmt=coff em=ic960 ;;
2372 i960-*-rtems*) fmt=coff em=ic960 ;;
2373 i960-*-nindy*) fmt=bout ;;
2374 i960-*-vxworks4*) fmt=bout ;;
2375 i960-*-vxworks5.0) fmt=bout ;;
2376 i960-*-vxworks5.*) fmt=coff em=ic960 ;;
2377 i960-*-vxworks*) fmt=bout ;;
2378 i960-*-elf*) fmt=elf ;;
2380 ia64-*-elf*) fmt=elf ;;
2381 ia64-*-linux-gnu*) fmt=elf em=linux ;;
2383 m32r-*-*) fmt=elf bfd_gas=yes ;;
2385 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)fmt=elf bfd_gas=yes ;;
2387 m68k-*-vxworks* | m68k-ericsson-ose | m68k-*-sunos*)
2389 m68k-motorola-sysv*) fmt=coff em=delta ;;
2390 m68k-bull-sysv3*) fmt=coff em=dpx2 ;;
2391 m68k-apollo-*) fmt=coff em=apollo ;;
2392 m68k-*-sysv4*) # must be before -sysv*
2394 m68k-*-elf*) fmt=elf ;;
2395 m68k-*-coff | m68k-*-sysv* | m68k-*-rtems*)
2397 m68k-*-hpux*) fmt=hp300 em=hp300 ;;
2398 m68k-*-linux*aout*) fmt=aout em=linux ;;
2399 m68k-*-linux-gnu*) fmt=elf em=linux ;;
2400 m68k-*-gnu*) fmt=elf ;;
2401 m68k-*-lynxos*) fmt=coff em=lynx ;;
2402 m68k-*-netbsd*) fmt=aout em=nbsd bfd_gas=yes ;;
2403 m68k-*-openbsd*) fmt=aout em=nbsd bfd_gas=yes ;;
2404 m68k-apple-aux*) fmt=coff em=aux ;;
2405 m68k-*-psos*) fmt=elf em=psos;;
2407 m88k-motorola-sysv3*) fmt=coff em=delt88 ;;
2408 m88k-*-coff*) fmt=coff ;;
2410 mcore-*-elf) fmt=elf bfd_gas=yes ;;
2411 mcore-*-pe) fmt=coff em=pe bfd_gas=yes ;;
2413 # don't change em like *-*-bsd does
2414 mips-dec-netbsd*) fmt=elf endian=little ;;
2415 mips-dec-openbsd*) fmt=elf endian=little ;;
2416 mips-dec-bsd*) fmt=aout endian=little ;;
2417 mips-sony-bsd*) fmt=ecoff ;;
2418 mips-*-bsd*) { echo "configure: error: Unknown vendor for mips-bsd configuration." 1>&2; exit 1; } ;;
2419 mips-*-ultrix*) fmt=ecoff endian=little ;;
2420 mips-*-osf*) fmt=ecoff endian=little ;;
2421 mips-*-ecoff*) fmt=ecoff ;;
2422 mips-*-ecoff*) fmt=ecoff ;;
2423 mips-*-pe*) fmt=coff endian=little em=pe ;;
2424 mips-*-irix6*) fmt=elf ;;
2425 mips-*-irix5*) fmt=elf ;;
2426 mips-*-irix*) fmt=ecoff ;;
2427 mips-*-lnews*) fmt=ecoff em=lnews ;;
2428 mips-*-riscos*) fmt=ecoff ;;
2429 mips-*-sysv4*MP*) fmt=elf em=tmips ;;
2430 mips-*-sysv*) fmt=ecoff ;;
2431 mips-*-elf* | mips-*-rtems* | mips-*-linux-gnu* | mips-*-gnu* | mips-*-openbsd*)
2433 mips-*-vxworks*) fmt=elf
2434 cat >> confdefs.h <<\EOF
2435 #define MIPS_STABS_ELF 1
2439 mn10200-*-*) fmt=elf bfd_gas=yes ;;
2440 mn10300-*-*) fmt=elf bfd_gas=yes ;;
2442 ppc-*-pe | ppc-*-cygwin* | ppc-*-winnt*)
2444 ppc-*-aix*) fmt=coff ;;
2445 ppc-*-beos*) fmt=coff ;;
2446 ppc-*-*bsd* | ppc-*-elf* | ppc-*-eabi* | ppc-*-sysv4*)
2448 ppc-*-linux-gnu*) fmt=elf
2451 *) { echo "configure: error: GNU/Linux must be configured big endian" 1>&2; exit 1; } ;;
2454 ppc-*-solaris*) fmt=elf
2455 if test ${this_target} = $target; then
2456 cat >> confdefs.h <<\EOF
2457 #define TARGET_SOLARIS_COMMENT 1
2461 if test x${endian} = xbig; then
2462 { echo "configure: error: Solaris must be configured little endian" 1>&2; exit 1; }
2465 ppc-*-rtems*) fmt=elf ;;
2466 ppc-*-macos* | ppc-*-mpw*)
2467 fmt=coff em=macos ;;
2468 ppc-*-netware*) fmt=elf em=ppcnw ;;
2469 ppc-*-vxworks*) fmt=elf ;;
2471 sh-*-elf*) fmt=elf ;;
2472 sh-*-coff*) fmt=coff ;;
2473 sh-*-pe*) fmt=coff em=pe bfd_gas=yes;;
2474 sh-*-rtemself*) fmt=elf ;;
2475 sh-*-rtems*) fmt=coff ;;
2477 ns32k-pc532-mach* | ns32k-pc532-ux*) fmt=aout em=pc532mach ;;
2478 ns32k-pc532-netbsd* | ns32k-pc532-lites*) fmt=aout em=nbsd532 ;;
2479 ns32k-pc532-openbsd*) fmt=aout em=nbsd532 ;;
2481 sparc-*-rtems*) fmt=aout ;;
2482 sparc-*-sunos4*) fmt=aout em=sun3 ;;
2483 sparc-*-aout | sparc*-*-vxworks*)
2484 fmt=aout em=sparcaout ;;
2485 sparc-*-coff) fmt=coff ;;
2486 sparc-*-linux*aout*) fmt=aout em=linux ;;
2487 sparc-*-linux-gnu*) fmt=elf em=linux ;;
2488 sparc-*-lynxos*) fmt=coff em=lynx ;;
2489 sparc-fujitsu-none) fmt=aout ;;
2490 sparc-*-elf | sparc-*-sysv4* | sparc-*-solaris*)
2492 sparc-*-netbsd*) em=nbsd bfd_gas=yes
2494 sparc) case ${os} in
2501 sparc-*-openbsd*) fmt=aout em=nbsd ;;
2503 strongarm-*-coff) fmt=coff ;;
2504 strongarm-*-elf) fmt=elf ;;
2506 tic30-*-*aout*) fmt=aout bfd_gas=yes ;;
2507 tic30-*-*coff*) fmt=coff bfd_gas=yes ;;
2508 tic54x-*-* | c54x*-*-*)
2509 fmt=coff bfd_gas=yes need_libm=yes;;
2510 tic80-*-*) fmt=coff ;;
2512 v850-*-*) fmt=elf bfd_gas=yes ;;
2513 v850e-*-*) fmt=elf bfd_gas=yes ;;
2514 v850ea-*-*) fmt=elf bfd_gas=yes ;;
2516 vax-*-bsd* | vax-*-ultrix*)
2518 vax-*-vms) fmt=vms ;;
2521 z8k-*-coff | z8k-*-sim)
2524 w65-*-*) fmt=coff ;;
2526 *-*-aout | *-*-scout)
2532 *-*-generic) fmt=generic ;;
2533 *-*-xray | *-*-hms) fmt=coff ;;
2534 *-*-sim) fmt=coff ;;
2535 *-*-elf | *-*-sysv4* | *-*-solaris*)
2536 echo "configure: warning: GAS support for ${generic_target} is incomplete." 1>&2
2538 *-*-vxworks) fmt=aout ;;
2539 *-*-netware) fmt=elf ;;
2542 if test ${this_target} = $target ; then
2544 if test x${endian} = xbig; then
2546 elif test x${endian} = xlittle; then
2549 if test x${endian_def} != x; then
2550 cat >> confdefs.h <<EOF
2551 #define TARGET_BYTES_BIG_ENDIAN $endian_def
2557 case ${cpu_type}-${fmt} in
2558 alpha*-*) bfd_gas=yes ;;
2559 arm-*) bfd_gas=yes ;;
2561 # i386-aout) bfd_gas=preferred ;;
2562 ia64*-*) bfd_gas=yes ;;
2563 mips-*) bfd_gas=yes ;;
2564 ns32k-*) bfd_gas=yes ;;
2565 ppc-*) bfd_gas=yes ;;
2566 sparc-*) bfd_gas=yes ;;
2567 strongarm-*) bfd_gas=yes ;;
2568 *-elf) bfd_gas=yes ;;
2569 *-ecoff) bfd_gas=yes ;;
2570 *-som) bfd_gas=yes ;;
2571 #enable bfd for coff and aout to allow testing if a bfd target is
2572 #the primary target, but not for coff or aout as the primary target
2573 i386-coff) if test x${primary_bfd_gas} = xyes; then bfd_gas=yes; fi ;;
2574 i386-aout) if test x${primary_bfd_gas} = xyes; then bfd_gas=yes; fi ;;
2578 # Other random stuff.
2580 # Do we need the opcodes library?
2588 case "${enable_shared}" in
2589 yes) shared_opcodes=true ;;
2590 *opcodes*) shared_opcodes=true ;;
2591 *) shared_opcodes=false ;;
2593 if test "${shared_opcodes}" = "true"; then
2594 # A shared libopcodes must be linked against libbfd.
2600 # Any other special object files needed ?
2607 case ${extra_objects} in
2609 *) extra_objects="$extra_objects m68k-parse.o" ;;
2614 echo ${extra_objects} | grep -s "itbl-parse.o"
2615 if test $? -ne 0 ; then
2616 extra_objects="$extra_objects itbl-parse.o"
2619 echo ${extra_objects} | grep -s "itbl-lex.o"
2620 if test $? -ne 0 ; then
2621 extra_objects="$extra_objects itbl-lex.o"
2624 echo ${extra_objects} | grep -s "itbl-ops.o"
2625 if test $? -ne 0 ; then
2626 extra_objects="$extra_objects itbl-ops.o"
2631 if test $this_target = $target ; then
2632 cat >> confdefs.h <<EOF
2633 #define DEFAULT_ARCH "${arch}"
2642 if test $using_cgen = yes ; then
2643 case "x${extra_objects}" in
2645 *) extra_objects="$extra_objects cgen.o" ;;
2649 # See if we really can support this configuration with the emulation code.
2651 if test $this_target = $target ; then
2652 primary_bfd_gas=$bfd_gas
2656 if test $bfd_gas = no ; then
2657 # Can't support other configurations this way.
2660 elif test $bfd_gas = no ; then
2661 # Can't support this configuration.
2665 # From target name and format, produce a list of supported emulations.
2667 case ${generic_target}-${fmt} in
2668 mips-*-irix5*-*) emulation="mipsbelf mipslelf mipself mipsbecoff mipslecoff mipsecoff" ;;
2669 mips-*-linux-gnu*-*) case "$endian" in
2670 big) emulation="mipsbelf mipslelf mipself mipsbecoff mipslecoff mipsecoff" ;;
2671 *) emulation="mipslelf mipsbelf mipself mipslecoff mipsbecoff mipsecoff" ;;
2673 mips-*-lnews*-ecoff) ;;
2674 mips-*-*-ecoff) case "$endian" in
2675 big) emulation="mipsbecoff mipslecoff mipsecoff" ;;
2676 *) emulation="mipslecoff mipsbecoff mipsecoff" ;;
2678 mips-*-*-elf) case "$endian" in
2679 big) emulation="mipsbelf mipslelf mipself" ;;
2680 *) emulation="mipslelf mipsbelf mipself" ;;
2682 mips-*-sysv4*MP*-*) emulation="mipsbelf mipslelf mipself mipsbecoff mipslecoff mipsecoff" ;;
2683 # i386-pc-pe-coff != i386-pc-coff.
2685 # Uncommenting the next line will turn on support for i386 AOUT
2686 # for the default linux configuration
2687 # i386-*-linux*-elf) emulation="i386elf i386aout" ;;
2689 i386-*-aout) emulation="i386aout" ;;
2690 i386-*-coff) emulation="i386coff" ;;
2691 i386-*-elf) emulation="i386elf" ;;
2693 # Always all formats. Having a.out first makes it the default.
2694 cris-*-*) emulation="crisaout criself" ;;
2697 emulations="$emulations $emulation"
2701 # Turn on all targets if possible
2702 if test ${all_targets} = "yes"; then
2703 case ${target_cpu_type} in
2705 case ${obj_format} in
2707 emulations="$emulations i386coff i386elf"
2710 emulations="$emulations i386aout i386elf"
2713 emulations="$emulations i386aout i386coff"
2720 # Assign floating point type. Most processors with FP support
2721 # IEEE FP. On those that don't support FP at all, usually IEEE
2723 case ${target_cpu} in
2724 vax | tahoe ) atof=${target_cpu} ;;
2728 case "${obj_format}" in
2729 "") { echo "configure: error: GAS does not know what format to use for target ${target}" 1>&2; exit 1; } ;;
2732 # Unfortunately the cpu in cpu-opc.h file isn't always $(TARGET_CPU).
2734 if test $using_cgen = yes ; then
2735 case ${target_cpu} in
2736 *) cgen_cpu_prefix=${target_cpu} ;;
2739 cat >> confdefs.h <<\EOF
2740 #define USING_CGEN 1
2746 if test ! -r ${srcdir}/config/tc-${target_cpu_type}.c; then
2747 { echo "configure: error: GAS does not support target CPU ${target_cpu_type}" 1>&2; exit 1; }
2750 if test ! -r ${srcdir}/config/obj-${obj_format}.c; then
2751 { echo "configure: error: GAS does not have support for object file format ${obj_format}" 1>&2; exit 1; }
2754 case ${user_bfd_gas}-${primary_bfd_gas} in
2756 # We didn't override user's choice.
2759 echo "configure: warning: Use of BFD is required for ${target}; overriding config options." 1>&2
2771 # User specified nothing.
2775 # Some COFF configurations want these random other flags set.
2776 case ${obj_format} in
2778 case ${target_cpu_type} in
2779 i386) cat >> confdefs.h <<\EOF
2783 m68k) cat >> confdefs.h <<\EOF
2787 m88k) cat >> confdefs.h <<\EOF
2795 # Getting this done right is going to be a bitch. Each configuration specified
2796 # with --enable-targets=... should be checked for environment, format, cpu, and
2799 # For each configuration, the necessary object file support code must be linked
2800 # in. This might be only one, it might be up to four. The necessary emulation
2801 # code needs to be provided, too.
2803 # And then there's "--enable-targets=all"....
2805 # For now, just always do it for MIPS ELF or ECOFF configurations. Sigh.
2807 formats="${obj_format}"
2810 _gas_uniq_list="$emulations"
2811 _gas_uniq_newlist=""
2812 for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
2813 case $_gas_uniq_i in
2815 *) case " $_gas_uniq_newlist " in
2816 *" $_gas_uniq_i "*) ;;
2817 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
2821 emulations=$_gas_uniq_newlist
2823 for em in . $emulations ; do
2826 mipsbelf | mipslelf)
2827 fmt=elf file=mipself ;;
2828 mipsbecoff | mipslecoff)
2829 fmt=ecoff file=mipsecoff ;;
2831 fmt=coff file=$em ;;
2833 fmt=aout file=$em ;;
2837 formats="$formats $fmt"
2838 emfiles="$emfiles e-$file.o"
2839 EMULATIONS="$EMULATIONS &$em,"
2841 _gas_uniq_list="$formats"
2842 _gas_uniq_newlist=""
2843 for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
2844 case $_gas_uniq_i in
2846 *) case " $_gas_uniq_newlist " in
2847 *" $_gas_uniq_i "*) ;;
2848 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
2852 formats=$_gas_uniq_newlist
2854 _gas_uniq_list="$emfiles"
2855 _gas_uniq_newlist=""
2856 for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
2857 case $_gas_uniq_i in
2859 *) case " $_gas_uniq_newlist " in
2860 *" $_gas_uniq_i "*) ;;
2861 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
2865 emfiles=$_gas_uniq_newlist
2867 if test `set . $formats ; shift ; echo $#` -gt 1 ; then
2868 for fmt in $formats ; do
2870 aout) cat >> confdefs.h <<\EOF
2871 #define OBJ_MAYBE_AOUT 1
2874 bout) cat >> confdefs.h <<\EOF
2875 #define OBJ_MAYBE_BOUT 1
2878 coff) cat >> confdefs.h <<\EOF
2879 #define OBJ_MAYBE_COFF 1
2882 ecoff) cat >> confdefs.h <<\EOF
2883 #define OBJ_MAYBE_ECOFF 1
2886 elf) cat >> confdefs.h <<\EOF
2887 #define OBJ_MAYBE_ELF 1
2890 generic) cat >> confdefs.h <<\EOF
2891 #define OBJ_MAYBE_GENERIC 1
2894 hp300) cat >> confdefs.h <<\EOF
2895 #define OBJ_MAYBE_HP300 1
2898 ieee) cat >> confdefs.h <<\EOF
2899 #define OBJ_MAYBE_IEEE 1
2902 som) cat >> confdefs.h <<\EOF
2903 #define OBJ_MAYBE_SOM 1
2906 vms) cat >> confdefs.h <<\EOF
2907 #define OBJ_MAYBE_VMS 1
2911 extra_objects="$extra_objects obj-$fmt.o"
2915 if test `set . $emfiles ; shift ; echo $#` -gt 0 ; then
2916 DEFAULT_EMULATION=`set . $emulations ; echo $2`
2917 # e-mips* has more than one emulation per file, e-i386* has just one at the
2918 # moment. If only one emulation is specified, then don't define
2919 # USE_EMULATIONS or include any of the e-files as they will only be bloat.
2920 case "${obj_format}${emfiles}" in
2922 extra_objects="$extra_objects $emfiles"
2923 cat >> confdefs.h <<\EOF
2924 #define USE_EMULATIONS 1
2930 cat >> confdefs.h <<EOF
2931 #define EMULATIONS $EMULATIONS
2934 cat >> confdefs.h <<EOF
2935 #define DEFAULT_EMULATION "$DEFAULT_EMULATION"
2939 case ${primary_bfd_gas}-${target_cpu_type}-${obj_format} in
2940 yes-*-coff) need_bfd=yes ;;
2941 no-*-coff) need_bfd=yes
2942 cat >> confdefs.h <<\EOF
2943 #define MANY_SEGMENTS 1
2948 reject_dev_configs=yes
2950 case ${reject_dev_configs}-${dev} in
2952 { echo "configure: error: GAS does not support the ${generic_target} configuration." 1>&2; exit 1; }
2962 case "${primary_bfd_gas}" in
2963 yes) cat >> confdefs.h <<\EOF
2964 #define BFD_ASSEMBLER 1
2970 # do we need the opcodes library?
2971 case "${need_opcodes}" in
2973 OPCODES_LIB=../opcodes/libopcodes.la
2977 case "${need_bfd}" in
2979 BFDLIB=../bfd/libbfd.la
2980 ALL_OBJ_DEPS="$ALL_OBJ_DEPS ../bfd/bfd.h"
2989 cat >> confdefs.h <<EOF
2990 #define TARGET_ALIAS "${target_alias}"
2993 cat >> confdefs.h <<EOF
2994 #define TARGET_CANONICAL "${target}"
2997 cat >> confdefs.h <<EOF
2998 #define TARGET_CPU "${target_cpu}"
3001 cat >> confdefs.h <<EOF
3002 #define TARGET_VENDOR "${target_vendor}"
3005 cat >> confdefs.h <<EOF
3006 #define TARGET_OS "${target_os}"
3010 # Extract the first word of "gcc", so it can be a program name with args.
3011 set dummy gcc; ac_word=$2
3012 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3013 echo "configure:3014: checking for $ac_word" >&5
3014 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
3015 echo $ac_n "(cached) $ac_c" 1>&6
3017 if test -n "$CC"; then
3018 ac_cv_prog_CC="$CC" # Let the user override the test.
3020 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3022 for ac_dir in $ac_dummy; do
3023 test -z "$ac_dir" && ac_dir=.
3024 if test -f $ac_dir/$ac_word; then
3033 if test -n "$CC"; then
3034 echo "$ac_t""$CC" 1>&6
3036 echo "$ac_t""no" 1>&6
3039 if test -z "$CC"; then
3040 # Extract the first word of "cc", so it can be a program name with args.
3041 set dummy cc; ac_word=$2
3042 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3043 echo "configure:3044: checking for $ac_word" >&5
3044 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
3045 echo $ac_n "(cached) $ac_c" 1>&6
3047 if test -n "$CC"; then
3048 ac_cv_prog_CC="$CC" # Let the user override the test.
3050 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3053 for ac_dir in $ac_dummy; do
3054 test -z "$ac_dir" && ac_dir=.
3055 if test -f $ac_dir/$ac_word; then
3056 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
3057 ac_prog_rejected=yes
3065 if test $ac_prog_rejected = yes; then
3066 # We found a bogon in the path, so make sure we never use it.
3067 set dummy $ac_cv_prog_CC
3069 if test $# -gt 0; then
3070 # We chose a different compiler from the bogus one.
3071 # However, it has the same basename, so the bogon will be chosen
3072 # first if we set CC to just the basename; use the full file name.
3074 set dummy "$ac_dir/$ac_word" "$@"
3082 if test -n "$CC"; then
3083 echo "$ac_t""$CC" 1>&6
3085 echo "$ac_t""no" 1>&6
3088 if test -z "$CC"; then
3089 case "`uname -s`" in
3091 # Extract the first word of "cl", so it can be a program name with args.
3092 set dummy cl; ac_word=$2
3093 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3094 echo "configure:3095: checking for $ac_word" >&5
3095 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
3096 echo $ac_n "(cached) $ac_c" 1>&6
3098 if test -n "$CC"; then
3099 ac_cv_prog_CC="$CC" # Let the user override the test.
3101 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3103 for ac_dir in $ac_dummy; do
3104 test -z "$ac_dir" && ac_dir=.
3105 if test -f $ac_dir/$ac_word; then
3114 if test -n "$CC"; then
3115 echo "$ac_t""$CC" 1>&6
3117 echo "$ac_t""no" 1>&6
3122 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
3125 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
3126 echo "configure:3127: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
3129 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3130 ac_cpp='$CPP $CPPFLAGS'
3131 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3132 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3133 cross_compiling=$ac_cv_prog_cc_cross
3135 cat > conftest.$ac_ext << EOF
3137 #line 3138 "configure"
3138 #include "confdefs.h"
3142 if { (eval echo configure:3143: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3143 ac_cv_prog_cc_works=yes
3144 # If we can't run a trivial program, we are probably using a cross compiler.
3145 if (./conftest; exit) 2>/dev/null; then
3146 ac_cv_prog_cc_cross=no
3148 ac_cv_prog_cc_cross=yes
3151 echo "configure: failed program was:" >&5
3152 cat conftest.$ac_ext >&5
3153 ac_cv_prog_cc_works=no
3157 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3158 ac_cpp='$CPP $CPPFLAGS'
3159 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3160 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3161 cross_compiling=$ac_cv_prog_cc_cross
3163 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
3164 if test $ac_cv_prog_cc_works = no; then
3165 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
3167 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
3168 echo "configure:3169: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
3169 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
3170 cross_compiling=$ac_cv_prog_cc_cross
3172 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
3173 echo "configure:3174: checking whether we are using GNU C" >&5
3174 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
3175 echo $ac_n "(cached) $ac_c" 1>&6
3177 cat > conftest.c <<EOF
3182 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:3183: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
3189 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
3191 if test $ac_cv_prog_gcc = yes; then
3197 ac_test_CFLAGS="${CFLAGS+set}"
3198 ac_save_CFLAGS="$CFLAGS"
3200 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
3201 echo "configure:3202: checking whether ${CC-cc} accepts -g" >&5
3202 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
3203 echo $ac_n "(cached) $ac_c" 1>&6
3205 echo 'void f(){}' > conftest.c
3206 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
3215 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
3216 if test "$ac_test_CFLAGS" = set; then
3217 CFLAGS="$ac_save_CFLAGS"
3218 elif test $ac_cv_prog_cc_g = yes; then
3219 if test "$GCC" = yes; then
3225 if test "$GCC" = yes; then
3233 for ac_prog in 'bison -y' byacc
3235 # Extract the first word of "$ac_prog", so it can be a program name with args.
3236 set dummy $ac_prog; ac_word=$2
3237 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3238 echo "configure:3239: checking for $ac_word" >&5
3239 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
3240 echo $ac_n "(cached) $ac_c" 1>&6
3242 if test -n "$YACC"; then
3243 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3245 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3247 for ac_dir in $ac_dummy; do
3248 test -z "$ac_dir" && ac_dir=.
3249 if test -f $ac_dir/$ac_word; then
3250 ac_cv_prog_YACC="$ac_prog"
3257 YACC="$ac_cv_prog_YACC"
3258 if test -n "$YACC"; then
3259 echo "$ac_t""$YACC" 1>&6
3261 echo "$ac_t""no" 1>&6
3264 test -n "$YACC" && break
3266 test -n "$YACC" || YACC="yacc"
3268 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
3269 echo "configure:3270: checking how to run the C preprocessor" >&5
3270 # On Suns, sometimes $CPP names a directory.
3271 if test -n "$CPP" && test -d "$CPP"; then
3274 if test -z "$CPP"; then
3275 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
3276 echo $ac_n "(cached) $ac_c" 1>&6
3278 # This must be in double quotes, not single quotes, because CPP may get
3279 # substituted into the Makefile and "${CC-cc}" will confuse make.
3281 # On the NeXT, cc -E runs the code through the compiler's parser,
3282 # not just through cpp.
3283 cat > conftest.$ac_ext <<EOF
3284 #line 3285 "configure"
3285 #include "confdefs.h"
3289 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3290 { (eval echo configure:3291: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3291 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3292 if test -z "$ac_err"; then
3296 echo "configure: failed program was:" >&5
3297 cat conftest.$ac_ext >&5
3299 CPP="${CC-cc} -E -traditional-cpp"
3300 cat > conftest.$ac_ext <<EOF
3301 #line 3302 "configure"
3302 #include "confdefs.h"
3306 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3307 { (eval echo configure:3308: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3308 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3309 if test -z "$ac_err"; then
3313 echo "configure: failed program was:" >&5
3314 cat conftest.$ac_ext >&5
3316 CPP="${CC-cc} -nologo -E"
3317 cat > conftest.$ac_ext <<EOF
3318 #line 3319 "configure"
3319 #include "confdefs.h"
3323 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3324 { (eval echo configure:3325: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3325 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3326 if test -z "$ac_err"; then
3330 echo "configure: failed program was:" >&5
3331 cat conftest.$ac_ext >&5
3340 ac_cv_prog_CPP="$CPP"
3342 CPP="$ac_cv_prog_CPP"
3344 ac_cv_prog_CPP="$CPP"
3346 echo "$ac_t""$CPP" 1>&6
3348 missing_dir=`cd $ac_aux_dir && pwd`
3349 for ac_prog in flex lex
3351 # Extract the first word of "$ac_prog", so it can be a program name with args.
3352 set dummy $ac_prog; ac_word=$2
3353 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3354 echo "configure:3355: checking for $ac_word" >&5
3355 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
3356 echo $ac_n "(cached) $ac_c" 1>&6
3358 if test -n "$LEX"; then
3359 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3361 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3363 for ac_dir in $ac_dummy; do
3364 test -z "$ac_dir" && ac_dir=.
3365 if test -f $ac_dir/$ac_word; then
3366 ac_cv_prog_LEX="$ac_prog"
3373 LEX="$ac_cv_prog_LEX"
3374 if test -n "$LEX"; then
3375 echo "$ac_t""$LEX" 1>&6
3377 echo "$ac_t""no" 1>&6
3380 test -n "$LEX" && break
3382 test -n "$LEX" || LEX=""$missing_dir/missing flex""
3384 # Extract the first word of "flex", so it can be a program name with args.
3385 set dummy flex; ac_word=$2
3386 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3387 echo "configure:3388: checking for $ac_word" >&5
3388 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
3389 echo $ac_n "(cached) $ac_c" 1>&6
3391 if test -n "$LEX"; then
3392 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3394 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3396 for ac_dir in $ac_dummy; do
3397 test -z "$ac_dir" && ac_dir=.
3398 if test -f $ac_dir/$ac_word; then
3399 ac_cv_prog_LEX="flex"
3404 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
3407 LEX="$ac_cv_prog_LEX"
3408 if test -n "$LEX"; then
3409 echo "$ac_t""$LEX" 1>&6
3411 echo "$ac_t""no" 1>&6
3414 if test -z "$LEXLIB"
3420 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
3421 echo "configure:3422: checking for yywrap in -l$ac_lib" >&5
3422 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
3423 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3424 echo $ac_n "(cached) $ac_c" 1>&6
3426 ac_save_LIBS="$LIBS"
3427 LIBS="-l$ac_lib $LIBS"
3428 cat > conftest.$ac_ext <<EOF
3429 #line 3430 "configure"
3430 #include "confdefs.h"
3431 /* Override any gcc2 internal prototype to avoid an error. */
3432 /* We use char because int might match the return type of a gcc2
3433 builtin and then its argument prototype would still apply. */
3440 if { (eval echo configure:3441: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3442 eval "ac_cv_lib_$ac_lib_var=yes"
3444 echo "configure: failed program was:" >&5
3445 cat conftest.$ac_ext >&5
3447 eval "ac_cv_lib_$ac_lib_var=no"
3450 LIBS="$ac_save_LIBS"
3453 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3454 echo "$ac_t""yes" 1>&6
3457 echo "$ac_t""no" 1>&6
3462 echo $ac_n "checking lex output file root""... $ac_c" 1>&6
3463 echo "configure:3464: checking lex output file root" >&5
3464 if eval "test \"`echo '$''{'ac_cv_prog_lex_root'+set}'`\" = set"; then
3465 echo $ac_n "(cached) $ac_c" 1>&6
3467 # The minimal lex program is just a single line: %%. But some broken lexes
3468 # (Solaris, I think it was) want two %% lines, so accommodate them.
3471 if test -f lex.yy.c; then
3472 ac_cv_prog_lex_root=lex.yy
3473 elif test -f lexyy.c; then
3474 ac_cv_prog_lex_root=lexyy
3476 { echo "configure: error: cannot find output from $LEX; giving up" 1>&2; exit 1; }
3480 echo "$ac_t""$ac_cv_prog_lex_root" 1>&6
3481 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3483 echo $ac_n "checking whether yytext is a pointer""... $ac_c" 1>&6
3484 echo "configure:3485: checking whether yytext is a pointer" >&5
3485 if eval "test \"`echo '$''{'ac_cv_prog_lex_yytext_pointer'+set}'`\" = set"; then
3486 echo $ac_n "(cached) $ac_c" 1>&6
3488 # POSIX says lex can declare yytext either as a pointer or an array; the
3489 # default is implementation-dependent. Figure out which it is, since
3490 # not all implementations provide the %pointer and %array declarations.
3491 ac_cv_prog_lex_yytext_pointer=no
3492 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3493 ac_save_LIBS="$LIBS"
3494 LIBS="$LIBS $LEXLIB"
3495 cat > conftest.$ac_ext <<EOF
3496 #line 3497 "configure"
3497 #include "confdefs.h"
3498 `cat $LEX_OUTPUT_ROOT.c`
3503 if { (eval echo configure:3504: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3505 ac_cv_prog_lex_yytext_pointer=yes
3507 echo "configure: failed program was:" >&5
3508 cat conftest.$ac_ext >&5
3511 LIBS="$ac_save_LIBS"
3512 rm -f "${LEX_OUTPUT_ROOT}.c"
3516 echo "$ac_t""$ac_cv_prog_lex_yytext_pointer" 1>&6
3517 if test $ac_cv_prog_lex_yytext_pointer = yes; then
3518 cat >> confdefs.h <<\EOF
3519 #define YYTEXT_POINTER 1
3526 # Extract the first word of "ranlib", so it can be a program name with args.
3527 set dummy ranlib; ac_word=$2
3528 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3529 echo "configure:3530: checking for $ac_word" >&5
3530 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
3531 echo $ac_n "(cached) $ac_c" 1>&6
3533 if test -n "$RANLIB"; then
3534 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3536 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3538 for ac_dir in $ac_dummy; do
3539 test -z "$ac_dir" && ac_dir=.
3540 if test -f $ac_dir/$ac_word; then
3541 ac_cv_prog_RANLIB="ranlib"
3546 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
3549 RANLIB="$ac_cv_prog_RANLIB"
3550 if test -n "$RANLIB"; then
3551 echo "$ac_t""$RANLIB" 1>&6
3553 echo "$ac_t""no" 1>&6
3556 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
3557 echo "configure:3558: checking for POSIXized ISC" >&5
3558 if test -d /etc/conf/kconfig.d &&
3559 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
3561 echo "$ac_t""yes" 1>&6
3562 ISC=yes # If later tests want to check for ISC.
3563 cat >> confdefs.h <<\EOF
3564 #define _POSIX_SOURCE 1
3567 if test "$GCC" = yes; then
3573 echo "$ac_t""no" 1>&6
3577 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3578 echo "configure:3579: checking for ANSI C header files" >&5
3579 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
3580 echo $ac_n "(cached) $ac_c" 1>&6
3582 cat > conftest.$ac_ext <<EOF
3583 #line 3584 "configure"
3584 #include "confdefs.h"
3590 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3591 { (eval echo configure:3592: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3592 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3593 if test -z "$ac_err"; then
3595 ac_cv_header_stdc=yes
3598 echo "configure: failed program was:" >&5
3599 cat conftest.$ac_ext >&5
3601 ac_cv_header_stdc=no
3605 if test $ac_cv_header_stdc = yes; then
3606 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3607 cat > conftest.$ac_ext <<EOF
3608 #line 3609 "configure"
3609 #include "confdefs.h"
3612 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3613 egrep "memchr" >/dev/null 2>&1; then
3617 ac_cv_header_stdc=no
3623 if test $ac_cv_header_stdc = yes; then
3624 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3625 cat > conftest.$ac_ext <<EOF
3626 #line 3627 "configure"
3627 #include "confdefs.h"
3630 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3631 egrep "free" >/dev/null 2>&1; then
3635 ac_cv_header_stdc=no
3641 if test $ac_cv_header_stdc = yes; then
3642 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3643 if test "$cross_compiling" = yes; then
3646 cat > conftest.$ac_ext <<EOF
3647 #line 3648 "configure"
3648 #include "confdefs.h"
3650 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3651 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3652 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3653 int main () { int i; for (i = 0; i < 256; i++)
3654 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3658 if { (eval echo configure:3659: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3662 echo "configure: failed program was:" >&5
3663 cat conftest.$ac_ext >&5
3665 ac_cv_header_stdc=no
3673 echo "$ac_t""$ac_cv_header_stdc" 1>&6
3674 if test $ac_cv_header_stdc = yes; then
3675 cat >> confdefs.h <<\EOF
3676 #define STDC_HEADERS 1
3681 echo $ac_n "checking for working const""... $ac_c" 1>&6
3682 echo "configure:3683: checking for working const" >&5
3683 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3684 echo $ac_n "(cached) $ac_c" 1>&6
3686 cat > conftest.$ac_ext <<EOF
3687 #line 3688 "configure"
3688 #include "confdefs.h"
3692 /* Ultrix mips cc rejects this. */
3693 typedef int charset[2]; const charset x;
3694 /* SunOS 4.1.1 cc rejects this. */
3695 char const *const *ccp;
3697 /* NEC SVR4.0.2 mips cc rejects this. */
3698 struct point {int x, y;};
3699 static struct point const zero = {0,0};
3700 /* AIX XL C 1.02.0.0 rejects this.
3701 It does not let you subtract one const X* pointer from another in an arm
3702 of an if-expression whose if-part is not a constant expression */
3703 const char *g = "string";
3704 ccp = &g + (g ? g-g : 0);
3705 /* HPUX 7.0 cc rejects these. */
3708 ccp = (char const *const *) p;
3709 { /* SCO 3.2v4 cc rejects this. */
3711 char const *s = 0 ? (char *) 0 : (char const *) 0;
3715 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3717 const int *foo = &x[0];
3720 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3721 typedef const int *iptr;
3725 { /* AIX XL C 1.02.0.0 rejects this saying
3726 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3727 struct s { int j; const int *ap[3]; };
3728 struct s *b; b->j = 5;
3730 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3736 if { (eval echo configure:3737: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3740 echo "configure: failed program was:" >&5
3741 cat conftest.$ac_ext >&5
3748 echo "$ac_t""$ac_cv_c_const" 1>&6
3749 if test $ac_cv_c_const = no; then
3750 cat >> confdefs.h <<\EOF
3756 echo $ac_n "checking for inline""... $ac_c" 1>&6
3757 echo "configure:3758: checking for inline" >&5
3758 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
3759 echo $ac_n "(cached) $ac_c" 1>&6
3762 for ac_kw in inline __inline__ __inline; do
3763 cat > conftest.$ac_ext <<EOF
3764 #line 3765 "configure"
3765 #include "confdefs.h"
3771 if { (eval echo configure:3772: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3773 ac_cv_c_inline=$ac_kw; break
3775 echo "configure: failed program was:" >&5
3776 cat conftest.$ac_ext >&5
3783 echo "$ac_t""$ac_cv_c_inline" 1>&6
3784 case "$ac_cv_c_inline" in
3786 no) cat >> confdefs.h <<\EOF
3790 *) cat >> confdefs.h <<EOF
3791 #define inline $ac_cv_c_inline
3796 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3797 echo "configure:3798: checking for off_t" >&5
3798 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
3799 echo $ac_n "(cached) $ac_c" 1>&6
3801 cat > conftest.$ac_ext <<EOF
3802 #line 3803 "configure"
3803 #include "confdefs.h"
3804 #include <sys/types.h>
3810 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3811 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3813 ac_cv_type_off_t=yes
3821 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3822 if test $ac_cv_type_off_t = no; then
3823 cat >> confdefs.h <<\EOF
3829 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3830 echo "configure:3831: checking for size_t" >&5
3831 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3832 echo $ac_n "(cached) $ac_c" 1>&6
3834 cat > conftest.$ac_ext <<EOF
3835 #line 3836 "configure"
3836 #include "confdefs.h"
3837 #include <sys/types.h>
3843 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3844 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3846 ac_cv_type_size_t=yes
3849 ac_cv_type_size_t=no
3854 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3855 if test $ac_cv_type_size_t = no; then
3856 cat >> confdefs.h <<\EOF
3857 #define size_t unsigned
3862 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
3863 # for constant arguments. Useless!
3864 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
3865 echo "configure:3866: checking for working alloca.h" >&5
3866 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
3867 echo $ac_n "(cached) $ac_c" 1>&6
3869 cat > conftest.$ac_ext <<EOF
3870 #line 3871 "configure"
3871 #include "confdefs.h"
3874 char *p = alloca(2 * sizeof(int));
3877 if { (eval echo configure:3878: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3879 ac_cv_header_alloca_h=yes
3881 echo "configure: failed program was:" >&5
3882 cat conftest.$ac_ext >&5
3884 ac_cv_header_alloca_h=no
3889 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
3890 if test $ac_cv_header_alloca_h = yes; then
3891 cat >> confdefs.h <<\EOF
3892 #define HAVE_ALLOCA_H 1
3897 echo $ac_n "checking for alloca""... $ac_c" 1>&6
3898 echo "configure:3899: checking for alloca" >&5
3899 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
3900 echo $ac_n "(cached) $ac_c" 1>&6
3902 cat > conftest.$ac_ext <<EOF
3903 #line 3904 "configure"
3904 #include "confdefs.h"
3907 # define alloca __builtin_alloca
3910 # include <malloc.h>
3911 # define alloca _alloca
3914 # include <alloca.h>
3919 # ifndef alloca /* predefined by HP cc +Olibcalls */
3928 char *p = (char *) alloca(1);
3931 if { (eval echo configure:3932: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3933 ac_cv_func_alloca_works=yes
3935 echo "configure: failed program was:" >&5
3936 cat conftest.$ac_ext >&5
3938 ac_cv_func_alloca_works=no
3943 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
3944 if test $ac_cv_func_alloca_works = yes; then
3945 cat >> confdefs.h <<\EOF
3946 #define HAVE_ALLOCA 1
3951 if test $ac_cv_func_alloca_works = no; then
3952 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
3953 # that cause trouble. Some versions do not even contain alloca or
3954 # contain a buggy version. If you still want to use their alloca,
3955 # use ar to extract alloca.o from them instead of compiling alloca.c.
3956 ALLOCA=alloca.${ac_objext}
3957 cat >> confdefs.h <<\EOF
3962 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
3963 echo "configure:3964: checking whether alloca needs Cray hooks" >&5
3964 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
3965 echo $ac_n "(cached) $ac_c" 1>&6
3967 cat > conftest.$ac_ext <<EOF
3968 #line 3969 "configure"
3969 #include "confdefs.h"
3970 #if defined(CRAY) && ! defined(CRAY2)
3977 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3978 egrep "webecray" >/dev/null 2>&1; then
3989 echo "$ac_t""$ac_cv_os_cray" 1>&6
3990 if test $ac_cv_os_cray = yes; then
3991 for ac_func in _getb67 GETB67 getb67; do
3992 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3993 echo "configure:3994: checking for $ac_func" >&5
3994 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3995 echo $ac_n "(cached) $ac_c" 1>&6
3997 cat > conftest.$ac_ext <<EOF
3998 #line 3999 "configure"
3999 #include "confdefs.h"
4000 /* System header to define __stub macros and hopefully few prototypes,
4001 which can conflict with char $ac_func(); below. */
4003 /* Override any gcc2 internal prototype to avoid an error. */
4004 /* We use char because int might match the return type of a gcc2
4005 builtin and then its argument prototype would still apply. */
4010 /* The GNU C library defines this for functions which it implements
4011 to always fail with ENOSYS. Some functions are actually named
4012 something starting with __ and the normal name is an alias. */
4013 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4021 if { (eval echo configure:4022: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4023 eval "ac_cv_func_$ac_func=yes"
4025 echo "configure: failed program was:" >&5
4026 cat conftest.$ac_ext >&5
4028 eval "ac_cv_func_$ac_func=no"
4033 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4034 echo "$ac_t""yes" 1>&6
4035 cat >> confdefs.h <<EOF
4036 #define CRAY_STACKSEG_END $ac_func
4041 echo "$ac_t""no" 1>&6
4047 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
4048 echo "configure:4049: checking stack direction for C alloca" >&5
4049 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
4050 echo $ac_n "(cached) $ac_c" 1>&6
4052 if test "$cross_compiling" = yes; then
4053 ac_cv_c_stack_direction=0
4055 cat > conftest.$ac_ext <<EOF
4056 #line 4057 "configure"
4057 #include "confdefs.h"
4058 find_stack_direction ()
4060 static char *addr = 0;
4065 return find_stack_direction ();
4068 return (&dummy > addr) ? 1 : -1;
4072 exit (find_stack_direction() < 0);
4075 if { (eval echo configure:4076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4077 ac_cv_c_stack_direction=1
4079 echo "configure: failed program was:" >&5
4080 cat conftest.$ac_ext >&5
4082 ac_cv_c_stack_direction=-1
4089 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
4090 cat >> confdefs.h <<EOF
4091 #define STACK_DIRECTION $ac_cv_c_stack_direction
4096 for ac_hdr in unistd.h
4098 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4099 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4100 echo "configure:4101: checking for $ac_hdr" >&5
4101 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4102 echo $ac_n "(cached) $ac_c" 1>&6
4104 cat > conftest.$ac_ext <<EOF
4105 #line 4106 "configure"
4106 #include "confdefs.h"
4109 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4110 { (eval echo configure:4111: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4111 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4112 if test -z "$ac_err"; then
4114 eval "ac_cv_header_$ac_safe=yes"
4117 echo "configure: failed program was:" >&5
4118 cat conftest.$ac_ext >&5
4120 eval "ac_cv_header_$ac_safe=no"
4124 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4125 echo "$ac_t""yes" 1>&6
4126 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4127 cat >> confdefs.h <<EOF
4128 #define $ac_tr_hdr 1
4132 echo "$ac_t""no" 1>&6
4136 for ac_func in getpagesize
4138 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4139 echo "configure:4140: checking for $ac_func" >&5
4140 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4141 echo $ac_n "(cached) $ac_c" 1>&6
4143 cat > conftest.$ac_ext <<EOF
4144 #line 4145 "configure"
4145 #include "confdefs.h"
4146 /* System header to define __stub macros and hopefully few prototypes,
4147 which can conflict with char $ac_func(); below. */
4149 /* Override any gcc2 internal prototype to avoid an error. */
4150 /* We use char because int might match the return type of a gcc2
4151 builtin and then its argument prototype would still apply. */
4156 /* The GNU C library defines this for functions which it implements
4157 to always fail with ENOSYS. Some functions are actually named
4158 something starting with __ and the normal name is an alias. */
4159 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4167 if { (eval echo configure:4168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4169 eval "ac_cv_func_$ac_func=yes"
4171 echo "configure: failed program was:" >&5
4172 cat conftest.$ac_ext >&5
4174 eval "ac_cv_func_$ac_func=no"
4179 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4180 echo "$ac_t""yes" 1>&6
4181 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4182 cat >> confdefs.h <<EOF
4183 #define $ac_tr_func 1
4187 echo "$ac_t""no" 1>&6
4191 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
4192 echo "configure:4193: checking for working mmap" >&5
4193 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
4194 echo $ac_n "(cached) $ac_c" 1>&6
4196 if test "$cross_compiling" = yes; then
4197 ac_cv_func_mmap_fixed_mapped=no
4199 cat > conftest.$ac_ext <<EOF
4200 #line 4201 "configure"
4201 #include "confdefs.h"
4203 /* Thanks to Mike Haertel and Jim Avera for this test.
4204 Here is a matrix of mmap possibilities:
4205 mmap private not fixed
4206 mmap private fixed at somewhere currently unmapped
4207 mmap private fixed at somewhere already mapped
4208 mmap shared not fixed
4209 mmap shared fixed at somewhere currently unmapped
4210 mmap shared fixed at somewhere already mapped
4211 For private mappings, we should verify that changes cannot be read()
4212 back from the file, nor mmap's back from the file at a different
4213 address. (There have been systems where private was not correctly
4214 implemented like the infamous i386 svr4.0, and systems where the
4215 VM page cache was not coherent with the filesystem buffer cache
4216 like early versions of FreeBSD and possibly contemporary NetBSD.)
4217 For shared mappings, we should conversely verify that changes get
4218 propogated back to all the places they're supposed to be.
4220 Grep wants private fixed already mapped.
4221 The main things grep needs to know about mmap are:
4222 * does it exist and is it safe to write into the mmap'd area
4223 * how to use it (BSD variants) */
4224 #include <sys/types.h>
4226 #include <sys/mman.h>
4228 /* This mess was copied from the GNU getpagesize.h. */
4229 #ifndef HAVE_GETPAGESIZE
4230 # ifdef HAVE_UNISTD_H
4231 # include <unistd.h>
4234 /* Assume that all systems that can run configure have sys/param.h. */
4235 # ifndef HAVE_SYS_PARAM_H
4236 # define HAVE_SYS_PARAM_H 1
4239 # ifdef _SC_PAGESIZE
4240 # define getpagesize() sysconf(_SC_PAGESIZE)
4241 # else /* no _SC_PAGESIZE */
4242 # ifdef HAVE_SYS_PARAM_H
4243 # include <sys/param.h>
4244 # ifdef EXEC_PAGESIZE
4245 # define getpagesize() EXEC_PAGESIZE
4246 # else /* no EXEC_PAGESIZE */
4248 # define getpagesize() NBPG * CLSIZE
4251 # endif /* no CLSIZE */
4252 # else /* no NBPG */
4254 # define getpagesize() NBPC
4255 # else /* no NBPC */
4257 # define getpagesize() PAGESIZE
4258 # endif /* PAGESIZE */
4259 # endif /* no NBPC */
4260 # endif /* no NBPG */
4261 # endif /* no EXEC_PAGESIZE */
4262 # else /* no HAVE_SYS_PARAM_H */
4263 # define getpagesize() 8192 /* punt totally */
4264 # endif /* no HAVE_SYS_PARAM_H */
4265 # endif /* no _SC_PAGESIZE */
4267 #endif /* no HAVE_GETPAGESIZE */
4270 extern "C" { void *malloc(unsigned); }
4278 char *data, *data2, *data3;
4282 pagesize = getpagesize();
4285 * First, make a file with some known garbage in it.
4287 data = malloc(pagesize);
4290 for (i = 0; i < pagesize; ++i)
4291 *(data + i) = rand();
4293 fd = creat("conftestmmap", 0600);
4296 if (write(fd, data, pagesize) != pagesize)
4301 * Next, try to mmap the file at a fixed address which
4302 * already has something else allocated at it. If we can,
4303 * also make sure that we see the same garbage.
4305 fd = open("conftestmmap", O_RDWR);
4308 data2 = malloc(2 * pagesize);
4311 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
4312 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
4313 MAP_PRIVATE | MAP_FIXED, fd, 0L))
4315 for (i = 0; i < pagesize; ++i)
4316 if (*(data + i) != *(data2 + i))
4320 * Finally, make sure that changes to the mapped area
4321 * do not percolate back to the file as seen by read().
4322 * (This is a bug on some variants of i386 svr4.0.)
4324 for (i = 0; i < pagesize; ++i)
4325 *(data2 + i) = *(data2 + i) + 1;
4326 data3 = malloc(pagesize);
4329 if (read(fd, data3, pagesize) != pagesize)
4331 for (i = 0; i < pagesize; ++i)
4332 if (*(data + i) != *(data3 + i))
4335 unlink("conftestmmap");
4340 if { (eval echo configure:4341: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4342 ac_cv_func_mmap_fixed_mapped=yes
4344 echo "configure: failed program was:" >&5
4345 cat conftest.$ac_ext >&5
4347 ac_cv_func_mmap_fixed_mapped=no
4354 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
4355 if test $ac_cv_func_mmap_fixed_mapped = yes; then
4356 cat >> confdefs.h <<\EOF
4363 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \
4364 unistd.h values.h sys/param.h
4366 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4367 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4368 echo "configure:4369: checking for $ac_hdr" >&5
4369 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4370 echo $ac_n "(cached) $ac_c" 1>&6
4372 cat > conftest.$ac_ext <<EOF
4373 #line 4374 "configure"
4374 #include "confdefs.h"
4377 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4378 { (eval echo configure:4379: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4379 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4380 if test -z "$ac_err"; then
4382 eval "ac_cv_header_$ac_safe=yes"
4385 echo "configure: failed program was:" >&5
4386 cat conftest.$ac_ext >&5
4388 eval "ac_cv_header_$ac_safe=no"
4392 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4393 echo "$ac_t""yes" 1>&6
4394 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4395 cat >> confdefs.h <<EOF
4396 #define $ac_tr_hdr 1
4400 echo "$ac_t""no" 1>&6
4404 for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
4405 __argz_count __argz_stringify __argz_next
4407 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4408 echo "configure:4409: checking for $ac_func" >&5
4409 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4410 echo $ac_n "(cached) $ac_c" 1>&6
4412 cat > conftest.$ac_ext <<EOF
4413 #line 4414 "configure"
4414 #include "confdefs.h"
4415 /* System header to define __stub macros and hopefully few prototypes,
4416 which can conflict with char $ac_func(); below. */
4418 /* Override any gcc2 internal prototype to avoid an error. */
4419 /* We use char because int might match the return type of a gcc2
4420 builtin and then its argument prototype would still apply. */
4425 /* The GNU C library defines this for functions which it implements
4426 to always fail with ENOSYS. Some functions are actually named
4427 something starting with __ and the normal name is an alias. */
4428 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4436 if { (eval echo configure:4437: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4438 eval "ac_cv_func_$ac_func=yes"
4440 echo "configure: failed program was:" >&5
4441 cat conftest.$ac_ext >&5
4443 eval "ac_cv_func_$ac_func=no"
4448 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4449 echo "$ac_t""yes" 1>&6
4450 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4451 cat >> confdefs.h <<EOF
4452 #define $ac_tr_func 1
4456 echo "$ac_t""no" 1>&6
4461 if test "${ac_cv_func_stpcpy+set}" != "set"; then
4462 for ac_func in stpcpy
4464 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4465 echo "configure:4466: checking for $ac_func" >&5
4466 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4467 echo $ac_n "(cached) $ac_c" 1>&6
4469 cat > conftest.$ac_ext <<EOF
4470 #line 4471 "configure"
4471 #include "confdefs.h"
4472 /* System header to define __stub macros and hopefully few prototypes,
4473 which can conflict with char $ac_func(); below. */
4475 /* Override any gcc2 internal prototype to avoid an error. */
4476 /* We use char because int might match the return type of a gcc2
4477 builtin and then its argument prototype would still apply. */
4482 /* The GNU C library defines this for functions which it implements
4483 to always fail with ENOSYS. Some functions are actually named
4484 something starting with __ and the normal name is an alias. */
4485 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4493 if { (eval echo configure:4494: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4495 eval "ac_cv_func_$ac_func=yes"
4497 echo "configure: failed program was:" >&5
4498 cat conftest.$ac_ext >&5
4500 eval "ac_cv_func_$ac_func=no"
4505 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4506 echo "$ac_t""yes" 1>&6
4507 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4508 cat >> confdefs.h <<EOF
4509 #define $ac_tr_func 1
4513 echo "$ac_t""no" 1>&6
4518 if test "${ac_cv_func_stpcpy}" = "yes"; then
4519 cat >> confdefs.h <<\EOF
4520 #define HAVE_STPCPY 1
4525 if test $ac_cv_header_locale_h = yes; then
4526 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
4527 echo "configure:4528: checking for LC_MESSAGES" >&5
4528 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
4529 echo $ac_n "(cached) $ac_c" 1>&6
4531 cat > conftest.$ac_ext <<EOF
4532 #line 4533 "configure"
4533 #include "confdefs.h"
4539 if { (eval echo configure:4540: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4541 am_cv_val_LC_MESSAGES=yes
4543 echo "configure: failed program was:" >&5
4544 cat conftest.$ac_ext >&5
4546 am_cv_val_LC_MESSAGES=no
4551 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
4552 if test $am_cv_val_LC_MESSAGES = yes; then
4553 cat >> confdefs.h <<\EOF
4554 #define HAVE_LC_MESSAGES 1
4559 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
4560 echo "configure:4561: checking whether NLS is requested" >&5
4561 # Check whether --enable-nls or --disable-nls was given.
4562 if test "${enable_nls+set}" = set; then
4563 enableval="$enable_nls"
4569 echo "$ac_t""$USE_NLS" 1>&6
4572 USE_INCLUDED_LIBINTL=no
4574 if test "$USE_NLS" = "yes"; then
4575 cat >> confdefs.h <<\EOF
4576 #define ENABLE_NLS 1
4579 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
4580 echo "configure:4581: checking whether included gettext is requested" >&5
4581 # Check whether --with-included-gettext or --without-included-gettext was given.
4582 if test "${with_included_gettext+set}" = set; then
4583 withval="$with_included_gettext"
4584 nls_cv_force_use_gnu_gettext=$withval
4586 nls_cv_force_use_gnu_gettext=no
4589 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
4591 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
4592 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
4594 nls_cv_header_libgt=
4597 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
4598 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
4599 echo "configure:4600: checking for libintl.h" >&5
4600 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4601 echo $ac_n "(cached) $ac_c" 1>&6
4603 cat > conftest.$ac_ext <<EOF
4604 #line 4605 "configure"
4605 #include "confdefs.h"
4606 #include <libintl.h>
4608 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4609 { (eval echo configure:4610: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4610 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4611 if test -z "$ac_err"; then
4613 eval "ac_cv_header_$ac_safe=yes"
4616 echo "configure: failed program was:" >&5
4617 cat conftest.$ac_ext >&5
4619 eval "ac_cv_header_$ac_safe=no"
4623 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4624 echo "$ac_t""yes" 1>&6
4625 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
4626 echo "configure:4627: checking for gettext in libc" >&5
4627 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
4628 echo $ac_n "(cached) $ac_c" 1>&6
4630 cat > conftest.$ac_ext <<EOF
4631 #line 4632 "configure"
4632 #include "confdefs.h"
4633 #include <libintl.h>
4635 return (int) gettext ("")
4638 if { (eval echo configure:4639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4640 gt_cv_func_gettext_libc=yes
4642 echo "configure: failed program was:" >&5
4643 cat conftest.$ac_ext >&5
4645 gt_cv_func_gettext_libc=no
4650 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
4652 if test "$gt_cv_func_gettext_libc" != "yes"; then
4653 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
4654 echo "configure:4655: checking for bindtextdomain in -lintl" >&5
4655 ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
4656 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4657 echo $ac_n "(cached) $ac_c" 1>&6
4659 ac_save_LIBS="$LIBS"
4661 cat > conftest.$ac_ext <<EOF
4662 #line 4663 "configure"
4663 #include "confdefs.h"
4664 /* Override any gcc2 internal prototype to avoid an error. */
4665 /* We use char because int might match the return type of a gcc2
4666 builtin and then its argument prototype would still apply. */
4667 char bindtextdomain();
4673 if { (eval echo configure:4674: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4675 eval "ac_cv_lib_$ac_lib_var=yes"
4677 echo "configure: failed program was:" >&5
4678 cat conftest.$ac_ext >&5
4680 eval "ac_cv_lib_$ac_lib_var=no"
4683 LIBS="$ac_save_LIBS"
4686 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4687 echo "$ac_t""yes" 1>&6
4688 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
4689 echo "configure:4690: checking for gettext in libintl" >&5
4690 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
4691 echo $ac_n "(cached) $ac_c" 1>&6
4693 cat > conftest.$ac_ext <<EOF
4694 #line 4695 "configure"
4695 #include "confdefs.h"
4698 return (int) gettext ("")
4701 if { (eval echo configure:4702: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4703 gt_cv_func_gettext_libintl=yes
4705 echo "configure: failed program was:" >&5
4706 cat conftest.$ac_ext >&5
4708 gt_cv_func_gettext_libintl=no
4713 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
4715 echo "$ac_t""no" 1>&6
4720 if test "$gt_cv_func_gettext_libc" = "yes" \
4721 || test "$gt_cv_func_gettext_libintl" = "yes"; then
4722 cat >> confdefs.h <<\EOF
4723 #define HAVE_GETTEXT 1
4726 # Extract the first word of "msgfmt", so it can be a program name with args.
4727 set dummy msgfmt; ac_word=$2
4728 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4729 echo "configure:4730: checking for $ac_word" >&5
4730 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
4731 echo $ac_n "(cached) $ac_c" 1>&6
4735 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4738 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
4739 for ac_dir in $PATH; do
4740 test -z "$ac_dir" && ac_dir=.
4741 if test -f $ac_dir/$ac_word; then
4742 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
4743 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
4749 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
4753 MSGFMT="$ac_cv_path_MSGFMT"
4754 if test -n "$MSGFMT"; then
4755 echo "$ac_t""$MSGFMT" 1>&6
4757 echo "$ac_t""no" 1>&6
4759 if test "$MSGFMT" != "no"; then
4760 for ac_func in dcgettext
4762 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4763 echo "configure:4764: checking for $ac_func" >&5
4764 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4765 echo $ac_n "(cached) $ac_c" 1>&6
4767 cat > conftest.$ac_ext <<EOF
4768 #line 4769 "configure"
4769 #include "confdefs.h"
4770 /* System header to define __stub macros and hopefully few prototypes,
4771 which can conflict with char $ac_func(); below. */
4773 /* Override any gcc2 internal prototype to avoid an error. */
4774 /* We use char because int might match the return type of a gcc2
4775 builtin and then its argument prototype would still apply. */
4780 /* The GNU C library defines this for functions which it implements
4781 to always fail with ENOSYS. Some functions are actually named
4782 something starting with __ and the normal name is an alias. */
4783 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4791 if { (eval echo configure:4792: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4793 eval "ac_cv_func_$ac_func=yes"
4795 echo "configure: failed program was:" >&5
4796 cat conftest.$ac_ext >&5
4798 eval "ac_cv_func_$ac_func=no"
4803 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4804 echo "$ac_t""yes" 1>&6
4805 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4806 cat >> confdefs.h <<EOF
4807 #define $ac_tr_func 1
4811 echo "$ac_t""no" 1>&6
4815 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4816 set dummy gmsgfmt; ac_word=$2
4817 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4818 echo "configure:4819: checking for $ac_word" >&5
4819 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
4820 echo $ac_n "(cached) $ac_c" 1>&6
4824 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4827 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
4830 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4832 for ac_dir in $ac_dummy; do
4833 test -z "$ac_dir" && ac_dir=.
4834 if test -f $ac_dir/$ac_word; then
4835 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
4840 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4844 GMSGFMT="$ac_cv_path_GMSGFMT"
4845 if test -n "$GMSGFMT"; then
4846 echo "$ac_t""$GMSGFMT" 1>&6
4848 echo "$ac_t""no" 1>&6
4851 # Extract the first word of "xgettext", so it can be a program name with args.
4852 set dummy xgettext; ac_word=$2
4853 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4854 echo "configure:4855: checking for $ac_word" >&5
4855 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
4856 echo $ac_n "(cached) $ac_c" 1>&6
4860 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
4863 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
4864 for ac_dir in $PATH; do
4865 test -z "$ac_dir" && ac_dir=.
4866 if test -f $ac_dir/$ac_word; then
4867 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
4868 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
4874 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
4878 XGETTEXT="$ac_cv_path_XGETTEXT"
4879 if test -n "$XGETTEXT"; then
4880 echo "$ac_t""$XGETTEXT" 1>&6
4882 echo "$ac_t""no" 1>&6
4885 cat > conftest.$ac_ext <<EOF
4886 #line 4887 "configure"
4887 #include "confdefs.h"
4890 extern int _nl_msg_cat_cntr;
4891 return _nl_msg_cat_cntr
4894 if { (eval echo configure:4895: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4899 echo "configure: failed program was:" >&5
4900 cat conftest.$ac_ext >&5
4911 echo "$ac_t""no" 1>&6
4916 if test "$CATOBJEXT" = "NONE"; then
4917 nls_cv_use_gnu_gettext=yes
4921 if test "$nls_cv_use_gnu_gettext" = "yes"; then
4922 INTLOBJS="\$(GETTOBJS)"
4923 # Extract the first word of "msgfmt", so it can be a program name with args.
4924 set dummy msgfmt; ac_word=$2
4925 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4926 echo "configure:4927: checking for $ac_word" >&5
4927 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
4928 echo $ac_n "(cached) $ac_c" 1>&6
4932 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4935 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
4936 for ac_dir in $PATH; do
4937 test -z "$ac_dir" && ac_dir=.
4938 if test -f $ac_dir/$ac_word; then
4939 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
4940 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
4946 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
4950 MSGFMT="$ac_cv_path_MSGFMT"
4951 if test -n "$MSGFMT"; then
4952 echo "$ac_t""$MSGFMT" 1>&6
4954 echo "$ac_t""no" 1>&6
4957 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4958 set dummy gmsgfmt; ac_word=$2
4959 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4960 echo "configure:4961: checking for $ac_word" >&5
4961 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
4962 echo $ac_n "(cached) $ac_c" 1>&6
4966 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4969 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
4972 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4974 for ac_dir in $ac_dummy; do
4975 test -z "$ac_dir" && ac_dir=.
4976 if test -f $ac_dir/$ac_word; then
4977 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
4982 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4986 GMSGFMT="$ac_cv_path_GMSGFMT"
4987 if test -n "$GMSGFMT"; then
4988 echo "$ac_t""$GMSGFMT" 1>&6
4990 echo "$ac_t""no" 1>&6
4993 # Extract the first word of "xgettext", so it can be a program name with args.
4994 set dummy xgettext; ac_word=$2
4995 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4996 echo "configure:4997: checking for $ac_word" >&5
4997 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
4998 echo $ac_n "(cached) $ac_c" 1>&6
5002 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5005 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5006 for ac_dir in $PATH; do
5007 test -z "$ac_dir" && ac_dir=.
5008 if test -f $ac_dir/$ac_word; then
5009 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
5010 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
5016 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5020 XGETTEXT="$ac_cv_path_XGETTEXT"
5021 if test -n "$XGETTEXT"; then
5022 echo "$ac_t""$XGETTEXT" 1>&6
5024 echo "$ac_t""no" 1>&6
5028 USE_INCLUDED_LIBINTL=yes
5032 INTLDEPS='$(top_builddir)/../intl/libintl.a'
5034 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
5035 nls_cv_header_intl=libintl.h
5036 nls_cv_header_libgt=libgettext.h
5039 if test "$XGETTEXT" != ":"; then
5040 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
5043 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
5048 # We need to process the po/ directory.
5052 nls_cv_header_intl=libintl.h
5053 nls_cv_header_libgt=libgettext.h
5056 # If this is used in GNU gettext we have to set USE_NLS to `yes'
5057 # because some of the sources are only built for this goal.
5058 if test "$PACKAGE" = gettext; then
5060 USE_INCLUDED_LIBINTL=yes
5063 for lang in $ALL_LINGUAS; do
5064 GMOFILES="$GMOFILES $lang.gmo"
5065 POFILES="$POFILES $lang.po"
5081 if test "x$CATOBJEXT" != "x"; then
5082 if test "x$ALL_LINGUAS" = "x"; then
5085 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
5086 echo "configure:5087: checking for catalogs to be installed" >&5
5088 for lang in ${LINGUAS=$ALL_LINGUAS}; do
5089 case "$ALL_LINGUAS" in
5090 *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
5093 LINGUAS=$NEW_LINGUAS
5094 echo "$ac_t""$LINGUAS" 1>&6
5097 if test -n "$LINGUAS"; then
5098 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
5102 if test $ac_cv_header_locale_h = yes; then
5103 INCLUDE_LOCALE_H="#include <locale.h>"
5106 /* The system does not provide the header <locale.h>. Take care yourself. */"
5110 if test -f $srcdir/po2tbl.sed.in; then
5111 if test "$CATOBJEXT" = ".cat"; then
5112 ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
5113 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
5114 echo "configure:5115: checking for linux/version.h" >&5
5115 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5116 echo $ac_n "(cached) $ac_c" 1>&6
5118 cat > conftest.$ac_ext <<EOF
5119 #line 5120 "configure"
5120 #include "confdefs.h"
5121 #include <linux/version.h>
5123 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5124 { (eval echo configure:5125: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5125 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5126 if test -z "$ac_err"; then
5128 eval "ac_cv_header_$ac_safe=yes"
5131 echo "configure: failed program was:" >&5
5132 cat conftest.$ac_ext >&5
5134 eval "ac_cv_header_$ac_safe=no"
5138 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5139 echo "$ac_t""yes" 1>&6
5142 echo "$ac_t""no" 1>&6
5147 sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed
5149 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
5150 $srcdir/po2tbl.sed.in > po2tbl.sed
5153 if test "$PACKAGE" = "gettext"; then
5163 MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs"
5169 if test -d $srcdir/po; then
5170 test -d po || mkdir po
5171 if test "x$srcdir" != "x."; then
5172 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
5173 posrcprefix="$srcdir/"
5175 posrcprefix="../$srcdir/"
5181 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
5182 < $srcdir/po/POTFILES.in > po/POTFILES
5186 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
5187 echo "configure:5188: checking whether to enable maintainer-specific portions of Makefiles" >&5
5188 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
5189 if test "${enable_maintainer_mode+set}" = set; then
5190 enableval="$enable_maintainer_mode"
5191 USE_MAINTAINER_MODE=$enableval
5193 USE_MAINTAINER_MODE=no
5196 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
5199 if test $USE_MAINTAINER_MODE = yes; then
5200 MAINTAINER_MODE_TRUE=
5201 MAINTAINER_MODE_FALSE='#'
5203 MAINTAINER_MODE_TRUE='#'
5204 MAINTAINER_MODE_FALSE=
5206 MAINT=$MAINTAINER_MODE_TRUE
5211 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
5212 echo "configure:5213: checking for executable suffix" >&5
5213 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
5214 echo $ac_n "(cached) $ac_c" 1>&6
5216 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
5220 echo 'int main () { return 0; }' > conftest.$ac_ext
5222 if { (eval echo configure:5223: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
5223 for file in conftest.*; do
5225 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
5226 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
5230 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
5233 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
5238 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
5239 echo "$ac_t""${ac_cv_exeext}" 1>&6
5243 for ac_hdr in string.h stdlib.h memory.h strings.h unistd.h stdarg.h varargs.h errno.h sys/types.h
5245 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5246 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5247 echo "configure:5248: checking for $ac_hdr" >&5
5248 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5249 echo $ac_n "(cached) $ac_c" 1>&6
5251 cat > conftest.$ac_ext <<EOF
5252 #line 5253 "configure"
5253 #include "confdefs.h"
5256 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5257 { (eval echo configure:5258: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5258 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5259 if test -z "$ac_err"; then
5261 eval "ac_cv_header_$ac_safe=yes"
5264 echo "configure: failed program was:" >&5
5265 cat conftest.$ac_ext >&5
5267 eval "ac_cv_header_$ac_safe=no"
5271 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5272 echo "$ac_t""yes" 1>&6
5273 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5274 cat >> confdefs.h <<EOF
5275 #define $ac_tr_hdr 1
5279 echo "$ac_t""no" 1>&6
5284 # Put this here so that autoconf's "cross-compiling" message doesn't confuse
5285 # people who are not cross-compiling but are compiling cross-assemblers.
5286 echo $ac_n "checking whether compiling a cross-assembler""... $ac_c" 1>&6
5287 echo "configure:5288: checking whether compiling a cross-assembler" >&5
5288 if test "${host}" = "${target}"; then
5292 cat >> confdefs.h <<\EOF
5293 #define CROSS_COMPILE 1
5297 echo "$ac_t""$cross_gas" 1>&6
5299 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5300 # for constant arguments. Useless!
5301 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
5302 echo "configure:5303: checking for working alloca.h" >&5
5303 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
5304 echo $ac_n "(cached) $ac_c" 1>&6
5306 cat > conftest.$ac_ext <<EOF
5307 #line 5308 "configure"
5308 #include "confdefs.h"
5311 char *p = alloca(2 * sizeof(int));
5314 if { (eval echo configure:5315: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5316 ac_cv_header_alloca_h=yes
5318 echo "configure: failed program was:" >&5
5319 cat conftest.$ac_ext >&5
5321 ac_cv_header_alloca_h=no
5326 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
5327 if test $ac_cv_header_alloca_h = yes; then
5328 cat >> confdefs.h <<\EOF
5329 #define HAVE_ALLOCA_H 1
5334 echo $ac_n "checking for alloca""... $ac_c" 1>&6
5335 echo "configure:5336: checking for alloca" >&5
5336 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
5337 echo $ac_n "(cached) $ac_c" 1>&6
5339 cat > conftest.$ac_ext <<EOF
5340 #line 5341 "configure"
5341 #include "confdefs.h"
5344 # define alloca __builtin_alloca
5347 # include <malloc.h>
5348 # define alloca _alloca
5351 # include <alloca.h>
5356 # ifndef alloca /* predefined by HP cc +Olibcalls */
5365 char *p = (char *) alloca(1);
5368 if { (eval echo configure:5369: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5370 ac_cv_func_alloca_works=yes
5372 echo "configure: failed program was:" >&5
5373 cat conftest.$ac_ext >&5
5375 ac_cv_func_alloca_works=no
5380 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
5381 if test $ac_cv_func_alloca_works = yes; then
5382 cat >> confdefs.h <<\EOF
5383 #define HAVE_ALLOCA 1
5388 if test $ac_cv_func_alloca_works = no; then
5389 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5390 # that cause trouble. Some versions do not even contain alloca or
5391 # contain a buggy version. If you still want to use their alloca,
5392 # use ar to extract alloca.o from them instead of compiling alloca.c.
5393 ALLOCA=alloca.${ac_objext}
5394 cat >> confdefs.h <<\EOF
5399 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
5400 echo "configure:5401: checking whether alloca needs Cray hooks" >&5
5401 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
5402 echo $ac_n "(cached) $ac_c" 1>&6
5404 cat > conftest.$ac_ext <<EOF
5405 #line 5406 "configure"
5406 #include "confdefs.h"
5407 #if defined(CRAY) && ! defined(CRAY2)
5414 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5415 egrep "webecray" >/dev/null 2>&1; then
5426 echo "$ac_t""$ac_cv_os_cray" 1>&6
5427 if test $ac_cv_os_cray = yes; then
5428 for ac_func in _getb67 GETB67 getb67; do
5429 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5430 echo "configure:5431: checking for $ac_func" >&5
5431 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5432 echo $ac_n "(cached) $ac_c" 1>&6
5434 cat > conftest.$ac_ext <<EOF
5435 #line 5436 "configure"
5436 #include "confdefs.h"
5437 /* System header to define __stub macros and hopefully few prototypes,
5438 which can conflict with char $ac_func(); below. */
5440 /* Override any gcc2 internal prototype to avoid an error. */
5441 /* We use char because int might match the return type of a gcc2
5442 builtin and then its argument prototype would still apply. */
5447 /* The GNU C library defines this for functions which it implements
5448 to always fail with ENOSYS. Some functions are actually named
5449 something starting with __ and the normal name is an alias. */
5450 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5458 if { (eval echo configure:5459: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5460 eval "ac_cv_func_$ac_func=yes"
5462 echo "configure: failed program was:" >&5
5463 cat conftest.$ac_ext >&5
5465 eval "ac_cv_func_$ac_func=no"
5470 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5471 echo "$ac_t""yes" 1>&6
5472 cat >> confdefs.h <<EOF
5473 #define CRAY_STACKSEG_END $ac_func
5478 echo "$ac_t""no" 1>&6
5484 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
5485 echo "configure:5486: checking stack direction for C alloca" >&5
5486 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
5487 echo $ac_n "(cached) $ac_c" 1>&6
5489 if test "$cross_compiling" = yes; then
5490 ac_cv_c_stack_direction=0
5492 cat > conftest.$ac_ext <<EOF
5493 #line 5494 "configure"
5494 #include "confdefs.h"
5495 find_stack_direction ()
5497 static char *addr = 0;
5502 return find_stack_direction ();
5505 return (&dummy > addr) ? 1 : -1;
5509 exit (find_stack_direction() < 0);
5512 if { (eval echo configure:5513: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5514 ac_cv_c_stack_direction=1
5516 echo "configure: failed program was:" >&5
5517 cat conftest.$ac_ext >&5
5519 ac_cv_c_stack_direction=-1
5526 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
5527 cat >> confdefs.h <<EOF
5528 #define STACK_DIRECTION $ac_cv_c_stack_direction
5533 echo $ac_n "checking for inline""... $ac_c" 1>&6
5534 echo "configure:5535: checking for inline" >&5
5535 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
5536 echo $ac_n "(cached) $ac_c" 1>&6
5539 for ac_kw in inline __inline__ __inline; do
5540 cat > conftest.$ac_ext <<EOF
5541 #line 5542 "configure"
5542 #include "confdefs.h"
5548 if { (eval echo configure:5549: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5550 ac_cv_c_inline=$ac_kw; break
5552 echo "configure: failed program was:" >&5
5553 cat conftest.$ac_ext >&5
5560 echo "$ac_t""$ac_cv_c_inline" 1>&6
5561 case "$ac_cv_c_inline" in
5563 no) cat >> confdefs.h <<\EOF
5567 *) cat >> confdefs.h <<EOF
5568 #define inline $ac_cv_c_inline
5574 # VMS doesn't have unlink.
5575 for ac_func in unlink remove
5577 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5578 echo "configure:5579: checking for $ac_func" >&5
5579 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5580 echo $ac_n "(cached) $ac_c" 1>&6
5582 cat > conftest.$ac_ext <<EOF
5583 #line 5584 "configure"
5584 #include "confdefs.h"
5585 /* System header to define __stub macros and hopefully few prototypes,
5586 which can conflict with char $ac_func(); below. */
5588 /* Override any gcc2 internal prototype to avoid an error. */
5589 /* We use char because int might match the return type of a gcc2
5590 builtin and then its argument prototype would still apply. */
5595 /* The GNU C library defines this for functions which it implements
5596 to always fail with ENOSYS. Some functions are actually named
5597 something starting with __ and the normal name is an alias. */
5598 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5606 if { (eval echo configure:5607: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5608 eval "ac_cv_func_$ac_func=yes"
5610 echo "configure: failed program was:" >&5
5611 cat conftest.$ac_ext >&5
5613 eval "ac_cv_func_$ac_func=no"
5618 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5619 echo "$ac_t""yes" 1>&6
5620 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5621 cat >> confdefs.h <<EOF
5622 #define $ac_tr_func 1
5626 echo "$ac_t""no" 1>&6
5631 # Some systems don't have sbrk().
5634 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5635 echo "configure:5636: checking for $ac_func" >&5
5636 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5637 echo $ac_n "(cached) $ac_c" 1>&6
5639 cat > conftest.$ac_ext <<EOF
5640 #line 5641 "configure"
5641 #include "confdefs.h"
5642 /* System header to define __stub macros and hopefully few prototypes,
5643 which can conflict with char $ac_func(); below. */
5645 /* Override any gcc2 internal prototype to avoid an error. */
5646 /* We use char because int might match the return type of a gcc2
5647 builtin and then its argument prototype would still apply. */
5652 /* The GNU C library defines this for functions which it implements
5653 to always fail with ENOSYS. Some functions are actually named
5654 something starting with __ and the normal name is an alias. */
5655 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5663 if { (eval echo configure:5664: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5665 eval "ac_cv_func_$ac_func=yes"
5667 echo "configure: failed program was:" >&5
5668 cat conftest.$ac_ext >&5
5670 eval "ac_cv_func_$ac_func=no"
5675 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5676 echo "$ac_t""yes" 1>&6
5677 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5678 cat >> confdefs.h <<EOF
5679 #define $ac_tr_func 1
5683 echo "$ac_t""no" 1>&6
5688 # do we need the math library?
5689 case "${need_libm}" in
5693 *-*-beos* | *-*-cygwin*)
5694 # These system don't have libm
5697 echo $ac_n "checking for _mwvalidcheckl in -lmw""... $ac_c" 1>&6
5698 echo "configure:5699: checking for _mwvalidcheckl in -lmw" >&5
5699 ac_lib_var=`echo mw'_'_mwvalidcheckl | sed 'y%./+-%__p_%'`
5700 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5701 echo $ac_n "(cached) $ac_c" 1>&6
5703 ac_save_LIBS="$LIBS"
5705 cat > conftest.$ac_ext <<EOF
5706 #line 5707 "configure"
5707 #include "confdefs.h"
5708 /* Override any gcc2 internal prototype to avoid an error. */
5709 /* We use char because int might match the return type of a gcc2
5710 builtin and then its argument prototype would still apply. */
5711 char _mwvalidcheckl();
5717 if { (eval echo configure:5718: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5719 eval "ac_cv_lib_$ac_lib_var=yes"
5721 echo "configure: failed program was:" >&5
5722 cat conftest.$ac_ext >&5
5724 eval "ac_cv_lib_$ac_lib_var=no"
5727 LIBS="$ac_save_LIBS"
5730 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5731 echo "$ac_t""yes" 1>&6
5734 echo "$ac_t""no" 1>&6
5737 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
5738 echo "configure:5739: checking for main in -lm" >&5
5739 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
5740 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5741 echo $ac_n "(cached) $ac_c" 1>&6
5743 ac_save_LIBS="$LIBS"
5745 cat > conftest.$ac_ext <<EOF
5746 #line 5747 "configure"
5747 #include "confdefs.h"
5753 if { (eval echo configure:5754: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5755 eval "ac_cv_lib_$ac_lib_var=yes"
5757 echo "configure: failed program was:" >&5
5758 cat conftest.$ac_ext >&5
5760 eval "ac_cv_lib_$ac_lib_var=no"
5763 LIBS="$ac_save_LIBS"
5766 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5767 echo "$ac_t""yes" 1>&6
5770 echo "$ac_t""no" 1>&6
5775 echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
5776 echo "configure:5777: checking for main in -lm" >&5
5777 ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
5778 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5779 echo $ac_n "(cached) $ac_c" 1>&6
5781 ac_save_LIBS="$LIBS"
5783 cat > conftest.$ac_ext <<EOF
5784 #line 5785 "configure"
5785 #include "confdefs.h"
5791 if { (eval echo configure:5792: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5793 eval "ac_cv_lib_$ac_lib_var=yes"
5795 echo "configure: failed program was:" >&5
5796 cat conftest.$ac_ext >&5
5798 eval "ac_cv_lib_$ac_lib_var=no"
5801 LIBS="$ac_save_LIBS"
5804 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5805 echo "$ac_t""yes" 1>&6
5808 echo "$ac_t""no" 1>&6
5818 # Some non-ANSI preprocessors botch requoting inside strings. That's bad
5819 # enough, but on some of those systems, the assert macro relies on requoting
5821 echo $ac_n "checking for working assert macro""... $ac_c" 1>&6
5822 echo "configure:5823: checking for working assert macro" >&5
5823 if eval "test \"`echo '$''{'gas_cv_assert_ok'+set}'`\" = set"; then
5824 echo $ac_n "(cached) $ac_c" 1>&6
5826 cat > conftest.$ac_ext <<EOF
5827 #line 5828 "configure"
5828 #include "confdefs.h"
5833 /* check for requoting problems */
5834 static int a, b, c, d;
5836 assert (!strcmp(s, "foo bar baz quux"));
5837 /* check for newline handling */
5843 if { (eval echo configure:5844: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5845 gas_cv_assert_ok=yes
5847 echo "configure: failed program was:" >&5
5848 cat conftest.$ac_ext >&5
5854 echo "$ac_t""$gas_cv_assert_ok" 1>&6
5855 test $gas_cv_assert_ok = yes || cat >> confdefs.h <<\EOF
5856 #define BROKEN_ASSERT 1
5861 # On some systems, the system header files may not declare malloc, realloc,
5862 # and free. There are places where gas needs these functions to have been
5863 # declared -- such as when taking their addresses.
5865 #ifdef HAVE_MEMORY_H
5868 #ifdef HAVE_STRING_H
5871 #ifdef HAVE_STRINGS_H
5872 #include <strings.h>
5875 #ifdef HAVE_STDLIB_H
5878 #ifdef HAVE_UNISTD_H
5883 echo $ac_n "checking whether declaration is required for strstr""... $ac_c" 1>&6
5884 echo "configure:5885: checking whether declaration is required for strstr" >&5
5885 if eval "test \"`echo '$''{'gas_cv_decl_needed_strstr'+set}'`\" = set"; then
5886 echo $ac_n "(cached) $ac_c" 1>&6
5888 cat > conftest.$ac_ext <<EOF
5889 #line 5890 "configure"
5890 #include "confdefs.h"
5894 typedef char *(*f)();
5900 if { (eval echo configure:5901: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5902 gas_cv_decl_needed_strstr=no
5904 echo "configure: failed program was:" >&5
5905 cat conftest.$ac_ext >&5
5907 gas_cv_decl_needed_strstr=yes
5911 echo "$ac_t""$gas_cv_decl_needed_strstr" 1>&6
5912 if test $gas_cv_decl_needed_strstr = yes; then
5913 cat >> confdefs.h <<\EOF
5914 #define NEED_DECLARATION_STRSTR 1
5920 echo $ac_n "checking whether declaration is required for malloc""... $ac_c" 1>&6
5921 echo "configure:5922: checking whether declaration is required for malloc" >&5
5922 if eval "test \"`echo '$''{'gas_cv_decl_needed_malloc'+set}'`\" = set"; then
5923 echo $ac_n "(cached) $ac_c" 1>&6
5925 cat > conftest.$ac_ext <<EOF
5926 #line 5927 "configure"
5927 #include "confdefs.h"
5931 typedef char *(*f)();
5937 if { (eval echo configure:5938: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5939 gas_cv_decl_needed_malloc=no
5941 echo "configure: failed program was:" >&5
5942 cat conftest.$ac_ext >&5
5944 gas_cv_decl_needed_malloc=yes
5948 echo "$ac_t""$gas_cv_decl_needed_malloc" 1>&6
5949 if test $gas_cv_decl_needed_malloc = yes; then
5950 cat >> confdefs.h <<\EOF
5951 #define NEED_DECLARATION_MALLOC 1
5957 echo $ac_n "checking whether declaration is required for free""... $ac_c" 1>&6
5958 echo "configure:5959: checking whether declaration is required for free" >&5
5959 if eval "test \"`echo '$''{'gas_cv_decl_needed_free'+set}'`\" = set"; then
5960 echo $ac_n "(cached) $ac_c" 1>&6
5962 cat > conftest.$ac_ext <<EOF
5963 #line 5964 "configure"
5964 #include "confdefs.h"
5968 typedef void (*f)();
5974 if { (eval echo configure:5975: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5976 gas_cv_decl_needed_free=no
5978 echo "configure: failed program was:" >&5
5979 cat conftest.$ac_ext >&5
5981 gas_cv_decl_needed_free=yes
5985 echo "$ac_t""$gas_cv_decl_needed_free" 1>&6
5986 if test $gas_cv_decl_needed_free = yes; then
5987 cat >> confdefs.h <<\EOF
5988 #define NEED_DECLARATION_FREE 1
5994 echo $ac_n "checking whether declaration is required for sbrk""... $ac_c" 1>&6
5995 echo "configure:5996: checking whether declaration is required for sbrk" >&5
5996 if eval "test \"`echo '$''{'gas_cv_decl_needed_sbrk'+set}'`\" = set"; then
5997 echo $ac_n "(cached) $ac_c" 1>&6
5999 cat > conftest.$ac_ext <<EOF
6000 #line 6001 "configure"
6001 #include "confdefs.h"
6005 typedef char *(*f)();
6011 if { (eval echo configure:6012: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6013 gas_cv_decl_needed_sbrk=no
6015 echo "configure: failed program was:" >&5
6016 cat conftest.$ac_ext >&5
6018 gas_cv_decl_needed_sbrk=yes
6022 echo "$ac_t""$gas_cv_decl_needed_sbrk" 1>&6
6023 if test $gas_cv_decl_needed_sbrk = yes; then
6024 cat >> confdefs.h <<\EOF
6025 #define NEED_DECLARATION_SBRK 1
6031 echo $ac_n "checking whether declaration is required for environ""... $ac_c" 1>&6
6032 echo "configure:6033: checking whether declaration is required for environ" >&5
6033 if eval "test \"`echo '$''{'gas_cv_decl_needed_environ'+set}'`\" = set"; then
6034 echo $ac_n "(cached) $ac_c" 1>&6
6036 cat > conftest.$ac_ext <<EOF
6037 #line 6038 "configure"
6038 #include "confdefs.h"
6048 if { (eval echo configure:6049: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6050 gas_cv_decl_needed_environ=no
6052 echo "configure: failed program was:" >&5
6053 cat conftest.$ac_ext >&5
6055 gas_cv_decl_needed_environ=yes
6059 echo "$ac_t""$gas_cv_decl_needed_environ" 1>&6
6060 if test $gas_cv_decl_needed_environ = yes; then
6061 cat >> confdefs.h <<\EOF
6062 #define NEED_DECLARATION_ENVIRON 1
6068 # Does errno.h declare errno, or do we have to add a separate declaration
6071 echo $ac_n "checking whether declaration is required for errno""... $ac_c" 1>&6
6072 echo "configure:6073: checking whether declaration is required for errno" >&5
6073 if eval "test \"`echo '$''{'gas_cv_decl_needed_errno'+set}'`\" = set"; then
6074 echo $ac_n "(cached) $ac_c" 1>&6
6076 cat > conftest.$ac_ext <<EOF
6077 #line 6078 "configure"
6078 #include "confdefs.h"
6092 if { (eval echo configure:6093: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6094 gas_cv_decl_needed_errno=no
6096 echo "configure: failed program was:" >&5
6097 cat conftest.$ac_ext >&5
6099 gas_cv_decl_needed_errno=yes
6103 echo "$ac_t""$gas_cv_decl_needed_errno" 1>&6
6104 if test $gas_cv_decl_needed_errno = yes; then
6105 cat >> confdefs.h <<\EOF
6106 #define NEED_DECLARATION_ERRNO 1
6115 cat > confcache <<\EOF
6116 # This file is a shell script that caches the results of configure
6117 # tests run on this system so they can be shared between configure
6118 # scripts and configure runs. It is not useful on other systems.
6119 # If it contains results you don't want to keep, you may remove or edit it.
6121 # By default, configure uses ./config.cache as the cache file,
6122 # creating it if it does not exist already. You can give configure
6123 # the --cache-file=FILE option to use a different cache file; that is
6124 # what configure does when it calls configure scripts in
6125 # subdirectories, so they share the cache.
6126 # Giving --cache-file=/dev/null disables caching, for debugging configure.
6127 # config.status only pays attention to the cache file if you give it the
6128 # --recheck option to rerun configure.
6131 # The following way of writing the cache mishandles newlines in values,
6132 # but we know of no workaround that is simple, portable, and efficient.
6133 # So, don't put newlines in cache variables' values.
6134 # Ultrix sh set writes to stderr and can't be redirected directly,
6135 # and sets the high bit in the cache file unless we assign to the vars.
6137 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6139 # `set' does not quote correctly, so add quotes (double-quote substitution
6140 # turns \\\\ into \\, and sed turns \\ into \).
6142 -e "s/'/'\\\\''/g" \
6143 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
6146 # `set' quotes correctly as required by POSIX, so do not add quotes.
6147 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
6150 if cmp -s $cache_file confcache; then
6153 if test -w $cache_file; then
6154 echo "updating cache $cache_file"
6155 cat confcache > $cache_file
6157 echo "not updating unwritable cache $cache_file"
6162 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
6164 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6165 # Let make expand exec_prefix.
6166 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6168 # Any assignment to VPATH causes Sun make to only execute
6169 # the first set of double-colon rules, so remove it if not needed.
6170 # If there is a colon in the path, we need to keep it.
6171 if test "x$srcdir" = x.; then
6172 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
6175 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
6177 DEFS=-DHAVE_CONFIG_H
6179 # Without the "./", some shells look in PATH for config.status.
6180 : ${CONFIG_STATUS=./config.status}
6182 echo creating $CONFIG_STATUS
6183 rm -f $CONFIG_STATUS
6184 cat > $CONFIG_STATUS <<EOF
6186 # Generated automatically by configure.
6187 # Run this file to recreate the current configuration.
6188 # This directory was configured as follows,
6189 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
6191 # $0 $ac_configure_args
6193 # Compiler output produced by configure, useful for debugging
6194 # configure, is in ./config.log if it exists.
6196 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
6199 case "\$ac_option" in
6200 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6201 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
6202 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
6203 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
6204 echo "$CONFIG_STATUS generated by autoconf version 2.13"
6206 -help | --help | --hel | --he | --h)
6207 echo "\$ac_cs_usage"; exit 0 ;;
6208 *) echo "\$ac_cs_usage"; exit 1 ;;
6212 ac_given_srcdir=$srcdir
6213 ac_given_INSTALL="$INSTALL"
6215 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
6217 cat >> $CONFIG_STATUS <<EOF
6219 # Protect against being on the right side of a sed subst in config.status.
6220 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
6221 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
6225 s%@CFLAGS@%$CFLAGS%g
6226 s%@CPPFLAGS@%$CPPFLAGS%g
6227 s%@CXXFLAGS@%$CXXFLAGS%g
6228 s%@FFLAGS@%$FFLAGS%g
6230 s%@LDFLAGS@%$LDFLAGS%g
6232 s%@exec_prefix@%$exec_prefix%g
6233 s%@prefix@%$prefix%g
6234 s%@program_transform_name@%$program_transform_name%g
6235 s%@bindir@%$bindir%g
6236 s%@sbindir@%$sbindir%g
6237 s%@libexecdir@%$libexecdir%g
6238 s%@datadir@%$datadir%g
6239 s%@sysconfdir@%$sysconfdir%g
6240 s%@sharedstatedir@%$sharedstatedir%g
6241 s%@localstatedir@%$localstatedir%g
6242 s%@libdir@%$libdir%g
6243 s%@includedir@%$includedir%g
6244 s%@oldincludedir@%$oldincludedir%g
6245 s%@infodir@%$infodir%g
6246 s%@mandir@%$mandir%g
6248 s%@host_alias@%$host_alias%g
6249 s%@host_cpu@%$host_cpu%g
6250 s%@host_vendor@%$host_vendor%g
6251 s%@host_os@%$host_os%g
6252 s%@target@%$target%g
6253 s%@target_alias@%$target_alias%g
6254 s%@target_cpu@%$target_cpu%g
6255 s%@target_vendor@%$target_vendor%g
6256 s%@target_os@%$target_os%g
6258 s%@build_alias@%$build_alias%g
6259 s%@build_cpu@%$build_cpu%g
6260 s%@build_vendor@%$build_vendor%g
6261 s%@build_os@%$build_os%g
6262 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
6263 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
6264 s%@INSTALL_DATA@%$INSTALL_DATA%g
6265 s%@PACKAGE@%$PACKAGE%g
6266 s%@VERSION@%$VERSION%g
6267 s%@ACLOCAL@%$ACLOCAL%g
6268 s%@AUTOCONF@%$AUTOCONF%g
6269 s%@AUTOMAKE@%$AUTOMAKE%g
6270 s%@AUTOHEADER@%$AUTOHEADER%g
6271 s%@MAKEINFO@%$MAKEINFO%g
6272 s%@SET_MAKE@%$SET_MAKE%g
6275 s%@OBJEXT@%$OBJEXT%g
6276 s%@EXEEXT@%$EXEEXT%g
6277 s%@RANLIB@%$RANLIB%g
6279 s%@LIBTOOL@%$LIBTOOL%g
6280 s%@WARN_CFLAGS@%$WARN_CFLAGS%g
6281 s%@GDBINIT@%$GDBINIT%g
6282 s%@cgen_cpu_prefix@%$cgen_cpu_prefix%g
6283 s%@extra_objects@%$extra_objects%g
6284 s%@target_cpu_type@%$target_cpu_type%g
6285 s%@obj_format@%$obj_format%g
6286 s%@te_file@%$te_file%g
6287 s%@install_tooldir@%$install_tooldir%g
6289 s%@BFDLIB@%$BFDLIB%g
6290 s%@OPCODES_LIB@%$OPCODES_LIB%g
6291 s%@ALL_OBJ_DEPS@%$ALL_OBJ_DEPS%g
6294 s%@LEXLIB@%$LEXLIB%g
6296 s%@LEX_OUTPUT_ROOT@%$LEX_OUTPUT_ROOT%g
6297 s%@ALLOCA@%$ALLOCA%g
6298 s%@USE_NLS@%$USE_NLS%g
6299 s%@MSGFMT@%$MSGFMT%g
6300 s%@GMSGFMT@%$GMSGFMT%g
6301 s%@XGETTEXT@%$XGETTEXT%g
6302 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
6303 s%@CATALOGS@%$CATALOGS%g
6304 s%@CATOBJEXT@%$CATOBJEXT%g
6305 s%@DATADIRNAME@%$DATADIRNAME%g
6306 s%@GMOFILES@%$GMOFILES%g
6307 s%@INSTOBJEXT@%$INSTOBJEXT%g
6308 s%@INTLDEPS@%$INTLDEPS%g
6309 s%@INTLLIBS@%$INTLLIBS%g
6310 s%@INTLOBJS@%$INTLOBJS%g
6311 s%@POFILES@%$POFILES%g
6313 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
6315 s%@GT_YES@%$GT_YES%g
6316 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
6318 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
6319 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
6326 cat >> $CONFIG_STATUS <<\EOF
6328 # Split the substitutions into bite-sized pieces for seds with
6329 # small command number limits, like on Digital OSF/1 and HP-UX.
6330 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
6331 ac_file=1 # Number of current file.
6332 ac_beg=1 # First line for current file.
6333 ac_end=$ac_max_sed_cmds # Line after last line for current file.
6336 while $ac_more_lines; do
6337 if test $ac_beg -gt 1; then
6338 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
6340 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
6342 if test ! -s conftest.s$ac_file; then
6344 rm -f conftest.s$ac_file
6346 if test -z "$ac_sed_cmds"; then
6347 ac_sed_cmds="sed -f conftest.s$ac_file"
6349 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
6351 ac_file=`expr $ac_file + 1`
6353 ac_end=`expr $ac_end + $ac_max_sed_cmds`
6356 if test -z "$ac_sed_cmds"; then
6361 cat >> $CONFIG_STATUS <<EOF
6363 CONFIG_FILES=\${CONFIG_FILES-"Makefile doc/Makefile ${GDBINIT}:gdbinit.in po/Makefile.in:po/Make-in"}
6365 cat >> $CONFIG_STATUS <<\EOF
6366 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
6367 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6369 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
6370 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
6371 *) ac_file_in="${ac_file}.in" ;;
6374 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
6376 # Remove last slash and all that follows it. Not all systems have dirname.
6377 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6378 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6379 # The file is in a subdirectory.
6380 test ! -d "$ac_dir" && mkdir "$ac_dir"
6381 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
6382 # A "../" for each directory in $ac_dir_suffix.
6383 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
6385 ac_dir_suffix= ac_dots=
6388 case "$ac_given_srcdir" in
6390 if test -z "$ac_dots"; then top_srcdir=.
6391 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
6392 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
6394 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
6395 top_srcdir="$ac_dots$ac_given_srcdir" ;;
6398 case "$ac_given_INSTALL" in
6399 [/$]*) INSTALL="$ac_given_INSTALL" ;;
6400 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
6403 echo creating "$ac_file"
6405 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
6407 *Makefile*) ac_comsub="1i\\
6408 # $configure_input" ;;
6412 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6414 s%@configure_input@%$configure_input%g
6415 s%@srcdir@%$srcdir%g
6416 s%@top_srcdir@%$top_srcdir%g
6417 s%@INSTALL@%$INSTALL%g
6418 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
6422 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6423 # NAME is the cpp macro being defined and VALUE is the value it is being given.
6425 # ac_d sets the value in "#define NAME VALUE" lines.
6426 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
6427 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
6430 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
6431 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6432 ac_uB='\([ ]\)%\1#\2define\3'
6435 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6436 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6437 ac_eB='$%\1#\2define\3'
6441 if test "${CONFIG_HEADERS+set}" != set; then
6443 cat >> $CONFIG_STATUS <<EOF
6444 CONFIG_HEADERS="config.h:config.in"
6446 cat >> $CONFIG_STATUS <<\EOF
6448 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
6449 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6451 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
6452 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
6453 *) ac_file_in="${ac_file}.in" ;;
6456 echo creating $ac_file
6458 rm -f conftest.frag conftest.in conftest.out
6459 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6460 cat $ac_file_inputs > conftest.in
6464 # Transform confdefs.h into a sed script conftest.vals that substitutes
6465 # the proper values into config.h.in to produce config.h. And first:
6466 # Protect against being on the right side of a sed subst in config.status.
6467 # Protect against being in an unquoted here document in config.status.
6469 cat > conftest.hdr <<\EOF
6472 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
6476 sed -n -f conftest.hdr confdefs.h > conftest.vals
6479 # This sed command replaces #undef with comments. This is necessary, for
6480 # example, in the case of _POSIX_SOURCE, which is predefined and required
6481 # on some systems where configure will not decide to define it.
6482 cat >> conftest.vals <<\EOF
6483 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
6486 # Break up conftest.vals because some shells have a limit on
6487 # the size of here documents, and old seds have small limits too.
6492 ac_lines=`grep -c . conftest.vals`
6493 # grep -c gives empty output for an empty file on some AIX systems.
6494 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
6495 # Write a limited-size here document to conftest.frag.
6496 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
6497 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
6499 sed -f conftest.frag conftest.in > conftest.out
6501 mv conftest.out conftest.in
6503 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
6505 mv conftest.tail conftest.vals
6509 cat >> $CONFIG_STATUS <<\EOF
6510 rm -f conftest.frag conftest.h
6511 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
6512 cat conftest.in >> conftest.h
6514 if cmp -s $ac_file conftest.h 2>/dev/null; then
6515 echo "$ac_file is unchanged"
6518 # Remove last slash and all that follows it. Not all systems have dirname.
6519 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6520 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6521 # The file is in a subdirectory.
6522 test ! -d "$ac_dir" && mkdir "$ac_dir"
6525 mv conftest.h $ac_file
6530 cat >> $CONFIG_STATUS <<EOF
6532 target_cpu_type=${target_cpu_type}
6533 cgen_cpu_prefix=${cgen_cpu_prefix}
6534 obj_format=${obj_format}
6537 cat >> $CONFIG_STATUS <<\EOF
6538 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
6539 rm -f targ-cpu.c targ-cpu.h obj-format.h obj-format.c targ-env.h atof-targ.c itbl-cpu.h
6540 echo '#include "tc-'"${target_cpu_type}"'.h"' > targ-cpu.h
6541 echo '#include "obj-'"${obj_format}"'.h"' > obj-format.h
6542 echo '#include "te-'"${te_file}"'.h"' > targ-env.h
6543 echo '#include "itbl-'"${target_cpu_type}"'.h"' > itbl-cpu.h
6544 if test "x$cgen_cpu_prefix" != x ; then
6545 echo '#include "opcodes/'"${cgen_cpu_prefix}"'-desc.h"' > cgen-desc.h
6548 sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile
6551 chmod +x $CONFIG_STATUS
6552 rm -fr confdefs* $ac_clean_files
6553 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1