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-targets alternative target configurations"
29 --enable-commonbfdlib build shared BFD/opcodes/libiberty library"
31 --enable-build-warnings Enable build-time compiler warnings if gcc is used"
33 --disable-nls do not use Native Language Support"
35 --with-included-gettext use the GNU gettext library included here"
37 --enable-maintainer-mode enable make rules and dependencies not useful
38 (and sometimes confusing) to the casual installer"
40 # Initialize some variables set by options.
41 # The variables have the same names as the options, with
42 # dashes changed to underlines.
44 cache_file
=.
/config.cache
53 program_transform_name
=s
,x
,x
,
62 bindir
='${exec_prefix}/bin'
63 sbindir
='${exec_prefix}/sbin'
64 libexecdir
='${exec_prefix}/libexec'
65 datadir
='${prefix}/share'
66 sysconfdir
='${prefix}/etc'
67 sharedstatedir
='${prefix}/com'
68 localstatedir
='${prefix}/var'
69 libdir
='${exec_prefix}/lib'
70 includedir
='${prefix}/include'
71 oldincludedir
='/usr/include'
72 infodir
='${prefix}/info'
73 mandir
='${prefix}/man'
75 # Initialize some other variables.
78 SHELL
=${CONFIG_SHELL-/bin/sh}
79 # Maximum number of lines to put in a shell here document.
86 # If the previous option needs an argument, assign it.
87 if test -n "$ac_prev"; then
88 eval "$ac_prev=\$ac_option"
94 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
98 # Accept the important Cygnus configure options, so we can diagnose typos.
102 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
104 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
105 bindir
="$ac_optarg" ;;
107 -build |
--build |
--buil |
--bui |
--bu)
109 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
110 build
="$ac_optarg" ;;
112 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
113 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
114 ac_prev
=cache_file
;;
115 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
116 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
117 cache_file
="$ac_optarg" ;;
119 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
121 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
123 datadir
="$ac_optarg" ;;
125 -disable-* |
--disable-*)
126 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
127 # Reject names that are not valid shell variable names.
128 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
129 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
131 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
132 eval "enable_${ac_feature}=no" ;;
134 -enable-* |
--enable-*)
135 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
136 # Reject names that are not valid shell variable names.
137 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
138 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
140 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
145 eval "enable_${ac_feature}='$ac_optarg'" ;;
147 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
148 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
149 |
--exec |
--exe |
--ex)
150 ac_prev
=exec_prefix
;;
151 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
152 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
153 |
--exec=* |
--exe=* |
--ex=*)
154 exec_prefix
="$ac_optarg" ;;
156 -gas |
--gas |
--ga |
--g)
157 # Obsolete; use --with-gas.
160 -help |
--help |
--hel |
--he)
161 # Omit some internal or obsolete options to make the list less imposing.
162 # This message is too long to be a string in the A/UX 3.1 sh.
164 Usage: configure [options] [host]
165 Options: [defaults in brackets after descriptions]
167 --cache-file=FILE cache test results in FILE
168 --help print this message
169 --no-create do not create output files
170 --quiet, --silent do not print \`checking...' messages
171 --site-file=FILE use FILE as the site file
172 --version print the version of autoconf that created configure
173 Directory and file names:
174 --prefix=PREFIX install architecture-independent files in PREFIX
176 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
178 --bindir=DIR user executables in DIR [EPREFIX/bin]
179 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
180 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
181 --datadir=DIR read-only architecture-independent data in DIR
183 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
184 --sharedstatedir=DIR modifiable architecture-independent data in DIR
186 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
187 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
188 --includedir=DIR C header files in DIR [PREFIX/include]
189 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
190 --infodir=DIR info documentation in DIR [PREFIX/info]
191 --mandir=DIR man documentation in DIR [PREFIX/man]
192 --srcdir=DIR find the sources in DIR [configure dir or ..]
193 --program-prefix=PREFIX prepend PREFIX to installed program names
194 --program-suffix=SUFFIX append SUFFIX to installed program names
195 --program-transform-name=PROGRAM
196 run sed PROGRAM on installed program names
200 --build=BUILD configure for building on BUILD [BUILD=HOST]
201 --host=HOST configure for HOST [guessed]
202 --target=TARGET configure for TARGET [TARGET=HOST]
203 Features and packages:
204 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
205 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
206 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
207 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
208 --x-includes=DIR X include files are in DIR
209 --x-libraries=DIR X library files are in DIR
211 if test -n "$ac_help"; then
212 echo "--enable and --with options recognized:$ac_help"
216 -host |
--host |
--hos |
--ho)
218 -host=* |
--host=* |
--hos=* |
--ho=*)
221 -includedir |
--includedir |
--includedi |
--included |
--include \
222 |
--includ |
--inclu |
--incl |
--inc)
223 ac_prev
=includedir
;;
224 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
225 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
226 includedir
="$ac_optarg" ;;
228 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
230 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
231 infodir
="$ac_optarg" ;;
233 -libdir |
--libdir |
--libdi |
--libd)
235 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
236 libdir
="$ac_optarg" ;;
238 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
239 |
--libexe |
--libex |
--libe)
240 ac_prev
=libexecdir
;;
241 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
242 |
--libexe=* |
--libex=* |
--libe=*)
243 libexecdir
="$ac_optarg" ;;
245 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
246 |
--localstate |
--localstat |
--localsta |
--localst \
247 |
--locals |
--local |
--loca |
--loc |
--lo)
248 ac_prev
=localstatedir
;;
249 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
250 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
251 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
252 localstatedir
="$ac_optarg" ;;
254 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
256 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
257 mandir
="$ac_optarg" ;;
260 # Obsolete; use --without-fp.
263 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
267 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
268 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
271 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
272 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
273 |
--oldin |
--oldi |
--old |
--ol |
--o)
274 ac_prev
=oldincludedir
;;
275 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
276 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
277 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
278 oldincludedir
="$ac_optarg" ;;
280 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
282 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
283 prefix
="$ac_optarg" ;;
285 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
286 |
--program-pre |
--program-pr |
--program-p)
287 ac_prev
=program_prefix
;;
288 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
289 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
290 program_prefix
="$ac_optarg" ;;
292 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
293 |
--program-suf |
--program-su |
--program-s)
294 ac_prev
=program_suffix
;;
295 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
296 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
297 program_suffix
="$ac_optarg" ;;
299 -program-transform-name |
--program-transform-name \
300 |
--program-transform-nam |
--program-transform-na \
301 |
--program-transform-n |
--program-transform- \
302 |
--program-transform |
--program-transfor \
303 |
--program-transfo |
--program-transf \
304 |
--program-trans |
--program-tran \
305 |
--progr-tra |
--program-tr |
--program-t)
306 ac_prev
=program_transform_name
;;
307 -program-transform-name=* |
--program-transform-name=* \
308 |
--program-transform-nam=* |
--program-transform-na=* \
309 |
--program-transform-n=* |
--program-transform-=* \
310 |
--program-transform=* |
--program-transfor=* \
311 |
--program-transfo=* |
--program-transf=* \
312 |
--program-trans=* |
--program-tran=* \
313 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
314 program_transform_name
="$ac_optarg" ;;
316 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
317 |
-silent |
--silent |
--silen |
--sile |
--sil)
320 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
322 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
324 sbindir
="$ac_optarg" ;;
326 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
327 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
328 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
330 ac_prev
=sharedstatedir
;;
331 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
332 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
333 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
335 sharedstatedir
="$ac_optarg" ;;
337 -site |
--site |
--sit)
339 -site=* |
--site=* |
--sit=*)
342 -site-file |
--site-file |
--site-fil |
--site-fi |
--site-f)
344 -site-file=* |
--site-file=* |
--site-fil=* |
--site-fi=* |
--site-f=*)
345 sitefile
="$ac_optarg" ;;
347 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
349 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
350 srcdir
="$ac_optarg" ;;
352 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
353 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
354 ac_prev
=sysconfdir
;;
355 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
356 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
357 sysconfdir
="$ac_optarg" ;;
359 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
361 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
362 target
="$ac_optarg" ;;
364 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
367 -version |
--version |
--versio |
--versi |
--vers)
368 echo "configure generated by autoconf version 2.13"
372 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
373 # Reject names that are not valid shell variable names.
374 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
375 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
377 ac_package
=`echo $ac_package| sed 's/-/_/g'`
382 eval "with_${ac_package}='$ac_optarg'" ;;
384 -without-* |
--without-*)
385 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
386 # Reject names that are not valid shell variable names.
387 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
388 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
390 ac_package
=`echo $ac_package| sed 's/-/_/g'`
391 eval "with_${ac_package}=no" ;;
394 # Obsolete; use --with-x.
397 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
398 |
--x-incl |
--x-inc |
--x-in |
--x-i)
399 ac_prev
=x_includes
;;
400 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
401 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
402 x_includes
="$ac_optarg" ;;
404 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
405 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
406 ac_prev
=x_libraries
;;
407 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
408 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
409 x_libraries
="$ac_optarg" ;;
411 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
415 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
416 echo "configure: warning: $ac_option: invalid host type" 1>&2
418 if test "x$nonopt" != xNONE
; then
419 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
427 if test -n "$ac_prev"; then
428 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
431 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
433 # File descriptor usage:
436 # 2 errors and warnings
437 # 3 some systems may open it to /dev/tty
438 # 4 used on the Kubota Titan
439 # 6 checking for... messages and results
440 # 5 compiler messages saved in config.log
441 if test "$silent" = yes; then
449 This file contains any messages produced by compilers while
450 running configure, to aid debugging if configure makes a mistake.
453 # Strip out --no-create and --no-recursion so they do not pile up.
454 # Also quote any args containing shell metacharacters.
459 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
460 |
--no-cr |
--no-c) ;;
461 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
462 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
463 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
464 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
465 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
470 # Only set these to C if already set. These must not be set unconditionally
471 # because not all systems understand e.g. LANG=C (notably SCO).
472 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
473 # Non-C LC_CTYPE values break the ctype check.
474 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
475 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
476 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
477 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
479 # confdefs.h avoids OS command line length limits that DEFS can exceed.
480 rm -rf conftest
* confdefs.h
481 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
484 # A filename unique to this package, relative to the directory that
485 # configure is in, which we can look for to find out if srcdir is correct.
488 # Find the source files, if location was not specified.
489 if test -z "$srcdir"; then
490 ac_srcdir_defaulted
=yes
491 # Try the directory containing this script, then its parent.
493 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
494 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
496 if test ! -r $srcdir/$ac_unique_file; then
500 ac_srcdir_defaulted
=no
502 if test ! -r $srcdir/$ac_unique_file; then
503 if test "$ac_srcdir_defaulted" = yes; then
504 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
506 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
509 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
511 # Prefer explicitly selected file to automatically selected ones.
512 if test -z "$sitefile"; then
513 if test -z "$CONFIG_SITE"; then
514 if test "x$prefix" != xNONE
; then
515 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
517 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
521 CONFIG_SITE
="$sitefile"
523 for ac_site_file
in $CONFIG_SITE; do
524 if test -r "$ac_site_file"; then
525 echo "loading site script $ac_site_file"
530 if test -r "$cache_file"; then
531 echo "loading cache $cache_file"
534 echo "creating cache $cache_file"
539 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
540 ac_cpp
='$CPP $CPPFLAGS'
541 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
542 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
543 cross_compiling
=$ac_cv_prog_cc_cross
547 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
548 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
549 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
556 ac_n
= ac_c
='\c' ac_t
=
559 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
560 echo "configure:561: checking for Cygwin environment" >&5
561 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
562 echo $ac_n "(cached) $ac_c" 1>&6
564 cat > conftest.
$ac_ext <<EOF
565 #line 566 "configure"
566 #include "confdefs.h"
571 #define __CYGWIN__ __CYGWIN32__
576 if { (eval echo configure
:577: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
580 echo "configure: failed program was:" >&5
581 cat conftest.
$ac_ext >&5
589 echo "$ac_t""$ac_cv_cygwin" 1>&6
591 test "$ac_cv_cygwin" = yes && CYGWIN
=yes
592 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
593 echo "configure:594: checking for mingw32 environment" >&5
594 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
595 echo $ac_n "(cached) $ac_c" 1>&6
597 cat > conftest.
$ac_ext <<EOF
598 #line 599 "configure"
599 #include "confdefs.h"
605 if { (eval echo configure
:606: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
609 echo "configure: failed program was:" >&5
610 cat conftest.
$ac_ext >&5
618 echo "$ac_t""$ac_cv_mingw32" 1>&6
620 test "$ac_cv_mingw32" = yes && MINGW32
=yes
624 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
625 if test -f $ac_dir/install-sh
; then
627 ac_install_sh
="$ac_aux_dir/install-sh -c"
629 elif test -f $ac_dir/install.sh
; then
631 ac_install_sh
="$ac_aux_dir/install.sh -c"
635 if test -z "$ac_aux_dir"; then
636 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
638 ac_config_guess
=$ac_aux_dir/config.guess
639 ac_config_sub
=$ac_aux_dir/config.sub
640 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
643 # Do some error checking and defaulting for the host and target type.
645 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
648 # 1. You are not allowed to specify --host, --target, and nonopt at the
650 # 2. Host defaults to nonopt.
651 # 3. If nonopt is not specified, then host defaults to the current host,
652 # as determined by config.guess.
653 # 4. Target and build default to nonopt.
654 # 5. If nonopt is not specified, then target and build default to host.
656 # The aliases save the names the user supplied, while $host etc.
657 # will get canonicalized.
658 case $host---$target---$nonopt in
659 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
660 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
664 # Make sure we can run config.sub.
665 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
666 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
669 echo $ac_n "checking host system type""... $ac_c" 1>&6
670 echo "configure:671: checking host system type" >&5
673 case "$host_alias" in
677 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
678 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
680 *) host_alias
=$nonopt ;;
684 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
685 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
686 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
687 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
688 echo "$ac_t""$host" 1>&6
690 echo $ac_n "checking target system type""... $ac_c" 1>&6
691 echo "configure:692: checking target system type" >&5
694 case "$target_alias" in
697 NONE
) target_alias
=$host_alias ;;
698 *) target_alias
=$nonopt ;;
702 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
703 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
704 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
705 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
706 echo "$ac_t""$target" 1>&6
708 echo $ac_n "checking build system type""... $ac_c" 1>&6
709 echo "configure:710: checking build system type" >&5
712 case "$build_alias" in
715 NONE
) build_alias
=$host_alias ;;
716 *) build_alias
=$nonopt ;;
720 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
721 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
722 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
723 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
724 echo "$ac_t""$build" 1>&6
726 test "$host_alias" != "$target_alias" &&
727 test "$program_prefix$program_suffix$program_transform_name" = \
729 program_prefix
=${target_alias}-
732 echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
733 echo "configure:734: checking for strerror in -lcposix" >&5
734 ac_lib_var
=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
735 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
736 echo $ac_n "(cached) $ac_c" 1>&6
739 LIBS
="-lcposix $LIBS"
740 cat > conftest.
$ac_ext <<EOF
741 #line 742 "configure"
742 #include "confdefs.h"
743 /* Override any gcc2 internal prototype to avoid an error. */
744 /* We use char because int might match the return type of a gcc2
745 builtin and then its argument prototype would still apply. */
752 if { (eval echo configure
:753: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
754 eval "ac_cv_lib_$ac_lib_var=yes"
756 echo "configure: failed program was:" >&5
757 cat conftest.
$ac_ext >&5
759 eval "ac_cv_lib_$ac_lib_var=no"
765 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
766 echo "$ac_t""yes" 1>&6
767 LIBS
="$LIBS -lcposix"
769 echo "$ac_t""no" 1>&6
775 # Find a good install program. We prefer a C program (faster),
776 # so one script is as good as another. But avoid the broken or
777 # incompatible versions:
778 # SysV /etc/install, /usr/sbin/install
779 # SunOS /usr/etc/install
782 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
783 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
784 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
785 # ./install, which can be erroneously created by make from ./install.sh.
786 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
787 echo "configure:788: checking for a BSD compatible install" >&5
788 if test -z "$INSTALL"; then
789 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
790 echo $ac_n "(cached) $ac_c" 1>&6
792 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
793 for ac_dir
in $PATH; do
794 # Account for people who put trailing slashes in PATH elements.
796 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
798 # OSF1 and SCO ODT 3.0 have their own names for install.
799 # Don't use installbsd from OSF since it installs stuff as root
801 for ac_prog
in ginstall scoinst
install; do
802 if test -f $ac_dir/$ac_prog; then
803 if test $ac_prog = install &&
804 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
805 # AIX install. It has an incompatible calling convention.
808 ac_cv_path_install
="$ac_dir/$ac_prog -c"
819 if test "${ac_cv_path_install+set}" = set; then
820 INSTALL
="$ac_cv_path_install"
822 # As a last resort, use the slow shell script. We don't cache a
823 # path for INSTALL within a source directory, because that will
824 # break other packages using the cache if that directory is
825 # removed, or if the path is relative.
826 INSTALL
="$ac_install_sh"
829 echo "$ac_t""$INSTALL" 1>&6
831 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
832 # It thinks the first close brace ends the variable substitution.
833 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
835 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
837 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
839 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
840 echo "configure:841: checking whether build environment is sane" >&5
843 echo timestamp
> conftestfile
844 # Do `set' in a subshell so we don't clobber the current shell's
845 # arguments. Must try -L first in case configure is actually a
846 # symlink; some systems play weird games with the mod time of symlinks
847 # (eg FreeBSD returns the mod time of the symlink's containing
850 set X
`ls -Lt $srcdir/configure conftestfile 2> /dev/null`
851 if test "$*" = "X"; then
853 set X
`ls -t $srcdir/configure conftestfile`
855 if test "$*" != "X $srcdir/configure conftestfile" \
856 && test "$*" != "X conftestfile $srcdir/configure"; then
858 # If neither matched, then we have a broken ls. This can happen
859 # if, for instance, CONFIG_SHELL is bash and it inherits a
860 # broken ls alias from the environment. This has actually
861 # happened. Such a system could not be considered "sane".
862 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
863 alias in your environment" 1>&2; exit 1; }
866 test "$2" = conftestfile
872 { echo "configure: error: newly created file is older than distributed files!
873 Check your system clock" 1>&2; exit 1; }
876 echo "$ac_t""yes" 1>&6
877 if test "$program_transform_name" = s
,x
,x
,; then
878 program_transform_name
=
880 # Double any \ or $. echo might interpret backslashes.
881 cat <<\EOF_SED
> conftestsed
882 s
,\\,\\\\,g
; s
,\$
,$$
,g
884 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
887 test "$program_prefix" != NONE
&&
888 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
889 # Use a double $ so make ignores it.
890 test "$program_suffix" != NONE
&&
891 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
893 # sed with no file args requires a program.
894 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
896 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
897 echo "configure:898: checking whether ${MAKE-make} sets \${MAKE}" >&5
898 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
899 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
900 echo $ac_n "(cached) $ac_c" 1>&6
902 cat > conftestmake
<<\EOF
904 @
echo 'ac_maketemp="${MAKE}"'
906 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
907 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
908 if test -n "$ac_maketemp"; then
909 eval ac_cv_prog_make_
${ac_make}_set
=yes
911 eval ac_cv_prog_make_
${ac_make}_set
=no
915 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
916 echo "$ac_t""yes" 1>&6
919 echo "$ac_t""no" 1>&6
920 SET_MAKE
="MAKE=${MAKE-make}"
928 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status
; then
929 { echo "configure: error: source directory already configured; run "make distclean
" there first" 1>&2; exit 1; }
931 cat >> confdefs.h
<<EOF
932 #define PACKAGE "$PACKAGE"
935 cat >> confdefs.h
<<EOF
936 #define VERSION "$VERSION"
941 missing_dir
=`cd $ac_aux_dir && pwd`
942 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
943 echo "configure:944: checking for working aclocal" >&5
944 # Run test in a subshell; some versions of sh will print an error if
945 # an executable is not found, even if stderr is redirected.
946 # Redirect stdin to placate older versions of autoconf. Sigh.
947 if (aclocal
--version) < /dev
/null
> /dev
/null
2>&1; then
949 echo "$ac_t""found" 1>&6
951 ACLOCAL
="$missing_dir/missing aclocal"
952 echo "$ac_t""missing" 1>&6
955 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
956 echo "configure:957: checking for working autoconf" >&5
957 # Run test in a subshell; some versions of sh will print an error if
958 # an executable is not found, even if stderr is redirected.
959 # Redirect stdin to placate older versions of autoconf. Sigh.
960 if (autoconf
--version) < /dev
/null
> /dev
/null
2>&1; then
962 echo "$ac_t""found" 1>&6
964 AUTOCONF
="$missing_dir/missing autoconf"
965 echo "$ac_t""missing" 1>&6
968 echo $ac_n "checking for working automake""... $ac_c" 1>&6
969 echo "configure:970: checking for working automake" >&5
970 # Run test in a subshell; some versions of sh will print an error if
971 # an executable is not found, even if stderr is redirected.
972 # Redirect stdin to placate older versions of autoconf. Sigh.
973 if (automake
--version) < /dev
/null
> /dev
/null
2>&1; then
975 echo "$ac_t""found" 1>&6
977 AUTOMAKE
="$missing_dir/missing automake"
978 echo "$ac_t""missing" 1>&6
981 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
982 echo "configure:983: checking for working autoheader" >&5
983 # Run test in a subshell; some versions of sh will print an error if
984 # an executable is not found, even if stderr is redirected.
985 # Redirect stdin to placate older versions of autoconf. Sigh.
986 if (autoheader
--version) < /dev
/null
> /dev
/null
2>&1; then
987 AUTOHEADER
=autoheader
988 echo "$ac_t""found" 1>&6
990 AUTOHEADER
="$missing_dir/missing autoheader"
991 echo "$ac_t""missing" 1>&6
994 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
995 echo "configure:996: checking for working makeinfo" >&5
996 # Run test in a subshell; some versions of sh will print an error if
997 # an executable is not found, even if stderr is redirected.
998 # Redirect stdin to placate older versions of autoconf. Sigh.
999 if (makeinfo
--version) < /dev
/null
> /dev
/null
2>&1; then
1001 echo "$ac_t""found" 1>&6
1003 MAKEINFO
="$missing_dir/missing makeinfo"
1004 echo "$ac_t""missing" 1>&6
1009 # Check whether --enable-shared or --disable-shared was given.
1010 if test "${enable_shared+set}" = set; then
1011 enableval
="$enable_shared"
1012 p
=${PACKAGE-default}
1013 case "$enableval" in
1014 yes) enable_shared
=yes ;;
1015 no
) enable_shared
=no
;;
1018 # Look at the argument we got. We use all the common list separators.
1019 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1020 for pkg
in $enableval; do
1021 if test "X$pkg" = "X$p"; then
1032 # Check whether --enable-static or --disable-static was given.
1033 if test "${enable_static+set}" = set; then
1034 enableval
="$enable_static"
1035 p
=${PACKAGE-default}
1036 case "$enableval" in
1037 yes) enable_static
=yes ;;
1038 no
) enable_static
=no
;;
1041 # Look at the argument we got. We use all the common list separators.
1042 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1043 for pkg
in $enableval; do
1044 if test "X$pkg" = "X$p"; then
1055 # Check whether --enable-fast-install or --disable-fast-install was given.
1056 if test "${enable_fast_install+set}" = set; then
1057 enableval
="$enable_fast_install"
1058 p
=${PACKAGE-default}
1059 case "$enableval" in
1060 yes) enable_fast_install
=yes ;;
1061 no
) enable_fast_install
=no
;;
1063 enable_fast_install
=no
1064 # Look at the argument we got. We use all the common list separators.
1065 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1066 for pkg
in $enableval; do
1067 if test "X$pkg" = "X$p"; then
1068 enable_fast_install
=yes
1075 enable_fast_install
=yes
1078 # Extract the first word of "gcc", so it can be a program name with args.
1079 set dummy gcc
; ac_word
=$2
1080 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1081 echo "configure:1082: checking for $ac_word" >&5
1082 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1083 echo $ac_n "(cached) $ac_c" 1>&6
1085 if test -n "$CC"; then
1086 ac_cv_prog_CC
="$CC" # Let the user override the test.
1088 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1090 for ac_dir
in $ac_dummy; do
1091 test -z "$ac_dir" && ac_dir
=.
1092 if test -f $ac_dir/$ac_word; then
1101 if test -n "$CC"; then
1102 echo "$ac_t""$CC" 1>&6
1104 echo "$ac_t""no" 1>&6
1107 if test -z "$CC"; then
1108 # Extract the first word of "cc", so it can be a program name with args.
1109 set dummy cc
; ac_word
=$2
1110 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1111 echo "configure:1112: checking for $ac_word" >&5
1112 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1113 echo $ac_n "(cached) $ac_c" 1>&6
1115 if test -n "$CC"; then
1116 ac_cv_prog_CC
="$CC" # Let the user override the test.
1118 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1121 for ac_dir
in $ac_dummy; do
1122 test -z "$ac_dir" && ac_dir
=.
1123 if test -f $ac_dir/$ac_word; then
1124 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1125 ac_prog_rejected
=yes
1133 if test $ac_prog_rejected = yes; then
1134 # We found a bogon in the path, so make sure we never use it.
1135 set dummy
$ac_cv_prog_CC
1137 if test $# -gt 0; then
1138 # We chose a different compiler from the bogus one.
1139 # However, it has the same basename, so the bogon will be chosen
1140 # first if we set CC to just the basename; use the full file name.
1142 set dummy
"$ac_dir/$ac_word" "$@"
1150 if test -n "$CC"; then
1151 echo "$ac_t""$CC" 1>&6
1153 echo "$ac_t""no" 1>&6
1156 if test -z "$CC"; then
1157 case "`uname -s`" in
1159 # Extract the first word of "cl", so it can be a program name with args.
1160 set dummy cl
; ac_word
=$2
1161 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1162 echo "configure:1163: checking for $ac_word" >&5
1163 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1164 echo $ac_n "(cached) $ac_c" 1>&6
1166 if test -n "$CC"; then
1167 ac_cv_prog_CC
="$CC" # Let the user override the test.
1169 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1171 for ac_dir
in $ac_dummy; do
1172 test -z "$ac_dir" && ac_dir
=.
1173 if test -f $ac_dir/$ac_word; then
1182 if test -n "$CC"; then
1183 echo "$ac_t""$CC" 1>&6
1185 echo "$ac_t""no" 1>&6
1190 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1193 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1194 echo "configure:1195: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1197 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1198 ac_cpp
='$CPP $CPPFLAGS'
1199 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1200 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1201 cross_compiling
=$ac_cv_prog_cc_cross
1203 cat > conftest.
$ac_ext << EOF
1205 #line 1206 "configure"
1206 #include "confdefs.h"
1210 if { (eval echo configure
:1211: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1211 ac_cv_prog_cc_works
=yes
1212 # If we can't run a trivial program, we are probably using a cross compiler.
1213 if (.
/conftest
; exit) 2>/dev
/null
; then
1214 ac_cv_prog_cc_cross
=no
1216 ac_cv_prog_cc_cross
=yes
1219 echo "configure: failed program was:" >&5
1220 cat conftest.
$ac_ext >&5
1221 ac_cv_prog_cc_works
=no
1225 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1226 ac_cpp
='$CPP $CPPFLAGS'
1227 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1228 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1229 cross_compiling
=$ac_cv_prog_cc_cross
1231 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1232 if test $ac_cv_prog_cc_works = no
; then
1233 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1235 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1236 echo "configure:1237: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1237 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1238 cross_compiling
=$ac_cv_prog_cc_cross
1240 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1241 echo "configure:1242: checking whether we are using GNU C" >&5
1242 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1243 echo $ac_n "(cached) $ac_c" 1>&6
1245 cat > conftest.c
<<EOF
1250 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1251: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1257 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1259 if test $ac_cv_prog_gcc = yes; then
1265 ac_test_CFLAGS
="${CFLAGS+set}"
1266 ac_save_CFLAGS
="$CFLAGS"
1268 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1269 echo "configure:1270: checking whether ${CC-cc} accepts -g" >&5
1270 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1271 echo $ac_n "(cached) $ac_c" 1>&6
1273 echo 'void f(){}' > conftest.c
1274 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1283 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1284 if test "$ac_test_CFLAGS" = set; then
1285 CFLAGS
="$ac_save_CFLAGS"
1286 elif test $ac_cv_prog_cc_g = yes; then
1287 if test "$GCC" = yes; then
1293 if test "$GCC" = yes; then
1300 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1301 if test "${with_gnu_ld+set}" = set; then
1302 withval
="$with_gnu_ld"
1303 test "$withval" = no || with_gnu_ld
=yes
1309 if test "$ac_cv_prog_gcc" = yes; then
1310 # Check if gcc -print-prog-name=ld gives a path.
1311 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1312 echo "configure:1313: checking for ld used by GCC" >&5
1315 # gcc leaves a trailing carriage return which upsets mingw
1316 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1318 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
1321 # Accept absolute paths.
1322 [\\/]* |
[A-Za-z
]:[\\/]*)
1323 re_direlt
='/[^/][^/]*/\.\./'
1324 # Canonicalize the path of ld
1325 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
1326 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
1327 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
1329 test -z "$LD" && LD
="$ac_prog"
1332 # If it fails, then pretend we aren't using GCC.
1336 # If it is relative, then search for the first ld in PATH.
1340 elif test "$with_gnu_ld" = yes; then
1341 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1342 echo "configure:1343: checking for GNU ld" >&5
1344 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1345 echo "configure:1346: checking for non-GNU ld" >&5
1347 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1348 echo $ac_n "(cached) $ac_c" 1>&6
1350 if test -z "$LD"; then
1351 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1352 for ac_dir
in $PATH; do
1353 test -z "$ac_dir" && ac_dir
=.
1354 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
1355 ac_cv_path_LD
="$ac_dir/$ac_prog"
1356 # Check to see if the program is GNU ld. I'd rather use --version,
1357 # but apparently some GNU ld's only accept -v.
1358 # Break only if it was the GNU/non-GNU ld that we prefer.
1359 if "$ac_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
1360 test "$with_gnu_ld" != no
&& break
1362 test "$with_gnu_ld" != yes && break
1368 ac_cv_path_LD
="$LD" # Let the user override the test with a path.
1373 if test -n "$LD"; then
1374 echo "$ac_t""$LD" 1>&6
1376 echo "$ac_t""no" 1>&6
1378 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1379 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1380 echo "configure:1381: checking if the linker ($LD) is GNU ld" >&5
1381 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1382 echo $ac_n "(cached) $ac_c" 1>&6
1384 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1385 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
1386 ac_cv_prog_gnu_ld
=yes
1388 ac_cv_prog_gnu_ld
=no
1392 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1393 with_gnu_ld
=$ac_cv_prog_gnu_ld
1396 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1397 echo "configure:1398: checking for $LD option to reload object files" >&5
1398 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1399 echo $ac_n "(cached) $ac_c" 1>&6
1401 lt_cv_ld_reload_flag
='-r'
1404 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1405 reload_flag
=$lt_cv_ld_reload_flag
1406 test -n "$reload_flag" && reload_flag
=" $reload_flag"
1408 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1409 echo "configure:1410: checking for BSD-compatible nm" >&5
1410 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1411 echo $ac_n "(cached) $ac_c" 1>&6
1413 if test -n "$NM"; then
1414 # Let the user override the test.
1417 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1418 for ac_dir
in $PATH /usr
/ccs
/bin
/usr
/ucb
/bin
; do
1419 test -z "$ac_dir" && ac_dir
=.
1420 tmp_nm
=$ac_dir/${ac_tool_prefix}nm
1421 if test -f $tmp_nm ||
test -f $tmp_nm$ac_exeext ; then
1422 # Check to see if the nm accepts a BSD-compat flag.
1423 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1424 # nm: unknown option "B" ignored
1425 # Tru64's nm complains that /dev/null is an invalid object file
1426 if ($tmp_nm -B /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep '(/dev/null|Invalid file or object type)' >/dev
/null
; then
1427 ac_cv_path_NM
="$tmp_nm -B"
1429 elif ($tmp_nm -p /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep /dev
/null
>/dev
/null
; then
1430 ac_cv_path_NM
="$tmp_nm -p"
1433 ac_cv_path_NM
=${ac_cv_path_NM="$tmp_nm"} # keep the first match, but
1434 continue # so that we can try to find one that supports BSD flags
1439 test -z "$ac_cv_path_NM" && ac_cv_path_NM
=nm
1444 echo "$ac_t""$NM" 1>&6
1446 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1447 echo "configure:1448: checking whether ln -s works" >&5
1448 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1449 echo $ac_n "(cached) $ac_c" 1>&6
1452 if ln -s X conftestdata
2>/dev
/null
1455 ac_cv_prog_LN_S
="ln -s"
1460 LN_S
="$ac_cv_prog_LN_S"
1461 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1462 echo "$ac_t""yes" 1>&6
1464 echo "$ac_t""no" 1>&6
1467 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1468 echo "configure:1469: checking how to recognise dependant libraries" >&5
1469 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1470 echo $ac_n "(cached) $ac_c" 1>&6
1472 lt_cv_file_magic_cmd
='$MAGIC_CMD'
1473 lt_cv_file_magic_test_file
=
1474 lt_cv_deplibs_check_method
='unknown'
1475 # Need to set the preceding variable on all platforms that support
1476 # interlibrary dependencies.
1477 # 'none' -- dependencies not supported.
1478 # `unknown' -- same as none, but documents that we really don't know.
1479 # 'pass_all' -- all dependencies passed with no checks.
1480 # 'test_compile' -- check by making test program.
1481 # 'file_magic [regex]' -- check by looking for files in library path
1482 # which responds to the $file_magic_cmd with a given egrep regex.
1483 # If you have `file' or equivalent on your system and you're not sure
1484 # whether `pass_all' will *always* work, you probably want this one.
1488 lt_cv_deplibs_check_method
=pass_all
1492 lt_cv_deplibs_check_method
=pass_all
1496 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1497 lt_cv_file_magic_cmd
='/usr/bin/file -L'
1498 lt_cv_file_magic_test_file
=/shlib
/libc.so
1501 cygwin
* | mingw
* |pw32
*)
1502 lt_cv_deplibs_check_method
='file_magic file format pei*-i386(.*architecture: i386)?'
1503 lt_cv_file_magic_cmd
='$OBJDUMP -f'
1507 if echo __ELF__ |
$CC -E - |
grep __ELF__
> /dev
/null
; then
1510 # Not sure whether the presence of OpenBSD here was a mistake.
1511 # Let's accept both of them until this is cleared up.
1512 lt_cv_deplibs_check_method
='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1513 lt_cv_file_magic_cmd
=/usr
/bin
/file
1514 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so.*`
1518 lt_cv_deplibs_check_method
=pass_all
1523 lt_cv_deplibs_check_method
=pass_all
1527 # TODO: Does this work for hpux-11 too?
1528 lt_cv_deplibs_check_method
='file_magic (s0-90-90-9|PA-RISC0-9.0-9) shared library'
1529 lt_cv_file_magic_cmd
=/usr
/bin
/file
1530 lt_cv_file_magic_test_file
=/usr
/lib
/libc.sl
1536 # this will be overridden with pass_all, but let us keep it just in case
1537 lt_cv_deplibs_check_method
="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
1541 *-32|
*"-32 ") libmagic
=32-bit;;
1542 *-n32|
*"-n32 ") libmagic
=N32
;;
1543 *-64|
*"-64 ") libmagic
=64-bit;;
1544 *) libmagic
=never-match
;;
1546 # this will be overridden with pass_all, but let us keep it just in case
1547 lt_cv_deplibs_check_method
="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
1550 lt_cv_file_magic_test_file
=`echo /lib${libsuff}/libc.so*`
1551 lt_cv_deplibs_check_method
=pass_all
1554 # This must be Linux ELF.
1557 alpha
* | i
*86 | powerpc
* | sparc
* | ia64
* )
1558 lt_cv_deplibs_check_method
=pass_all
;;
1560 # glibc up to 2.1.1 does not perform some relocations on ARM
1561 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
1563 lt_cv_file_magic_test_file
=`echo /lib/libc.so* /lib/libc-*.so`
1567 if echo __ELF__ |
$CC -E - |
grep __ELF__
> /dev
/null
; then :
1569 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
1570 lt_cv_file_magic_cmd
='/usr/bin/file -L'
1571 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so*`
1575 osf3
* | osf4
* | osf5
*)
1576 # this will be overridden with pass_all, but let us keep it just in case
1577 lt_cv_deplibs_check_method
='file_magic COFF format alpha shared library'
1578 lt_cv_file_magic_test_file
=/shlib
/libc.so
1579 lt_cv_deplibs_check_method
=pass_all
1583 lt_cv_deplibs_check_method
=pass_all
1587 lt_cv_deplibs_check_method
=pass_all
1588 lt_cv_file_magic_test_file
=/lib
/libc.so
1591 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
1592 case "$host_vendor" in
1594 lt_cv_deplibs_check_method
=pass_all
1597 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]'
1598 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so*`
1606 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
1607 file_magic_cmd
=$lt_cv_file_magic_cmd
1608 deplibs_check_method
=$lt_cv_deplibs_check_method
1610 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
1611 echo "configure:1612: checking for object suffix" >&5
1612 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
1613 echo $ac_n "(cached) $ac_c" 1>&6
1616 echo 'int i = 1;' > conftest.
$ac_ext
1617 if { (eval echo configure
:1618: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1618 for ac_file
in conftest.
*; do
1621 *) ac_cv_objext
=`echo $ac_file | sed -e s/conftest.//` ;;
1625 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
1630 echo "$ac_t""$ac_cv_objext" 1>&6
1631 OBJEXT
=$ac_cv_objext
1632 ac_objext
=$ac_cv_objext
1636 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1637 echo "configure:1638: checking for executable suffix" >&5
1638 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1639 echo $ac_n "(cached) $ac_c" 1>&6
1641 if test "$CYGWIN" = yes ||
test "$MINGW32" = yes; then
1645 echo 'int main () { return 0; }' > conftest.
$ac_ext
1647 if { (eval echo configure
:1648: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1648 for file in conftest.
*; do
1650 *.c |
*.o |
*.obj |
*.ilk |
*.pdb
) ;;
1651 *) ac_cv_exeext
=`echo $file | sed -e s/conftest//` ;;
1655 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1658 test x
"${ac_cv_exeext}" = x
&& ac_cv_exeext
=no
1663 test x
"${ac_cv_exeext}" != xno
&& EXEEXT
=${ac_cv_exeext}
1664 echo "$ac_t""${ac_cv_exeext}" 1>&6
1667 if test $host != $build; then
1668 ac_tool_prefix
=${host_alias}-
1673 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
1675 # Only perform the check for file, if the check method requires it
1676 case "$deplibs_check_method" in
1678 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
1679 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
1680 echo "configure:1681: checking for ${ac_tool_prefix}file" >&5
1681 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
1682 echo $ac_n "(cached) $ac_c" 1>&6
1684 case "$MAGIC_CMD" in
1686 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
1689 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a dos path.
1692 ac_save_MAGIC_CMD
="$MAGIC_CMD"
1693 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1694 ac_dummy
="/usr/bin:$PATH"
1695 for ac_dir
in $ac_dummy; do
1696 test -z "$ac_dir" && ac_dir
=.
1697 if test -f $ac_dir/${ac_tool_prefix}file; then
1698 lt_cv_path_MAGIC_CMD
="$ac_dir/${ac_tool_prefix}file"
1699 if test -n "$file_magic_test_file"; then
1700 case "$deplibs_check_method" in
1702 file_magic_regex
="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
1703 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
1704 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
1705 egrep "$file_magic_regex" > /dev
/null
; then
1710 *** Warning: the command libtool uses to detect shared libraries,
1711 *** $file_magic_cmd, produces output that libtool cannot recognize.
1712 *** The result is that libtool may fail to recognize shared libraries
1713 *** as such. This will affect the creation of libtool libraries that
1714 *** depend on shared libraries, but programs linked with such libtool
1715 *** libraries will work regardless of this problem. Nevertheless, you
1716 *** may want to report the problem to your system manager and/or to
1717 *** bug-libtool@gnu.org
1727 MAGIC_CMD
="$ac_save_MAGIC_CMD"
1732 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
1733 if test -n "$MAGIC_CMD"; then
1734 echo "$ac_t""$MAGIC_CMD" 1>&6
1736 echo "$ac_t""no" 1>&6
1739 if test -z "$lt_cv_path_MAGIC_CMD"; then
1740 if test -n "$ac_tool_prefix"; then
1741 echo $ac_n "checking for file""... $ac_c" 1>&6
1742 echo "configure:1743: checking for file" >&5
1743 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
1744 echo $ac_n "(cached) $ac_c" 1>&6
1746 case "$MAGIC_CMD" in
1748 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
1751 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a dos path.
1754 ac_save_MAGIC_CMD
="$MAGIC_CMD"
1755 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1756 ac_dummy
="/usr/bin:$PATH"
1757 for ac_dir
in $ac_dummy; do
1758 test -z "$ac_dir" && ac_dir
=.
1759 if test -f $ac_dir/file; then
1760 lt_cv_path_MAGIC_CMD
="$ac_dir/file"
1761 if test -n "$file_magic_test_file"; then
1762 case "$deplibs_check_method" in
1764 file_magic_regex
="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
1765 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
1766 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
1767 egrep "$file_magic_regex" > /dev
/null
; then
1772 *** Warning: the command libtool uses to detect shared libraries,
1773 *** $file_magic_cmd, produces output that libtool cannot recognize.
1774 *** The result is that libtool may fail to recognize shared libraries
1775 *** as such. This will affect the creation of libtool libraries that
1776 *** depend on shared libraries, but programs linked with such libtool
1777 *** libraries will work regardless of this problem. Nevertheless, you
1778 *** may want to report the problem to your system manager and/or to
1779 *** bug-libtool@gnu.org
1789 MAGIC_CMD
="$ac_save_MAGIC_CMD"
1794 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
1795 if test -n "$MAGIC_CMD"; then
1796 echo "$ac_t""$MAGIC_CMD" 1>&6
1798 echo "$ac_t""no" 1>&6
1810 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1811 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
1812 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1813 echo "configure:1814: checking for $ac_word" >&5
1814 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1815 echo $ac_n "(cached) $ac_c" 1>&6
1817 if test -n "$RANLIB"; then
1818 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1820 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1822 for ac_dir
in $ac_dummy; do
1823 test -z "$ac_dir" && ac_dir
=.
1824 if test -f $ac_dir/$ac_word; then
1825 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
1832 RANLIB
="$ac_cv_prog_RANLIB"
1833 if test -n "$RANLIB"; then
1834 echo "$ac_t""$RANLIB" 1>&6
1836 echo "$ac_t""no" 1>&6
1840 if test -z "$ac_cv_prog_RANLIB"; then
1841 if test -n "$ac_tool_prefix"; then
1842 # Extract the first word of "ranlib", so it can be a program name with args.
1843 set dummy ranlib
; ac_word
=$2
1844 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1845 echo "configure:1846: checking for $ac_word" >&5
1846 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1847 echo $ac_n "(cached) $ac_c" 1>&6
1849 if test -n "$RANLIB"; then
1850 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1852 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1854 for ac_dir
in $ac_dummy; do
1855 test -z "$ac_dir" && ac_dir
=.
1856 if test -f $ac_dir/$ac_word; then
1857 ac_cv_prog_RANLIB
="ranlib"
1862 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1865 RANLIB
="$ac_cv_prog_RANLIB"
1866 if test -n "$RANLIB"; then
1867 echo "$ac_t""$RANLIB" 1>&6
1869 echo "$ac_t""no" 1>&6
1877 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1878 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
1879 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1880 echo "configure:1881: checking for $ac_word" >&5
1881 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1882 echo $ac_n "(cached) $ac_c" 1>&6
1884 if test -n "$STRIP"; then
1885 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
1887 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1889 for ac_dir
in $ac_dummy; do
1890 test -z "$ac_dir" && ac_dir
=.
1891 if test -f $ac_dir/$ac_word; then
1892 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
1899 STRIP
="$ac_cv_prog_STRIP"
1900 if test -n "$STRIP"; then
1901 echo "$ac_t""$STRIP" 1>&6
1903 echo "$ac_t""no" 1>&6
1907 if test -z "$ac_cv_prog_STRIP"; then
1908 if test -n "$ac_tool_prefix"; then
1909 # Extract the first word of "strip", so it can be a program name with args.
1910 set dummy strip
; ac_word
=$2
1911 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1912 echo "configure:1913: checking for $ac_word" >&5
1913 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1914 echo $ac_n "(cached) $ac_c" 1>&6
1916 if test -n "$STRIP"; then
1917 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
1919 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1921 for ac_dir
in $ac_dummy; do
1922 test -z "$ac_dir" && ac_dir
=.
1923 if test -f $ac_dir/$ac_word; then
1924 ac_cv_prog_STRIP
="strip"
1929 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP
=":"
1932 STRIP
="$ac_cv_prog_STRIP"
1933 if test -n "$STRIP"; then
1934 echo "$ac_t""$STRIP" 1>&6
1936 echo "$ac_t""no" 1>&6
1945 # Check for any special flags to pass to ltconfig.
1946 libtool_flags
="--cache-file=$cache_file"
1947 test "$enable_shared" = no
&& libtool_flags
="$libtool_flags --disable-shared"
1948 test "$enable_static" = no
&& libtool_flags
="$libtool_flags --disable-static"
1949 test "$enable_fast_install" = no
&& libtool_flags
="$libtool_flags --disable-fast-install"
1950 test "$ac_cv_prog_gcc" = yes && libtool_flags
="$libtool_flags --with-gcc"
1951 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags
="$libtool_flags --with-gnu-ld"
1954 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
1955 if test "${enable_libtool_lock+set}" = set; then
1956 enableval
="$enable_libtool_lock"
1960 test "x$enable_libtool_lock" = xno
&& libtool_flags
="$libtool_flags --disable-lock"
1961 test x
"$silent" = xyes
&& libtool_flags
="$libtool_flags --silent"
1963 # Check whether --with-pic or --without-pic was given.
1964 if test "${with_pic+set}" = set; then
1971 test x
"$pic_mode" = xyes
&& libtool_flags
="$libtool_flags --prefer-pic"
1972 test x
"$pic_mode" = xno
&& libtool_flags
="$libtool_flags --prefer-non-pic"
1974 # Some flags need to be propagated to the compiler or linker for good
1978 # Find out which ABI we are using.
1979 echo '#line 1980 "configure"' > conftest.
$ac_ext
1980 if { (eval echo configure
:1981: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1981 case "`/usr/bin/file conftest.o`" in
1997 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1998 SAVE_CFLAGS
="$CFLAGS"
1999 CFLAGS
="$CFLAGS -belf"
2000 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2001 echo "configure:2002: checking whether the C compiler needs -belf" >&5
2002 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2003 echo $ac_n "(cached) $ac_c" 1>&6
2007 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2008 ac_cpp
='$CPP $CPPFLAGS'
2009 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2010 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2011 cross_compiling
=$ac_cv_prog_cc_cross
2013 cat > conftest.
$ac_ext <<EOF
2014 #line 2015 "configure"
2015 #include "confdefs.h"
2021 if { (eval echo configure
:2022: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2023 lt_cv_cc_needs_belf
=yes
2025 echo "configure: failed program was:" >&5
2026 cat conftest.
$ac_ext >&5
2028 lt_cv_cc_needs_belf
=no
2032 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2033 ac_cpp
='$CPP $CPPFLAGS'
2034 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2035 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2036 cross_compiling
=$ac_cv_prog_cc_cross
2040 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2041 if test x
"$lt_cv_cc_needs_belf" != x
"yes"; then
2042 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2043 CFLAGS
="$SAVE_CFLAGS"
2051 # Save cache, so that ltconfig can load it
2052 cat > confcache
<<\EOF
2053 # This file is a shell script that caches the results of configure
2054 # tests run on this system so they can be shared between configure
2055 # scripts and configure runs. It is not useful on other systems.
2056 # If it contains results you don't want to keep, you may remove or edit it.
2058 # By default, configure uses ./config.cache as the cache file,
2059 # creating it if it does not exist already. You can give configure
2060 # the --cache-file=FILE option to use a different cache file; that is
2061 # what configure does when it calls configure scripts in
2062 # subdirectories, so they share the cache.
2063 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2064 # config.status only pays attention to the cache file if you give it the
2065 # --recheck option to rerun configure.
2068 # The following way of writing the cache mishandles newlines in values,
2069 # but we know of no workaround that is simple, portable, and efficient.
2070 # So, don't put newlines in cache variables' values.
2071 # Ultrix sh set writes to stderr and can't be redirected directly,
2072 # and sets the high bit in the cache file unless we assign to the vars.
2074 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2076 # `set' does not quote correctly, so add quotes (double-quote substitution
2077 # turns \\\\ into \\, and sed turns \\ into \).
2079 -e "s/'/'\\\\''/g" \
2080 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2083 # `set' quotes correctly as required by POSIX, so do not add quotes.
2084 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2087 if cmp -s $cache_file confcache
; then
2090 if test -w $cache_file; then
2091 echo "updating cache $cache_file"
2092 cat confcache
> $cache_file
2094 echo "not updating unwritable cache $cache_file"
2100 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2101 AR
="$AR" LTCC
="$CC" CC
="$CC" CFLAGS
="$CFLAGS" CPPFLAGS
="$CPPFLAGS" \
2102 MAGIC_CMD
="$MAGIC_CMD" LD
="$LD" LDFLAGS
="$LDFLAGS" LIBS
="$LIBS" \
2103 LN_S
="$LN_S" NM
="$NM" RANLIB
="$RANLIB" STRIP
="$STRIP" \
2104 AS
="$AS" DLLTOOL
="$DLLTOOL" OBJDUMP
="$OBJDUMP" \
2105 objext
="$OBJEXT" exeext
="$EXEEXT" reload_flag
="$reload_flag" \
2106 deplibs_check_method
="$deplibs_check_method" file_magic_cmd
="$file_magic_cmd" \
2107 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig
--no-reexec \
2108 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh
$host \
2109 ||
{ echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2111 # Reload cache, that may have been modified by ltconfig
2112 if test -r "$cache_file"; then
2113 echo "loading cache $cache_file"
2116 echo "creating cache $cache_file"
2121 # This can be used to rebuild libtool when needed
2122 LIBTOOL_DEPS
="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2124 # Always use our own libtool.
2125 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
2127 # Redirect the config.log output again, so that the ltconfig log is not
2128 # clobbered by the next message.
2129 exec 5>>.
/config.log
2138 # Check whether --enable-targets or --disable-targets was given.
2139 if test "${enable_targets+set}" = set; then
2140 enableval
="$enable_targets"
2141 case "${enableval}" in
2142 yes |
"") { echo "configure: error: enable-targets option must specify target names or 'all'" 1>&2; exit 1; }
2144 no
) enable_targets
= ;;
2145 *) enable_targets
=$enableval ;;
2148 # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given.
2149 if test "${enable_commonbfdlib+set}" = set; then
2150 enableval
="$enable_commonbfdlib"
2151 case "${enableval}" in
2152 yes) commonbfdlib
=true
;;
2153 no
) commonbfdlib
=false
;;
2154 *) { echo "configure: error: bad value ${enableval} for BFD commonbfdlib option" 1>&2; exit 1; } ;;
2158 build_warnings
="-W -Wall"
2159 # Check whether --enable-build-warnings or --disable-build-warnings was given.
2160 if test "${enable_build_warnings+set}" = set; then
2161 enableval
="$enable_build_warnings"
2162 case "${enableval}" in
2164 no
) build_warnings
="-w";;
2165 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
2166 build_warnings
="${build_warnings} ${t}";;
2167 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
2168 build_warnings
="${t} ${build_warnings}";;
2169 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
2171 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
2172 echo "Setting warning flags = $build_warnings" 6>&1
2176 if test "x${build_warnings}" != x
-a "x$GCC" = xyes
; then
2177 WARN_CFLAGS
="${build_warnings}"
2185 if test -z "$target" ; then
2186 { echo "configure: error: Unrecognized target system type; please check config.sub." 1>&2; exit 1; }
2188 if test -z "$host" ; then
2189 { echo "configure: error: Unrecognized host system type; please check config.sub." 1>&2; exit 1; }
2192 # Extract the first word of "gcc", so it can be a program name with args.
2193 set dummy gcc
; ac_word
=$2
2194 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2195 echo "configure:2196: checking for $ac_word" >&5
2196 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2197 echo $ac_n "(cached) $ac_c" 1>&6
2199 if test -n "$CC"; then
2200 ac_cv_prog_CC
="$CC" # Let the user override the test.
2202 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2204 for ac_dir
in $ac_dummy; do
2205 test -z "$ac_dir" && ac_dir
=.
2206 if test -f $ac_dir/$ac_word; then
2215 if test -n "$CC"; then
2216 echo "$ac_t""$CC" 1>&6
2218 echo "$ac_t""no" 1>&6
2221 if test -z "$CC"; then
2222 # Extract the first word of "cc", so it can be a program name with args.
2223 set dummy cc
; ac_word
=$2
2224 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2225 echo "configure:2226: checking for $ac_word" >&5
2226 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2227 echo $ac_n "(cached) $ac_c" 1>&6
2229 if test -n "$CC"; then
2230 ac_cv_prog_CC
="$CC" # Let the user override the test.
2232 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2235 for ac_dir
in $ac_dummy; do
2236 test -z "$ac_dir" && ac_dir
=.
2237 if test -f $ac_dir/$ac_word; then
2238 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2239 ac_prog_rejected
=yes
2247 if test $ac_prog_rejected = yes; then
2248 # We found a bogon in the path, so make sure we never use it.
2249 set dummy
$ac_cv_prog_CC
2251 if test $# -gt 0; then
2252 # We chose a different compiler from the bogus one.
2253 # However, it has the same basename, so the bogon will be chosen
2254 # first if we set CC to just the basename; use the full file name.
2256 set dummy
"$ac_dir/$ac_word" "$@"
2264 if test -n "$CC"; then
2265 echo "$ac_t""$CC" 1>&6
2267 echo "$ac_t""no" 1>&6
2270 if test -z "$CC"; then
2271 case "`uname -s`" in
2273 # Extract the first word of "cl", so it can be a program name with args.
2274 set dummy cl
; ac_word
=$2
2275 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2276 echo "configure:2277: checking for $ac_word" >&5
2277 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2278 echo $ac_n "(cached) $ac_c" 1>&6
2280 if test -n "$CC"; then
2281 ac_cv_prog_CC
="$CC" # Let the user override the test.
2283 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2285 for ac_dir
in $ac_dummy; do
2286 test -z "$ac_dir" && ac_dir
=.
2287 if test -f $ac_dir/$ac_word; then
2296 if test -n "$CC"; then
2297 echo "$ac_t""$CC" 1>&6
2299 echo "$ac_t""no" 1>&6
2304 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2307 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2308 echo "configure:2309: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
2311 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2312 ac_cpp
='$CPP $CPPFLAGS'
2313 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2314 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2315 cross_compiling
=$ac_cv_prog_cc_cross
2317 cat > conftest.
$ac_ext << EOF
2319 #line 2320 "configure"
2320 #include "confdefs.h"
2324 if { (eval echo configure
:2325: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2325 ac_cv_prog_cc_works
=yes
2326 # If we can't run a trivial program, we are probably using a cross compiler.
2327 if (.
/conftest
; exit) 2>/dev
/null
; then
2328 ac_cv_prog_cc_cross
=no
2330 ac_cv_prog_cc_cross
=yes
2333 echo "configure: failed program was:" >&5
2334 cat conftest.
$ac_ext >&5
2335 ac_cv_prog_cc_works
=no
2339 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2340 ac_cpp
='$CPP $CPPFLAGS'
2341 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2342 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2343 cross_compiling
=$ac_cv_prog_cc_cross
2345 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2346 if test $ac_cv_prog_cc_works = no
; then
2347 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2349 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2350 echo "configure:2351: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2351 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2352 cross_compiling
=$ac_cv_prog_cc_cross
2354 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2355 echo "configure:2356: checking whether we are using GNU C" >&5
2356 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
2357 echo $ac_n "(cached) $ac_c" 1>&6
2359 cat > conftest.c
<<EOF
2364 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:2365: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
2371 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2373 if test $ac_cv_prog_gcc = yes; then
2379 ac_test_CFLAGS
="${CFLAGS+set}"
2380 ac_save_CFLAGS
="$CFLAGS"
2382 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2383 echo "configure:2384: checking whether ${CC-cc} accepts -g" >&5
2384 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2385 echo $ac_n "(cached) $ac_c" 1>&6
2387 echo 'void f(){}' > conftest.c
2388 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2397 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2398 if test "$ac_test_CFLAGS" = set; then
2399 CFLAGS
="$ac_save_CFLAGS"
2400 elif test $ac_cv_prog_cc_g = yes; then
2401 if test "$GCC" = yes; then
2407 if test "$GCC" = yes; then
2415 for ac_prog
in 'bison -y' byacc
2417 # Extract the first word of "$ac_prog", so it can be a program name with args.
2418 set dummy
$ac_prog; ac_word
=$2
2419 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2420 echo "configure:2421: checking for $ac_word" >&5
2421 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
2422 echo $ac_n "(cached) $ac_c" 1>&6
2424 if test -n "$YACC"; then
2425 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
2427 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2429 for ac_dir
in $ac_dummy; do
2430 test -z "$ac_dir" && ac_dir
=.
2431 if test -f $ac_dir/$ac_word; then
2432 ac_cv_prog_YACC
="$ac_prog"
2439 YACC
="$ac_cv_prog_YACC"
2440 if test -n "$YACC"; then
2441 echo "$ac_t""$YACC" 1>&6
2443 echo "$ac_t""no" 1>&6
2446 test -n "$YACC" && break
2448 test -n "$YACC" || YACC
="yacc"
2450 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2451 echo "configure:2452: checking how to run the C preprocessor" >&5
2452 # On Suns, sometimes $CPP names a directory.
2453 if test -n "$CPP" && test -d "$CPP"; then
2456 if test -z "$CPP"; then
2457 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2458 echo $ac_n "(cached) $ac_c" 1>&6
2460 # This must be in double quotes, not single quotes, because CPP may get
2461 # substituted into the Makefile and "${CC-cc}" will confuse make.
2463 # On the NeXT, cc -E runs the code through the compiler's parser,
2464 # not just through cpp.
2465 cat > conftest.
$ac_ext <<EOF
2466 #line 2467 "configure"
2467 #include "confdefs.h"
2471 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2472 { (eval echo configure
:2473: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2473 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2474 if test -z "$ac_err"; then
2478 echo "configure: failed program was:" >&5
2479 cat conftest.
$ac_ext >&5
2481 CPP
="${CC-cc} -E -traditional-cpp"
2482 cat > conftest.
$ac_ext <<EOF
2483 #line 2484 "configure"
2484 #include "confdefs.h"
2488 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2489 { (eval echo configure
:2490: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2490 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2491 if test -z "$ac_err"; then
2495 echo "configure: failed program was:" >&5
2496 cat conftest.
$ac_ext >&5
2498 CPP
="${CC-cc} -nologo -E"
2499 cat > conftest.
$ac_ext <<EOF
2500 #line 2501 "configure"
2501 #include "confdefs.h"
2505 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2506 { (eval echo configure
:2507: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2507 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2508 if test -z "$ac_err"; then
2512 echo "configure: failed program was:" >&5
2513 cat conftest.
$ac_ext >&5
2522 ac_cv_prog_CPP
="$CPP"
2524 CPP
="$ac_cv_prog_CPP"
2526 ac_cv_prog_CPP
="$CPP"
2528 echo "$ac_t""$CPP" 1>&6
2530 missing_dir
=`cd $ac_aux_dir && pwd`
2531 for ac_prog
in flex
lex
2533 # Extract the first word of "$ac_prog", so it can be a program name with args.
2534 set dummy
$ac_prog; ac_word
=$2
2535 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2536 echo "configure:2537: checking for $ac_word" >&5
2537 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
2538 echo $ac_n "(cached) $ac_c" 1>&6
2540 if test -n "$LEX"; then
2541 ac_cv_prog_LEX
="$LEX" # Let the user override the test.
2543 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2545 for ac_dir
in $ac_dummy; do
2546 test -z "$ac_dir" && ac_dir
=.
2547 if test -f $ac_dir/$ac_word; then
2548 ac_cv_prog_LEX
="$ac_prog"
2555 LEX
="$ac_cv_prog_LEX"
2556 if test -n "$LEX"; then
2557 echo "$ac_t""$LEX" 1>&6
2559 echo "$ac_t""no" 1>&6
2562 test -n "$LEX" && break
2564 test -n "$LEX" || LEX
="$missing_dir/missing flex"
2566 # Extract the first word of "flex", so it can be a program name with args.
2567 set dummy flex
; ac_word
=$2
2568 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2569 echo "configure:2570: checking for $ac_word" >&5
2570 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
2571 echo $ac_n "(cached) $ac_c" 1>&6
2573 if test -n "$LEX"; then
2574 ac_cv_prog_LEX
="$LEX" # Let the user override the test.
2576 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2578 for ac_dir
in $ac_dummy; do
2579 test -z "$ac_dir" && ac_dir
=.
2580 if test -f $ac_dir/$ac_word; then
2581 ac_cv_prog_LEX
="flex"
2586 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX
="lex"
2589 LEX
="$ac_cv_prog_LEX"
2590 if test -n "$LEX"; then
2591 echo "$ac_t""$LEX" 1>&6
2593 echo "$ac_t""no" 1>&6
2596 if test -z "$LEXLIB"
2602 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
2603 echo "configure:2604: checking for yywrap in -l$ac_lib" >&5
2604 ac_lib_var
=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
2605 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2606 echo $ac_n "(cached) $ac_c" 1>&6
2608 ac_save_LIBS
="$LIBS"
2609 LIBS
="-l$ac_lib $LIBS"
2610 cat > conftest.
$ac_ext <<EOF
2611 #line 2612 "configure"
2612 #include "confdefs.h"
2613 /* Override any gcc2 internal prototype to avoid an error. */
2614 /* We use char because int might match the return type of a gcc2
2615 builtin and then its argument prototype would still apply. */
2622 if { (eval echo configure
:2623: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2624 eval "ac_cv_lib_$ac_lib_var=yes"
2626 echo "configure: failed program was:" >&5
2627 cat conftest.
$ac_ext >&5
2629 eval "ac_cv_lib_$ac_lib_var=no"
2632 LIBS
="$ac_save_LIBS"
2635 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2636 echo "$ac_t""yes" 1>&6
2639 echo "$ac_t""no" 1>&6
2644 echo $ac_n "checking lex output file root""... $ac_c" 1>&6
2645 echo "configure:2646: checking lex output file root" >&5
2646 if eval "test \"`echo '$''{'ac_cv_prog_lex_root'+set}'`\" = set"; then
2647 echo $ac_n "(cached) $ac_c" 1>&6
2649 # The minimal lex program is just a single line: %%. But some broken lexes
2650 # (Solaris, I think it was) want two %% lines, so accommodate them.
2653 if test -f lex.yy.c
; then
2654 ac_cv_prog_lex_root
=lex.yy
2655 elif test -f lexyy.c
; then
2656 ac_cv_prog_lex_root
=lexyy
2658 { echo "configure: error: cannot find output from $LEX; giving up" 1>&2; exit 1; }
2662 echo "$ac_t""$ac_cv_prog_lex_root" 1>&6
2663 LEX_OUTPUT_ROOT
=$ac_cv_prog_lex_root
2665 echo $ac_n "checking whether yytext is a pointer""... $ac_c" 1>&6
2666 echo "configure:2667: checking whether yytext is a pointer" >&5
2667 if eval "test \"`echo '$''{'ac_cv_prog_lex_yytext_pointer'+set}'`\" = set"; then
2668 echo $ac_n "(cached) $ac_c" 1>&6
2670 # POSIX says lex can declare yytext either as a pointer or an array; the
2671 # default is implementation-dependent. Figure out which it is, since
2672 # not all implementations provide the %pointer and %array declarations.
2673 ac_cv_prog_lex_yytext_pointer
=no
2674 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
2675 ac_save_LIBS
="$LIBS"
2676 LIBS
="$LIBS $LEXLIB"
2677 cat > conftest.
$ac_ext <<EOF
2678 #line 2679 "configure"
2679 #include "confdefs.h"
2680 `cat $LEX_OUTPUT_ROOT.c`
2685 if { (eval echo configure
:2686: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2687 ac_cv_prog_lex_yytext_pointer
=yes
2689 echo "configure: failed program was:" >&5
2690 cat conftest.
$ac_ext >&5
2693 LIBS
="$ac_save_LIBS"
2694 rm -f "${LEX_OUTPUT_ROOT}.c"
2698 echo "$ac_t""$ac_cv_prog_lex_yytext_pointer" 1>&6
2699 if test $ac_cv_prog_lex_yytext_pointer = yes; then
2700 cat >> confdefs.h
<<\EOF
2701 #define YYTEXT_POINTER 1
2708 # Extract the first word of "ranlib", so it can be a program name with args.
2709 set dummy ranlib
; ac_word
=$2
2710 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2711 echo "configure:2712: checking for $ac_word" >&5
2712 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2713 echo $ac_n "(cached) $ac_c" 1>&6
2715 if test -n "$RANLIB"; then
2716 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
2718 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2720 for ac_dir
in $ac_dummy; do
2721 test -z "$ac_dir" && ac_dir
=.
2722 if test -f $ac_dir/$ac_word; then
2723 ac_cv_prog_RANLIB
="ranlib"
2728 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
2731 RANLIB
="$ac_cv_prog_RANLIB"
2732 if test -n "$RANLIB"; then
2733 echo "$ac_t""$RANLIB" 1>&6
2735 echo "$ac_t""no" 1>&6
2738 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2739 echo "configure:2740: checking for ANSI C header files" >&5
2740 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2741 echo $ac_n "(cached) $ac_c" 1>&6
2743 cat > conftest.
$ac_ext <<EOF
2744 #line 2745 "configure"
2745 #include "confdefs.h"
2751 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2752 { (eval echo configure
:2753: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2753 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2754 if test -z "$ac_err"; then
2756 ac_cv_header_stdc
=yes
2759 echo "configure: failed program was:" >&5
2760 cat conftest.
$ac_ext >&5
2762 ac_cv_header_stdc
=no
2766 if test $ac_cv_header_stdc = yes; then
2767 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2768 cat > conftest.
$ac_ext <<EOF
2769 #line 2770 "configure"
2770 #include "confdefs.h"
2773 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2774 egrep "memchr" >/dev
/null
2>&1; then
2778 ac_cv_header_stdc
=no
2784 if test $ac_cv_header_stdc = yes; then
2785 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2786 cat > conftest.
$ac_ext <<EOF
2787 #line 2788 "configure"
2788 #include "confdefs.h"
2791 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2792 egrep "free" >/dev
/null
2>&1; then
2796 ac_cv_header_stdc
=no
2802 if test $ac_cv_header_stdc = yes; then
2803 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2804 if test "$cross_compiling" = yes; then
2807 cat > conftest.
$ac_ext <<EOF
2808 #line 2809 "configure"
2809 #include "confdefs.h"
2811 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2812 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2813 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2814 int main () { int i; for (i = 0; i < 256; i++)
2815 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2819 if { (eval echo configure
:2820: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2823 echo "configure: failed program was:" >&5
2824 cat conftest.
$ac_ext >&5
2826 ac_cv_header_stdc
=no
2834 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2835 if test $ac_cv_header_stdc = yes; then
2836 cat >> confdefs.h
<<\EOF
2837 #define STDC_HEADERS 1
2842 echo $ac_n "checking for working const""... $ac_c" 1>&6
2843 echo "configure:2844: checking for working const" >&5
2844 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2845 echo $ac_n "(cached) $ac_c" 1>&6
2847 cat > conftest.
$ac_ext <<EOF
2848 #line 2849 "configure"
2849 #include "confdefs.h"
2853 /* Ultrix mips cc rejects this. */
2854 typedef int charset[2]; const charset x;
2855 /* SunOS 4.1.1 cc rejects this. */
2856 char const *const *ccp;
2858 /* NEC SVR4.0.2 mips cc rejects this. */
2859 struct point {int x, y;};
2860 static struct point const zero = {0,0};
2861 /* AIX XL C 1.02.0.0 rejects this.
2862 It does not let you subtract one const X* pointer from another in an arm
2863 of an if-expression whose if-part is not a constant expression */
2864 const char *g = "string";
2865 ccp = &g + (g ? g-g : 0);
2866 /* HPUX 7.0 cc rejects these. */
2869 ccp = (char const *const *) p;
2870 { /* SCO 3.2v4 cc rejects this. */
2872 char const *s = 0 ? (char *) 0 : (char const *) 0;
2876 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2878 const int *foo = &x[0];
2881 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2882 typedef const int *iptr;
2886 { /* AIX XL C 1.02.0.0 rejects this saying
2887 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2888 struct s { int j; const int *ap[3]; };
2889 struct s *b; b->j = 5;
2891 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2897 if { (eval echo configure
:2898: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2901 echo "configure: failed program was:" >&5
2902 cat conftest.
$ac_ext >&5
2909 echo "$ac_t""$ac_cv_c_const" 1>&6
2910 if test $ac_cv_c_const = no
; then
2911 cat >> confdefs.h
<<\EOF
2917 echo $ac_n "checking for inline""... $ac_c" 1>&6
2918 echo "configure:2919: checking for inline" >&5
2919 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2920 echo $ac_n "(cached) $ac_c" 1>&6
2923 for ac_kw
in inline __inline__ __inline
; do
2924 cat > conftest.
$ac_ext <<EOF
2925 #line 2926 "configure"
2926 #include "confdefs.h"
2932 if { (eval echo configure
:2933: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2934 ac_cv_c_inline
=$ac_kw; break
2936 echo "configure: failed program was:" >&5
2937 cat conftest.
$ac_ext >&5
2944 echo "$ac_t""$ac_cv_c_inline" 1>&6
2945 case "$ac_cv_c_inline" in
2947 no
) cat >> confdefs.h
<<\EOF
2951 *) cat >> confdefs.h
<<EOF
2952 #define inline $ac_cv_c_inline
2957 echo $ac_n "checking for off_t""... $ac_c" 1>&6
2958 echo "configure:2959: checking for off_t" >&5
2959 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
2960 echo $ac_n "(cached) $ac_c" 1>&6
2962 cat > conftest.
$ac_ext <<EOF
2963 #line 2964 "configure"
2964 #include "confdefs.h"
2965 #include <sys/types.h>
2971 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2972 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2974 ac_cv_type_off_t
=yes
2982 echo "$ac_t""$ac_cv_type_off_t" 1>&6
2983 if test $ac_cv_type_off_t = no
; then
2984 cat >> confdefs.h
<<\EOF
2990 echo $ac_n "checking for size_t""... $ac_c" 1>&6
2991 echo "configure:2992: checking for size_t" >&5
2992 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2993 echo $ac_n "(cached) $ac_c" 1>&6
2995 cat > conftest.
$ac_ext <<EOF
2996 #line 2997 "configure"
2997 #include "confdefs.h"
2998 #include <sys/types.h>
3004 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3005 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3007 ac_cv_type_size_t
=yes
3010 ac_cv_type_size_t
=no
3015 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3016 if test $ac_cv_type_size_t = no
; then
3017 cat >> confdefs.h
<<\EOF
3018 #define size_t unsigned
3023 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
3024 # for constant arguments. Useless!
3025 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
3026 echo "configure:3027: checking for working alloca.h" >&5
3027 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
3028 echo $ac_n "(cached) $ac_c" 1>&6
3030 cat > conftest.
$ac_ext <<EOF
3031 #line 3032 "configure"
3032 #include "confdefs.h"
3035 char *p = alloca(2 * sizeof(int));
3038 if { (eval echo configure
:3039: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3040 ac_cv_header_alloca_h
=yes
3042 echo "configure: failed program was:" >&5
3043 cat conftest.
$ac_ext >&5
3045 ac_cv_header_alloca_h
=no
3050 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
3051 if test $ac_cv_header_alloca_h = yes; then
3052 cat >> confdefs.h
<<\EOF
3053 #define HAVE_ALLOCA_H 1
3058 echo $ac_n "checking for alloca""... $ac_c" 1>&6
3059 echo "configure:3060: checking for alloca" >&5
3060 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
3061 echo $ac_n "(cached) $ac_c" 1>&6
3063 cat > conftest.
$ac_ext <<EOF
3064 #line 3065 "configure"
3065 #include "confdefs.h"
3068 # define alloca __builtin_alloca
3071 # include <malloc.h>
3072 # define alloca _alloca
3075 # include <alloca.h>
3080 # ifndef alloca /* predefined by HP cc +Olibcalls */
3089 char *p = (char *) alloca(1);
3092 if { (eval echo configure
:3093: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3094 ac_cv_func_alloca_works
=yes
3096 echo "configure: failed program was:" >&5
3097 cat conftest.
$ac_ext >&5
3099 ac_cv_func_alloca_works
=no
3104 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
3105 if test $ac_cv_func_alloca_works = yes; then
3106 cat >> confdefs.h
<<\EOF
3107 #define HAVE_ALLOCA 1
3112 if test $ac_cv_func_alloca_works = no
; then
3113 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
3114 # that cause trouble. Some versions do not even contain alloca or
3115 # contain a buggy version. If you still want to use their alloca,
3116 # use ar to extract alloca.o from them instead of compiling alloca.c.
3117 ALLOCA
=alloca.
${ac_objext}
3118 cat >> confdefs.h
<<\EOF
3123 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
3124 echo "configure:3125: checking whether alloca needs Cray hooks" >&5
3125 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
3126 echo $ac_n "(cached) $ac_c" 1>&6
3128 cat > conftest.
$ac_ext <<EOF
3129 #line 3130 "configure"
3130 #include "confdefs.h"
3131 #if defined(CRAY) && ! defined(CRAY2)
3138 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3139 egrep "webecray" >/dev
/null
2>&1; then
3150 echo "$ac_t""$ac_cv_os_cray" 1>&6
3151 if test $ac_cv_os_cray = yes; then
3152 for ac_func
in _getb67 GETB67 getb67
; do
3153 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3154 echo "configure:3155: checking for $ac_func" >&5
3155 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3156 echo $ac_n "(cached) $ac_c" 1>&6
3158 cat > conftest.
$ac_ext <<EOF
3159 #line 3160 "configure"
3160 #include "confdefs.h"
3161 /* System header to define __stub macros and hopefully few prototypes,
3162 which can conflict with char $ac_func(); below. */
3164 /* Override any gcc2 internal prototype to avoid an error. */
3165 /* We use char because int might match the return type of a gcc2
3166 builtin and then its argument prototype would still apply. */
3171 /* The GNU C library defines this for functions which it implements
3172 to always fail with ENOSYS. Some functions are actually named
3173 something starting with __ and the normal name is an alias. */
3174 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3182 if { (eval echo configure
:3183: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3184 eval "ac_cv_func_$ac_func=yes"
3186 echo "configure: failed program was:" >&5
3187 cat conftest.
$ac_ext >&5
3189 eval "ac_cv_func_$ac_func=no"
3194 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3195 echo "$ac_t""yes" 1>&6
3196 cat >> confdefs.h
<<EOF
3197 #define CRAY_STACKSEG_END $ac_func
3202 echo "$ac_t""no" 1>&6
3208 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
3209 echo "configure:3210: checking stack direction for C alloca" >&5
3210 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
3211 echo $ac_n "(cached) $ac_c" 1>&6
3213 if test "$cross_compiling" = yes; then
3214 ac_cv_c_stack_direction
=0
3216 cat > conftest.
$ac_ext <<EOF
3217 #line 3218 "configure"
3218 #include "confdefs.h"
3219 find_stack_direction ()
3221 static char *addr = 0;
3226 return find_stack_direction ();
3229 return (&dummy > addr) ? 1 : -1;
3233 exit (find_stack_direction() < 0);
3236 if { (eval echo configure
:3237: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3238 ac_cv_c_stack_direction
=1
3240 echo "configure: failed program was:" >&5
3241 cat conftest.
$ac_ext >&5
3243 ac_cv_c_stack_direction
=-1
3250 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
3251 cat >> confdefs.h
<<EOF
3252 #define STACK_DIRECTION $ac_cv_c_stack_direction
3257 for ac_hdr
in unistd.h
3259 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3260 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3261 echo "configure:3262: checking for $ac_hdr" >&5
3262 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3263 echo $ac_n "(cached) $ac_c" 1>&6
3265 cat > conftest.
$ac_ext <<EOF
3266 #line 3267 "configure"
3267 #include "confdefs.h"
3270 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3271 { (eval echo configure
:3272: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3272 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3273 if test -z "$ac_err"; then
3275 eval "ac_cv_header_$ac_safe=yes"
3278 echo "configure: failed program was:" >&5
3279 cat conftest.
$ac_ext >&5
3281 eval "ac_cv_header_$ac_safe=no"
3285 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3286 echo "$ac_t""yes" 1>&6
3287 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3288 cat >> confdefs.h
<<EOF
3289 #define $ac_tr_hdr 1
3293 echo "$ac_t""no" 1>&6
3297 for ac_func
in getpagesize
3299 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3300 echo "configure:3301: checking for $ac_func" >&5
3301 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3302 echo $ac_n "(cached) $ac_c" 1>&6
3304 cat > conftest.
$ac_ext <<EOF
3305 #line 3306 "configure"
3306 #include "confdefs.h"
3307 /* System header to define __stub macros and hopefully few prototypes,
3308 which can conflict with char $ac_func(); below. */
3310 /* Override any gcc2 internal prototype to avoid an error. */
3311 /* We use char because int might match the return type of a gcc2
3312 builtin and then its argument prototype would still apply. */
3317 /* The GNU C library defines this for functions which it implements
3318 to always fail with ENOSYS. Some functions are actually named
3319 something starting with __ and the normal name is an alias. */
3320 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3328 if { (eval echo configure
:3329: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3330 eval "ac_cv_func_$ac_func=yes"
3332 echo "configure: failed program was:" >&5
3333 cat conftest.
$ac_ext >&5
3335 eval "ac_cv_func_$ac_func=no"
3340 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3341 echo "$ac_t""yes" 1>&6
3342 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3343 cat >> confdefs.h
<<EOF
3344 #define $ac_tr_func 1
3348 echo "$ac_t""no" 1>&6
3352 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
3353 echo "configure:3354: checking for working mmap" >&5
3354 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
3355 echo $ac_n "(cached) $ac_c" 1>&6
3357 if test "$cross_compiling" = yes; then
3358 ac_cv_func_mmap_fixed_mapped
=no
3360 cat > conftest.
$ac_ext <<EOF
3361 #line 3362 "configure"
3362 #include "confdefs.h"
3364 /* Thanks to Mike Haertel and Jim Avera for this test.
3365 Here is a matrix of mmap possibilities:
3366 mmap private not fixed
3367 mmap private fixed at somewhere currently unmapped
3368 mmap private fixed at somewhere already mapped
3369 mmap shared not fixed
3370 mmap shared fixed at somewhere currently unmapped
3371 mmap shared fixed at somewhere already mapped
3372 For private mappings, we should verify that changes cannot be read()
3373 back from the file, nor mmap's back from the file at a different
3374 address. (There have been systems where private was not correctly
3375 implemented like the infamous i386 svr4.0, and systems where the
3376 VM page cache was not coherent with the filesystem buffer cache
3377 like early versions of FreeBSD and possibly contemporary NetBSD.)
3378 For shared mappings, we should conversely verify that changes get
3379 propogated back to all the places they're supposed to be.
3381 Grep wants private fixed already mapped.
3382 The main things grep needs to know about mmap are:
3383 * does it exist and is it safe to write into the mmap'd area
3384 * how to use it (BSD variants) */
3385 #include <sys/types.h>
3387 #include <sys/mman.h>
3389 /* This mess was copied from the GNU getpagesize.h. */
3390 #ifndef HAVE_GETPAGESIZE
3391 # ifdef HAVE_UNISTD_H
3392 # include <unistd.h>
3395 /* Assume that all systems that can run configure have sys/param.h. */
3396 # ifndef HAVE_SYS_PARAM_H
3397 # define HAVE_SYS_PARAM_H 1
3400 # ifdef _SC_PAGESIZE
3401 # define getpagesize() sysconf(_SC_PAGESIZE)
3402 # else /* no _SC_PAGESIZE */
3403 # ifdef HAVE_SYS_PARAM_H
3404 # include <sys/param.h>
3405 # ifdef EXEC_PAGESIZE
3406 # define getpagesize() EXEC_PAGESIZE
3407 # else /* no EXEC_PAGESIZE */
3409 # define getpagesize() NBPG * CLSIZE
3412 # endif /* no CLSIZE */
3413 # else /* no NBPG */
3415 # define getpagesize() NBPC
3416 # else /* no NBPC */
3418 # define getpagesize() PAGESIZE
3419 # endif /* PAGESIZE */
3420 # endif /* no NBPC */
3421 # endif /* no NBPG */
3422 # endif /* no EXEC_PAGESIZE */
3423 # else /* no HAVE_SYS_PARAM_H */
3424 # define getpagesize() 8192 /* punt totally */
3425 # endif /* no HAVE_SYS_PARAM_H */
3426 # endif /* no _SC_PAGESIZE */
3428 #endif /* no HAVE_GETPAGESIZE */
3431 extern "C" { void *malloc(unsigned); }
3439 char *data, *data2, *data3;
3443 pagesize = getpagesize();
3446 * First, make a file with some known garbage in it.
3448 data = malloc(pagesize);
3451 for (i = 0; i < pagesize; ++i)
3452 *(data + i) = rand();
3454 fd = creat("conftestmmap", 0600);
3457 if (write(fd, data, pagesize) != pagesize)
3462 * Next, try to mmap the file at a fixed address which
3463 * already has something else allocated at it. If we can,
3464 * also make sure that we see the same garbage.
3466 fd = open("conftestmmap", O_RDWR);
3469 data2 = malloc(2 * pagesize);
3472 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
3473 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
3474 MAP_PRIVATE | MAP_FIXED, fd, 0L))
3476 for (i = 0; i < pagesize; ++i)
3477 if (*(data + i) != *(data2 + i))
3481 * Finally, make sure that changes to the mapped area
3482 * do not percolate back to the file as seen by read().
3483 * (This is a bug on some variants of i386 svr4.0.)
3485 for (i = 0; i < pagesize; ++i)
3486 *(data2 + i) = *(data2 + i) + 1;
3487 data3 = malloc(pagesize);
3490 if (read(fd, data3, pagesize) != pagesize)
3492 for (i = 0; i < pagesize; ++i)
3493 if (*(data + i) != *(data3 + i))
3496 unlink("conftestmmap");
3501 if { (eval echo configure
:3502: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3503 ac_cv_func_mmap_fixed_mapped
=yes
3505 echo "configure: failed program was:" >&5
3506 cat conftest.
$ac_ext >&5
3508 ac_cv_func_mmap_fixed_mapped
=no
3515 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
3516 if test $ac_cv_func_mmap_fixed_mapped = yes; then
3517 cat >> confdefs.h
<<\EOF
3524 for ac_hdr
in argz.h limits.h locale.h nl_types.h malloc.h string.h \
3525 unistd.h values.h sys
/param.h
3527 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3528 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3529 echo "configure:3530: checking for $ac_hdr" >&5
3530 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3531 echo $ac_n "(cached) $ac_c" 1>&6
3533 cat > conftest.
$ac_ext <<EOF
3534 #line 3535 "configure"
3535 #include "confdefs.h"
3538 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3539 { (eval echo configure
:3540: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3540 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3541 if test -z "$ac_err"; then
3543 eval "ac_cv_header_$ac_safe=yes"
3546 echo "configure: failed program was:" >&5
3547 cat conftest.
$ac_ext >&5
3549 eval "ac_cv_header_$ac_safe=no"
3553 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3554 echo "$ac_t""yes" 1>&6
3555 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3556 cat >> confdefs.h
<<EOF
3557 #define $ac_tr_hdr 1
3561 echo "$ac_t""no" 1>&6
3565 for ac_func
in getcwd munmap putenv setenv setlocale strchr strcasecmp \
3566 __argz_count __argz_stringify __argz_next
3568 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3569 echo "configure:3570: checking for $ac_func" >&5
3570 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3571 echo $ac_n "(cached) $ac_c" 1>&6
3573 cat > conftest.
$ac_ext <<EOF
3574 #line 3575 "configure"
3575 #include "confdefs.h"
3576 /* System header to define __stub macros and hopefully few prototypes,
3577 which can conflict with char $ac_func(); below. */
3579 /* Override any gcc2 internal prototype to avoid an error. */
3580 /* We use char because int might match the return type of a gcc2
3581 builtin and then its argument prototype would still apply. */
3586 /* The GNU C library defines this for functions which it implements
3587 to always fail with ENOSYS. Some functions are actually named
3588 something starting with __ and the normal name is an alias. */
3589 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3597 if { (eval echo configure
:3598: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3599 eval "ac_cv_func_$ac_func=yes"
3601 echo "configure: failed program was:" >&5
3602 cat conftest.
$ac_ext >&5
3604 eval "ac_cv_func_$ac_func=no"
3609 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3610 echo "$ac_t""yes" 1>&6
3611 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3612 cat >> confdefs.h
<<EOF
3613 #define $ac_tr_func 1
3617 echo "$ac_t""no" 1>&6
3622 if test "${ac_cv_func_stpcpy+set}" != "set"; then
3623 for ac_func
in stpcpy
3625 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3626 echo "configure:3627: checking for $ac_func" >&5
3627 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3628 echo $ac_n "(cached) $ac_c" 1>&6
3630 cat > conftest.
$ac_ext <<EOF
3631 #line 3632 "configure"
3632 #include "confdefs.h"
3633 /* System header to define __stub macros and hopefully few prototypes,
3634 which can conflict with char $ac_func(); below. */
3636 /* Override any gcc2 internal prototype to avoid an error. */
3637 /* We use char because int might match the return type of a gcc2
3638 builtin and then its argument prototype would still apply. */
3643 /* The GNU C library defines this for functions which it implements
3644 to always fail with ENOSYS. Some functions are actually named
3645 something starting with __ and the normal name is an alias. */
3646 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3654 if { (eval echo configure
:3655: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3656 eval "ac_cv_func_$ac_func=yes"
3658 echo "configure: failed program was:" >&5
3659 cat conftest.
$ac_ext >&5
3661 eval "ac_cv_func_$ac_func=no"
3666 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3667 echo "$ac_t""yes" 1>&6
3668 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3669 cat >> confdefs.h
<<EOF
3670 #define $ac_tr_func 1
3674 echo "$ac_t""no" 1>&6
3679 if test "${ac_cv_func_stpcpy}" = "yes"; then
3680 cat >> confdefs.h
<<\EOF
3681 #define HAVE_STPCPY 1
3686 if test $ac_cv_header_locale_h = yes; then
3687 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
3688 echo "configure:3689: checking for LC_MESSAGES" >&5
3689 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
3690 echo $ac_n "(cached) $ac_c" 1>&6
3692 cat > conftest.
$ac_ext <<EOF
3693 #line 3694 "configure"
3694 #include "confdefs.h"
3700 if { (eval echo configure
:3701: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3702 am_cv_val_LC_MESSAGES
=yes
3704 echo "configure: failed program was:" >&5
3705 cat conftest.
$ac_ext >&5
3707 am_cv_val_LC_MESSAGES
=no
3712 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
3713 if test $am_cv_val_LC_MESSAGES = yes; then
3714 cat >> confdefs.h
<<\EOF
3715 #define HAVE_LC_MESSAGES 1
3720 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
3721 echo "configure:3722: checking whether NLS is requested" >&5
3722 # Check whether --enable-nls or --disable-nls was given.
3723 if test "${enable_nls+set}" = set; then
3724 enableval
="$enable_nls"
3730 echo "$ac_t""$USE_NLS" 1>&6
3733 USE_INCLUDED_LIBINTL
=no
3735 if test "$USE_NLS" = "yes"; then
3736 cat >> confdefs.h
<<\EOF
3737 #define ENABLE_NLS 1
3740 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
3741 echo "configure:3742: checking whether included gettext is requested" >&5
3742 # Check whether --with-included-gettext or --without-included-gettext was given.
3743 if test "${with_included_gettext+set}" = set; then
3744 withval
="$with_included_gettext"
3745 nls_cv_force_use_gnu_gettext
=$withval
3747 nls_cv_force_use_gnu_gettext
=no
3750 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
3752 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
3753 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
3755 nls_cv_header_libgt
=
3758 ac_safe
=`echo "libintl.h" | sed 'y%./+-%__p_%'`
3759 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
3760 echo "configure:3761: checking for libintl.h" >&5
3761 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3762 echo $ac_n "(cached) $ac_c" 1>&6
3764 cat > conftest.
$ac_ext <<EOF
3765 #line 3766 "configure"
3766 #include "confdefs.h"
3767 #include <libintl.h>
3769 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3770 { (eval echo configure
:3771: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3771 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3772 if test -z "$ac_err"; then
3774 eval "ac_cv_header_$ac_safe=yes"
3777 echo "configure: failed program was:" >&5
3778 cat conftest.
$ac_ext >&5
3780 eval "ac_cv_header_$ac_safe=no"
3784 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3785 echo "$ac_t""yes" 1>&6
3786 echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
3787 echo "configure:3788: checking for gettext in libc" >&5
3788 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
3789 echo $ac_n "(cached) $ac_c" 1>&6
3791 cat > conftest.
$ac_ext <<EOF
3792 #line 3793 "configure"
3793 #include "confdefs.h"
3794 #include <libintl.h>
3796 return (int) gettext ("")
3799 if { (eval echo configure
:3800: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3801 gt_cv_func_gettext_libc
=yes
3803 echo "configure: failed program was:" >&5
3804 cat conftest.
$ac_ext >&5
3806 gt_cv_func_gettext_libc
=no
3811 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
3813 if test "$gt_cv_func_gettext_libc" != "yes"; then
3814 echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
3815 echo "configure:3816: checking for bindtextdomain in -lintl" >&5
3816 ac_lib_var
=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
3817 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3818 echo $ac_n "(cached) $ac_c" 1>&6
3820 ac_save_LIBS
="$LIBS"
3822 cat > conftest.
$ac_ext <<EOF
3823 #line 3824 "configure"
3824 #include "confdefs.h"
3825 /* Override any gcc2 internal prototype to avoid an error. */
3826 /* We use char because int might match the return type of a gcc2
3827 builtin and then its argument prototype would still apply. */
3828 char bindtextdomain();
3834 if { (eval echo configure
:3835: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3836 eval "ac_cv_lib_$ac_lib_var=yes"
3838 echo "configure: failed program was:" >&5
3839 cat conftest.
$ac_ext >&5
3841 eval "ac_cv_lib_$ac_lib_var=no"
3844 LIBS
="$ac_save_LIBS"
3847 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3848 echo "$ac_t""yes" 1>&6
3849 echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
3850 echo "configure:3851: checking for gettext in libintl" >&5
3851 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
3852 echo $ac_n "(cached) $ac_c" 1>&6
3854 cat > conftest.
$ac_ext <<EOF
3855 #line 3856 "configure"
3856 #include "confdefs.h"
3859 return (int) gettext ("")
3862 if { (eval echo configure
:3863: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3864 gt_cv_func_gettext_libintl
=yes
3866 echo "configure: failed program was:" >&5
3867 cat conftest.
$ac_ext >&5
3869 gt_cv_func_gettext_libintl
=no
3874 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
3876 echo "$ac_t""no" 1>&6
3881 if test "$gt_cv_func_gettext_libc" = "yes" \
3882 ||
test "$gt_cv_func_gettext_libintl" = "yes"; then
3883 cat >> confdefs.h
<<\EOF
3884 #define HAVE_GETTEXT 1
3887 # Extract the first word of "msgfmt", so it can be a program name with args.
3888 set dummy msgfmt
; ac_word
=$2
3889 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3890 echo "configure:3891: checking for $ac_word" >&5
3891 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
3892 echo $ac_n "(cached) $ac_c" 1>&6
3896 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
3899 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
3900 for ac_dir
in $PATH; do
3901 test -z "$ac_dir" && ac_dir
=.
3902 if test -f $ac_dir/$ac_word; then
3903 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
3904 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
3910 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="no"
3914 MSGFMT
="$ac_cv_path_MSGFMT"
3915 if test -n "$MSGFMT"; then
3916 echo "$ac_t""$MSGFMT" 1>&6
3918 echo "$ac_t""no" 1>&6
3920 if test "$MSGFMT" != "no"; then
3921 for ac_func
in dcgettext
3923 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3924 echo "configure:3925: checking for $ac_func" >&5
3925 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3926 echo $ac_n "(cached) $ac_c" 1>&6
3928 cat > conftest.
$ac_ext <<EOF
3929 #line 3930 "configure"
3930 #include "confdefs.h"
3931 /* System header to define __stub macros and hopefully few prototypes,
3932 which can conflict with char $ac_func(); below. */
3934 /* Override any gcc2 internal prototype to avoid an error. */
3935 /* We use char because int might match the return type of a gcc2
3936 builtin and then its argument prototype would still apply. */
3941 /* The GNU C library defines this for functions which it implements
3942 to always fail with ENOSYS. Some functions are actually named
3943 something starting with __ and the normal name is an alias. */
3944 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3952 if { (eval echo configure
:3953: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3954 eval "ac_cv_func_$ac_func=yes"
3956 echo "configure: failed program was:" >&5
3957 cat conftest.
$ac_ext >&5
3959 eval "ac_cv_func_$ac_func=no"
3964 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3965 echo "$ac_t""yes" 1>&6
3966 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3967 cat >> confdefs.h
<<EOF
3968 #define $ac_tr_func 1
3972 echo "$ac_t""no" 1>&6
3976 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3977 set dummy gmsgfmt
; ac_word
=$2
3978 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3979 echo "configure:3980: checking for $ac_word" >&5
3980 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
3981 echo $ac_n "(cached) $ac_c" 1>&6
3985 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
3988 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
3991 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3993 for ac_dir
in $ac_dummy; do
3994 test -z "$ac_dir" && ac_dir
=.
3995 if test -f $ac_dir/$ac_word; then
3996 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
4001 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
4005 GMSGFMT
="$ac_cv_path_GMSGFMT"
4006 if test -n "$GMSGFMT"; then
4007 echo "$ac_t""$GMSGFMT" 1>&6
4009 echo "$ac_t""no" 1>&6
4012 # Extract the first word of "xgettext", so it can be a program name with args.
4013 set dummy xgettext
; ac_word
=$2
4014 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4015 echo "configure:4016: checking for $ac_word" >&5
4016 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
4017 echo $ac_n "(cached) $ac_c" 1>&6
4021 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
4024 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
4025 for ac_dir
in $PATH; do
4026 test -z "$ac_dir" && ac_dir
=.
4027 if test -f $ac_dir/$ac_word; then
4028 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
4029 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
4035 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
4039 XGETTEXT
="$ac_cv_path_XGETTEXT"
4040 if test -n "$XGETTEXT"; then
4041 echo "$ac_t""$XGETTEXT" 1>&6
4043 echo "$ac_t""no" 1>&6
4046 cat > conftest.
$ac_ext <<EOF
4047 #line 4048 "configure"
4048 #include "confdefs.h"
4051 extern int _nl_msg_cat_cntr;
4052 return _nl_msg_cat_cntr
4055 if { (eval echo configure
:4056: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4060 echo "configure: failed program was:" >&5
4061 cat conftest.
$ac_ext >&5
4072 echo "$ac_t""no" 1>&6
4077 if test "$CATOBJEXT" = "NONE"; then
4078 nls_cv_use_gnu_gettext
=yes
4082 if test "$nls_cv_use_gnu_gettext" = "yes"; then
4083 INTLOBJS
="\$(GETTOBJS)"
4084 # Extract the first word of "msgfmt", so it can be a program name with args.
4085 set dummy msgfmt
; ac_word
=$2
4086 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4087 echo "configure:4088: checking for $ac_word" >&5
4088 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
4089 echo $ac_n "(cached) $ac_c" 1>&6
4093 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
4096 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
4097 for ac_dir
in $PATH; do
4098 test -z "$ac_dir" && ac_dir
=.
4099 if test -f $ac_dir/$ac_word; then
4100 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
4101 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
4107 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
="msgfmt"
4111 MSGFMT
="$ac_cv_path_MSGFMT"
4112 if test -n "$MSGFMT"; then
4113 echo "$ac_t""$MSGFMT" 1>&6
4115 echo "$ac_t""no" 1>&6
4118 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4119 set dummy gmsgfmt
; ac_word
=$2
4120 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4121 echo "configure:4122: checking for $ac_word" >&5
4122 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
4123 echo $ac_n "(cached) $ac_c" 1>&6
4127 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
4130 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
4133 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
4135 for ac_dir
in $ac_dummy; do
4136 test -z "$ac_dir" && ac_dir
=.
4137 if test -f $ac_dir/$ac_word; then
4138 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
4143 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
4147 GMSGFMT
="$ac_cv_path_GMSGFMT"
4148 if test -n "$GMSGFMT"; then
4149 echo "$ac_t""$GMSGFMT" 1>&6
4151 echo "$ac_t""no" 1>&6
4154 # Extract the first word of "xgettext", so it can be a program name with args.
4155 set dummy xgettext
; ac_word
=$2
4156 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4157 echo "configure:4158: checking for $ac_word" >&5
4158 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
4159 echo $ac_n "(cached) $ac_c" 1>&6
4163 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
4166 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
4167 for ac_dir
in $PATH; do
4168 test -z "$ac_dir" && ac_dir
=.
4169 if test -f $ac_dir/$ac_word; then
4170 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
4171 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
4177 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
4181 XGETTEXT
="$ac_cv_path_XGETTEXT"
4182 if test -n "$XGETTEXT"; then
4183 echo "$ac_t""$XGETTEXT" 1>&6
4185 echo "$ac_t""no" 1>&6
4189 USE_INCLUDED_LIBINTL
=yes
4193 INTLDEPS
='$(top_builddir)/../intl/libintl.a'
4195 LIBS
=`echo $LIBS | sed -e 's/-lintl//'`
4196 nls_cv_header_intl
=libintl.h
4197 nls_cv_header_libgt
=libgettext.h
4200 if test "$XGETTEXT" != ":"; then
4201 if $XGETTEXT --omit-header /dev
/null
2> /dev
/null
; then
4204 echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
4209 # We need to process the po/ directory.
4213 nls_cv_header_intl
=libintl.h
4214 nls_cv_header_libgt
=libgettext.h
4217 # If this is used in GNU gettext we have to set USE_NLS to `yes'
4218 # because some of the sources are only built for this goal.
4219 if test "$PACKAGE" = gettext; then
4221 USE_INCLUDED_LIBINTL
=yes
4224 for lang
in $ALL_LINGUAS; do
4225 GMOFILES
="$GMOFILES $lang.gmo"
4226 POFILES
="$POFILES $lang.po"
4242 if test "x$CATOBJEXT" != "x"; then
4243 if test "x$ALL_LINGUAS" = "x"; then
4246 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
4247 echo "configure:4248: checking for catalogs to be installed" >&5
4249 for lang
in ${LINGUAS=$ALL_LINGUAS}; do
4250 case "$ALL_LINGUAS" in
4251 *$lang*) NEW_LINGUAS
="$NEW_LINGUAS $lang" ;;
4254 LINGUAS
=$NEW_LINGUAS
4255 echo "$ac_t""$LINGUAS" 1>&6
4258 if test -n "$LINGUAS"; then
4259 for lang
in $LINGUAS; do CATALOGS
="$CATALOGS $lang$CATOBJEXT"; done
4263 if test $ac_cv_header_locale_h = yes; then
4264 INCLUDE_LOCALE_H
="#include <locale.h>"
4267 /* The system does not provide the header <locale.h>. Take care yourself. */"
4271 if test -f $srcdir/po2tbl.
sed.
in; then
4272 if test "$CATOBJEXT" = ".cat"; then
4273 ac_safe
=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
4274 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
4275 echo "configure:4276: checking for linux/version.h" >&5
4276 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4277 echo $ac_n "(cached) $ac_c" 1>&6
4279 cat > conftest.
$ac_ext <<EOF
4280 #line 4281 "configure"
4281 #include "confdefs.h"
4282 #include <linux/version.h>
4284 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4285 { (eval echo configure
:4286: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4286 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4287 if test -z "$ac_err"; then
4289 eval "ac_cv_header_$ac_safe=yes"
4292 echo "configure: failed program was:" >&5
4293 cat conftest.
$ac_ext >&5
4295 eval "ac_cv_header_$ac_safe=no"
4299 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4300 echo "$ac_t""yes" 1>&6
4303 echo "$ac_t""no" 1>&6
4308 sed -e '/^#/d' $srcdir/$msgformat-msg.
sed > po2msg.
sed
4310 sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
4311 $srcdir/po2tbl.
sed.
in > po2tbl.
sed
4314 if test "$PACKAGE" = "gettext"; then
4324 MKINSTALLDIRS
="\$(srcdir)/../../mkinstalldirs"
4330 if test -d $srcdir/po
; then
4331 test -d po || mkdir po
4332 if test "x$srcdir" != "x."; then
4333 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
4334 posrcprefix
="$srcdir/"
4336 posrcprefix
="../$srcdir/"
4342 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
4343 < $srcdir/po
/POTFILES.
in > po
/POTFILES
4347 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
4348 echo "configure:4349: checking whether to enable maintainer-specific portions of Makefiles" >&5
4349 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4350 if test "${enable_maintainer_mode+set}" = set; then
4351 enableval
="$enable_maintainer_mode"
4352 USE_MAINTAINER_MODE
=$enableval
4354 USE_MAINTAINER_MODE
=no
4357 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
4360 if test $USE_MAINTAINER_MODE = yes; then
4361 MAINTAINER_MODE_TRUE
=
4362 MAINTAINER_MODE_FALSE
='#'
4364 MAINTAINER_MODE_TRUE
='#'
4365 MAINTAINER_MODE_FALSE
=
4367 MAINT
=$MAINTAINER_MODE_TRUE
4372 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
4373 echo "configure:4374: checking for executable suffix" >&5
4374 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
4375 echo $ac_n "(cached) $ac_c" 1>&6
4377 if test "$CYGWIN" = yes ||
test "$MINGW32" = yes; then
4381 echo 'int main () { return 0; }' > conftest.
$ac_ext
4383 if { (eval echo configure
:4384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
4384 for file in conftest.
*; do
4386 *.c |
*.o |
*.obj |
*.ilk |
*.pdb
) ;;
4387 *) ac_cv_exeext
=`echo $file | sed -e s/conftest//` ;;
4391 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
4394 test x
"${ac_cv_exeext}" = x
&& ac_cv_exeext
=no
4399 test x
"${ac_cv_exeext}" != xno
&& EXEEXT
=${ac_cv_exeext}
4400 echo "$ac_t""${ac_cv_exeext}" 1>&6
4403 if test -n "$EXEEXT"; then
4404 cat >> confdefs.h
<<\EOF
4405 #define HAVE_EXECUTABLE_SUFFIX 1
4409 cat >> confdefs.h
<<EOF
4410 #define EXECUTABLE_SUFFIX "${EXEEXT}"
4414 # host-specific stuff:
4418 .
${srcdir}/..
/bfd
/configure.
host
4423 # Extract the first word of "ranlib", so it can be a program name with args.
4424 set dummy ranlib
; ac_word
=$2
4425 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4426 echo "configure:4427: checking for $ac_word" >&5
4427 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
4428 echo $ac_n "(cached) $ac_c" 1>&6
4430 if test -n "$RANLIB"; then
4431 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4433 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
4435 for ac_dir
in $ac_dummy; do
4436 test -z "$ac_dir" && ac_dir
=.
4437 if test -f $ac_dir/$ac_word; then
4438 ac_cv_prog_RANLIB
="ranlib"
4443 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
4446 RANLIB
="$ac_cv_prog_RANLIB"
4447 if test -n "$RANLIB"; then
4448 echo "$ac_t""$RANLIB" 1>&6
4450 echo "$ac_t""no" 1>&6
4453 # Find a good install program. We prefer a C program (faster),
4454 # so one script is as good as another. But avoid the broken or
4455 # incompatible versions:
4456 # SysV /etc/install, /usr/sbin/install
4457 # SunOS /usr/etc/install
4458 # IRIX /sbin/install
4460 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4461 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4462 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4463 # ./install, which can be erroneously created by make from ./install.sh.
4464 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
4465 echo "configure:4466: checking for a BSD compatible install" >&5
4466 if test -z "$INSTALL"; then
4467 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
4468 echo $ac_n "(cached) $ac_c" 1>&6
4470 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
4471 for ac_dir
in $PATH; do
4472 # Account for people who put trailing slashes in PATH elements.
4474 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
4476 # OSF1 and SCO ODT 3.0 have their own names for install.
4477 # Don't use installbsd from OSF since it installs stuff as root
4479 for ac_prog
in ginstall scoinst
install; do
4480 if test -f $ac_dir/$ac_prog; then
4481 if test $ac_prog = install &&
4482 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
4483 # AIX install. It has an incompatible calling convention.
4486 ac_cv_path_install
="$ac_dir/$ac_prog -c"
4497 if test "${ac_cv_path_install+set}" = set; then
4498 INSTALL
="$ac_cv_path_install"
4500 # As a last resort, use the slow shell script. We don't cache a
4501 # path for INSTALL within a source directory, because that will
4502 # break other packages using the cache if that directory is
4503 # removed, or if the path is relative.
4504 INSTALL
="$ac_install_sh"
4507 echo "$ac_t""$INSTALL" 1>&6
4509 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4510 # It thinks the first close brace ends the variable substitution.
4511 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4513 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
4515 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4518 # Put a plausible default for CC_FOR_BUILD in Makefile.
4519 if test -z "$CC_FOR_BUILD"; then
4520 if test "x$cross_compiling" = "xno"; then
4521 CC_FOR_BUILD
='$(CC)'
4527 # Also set EXEEXT_FOR_BUILD.
4528 if test "x$cross_compiling" = "xno"; then
4529 EXEEXT_FOR_BUILD
='$(EXEEXT)'
4531 echo $ac_n "checking for build system executable suffix""... $ac_c" 1>&6
4532 echo "configure:4533: checking for build system executable suffix" >&5
4533 if eval "test \"`echo '$''{'bfd_cv_build_exeext'+set}'`\" = set"; then
4534 echo $ac_n "(cached) $ac_c" 1>&6
4537 echo 'int main () { return 0; }' > conftest.c
4538 bfd_cv_build_exeext
=
4539 ${CC_FOR_BUILD} -o conftest conftest.c
1>&5 2>&5
4540 for file in conftest.
*; do
4542 *.c |
*.o |
*.obj |
*.ilk |
*.pdb
) ;;
4543 *) bfd_cv_build_exeext
=`echo $file | sed -e s/conftest//` ;;
4547 test x
"${bfd_cv_build_exeext}" = x
&& bfd_cv_build_exeext
=no
4550 echo "$ac_t""$bfd_cv_build_exeext" 1>&6
4552 test x
"${bfd_cv_build_exeext}" != xno
&& EXEEXT_FOR_BUILD
=${bfd_cv_build_exeext}
4556 DEMANGLER_NAME
=c
++filt
4558 *-*-go32* |
*-*-msdos*)
4559 DEMANGLER_NAME
=cxxfilt
4563 for ac_hdr
in string.h
strings.h stdlib.h unistd.h fcntl.h sys
/file.h
4565 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4566 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4567 echo "configure:4568: checking for $ac_hdr" >&5
4568 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4569 echo $ac_n "(cached) $ac_c" 1>&6
4571 cat > conftest.
$ac_ext <<EOF
4572 #line 4573 "configure"
4573 #include "confdefs.h"
4576 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4577 { (eval echo configure
:4578: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4578 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4579 if test -z "$ac_err"; then
4581 eval "ac_cv_header_$ac_safe=yes"
4584 echo "configure: failed program was:" >&5
4585 cat conftest.
$ac_ext >&5
4587 eval "ac_cv_header_$ac_safe=no"
4591 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4592 echo "$ac_t""yes" 1>&6
4593 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4594 cat >> confdefs.h
<<EOF
4595 #define $ac_tr_hdr 1
4599 echo "$ac_t""no" 1>&6
4603 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
4604 echo "configure:4605: checking for sys/wait.h that is POSIX.1 compatible" >&5
4605 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
4606 echo $ac_n "(cached) $ac_c" 1>&6
4608 cat > conftest.
$ac_ext <<EOF
4609 #line 4610 "configure"
4610 #include "confdefs.h"
4611 #include <sys/types.h>
4612 #include <sys/wait.h>
4614 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
4617 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4622 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4625 if { (eval echo configure
:4626: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4627 ac_cv_header_sys_wait_h
=yes
4629 echo "configure: failed program was:" >&5
4630 cat conftest.
$ac_ext >&5
4632 ac_cv_header_sys_wait_h
=no
4637 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
4638 if test $ac_cv_header_sys_wait_h = yes; then
4639 cat >> confdefs.h
<<\EOF
4640 #define HAVE_SYS_WAIT_H 1
4645 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4646 # for constant arguments. Useless!
4647 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
4648 echo "configure:4649: checking for working alloca.h" >&5
4649 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
4650 echo $ac_n "(cached) $ac_c" 1>&6
4652 cat > conftest.
$ac_ext <<EOF
4653 #line 4654 "configure"
4654 #include "confdefs.h"
4657 char *p = alloca(2 * sizeof(int));
4660 if { (eval echo configure
:4661: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4662 ac_cv_header_alloca_h
=yes
4664 echo "configure: failed program was:" >&5
4665 cat conftest.
$ac_ext >&5
4667 ac_cv_header_alloca_h
=no
4672 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
4673 if test $ac_cv_header_alloca_h = yes; then
4674 cat >> confdefs.h
<<\EOF
4675 #define HAVE_ALLOCA_H 1
4680 echo $ac_n "checking for alloca""... $ac_c" 1>&6
4681 echo "configure:4682: checking for alloca" >&5
4682 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
4683 echo $ac_n "(cached) $ac_c" 1>&6
4685 cat > conftest.
$ac_ext <<EOF
4686 #line 4687 "configure"
4687 #include "confdefs.h"
4690 # define alloca __builtin_alloca
4693 # include <malloc.h>
4694 # define alloca _alloca
4697 # include <alloca.h>
4702 # ifndef alloca /* predefined by HP cc +Olibcalls */
4711 char *p = (char *) alloca(1);
4714 if { (eval echo configure
:4715: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4716 ac_cv_func_alloca_works
=yes
4718 echo "configure: failed program was:" >&5
4719 cat conftest.
$ac_ext >&5
4721 ac_cv_func_alloca_works
=no
4726 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
4727 if test $ac_cv_func_alloca_works = yes; then
4728 cat >> confdefs.h
<<\EOF
4729 #define HAVE_ALLOCA 1
4734 if test $ac_cv_func_alloca_works = no
; then
4735 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
4736 # that cause trouble. Some versions do not even contain alloca or
4737 # contain a buggy version. If you still want to use their alloca,
4738 # use ar to extract alloca.o from them instead of compiling alloca.c.
4739 ALLOCA
=alloca.
${ac_objext}
4740 cat >> confdefs.h
<<\EOF
4745 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
4746 echo "configure:4747: checking whether alloca needs Cray hooks" >&5
4747 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
4748 echo $ac_n "(cached) $ac_c" 1>&6
4750 cat > conftest.
$ac_ext <<EOF
4751 #line 4752 "configure"
4752 #include "confdefs.h"
4753 #if defined(CRAY) && ! defined(CRAY2)
4760 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4761 egrep "webecray" >/dev
/null
2>&1; then
4772 echo "$ac_t""$ac_cv_os_cray" 1>&6
4773 if test $ac_cv_os_cray = yes; then
4774 for ac_func
in _getb67 GETB67 getb67
; do
4775 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4776 echo "configure:4777: checking for $ac_func" >&5
4777 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4778 echo $ac_n "(cached) $ac_c" 1>&6
4780 cat > conftest.
$ac_ext <<EOF
4781 #line 4782 "configure"
4782 #include "confdefs.h"
4783 /* System header to define __stub macros and hopefully few prototypes,
4784 which can conflict with char $ac_func(); below. */
4786 /* Override any gcc2 internal prototype to avoid an error. */
4787 /* We use char because int might match the return type of a gcc2
4788 builtin and then its argument prototype would still apply. */
4793 /* The GNU C library defines this for functions which it implements
4794 to always fail with ENOSYS. Some functions are actually named
4795 something starting with __ and the normal name is an alias. */
4796 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4804 if { (eval echo configure
:4805: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4806 eval "ac_cv_func_$ac_func=yes"
4808 echo "configure: failed program was:" >&5
4809 cat conftest.
$ac_ext >&5
4811 eval "ac_cv_func_$ac_func=no"
4816 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4817 echo "$ac_t""yes" 1>&6
4818 cat >> confdefs.h
<<EOF
4819 #define CRAY_STACKSEG_END $ac_func
4824 echo "$ac_t""no" 1>&6
4830 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
4831 echo "configure:4832: checking stack direction for C alloca" >&5
4832 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
4833 echo $ac_n "(cached) $ac_c" 1>&6
4835 if test "$cross_compiling" = yes; then
4836 ac_cv_c_stack_direction
=0
4838 cat > conftest.
$ac_ext <<EOF
4839 #line 4840 "configure"
4840 #include "confdefs.h"
4841 find_stack_direction ()
4843 static char *addr = 0;
4848 return find_stack_direction ();
4851 return (&dummy > addr) ? 1 : -1;
4855 exit (find_stack_direction() < 0);
4858 if { (eval echo configure
:4859: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4860 ac_cv_c_stack_direction
=1
4862 echo "configure: failed program was:" >&5
4863 cat conftest.
$ac_ext >&5
4865 ac_cv_c_stack_direction
=-1
4872 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
4873 cat >> confdefs.h
<<EOF
4874 #define STACK_DIRECTION $ac_cv_c_stack_direction
4879 for ac_func
in sbrk utimes setmode
4881 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4882 echo "configure:4883: checking for $ac_func" >&5
4883 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4884 echo $ac_n "(cached) $ac_c" 1>&6
4886 cat > conftest.
$ac_ext <<EOF
4887 #line 4888 "configure"
4888 #include "confdefs.h"
4889 /* System header to define __stub macros and hopefully few prototypes,
4890 which can conflict with char $ac_func(); below. */
4892 /* Override any gcc2 internal prototype to avoid an error. */
4893 /* We use char because int might match the return type of a gcc2
4894 builtin and then its argument prototype would still apply. */
4899 /* The GNU C library defines this for functions which it implements
4900 to always fail with ENOSYS. Some functions are actually named
4901 something starting with __ and the normal name is an alias. */
4902 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4910 if { (eval echo configure
:4911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4912 eval "ac_cv_func_$ac_func=yes"
4914 echo "configure: failed program was:" >&5
4915 cat conftest.
$ac_ext >&5
4917 eval "ac_cv_func_$ac_func=no"
4922 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4923 echo "$ac_t""yes" 1>&6
4924 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4925 cat >> confdefs.h
<<EOF
4926 #define $ac_tr_func 1
4930 echo "$ac_t""no" 1>&6
4935 # Some systems have frexp only in -lm, not in -lc.
4937 echo $ac_n "checking for library containing frexp""... $ac_c" 1>&6
4938 echo "configure:4939: checking for library containing frexp" >&5
4939 if eval "test \"`echo '$''{'ac_cv_search_frexp'+set}'`\" = set"; then
4940 echo $ac_n "(cached) $ac_c" 1>&6
4942 ac_func_search_save_LIBS
="$LIBS"
4943 ac_cv_search_frexp
="no"
4944 cat > conftest.
$ac_ext <<EOF
4945 #line 4946 "configure"
4946 #include "confdefs.h"
4947 /* Override any gcc2 internal prototype to avoid an error. */
4948 /* We use char because int might match the return type of a gcc2
4949 builtin and then its argument prototype would still apply. */
4956 if { (eval echo configure
:4957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4958 ac_cv_search_frexp
="none required"
4960 echo "configure: failed program was:" >&5
4961 cat conftest.
$ac_ext >&5
4964 test "$ac_cv_search_frexp" = "no" && for i
in m
; do
4965 LIBS
="-l$i $ac_func_search_save_LIBS"
4966 cat > conftest.
$ac_ext <<EOF
4967 #line 4968 "configure"
4968 #include "confdefs.h"
4969 /* Override any gcc2 internal prototype to avoid an error. */
4970 /* We use char because int might match the return type of a gcc2
4971 builtin and then its argument prototype would still apply. */
4978 if { (eval echo configure
:4979: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4980 ac_cv_search_frexp
="-l$i"
4983 echo "configure: failed program was:" >&5
4984 cat conftest.
$ac_ext >&5
4988 LIBS
="$ac_func_search_save_LIBS"
4991 echo "$ac_t""$ac_cv_search_frexp" 1>&6
4992 if test "$ac_cv_search_frexp" != "no"; then
4993 test "$ac_cv_search_frexp" = "none required" || LIBS
="$ac_cv_search_frexp $LIBS"
4999 echo $ac_n "checking for time_t in time.h""... $ac_c" 1>&6
5000 echo "configure:5001: checking for time_t in time.h" >&5
5001 if eval "test \"`echo '$''{'bu_cv_decl_time_t_time_h'+set}'`\" = set"; then
5002 echo $ac_n "(cached) $ac_c" 1>&6
5004 cat > conftest.
$ac_ext <<EOF
5005 #line 5006 "configure"
5006 #include "confdefs.h"
5012 if { (eval echo configure
:5013: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5014 bu_cv_decl_time_t_time_h
=yes
5016 echo "configure: failed program was:" >&5
5017 cat conftest.
$ac_ext >&5
5019 bu_cv_decl_time_t_time_h
=no
5024 echo "$ac_t""$bu_cv_decl_time_t_time_h" 1>&6
5025 if test $bu_cv_decl_time_t_time_h = yes; then
5026 cat >> confdefs.h
<<\EOF
5027 #define HAVE_TIME_T_IN_TIME_H 1
5032 echo $ac_n "checking for time_t in sys/types.h""... $ac_c" 1>&6
5033 echo "configure:5034: checking for time_t in sys/types.h" >&5
5034 if eval "test \"`echo '$''{'bu_cv_decl_time_t_types_h'+set}'`\" = set"; then
5035 echo $ac_n "(cached) $ac_c" 1>&6
5037 cat > conftest.
$ac_ext <<EOF
5038 #line 5039 "configure"
5039 #include "confdefs.h"
5040 #include <sys/types.h>
5045 if { (eval echo configure
:5046: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5047 bu_cv_decl_time_t_types_h
=yes
5049 echo "configure: failed program was:" >&5
5050 cat conftest.
$ac_ext >&5
5052 bu_cv_decl_time_t_types_h
=no
5057 echo "$ac_t""$bu_cv_decl_time_t_types_h" 1>&6
5058 if test $bu_cv_decl_time_t_types_h = yes; then
5059 cat >> confdefs.h
<<\EOF
5060 #define HAVE_TIME_T_IN_TYPES_H 1
5065 # Under Next 3.2 <utime.h> apparently does not define struct utimbuf
5067 echo $ac_n "checking for utime.h""... $ac_c" 1>&6
5068 echo "configure:5069: checking for utime.h" >&5
5069 if eval "test \"`echo '$''{'bu_cv_header_utime_h'+set}'`\" = set"; then
5070 echo $ac_n "(cached) $ac_c" 1>&6
5072 cat > conftest.
$ac_ext <<EOF
5073 #line 5074 "configure"
5074 #include "confdefs.h"
5075 #include <sys/types.h>
5084 if { (eval echo configure
:5085: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5086 bu_cv_header_utime_h
=yes
5088 echo "configure: failed program was:" >&5
5089 cat conftest.
$ac_ext >&5
5091 bu_cv_header_utime_h
=no
5096 echo "$ac_t""$bu_cv_header_utime_h" 1>&6
5097 if test $bu_cv_header_utime_h = yes; then
5098 cat >> confdefs.h
<<\EOF
5099 #define HAVE_GOOD_UTIME_H 1
5104 echo $ac_n "checking whether fprintf must be declared""... $ac_c" 1>&6
5105 echo "configure:5106: checking whether fprintf must be declared" >&5
5106 if eval "test \"`echo '$''{'bfd_cv_decl_needed_fprintf'+set}'`\" = set"; then
5107 echo $ac_n "(cached) $ac_c" 1>&6
5109 cat > conftest.
$ac_ext <<EOF
5110 #line 5111 "configure"
5111 #include "confdefs.h"
5114 #ifdef HAVE_STRING_H
5117 #ifdef HAVE_STRINGS_H
5118 #include <strings.h>
5121 #ifdef HAVE_STDLIB_H
5124 #ifdef HAVE_UNISTD_H
5128 char *(*pfn) = (char *(*)) fprintf
5131 if { (eval echo configure
:5132: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5133 bfd_cv_decl_needed_fprintf
=no
5135 echo "configure: failed program was:" >&5
5136 cat conftest.
$ac_ext >&5
5138 bfd_cv_decl_needed_fprintf
=yes
5143 echo "$ac_t""$bfd_cv_decl_needed_fprintf" 1>&6
5144 if test $bfd_cv_decl_needed_fprintf = yes; then
5145 cat >> confdefs.h
<<\EOF
5146 #define NEED_DECLARATION_FPRINTF 1
5151 echo $ac_n "checking whether strstr must be declared""... $ac_c" 1>&6
5152 echo "configure:5153: checking whether strstr must be declared" >&5
5153 if eval "test \"`echo '$''{'bfd_cv_decl_needed_strstr'+set}'`\" = set"; then
5154 echo $ac_n "(cached) $ac_c" 1>&6
5156 cat > conftest.
$ac_ext <<EOF
5157 #line 5158 "configure"
5158 #include "confdefs.h"
5161 #ifdef HAVE_STRING_H
5164 #ifdef HAVE_STRINGS_H
5165 #include <strings.h>
5168 #ifdef HAVE_STDLIB_H
5171 #ifdef HAVE_UNISTD_H
5175 char *(*pfn) = (char *(*)) strstr
5178 if { (eval echo configure
:5179: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5180 bfd_cv_decl_needed_strstr
=no
5182 echo "configure: failed program was:" >&5
5183 cat conftest.
$ac_ext >&5
5185 bfd_cv_decl_needed_strstr
=yes
5190 echo "$ac_t""$bfd_cv_decl_needed_strstr" 1>&6
5191 if test $bfd_cv_decl_needed_strstr = yes; then
5192 cat >> confdefs.h
<<\EOF
5193 #define NEED_DECLARATION_STRSTR 1
5198 echo $ac_n "checking whether sbrk must be declared""... $ac_c" 1>&6
5199 echo "configure:5200: checking whether sbrk must be declared" >&5
5200 if eval "test \"`echo '$''{'bfd_cv_decl_needed_sbrk'+set}'`\" = set"; then
5201 echo $ac_n "(cached) $ac_c" 1>&6
5203 cat > conftest.
$ac_ext <<EOF
5204 #line 5205 "configure"
5205 #include "confdefs.h"
5208 #ifdef HAVE_STRING_H
5211 #ifdef HAVE_STRINGS_H
5212 #include <strings.h>
5215 #ifdef HAVE_STDLIB_H
5218 #ifdef HAVE_UNISTD_H
5222 char *(*pfn) = (char *(*)) sbrk
5225 if { (eval echo configure
:5226: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5227 bfd_cv_decl_needed_sbrk
=no
5229 echo "configure: failed program was:" >&5
5230 cat conftest.
$ac_ext >&5
5232 bfd_cv_decl_needed_sbrk
=yes
5237 echo "$ac_t""$bfd_cv_decl_needed_sbrk" 1>&6
5238 if test $bfd_cv_decl_needed_sbrk = yes; then
5239 cat >> confdefs.h
<<\EOF
5240 #define NEED_DECLARATION_SBRK 1
5245 echo $ac_n "checking whether getenv must be declared""... $ac_c" 1>&6
5246 echo "configure:5247: checking whether getenv must be declared" >&5
5247 if eval "test \"`echo '$''{'bfd_cv_decl_needed_getenv'+set}'`\" = set"; then
5248 echo $ac_n "(cached) $ac_c" 1>&6
5250 cat > conftest.
$ac_ext <<EOF
5251 #line 5252 "configure"
5252 #include "confdefs.h"
5255 #ifdef HAVE_STRING_H
5258 #ifdef HAVE_STRINGS_H
5259 #include <strings.h>
5262 #ifdef HAVE_STDLIB_H
5265 #ifdef HAVE_UNISTD_H
5269 char *(*pfn) = (char *(*)) getenv
5272 if { (eval echo configure
:5273: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5274 bfd_cv_decl_needed_getenv
=no
5276 echo "configure: failed program was:" >&5
5277 cat conftest.
$ac_ext >&5
5279 bfd_cv_decl_needed_getenv
=yes
5284 echo "$ac_t""$bfd_cv_decl_needed_getenv" 1>&6
5285 if test $bfd_cv_decl_needed_getenv = yes; then
5286 cat >> confdefs.h
<<\EOF
5287 #define NEED_DECLARATION_GETENV 1
5292 echo $ac_n "checking whether environ must be declared""... $ac_c" 1>&6
5293 echo "configure:5294: checking whether environ must be declared" >&5
5294 if eval "test \"`echo '$''{'bfd_cv_decl_needed_environ'+set}'`\" = set"; then
5295 echo $ac_n "(cached) $ac_c" 1>&6
5297 cat > conftest.
$ac_ext <<EOF
5298 #line 5299 "configure"
5299 #include "confdefs.h"
5302 #ifdef HAVE_STRING_H
5305 #ifdef HAVE_STRINGS_H
5306 #include <strings.h>
5309 #ifdef HAVE_STDLIB_H
5312 #ifdef HAVE_UNISTD_H
5316 char *(*pfn) = (char *(*)) environ
5319 if { (eval echo configure
:5320: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5321 bfd_cv_decl_needed_environ
=no
5323 echo "configure: failed program was:" >&5
5324 cat conftest.
$ac_ext >&5
5326 bfd_cv_decl_needed_environ
=yes
5331 echo "$ac_t""$bfd_cv_decl_needed_environ" 1>&6
5332 if test $bfd_cv_decl_needed_environ = yes; then
5333 cat >> confdefs.h
<<\EOF
5334 #define NEED_DECLARATION_ENVIRON 1
5342 *-*-msdos* |
*-*-go32* |
*-*-mingw32* |
*-*-cygwin* |
*-*-windows*)
5343 cat >> confdefs.h
<<\EOF
5344 #define USE_BINARY_FOPEN 1
5349 # target-specific stuff:
5351 # Canonicalize the secondary target names.
5352 if test -n "$enable_targets"; then
5353 for targ
in `echo $enable_targets | sed 's/,/ /g'`
5355 result
=`$ac_config_sub $targ 2>/dev/null`
5356 if test -n "$result"; then
5357 canon_targets
="$canon_targets $result"
5359 # Allow targets that config.sub doesn't recognize, like "all".
5360 canon_targets
="$canon_targets $targ"
5376 for targ
in $target $canon_targets
5378 if test "x$targ" = "xall"; then
5380 BUILD_NLMCONV
='$(NLMCONV_PROG)$(EXEEXT)'
5381 BUILD_SRCONV
='$(SRCONV_PROG)'
5382 NLMCONV_DEFS
="-DNLMCONV_I386 -DNLMCONV_ALPHA -DNLMCONV_POWERPC -DNLMCONV_SPARC"
5385 i
[3456]86*-*-netware*)
5386 BUILD_NLMCONV
='$(NLMCONV_PROG)$(EXEEXT)'
5387 NLMCONV_DEFS
="$NLMCONV_DEFS -DNLMCONV_I386"
5390 BUILD_NLMCONV
='$(NLMCONV_PROG)$(EXEEXT)'
5391 NLMCONV_DEFS
="$NLMCONV_DEFS -DNLMCONV_ALPHA"
5393 powerpc
*-*-netware*)
5394 BUILD_NLMCONV
='$(NLMCONV_PROG)$(EXEEXT)'
5395 NLMCONV_DEFS
="$NLMCONV_DEFS -DNLMCONV_POWERPC"
5398 BUILD_NLMCONV
='$(NLMCONV_PROG)$(EXEEXT)'
5399 NLMCONV_DEFS
="$NLMCONV_DEFS -DNLMCONV_SPARC"
5403 *-*-hms*) BUILD_SRCONV
='$(SRCONV_PROG)' ;;
5407 BUILD_DLLTOOL
='$(DLLTOOL_PROG)$(EXEEXT)'
5408 DLLTOOL_DEFS
="$DLLTOOL_DEFS -DDLLTOOL_ARM_EPOC -DDLLTOOL_ARM"
5409 BUILD_WINDRES
='$(WINDRES_PROG)$(EXEEXT)'
5411 arm-
*pe
* | arm-
*-wince)
5412 BUILD_DLLTOOL
='$(DLLTOOL_PROG)$(EXEEXT)'
5413 DLLTOOL_DEFS
="$DLLTOOL_DEFS -DDLLTOOL_ARM"
5414 BUILD_WINDRES
='$(WINDRES_PROG)$(EXEEXT)'
5417 BUILD_DLLTOOL
='$(DLLTOOL_PROG)$(EXEEXT)'
5418 DLLTOOL_DEFS
="$DLLTOOL_DEFS -DDLLTOOL_ARM"
5419 BUILD_WINDRES
='$(WINDRES_PROG)$(EXEEXT)'
5421 arm
*-* | xscale-
* | strongarm-
* | d10v-
*)
5422 OBJDUMP_DEFS
="-DDISASSEMBLER_NEEDS_RELOCS"
5424 i
[3-6]86-*pe
* | i
[3-6]86-*-cygwin* | i
[3-6]86-*-mingw32*)
5425 BUILD_DLLTOOL
='$(DLLTOOL_PROG)$(EXEEXT)'
5426 DLLTOOL_DEFS
="$DLLTOOL_DEFS -DDLLTOOL_I386"
5427 BUILD_WINDRES
='$(WINDRES_PROG)$(EXEEXT)'
5428 BUILD_DLLWRAP
='$(DLLWRAP_PROG)$(EXEEXT)'
5431 BUILD_DLLTOOL
='$(DLLTOOL_PROG)'
5432 DLLTOOL_DEFS
="$DLLTOOL_DEFS -DDLLTOOL_I386"
5434 powerpc
*-*-*pe
* | powerpc
*-*-cygwin*)
5435 BUILD_DLLTOOL
='$(DLLTOOL_PROG)$(EXEEXT)'
5436 DLLTOOL_DEFS
="$DLLTOOL_DEFS -DDLLTOOL_PPC"
5437 BUILD_WINDRES
='$(WINDRES_PROG)$(EXEEXT)'
5440 BUILD_DLLTOOL
='$(DLLTOOL_PROG)$(EXEEXT)'
5441 DLLTOOL_DEFS
="$DLLTOOL_DEFS -DDLLTOOL_SH"
5442 BUILD_WINDRES
='$(WINDRES_PROG)$(EXEEXT)'
5445 BUILD_DLLTOOL
='$(DLLTOOL_PROG)$(EXEEXT)'
5446 DLLTOOL_DEFS
="$DLLTOOL_DEFS -DDLLTOOL_MIPS"
5447 BUILD_WINDRES
='$(WINDRES_PROG)$(EXEEXT)'
5450 BUILD_DLLTOOL
='$(DLLTOOL_PROG)$(EXEEXT)'
5451 DLLTOOL_DEFS
="$DLLTOOL_DEFS -DDLLTOOL_MCORE"
5452 BUILD_WINDRES
='$(WINDRES_PROG)$(EXEEXT)'
5455 BUILD_DLLTOOL
='$(DLLTOOL_PROG)$(EXEEXT)'
5456 DLLTOOL_DEFS
="$DLLTOOL_DEFS -DDLLTOOL_MCORE_ELF"
5472 cat >> confdefs.h
<<EOF
5473 #define TARGET "${target}"
5478 .
$srcdir/..
/bfd
/config.bfd
5479 if test "x$targ_underscore" = "xyes"; then
5487 cat > confcache
<<\EOF
5488 # This file is a shell script that caches the results of configure
5489 # tests run on this system so they can be shared between configure
5490 # scripts and configure runs. It is not useful on other systems.
5491 # If it contains results you don't want to keep, you may remove or edit it.
5493 # By default, configure uses ./config.cache as the cache file,
5494 # creating it if it does not exist already. You can give configure
5495 # the --cache-file=FILE option to use a different cache file; that is
5496 # what configure does when it calls configure scripts in
5497 # subdirectories, so they share the cache.
5498 # Giving --cache-file=/dev/null disables caching, for debugging configure.
5499 # config.status only pays attention to the cache file if you give it the
5500 # --recheck option to rerun configure.
5503 # The following way of writing the cache mishandles newlines in values,
5504 # but we know of no workaround that is simple, portable, and efficient.
5505 # So, don't put newlines in cache variables' values.
5506 # Ultrix sh set writes to stderr and can't be redirected directly,
5507 # and sets the high bit in the cache file unless we assign to the vars.
5509 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5511 # `set' does not quote correctly, so add quotes (double-quote substitution
5512 # turns \\\\ into \\, and sed turns \\ into \).
5514 -e "s/'/'\\\\''/g" \
5515 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
5518 # `set' quotes correctly as required by POSIX, so do not add quotes.
5519 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
5522 if cmp -s $cache_file confcache
; then
5525 if test -w $cache_file; then
5526 echo "updating cache $cache_file"
5527 cat confcache
> $cache_file
5529 echo "not updating unwritable cache $cache_file"
5534 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
5536 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
5537 # Let make expand exec_prefix.
5538 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
5540 # Any assignment to VPATH causes Sun make to only execute
5541 # the first set of double-colon rules, so remove it if not needed.
5542 # If there is a colon in the path, we need to keep it.
5543 if test "x$srcdir" = x.
; then
5544 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
5547 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
5549 DEFS
=-DHAVE_CONFIG_H
5551 # Without the "./", some shells look in PATH for config.status.
5552 : ${CONFIG_STATUS=./config.status}
5554 echo creating
$CONFIG_STATUS
5555 rm -f $CONFIG_STATUS
5556 cat > $CONFIG_STATUS <<EOF
5558 # Generated automatically by configure.
5559 # Run this file to recreate the current configuration.
5560 # This directory was configured as follows,
5561 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5563 # $0 $ac_configure_args
5565 # Compiler output produced by configure, useful for debugging
5566 # configure, is in ./config.log if it exists.
5568 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
5571 case "\$ac_option" in
5572 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5573 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
5574 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
5575 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
5576 echo "$CONFIG_STATUS generated by autoconf version 2.13"
5578 -help | --help | --hel | --he | --h)
5579 echo "\$ac_cs_usage"; exit 0 ;;
5580 *) echo "\$ac_cs_usage"; exit 1 ;;
5584 ac_given_srcdir=$srcdir
5585 ac_given_INSTALL="$INSTALL"
5587 trap 'rm -fr `echo "Makefile po/Makefile.in:po/Make-in config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
5589 cat >> $CONFIG_STATUS <<EOF
5591 # Protect against being on the right side of a sed subst in config.status.
5592 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
5593 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
5597 s%@CFLAGS@%$CFLAGS%g
5598 s%@CPPFLAGS@%$CPPFLAGS%g
5599 s%@CXXFLAGS@%$CXXFLAGS%g
5600 s%@FFLAGS@%$FFLAGS%g
5602 s%@LDFLAGS@%$LDFLAGS%g
5604 s%@exec_prefix@%$exec_prefix%g
5605 s%@prefix@%$prefix%g
5606 s%@program_transform_name@%$program_transform_name%g
5607 s%@bindir@%$bindir%g
5608 s%@sbindir@%$sbindir%g
5609 s%@libexecdir@%$libexecdir%g
5610 s%@datadir@%$datadir%g
5611 s%@sysconfdir@%$sysconfdir%g
5612 s%@sharedstatedir@%$sharedstatedir%g
5613 s%@localstatedir@%$localstatedir%g
5614 s%@libdir@%$libdir%g
5615 s%@includedir@%$includedir%g
5616 s%@oldincludedir@%$oldincludedir%g
5617 s%@infodir@%$infodir%g
5618 s%@mandir@%$mandir%g
5620 s%@host_alias@%$host_alias%g
5621 s%@host_cpu@%$host_cpu%g
5622 s%@host_vendor@%$host_vendor%g
5623 s%@host_os@%$host_os%g
5624 s%@target@%$target%g
5625 s%@target_alias@%$target_alias%g
5626 s%@target_cpu@%$target_cpu%g
5627 s%@target_vendor@%$target_vendor%g
5628 s%@target_os@%$target_os%g
5630 s%@build_alias@%$build_alias%g
5631 s%@build_cpu@%$build_cpu%g
5632 s%@build_vendor@%$build_vendor%g
5633 s%@build_os@%$build_os%g
5634 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
5635 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
5636 s%@INSTALL_DATA@%$INSTALL_DATA%g
5637 s%@PACKAGE@%$PACKAGE%g
5638 s%@VERSION@%$VERSION%g
5639 s%@ACLOCAL@%$ACLOCAL%g
5640 s%@AUTOCONF@%$AUTOCONF%g
5641 s%@AUTOMAKE@%$AUTOMAKE%g
5642 s%@AUTOHEADER@%$AUTOHEADER%g
5643 s%@MAKEINFO@%$MAKEINFO%g
5644 s%@SET_MAKE@%$SET_MAKE%g
5647 s%@OBJEXT@%$OBJEXT%g
5648 s%@EXEEXT@%$EXEEXT%g
5649 s%@RANLIB@%$RANLIB%g
5651 s%@LIBTOOL@%$LIBTOOL%g
5652 s%@WARN_CFLAGS@%$WARN_CFLAGS%g
5655 s%@LEXLIB@%$LEXLIB%g
5657 s%@LEX_OUTPUT_ROOT@%$LEX_OUTPUT_ROOT%g
5658 s%@ALLOCA@%$ALLOCA%g
5659 s%@USE_NLS@%$USE_NLS%g
5660 s%@MSGFMT@%$MSGFMT%g
5661 s%@GMSGFMT@%$GMSGFMT%g
5662 s%@XGETTEXT@%$XGETTEXT%g
5663 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
5664 s%@CATALOGS@%$CATALOGS%g
5665 s%@CATOBJEXT@%$CATOBJEXT%g
5666 s%@DATADIRNAME@%$DATADIRNAME%g
5667 s%@GMOFILES@%$GMOFILES%g
5668 s%@INSTOBJEXT@%$INSTOBJEXT%g
5669 s%@INTLDEPS@%$INTLDEPS%g
5670 s%@INTLLIBS@%$INTLLIBS%g
5671 s%@INTLOBJS@%$INTLOBJS%g
5672 s%@POFILES@%$POFILES%g
5674 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
5676 s%@GT_YES@%$GT_YES%g
5677 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
5679 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
5680 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
5682 s%@HDEFINES@%$HDEFINES%g
5684 s%@CC_FOR_BUILD@%$CC_FOR_BUILD%g
5685 s%@EXEEXT_FOR_BUILD@%$EXEEXT_FOR_BUILD%g
5686 s%@DEMANGLER_NAME@%$DEMANGLER_NAME%g
5687 s%@NLMCONV_DEFS@%$NLMCONV_DEFS%g
5688 s%@BUILD_NLMCONV@%$BUILD_NLMCONV%g
5689 s%@BUILD_SRCONV@%$BUILD_SRCONV%g
5690 s%@BUILD_DLLTOOL@%$BUILD_DLLTOOL%g
5691 s%@DLLTOOL_DEFS@%$DLLTOOL_DEFS%g
5692 s%@BUILD_WINDRES@%$BUILD_WINDRES%g
5693 s%@BUILD_DLLWRAP@%$BUILD_DLLWRAP%g
5694 s%@BUILD_MISC@%$BUILD_MISC%g
5695 s%@OBJDUMP_DEFS@%$OBJDUMP_DEFS%g
5696 s%@UNDERSCORE@%$UNDERSCORE%g
5701 cat >> $CONFIG_STATUS <<\EOF
5703 # Split the substitutions into bite-sized pieces for seds with
5704 # small command number limits, like on Digital OSF/1 and HP-UX.
5705 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
5706 ac_file
=1 # Number of current file.
5707 ac_beg
=1 # First line for current file.
5708 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
5711 while $ac_more_lines; do
5712 if test $ac_beg -gt 1; then
5713 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
5715 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
5717 if test ! -s conftest.s
$ac_file; then
5719 rm -f conftest.s
$ac_file
5721 if test -z "$ac_sed_cmds"; then
5722 ac_sed_cmds
="sed -f conftest.s$ac_file"
5724 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
5726 ac_file
=`expr $ac_file + 1`
5728 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
5731 if test -z "$ac_sed_cmds"; then
5736 cat >> $CONFIG_STATUS <<EOF
5738 CONFIG_FILES=\${CONFIG_FILES-"Makefile po/Makefile.in:po/Make-in"}
5740 cat >> $CONFIG_STATUS <<\EOF
5741 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
5742 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5744 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
5745 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
5746 *) ac_file_in
="${ac_file}.in" ;;
5749 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
5751 # Remove last slash and all that follows it. Not all systems have dirname.
5752 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5753 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
5754 # The file is in a subdirectory.
5755 test ! -d "$ac_dir" && mkdir
"$ac_dir"
5756 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
5757 # A "../" for each directory in $ac_dir_suffix.
5758 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
5760 ac_dir_suffix
= ac_dots
=
5763 case "$ac_given_srcdir" in
5765 if test -z "$ac_dots"; then top_srcdir
=.
5766 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
5767 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
5769 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
5770 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
5773 case "$ac_given_INSTALL" in
5774 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
5775 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
5778 echo creating
"$ac_file"
5780 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
5782 *Makefile
*) ac_comsub
="1i\\
5783 # $configure_input" ;;
5787 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5789 s%@configure_input@%$configure_input%g
5790 s%@srcdir@%$srcdir%g
5791 s%@top_srcdir@%$top_srcdir%g
5792 s%@INSTALL@%$INSTALL%g
5793 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
5797 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5798 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5800 # ac_d sets the value in "#define NAME VALUE" lines.
5801 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5802 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
5805 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
5806 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5807 ac_uB
='\([ ]\)%\1#\2define\3'
5810 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5811 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5812 ac_eB
='$%\1#\2define\3'
5816 if test "${CONFIG_HEADERS+set}" != set; then
5818 cat >> $CONFIG_STATUS <<EOF
5819 CONFIG_HEADERS="config.h:config.in"
5821 cat >> $CONFIG_STATUS <<\EOF
5823 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
5824 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5826 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
5827 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
5828 *) ac_file_in
="${ac_file}.in" ;;
5831 echo creating
$ac_file
5833 rm -f conftest.frag conftest.
in conftest.out
5834 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5835 cat $ac_file_inputs > conftest.
in
5839 # Transform confdefs.h into a sed script conftest.vals that substitutes
5840 # the proper values into config.h.in to produce config.h. And first:
5841 # Protect against being on the right side of a sed subst in config.status.
5842 # Protect against being in an unquoted here document in config.status.
5844 cat > conftest.hdr
<<\EOF
5847 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
5851 sed -n -f conftest.hdr confdefs.h > conftest.vals
5854 # This sed command replaces #undef with comments. This is necessary, for
5855 # example, in the case of _POSIX_SOURCE, which is predefined and required
5856 # on some systems where configure will not decide to define it.
5857 cat >> conftest.vals <<\EOF
5858 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
5861 # Break up conftest.vals because some shells have a limit on
5862 # the size of here documents, and old seds have small limits too.
5867 ac_lines=`grep -c . conftest.vals
`
5868 # grep -c gives empty output for an empty file on some AIX systems.
5869 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
5870 # Write a limited-size here document to conftest.frag.
5871 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
5872 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
5874 sed -f conftest.frag conftest.in > conftest.out
5876 mv conftest.out conftest.in
5878 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
5880 mv conftest.tail conftest.vals
5884 cat >> $CONFIG_STATUS <<\EOF
5885 rm -f conftest.frag conftest.h
5886 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
5887 cat conftest.in >> conftest.h
5889 if cmp -s $ac_file conftest.h 2>/dev/null; then
5890 echo "$ac_file is unchanged"
5893 # Remove last slash and all that follows it. Not all systems have dirname.
5894 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
5895 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5896 # The file is in a subdirectory.
5897 test ! -d "$ac_dir" && mkdir "$ac_dir"
5900 mv conftest.h $ac_file
5905 cat >> $CONFIG_STATUS <<EOF
5909 cat >> $CONFIG_STATUS <<\EOF
5910 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
5912 case "x$CONFIG_FILES" in
5913 *) sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile ;;
5918 chmod +x $CONFIG_STATUS
5919 rm -fr confdefs* $ac_clean_files
5920 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1