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-maintainer-mode enable make rules and dependencies not useful
16 (and sometimes confusing) to the casual installer"
18 --with-target-subdir=SUBDIR
19 configuring in a subdirectory"
21 --with-cross-host=HOST configuring with a cross compiler"
23 --enable-multilib build many library versions (default)"
25 --with-system-zlib use installed libz"
27 --enable-shared[=PKGS] build shared libraries [default=yes]"
29 --enable-static[=PKGS] build static libraries [default=yes]"
31 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
33 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
35 --disable-libtool-lock avoid locking (might break parallel builds)"
37 --with-pic try to use only PIC/non-PIC objects [default=use both]"
39 # Initialize some variables set by options.
40 # The variables have the same names as the options, with
41 # dashes changed to underlines.
43 cache_file
=.
/config.cache
52 program_transform_name
=s
,x
,x
,
61 bindir
='${exec_prefix}/bin'
62 sbindir
='${exec_prefix}/sbin'
63 libexecdir
='${exec_prefix}/libexec'
64 datadir
='${prefix}/share'
65 sysconfdir
='${prefix}/etc'
66 sharedstatedir
='${prefix}/com'
67 localstatedir
='${prefix}/var'
68 libdir
='${exec_prefix}/lib'
69 includedir
='${prefix}/include'
70 oldincludedir
='/usr/include'
71 infodir
='${prefix}/info'
72 mandir
='${prefix}/man'
74 # Initialize some other variables.
77 SHELL
=${CONFIG_SHELL-/bin/sh}
78 # Maximum number of lines to put in a shell here document.
85 # If the previous option needs an argument, assign it.
86 if test -n "$ac_prev"; then
87 eval "$ac_prev=\$ac_option"
93 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
97 # Accept the important Cygnus configure options, so we can diagnose typos.
101 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
103 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
104 bindir
="$ac_optarg" ;;
106 -build |
--build |
--buil |
--bui |
--bu)
108 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
109 build
="$ac_optarg" ;;
111 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
112 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
113 ac_prev
=cache_file
;;
114 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
115 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
116 cache_file
="$ac_optarg" ;;
118 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
120 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
122 datadir
="$ac_optarg" ;;
124 -disable-* |
--disable-*)
125 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
126 # Reject names that are not valid shell variable names.
127 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
128 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
130 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
131 eval "enable_${ac_feature}=no" ;;
133 -enable-* |
--enable-*)
134 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
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'`
144 eval "enable_${ac_feature}='$ac_optarg'" ;;
146 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
147 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
148 |
--exec |
--exe |
--ex)
149 ac_prev
=exec_prefix
;;
150 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
151 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
152 |
--exec=* |
--exe=* |
--ex=*)
153 exec_prefix
="$ac_optarg" ;;
155 -gas |
--gas |
--ga |
--g)
156 # Obsolete; use --with-gas.
159 -help |
--help |
--hel |
--he)
160 # Omit some internal or obsolete options to make the list less imposing.
161 # This message is too long to be a string in the A/UX 3.1 sh.
163 Usage: configure [options] [host]
164 Options: [defaults in brackets after descriptions]
166 --cache-file=FILE cache test results in FILE
167 --help print this message
168 --no-create do not create output files
169 --quiet, --silent do not print \`checking...' messages
170 --site-file=FILE use FILE as the site file
171 --version print the version of autoconf that created configure
172 Directory and file names:
173 --prefix=PREFIX install architecture-independent files in PREFIX
175 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
177 --bindir=DIR user executables in DIR [EPREFIX/bin]
178 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
179 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
180 --datadir=DIR read-only architecture-independent data in DIR
182 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
183 --sharedstatedir=DIR modifiable architecture-independent data in DIR
185 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
186 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
187 --includedir=DIR C header files in DIR [PREFIX/include]
188 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
189 --infodir=DIR info documentation in DIR [PREFIX/info]
190 --mandir=DIR man documentation in DIR [PREFIX/man]
191 --srcdir=DIR find the sources in DIR [configure dir or ..]
192 --program-prefix=PREFIX prepend PREFIX to installed program names
193 --program-suffix=SUFFIX append SUFFIX to installed program names
194 --program-transform-name=PROGRAM
195 run sed PROGRAM on installed program names
199 --build=BUILD configure for building on BUILD [BUILD=HOST]
200 --host=HOST configure for HOST [guessed]
201 --target=TARGET configure for TARGET [TARGET=HOST]
202 Features and packages:
203 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
204 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
205 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
206 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
207 --x-includes=DIR X include files are in DIR
208 --x-libraries=DIR X library files are in DIR
210 if test -n "$ac_help"; then
211 echo "--enable and --with options recognized:$ac_help"
215 -host |
--host |
--hos |
--ho)
217 -host=* |
--host=* |
--hos=* |
--ho=*)
220 -includedir |
--includedir |
--includedi |
--included |
--include \
221 |
--includ |
--inclu |
--incl |
--inc)
222 ac_prev
=includedir
;;
223 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
224 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
225 includedir
="$ac_optarg" ;;
227 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
229 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
230 infodir
="$ac_optarg" ;;
232 -libdir |
--libdir |
--libdi |
--libd)
234 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
235 libdir
="$ac_optarg" ;;
237 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
238 |
--libexe |
--libex |
--libe)
239 ac_prev
=libexecdir
;;
240 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
241 |
--libexe=* |
--libex=* |
--libe=*)
242 libexecdir
="$ac_optarg" ;;
244 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
245 |
--localstate |
--localstat |
--localsta |
--localst \
246 |
--locals |
--local |
--loca |
--loc |
--lo)
247 ac_prev
=localstatedir
;;
248 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
249 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
250 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
251 localstatedir
="$ac_optarg" ;;
253 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
255 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
256 mandir
="$ac_optarg" ;;
259 # Obsolete; use --without-fp.
262 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
266 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
267 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
270 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
271 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
272 |
--oldin |
--oldi |
--old |
--ol |
--o)
273 ac_prev
=oldincludedir
;;
274 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
275 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
276 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
277 oldincludedir
="$ac_optarg" ;;
279 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
281 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
282 prefix
="$ac_optarg" ;;
284 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
285 |
--program-pre |
--program-pr |
--program-p)
286 ac_prev
=program_prefix
;;
287 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
288 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
289 program_prefix
="$ac_optarg" ;;
291 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
292 |
--program-suf |
--program-su |
--program-s)
293 ac_prev
=program_suffix
;;
294 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
295 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
296 program_suffix
="$ac_optarg" ;;
298 -program-transform-name |
--program-transform-name \
299 |
--program-transform-nam |
--program-transform-na \
300 |
--program-transform-n |
--program-transform- \
301 |
--program-transform |
--program-transfor \
302 |
--program-transfo |
--program-transf \
303 |
--program-trans |
--program-tran \
304 |
--progr-tra |
--program-tr |
--program-t)
305 ac_prev
=program_transform_name
;;
306 -program-transform-name=* |
--program-transform-name=* \
307 |
--program-transform-nam=* |
--program-transform-na=* \
308 |
--program-transform-n=* |
--program-transform-=* \
309 |
--program-transform=* |
--program-transfor=* \
310 |
--program-transfo=* |
--program-transf=* \
311 |
--program-trans=* |
--program-tran=* \
312 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
313 program_transform_name
="$ac_optarg" ;;
315 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
316 |
-silent |
--silent |
--silen |
--sile |
--sil)
319 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
321 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
323 sbindir
="$ac_optarg" ;;
325 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
326 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
327 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
329 ac_prev
=sharedstatedir
;;
330 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
331 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
332 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
334 sharedstatedir
="$ac_optarg" ;;
336 -site |
--site |
--sit)
338 -site=* |
--site=* |
--sit=*)
341 -site-file |
--site-file |
--site-fil |
--site-fi |
--site-f)
343 -site-file=* |
--site-file=* |
--site-fil=* |
--site-fi=* |
--site-f=*)
344 sitefile
="$ac_optarg" ;;
346 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
348 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
349 srcdir
="$ac_optarg" ;;
351 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
352 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
353 ac_prev
=sysconfdir
;;
354 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
355 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
356 sysconfdir
="$ac_optarg" ;;
358 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
360 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
361 target
="$ac_optarg" ;;
363 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
366 -version |
--version |
--versio |
--versi |
--vers)
367 echo "configure generated by autoconf version 2.13"
371 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
372 # Reject names that are not valid shell variable names.
373 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
374 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
376 ac_package
=`echo $ac_package| sed 's/-/_/g'`
381 eval "with_${ac_package}='$ac_optarg'" ;;
383 -without-* |
--without-*)
384 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
385 # Reject names that are not valid shell variable names.
386 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
387 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
389 ac_package
=`echo $ac_package| sed 's/-/_/g'`
390 eval "with_${ac_package}=no" ;;
393 # Obsolete; use --with-x.
396 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
397 |
--x-incl |
--x-inc |
--x-in |
--x-i)
398 ac_prev
=x_includes
;;
399 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
400 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
401 x_includes
="$ac_optarg" ;;
403 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
404 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
405 ac_prev
=x_libraries
;;
406 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
407 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
408 x_libraries
="$ac_optarg" ;;
410 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
414 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
415 echo "configure: warning: $ac_option: invalid host type" 1>&2
417 if test "x$nonopt" != xNONE
; then
418 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
426 if test -n "$ac_prev"; then
427 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
430 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
432 # File descriptor usage:
435 # 2 errors and warnings
436 # 3 some systems may open it to /dev/tty
437 # 4 used on the Kubota Titan
438 # 6 checking for... messages and results
439 # 5 compiler messages saved in config.log
440 if test "$silent" = yes; then
448 This file contains any messages produced by compilers while
449 running configure, to aid debugging if configure makes a mistake.
452 # Strip out --no-create and --no-recursion so they do not pile up.
453 # Also quote any args containing shell metacharacters.
458 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
459 |
--no-cr |
--no-c) ;;
460 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
461 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
462 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
463 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
464 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
469 # Only set these to C if already set. These must not be set unconditionally
470 # because not all systems understand e.g. LANG=C (notably SCO).
471 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
472 # Non-C LC_CTYPE values break the ctype check.
473 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
474 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
475 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
476 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
478 # confdefs.h avoids OS command line length limits that DEFS can exceed.
479 rm -rf conftest
* confdefs.h
480 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
483 # A filename unique to this package, relative to the directory that
484 # configure is in, which we can look for to find out if srcdir is correct.
485 ac_unique_file
=zlib.h
487 # Find the source files, if location was not specified.
488 if test -z "$srcdir"; then
489 ac_srcdir_defaulted
=yes
490 # Try the directory containing this script, then its parent.
492 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
493 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
495 if test ! -r $srcdir/$ac_unique_file; then
499 ac_srcdir_defaulted
=no
501 if test ! -r $srcdir/$ac_unique_file; then
502 if test "$ac_srcdir_defaulted" = yes; then
503 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
505 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
508 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
510 # Prefer explicitly selected file to automatically selected ones.
511 if test -z "$sitefile"; then
512 if test -z "$CONFIG_SITE"; then
513 if test "x$prefix" != xNONE
; then
514 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
516 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
520 CONFIG_SITE
="$sitefile"
522 for ac_site_file
in $CONFIG_SITE; do
523 if test -r "$ac_site_file"; then
524 echo "loading site script $ac_site_file"
529 if test -r "$cache_file"; then
530 echo "loading cache $cache_file"
533 echo "creating cache $cache_file"
538 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
539 ac_cpp
='$CPP $CPPFLAGS'
540 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
541 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
542 cross_compiling
=$ac_cv_prog_cc_cross
546 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
547 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
548 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
555 ac_n
= ac_c
='\c' ac_t
=
561 if test "x${with_target_subdir}" != x
&& \
562 test "${srcdir}" = "."; then
563 if test "${with_target_subdir}" != "."; then
564 zlib_basedir
="${srcdir}/${with_multisrctop}../"
566 zlib_basedir
="${srcdir}/${with_multisrctop}"
569 zlib_basedir
="${srcdir}/"
573 for ac_dir
in $zlib_basedir..
$srcdir/$zlib_basedir..
; do
574 if test -f $ac_dir/install-sh
; then
576 ac_install_sh
="$ac_aux_dir/install-sh -c"
578 elif test -f $ac_dir/install.sh
; then
580 ac_install_sh
="$ac_aux_dir/install.sh -c"
584 if test -z "$ac_aux_dir"; then
585 { echo "configure: error: can not find install-sh or install.sh in $zlib_basedir.. $srcdir/$zlib_basedir.." 1>&2; exit 1; }
587 ac_config_guess
=$ac_aux_dir/config.guess
588 ac_config_sub
=$ac_aux_dir/config.sub
589 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
592 # This overrides the previous occurrence for automake, but not for
593 # autoconf, which is exactly what we want.
595 for ac_dir
in ..
$srcdir/..
; do
596 if test -f $ac_dir/install-sh
; then
598 ac_install_sh
="$ac_aux_dir/install-sh -c"
600 elif test -f $ac_dir/install.sh
; then
602 ac_install_sh
="$ac_aux_dir/install.sh -c"
606 if test -z "$ac_aux_dir"; then
607 { echo "configure: error: can not find install-sh or install.sh in .. $srcdir/.." 1>&2; exit 1; }
609 ac_config_guess
=$ac_aux_dir/config.guess
610 ac_config_sub
=$ac_aux_dir/config.sub
611 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
616 # Do some error checking and defaulting for the host and target type.
618 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
621 # 1. You are not allowed to specify --host, --target, and nonopt at the
623 # 2. Host defaults to nonopt.
624 # 3. If nonopt is not specified, then host defaults to the current host,
625 # as determined by config.guess.
626 # 4. Target and build default to nonopt.
627 # 5. If nonopt is not specified, then target and build default to host.
629 # The aliases save the names the user supplied, while $host etc.
630 # will get canonicalized.
631 case $host---$target---$nonopt in
632 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
633 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
637 # Make sure we can run config.sub.
638 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
639 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
642 echo $ac_n "checking host system type""... $ac_c" 1>&6
643 echo "configure:644: checking host system type" >&5
646 case "$host_alias" in
650 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
651 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
653 *) host_alias
=$nonopt ;;
657 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
658 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
659 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
660 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
661 echo "$ac_t""$host" 1>&6
663 echo $ac_n "checking target system type""... $ac_c" 1>&6
664 echo "configure:665: checking target system type" >&5
667 case "$target_alias" in
670 NONE
) target_alias
=$host_alias ;;
671 *) target_alias
=$nonopt ;;
675 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
676 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
677 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
678 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
679 echo "$ac_t""$target" 1>&6
681 echo $ac_n "checking build system type""... $ac_c" 1>&6
682 echo "configure:683: checking build system type" >&5
685 case "$build_alias" in
688 NONE
) build_alias
=$host_alias ;;
689 *) build_alias
=$nonopt ;;
693 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
694 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
695 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
696 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
697 echo "$ac_t""$build" 1>&6
699 test "$host_alias" != "$target_alias" &&
700 test "$program_prefix$program_suffix$program_transform_name" = \
702 program_prefix
=${target_alias}-
704 # Find a good install program. We prefer a C program (faster),
705 # so one script is as good as another. But avoid the broken or
706 # incompatible versions:
707 # SysV /etc/install, /usr/sbin/install
708 # SunOS /usr/etc/install
711 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
712 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
713 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
714 # ./install, which can be erroneously created by make from ./install.sh.
715 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
716 echo "configure:717: checking for a BSD compatible install" >&5
717 if test -z "$INSTALL"; then
718 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
719 echo $ac_n "(cached) $ac_c" 1>&6
721 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
722 for ac_dir
in $PATH; do
723 # Account for people who put trailing slashes in PATH elements.
725 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
727 # OSF1 and SCO ODT 3.0 have their own names for install.
728 # Don't use installbsd from OSF since it installs stuff as root
730 for ac_prog
in ginstall scoinst
install; do
731 if test -f $ac_dir/$ac_prog; then
732 if test $ac_prog = install &&
733 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
734 # AIX install. It has an incompatible calling convention.
737 ac_cv_path_install
="$ac_dir/$ac_prog -c"
748 if test "${ac_cv_path_install+set}" = set; then
749 INSTALL
="$ac_cv_path_install"
751 # As a last resort, use the slow shell script. We don't cache a
752 # path for INSTALL within a source directory, because that will
753 # break other packages using the cache if that directory is
754 # removed, or if the path is relative.
755 INSTALL
="$ac_install_sh"
758 echo "$ac_t""$INSTALL" 1>&6
760 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
761 # It thinks the first close brace ends the variable substitution.
762 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
764 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
766 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
768 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
769 echo "configure:770: checking whether build environment is sane" >&5
772 echo timestamp
> conftestfile
773 # Do `set' in a subshell so we don't clobber the current shell's
774 # arguments. Must try -L first in case configure is actually a
775 # symlink; some systems play weird games with the mod time of symlinks
776 # (eg FreeBSD returns the mod time of the symlink's containing
779 set X
`ls -Lt $srcdir/configure conftestfile 2> /dev/null`
780 if test "$*" = "X"; then
782 set X
`ls -t $srcdir/configure conftestfile`
784 if test "$*" != "X $srcdir/configure conftestfile" \
785 && test "$*" != "X conftestfile $srcdir/configure"; then
787 # If neither matched, then we have a broken ls. This can happen
788 # if, for instance, CONFIG_SHELL is bash and it inherits a
789 # broken ls alias from the environment. This has actually
790 # happened. Such a system could not be considered "sane".
791 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
792 alias in your environment" 1>&2; exit 1; }
795 test "$2" = conftestfile
801 { echo "configure: error: newly created file is older than distributed files!
802 Check your system clock" 1>&2; exit 1; }
805 echo "$ac_t""yes" 1>&6
806 if test "$program_transform_name" = s
,x
,x
,; then
807 program_transform_name
=
809 # Double any \ or $. echo might interpret backslashes.
810 cat <<\EOF_SED
> conftestsed
811 s
,\\,\\\\,g
; s
,\$
,$$
,g
813 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
816 test "$program_prefix" != NONE
&&
817 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
818 # Use a double $ so make ignores it.
819 test "$program_suffix" != NONE
&&
820 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
822 # sed with no file args requires a program.
823 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
825 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
826 echo "configure:827: checking whether ${MAKE-make} sets \${MAKE}" >&5
827 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
828 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
829 echo $ac_n "(cached) $ac_c" 1>&6
831 cat > conftestmake
<<\EOF
833 @
echo 'ac_maketemp="${MAKE}"'
835 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
836 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
837 if test -n "$ac_maketemp"; then
838 eval ac_cv_prog_make_
${ac_make}_set
=yes
840 eval ac_cv_prog_make_
${ac_make}_set
=no
844 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
845 echo "$ac_t""yes" 1>&6
848 echo "$ac_t""no" 1>&6
849 SET_MAKE
="MAKE=${MAKE-make}"
857 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status
; then
858 { echo "configure: error: source directory already configured; run "make distclean
" there first" 1>&2; exit 1; }
860 cat >> confdefs.h
<<EOF
861 #define PACKAGE "$PACKAGE"
864 cat >> confdefs.h
<<EOF
865 #define VERSION "$VERSION"
870 missing_dir
=`cd $ac_aux_dir && pwd`
871 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
872 echo "configure:873: checking for working aclocal" >&5
873 # Run test in a subshell; some versions of sh will print an error if
874 # an executable is not found, even if stderr is redirected.
875 # Redirect stdin to placate older versions of autoconf. Sigh.
876 if (aclocal
--version) < /dev
/null
> /dev
/null
2>&1; then
878 echo "$ac_t""found" 1>&6
880 ACLOCAL
="$missing_dir/missing aclocal"
881 echo "$ac_t""missing" 1>&6
884 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
885 echo "configure:886: checking for working autoconf" >&5
886 # Run test in a subshell; some versions of sh will print an error if
887 # an executable is not found, even if stderr is redirected.
888 # Redirect stdin to placate older versions of autoconf. Sigh.
889 if (autoconf
--version) < /dev
/null
> /dev
/null
2>&1; then
891 echo "$ac_t""found" 1>&6
893 AUTOCONF
="$missing_dir/missing autoconf"
894 echo "$ac_t""missing" 1>&6
897 echo $ac_n "checking for working automake""... $ac_c" 1>&6
898 echo "configure:899: checking for working automake" >&5
899 # Run test in a subshell; some versions of sh will print an error if
900 # an executable is not found, even if stderr is redirected.
901 # Redirect stdin to placate older versions of autoconf. Sigh.
902 if (automake
--version) < /dev
/null
> /dev
/null
2>&1; then
904 echo "$ac_t""found" 1>&6
906 AUTOMAKE
="$missing_dir/missing automake"
907 echo "$ac_t""missing" 1>&6
910 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
911 echo "configure:912: checking for working autoheader" >&5
912 # Run test in a subshell; some versions of sh will print an error if
913 # an executable is not found, even if stderr is redirected.
914 # Redirect stdin to placate older versions of autoconf. Sigh.
915 if (autoheader
--version) < /dev
/null
> /dev
/null
2>&1; then
916 AUTOHEADER
=autoheader
917 echo "$ac_t""found" 1>&6
919 AUTOHEADER
="$missing_dir/missing autoheader"
920 echo "$ac_t""missing" 1>&6
923 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
924 echo "configure:925: checking for working makeinfo" >&5
925 # Run test in a subshell; some versions of sh will print an error if
926 # an executable is not found, even if stderr is redirected.
927 # Redirect stdin to placate older versions of autoconf. Sigh.
928 if (makeinfo
--version) < /dev
/null
> /dev
/null
2>&1; then
930 echo "$ac_t""found" 1>&6
932 MAKEINFO
="$missing_dir/missing makeinfo"
933 echo "$ac_t""missing" 1>&6
938 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
939 echo "configure:940: checking whether to enable maintainer-specific portions of Makefiles" >&5
940 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
941 if test "${enable_maintainer_mode+set}" = set; then
942 enableval
="$enable_maintainer_mode"
943 USE_MAINTAINER_MODE
=$enableval
945 USE_MAINTAINER_MODE
=no
948 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
951 if test $USE_MAINTAINER_MODE = yes; then
952 MAINTAINER_MODE_TRUE
=
953 MAINTAINER_MODE_FALSE
='#'
955 MAINTAINER_MODE_TRUE
='#'
956 MAINTAINER_MODE_FALSE
=
958 MAINT
=$MAINTAINER_MODE_TRUE
962 # Check whether --with-target-subdir or --without-target-subdir was given.
963 if test "${with_target_subdir+set}" = set; then
964 withval
="$with_target_subdir"
968 # Check whether --with-cross-host or --without-cross-host was given.
969 if test "${with_cross_host+set}" = set; then
970 withval
="$with_cross_host"
975 # Check whether --enable-multilib or --disable-multilib was given.
976 if test "${enable_multilib+set}" = set; then
977 enableval
="$enable_multilib"
978 case "${enableval}" in
981 *) { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
984 test -z "$with_target_subdir" && multilib
=no || multilib
=yes
987 # Check whether --with-system-zlib or --without-system-zlib was given.
988 if test "${with_system_zlib+set}" = set; then
989 withval
="$with_system_zlib"
995 # Extract the first word of "gcc", so it can be a program name with args.
996 set dummy gcc
; ac_word
=$2
997 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
998 echo "configure:999: checking for $ac_word" >&5
999 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1000 echo $ac_n "(cached) $ac_c" 1>&6
1002 if test -n "$CC"; then
1003 ac_cv_prog_CC
="$CC" # Let the user override the test.
1005 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1007 for ac_dir
in $ac_dummy; do
1008 test -z "$ac_dir" && ac_dir
=.
1009 if test -f $ac_dir/$ac_word; then
1018 if test -n "$CC"; then
1019 echo "$ac_t""$CC" 1>&6
1021 echo "$ac_t""no" 1>&6
1024 if test -z "$CC"; then
1025 # Extract the first word of "cc", so it can be a program name with args.
1026 set dummy cc
; ac_word
=$2
1027 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1028 echo "configure:1029: checking for $ac_word" >&5
1029 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1030 echo $ac_n "(cached) $ac_c" 1>&6
1032 if test -n "$CC"; then
1033 ac_cv_prog_CC
="$CC" # Let the user override the test.
1035 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1038 for ac_dir
in $ac_dummy; do
1039 test -z "$ac_dir" && ac_dir
=.
1040 if test -f $ac_dir/$ac_word; then
1041 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1042 ac_prog_rejected
=yes
1050 if test $ac_prog_rejected = yes; then
1051 # We found a bogon in the path, so make sure we never use it.
1052 set dummy
$ac_cv_prog_CC
1054 if test $# -gt 0; then
1055 # We chose a different compiler from the bogus one.
1056 # However, it has the same basename, so the bogon will be chosen
1057 # first if we set CC to just the basename; use the full file name.
1059 set dummy
"$ac_dir/$ac_word" "$@"
1067 if test -n "$CC"; then
1068 echo "$ac_t""$CC" 1>&6
1070 echo "$ac_t""no" 1>&6
1073 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1076 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1077 echo "configure:1078: checking whether we are using GNU C" >&5
1078 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1079 echo $ac_n "(cached) $ac_c" 1>&6
1081 cat > conftest.c
<<EOF
1086 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1087: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1093 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1095 if test $ac_cv_prog_gcc = yes; then
1097 ac_test_CFLAGS
="${CFLAGS+set}"
1098 ac_save_CFLAGS
="$CFLAGS"
1100 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1101 echo "configure:1102: checking whether ${CC-cc} accepts -g" >&5
1102 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1103 echo $ac_n "(cached) $ac_c" 1>&6
1105 echo 'void f(){}' > conftest.c
1106 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1115 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1116 if test "$ac_test_CFLAGS" = set; then
1117 CFLAGS
="$ac_save_CFLAGS"
1118 elif test $ac_cv_prog_cc_g = yes; then
1125 test "${CFLAGS+set}" = set || CFLAGS
="-g"
1128 # We need AC_EXEEXT to keep automake happy in cygnus mode. However,
1129 # at least currently, we never actually build a program, so we never
1130 # need to use $(EXEEXT). Moreover, the test for EXEEXT normally
1131 # fails, because we are probably configuring with a cross compiler
1132 # which cant create executables. So we include AC_EXEEXT to keep
1133 # automake happy, but we dont execute it, since we dont care about
1136 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
1137 echo "configure:1138: checking for Cygwin environment" >&5
1138 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
1139 echo $ac_n "(cached) $ac_c" 1>&6
1141 cat > conftest.
$ac_ext <<EOF
1142 #line 1143 "configure"
1143 #include "confdefs.h"
1148 #define __CYGWIN__ __CYGWIN32__
1153 if { (eval echo configure
:1154: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1157 echo "configure: failed program was:" >&5
1158 cat conftest.
$ac_ext >&5
1166 echo "$ac_t""$ac_cv_cygwin" 1>&6
1168 test "$ac_cv_cygwin" = yes && CYGWIN
=yes
1169 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
1170 echo "configure:1171: checking for mingw32 environment" >&5
1171 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
1172 echo $ac_n "(cached) $ac_c" 1>&6
1174 cat > conftest.
$ac_ext <<EOF
1175 #line 1176 "configure"
1176 #include "confdefs.h"
1182 if { (eval echo configure
:1183: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1186 echo "configure: failed program was:" >&5
1187 cat conftest.
$ac_ext >&5
1195 echo "$ac_t""$ac_cv_mingw32" 1>&6
1197 test "$ac_cv_mingw32" = yes && MINGW32
=yes
1200 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1201 echo "configure:1202: checking for executable suffix" >&5
1202 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1203 echo $ac_n "(cached) $ac_c" 1>&6
1205 if test "$CYGWIN" = yes ||
test "$MINGW32" = yes; then
1209 echo 'int main () { return 0; }' > conftest.
$ac_ext
1211 if { (eval echo configure
:1212: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1212 for file in conftest.
*; do
1214 *.c |
*.o |
*.obj |
*.ilk |
*.pdb
) ;;
1215 *) ac_cv_exeext
=`echo $file | sed -e s/conftest//` ;;
1219 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1222 test x
"${ac_cv_exeext}" = x
&& ac_cv_exeext
=no
1227 test x
"${ac_cv_exeext}" != xno
&& EXEEXT
=${ac_cv_exeext}
1228 echo "$ac_t""${ac_cv_exeext}" 1>&6
1232 # Check whether --enable-shared or --disable-shared was given.
1233 if test "${enable_shared+set}" = set; then
1234 enableval
="$enable_shared"
1235 p
=${PACKAGE-default}
1237 yes) enable_shared
=yes ;;
1238 no
) enable_shared
=no
;;
1241 # Look at the argument we got. We use all the common list separators.
1242 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1243 for pkg
in $enableval; do
1244 if test "X$pkg" = "X$p"; then
1255 # Check whether --enable-static or --disable-static was given.
1256 if test "${enable_static+set}" = set; then
1257 enableval
="$enable_static"
1258 p
=${PACKAGE-default}
1260 yes) enable_static
=yes ;;
1261 no
) enable_static
=no
;;
1264 # Look at the argument we got. We use all the common list separators.
1265 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1266 for pkg
in $enableval; do
1267 if test "X$pkg" = "X$p"; then
1278 # Check whether --enable-fast-install or --disable-fast-install was given.
1279 if test "${enable_fast_install+set}" = set; then
1280 enableval
="$enable_fast_install"
1281 p
=${PACKAGE-default}
1283 yes) enable_fast_install
=yes ;;
1284 no
) enable_fast_install
=no
;;
1286 enable_fast_install
=no
1287 # Look at the argument we got. We use all the common list separators.
1288 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1289 for pkg
in $enableval; do
1290 if test "X$pkg" = "X$p"; then
1291 enable_fast_install
=yes
1298 enable_fast_install
=yes
1301 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1302 if test "${with_gnu_ld+set}" = set; then
1303 withval
="$with_gnu_ld"
1304 test "$withval" = no || with_gnu_ld
=yes
1310 if test "$GCC" = yes; then
1311 # Check if gcc -print-prog-name=ld gives a path.
1312 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1313 echo "configure:1314: checking for ld used by GCC" >&5
1316 # gcc leaves a trailing carriage return which upsets mingw
1317 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1319 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
1322 # Accept absolute paths.
1323 [\\/]* |
[A-Za-z
]:[\\/]*)
1324 re_direlt
='/[^/][^/]*/\.\./'
1325 # Canonicalize the path of ld
1326 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
1327 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
1328 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
1330 test -z "$LD" && LD
="$ac_prog"
1333 # If it fails, then pretend we aren't using GCC.
1337 # If it is relative, then search for the first ld in PATH.
1341 elif test "$with_gnu_ld" = yes; then
1342 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1343 echo "configure:1344: checking for GNU ld" >&5
1345 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1346 echo "configure:1347: checking for non-GNU ld" >&5
1348 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1349 echo $ac_n "(cached) $ac_c" 1>&6
1351 if test -z "$LD"; then
1352 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1353 for ac_dir
in $PATH; do
1354 test -z "$ac_dir" && ac_dir
=.
1355 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
1356 lt_cv_path_LD
="$ac_dir/$ac_prog"
1357 # Check to see if the program is GNU ld. I'd rather use --version,
1358 # but apparently some GNU ld's only accept -v.
1359 # Break only if it was the GNU/non-GNU ld that we prefer.
1360 if "$lt_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
1361 test "$with_gnu_ld" != no
&& break
1363 test "$with_gnu_ld" != yes && break
1369 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
1374 if test -n "$LD"; then
1375 echo "$ac_t""$LD" 1>&6
1377 echo "$ac_t""no" 1>&6
1379 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1380 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1381 echo "configure:1382: checking if the linker ($LD) is GNU ld" >&5
1382 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1383 echo $ac_n "(cached) $ac_c" 1>&6
1385 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1386 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
1387 lt_cv_prog_gnu_ld
=yes
1389 lt_cv_prog_gnu_ld
=no
1393 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1394 with_gnu_ld
=$lt_cv_prog_gnu_ld
1397 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1398 echo "configure:1399: checking for $LD option to reload object files" >&5
1399 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1400 echo $ac_n "(cached) $ac_c" 1>&6
1402 lt_cv_ld_reload_flag
='-r'
1405 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1406 reload_flag
=$lt_cv_ld_reload_flag
1407 test -n "$reload_flag" && reload_flag
=" $reload_flag"
1409 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1410 echo "configure:1411: checking for BSD-compatible nm" >&5
1411 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1412 echo $ac_n "(cached) $ac_c" 1>&6
1414 if test -n "$NM"; then
1415 # Let the user override the test.
1418 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1419 for ac_dir
in $PATH /usr
/ccs
/bin
/usr
/ucb
/bin
; do
1420 test -z "$ac_dir" && ac_dir
=.
1421 tmp_nm
=$ac_dir/${ac_tool_prefix}nm
1422 if test -f $tmp_nm ||
test -f $tmp_nm$ac_exeext ; then
1423 # Check to see if the nm accepts a BSD-compat flag.
1424 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1425 # nm: unknown option "B" ignored
1426 # Tru64's nm complains that /dev/null is an invalid object file
1427 if ($tmp_nm -B /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep '(/dev/null|Invalid file or object type)' >/dev
/null
; then
1428 lt_cv_path_NM
="$tmp_nm -B"
1430 elif ($tmp_nm -p /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep /dev
/null
>/dev
/null
; then
1431 lt_cv_path_NM
="$tmp_nm -p"
1434 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1435 continue # so that we can try to find one that supports BSD flags
1440 test -z "$lt_cv_path_NM" && lt_cv_path_NM
=nm
1445 echo "$ac_t""$NM" 1>&6
1447 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1448 echo "configure:1449: checking whether ln -s works" >&5
1449 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1450 echo $ac_n "(cached) $ac_c" 1>&6
1453 if ln -s X conftestdata
2>/dev
/null
1456 ac_cv_prog_LN_S
="ln -s"
1461 LN_S
="$ac_cv_prog_LN_S"
1462 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1463 echo "$ac_t""yes" 1>&6
1465 echo "$ac_t""no" 1>&6
1468 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1469 echo "configure:1470: checking how to recognise dependant libraries" >&5
1470 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1471 echo $ac_n "(cached) $ac_c" 1>&6
1473 lt_cv_file_magic_cmd
='$MAGIC_CMD'
1474 lt_cv_file_magic_test_file
=
1475 lt_cv_deplibs_check_method
='unknown'
1476 # Need to set the preceding variable on all platforms that support
1477 # interlibrary dependencies.
1478 # 'none' -- dependencies not supported.
1479 # `unknown' -- same as none, but documents that we really don't know.
1480 # 'pass_all' -- all dependencies passed with no checks.
1481 # 'test_compile' -- check by making test program.
1482 # 'file_magic [regex]' -- check by looking for files in library path
1483 # which responds to the $file_magic_cmd with a given egrep regex.
1484 # If you have `file' or equivalent on your system and you're not sure
1485 # whether `pass_all' will *always* work, you probably want this one.
1489 lt_cv_deplibs_check_method
=pass_all
1493 lt_cv_deplibs_check_method
=pass_all
1497 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1498 lt_cv_file_magic_cmd
='/usr/bin/file -L'
1499 lt_cv_file_magic_test_file
=/shlib
/libc.so
1502 cygwin
* | mingw
* |pw32
*)
1503 lt_cv_deplibs_check_method
='file_magic file format pei*-i386(.*architecture: i386)?'
1504 lt_cv_file_magic_cmd
='$OBJDUMP -f'
1507 darwin
* | rhapsody
*)
1508 lt_cv_deplibs_check_method
='file_magic Mach-O dynamically linked shared library'
1509 lt_cv_file_magic_cmd
='/usr/bin/file -L'
1511 rhapsody
* | darwin1.012
)
1512 lt_cv_file_magic_test_file
='/System/Library/Frameworks/System.framework/System'
1515 lt_cv_file_magic_test_file
='/usr/lib/libSystem.dylib'
1521 if echo __ELF__ |
$CC -E - |
grep __ELF__
> /dev
/null
; then
1524 # Not sure whether the presence of OpenBSD here was a mistake.
1525 # Let's accept both of them until this is cleared up.
1526 lt_cv_deplibs_check_method
='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1527 lt_cv_file_magic_cmd
=/usr
/bin
/file
1528 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so.*`
1532 lt_cv_deplibs_check_method
=pass_all
1537 lt_cv_deplibs_check_method
=pass_all
1541 lt_cv_deplibs_check_method
='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
1542 lt_cv_file_magic_cmd
=/usr
/bin
/file
1543 lt_cv_file_magic_test_file
=/usr
/lib
/libc.sl
1549 # this will be overridden with pass_all, but let us keep it just in case
1550 lt_cv_deplibs_check_method
="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
1554 *-32|
*"-32 ") libmagic
=32-bit;;
1555 *-n32|
*"-n32 ") libmagic
=N32
;;
1556 *-64|
*"-64 ") libmagic
=64-bit;;
1557 *) libmagic
=never-match
;;
1559 # this will be overridden with pass_all, but let us keep it just in case
1560 lt_cv_deplibs_check_method
="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
1563 lt_cv_file_magic_test_file
=`echo /lib${libsuff}/libc.so*`
1564 lt_cv_deplibs_check_method
=pass_all
1567 # This must be Linux ELF.
1570 alpha
* | hppa
* | i
*86 | powerpc
* | sparc
* | ia64
* )
1571 lt_cv_deplibs_check_method
=pass_all
;;
1573 # glibc up to 2.1.1 does not perform some relocations on ARM
1574 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
1576 lt_cv_file_magic_test_file
=`echo /lib/libc.so* /lib/libc-*.so`
1580 if echo __ELF__ |
$CC -E - |
grep __ELF__
> /dev
/null
; then
1581 lt_cv_deplibs_check_method
='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
1583 lt_cv_deplibs_check_method
='match_pattern /lib[^/\.]+\.so$'
1588 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
1589 lt_cv_file_magic_cmd
=/usr
/bin
/file
1590 lt_cv_file_magic_test_file
=/usr
/lib
/libnls.so
1593 osf3
* | osf4
* | osf5
*)
1594 # this will be overridden with pass_all, but let us keep it just in case
1595 lt_cv_deplibs_check_method
='file_magic COFF format alpha shared library'
1596 lt_cv_file_magic_test_file
=/shlib
/libc.so
1597 lt_cv_deplibs_check_method
=pass_all
1601 lt_cv_deplibs_check_method
=pass_all
1605 lt_cv_deplibs_check_method
=pass_all
1606 lt_cv_file_magic_test_file
=/lib
/libc.so
1609 sysv5uw
[78]* | sysv4
*uw2
*)
1610 lt_cv_deplibs_check_method
=pass_all
1613 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
1614 case $host_vendor in
1616 lt_cv_deplibs_check_method
=pass_all
1619 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]'
1620 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so*`
1628 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
1629 file_magic_cmd
=$lt_cv_file_magic_cmd
1630 deplibs_check_method
=$lt_cv_deplibs_check_method
1632 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
1633 echo "configure:1634: checking for object suffix" >&5
1634 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
1635 echo $ac_n "(cached) $ac_c" 1>&6
1638 echo 'int i = 1;' > conftest.
$ac_ext
1639 if { (eval echo configure
:1640: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1640 for ac_file
in conftest.
*; do
1643 *) ac_cv_objext
=`echo $ac_file | sed -e s/conftest.//` ;;
1647 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
1652 echo "$ac_t""$ac_cv_objext" 1>&6
1653 OBJEXT
=$ac_cv_objext
1654 ac_objext
=$ac_cv_objext
1656 if test $host != $build; then
1657 ac_tool_prefix
=${host_alias}-
1662 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
1664 # Only perform the check for file, if the check method requires it
1665 case $deplibs_check_method in
1667 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
1668 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
1669 echo "configure:1670: checking for ${ac_tool_prefix}file" >&5
1670 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
1671 echo $ac_n "(cached) $ac_c" 1>&6
1675 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
1678 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a dos path.
1681 ac_save_MAGIC_CMD
="$MAGIC_CMD"
1682 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1683 ac_dummy
="/usr/bin:$PATH"
1684 for ac_dir
in $ac_dummy; do
1685 test -z "$ac_dir" && ac_dir
=.
1686 if test -f $ac_dir/${ac_tool_prefix}file; then
1687 lt_cv_path_MAGIC_CMD
="$ac_dir/${ac_tool_prefix}file"
1688 if test -n "$file_magic_test_file"; then
1689 case $deplibs_check_method in
1691 file_magic_regex
="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
1692 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
1693 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
1694 egrep "$file_magic_regex" > /dev
/null
; then
1699 *** Warning: the command libtool uses to detect shared libraries,
1700 *** $file_magic_cmd, produces output that libtool cannot recognize.
1701 *** The result is that libtool may fail to recognize shared libraries
1702 *** as such. This will affect the creation of libtool libraries that
1703 *** depend on shared libraries, but programs linked with such libtool
1704 *** libraries will work regardless of this problem. Nevertheless, you
1705 *** may want to report the problem to your system manager and/or to
1706 *** bug-libtool@gnu.org
1716 MAGIC_CMD
="$ac_save_MAGIC_CMD"
1721 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
1722 if test -n "$MAGIC_CMD"; then
1723 echo "$ac_t""$MAGIC_CMD" 1>&6
1725 echo "$ac_t""no" 1>&6
1728 if test -z "$lt_cv_path_MAGIC_CMD"; then
1729 if test -n "$ac_tool_prefix"; then
1730 echo $ac_n "checking for file""... $ac_c" 1>&6
1731 echo "configure:1732: checking for file" >&5
1732 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
1733 echo $ac_n "(cached) $ac_c" 1>&6
1737 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
1740 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a dos path.
1743 ac_save_MAGIC_CMD
="$MAGIC_CMD"
1744 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1745 ac_dummy
="/usr/bin:$PATH"
1746 for ac_dir
in $ac_dummy; do
1747 test -z "$ac_dir" && ac_dir
=.
1748 if test -f $ac_dir/file; then
1749 lt_cv_path_MAGIC_CMD
="$ac_dir/file"
1750 if test -n "$file_magic_test_file"; then
1751 case $deplibs_check_method in
1753 file_magic_regex
="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
1754 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
1755 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
1756 egrep "$file_magic_regex" > /dev
/null
; then
1761 *** Warning: the command libtool uses to detect shared libraries,
1762 *** $file_magic_cmd, produces output that libtool cannot recognize.
1763 *** The result is that libtool may fail to recognize shared libraries
1764 *** as such. This will affect the creation of libtool libraries that
1765 *** depend on shared libraries, but programs linked with such libtool
1766 *** libraries will work regardless of this problem. Nevertheless, you
1767 *** may want to report the problem to your system manager and/or to
1768 *** bug-libtool@gnu.org
1778 MAGIC_CMD
="$ac_save_MAGIC_CMD"
1783 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
1784 if test -n "$MAGIC_CMD"; then
1785 echo "$ac_t""$MAGIC_CMD" 1>&6
1787 echo "$ac_t""no" 1>&6
1799 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1800 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
1801 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1802 echo "configure:1803: checking for $ac_word" >&5
1803 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1804 echo $ac_n "(cached) $ac_c" 1>&6
1806 if test -n "$RANLIB"; then
1807 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1809 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1811 for ac_dir
in $ac_dummy; do
1812 test -z "$ac_dir" && ac_dir
=.
1813 if test -f $ac_dir/$ac_word; then
1814 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
1821 RANLIB
="$ac_cv_prog_RANLIB"
1822 if test -n "$RANLIB"; then
1823 echo "$ac_t""$RANLIB" 1>&6
1825 echo "$ac_t""no" 1>&6
1829 if test -z "$ac_cv_prog_RANLIB"; then
1830 if test -n "$ac_tool_prefix"; then
1831 # Extract the first word of "ranlib", so it can be a program name with args.
1832 set dummy ranlib
; ac_word
=$2
1833 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1834 echo "configure:1835: checking for $ac_word" >&5
1835 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1836 echo $ac_n "(cached) $ac_c" 1>&6
1838 if test -n "$RANLIB"; then
1839 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1841 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1843 for ac_dir
in $ac_dummy; do
1844 test -z "$ac_dir" && ac_dir
=.
1845 if test -f $ac_dir/$ac_word; then
1846 ac_cv_prog_RANLIB
="ranlib"
1851 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1854 RANLIB
="$ac_cv_prog_RANLIB"
1855 if test -n "$RANLIB"; then
1856 echo "$ac_t""$RANLIB" 1>&6
1858 echo "$ac_t""no" 1>&6
1866 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1867 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
1868 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1869 echo "configure:1870: checking for $ac_word" >&5
1870 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1871 echo $ac_n "(cached) $ac_c" 1>&6
1873 if test -n "$STRIP"; then
1874 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
1876 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1878 for ac_dir
in $ac_dummy; do
1879 test -z "$ac_dir" && ac_dir
=.
1880 if test -f $ac_dir/$ac_word; then
1881 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
1888 STRIP
="$ac_cv_prog_STRIP"
1889 if test -n "$STRIP"; then
1890 echo "$ac_t""$STRIP" 1>&6
1892 echo "$ac_t""no" 1>&6
1896 if test -z "$ac_cv_prog_STRIP"; then
1897 if test -n "$ac_tool_prefix"; then
1898 # Extract the first word of "strip", so it can be a program name with args.
1899 set dummy strip
; ac_word
=$2
1900 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1901 echo "configure:1902: checking for $ac_word" >&5
1902 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1903 echo $ac_n "(cached) $ac_c" 1>&6
1905 if test -n "$STRIP"; then
1906 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
1908 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1910 for ac_dir
in $ac_dummy; do
1911 test -z "$ac_dir" && ac_dir
=.
1912 if test -f $ac_dir/$ac_word; then
1913 ac_cv_prog_STRIP
="strip"
1918 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP
=":"
1921 STRIP
="$ac_cv_prog_STRIP"
1922 if test -n "$STRIP"; then
1923 echo "$ac_t""$STRIP" 1>&6
1925 echo "$ac_t""no" 1>&6
1934 # Check for any special flags to pass to ltconfig.
1935 libtool_flags
="--cache-file=$cache_file"
1936 test "$enable_shared" = no
&& libtool_flags
="$libtool_flags --disable-shared"
1937 test "$enable_static" = no
&& libtool_flags
="$libtool_flags --disable-static"
1938 test "$enable_fast_install" = no
&& libtool_flags
="$libtool_flags --disable-fast-install"
1939 test "$GCC" = yes && libtool_flags
="$libtool_flags --with-gcc"
1940 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags
="$libtool_flags --with-gnu-ld"
1943 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
1944 if test "${enable_libtool_lock+set}" = set; then
1945 enableval
="$enable_libtool_lock"
1949 test "x$enable_libtool_lock" = xno
&& libtool_flags
="$libtool_flags --disable-lock"
1950 test x
"$silent" = xyes
&& libtool_flags
="$libtool_flags --silent"
1952 # Check whether --with-pic or --without-pic was given.
1953 if test "${with_pic+set}" = set; then
1960 test x
"$pic_mode" = xyes
&& libtool_flags
="$libtool_flags --prefer-pic"
1961 test x
"$pic_mode" = xno
&& libtool_flags
="$libtool_flags --prefer-non-pic"
1963 # Some flags need to be propagated to the compiler or linker for good
1967 # Find out which ABI we are using.
1968 echo '#line 1969 "configure"' > conftest.
$ac_ext
1969 if { (eval echo configure
:1970: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1970 case `/usr/bin/file conftest.$ac_objext` in
1986 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1987 SAVE_CFLAGS
="$CFLAGS"
1988 CFLAGS
="$CFLAGS -belf"
1989 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
1990 echo "configure:1991: checking whether the C compiler needs -belf" >&5
1991 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
1992 echo $ac_n "(cached) $ac_c" 1>&6
1996 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1997 ac_cpp
='$CPP $CPPFLAGS'
1998 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1999 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2000 cross_compiling
=$ac_cv_prog_cc_cross
2002 cat > conftest.
$ac_ext <<EOF
2003 #line 2004 "configure"
2004 #include "confdefs.h"
2010 if { (eval echo configure
:2011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2012 lt_cv_cc_needs_belf
=yes
2014 echo "configure: failed program was:" >&5
2015 cat conftest.
$ac_ext >&5
2017 lt_cv_cc_needs_belf
=no
2021 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2022 ac_cpp
='$CPP $CPPFLAGS'
2023 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2024 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2025 cross_compiling
=$ac_cv_prog_cc_cross
2029 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2030 if test x
"$lt_cv_cc_needs_belf" != x
"yes"; then
2031 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2032 CFLAGS
="$SAVE_CFLAGS"
2040 # Save cache, so that ltconfig can load it
2041 cat > confcache
<<\EOF
2042 # This file is a shell script that caches the results of configure
2043 # tests run on this system so they can be shared between configure
2044 # scripts and configure runs. It is not useful on other systems.
2045 # If it contains results you don't want to keep, you may remove or edit it.
2047 # By default, configure uses ./config.cache as the cache file,
2048 # creating it if it does not exist already. You can give configure
2049 # the --cache-file=FILE option to use a different cache file; that is
2050 # what configure does when it calls configure scripts in
2051 # subdirectories, so they share the cache.
2052 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2053 # config.status only pays attention to the cache file if you give it the
2054 # --recheck option to rerun configure.
2057 # The following way of writing the cache mishandles newlines in values,
2058 # but we know of no workaround that is simple, portable, and efficient.
2059 # So, don't put newlines in cache variables' values.
2060 # Ultrix sh set writes to stderr and can't be redirected directly,
2061 # and sets the high bit in the cache file unless we assign to the vars.
2063 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2065 # `set' does not quote correctly, so add quotes (double-quote substitution
2066 # turns \\\\ into \\, and sed turns \\ into \).
2068 -e "s/'/'\\\\''/g" \
2069 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2072 # `set' quotes correctly as required by POSIX, so do not add quotes.
2073 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2076 if cmp -s $cache_file confcache
; then
2079 if test -w $cache_file; then
2080 echo "updating cache $cache_file"
2081 cat confcache
> $cache_file
2083 echo "not updating unwritable cache $cache_file"
2089 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2090 AR
="$AR" LTCC
="$CC" CC
="$CC" CFLAGS
="$CFLAGS" CPPFLAGS
="$CPPFLAGS" \
2091 MAGIC_CMD
="$MAGIC_CMD" LD
="$LD" LDFLAGS
="$LDFLAGS" LIBS
="$LIBS" \
2092 LN_S
="$LN_S" NM
="$NM" RANLIB
="$RANLIB" STRIP
="$STRIP" \
2093 AS
="$AS" DLLTOOL
="$DLLTOOL" OBJDUMP
="$OBJDUMP" \
2094 objext
="$OBJEXT" exeext
="$EXEEXT" reload_flag
="$reload_flag" \
2095 deplibs_check_method
="$deplibs_check_method" file_magic_cmd
="$file_magic_cmd" \
2096 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig
--no-reexec \
2097 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh
$host \
2098 ||
{ echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2100 # Reload cache, that may have been modified by ltconfig
2101 if test -r "$cache_file"; then
2102 echo "loading cache $cache_file"
2105 echo "creating cache $cache_file"
2110 # This can be used to rebuild libtool when needed
2111 LIBTOOL_DEPS
="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2113 # Always use our own libtool.
2114 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
2116 # Redirect the config.log output again, so that the ltconfig log is not
2117 # clobbered by the next message.
2118 exec 5>>.
/config.log
2126 if test -z "$with_target_subdir" ||
test "$with_target_subdir" = "."; then
2133 # Find CPP now so that any conditional tests below won't do it and
2134 # thereby make the resulting definitions conditional.
2135 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2136 echo "configure:2137: checking how to run the C preprocessor" >&5
2137 # On Suns, sometimes $CPP names a directory.
2138 if test -n "$CPP" && test -d "$CPP"; then
2141 if test -z "$CPP"; then
2142 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2143 echo $ac_n "(cached) $ac_c" 1>&6
2145 # This must be in double quotes, not single quotes, because CPP may get
2146 # substituted into the Makefile and "${CC-cc}" will confuse make.
2148 # On the NeXT, cc -E runs the code through the compiler's parser,
2149 # not just through cpp.
2150 cat > conftest.
$ac_ext <<EOF
2151 #line 2152 "configure"
2152 #include "confdefs.h"
2156 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2157 { (eval echo configure
:2158: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2158 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2159 if test -z "$ac_err"; then
2163 echo "configure: failed program was:" >&5
2164 cat conftest.
$ac_ext >&5
2166 CPP
="${CC-cc} -E -traditional-cpp"
2167 cat > conftest.
$ac_ext <<EOF
2168 #line 2169 "configure"
2169 #include "confdefs.h"
2173 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2174 { (eval echo configure
:2175: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2175 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2176 if test -z "$ac_err"; then
2180 echo "configure: failed program was:" >&5
2181 cat conftest.
$ac_ext >&5
2183 CPP
="${CC-cc} -nologo -E"
2184 cat > conftest.
$ac_ext <<EOF
2185 #line 2186 "configure"
2186 #include "confdefs.h"
2190 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2191 { (eval echo configure
:2192: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2192 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2193 if test -z "$ac_err"; then
2197 echo "configure: failed program was:" >&5
2198 cat conftest.
$ac_ext >&5
2207 ac_cv_prog_CPP
="$CPP"
2209 CPP
="$ac_cv_prog_CPP"
2211 ac_cv_prog_CPP
="$CPP"
2213 echo "$ac_t""$CPP" 1>&6
2216 if test -n "$with_cross_host"; then
2217 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
2218 # may not work correctly, because the compiler may not be able to
2221 # We assume newlib. This lets us hard-code the functions we know
2223 cat >> confdefs.h
<<\EOF
2224 #define HAVE_MEMCPY 1
2227 cat >> confdefs.h
<<\EOF
2228 #define HAVE_STRERROR 1
2232 # We ignore --with-system-zlib in this case.
2233 target_all
=libzgcj.la
2235 for ac_hdr
in unistd.h
2237 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2238 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2239 echo "configure:2240: checking for $ac_hdr" >&5
2240 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2241 echo $ac_n "(cached) $ac_c" 1>&6
2243 cat > conftest.
$ac_ext <<EOF
2244 #line 2245 "configure"
2245 #include "confdefs.h"
2248 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2249 { (eval echo configure
:2250: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2250 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2251 if test -z "$ac_err"; then
2253 eval "ac_cv_header_$ac_safe=yes"
2256 echo "configure: failed program was:" >&5
2257 cat conftest.
$ac_ext >&5
2259 eval "ac_cv_header_$ac_safe=no"
2263 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2264 echo "$ac_t""yes" 1>&6
2265 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2266 cat >> confdefs.h
<<EOF
2267 #define $ac_tr_hdr 1
2271 echo "$ac_t""no" 1>&6
2275 for ac_func
in getpagesize
2277 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2278 echo "configure:2279: checking for $ac_func" >&5
2279 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2280 echo $ac_n "(cached) $ac_c" 1>&6
2282 cat > conftest.
$ac_ext <<EOF
2283 #line 2284 "configure"
2284 #include "confdefs.h"
2285 /* System header to define __stub macros and hopefully few prototypes,
2286 which can conflict with char $ac_func(); below. */
2288 /* Override any gcc2 internal prototype to avoid an error. */
2289 /* We use char because int might match the return type of a gcc2
2290 builtin and then its argument prototype would still apply. */
2295 /* The GNU C library defines this for functions which it implements
2296 to always fail with ENOSYS. Some functions are actually named
2297 something starting with __ and the normal name is an alias. */
2298 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2306 if { (eval echo configure
:2307: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2308 eval "ac_cv_func_$ac_func=yes"
2310 echo "configure: failed program was:" >&5
2311 cat conftest.
$ac_ext >&5
2313 eval "ac_cv_func_$ac_func=no"
2318 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2319 echo "$ac_t""yes" 1>&6
2320 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2321 cat >> confdefs.h
<<EOF
2322 #define $ac_tr_func 1
2326 echo "$ac_t""no" 1>&6
2330 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
2331 echo "configure:2332: checking for working mmap" >&5
2332 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
2333 echo $ac_n "(cached) $ac_c" 1>&6
2335 if test "$cross_compiling" = yes; then
2336 ac_cv_func_mmap_fixed_mapped
=no
2338 cat > conftest.
$ac_ext <<EOF
2339 #line 2340 "configure"
2340 #include "confdefs.h"
2342 /* Thanks to Mike Haertel and Jim Avera for this test.
2343 Here is a matrix of mmap possibilities:
2344 mmap private not fixed
2345 mmap private fixed at somewhere currently unmapped
2346 mmap private fixed at somewhere already mapped
2347 mmap shared not fixed
2348 mmap shared fixed at somewhere currently unmapped
2349 mmap shared fixed at somewhere already mapped
2350 For private mappings, we should verify that changes cannot be read()
2351 back from the file, nor mmap's back from the file at a different
2352 address. (There have been systems where private was not correctly
2353 implemented like the infamous i386 svr4.0, and systems where the
2354 VM page cache was not coherent with the filesystem buffer cache
2355 like early versions of FreeBSD and possibly contemporary NetBSD.)
2356 For shared mappings, we should conversely verify that changes get
2357 propogated back to all the places they're supposed to be.
2359 Grep wants private fixed already mapped.
2360 The main things grep needs to know about mmap are:
2361 * does it exist and is it safe to write into the mmap'd area
2362 * how to use it (BSD variants) */
2363 #include <sys/types.h>
2365 #include <sys/mman.h>
2367 /* This mess was copied from the GNU getpagesize.h. */
2368 #ifndef HAVE_GETPAGESIZE
2369 # ifdef HAVE_UNISTD_H
2370 # include <unistd.h>
2373 /* Assume that all systems that can run configure have sys/param.h. */
2374 # ifndef HAVE_SYS_PARAM_H
2375 # define HAVE_SYS_PARAM_H 1
2378 # ifdef _SC_PAGESIZE
2379 # define getpagesize() sysconf(_SC_PAGESIZE)
2380 # else /* no _SC_PAGESIZE */
2381 # ifdef HAVE_SYS_PARAM_H
2382 # include <sys/param.h>
2383 # ifdef EXEC_PAGESIZE
2384 # define getpagesize() EXEC_PAGESIZE
2385 # else /* no EXEC_PAGESIZE */
2387 # define getpagesize() NBPG * CLSIZE
2390 # endif /* no CLSIZE */
2391 # else /* no NBPG */
2393 # define getpagesize() NBPC
2394 # else /* no NBPC */
2396 # define getpagesize() PAGESIZE
2397 # endif /* PAGESIZE */
2398 # endif /* no NBPC */
2399 # endif /* no NBPG */
2400 # endif /* no EXEC_PAGESIZE */
2401 # else /* no HAVE_SYS_PARAM_H */
2402 # define getpagesize() 8192 /* punt totally */
2403 # endif /* no HAVE_SYS_PARAM_H */
2404 # endif /* no _SC_PAGESIZE */
2406 #endif /* no HAVE_GETPAGESIZE */
2409 extern "C" { void *malloc(unsigned); }
2417 char *data, *data2, *data3;
2421 pagesize = getpagesize();
2424 * First, make a file with some known garbage in it.
2426 data = malloc(pagesize);
2429 for (i = 0; i < pagesize; ++i)
2430 *(data + i) = rand();
2432 fd = creat("conftestmmap", 0600);
2435 if (write(fd, data, pagesize) != pagesize)
2440 * Next, try to mmap the file at a fixed address which
2441 * already has something else allocated at it. If we can,
2442 * also make sure that we see the same garbage.
2444 fd = open("conftestmmap", O_RDWR);
2447 data2 = malloc(2 * pagesize);
2450 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
2451 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
2452 MAP_PRIVATE | MAP_FIXED, fd, 0L))
2454 for (i = 0; i < pagesize; ++i)
2455 if (*(data + i) != *(data2 + i))
2459 * Finally, make sure that changes to the mapped area
2460 * do not percolate back to the file as seen by read().
2461 * (This is a bug on some variants of i386 svr4.0.)
2463 for (i = 0; i < pagesize; ++i)
2464 *(data2 + i) = *(data2 + i) + 1;
2465 data3 = malloc(pagesize);
2468 if (read(fd, data3, pagesize) != pagesize)
2470 for (i = 0; i < pagesize; ++i)
2471 if (*(data + i) != *(data3 + i))
2474 unlink("conftestmmap");
2479 if { (eval echo configure
:2480: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2481 ac_cv_func_mmap_fixed_mapped
=yes
2483 echo "configure: failed program was:" >&5
2484 cat conftest.
$ac_ext >&5
2486 ac_cv_func_mmap_fixed_mapped
=no
2493 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2494 if test $ac_cv_func_mmap_fixed_mapped = yes; then
2495 cat >> confdefs.h
<<\EOF
2501 for ac_func
in memcpy strerror
2503 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2504 echo "configure:2505: checking for $ac_func" >&5
2505 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2506 echo $ac_n "(cached) $ac_c" 1>&6
2508 cat > conftest.
$ac_ext <<EOF
2509 #line 2510 "configure"
2510 #include "confdefs.h"
2511 /* System header to define __stub macros and hopefully few prototypes,
2512 which can conflict with char $ac_func(); below. */
2514 /* Override any gcc2 internal prototype to avoid an error. */
2515 /* We use char because int might match the return type of a gcc2
2516 builtin and then its argument prototype would still apply. */
2521 /* The GNU C library defines this for functions which it implements
2522 to always fail with ENOSYS. Some functions are actually named
2523 something starting with __ and the normal name is an alias. */
2524 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2532 if { (eval echo configure
:2533: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2534 eval "ac_cv_func_$ac_func=yes"
2536 echo "configure: failed program was:" >&5
2537 cat conftest.
$ac_ext >&5
2539 eval "ac_cv_func_$ac_func=no"
2544 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2545 echo "$ac_t""yes" 1>&6
2546 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2547 cat >> confdefs.h
<<EOF
2548 #define $ac_tr_func 1
2552 echo "$ac_t""no" 1>&6
2557 if test "$with_system_zlib" = yes; then
2558 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
2559 echo "configure:2560: checking for deflate in -lz" >&5
2560 ac_lib_var
=`echo z'_'deflate | sed 'y%./+-%__p_%'`
2561 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2562 echo $ac_n "(cached) $ac_c" 1>&6
2564 ac_save_LIBS
="$LIBS"
2566 cat > conftest.
$ac_ext <<EOF
2567 #line 2568 "configure"
2568 #include "confdefs.h"
2569 /* Override any gcc2 internal prototype to avoid an error. */
2570 /* We use char because int might match the return type of a gcc2
2571 builtin and then its argument prototype would still apply. */
2578 if { (eval echo configure
:2579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2580 eval "ac_cv_lib_$ac_lib_var=yes"
2582 echo "configure: failed program was:" >&5
2583 cat conftest.
$ac_ext >&5
2585 eval "ac_cv_lib_$ac_lib_var=no"
2588 LIBS
="$ac_save_LIBS"
2591 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2592 echo "$ac_t""yes" 1>&6
2595 echo "$ac_t""no" 1>&6
2596 target_all
=libzgcj.la
2600 target_all
=libzgcj.la
2606 for ac_hdr
in unistd.h
2608 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2609 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2610 echo "configure:2611: checking for $ac_hdr" >&5
2611 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2612 echo $ac_n "(cached) $ac_c" 1>&6
2614 cat > conftest.
$ac_ext <<EOF
2615 #line 2616 "configure"
2616 #include "confdefs.h"
2619 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2620 { (eval echo configure
:2621: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2621 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2622 if test -z "$ac_err"; then
2624 eval "ac_cv_header_$ac_safe=yes"
2627 echo "configure: failed program was:" >&5
2628 cat conftest.
$ac_ext >&5
2630 eval "ac_cv_header_$ac_safe=no"
2634 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2635 echo "$ac_t""yes" 1>&6
2636 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2637 cat >> confdefs.h
<<EOF
2638 #define $ac_tr_hdr 1
2642 echo "$ac_t""no" 1>&6
2649 if test -z "$with_cross_host"; then
2651 USE_LIBDIR_FALSE
='#'
2658 if test -n "$with_target_subdir"; then
2659 TARGET_LIBRARY_TRUE
=
2660 TARGET_LIBRARY_FALSE
='#'
2662 TARGET_LIBRARY_TRUE
='#'
2663 TARGET_LIBRARY_FALSE
=
2666 if test "${multilib}" = "yes"; then
2667 multilib_arg
="--enable-multilib"
2673 cat > confcache
<<\EOF
2674 # This file is a shell script that caches the results of configure
2675 # tests run on this system so they can be shared between configure
2676 # scripts and configure runs. It is not useful on other systems.
2677 # If it contains results you don't want to keep, you may remove or edit it.
2679 # By default, configure uses ./config.cache as the cache file,
2680 # creating it if it does not exist already. You can give configure
2681 # the --cache-file=FILE option to use a different cache file; that is
2682 # what configure does when it calls configure scripts in
2683 # subdirectories, so they share the cache.
2684 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2685 # config.status only pays attention to the cache file if you give it the
2686 # --recheck option to rerun configure.
2689 # The following way of writing the cache mishandles newlines in values,
2690 # but we know of no workaround that is simple, portable, and efficient.
2691 # So, don't put newlines in cache variables' values.
2692 # Ultrix sh set writes to stderr and can't be redirected directly,
2693 # and sets the high bit in the cache file unless we assign to the vars.
2695 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2697 # `set' does not quote correctly, so add quotes (double-quote substitution
2698 # turns \\\\ into \\, and sed turns \\ into \).
2700 -e "s/'/'\\\\''/g" \
2701 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2704 # `set' quotes correctly as required by POSIX, so do not add quotes.
2705 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2708 if cmp -s $cache_file confcache
; then
2711 if test -w $cache_file; then
2712 echo "updating cache $cache_file"
2713 cat confcache
> $cache_file
2715 echo "not updating unwritable cache $cache_file"
2720 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2722 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
2723 # Let make expand exec_prefix.
2724 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
2726 # Any assignment to VPATH causes Sun make to only execute
2727 # the first set of double-colon rules, so remove it if not needed.
2728 # If there is a colon in the path, we need to keep it.
2729 if test "x$srcdir" = x.
; then
2730 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
2733 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2735 # Transform confdefs.h into DEFS.
2736 # Protect against shell expansion while executing Makefile rules.
2737 # Protect against Makefile macro expansion.
2738 cat > conftest.defs
<<\EOF
2739 s
%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
2740 s
%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
2745 DEFS=`sed -f conftest.defs confdefs.h |
tr '\012' ' '`
2749 # Without the "./", some shells look in PATH for config.status.
2750 : ${CONFIG_STATUS=./config.status}
2752 echo creating $CONFIG_STATUS
2753 rm -f $CONFIG_STATUS
2754 cat > $CONFIG_STATUS <<EOF
2756 # Generated automatically by configure.
2757 # Run this file to recreate the current configuration.
2758 # This directory was configured as follows,
2759 # on host `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`:
2761 # $0 $ac_configure_args
2763 # Compiler output produced by configure, useful for debugging
2764 # configure, is in ./config.log if it exists.
2766 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2769 case "\$ac_option" in
2770 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2771 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2772 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2773 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2774 echo "$CONFIG_STATUS generated by autoconf version 2.13"
2776 -help | --help | --hel | --he | --h)
2777 echo "\$ac_cs_usage"; exit 0 ;;
2778 *) echo "\$ac_cs_usage"; exit 1 ;;
2782 ac_given_srcdir=$srcdir
2783 ac_given_INSTALL="$INSTALL"
2785 trap 'rm -fr `echo "Makefile" |
sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2787 cat >> $CONFIG_STATUS <<EOF
2789 # Protect against being on the right side of a sed subst in config.status.
2790 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2791 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2795 s%@CFLAGS@%$CFLAGS%g
2796 s%@CPPFLAGS@%$CPPFLAGS%g
2797 s%@CXXFLAGS@%$CXXFLAGS%g
2798 s%@FFLAGS@%$FFLAGS%g
2800 s%@LDFLAGS@%$LDFLAGS%g
2802 s%@exec_prefix@%$exec_prefix%g
2803 s%@prefix@%$prefix%g
2804 s%@program_transform_name@%$program_transform_name%g
2805 s%@bindir@%$bindir%g
2806 s%@sbindir@%$sbindir%g
2807 s%@libexecdir@%$libexecdir%g
2808 s%@datadir@%$datadir%g
2809 s%@sysconfdir@%$sysconfdir%g
2810 s%@sharedstatedir@%$sharedstatedir%g
2811 s%@localstatedir@%$localstatedir%g
2812 s%@libdir@%$libdir%g
2813 s%@includedir@%$includedir%g
2814 s%@oldincludedir@%$oldincludedir%g
2815 s%@infodir@%$infodir%g
2816 s%@mandir@%$mandir%g
2817 s%@zlib_basedir@%$zlib_basedir%g
2819 s%@host_alias@%$host_alias%g
2820 s%@host_cpu@%$host_cpu%g
2821 s%@host_vendor@%$host_vendor%g
2822 s%@host_os@%$host_os%g
2823 s%@target@%$target%g
2824 s%@target_alias@%$target_alias%g
2825 s%@target_cpu@%$target_cpu%g
2826 s%@target_vendor@%$target_vendor%g
2827 s%@target_os@%$target_os%g
2829 s%@build_alias@%$build_alias%g
2830 s%@build_cpu@%$build_cpu%g
2831 s%@build_vendor@%$build_vendor%g
2832 s%@build_os@%$build_os%g
2833 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2834 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
2835 s%@INSTALL_DATA@%$INSTALL_DATA%g
2836 s%@PACKAGE@%$PACKAGE%g
2837 s%@VERSION@%$VERSION%g
2838 s%@ACLOCAL@%$ACLOCAL%g
2839 s%@AUTOCONF@%$AUTOCONF%g
2840 s%@AUTOMAKE@%$AUTOMAKE%g
2841 s%@AUTOHEADER@%$AUTOHEADER%g
2842 s%@MAKEINFO@%$MAKEINFO%g
2843 s%@SET_MAKE@%$SET_MAKE%g
2844 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
2845 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
2848 s%@EXEEXT@%$EXEEXT%g
2850 s%@OBJEXT@%$OBJEXT%g
2851 s%@RANLIB@%$RANLIB%g
2853 s%@LIBTOOL@%$LIBTOOL%g
2854 s%@COMPPATH@%$COMPPATH%g
2856 s%@target_all@%$target_all%g
2857 s%@USE_LIBDIR_TRUE@%$USE_LIBDIR_TRUE%g
2858 s%@USE_LIBDIR_FALSE@%$USE_LIBDIR_FALSE%g
2859 s%@TARGET_LIBRARY_TRUE@%$TARGET_LIBRARY_TRUE%g
2860 s%@TARGET_LIBRARY_FALSE@%$TARGET_LIBRARY_FALSE%g
2865 cat >> $CONFIG_STATUS <<\EOF
2867 # Split the substitutions into bite-sized pieces for seds with
2868 # small command number limits, like on Digital OSF/1 and HP-UX.
2869 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2870 ac_file=1 # Number of current file.
2871 ac_beg=1 # First line for current file.
2872 ac_end=$ac_max_sed_cmds # Line after last line for current file.
2875 while $ac_more_lines; do
2876 if test $ac_beg -gt 1; then
2877 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2879 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2881 if test ! -s conftest.s$ac_file; then
2883 rm -f conftest.s$ac_file
2885 if test -z "$ac_sed_cmds"; then
2886 ac_sed_cmds="sed -f conftest.s$ac_file"
2888 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2890 ac_file=`expr $ac_file + 1`
2892 ac_end=`expr $ac_end + $ac_max_sed_cmds`
2895 if test -z "$ac_sed_cmds"; then
2900 cat >> $CONFIG_STATUS <<EOF
2902 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
2904 cat >> $CONFIG_STATUS <<\EOF
2905 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2906 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2908 *:*) ac_file_in=`echo "$ac_file"|
sed 's%[^:]*:%%'`
2909 ac_file=`echo "$ac_file"|
sed 's%:.*%%'` ;;
2910 *) ac_file_in="${ac_file}.in" ;;
2913 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2915 # Remove last slash and all that follows it. Not all systems have dirname.
2916 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
2917 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2918 # The file is in a subdirectory.
2919 test ! -d "$ac_dir" && mkdir "$ac_dir"
2920 ac_dir_suffix="/`echo $ac_dir|
sed 's%^\./%%'`"
2921 # A "../" for each directory in $ac_dir_suffix.
2922 ac_dots=`echo $ac_dir_suffix|
sed 's%/[^/]*%../%g'`
2924 ac_dir_suffix= ac_dots=
2927 case "$ac_given_srcdir" in
2929 if test -z "$ac_dots"; then top_srcdir=.
2930 else top_srcdir=`echo $ac_dots|
sed 's%/$%%'`; fi ;;
2931 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2933 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2934 top_srcdir="$ac_dots$ac_given_srcdir" ;;
2937 case "$ac_given_INSTALL" in
2938 [/$]*) INSTALL="$ac_given_INSTALL" ;;
2939 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2942 echo creating "$ac_file"
2944 configure_input="Generated automatically from `echo $ac_file_in|
sed 's%.*/%%'` by configure."
2946 *Makefile*) ac_comsub="1i\\
2947 # $configure_input" ;;
2951 ac_file_inputs=`echo $ac_file_in|
sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2953 s%@configure_input@%$configure_input%g
2954 s%@srcdir@%$srcdir%g
2955 s%@top_srcdir@%$top_srcdir%g
2956 s%@INSTALL@%$INSTALL%g
2957 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2962 cat >> $CONFIG_STATUS <<EOF
2966 with_multisubdir=${with_multisubdir}
2967 ac_configure_args="${multilib_arg} ${ac_configure_args}"
2968 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
2969 zlib_basedir=${zlib_basedir}
2974 cat >> $CONFIG_STATUS <<\EOF
2975 if test -n "$CONFIG_FILES"; then
2976 ac_file=Makefile . ${zlib_basedir}/../config-ml.in
2980 chmod +x $CONFIG_STATUS
2981 rm -fr confdefs* $ac_clean_files
2982 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1