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-multilib build many library versions (default)"
17 --enable-maintainer-mode enable make rules and dependencies not useful
18 (and sometimes confusing) to the casual installer"
20 --enable-shared[=PKGS] build shared libraries [default=yes]"
22 --enable-static[=PKGS] build static libraries [default=yes]"
24 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
26 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
28 --disable-libtool-lock avoid locking (might break parallel builds)"
30 --with-pic try to use only PIC/non-PIC objects [default=use both]"
32 --with-target-subdir=SUBDIR
33 configuring with a cross compiler"
35 --with-cross-host=HOST configuring with a cross compiler"
37 --enable-maintainer-mode enable make rules and dependencies not useful
38 (and sometimes confusing) to the casual installer"
40 --enable-parallel-mark parallelize marking and free list construction"
42 --with-ecos enable runtime eCos target support"
44 --enable-shared[=PKGS] build shared libraries [default=no]"
46 --enable-full-debug include full support for pointer backtracing etc."
48 # Initialize some variables set by options.
49 # The variables have the same names as the options, with
50 # dashes changed to underlines.
52 cache_file
=.
/config.cache
61 program_transform_name
=s
,x
,x
,
70 bindir
='${exec_prefix}/bin'
71 sbindir
='${exec_prefix}/sbin'
72 libexecdir
='${exec_prefix}/libexec'
73 datadir
='${prefix}/share'
74 sysconfdir
='${prefix}/etc'
75 sharedstatedir
='${prefix}/com'
76 localstatedir
='${prefix}/var'
77 libdir
='${exec_prefix}/lib'
78 includedir
='${prefix}/include'
79 oldincludedir
='/usr/include'
80 infodir
='${prefix}/info'
81 mandir
='${prefix}/man'
83 # Initialize some other variables.
86 SHELL
=${CONFIG_SHELL-/bin/sh}
87 # Maximum number of lines to put in a shell here document.
94 # If the previous option needs an argument, assign it.
95 if test -n "$ac_prev"; then
96 eval "$ac_prev=\$ac_option"
102 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
106 # Accept the important Cygnus configure options, so we can diagnose typos.
110 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
112 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
113 bindir
="$ac_optarg" ;;
115 -build |
--build |
--buil |
--bui |
--bu)
117 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
118 build
="$ac_optarg" ;;
120 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
121 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
122 ac_prev
=cache_file
;;
123 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
124 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
125 cache_file
="$ac_optarg" ;;
127 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
129 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
131 datadir
="$ac_optarg" ;;
133 -disable-* |
--disable-*)
134 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
135 # Reject names that are not valid shell variable names.
136 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
137 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
139 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
140 eval "enable_${ac_feature}=no" ;;
142 -enable-* |
--enable-*)
143 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
144 # Reject names that are not valid shell variable names.
145 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
146 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
148 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
153 eval "enable_${ac_feature}='$ac_optarg'" ;;
155 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
156 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
157 |
--exec |
--exe |
--ex)
158 ac_prev
=exec_prefix
;;
159 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
160 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
161 |
--exec=* |
--exe=* |
--ex=*)
162 exec_prefix
="$ac_optarg" ;;
164 -gas |
--gas |
--ga |
--g)
165 # Obsolete; use --with-gas.
168 -help |
--help |
--hel |
--he)
169 # Omit some internal or obsolete options to make the list less imposing.
170 # This message is too long to be a string in the A/UX 3.1 sh.
172 Usage: configure [options] [host]
173 Options: [defaults in brackets after descriptions]
175 --cache-file=FILE cache test results in FILE
176 --help print this message
177 --no-create do not create output files
178 --quiet, --silent do not print \`checking...' messages
179 --site-file=FILE use FILE as the site file
180 --version print the version of autoconf that created configure
181 Directory and file names:
182 --prefix=PREFIX install architecture-independent files in PREFIX
184 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
186 --bindir=DIR user executables in DIR [EPREFIX/bin]
187 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
188 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
189 --datadir=DIR read-only architecture-independent data in DIR
191 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
192 --sharedstatedir=DIR modifiable architecture-independent data in DIR
194 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
195 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
196 --includedir=DIR C header files in DIR [PREFIX/include]
197 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
198 --infodir=DIR info documentation in DIR [PREFIX/info]
199 --mandir=DIR man documentation in DIR [PREFIX/man]
200 --srcdir=DIR find the sources in DIR [configure dir or ..]
201 --program-prefix=PREFIX prepend PREFIX to installed program names
202 --program-suffix=SUFFIX append SUFFIX to installed program names
203 --program-transform-name=PROGRAM
204 run sed PROGRAM on installed program names
208 --build=BUILD configure for building on BUILD [BUILD=HOST]
209 --host=HOST configure for HOST [guessed]
210 --target=TARGET configure for TARGET [TARGET=HOST]
211 Features and packages:
212 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
213 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
214 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
215 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
216 --x-includes=DIR X include files are in DIR
217 --x-libraries=DIR X library files are in DIR
219 if test -n "$ac_help"; then
220 echo "--enable and --with options recognized:$ac_help"
224 -host |
--host |
--hos |
--ho)
226 -host=* |
--host=* |
--hos=* |
--ho=*)
229 -includedir |
--includedir |
--includedi |
--included |
--include \
230 |
--includ |
--inclu |
--incl |
--inc)
231 ac_prev
=includedir
;;
232 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
233 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
234 includedir
="$ac_optarg" ;;
236 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
238 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
239 infodir
="$ac_optarg" ;;
241 -libdir |
--libdir |
--libdi |
--libd)
243 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
244 libdir
="$ac_optarg" ;;
246 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
247 |
--libexe |
--libex |
--libe)
248 ac_prev
=libexecdir
;;
249 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
250 |
--libexe=* |
--libex=* |
--libe=*)
251 libexecdir
="$ac_optarg" ;;
253 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
254 |
--localstate |
--localstat |
--localsta |
--localst \
255 |
--locals |
--local |
--loca |
--loc |
--lo)
256 ac_prev
=localstatedir
;;
257 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
258 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
259 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
260 localstatedir
="$ac_optarg" ;;
262 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
264 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
265 mandir
="$ac_optarg" ;;
268 # Obsolete; use --without-fp.
271 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
275 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
276 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
279 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
280 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
281 |
--oldin |
--oldi |
--old |
--ol |
--o)
282 ac_prev
=oldincludedir
;;
283 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
284 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
285 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
286 oldincludedir
="$ac_optarg" ;;
288 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
290 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
291 prefix
="$ac_optarg" ;;
293 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
294 |
--program-pre |
--program-pr |
--program-p)
295 ac_prev
=program_prefix
;;
296 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
297 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
298 program_prefix
="$ac_optarg" ;;
300 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
301 |
--program-suf |
--program-su |
--program-s)
302 ac_prev
=program_suffix
;;
303 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
304 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
305 program_suffix
="$ac_optarg" ;;
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 ac_prev
=program_transform_name
;;
315 -program-transform-name=* |
--program-transform-name=* \
316 |
--program-transform-nam=* |
--program-transform-na=* \
317 |
--program-transform-n=* |
--program-transform-=* \
318 |
--program-transform=* |
--program-transfor=* \
319 |
--program-transfo=* |
--program-transf=* \
320 |
--program-trans=* |
--program-tran=* \
321 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
322 program_transform_name
="$ac_optarg" ;;
324 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
325 |
-silent |
--silent |
--silen |
--sile |
--sil)
328 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
330 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
332 sbindir
="$ac_optarg" ;;
334 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
335 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
336 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
338 ac_prev
=sharedstatedir
;;
339 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
340 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
341 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
343 sharedstatedir
="$ac_optarg" ;;
345 -site |
--site |
--sit)
347 -site=* |
--site=* |
--sit=*)
350 -site-file |
--site-file |
--site-fil |
--site-fi |
--site-f)
352 -site-file=* |
--site-file=* |
--site-fil=* |
--site-fi=* |
--site-f=*)
353 sitefile
="$ac_optarg" ;;
355 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
357 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
358 srcdir
="$ac_optarg" ;;
360 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
361 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
362 ac_prev
=sysconfdir
;;
363 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
364 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
365 sysconfdir
="$ac_optarg" ;;
367 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
369 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
370 target
="$ac_optarg" ;;
372 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
375 -version |
--version |
--versio |
--versi |
--vers)
376 echo "configure generated by autoconf version 2.13"
380 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
381 # Reject names that are not valid shell variable names.
382 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
383 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
385 ac_package
=`echo $ac_package| sed 's/-/_/g'`
390 eval "with_${ac_package}='$ac_optarg'" ;;
392 -without-* |
--without-*)
393 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
394 # Reject names that are not valid shell variable names.
395 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
396 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
398 ac_package
=`echo $ac_package| sed 's/-/_/g'`
399 eval "with_${ac_package}=no" ;;
402 # Obsolete; use --with-x.
405 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
406 |
--x-incl |
--x-inc |
--x-in |
--x-i)
407 ac_prev
=x_includes
;;
408 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
409 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
410 x_includes
="$ac_optarg" ;;
412 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
413 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
414 ac_prev
=x_libraries
;;
415 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
416 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
417 x_libraries
="$ac_optarg" ;;
419 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
423 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
424 echo "configure: warning: $ac_option: invalid host type" 1>&2
426 if test "x$nonopt" != xNONE
; then
427 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
435 if test -n "$ac_prev"; then
436 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
439 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
441 # File descriptor usage:
444 # 2 errors and warnings
445 # 3 some systems may open it to /dev/tty
446 # 4 used on the Kubota Titan
447 # 6 checking for... messages and results
448 # 5 compiler messages saved in config.log
449 if test "$silent" = yes; then
457 This file contains any messages produced by compilers while
458 running configure, to aid debugging if configure makes a mistake.
461 # Strip out --no-create and --no-recursion so they do not pile up.
462 # Also quote any args containing shell metacharacters.
467 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
468 |
--no-cr |
--no-c) ;;
469 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
470 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
471 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
472 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
473 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
478 # Only set these to C if already set. These must not be set unconditionally
479 # because not all systems understand e.g. LANG=C (notably SCO).
480 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
481 # Non-C LC_CTYPE values break the ctype check.
482 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
483 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
484 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
485 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
487 # confdefs.h avoids OS command line length limits that DEFS can exceed.
488 rm -rf conftest
* confdefs.h
489 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
492 # A filename unique to this package, relative to the directory that
493 # configure is in, which we can look for to find out if srcdir is correct.
494 ac_unique_file
=gcj_mlc.c
496 # Find the source files, if location was not specified.
497 if test -z "$srcdir"; then
498 ac_srcdir_defaulted
=yes
499 # Try the directory containing this script, then its parent.
501 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
502 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
504 if test ! -r $srcdir/$ac_unique_file; then
508 ac_srcdir_defaulted
=no
510 if test ! -r $srcdir/$ac_unique_file; then
511 if test "$ac_srcdir_defaulted" = yes; then
512 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
514 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
517 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
519 # Prefer explicitly selected file to automatically selected ones.
520 if test -z "$sitefile"; then
521 if test -z "$CONFIG_SITE"; then
522 if test "x$prefix" != xNONE
; then
523 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
525 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
529 CONFIG_SITE
="$sitefile"
531 for ac_site_file
in $CONFIG_SITE; do
532 if test -r "$ac_site_file"; then
533 echo "loading site script $ac_site_file"
538 if test -r "$cache_file"; then
539 echo "loading cache $cache_file"
542 echo "creating cache $cache_file"
547 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
548 ac_cpp
='$CPP $CPPFLAGS'
549 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
550 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
551 cross_compiling
=$ac_cv_prog_cc_cross
555 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
556 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
557 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
564 ac_n
= ac_c
='\c' ac_t
=
569 # This works around the fact that libtool configuration may change LD
570 # for this particular configuration, but some shells, instead of
571 # keeping the changes in LD private, export them just because LD is
573 ORIGINAL_LD_FOR_MULTILIBS
=$LD
576 for ac_dir
in .
$srcdir/.
; do
577 if test -f $ac_dir/install-sh
; then
579 ac_install_sh
="$ac_aux_dir/install-sh -c"
581 elif test -f $ac_dir/install.sh
; then
583 ac_install_sh
="$ac_aux_dir/install.sh -c"
587 if test -z "$ac_aux_dir"; then
588 { echo "configure: error: can not find install-sh or install.sh in . $srcdir/." 1>&2; exit 1; }
590 ac_config_guess
=$ac_aux_dir/config.guess
591 ac_config_sub
=$ac_aux_dir/config.sub
592 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
595 # Find a good install program. We prefer a C program (faster),
596 # so one script is as good as another. But avoid the broken or
597 # incompatible versions:
598 # SysV /etc/install, /usr/sbin/install
599 # SunOS /usr/etc/install
602 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
603 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
604 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
605 # ./install, which can be erroneously created by make from ./install.sh.
606 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
607 echo "configure:608: checking for a BSD compatible install" >&5
608 if test -z "$INSTALL"; then
609 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
610 echo $ac_n "(cached) $ac_c" 1>&6
612 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
613 for ac_dir
in $PATH; do
614 # Account for people who put trailing slashes in PATH elements.
616 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
618 # OSF1 and SCO ODT 3.0 have their own names for install.
619 # Don't use installbsd from OSF since it installs stuff as root
621 for ac_prog
in ginstall scoinst
install; do
622 if test -f $ac_dir/$ac_prog; then
623 if test $ac_prog = install &&
624 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
625 # AIX install. It has an incompatible calling convention.
628 ac_cv_path_install
="$ac_dir/$ac_prog -c"
639 if test "${ac_cv_path_install+set}" = set; then
640 INSTALL
="$ac_cv_path_install"
642 # As a last resort, use the slow shell script. We don't cache a
643 # path for INSTALL within a source directory, because that will
644 # break other packages using the cache if that directory is
645 # removed, or if the path is relative.
646 INSTALL
="$ac_install_sh"
649 echo "$ac_t""$INSTALL" 1>&6
651 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
652 # It thinks the first close brace ends the variable substitution.
653 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
655 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
657 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
659 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
660 echo "configure:661: checking whether build environment is sane" >&5
663 echo timestamp
> conftestfile
664 # Do `set' in a subshell so we don't clobber the current shell's
665 # arguments. Must try -L first in case configure is actually a
666 # symlink; some systems play weird games with the mod time of symlinks
667 # (eg FreeBSD returns the mod time of the symlink's containing
670 set X
`ls -Lt $srcdir/configure conftestfile 2> /dev/null`
671 if test "$*" = "X"; then
673 set X
`ls -t $srcdir/configure conftestfile`
675 if test "$*" != "X $srcdir/configure conftestfile" \
676 && test "$*" != "X conftestfile $srcdir/configure"; then
678 # If neither matched, then we have a broken ls. This can happen
679 # if, for instance, CONFIG_SHELL is bash and it inherits a
680 # broken ls alias from the environment. This has actually
681 # happened. Such a system could not be considered "sane".
682 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
683 alias in your environment" 1>&2; exit 1; }
686 test "$2" = conftestfile
692 { echo "configure: error: newly created file is older than distributed files!
693 Check your system clock" 1>&2; exit 1; }
696 echo "$ac_t""yes" 1>&6
697 if test "$program_transform_name" = s
,x
,x
,; then
698 program_transform_name
=
700 # Double any \ or $. echo might interpret backslashes.
701 cat <<\EOF_SED
> conftestsed
702 s
,\\,\\\\,g
; s
,\$
,$$
,g
704 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
707 test "$program_prefix" != NONE
&&
708 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
709 # Use a double $ so make ignores it.
710 test "$program_suffix" != NONE
&&
711 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
713 # sed with no file args requires a program.
714 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
716 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
717 echo "configure:718: checking whether ${MAKE-make} sets \${MAKE}" >&5
718 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
719 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
720 echo $ac_n "(cached) $ac_c" 1>&6
722 cat > conftestmake
<<\EOF
724 @
echo 'ac_maketemp="${MAKE}"'
726 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
727 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
728 if test -n "$ac_maketemp"; then
729 eval ac_cv_prog_make_
${ac_make}_set
=yes
731 eval ac_cv_prog_make_
${ac_make}_set
=no
735 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
736 echo "$ac_t""yes" 1>&6
739 echo "$ac_t""no" 1>&6
740 SET_MAKE
="MAKE=${MAKE-make}"
743 if test $host != $build; then
744 ac_tool_prefix
=${host_alias}-
749 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
750 echo "configure:751: checking for Cygwin environment" >&5
751 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
752 echo $ac_n "(cached) $ac_c" 1>&6
754 cat > conftest.
$ac_ext <<EOF
755 #line 756 "configure"
756 #include "confdefs.h"
761 #define __CYGWIN__ __CYGWIN32__
766 if { (eval echo configure
:767: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
770 echo "configure: failed program was:" >&5
771 cat conftest.
$ac_ext >&5
779 echo "$ac_t""$ac_cv_cygwin" 1>&6
781 test "$ac_cv_cygwin" = yes && CYGWIN
=yes
782 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
783 echo "configure:784: checking for mingw32 environment" >&5
784 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
785 echo $ac_n "(cached) $ac_c" 1>&6
787 cat > conftest.
$ac_ext <<EOF
788 #line 789 "configure"
789 #include "confdefs.h"
795 if { (eval echo configure
:796: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
799 echo "configure: failed program was:" >&5
800 cat conftest.
$ac_ext >&5
808 echo "$ac_t""$ac_cv_mingw32" 1>&6
810 test "$ac_cv_mingw32" = yes && MINGW32
=yes
812 # Check whether --enable-multilib or --disable-multilib was given.
813 if test "${enable_multilib+set}" = set; then
814 enableval
="$enable_multilib"
815 case "${enableval}" in
818 *) { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
825 if test "${srcdir}" = "."; then
826 if test "${with_target_subdir}" != "." -a -n "${with_target_subdir}"; then
827 gc_basedir
="${srcdir}/${with_multisrctop}../."
829 gc_basedir
="${srcdir}/${with_multisrctop}."
832 gc_basedir
="${srcdir}/."
836 for ac_dir
in $gc_basedir/..
$srcdir/$gc_basedir/..
; do
837 if test -f $ac_dir/install-sh
; then
839 ac_install_sh
="$ac_aux_dir/install-sh -c"
841 elif test -f $ac_dir/install.sh
; then
843 ac_install_sh
="$ac_aux_dir/install.sh -c"
847 if test -z "$ac_aux_dir"; then
848 { echo "configure: error: can not find install-sh or install.sh in $gc_basedir/.. $srcdir/$gc_basedir/.." 1>&2; exit 1; }
850 ac_config_guess
=$ac_aux_dir/config.guess
851 ac_config_sub
=$ac_aux_dir/config.sub
852 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
855 # This overrides the previous occurrence for automake, but not for
856 # autoconf, which is exactly what we want.
858 for ac_dir
in ..
$srcdir/..
; do
859 if test -f $ac_dir/install-sh
; then
861 ac_install_sh
="$ac_aux_dir/install-sh -c"
863 elif test -f $ac_dir/install.sh
; then
865 ac_install_sh
="$ac_aux_dir/install.sh -c"
869 if test -z "$ac_aux_dir"; then
870 { echo "configure: error: can not find install-sh or install.sh in .. $srcdir/.." 1>&2; exit 1; }
872 ac_config_guess
=$ac_aux_dir/config.guess
873 ac_config_sub
=$ac_aux_dir/config.sub
874 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
879 # Do some error checking and defaulting for the host and target type.
881 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
884 # 1. You are not allowed to specify --host, --target, and nonopt at the
886 # 2. Host defaults to nonopt.
887 # 3. If nonopt is not specified, then host defaults to the current host,
888 # as determined by config.guess.
889 # 4. Target and build default to nonopt.
890 # 5. If nonopt is not specified, then target and build default to host.
892 # The aliases save the names the user supplied, while $host etc.
893 # will get canonicalized.
894 case $host---$target---$nonopt in
895 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
896 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
900 # Make sure we can run config.sub.
901 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
902 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
905 echo $ac_n "checking host system type""... $ac_c" 1>&6
906 echo "configure:907: checking host system type" >&5
909 case "$host_alias" in
913 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
914 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
916 *) host_alias
=$nonopt ;;
920 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
921 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
922 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
923 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
924 echo "$ac_t""$host" 1>&6
926 echo $ac_n "checking target system type""... $ac_c" 1>&6
927 echo "configure:928: checking target system type" >&5
930 case "$target_alias" in
933 NONE
) target_alias
=$host_alias ;;
934 *) target_alias
=$nonopt ;;
938 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
939 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
940 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
941 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
942 echo "$ac_t""$target" 1>&6
944 echo $ac_n "checking build system type""... $ac_c" 1>&6
945 echo "configure:946: checking build system type" >&5
948 case "$build_alias" in
951 NONE
) build_alias
=$host_alias ;;
952 *) build_alias
=$nonopt ;;
956 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
957 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
958 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
959 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
960 echo "$ac_t""$build" 1>&6
962 test "$host_alias" != "$target_alias" &&
963 test "$program_prefix$program_suffix$program_transform_name" = \
965 program_prefix
=${target_alias}-
968 # This works around an automake problem.
969 mkinstalldirs
="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs"
977 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status
; then
978 { echo "configure: error: source directory already configured; run "make distclean
" there first" 1>&2; exit 1; }
983 missing_dir
=`cd $ac_aux_dir && pwd`
984 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
985 echo "configure:986: checking for working aclocal" >&5
986 # Run test in a subshell; some versions of sh will print an error if
987 # an executable is not found, even if stderr is redirected.
988 # Redirect stdin to placate older versions of autoconf. Sigh.
989 if (aclocal
--version) < /dev
/null
> /dev
/null
2>&1; then
991 echo "$ac_t""found" 1>&6
993 ACLOCAL
="$missing_dir/missing aclocal"
994 echo "$ac_t""missing" 1>&6
997 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
998 echo "configure:999: checking for working autoconf" >&5
999 # Run test in a subshell; some versions of sh will print an error if
1000 # an executable is not found, even if stderr is redirected.
1001 # Redirect stdin to placate older versions of autoconf. Sigh.
1002 if (autoconf
--version) < /dev
/null
> /dev
/null
2>&1; then
1004 echo "$ac_t""found" 1>&6
1006 AUTOCONF
="$missing_dir/missing autoconf"
1007 echo "$ac_t""missing" 1>&6
1010 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1011 echo "configure:1012: checking for working automake" >&5
1012 # Run test in a subshell; some versions of sh will print an error if
1013 # an executable is not found, even if stderr is redirected.
1014 # Redirect stdin to placate older versions of autoconf. Sigh.
1015 if (automake
--version) < /dev
/null
> /dev
/null
2>&1; then
1017 echo "$ac_t""found" 1>&6
1019 AUTOMAKE
="$missing_dir/missing automake"
1020 echo "$ac_t""missing" 1>&6
1023 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1024 echo "configure:1025: checking for working autoheader" >&5
1025 # Run test in a subshell; some versions of sh will print an error if
1026 # an executable is not found, even if stderr is redirected.
1027 # Redirect stdin to placate older versions of autoconf. Sigh.
1028 if (autoheader
--version) < /dev
/null
> /dev
/null
2>&1; then
1029 AUTOHEADER
=autoheader
1030 echo "$ac_t""found" 1>&6
1032 AUTOHEADER
="$missing_dir/missing autoheader"
1033 echo "$ac_t""missing" 1>&6
1036 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1037 echo "configure:1038: checking for working makeinfo" >&5
1038 # Run test in a subshell; some versions of sh will print an error if
1039 # an executable is not found, even if stderr is redirected.
1040 # Redirect stdin to placate older versions of autoconf. Sigh.
1041 if (makeinfo
--version) < /dev
/null
> /dev
/null
2>&1; then
1043 echo "$ac_t""found" 1>&6
1045 MAKEINFO
="$missing_dir/missing makeinfo"
1046 echo "$ac_t""missing" 1>&6
1051 # FIXME: We temporarily define our own version of AC_PROG_CC. This is
1052 # copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS. We
1053 # are probably using a cross compiler, which will not be able to fully
1054 # link an executable. This should really be fixed in autoconf
1060 # Extract the first word of "gcc", so it can be a program name with args.
1061 set dummy gcc
; ac_word
=$2
1062 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1063 echo "configure:1064: checking for $ac_word" >&5
1064 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1065 echo $ac_n "(cached) $ac_c" 1>&6
1067 if test -n "$CC"; then
1068 ac_cv_prog_CC
="$CC" # Let the user override the test.
1070 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1072 for ac_dir
in $ac_dummy; do
1073 test -z "$ac_dir" && ac_dir
=.
1074 if test -f $ac_dir/$ac_word; then
1083 if test -n "$CC"; then
1084 echo "$ac_t""$CC" 1>&6
1086 echo "$ac_t""no" 1>&6
1089 if test -z "$CC"; then
1090 # Extract the first word of "cc", so it can be a program name with args.
1091 set dummy cc
; ac_word
=$2
1092 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1093 echo "configure:1094: checking for $ac_word" >&5
1094 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1095 echo $ac_n "(cached) $ac_c" 1>&6
1097 if test -n "$CC"; then
1098 ac_cv_prog_CC
="$CC" # Let the user override the test.
1100 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1103 for ac_dir
in $ac_dummy; do
1104 test -z "$ac_dir" && ac_dir
=.
1105 if test -f $ac_dir/$ac_word; then
1106 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1107 ac_prog_rejected
=yes
1115 if test $ac_prog_rejected = yes; then
1116 # We found a bogon in the path, so make sure we never use it.
1117 set dummy
$ac_cv_prog_CC
1119 if test $# -gt 0; then
1120 # We chose a different compiler from the bogus one.
1121 # However, it has the same basename, so the bogon will be chosen
1122 # first if we set CC to just the basename; use the full file name.
1124 set dummy
"$ac_dir/$ac_word" "$@"
1132 if test -n "$CC"; then
1133 echo "$ac_t""$CC" 1>&6
1135 echo "$ac_t""no" 1>&6
1138 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1141 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1142 echo "configure:1143: checking whether we are using GNU C" >&5
1143 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1144 echo $ac_n "(cached) $ac_c" 1>&6
1146 cat > conftest.c
<<EOF
1151 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1152: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1158 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1160 if test $ac_cv_prog_gcc = yes; then
1162 ac_test_CFLAGS
="${CFLAGS+set}"
1163 ac_save_CFLAGS
="$CFLAGS"
1165 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1166 echo "configure:1167: checking whether ${CC-cc} accepts -g" >&5
1167 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1168 echo $ac_n "(cached) $ac_c" 1>&6
1170 echo 'void f(){}' > conftest.c
1171 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1180 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1181 if test "$ac_test_CFLAGS" = set; then
1182 CFLAGS
="$ac_save_CFLAGS"
1183 elif test $ac_cv_prog_cc_g = yes; then
1190 test "${CFLAGS+set}" = set || CFLAGS
="-g"
1194 # Likewise for AC_PROG_CXX.
1198 for ac_prog
in $CCC c
++ g
++ gcc CC cxx cc
++
1200 # Extract the first word of "$ac_prog", so it can be a program name with args.
1201 set dummy
$ac_prog; ac_word
=$2
1202 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1203 echo "configure:1204: checking for $ac_word" >&5
1204 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1205 echo $ac_n "(cached) $ac_c" 1>&6
1207 if test -n "$CXX"; then
1208 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
1210 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1212 for ac_dir
in $ac_dummy; do
1213 test -z "$ac_dir" && ac_dir
=.
1214 if test -f $ac_dir/$ac_word; then
1215 ac_cv_prog_CXX
="$ac_prog"
1222 CXX
="$ac_cv_prog_CXX"
1223 if test -n "$CXX"; then
1224 echo "$ac_t""$CXX" 1>&6
1226 echo "$ac_t""no" 1>&6
1229 test -n "$CXX" && break
1231 test -n "$CXX" || CXX
="gcc"
1233 test -z "$CXX" && { echo "configure: error: no acceptable c++ found in \$PATH" 1>&2; exit 1; }
1235 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1236 echo "configure:1237: checking whether we are using GNU C++" >&5
1237 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1238 echo $ac_n "(cached) $ac_c" 1>&6
1240 cat > conftest.C
<<EOF
1245 if { ac_try
='${CXX-g++} -E conftest.C'; { (eval echo configure
:1246: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1252 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1254 if test $ac_cv_prog_gxx = yes; then
1256 ac_test_CXXFLAGS
="${CXXFLAGS+set}"
1257 ac_save_CXXFLAGS
="$CXXFLAGS"
1259 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1260 echo "configure:1261: checking whether ${CXX-g++} accepts -g" >&5
1261 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1262 echo $ac_n "(cached) $ac_c" 1>&6
1264 echo 'void f(){}' > conftest.cc
1265 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1266 ac_cv_prog_cxx_g
=yes
1274 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1275 if test "$ac_test_CXXFLAGS" = set; then
1276 CXXFLAGS
="$ac_save_CXXFLAGS"
1277 elif test $ac_cv_prog_cxx_g = yes; then
1284 test "${CXXFLAGS+set}" = set || CXXFLAGS
="-g"
1288 # AC_CHECK_TOOL does AC_REQUIRE (AC_CANONICAL_BUILD). If we don't
1289 # run it explicitly here, it will be run implicitly before
1290 # NEWLIB_CONFIGURE, which doesn't work because that means that it will
1291 # be run before AC_CANONICAL_HOST.
1292 echo $ac_n "checking build system type""... $ac_c" 1>&6
1293 echo "configure:1294: checking build system type" >&5
1296 case "$build_alias" in
1299 NONE
) build_alias
=$host_alias ;;
1300 *) build_alias
=$nonopt ;;
1304 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1305 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1306 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1307 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1308 echo "$ac_t""$build" 1>&6
1311 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
1312 set dummy
${ac_tool_prefix}as
; ac_word
=$2
1313 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1314 echo "configure:1315: checking for $ac_word" >&5
1315 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
1316 echo $ac_n "(cached) $ac_c" 1>&6
1318 if test -n "$AS"; then
1319 ac_cv_prog_AS
="$AS" # Let the user override the test.
1321 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1323 for ac_dir
in $ac_dummy; do
1324 test -z "$ac_dir" && ac_dir
=.
1325 if test -f $ac_dir/$ac_word; then
1326 ac_cv_prog_AS
="${ac_tool_prefix}as"
1331 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS
="as"
1335 if test -n "$AS"; then
1336 echo "$ac_t""$AS" 1>&6
1338 echo "$ac_t""no" 1>&6
1343 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1344 set dummy
${ac_tool_prefix}ar; ac_word
=$2
1345 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1346 echo "configure:1347: checking for $ac_word" >&5
1347 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1348 echo $ac_n "(cached) $ac_c" 1>&6
1350 if test -n "$AR"; then
1351 ac_cv_prog_AR
="$AR" # Let the user override the test.
1353 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1355 for ac_dir
in $ac_dummy; do
1356 test -z "$ac_dir" && ac_dir
=.
1357 if test -f $ac_dir/$ac_word; then
1358 ac_cv_prog_AR
="${ac_tool_prefix}ar"
1363 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="ar"
1367 if test -n "$AR"; then
1368 echo "$ac_t""$AR" 1>&6
1370 echo "$ac_t""no" 1>&6
1375 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1376 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
1377 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1378 echo "configure:1379: checking for $ac_word" >&5
1379 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1380 echo $ac_n "(cached) $ac_c" 1>&6
1382 if test -n "$RANLIB"; then
1383 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1385 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1387 for ac_dir
in $ac_dummy; do
1388 test -z "$ac_dir" && ac_dir
=.
1389 if test -f $ac_dir/$ac_word; then
1390 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
1397 RANLIB
="$ac_cv_prog_RANLIB"
1398 if test -n "$RANLIB"; then
1399 echo "$ac_t""$RANLIB" 1>&6
1401 echo "$ac_t""no" 1>&6
1405 if test -z "$ac_cv_prog_RANLIB"; then
1406 if test -n "$ac_tool_prefix"; then
1407 # Extract the first word of "ranlib", so it can be a program name with args.
1408 set dummy ranlib
; ac_word
=$2
1409 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1410 echo "configure:1411: checking for $ac_word" >&5
1411 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1412 echo $ac_n "(cached) $ac_c" 1>&6
1414 if test -n "$RANLIB"; then
1415 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1417 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1419 for ac_dir
in $ac_dummy; do
1420 test -z "$ac_dir" && ac_dir
=.
1421 if test -f $ac_dir/$ac_word; then
1422 ac_cv_prog_RANLIB
="ranlib"
1427 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1430 RANLIB
="$ac_cv_prog_RANLIB"
1431 if test -n "$RANLIB"; then
1432 echo "$ac_t""$RANLIB" 1>&6
1434 echo "$ac_t""no" 1>&6
1443 # Find a good install program. We prefer a C program (faster),
1444 # so one script is as good as another. But avoid the broken or
1445 # incompatible versions:
1446 # SysV /etc/install, /usr/sbin/install
1447 # SunOS /usr/etc/install
1448 # IRIX /sbin/install
1450 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1451 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1452 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1453 # ./install, which can be erroneously created by make from ./install.sh.
1454 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1455 echo "configure:1456: checking for a BSD compatible install" >&5
1456 if test -z "$INSTALL"; then
1457 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1458 echo $ac_n "(cached) $ac_c" 1>&6
1460 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
1461 for ac_dir
in $PATH; do
1462 # Account for people who put trailing slashes in PATH elements.
1464 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
1466 # OSF1 and SCO ODT 3.0 have their own names for install.
1467 # Don't use installbsd from OSF since it installs stuff as root
1469 for ac_prog
in ginstall scoinst
install; do
1470 if test -f $ac_dir/$ac_prog; then
1471 if test $ac_prog = install &&
1472 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
1473 # AIX install. It has an incompatible calling convention.
1476 ac_cv_path_install
="$ac_dir/$ac_prog -c"
1487 if test "${ac_cv_path_install+set}" = set; then
1488 INSTALL
="$ac_cv_path_install"
1490 # As a last resort, use the slow shell script. We don't cache a
1491 # path for INSTALL within a source directory, because that will
1492 # break other packages using the cache if that directory is
1493 # removed, or if the path is relative.
1494 INSTALL
="$ac_install_sh"
1497 echo "$ac_t""$INSTALL" 1>&6
1499 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1500 # It thinks the first close brace ends the variable substitution.
1501 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1503 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
1505 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1508 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1509 echo "configure:1510: checking whether to enable maintainer-specific portions of Makefiles" >&5
1510 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1511 if test "${enable_maintainer_mode+set}" = set; then
1512 enableval
="$enable_maintainer_mode"
1513 USE_MAINTAINER_MODE
=$enableval
1515 USE_MAINTAINER_MODE
=no
1518 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1521 if test $USE_MAINTAINER_MODE = yes; then
1522 MAINTAINER_MODE_TRUE
=
1523 MAINTAINER_MODE_FALSE
='#'
1525 MAINTAINER_MODE_TRUE
='#'
1526 MAINTAINER_MODE_FALSE
=
1528 MAINT
=$MAINTAINER_MODE_TRUE
1532 # We need AC_EXEEXT to keep automake happy in cygnus mode. However,
1533 # at least currently, we never actually build a program, so we never
1534 # need to use $(EXEEXT). Moreover, the test for EXEEXT normally
1535 # fails, because we are probably configuring with a cross compiler
1536 # which can't create executables. So we include AC_EXEEXT to keep
1537 # automake happy, but we don't execute it, since we don't care about
1540 # autoconf 2.50 runs AC_EXEEXT by default, and the macro expands
1541 # to nothing, so nothing would remain between `then' and `fi' if it
1542 # were not for the `:' below.
1546 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1547 echo "configure:1548: checking for executable suffix" >&5
1548 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1549 echo $ac_n "(cached) $ac_c" 1>&6
1551 if test "$CYGWIN" = yes ||
test "$MINGW32" = yes; then
1555 echo 'int main () { return 0; }' > conftest.
$ac_ext
1557 if { (eval echo configure
:1558: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1558 for file in conftest.
*; do
1560 *.c |
*.o |
*.obj |
*.ilk |
*.pdb
) ;;
1561 *) ac_cv_exeext
=`echo $file | sed -e s/conftest//` ;;
1565 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1568 test x
"${ac_cv_exeext}" = x
&& ac_cv_exeext
=no
1573 test x
"${ac_cv_exeext}" != xno
&& EXEEXT
=${ac_cv_exeext}
1574 echo "$ac_t""${ac_cv_exeext}" 1>&6
1579 .
${srcdir}/configure.
host
1581 case ${gc_basedir} in
1582 /* | A-Za-z
:/\\*) gc_flagbasedir
=${gc_basedir} ;;
1583 *) gc_flagbasedir
='$(top_builddir)/'${gc_basedir} ;;
1586 gc_cflags
="${gc_cflags} -I"'$(top_builddir)'"/./targ-include -I${gc_flagbasedir}/libc/include"
1589 gc_cflags
="${gc_cflags} -I${gc_flagbasedir}/../winsup/include"
1594 GC_CFLAGS
=${gc_cflags}
1598 # Check whether --enable-shared or --disable-shared was given.
1599 if test "${enable_shared+set}" = set; then
1600 enableval
="$enable_shared"
1601 p
=${PACKAGE-default}
1603 yes) enable_shared
=yes ;;
1604 no
) enable_shared
=no
;;
1607 # Look at the argument we got. We use all the common list separators.
1608 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1609 for pkg
in $enableval; do
1610 if test "X$pkg" = "X$p"; then
1621 # Check whether --enable-static or --disable-static was given.
1622 if test "${enable_static+set}" = set; then
1623 enableval
="$enable_static"
1624 p
=${PACKAGE-default}
1626 yes) enable_static
=yes ;;
1627 no
) enable_static
=no
;;
1630 # Look at the argument we got. We use all the common list separators.
1631 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1632 for pkg
in $enableval; do
1633 if test "X$pkg" = "X$p"; then
1644 # Check whether --enable-fast-install or --disable-fast-install was given.
1645 if test "${enable_fast_install+set}" = set; then
1646 enableval
="$enable_fast_install"
1647 p
=${PACKAGE-default}
1649 yes) enable_fast_install
=yes ;;
1650 no
) enable_fast_install
=no
;;
1652 enable_fast_install
=no
1653 # Look at the argument we got. We use all the common list separators.
1654 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1655 for pkg
in $enableval; do
1656 if test "X$pkg" = "X$p"; then
1657 enable_fast_install
=yes
1664 enable_fast_install
=yes
1667 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1668 if test "${with_gnu_ld+set}" = set; then
1669 withval
="$with_gnu_ld"
1670 test "$withval" = no || with_gnu_ld
=yes
1676 if test "$GCC" = yes; then
1677 # Check if gcc -print-prog-name=ld gives a path.
1678 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1679 echo "configure:1680: checking for ld used by GCC" >&5
1682 # gcc leaves a trailing carriage return which upsets mingw
1683 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1685 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
1688 # Accept absolute paths.
1689 [\\/]* |
[A-Za-z
]:[\\/]*)
1690 re_direlt
='/[^/][^/]*/\.\./'
1691 # Canonicalize the path of ld
1692 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
1693 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
1694 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
1696 test -z "$LD" && LD
="$ac_prog"
1699 # If it fails, then pretend we aren't using GCC.
1703 # If it is relative, then search for the first ld in PATH.
1707 elif test "$with_gnu_ld" = yes; then
1708 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1709 echo "configure:1710: checking for GNU ld" >&5
1711 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1712 echo "configure:1713: checking for non-GNU ld" >&5
1714 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1715 echo $ac_n "(cached) $ac_c" 1>&6
1717 if test -z "$LD"; then
1718 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1719 for ac_dir
in $PATH; do
1720 test -z "$ac_dir" && ac_dir
=.
1721 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
1722 lt_cv_path_LD
="$ac_dir/$ac_prog"
1723 # Check to see if the program is GNU ld. I'd rather use --version,
1724 # but apparently some GNU ld's only accept -v.
1725 # Break only if it was the GNU/non-GNU ld that we prefer.
1726 if "$lt_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
1727 test "$with_gnu_ld" != no
&& break
1729 test "$with_gnu_ld" != yes && break
1735 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
1740 if test -n "$LD"; then
1741 echo "$ac_t""$LD" 1>&6
1743 echo "$ac_t""no" 1>&6
1745 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1746 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1747 echo "configure:1748: checking if the linker ($LD) is GNU ld" >&5
1748 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1749 echo $ac_n "(cached) $ac_c" 1>&6
1751 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1752 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
1753 lt_cv_prog_gnu_ld
=yes
1755 lt_cv_prog_gnu_ld
=no
1759 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1760 with_gnu_ld
=$lt_cv_prog_gnu_ld
1763 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1764 echo "configure:1765: checking for $LD option to reload object files" >&5
1765 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1766 echo $ac_n "(cached) $ac_c" 1>&6
1768 lt_cv_ld_reload_flag
='-r'
1771 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1772 reload_flag
=$lt_cv_ld_reload_flag
1773 test -n "$reload_flag" && reload_flag
=" $reload_flag"
1775 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1776 echo "configure:1777: checking for BSD-compatible nm" >&5
1777 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1778 echo $ac_n "(cached) $ac_c" 1>&6
1780 if test -n "$NM"; then
1781 # Let the user override the test.
1784 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1785 for ac_dir
in $PATH /usr
/ccs
/bin
/usr
/ucb
/bin
; do
1786 test -z "$ac_dir" && ac_dir
=.
1787 tmp_nm
=$ac_dir/${ac_tool_prefix}nm
1788 if test -f $tmp_nm ||
test -f $tmp_nm$ac_exeext ; then
1789 # Check to see if the nm accepts a BSD-compat flag.
1790 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1791 # nm: unknown option "B" ignored
1792 # Tru64's nm complains that /dev/null is an invalid object file
1793 if ($tmp_nm -B /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep '(/dev/null|Invalid file or object type)' >/dev
/null
; then
1794 lt_cv_path_NM
="$tmp_nm -B"
1796 elif ($tmp_nm -p /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep /dev
/null
>/dev
/null
; then
1797 lt_cv_path_NM
="$tmp_nm -p"
1800 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1801 continue # so that we can try to find one that supports BSD flags
1806 test -z "$lt_cv_path_NM" && lt_cv_path_NM
=nm
1811 echo "$ac_t""$NM" 1>&6
1813 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1814 echo "configure:1815: checking whether ln -s works" >&5
1815 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1816 echo $ac_n "(cached) $ac_c" 1>&6
1819 if ln -s X conftestdata
2>/dev
/null
1822 ac_cv_prog_LN_S
="ln -s"
1827 LN_S
="$ac_cv_prog_LN_S"
1828 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1829 echo "$ac_t""yes" 1>&6
1831 echo "$ac_t""no" 1>&6
1834 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1835 echo "configure:1836: checking how to recognise dependant libraries" >&5
1836 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1837 echo $ac_n "(cached) $ac_c" 1>&6
1839 lt_cv_file_magic_cmd
='$MAGIC_CMD'
1840 lt_cv_file_magic_test_file
=
1841 lt_cv_deplibs_check_method
='unknown'
1842 # Need to set the preceding variable on all platforms that support
1843 # interlibrary dependencies.
1844 # 'none' -- dependencies not supported.
1845 # `unknown' -- same as none, but documents that we really don't know.
1846 # 'pass_all' -- all dependencies passed with no checks.
1847 # 'test_compile' -- check by making test program.
1848 # 'file_magic [regex]' -- check by looking for files in library path
1849 # which responds to the $file_magic_cmd with a given egrep regex.
1850 # If you have `file' or equivalent on your system and you're not sure
1851 # whether `pass_all' will *always* work, you probably want this one.
1855 lt_cv_deplibs_check_method
=pass_all
1859 lt_cv_deplibs_check_method
=pass_all
1863 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1864 lt_cv_file_magic_cmd
='/usr/bin/file -L'
1865 lt_cv_file_magic_test_file
=/shlib
/libc.so
1868 cygwin
* | mingw
* |pw32
*)
1869 lt_cv_deplibs_check_method
='file_magic file format pei*-i386(.*architecture: i386)?'
1870 lt_cv_file_magic_cmd
='$OBJDUMP -f'
1873 darwin
* | rhapsody
*)
1874 lt_cv_deplibs_check_method
='file_magic Mach-O dynamically linked shared library'
1875 lt_cv_file_magic_cmd
='/usr/bin/file -L'
1877 rhapsody
* | darwin1.012
)
1878 lt_cv_file_magic_test_file
='/System/Library/Frameworks/System.framework/System'
1881 lt_cv_file_magic_test_file
='/usr/lib/libSystem.dylib'
1887 if echo __ELF__ |
$CC -E - |
grep __ELF__
> /dev
/null
; then
1890 # Not sure whether the presence of OpenBSD here was a mistake.
1891 # Let's accept both of them until this is cleared up.
1892 lt_cv_deplibs_check_method
='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1893 lt_cv_file_magic_cmd
=/usr
/bin
/file
1894 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so.*`
1898 lt_cv_deplibs_check_method
=pass_all
1903 lt_cv_deplibs_check_method
=pass_all
1909 lt_cv_deplibs_check_method
='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
1910 lt_cv_file_magic_cmd
=/usr
/bin
/file
1911 lt_cv_file_magic_test_file
=/usr
/lib
/libc.sl
1914 lt_cv_deplibs_check_method
='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
1915 lt_cv_file_magic_cmd
=/usr
/bin
/file
1916 lt_cv_file_magic_test_file
=/usr
/lib
/hpux32
/libc.so
1924 # this will be overridden with pass_all, but let us keep it just in case
1925 lt_cv_deplibs_check_method
="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
1929 *-32|
*"-32 ") libmagic
=32-bit;;
1930 *-n32|
*"-n32 ") libmagic
=N32
;;
1931 *-64|
*"-64 ") libmagic
=64-bit;;
1932 *) libmagic
=never-match
;;
1934 # this will be overridden with pass_all, but let us keep it just in case
1935 lt_cv_deplibs_check_method
="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
1938 lt_cv_file_magic_test_file
=`echo /lib${libsuff}/libc.so*`
1939 lt_cv_deplibs_check_method
=pass_all
1942 # This must be Linux ELF.
1945 alpha
* | mips
* | hppa
* | i
*86 | powerpc
* | sparc
* | ia64
* )
1946 lt_cv_deplibs_check_method
=pass_all
;;
1948 # glibc up to 2.1.1 does not perform some relocations on ARM
1949 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
1951 lt_cv_file_magic_test_file
=`echo /lib/libc.so* /lib/libc-*.so`
1955 if echo __ELF__ |
$CC -E - |
grep __ELF__
> /dev
/null
; then
1956 lt_cv_deplibs_check_method
='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
1958 lt_cv_deplibs_check_method
='match_pattern /lib[^/\.]+\.so$'
1963 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
1964 lt_cv_file_magic_cmd
=/usr
/bin
/file
1965 lt_cv_file_magic_test_file
=/usr
/lib
/libnls.so
1968 osf3
* | osf4
* | osf5
*)
1969 # this will be overridden with pass_all, but let us keep it just in case
1970 lt_cv_deplibs_check_method
='file_magic COFF format alpha shared library'
1971 lt_cv_file_magic_test_file
=/shlib
/libc.so
1972 lt_cv_deplibs_check_method
=pass_all
1976 lt_cv_deplibs_check_method
=pass_all
1980 lt_cv_deplibs_check_method
=pass_all
1981 lt_cv_file_magic_test_file
=/lib
/libc.so
1984 sysv5uw
[78]* | sysv4
*uw2
*)
1985 lt_cv_deplibs_check_method
=pass_all
1988 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
1989 case $host_vendor in
1991 lt_cv_deplibs_check_method
=pass_all
1994 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]'
1995 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so*`
2003 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
2004 file_magic_cmd
=$lt_cv_file_magic_cmd
2005 deplibs_check_method
=$lt_cv_deplibs_check_method
2007 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
2008 echo "configure:2009: checking for object suffix" >&5
2009 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
2010 echo $ac_n "(cached) $ac_c" 1>&6
2013 echo 'int i = 1;' > conftest.
$ac_ext
2014 if { (eval echo configure
:2015: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2015 for ac_file
in conftest.
*; do
2018 *) ac_cv_objext
=`echo $ac_file | sed -e s/conftest.//` ;;
2022 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
2027 echo "$ac_t""$ac_cv_objext" 1>&6
2028 OBJEXT
=$ac_cv_objext
2029 ac_objext
=$ac_cv_objext
2031 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
2033 # Only perform the check for file, if the check method requires it
2034 case $deplibs_check_method in
2036 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2037 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
2038 echo "configure:2039: checking for ${ac_tool_prefix}file" >&5
2039 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2040 echo $ac_n "(cached) $ac_c" 1>&6
2044 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
2047 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a dos path.
2050 ac_save_MAGIC_CMD
="$MAGIC_CMD"
2051 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2052 ac_dummy
="/usr/bin:$PATH"
2053 for ac_dir
in $ac_dummy; do
2054 test -z "$ac_dir" && ac_dir
=.
2055 if test -f $ac_dir/${ac_tool_prefix}file; then
2056 lt_cv_path_MAGIC_CMD
="$ac_dir/${ac_tool_prefix}file"
2057 if test -n "$file_magic_test_file"; then
2058 case $deplibs_check_method in
2060 file_magic_regex
="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2061 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
2062 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
2063 egrep "$file_magic_regex" > /dev
/null
; then
2068 *** Warning: the command libtool uses to detect shared libraries,
2069 *** $file_magic_cmd, produces output that libtool cannot recognize.
2070 *** The result is that libtool may fail to recognize shared libraries
2071 *** as such. This will affect the creation of libtool libraries that
2072 *** depend on shared libraries, but programs linked with such libtool
2073 *** libraries will work regardless of this problem. Nevertheless, you
2074 *** may want to report the problem to your system manager and/or to
2075 *** bug-libtool@gnu.org
2085 MAGIC_CMD
="$ac_save_MAGIC_CMD"
2090 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
2091 if test -n "$MAGIC_CMD"; then
2092 echo "$ac_t""$MAGIC_CMD" 1>&6
2094 echo "$ac_t""no" 1>&6
2097 if test -z "$lt_cv_path_MAGIC_CMD"; then
2098 if test -n "$ac_tool_prefix"; then
2099 echo $ac_n "checking for file""... $ac_c" 1>&6
2100 echo "configure:2101: checking for file" >&5
2101 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2102 echo $ac_n "(cached) $ac_c" 1>&6
2106 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
2109 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a dos path.
2112 ac_save_MAGIC_CMD
="$MAGIC_CMD"
2113 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2114 ac_dummy
="/usr/bin:$PATH"
2115 for ac_dir
in $ac_dummy; do
2116 test -z "$ac_dir" && ac_dir
=.
2117 if test -f $ac_dir/file; then
2118 lt_cv_path_MAGIC_CMD
="$ac_dir/file"
2119 if test -n "$file_magic_test_file"; then
2120 case $deplibs_check_method in
2122 file_magic_regex
="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2123 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
2124 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
2125 egrep "$file_magic_regex" > /dev
/null
; then
2130 *** Warning: the command libtool uses to detect shared libraries,
2131 *** $file_magic_cmd, produces output that libtool cannot recognize.
2132 *** The result is that libtool may fail to recognize shared libraries
2133 *** as such. This will affect the creation of libtool libraries that
2134 *** depend on shared libraries, but programs linked with such libtool
2135 *** libraries will work regardless of this problem. Nevertheless, you
2136 *** may want to report the problem to your system manager and/or to
2137 *** bug-libtool@gnu.org
2147 MAGIC_CMD
="$ac_save_MAGIC_CMD"
2152 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
2153 if test -n "$MAGIC_CMD"; then
2154 echo "$ac_t""$MAGIC_CMD" 1>&6
2156 echo "$ac_t""no" 1>&6
2168 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2169 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
2170 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2171 echo "configure:2172: checking for $ac_word" >&5
2172 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2173 echo $ac_n "(cached) $ac_c" 1>&6
2175 if test -n "$RANLIB"; then
2176 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
2178 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2180 for ac_dir
in $ac_dummy; do
2181 test -z "$ac_dir" && ac_dir
=.
2182 if test -f $ac_dir/$ac_word; then
2183 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
2190 RANLIB
="$ac_cv_prog_RANLIB"
2191 if test -n "$RANLIB"; then
2192 echo "$ac_t""$RANLIB" 1>&6
2194 echo "$ac_t""no" 1>&6
2198 if test -z "$ac_cv_prog_RANLIB"; then
2199 if test -n "$ac_tool_prefix"; then
2200 # Extract the first word of "ranlib", so it can be a program name with args.
2201 set dummy ranlib
; ac_word
=$2
2202 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2203 echo "configure:2204: checking for $ac_word" >&5
2204 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2205 echo $ac_n "(cached) $ac_c" 1>&6
2207 if test -n "$RANLIB"; then
2208 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
2210 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2212 for ac_dir
in $ac_dummy; do
2213 test -z "$ac_dir" && ac_dir
=.
2214 if test -f $ac_dir/$ac_word; then
2215 ac_cv_prog_RANLIB
="ranlib"
2220 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
2223 RANLIB
="$ac_cv_prog_RANLIB"
2224 if test -n "$RANLIB"; then
2225 echo "$ac_t""$RANLIB" 1>&6
2227 echo "$ac_t""no" 1>&6
2235 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2236 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
2237 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2238 echo "configure:2239: checking for $ac_word" >&5
2239 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2240 echo $ac_n "(cached) $ac_c" 1>&6
2242 if test -n "$STRIP"; then
2243 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
2245 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2247 for ac_dir
in $ac_dummy; do
2248 test -z "$ac_dir" && ac_dir
=.
2249 if test -f $ac_dir/$ac_word; then
2250 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
2257 STRIP
="$ac_cv_prog_STRIP"
2258 if test -n "$STRIP"; then
2259 echo "$ac_t""$STRIP" 1>&6
2261 echo "$ac_t""no" 1>&6
2265 if test -z "$ac_cv_prog_STRIP"; then
2266 if test -n "$ac_tool_prefix"; then
2267 # Extract the first word of "strip", so it can be a program name with args.
2268 set dummy strip
; ac_word
=$2
2269 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2270 echo "configure:2271: checking for $ac_word" >&5
2271 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2272 echo $ac_n "(cached) $ac_c" 1>&6
2274 if test -n "$STRIP"; then
2275 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
2277 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2279 for ac_dir
in $ac_dummy; do
2280 test -z "$ac_dir" && ac_dir
=.
2281 if test -f $ac_dir/$ac_word; then
2282 ac_cv_prog_STRIP
="strip"
2287 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP
=":"
2290 STRIP
="$ac_cv_prog_STRIP"
2291 if test -n "$STRIP"; then
2292 echo "$ac_t""$STRIP" 1>&6
2294 echo "$ac_t""no" 1>&6
2303 # Check for any special flags to pass to ltconfig.
2304 libtool_flags
="--cache-file=$cache_file"
2305 test "$enable_shared" = no
&& libtool_flags
="$libtool_flags --disable-shared"
2306 test "$enable_static" = no
&& libtool_flags
="$libtool_flags --disable-static"
2307 test "$enable_fast_install" = no
&& libtool_flags
="$libtool_flags --disable-fast-install"
2308 test "$GCC" = yes && libtool_flags
="$libtool_flags --with-gcc"
2309 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags
="$libtool_flags --with-gnu-ld"
2312 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2313 if test "${enable_libtool_lock+set}" = set; then
2314 enableval
="$enable_libtool_lock"
2318 test "x$enable_libtool_lock" = xno
&& libtool_flags
="$libtool_flags --disable-lock"
2319 test x
"$silent" = xyes
&& libtool_flags
="$libtool_flags --silent"
2321 # Check whether --with-pic or --without-pic was given.
2322 if test "${with_pic+set}" = set; then
2329 test x
"$pic_mode" = xyes
&& libtool_flags
="$libtool_flags --prefer-pic"
2330 test x
"$pic_mode" = xno
&& libtool_flags
="$libtool_flags --prefer-non-pic"
2332 # Some flags need to be propagated to the compiler or linker for good
2336 # Find out which ABI we are using.
2337 echo '#line 2338 "configure"' > conftest.
$ac_ext
2338 if { (eval echo configure
:2339: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2339 if test "$lt_cv_prog_gnu_ld" = yes; then
2340 case `/usr/bin/file conftest.$ac_objext` in
2342 LD
="${LD-ld} -melf32bsmip"
2345 LD
="${LD-ld} -melf32bmipn32"
2348 LD
="${LD-ld} -melf64bmip"
2352 case `/usr/bin/file conftest.$ac_objext` in
2369 # Find out which ABI we are using.
2370 echo 'int i;' > conftest.
$ac_ext
2371 if { (eval echo configure
:2372: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2372 case "`/usr/bin/file conftest.o`" in
2384 x86_64-
*linux
*|ppc
*-*linux
*|powerpc
*-*linux
*|s390
*-*linux
*|sparc
*-*linux
*)
2385 # Find out which ABI we are using.
2386 echo 'int i;' > conftest.
$ac_ext
2387 if { (eval echo configure
:2388: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2388 case "`/usr/bin/file conftest.o`" in
2392 LD
="${LD-ld} -m elf_i386"
2395 LD
="${LD-ld} -m elf32ppclinux"
2398 LD
="${LD-ld} -m elf_s390"
2401 LD
="${LD-ld} -m elf32_sparc"
2408 LD
="${LD-ld} -m elf_x86_64"
2410 ppc
*-*linux
*|powerpc
*-*linux
*)
2411 LD
="${LD-ld} -m elf64ppc"
2414 LD
="${LD-ld} -m elf64_s390"
2417 LD
="${LD-ld} -m elf64_sparc"
2427 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2428 SAVE_CFLAGS
="$CFLAGS"
2429 CFLAGS
="$CFLAGS -belf"
2430 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2431 echo "configure:2432: checking whether the C compiler needs -belf" >&5
2432 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2433 echo $ac_n "(cached) $ac_c" 1>&6
2437 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2438 ac_cpp
='$CPP $CPPFLAGS'
2439 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2440 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2441 cross_compiling
=$ac_cv_prog_cc_cross
2443 cat > conftest.
$ac_ext <<EOF
2444 #line 2445 "configure"
2445 #include "confdefs.h"
2451 if { (eval echo configure
:2452: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2453 lt_cv_cc_needs_belf
=yes
2455 echo "configure: failed program was:" >&5
2456 cat conftest.
$ac_ext >&5
2458 lt_cv_cc_needs_belf
=no
2462 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2463 ac_cpp
='$CPP $CPPFLAGS'
2464 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2465 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2466 cross_compiling
=$ac_cv_prog_cc_cross
2470 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2471 if test x
"$lt_cv_cc_needs_belf" != x
"yes"; then
2472 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2473 CFLAGS
="$SAVE_CFLAGS"
2480 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
2481 echo "configure:2482: checking how to run the C++ preprocessor" >&5
2482 if test -z "$CXXCPP"; then
2483 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
2484 echo $ac_n "(cached) $ac_c" 1>&6
2487 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2488 ac_cpp
='$CXXCPP $CPPFLAGS'
2489 ac_compile
='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2490 ac_link
='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2491 cross_compiling
=$ac_cv_prog_cxx_cross
2492 CXXCPP
="${CXX-g++} -E"
2493 cat > conftest.
$ac_ext <<EOF
2494 #line 2495 "configure"
2495 #include "confdefs.h"
2498 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2499 { (eval echo configure
:2500: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2500 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2501 if test -z "$ac_err"; then
2505 echo "configure: failed program was:" >&5
2506 cat conftest.
$ac_ext >&5
2511 ac_cv_prog_CXXCPP
="$CXXCPP"
2513 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2514 ac_cpp
='$CPP $CPPFLAGS'
2515 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2516 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2517 cross_compiling
=$ac_cv_prog_cc_cross
2520 CXXCPP
="$ac_cv_prog_CXXCPP"
2521 echo "$ac_t""$CXXCPP" 1>&6
2524 # Save cache, so that ltconfig can load it
2525 cat > confcache
<<\EOF
2526 # This file is a shell script that caches the results of configure
2527 # tests run on this system so they can be shared between configure
2528 # scripts and configure runs. It is not useful on other systems.
2529 # If it contains results you don't want to keep, you may remove or edit it.
2531 # By default, configure uses ./config.cache as the cache file,
2532 # creating it if it does not exist already. You can give configure
2533 # the --cache-file=FILE option to use a different cache file; that is
2534 # what configure does when it calls configure scripts in
2535 # subdirectories, so they share the cache.
2536 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2537 # config.status only pays attention to the cache file if you give it the
2538 # --recheck option to rerun configure.
2541 # The following way of writing the cache mishandles newlines in values,
2542 # but we know of no workaround that is simple, portable, and efficient.
2543 # So, don't put newlines in cache variables' values.
2544 # Ultrix sh set writes to stderr and can't be redirected directly,
2545 # and sets the high bit in the cache file unless we assign to the vars.
2547 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2549 # `set' does not quote correctly, so add quotes (double-quote substitution
2550 # turns \\\\ into \\, and sed turns \\ into \).
2552 -e "s/'/'\\\\''/g" \
2553 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2556 # `set' quotes correctly as required by POSIX, so do not add quotes.
2557 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2560 if cmp -s $cache_file confcache
; then
2563 if test -w $cache_file; then
2564 echo "updating cache $cache_file"
2565 cat confcache
> $cache_file
2567 echo "not updating unwritable cache $cache_file"
2573 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2574 AR
="$AR" LTCC
="$CC" CC
="$CC" CFLAGS
="$CFLAGS" CPPFLAGS
="$CPPFLAGS" \
2575 MAGIC_CMD
="$MAGIC_CMD" LD
="$LD" LDFLAGS
="$LDFLAGS" LIBS
="$LIBS" \
2576 LN_S
="$LN_S" NM
="$NM" RANLIB
="$RANLIB" STRIP
="$STRIP" \
2577 AS
="$AS" DLLTOOL
="$DLLTOOL" OBJDUMP
="$OBJDUMP" \
2578 objext
="$OBJEXT" exeext
="$EXEEXT" reload_flag
="$reload_flag" \
2579 deplibs_check_method
="$deplibs_check_method" file_magic_cmd
="$file_magic_cmd" \
2580 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig
--no-reexec \
2581 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh
$host \
2582 ||
{ echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2584 # Reload cache, that may have been modified by ltconfig
2585 if test -r "$cache_file"; then
2586 echo "loading cache $cache_file"
2589 echo "creating cache $cache_file"
2594 # This can be used to rebuild libtool when needed
2595 LIBTOOL_DEPS
="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2597 # Always use our own libtool.
2598 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
2600 # Redirect the config.log output again, so that the ltconfig log is not
2601 # clobbered by the next message.
2602 exec 5>>.
/config.log
2606 LIBTOOL_DEPS
=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
2608 lt_save_CFLAGS
="$CFLAGS"
2609 AR
="$AR" LTCC
="$CC" CC
="$CXX" CXX
="$CXX" CFLAGS
="$CXXFLAGS" CPPFLAGS
="$CPPFLAGS" \
2610 MAGIC_CMD
="$MAGIC_CMD" LD
="$LD" LDFLAGS
="$LDFLAGS" LIBS
="$LIBS" \
2611 LN_S
="$LN_S" NM
="$NM" RANLIB
="$RANLIB" STRIP
="$STRIP" \
2612 AS
="$AS" DLLTOOL
="$DLLTOOL" OBJDUMP
="$OBJDUMP" \
2613 objext
="$OBJEXT" exeext
="$EXEEXT" reload_flag
="$reload_flag" \
2614 deplibs_check_method
="$deplibs_check_method" \
2615 file_magic_cmd
="$file_magic_cmd" \
2616 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig
-o libtool
$libtool_flags \
2617 --build="$build" --add-tag=CXX
$ac_aux_dir/ltcf-cxx.sh
$host \
2618 ||
{ echo "configure: error: libtool tag configuration failed" 1>&2; exit 1; }
2620 CFLAGS
="$lt_save_CFLAGS"
2622 # Redirect the config.log output again, so that the ltconfig log is not
2623 # clobbered by the next message.
2624 exec 5>>.
/config.log
2632 # Check whether --with-target-subdir or --without-target-subdir was given.
2633 if test "${with_target_subdir+set}" = set; then
2634 withval
="$with_target_subdir"
2638 # Check whether --with-cross-host or --without-cross-host was given.
2639 if test "${with_cross_host+set}" = set; then
2640 withval
="$with_cross_host"
2645 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
2646 echo "configure:2647: checking whether to enable maintainer-specific portions of Makefiles" >&5
2647 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
2648 if test "${enable_maintainer_mode+set}" = set; then
2649 enableval
="$enable_maintainer_mode"
2650 USE_MAINTAINER_MODE
=$enableval
2652 USE_MAINTAINER_MODE
=no
2655 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
2658 if test $USE_MAINTAINER_MODE = yes; then
2659 MAINTAINER_MODE_TRUE
=
2660 MAINTAINER_MODE_FALSE
='#'
2662 MAINTAINER_MODE_TRUE
='#'
2663 MAINTAINER_MODE_FALSE
=
2665 MAINT
=$MAINTAINER_MODE_TRUE
2668 # automake wants to see AC_EXEEXT. But we don't need it. And having
2669 # it is actually a problem, because the compiler we're passed can't
2670 # necessarily do a full link. So we fool automake here.
2672 # autoconf 2.50 runs AC_EXEEXT by default, and the macro expands
2673 # to nothing, so nothing would remain between `then' and `fi' if it
2674 # were not for the `:' below.
2678 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
2679 echo "configure:2680: checking for executable suffix" >&5
2680 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
2681 echo $ac_n "(cached) $ac_c" 1>&6
2683 if test "$CYGWIN" = yes ||
test "$MINGW32" = yes; then
2687 echo 'int main () { return 0; }' > conftest.
$ac_ext
2689 if { (eval echo configure
:2690: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
2690 for file in conftest.
*; do
2692 *.c |
*.o |
*.obj |
*.ilk |
*.pdb
) ;;
2693 *) ac_cv_exeext
=`echo $file | sed -e s/conftest//` ;;
2697 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
2700 test x
"${ac_cv_exeext}" = x
&& ac_cv_exeext
=no
2705 test x
"${ac_cv_exeext}" != xno
&& EXEEXT
=${ac_cv_exeext}
2706 echo "$ac_t""${ac_cv_exeext}" 1>&6
2711 echo $ac_n "checking for thread model used by GCC""... $ac_c" 1>&6
2712 echo "configure:2713: checking for thread model used by GCC" >&5
2713 THREADS
=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
2714 if test -z "$THREADS"; then
2717 echo "$ac_t""$THREADS" 1>&6
2719 # Check whether --enable-parallel-mark or --disable-parallel-mark was given.
2720 if test "${enable_parallel_mark+set}" = set; then
2721 enableval
="$enable_parallel_mark"
2724 { echo "configure: error: Parallel mark requires --enable-threads=x spec" 1>&2; exit 1; }
2731 INCLUDES
=-I${srcdir}/include
2739 THREADLIBS
=-lpthread
2741 x86-
*-linux* | ia64-
*-linux* | i586-
*-linux* | i686-
*-linux* | x86_64-
*-linux* )
2742 cat >> confdefs.h
<<\EOF
2743 #define GC_LINUX_THREADS 1
2746 cat >> confdefs.h
<<\EOF
2747 #define _REENTRANT 1
2750 if test "${enable_parallel_mark}"; then
2751 cat >> confdefs.h
<<\EOF
2752 #define PARALLEL_MARK 1
2756 cat >> confdefs.h
<<\EOF
2757 #define THREAD_LOCAL_ALLOC 1
2762 cat >> confdefs.h
<<\EOF
2763 #define GC_LINUX_THREADS 1
2766 cat >> confdefs.h
<<\EOF
2767 #define _REENTRANT 1
2772 echo "configure: warning: "Only HP
/UX
11 threads are supported.
"" 1>&2
2773 cat >> confdefs.h
<<\EOF
2774 #define GC_HPUX_THREADS 1
2777 cat >> confdefs.h
<<\EOF
2778 #define _POSIX_C_SOURCE 199506L
2781 if test "${enable_parallel_mark}" = yes; then
2782 cat >> confdefs.h
<<\EOF
2783 #define PARALLEL_MARK 1
2787 cat >> confdefs.h
<<\EOF
2788 #define THREAD_LOCAL_ALLOC 1
2791 THREADLIBS
="-lpthread -lrt"
2794 echo "configure: warning: "FreeBSD does not yet fully support threads with Boehm GC.
"" 1>&2
2795 cat >> confdefs.h
<<\EOF
2796 #define GC_FREEBSD_THREADS 1
2799 INCLUDES
="$INCLUDES -pthread"
2803 cat >> confdefs.h
<<\EOF
2804 #define GC_SOLARIS_THREADS 1
2807 cat >> confdefs.h
<<\EOF
2808 #define GC_SOLARIS_PTHREADS 1
2813 cat >> confdefs.h
<<\EOF
2814 #define GC_IRIX_THREADS 1
2824 cat >> confdefs.h
<<\EOF
2825 #define GC_WIN32_THREADS 1
2828 cat >> confdefs.h
<<\EOF
2832 if test $enable_shared = yes; then
2833 cat >> confdefs.h
<<\EOF
2839 decosf1 | irix | mach | os2 | solaris | dce | vxworks
)
2840 { echo "configure: error: thread package $THREADS not yet supported" 1>&2; exit 1; }
2843 { echo "configure: error: $THREADS is an unknown thread package" 1>&2; exit 1; }
2848 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
2849 echo "configure:2850: checking for dlopen in -ldl" >&5
2850 ac_lib_var
=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
2851 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2852 echo $ac_n "(cached) $ac_c" 1>&6
2854 ac_save_LIBS
="$LIBS"
2856 cat > conftest.
$ac_ext <<EOF
2857 #line 2858 "configure"
2858 #include "confdefs.h"
2859 /* Override any gcc2 internal prototype to avoid an error. */
2860 /* We use char because int might match the return type of a gcc2
2861 builtin and then its argument prototype would still apply. */
2868 if { (eval echo configure
:2869: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2870 eval "ac_cv_lib_$ac_lib_var=yes"
2872 echo "configure: failed program was:" >&5
2873 cat conftest.
$ac_ext >&5
2875 eval "ac_cv_lib_$ac_lib_var=no"
2878 LIBS
="$ac_save_LIBS"
2881 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2882 echo "$ac_t""yes" 1>&6
2883 EXTRA_TEST_LIBS
="$EXTRA_TEST_LIBS -ldl"
2885 echo "$ac_t""no" 1>&6
2890 target_all
=libgcjgc.la
2895 # Check whether --with-ecos or --without-ecos was given.
2896 if test "${with_ecos+set}" = set; then
2897 withval
="$with_ecos"
2898 TARGET_ECOS
="$with_ecos"
2905 case "$TARGET_ECOS" in
2909 cat >> confdefs.h
<<\EOF
2913 CXXINCLUDES
="-I${TARGET_ECOS}/include"
2914 addobjs
="$addobjs ecos.lo"
2925 machdep
="alpha_mach_dep.lo"
2926 if test x
"${ac_cv_lib_dl_dlopen}" != xyes
; then
2927 echo "configure: warning: OpenBSD/Alpha without dlopen(). Shared library support is disabled" 1>&2
2928 # Check whether --enable-shared or --disable-shared was given.
2929 if test "${enable_shared+set}" = set; then
2930 enableval
="$enable_shared"
2931 p
=${PACKAGE-default}
2933 yes) enable_shared
=yes ;;
2934 no
) enable_shared
=no
;;
2937 # Look at the argument we got. We use all the common list separators.
2938 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
2939 for pkg
in $enableval; do
2940 if test "X$pkg" = "X$p"; then
2954 machdep
="alpha_mach_dep.lo"
2956 i?
86-*-solaris2.
[89]*)
2957 cat >> confdefs.h
<<\EOF
2958 #define SOLARIS25_PROC_VDB_BUG_FIXED 1
2963 machdep
="mips_ultrix_mach_dep.lo"
2964 cat >> confdefs.h
<<\EOF
2965 #define STACKBASE __stackbase
2968 cat >> confdefs.h
<<\EOF
2969 #define DATASTART_IS_ETEXT 1
2974 machdep
="mips_ultrix_mach-dep.lo"
2979 machdep
="mips_sgi_mach_dep.lo"
2980 cat >> confdefs.h
<<\EOF
2981 #define NO_EXECUTE_PERMISSION 1
2985 sparc-sun-solaris2.3
*)
2986 machdep
="sparc_mach_dep.lo"
2987 cat >> confdefs.h
<<\EOF
2988 #define SUNOS53_SHARED_LIB 1
2992 sparc-sun-solaris2.
*)
2993 machdep
="sparc_mach_dep.lo"
2996 machdep
="mach_dep.lo ia64_save_regs_in_stack.lo"
2999 if test x
"$machdep" = x
; then
3000 machdep
="mach_dep.lo"
3002 addobjs
="$addobjs $machdep"
3006 sparc-sun-solaris2
*)
3007 if test "$GCC" = yes; then
3009 for i
in $CFLAGS; do
3014 new_CFLAGS
="$new_CFLAGS $i"
3018 CFLAGS
="$new_CFLAGS"
3026 cat >> confdefs.h
<<\EOF
3030 cat >> confdefs.h
<<\EOF
3031 #define NO_SIGNALS 1
3034 cat >> confdefs.h
<<\EOF
3035 #define NO_EXECUTE_PERMISSION 1
3038 cat >> confdefs.h
<<\EOF
3039 #define ALL_INTERIOR_POINTERS 1
3043 cat >> confdefs.h
<<\EOF
3044 #define JAVA_FINALIZATION 1
3047 cat >> confdefs.h
<<\EOF
3048 #define GC_GCJ_SUPPORT 1
3051 cat >> confdefs.h
<<\EOF
3052 #define ATOMIC_UNCOLLECTABLE 1
3056 if test -n "${with_cross_host}"; then
3057 cat >> confdefs.h
<<\EOF
3061 cat >> confdefs.h
<<\EOF
3062 #define NO_DEBUGGING 1
3067 # Check whether --enable-full-debug or --disable-full-debug was given.
3068 if test "${enable_full_debug+set}" = set; then
3069 enableval
="$enable_full_debug"
3070 if test "$enable_full_debug" = "yes"; then
3071 echo "configure: warning: "Must define GC_DEBUG and use debug alloc.
in clients.
"" 1>&2
3072 cat >> confdefs.h
<<\EOF
3073 #define KEEP_BACK_PTRS 1
3076 cat >> confdefs.h
<<\EOF
3077 #define DBG_HDRS_ALL 1
3082 cat >> confdefs.h
<<\EOF
3083 #define MAKE_BACK_GRAPH 1
3087 x86-
*-linux* | i586-
*-linux* | i686-
*-linux* | x86_64-
*-linux* )
3088 cat >> confdefs.h
<<\EOF
3089 #define MAKE_BACK_GRAPH 1
3092 echo "configure: warning: "Client must not use
-fomit-frame-pointer.
"" 1>&2
3093 cat >> confdefs.h
<<\EOF
3094 #define SAVE_CALL_COUNT 8
3103 if test -n "$with_cross_host" &&
3104 test x
"$with_cross_host" != x
"no"; then
3105 toolexecdir
='$(exec_prefix)/$(target_alias)'
3106 toolexeclibdir
='$(toolexecdir)/lib'
3108 toolexecdir
='$(libdir)/gcc-lib/$(target_alias)'
3109 toolexeclibdir
='$(libdir)'
3111 multi_os_directory
=`$CC -print-multi-os-directory`
3112 case $multi_os_directory in
3113 .
) ;; # Avoid trailing /.
3114 *) toolexeclibdir
=$toolexeclibdir/$multi_os_directory ;;
3119 if test "${multilib}" = "yes"; then
3120 multilib_arg
="--enable-multilib"
3126 cat > confcache
<<\EOF
3127 # This file is a shell script that caches the results of configure
3128 # tests run on this system so they can be shared between configure
3129 # scripts and configure runs. It is not useful on other systems.
3130 # If it contains results you don't want to keep, you may remove or edit it.
3132 # By default, configure uses ./config.cache as the cache file,
3133 # creating it if it does not exist already. You can give configure
3134 # the --cache-file=FILE option to use a different cache file; that is
3135 # what configure does when it calls configure scripts in
3136 # subdirectories, so they share the cache.
3137 # Giving --cache-file=/dev/null disables caching, for debugging configure.
3138 # config.status only pays attention to the cache file if you give it the
3139 # --recheck option to rerun configure.
3142 # The following way of writing the cache mishandles newlines in values,
3143 # but we know of no workaround that is simple, portable, and efficient.
3144 # So, don't put newlines in cache variables' values.
3145 # Ultrix sh set writes to stderr and can't be redirected directly,
3146 # and sets the high bit in the cache file unless we assign to the vars.
3148 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3150 # `set' does not quote correctly, so add quotes (double-quote substitution
3151 # turns \\\\ into \\, and sed turns \\ into \).
3153 -e "s/'/'\\\\''/g" \
3154 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3157 # `set' quotes correctly as required by POSIX, so do not add quotes.
3158 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3161 if cmp -s $cache_file confcache
; then
3164 if test -w $cache_file; then
3165 echo "updating cache $cache_file"
3166 cat confcache
> $cache_file
3168 echo "not updating unwritable cache $cache_file"
3173 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3175 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
3176 # Let make expand exec_prefix.
3177 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
3179 # Any assignment to VPATH causes Sun make to only execute
3180 # the first set of double-colon rules, so remove it if not needed.
3181 # If there is a colon in the path, we need to keep it.
3182 if test "x$srcdir" = x.
; then
3183 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
3186 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3188 # Transform confdefs.h into DEFS.
3189 # Protect against shell expansion while executing Makefile rules.
3190 # Protect against Makefile macro expansion.
3191 cat > conftest.defs
<<\EOF
3192 s
%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
3193 s
%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
3198 DEFS=`sed -f conftest.defs confdefs.h |
tr '\012' ' '`
3202 # Without the "./", some shells look in PATH for config.status.
3203 : ${CONFIG_STATUS=./config.status}
3205 echo creating $CONFIG_STATUS
3206 rm -f $CONFIG_STATUS
3207 cat > $CONFIG_STATUS <<EOF
3209 # Generated automatically by configure.
3210 # Run this file to recreate the current configuration.
3211 # This directory was configured as follows,
3212 # on host `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`:
3214 # $0 $ac_configure_args
3216 # Compiler output produced by configure, useful for debugging
3217 # configure, is in ./config.log if it exists.
3219 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3222 case "\$ac_option" in
3223 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3224 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3225 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3226 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3227 echo "$CONFIG_STATUS generated by autoconf version 2.13"
3229 -help | --help | --hel | --he | --h)
3230 echo "\$ac_cs_usage"; exit 0 ;;
3231 *) echo "\$ac_cs_usage"; exit 1 ;;
3235 ac_given_srcdir=$srcdir
3236 ac_given_INSTALL="$INSTALL"
3238 trap 'rm -fr `echo "Makefile include/Makefile" |
sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3240 cat >> $CONFIG_STATUS <<EOF
3242 # Protect against being on the right side of a sed subst in config.status.
3243 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3244 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3248 s%@CFLAGS@%$CFLAGS%g
3249 s%@CPPFLAGS@%$CPPFLAGS%g
3250 s%@CXXFLAGS@%$CXXFLAGS%g
3251 s%@FFLAGS@%$FFLAGS%g
3253 s%@LDFLAGS@%$LDFLAGS%g
3255 s%@exec_prefix@%$exec_prefix%g
3256 s%@prefix@%$prefix%g
3257 s%@program_transform_name@%$program_transform_name%g
3258 s%@bindir@%$bindir%g
3259 s%@sbindir@%$sbindir%g
3260 s%@libexecdir@%$libexecdir%g
3261 s%@datadir@%$datadir%g
3262 s%@sysconfdir@%$sysconfdir%g
3263 s%@sharedstatedir@%$sharedstatedir%g
3264 s%@localstatedir@%$localstatedir%g
3265 s%@libdir@%$libdir%g
3266 s%@includedir@%$includedir%g
3267 s%@oldincludedir@%$oldincludedir%g
3268 s%@infodir@%$infodir%g
3269 s%@mandir@%$mandir%g
3270 s%@gc_basedir@%$gc_basedir%g
3272 s%@host_alias@%$host_alias%g
3273 s%@host_cpu@%$host_cpu%g
3274 s%@host_vendor@%$host_vendor%g
3275 s%@host_os@%$host_os%g
3276 s%@target@%$target%g
3277 s%@target_alias@%$target_alias%g
3278 s%@target_cpu@%$target_cpu%g
3279 s%@target_vendor@%$target_vendor%g
3280 s%@target_os@%$target_os%g
3282 s%@build_alias@%$build_alias%g
3283 s%@build_cpu@%$build_cpu%g
3284 s%@build_vendor@%$build_vendor%g
3285 s%@build_os@%$build_os%g
3286 s%@mkinstalldirs@%$mkinstalldirs%g
3287 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3288 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
3289 s%@INSTALL_DATA@%$INSTALL_DATA%g
3290 s%@PACKAGE@%$PACKAGE%g
3291 s%@VERSION@%$VERSION%g
3292 s%@ACLOCAL@%$ACLOCAL%g
3293 s%@AUTOCONF@%$AUTOCONF%g
3294 s%@AUTOMAKE@%$AUTOMAKE%g
3295 s%@AUTOHEADER@%$AUTOHEADER%g
3296 s%@MAKEINFO@%$MAKEINFO%g
3297 s%@SET_MAKE@%$SET_MAKE%g
3302 s%@RANLIB@%$RANLIB%g
3303 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
3304 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
3306 s%@EXEEXT@%$EXEEXT%g
3307 s%@GC_CFLAGS@%$GC_CFLAGS%g
3309 s%@OBJEXT@%$OBJEXT%g
3311 s%@LIBTOOL@%$LIBTOOL%g
3312 s%@CXXCPP@%$CXXCPP%g
3313 s%@THREADLIBS@%$THREADLIBS%g
3314 s%@EXTRA_TEST_LIBS@%$EXTRA_TEST_LIBS%g
3315 s%@target_all@%$target_all%g
3316 s%@INCLUDES@%$INCLUDES%g
3317 s%@CXXINCLUDES@%$CXXINCLUDES%g
3318 s%@addobjs@%$addobjs%g
3319 s%@MY_CFLAGS@%$MY_CFLAGS%g
3320 s%@toolexecdir@%$toolexecdir%g
3321 s%@toolexeclibdir@%$toolexeclibdir%g
3326 cat >> $CONFIG_STATUS <<\EOF
3328 # Split the substitutions into bite-sized pieces for seds with
3329 # small command number limits, like on Digital OSF/1 and HP-UX.
3330 ac_max_sed_cmds=60 # Maximum number of lines to put in a sed script.
3331 ac_file=1 # Number of current file.
3332 ac_beg=1 # First line for current file.
3333 ac_end=$ac_max_sed_cmds # Line after last line for current file.
3336 while $ac_more_lines; do
3337 if test $ac_beg -gt 1; then
3338 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3340 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3342 if test ! -s conftest.s$ac_file; then
3344 rm -f conftest.s$ac_file
3346 if test -z "$ac_sed_cmds"; then
3347 ac_sed_cmds="sed -f conftest.s$ac_file"
3349 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3351 ac_file=`expr $ac_file + 1`
3353 ac_end=`expr $ac_end + $ac_max_sed_cmds`
3356 if test -z "$ac_sed_cmds"; then
3361 cat >> $CONFIG_STATUS <<EOF
3363 CONFIG_FILES=\${CONFIG_FILES-"Makefile include/Makefile"}
3365 cat >> $CONFIG_STATUS <<\EOF
3366 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3367 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3369 *:*) ac_file_in=`echo "$ac_file"|
sed 's%[^:]*:%%'`
3370 ac_file=`echo "$ac_file"|
sed 's%:.*%%'` ;;
3371 *) ac_file_in="${ac_file}.in" ;;
3374 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3376 # Remove last slash and all that follows it. Not all systems have dirname.
3377 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
3378 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3379 # The file is in a subdirectory.
3380 test ! -d "$ac_dir" && mkdir "$ac_dir"
3381 ac_dir_suffix="/`echo $ac_dir|
sed 's%^\./%%'`"
3382 # A "../" for each directory in $ac_dir_suffix.
3383 ac_dots=`echo $ac_dir_suffix|
sed 's%/[^/]*%../%g'`
3385 ac_dir_suffix= ac_dots=
3388 case "$ac_given_srcdir" in
3390 if test -z "$ac_dots"; then top_srcdir=.
3391 else top_srcdir=`echo $ac_dots|
sed 's%/$%%'`; fi ;;
3392 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3394 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3395 top_srcdir="$ac_dots$ac_given_srcdir" ;;
3398 case "$ac_given_INSTALL" in
3399 [/$]*) INSTALL="$ac_given_INSTALL" ;;
3400 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3403 echo creating "$ac_file"
3405 configure_input="Generated automatically from `echo $ac_file_in|
sed 's%.*/%%'` by configure."
3407 *Makefile*) ac_comsub="1i\\
3408 # $configure_input" ;;
3412 ac_file_inputs=`echo $ac_file_in|
sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3414 s%@configure_input@%$configure_input%g
3415 s%@srcdir@%$srcdir%g
3416 s%@top_srcdir@%$top_srcdir%g
3417 s%@INSTALL@%$INSTALL%g
3418 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3423 cat >> $CONFIG_STATUS <<EOF
3427 with_multisubdir=${with_multisubdir}
3428 ac_configure_args="${multilib_arg} ${ac_configure_args}"
3429 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
3430 gc_basedir=${gc_basedir}
3432 ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}"
3436 cat >> $CONFIG_STATUS <<\EOF
3438 echo "$DEFS" > boehm-cflags
3440 if test -n "$CONFIG_FILES"; then
3441 LD="${ORIGINAL_LD_FOR_MULTILIBS}"
3442 ac_file=Makefile . ${gc_basedir}/../config-ml.in
3446 chmod +x $CONFIG_STATUS
3447 rm -fr confdefs* $ac_clean_files
3448 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1