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 --with-auxdir=DIR path to autoconf auxiliary files"
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 --enable-java-gc=TYPE choose garbage collector [boehm]"
34 --enable-ltdl-install install libltdl"
36 # Initialize some variables set by options.
37 # The variables have the same names as the options, with
38 # dashes changed to underlines.
40 cache_file
=.
/config.cache
49 program_transform_name
=s
,x
,x
,
57 bindir
='${exec_prefix}/bin'
58 sbindir
='${exec_prefix}/sbin'
59 libexecdir
='${exec_prefix}/libexec'
60 datadir
='${prefix}/share'
61 sysconfdir
='${prefix}/etc'
62 sharedstatedir
='${prefix}/com'
63 localstatedir
='${prefix}/var'
64 libdir
='${exec_prefix}/lib'
65 includedir
='${prefix}/include'
66 oldincludedir
='/usr/include'
67 infodir
='${prefix}/info'
68 mandir
='${prefix}/man'
70 # Initialize some other variables.
73 SHELL
=${CONFIG_SHELL-/bin/sh}
74 # Maximum number of lines to put in a shell here document.
81 # If the previous option needs an argument, assign it.
82 if test -n "$ac_prev"; then
83 eval "$ac_prev=\$ac_option"
89 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
93 # Accept the important Cygnus configure options, so we can diagnose typos.
97 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
99 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
100 bindir
="$ac_optarg" ;;
102 -build |
--build |
--buil |
--bui |
--bu)
104 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
105 build
="$ac_optarg" ;;
107 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
108 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
109 ac_prev
=cache_file
;;
110 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
111 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
112 cache_file
="$ac_optarg" ;;
114 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
116 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
118 datadir
="$ac_optarg" ;;
120 -disable-* |
--disable-*)
121 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
122 # Reject names that are not valid shell variable names.
123 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
124 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
126 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
127 eval "enable_${ac_feature}=no" ;;
129 -enable-* |
--enable-*)
130 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
131 # Reject names that are not valid shell variable names.
132 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
133 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
135 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
140 eval "enable_${ac_feature}='$ac_optarg'" ;;
142 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
143 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
144 |
--exec |
--exe |
--ex)
145 ac_prev
=exec_prefix
;;
146 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
147 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
148 |
--exec=* |
--exe=* |
--ex=*)
149 exec_prefix
="$ac_optarg" ;;
151 -gas |
--gas |
--ga |
--g)
152 # Obsolete; use --with-gas.
155 -help |
--help |
--hel |
--he)
156 # Omit some internal or obsolete options to make the list less imposing.
157 # This message is too long to be a string in the A/UX 3.1 sh.
159 Usage: configure [options] [host]
160 Options: [defaults in brackets after descriptions]
162 --cache-file=FILE cache test results in FILE
163 --help print this message
164 --no-create do not create output files
165 --quiet, --silent do not print \`checking...' messages
166 --version print the version of autoconf that created configure
167 Directory and file names:
168 --prefix=PREFIX install architecture-independent files in PREFIX
170 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
172 --bindir=DIR user executables in DIR [EPREFIX/bin]
173 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
174 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
175 --datadir=DIR read-only architecture-independent data in DIR
177 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
178 --sharedstatedir=DIR modifiable architecture-independent data in DIR
180 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
181 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
182 --includedir=DIR C header files in DIR [PREFIX/include]
183 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
184 --infodir=DIR info documentation in DIR [PREFIX/info]
185 --mandir=DIR man documentation in DIR [PREFIX/man]
186 --srcdir=DIR find the sources in DIR [configure dir or ..]
187 --program-prefix=PREFIX prepend PREFIX to installed program names
188 --program-suffix=SUFFIX append SUFFIX to installed program names
189 --program-transform-name=PROGRAM
190 run sed PROGRAM on installed program names
194 --build=BUILD configure for building on BUILD [BUILD=HOST]
195 --host=HOST configure for HOST [guessed]
196 --target=TARGET configure for TARGET [TARGET=HOST]
197 Features and packages:
198 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
199 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
200 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
201 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
202 --x-includes=DIR X include files are in DIR
203 --x-libraries=DIR X library files are in DIR
205 if test -n "$ac_help"; then
206 echo "--enable and --with options recognized:$ac_help"
210 -host |
--host |
--hos |
--ho)
212 -host=* |
--host=* |
--hos=* |
--ho=*)
215 -includedir |
--includedir |
--includedi |
--included |
--include \
216 |
--includ |
--inclu |
--incl |
--inc)
217 ac_prev
=includedir
;;
218 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
219 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
220 includedir
="$ac_optarg" ;;
222 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
224 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
225 infodir
="$ac_optarg" ;;
227 -libdir |
--libdir |
--libdi |
--libd)
229 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
230 libdir
="$ac_optarg" ;;
232 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
233 |
--libexe |
--libex |
--libe)
234 ac_prev
=libexecdir
;;
235 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
236 |
--libexe=* |
--libex=* |
--libe=*)
237 libexecdir
="$ac_optarg" ;;
239 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
240 |
--localstate |
--localstat |
--localsta |
--localst \
241 |
--locals |
--local |
--loca |
--loc |
--lo)
242 ac_prev
=localstatedir
;;
243 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
244 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
245 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
246 localstatedir
="$ac_optarg" ;;
248 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
250 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
251 mandir
="$ac_optarg" ;;
254 # Obsolete; use --without-fp.
257 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
261 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
262 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
265 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
266 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
267 |
--oldin |
--oldi |
--old |
--ol |
--o)
268 ac_prev
=oldincludedir
;;
269 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
270 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
271 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
272 oldincludedir
="$ac_optarg" ;;
274 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
276 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
277 prefix
="$ac_optarg" ;;
279 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
280 |
--program-pre |
--program-pr |
--program-p)
281 ac_prev
=program_prefix
;;
282 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
283 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
284 program_prefix
="$ac_optarg" ;;
286 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
287 |
--program-suf |
--program-su |
--program-s)
288 ac_prev
=program_suffix
;;
289 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
290 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
291 program_suffix
="$ac_optarg" ;;
293 -program-transform-name |
--program-transform-name \
294 |
--program-transform-nam |
--program-transform-na \
295 |
--program-transform-n |
--program-transform- \
296 |
--program-transform |
--program-transfor \
297 |
--program-transfo |
--program-transf \
298 |
--program-trans |
--program-tran \
299 |
--progr-tra |
--program-tr |
--program-t)
300 ac_prev
=program_transform_name
;;
301 -program-transform-name=* |
--program-transform-name=* \
302 |
--program-transform-nam=* |
--program-transform-na=* \
303 |
--program-transform-n=* |
--program-transform-=* \
304 |
--program-transform=* |
--program-transfor=* \
305 |
--program-transfo=* |
--program-transf=* \
306 |
--program-trans=* |
--program-tran=* \
307 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
308 program_transform_name
="$ac_optarg" ;;
310 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
311 |
-silent |
--silent |
--silen |
--sile |
--sil)
314 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
316 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
318 sbindir
="$ac_optarg" ;;
320 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
321 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
322 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
324 ac_prev
=sharedstatedir
;;
325 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
326 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
327 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
329 sharedstatedir
="$ac_optarg" ;;
331 -site |
--site |
--sit)
333 -site=* |
--site=* |
--sit=*)
336 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
338 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
339 srcdir
="$ac_optarg" ;;
341 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
342 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
343 ac_prev
=sysconfdir
;;
344 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
345 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
346 sysconfdir
="$ac_optarg" ;;
348 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
350 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
351 target
="$ac_optarg" ;;
353 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
356 -version |
--version |
--versio |
--versi |
--vers)
357 echo "configure generated by autoconf version 2.13"
361 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
362 # Reject names that are not valid shell variable names.
363 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
364 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
366 ac_package
=`echo $ac_package| sed 's/-/_/g'`
371 eval "with_${ac_package}='$ac_optarg'" ;;
373 -without-* |
--without-*)
374 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
375 # Reject names that are not valid shell variable names.
376 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
377 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
379 ac_package
=`echo $ac_package| sed 's/-/_/g'`
380 eval "with_${ac_package}=no" ;;
383 # Obsolete; use --with-x.
386 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
387 |
--x-incl |
--x-inc |
--x-in |
--x-i)
388 ac_prev
=x_includes
;;
389 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
390 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
391 x_includes
="$ac_optarg" ;;
393 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
394 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
395 ac_prev
=x_libraries
;;
396 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
397 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
398 x_libraries
="$ac_optarg" ;;
400 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
404 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
405 echo "configure: warning: $ac_option: invalid host type" 1>&2
407 if test "x$nonopt" != xNONE
; then
408 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
416 if test -n "$ac_prev"; then
417 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
420 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
422 # File descriptor usage:
425 # 2 errors and warnings
426 # 3 some systems may open it to /dev/tty
427 # 4 used on the Kubota Titan
428 # 6 checking for... messages and results
429 # 5 compiler messages saved in config.log
430 if test "$silent" = yes; then
438 This file contains any messages produced by compilers while
439 running configure, to aid debugging if configure makes a mistake.
442 # Strip out --no-create and --no-recursion so they do not pile up.
443 # Also quote any args containing shell metacharacters.
448 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
449 |
--no-cr |
--no-c) ;;
450 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
451 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
452 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
453 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
454 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
459 # Only set these to C if already set. These must not be set unconditionally
460 # because not all systems understand e.g. LANG=C (notably SCO).
461 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
462 # Non-C LC_CTYPE values break the ctype check.
463 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
464 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
465 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
466 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
468 # confdefs.h avoids OS command line length limits that DEFS can exceed.
469 rm -rf conftest
* confdefs.h
470 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
473 # A filename unique to this package, relative to the directory that
474 # configure is in, which we can look for to find out if srcdir is correct.
475 ac_unique_file
=ltdl.c
477 # Find the source files, if location was not specified.
478 if test -z "$srcdir"; then
479 ac_srcdir_defaulted
=yes
480 # Try the directory containing this script, then its parent.
482 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
483 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
485 if test ! -r $srcdir/$ac_unique_file; then
489 ac_srcdir_defaulted
=no
491 if test ! -r $srcdir/$ac_unique_file; then
492 if test "$ac_srcdir_defaulted" = yes; then
493 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
495 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
498 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
500 # Prefer explicitly selected file to automatically selected ones.
501 if test -z "$CONFIG_SITE"; then
502 if test "x$prefix" != xNONE
; then
503 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
505 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
508 for ac_site_file
in $CONFIG_SITE; do
509 if test -r "$ac_site_file"; then
510 echo "loading site script $ac_site_file"
515 if test -r "$cache_file"; then
516 echo "loading cache $cache_file"
519 echo "creating cache $cache_file"
524 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
525 ac_cpp
='$CPP $CPPFLAGS'
526 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
527 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
528 cross_compiling
=$ac_cv_prog_cc_cross
532 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
533 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
534 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
541 ac_n
= ac_c
='\c' ac_t
=
544 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
545 echo "configure:546: checking for Cygwin environment" >&5
546 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
547 echo $ac_n "(cached) $ac_c" 1>&6
549 cat > conftest.
$ac_ext <<EOF
550 #line 551 "configure"
551 #include "confdefs.h"
556 #define __CYGWIN__ __CYGWIN32__
561 if { (eval echo configure
:562: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
565 echo "configure: failed program was:" >&5
566 cat conftest.
$ac_ext >&5
574 echo "$ac_t""$ac_cv_cygwin" 1>&6
576 test "$ac_cv_cygwin" = yes && CYGWIN
=yes
577 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
578 echo "configure:579: checking for mingw32 environment" >&5
579 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
580 echo $ac_n "(cached) $ac_c" 1>&6
582 cat > conftest.
$ac_ext <<EOF
583 #line 584 "configure"
584 #include "confdefs.h"
590 if { (eval echo configure
:591: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
594 echo "configure: failed program was:" >&5
595 cat conftest.
$ac_ext >&5
603 echo "$ac_t""$ac_cv_mingw32" 1>&6
605 test "$ac_cv_mingw32" = yes && MINGW32
=yes
608 # Check whether --with-auxdir or --without-auxdir was given.
609 if test "${with_auxdir+set}" = set; then
610 withval
="$with_auxdir"
612 for ac_dir
in $with_auxdir; do
613 if test -f $ac_dir/install-sh
; then
615 ac_install_sh
="$ac_aux_dir/install-sh -c"
617 elif test -f $ac_dir/install.sh
; then
619 ac_install_sh
="$ac_aux_dir/install.sh -c"
623 if test -z "$ac_aux_dir"; then
624 { echo "configure: error: can not find install-sh or install.sh in $with_auxdir" 1>&2; exit 1; }
626 ac_config_guess
=$ac_aux_dir/config.guess
627 ac_config_sub
=$ac_aux_dir/config.sub
628 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
632 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
633 if test -f $ac_dir/install-sh
; then
635 ac_install_sh
="$ac_aux_dir/install-sh -c"
637 elif test -f $ac_dir/install.sh
; then
639 ac_install_sh
="$ac_aux_dir/install.sh -c"
643 if test -z "$ac_aux_dir"; then
644 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
646 ac_config_guess
=$ac_aux_dir/config.guess
647 ac_config_sub
=$ac_aux_dir/config.sub
648 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
653 if test -z "$enable_ltdl_install$enable_ltdl_convenience"; then
654 if test -f ${srcdir}/ltconfig
&& test -f ${srcdir}/ltmain.sh
; then
655 # if libltdl is libtoolized, it is assumed to be stand-alone and
656 # installed unless the command line overrides it (tested above)
657 enable_ltdl_install
=yes
659 echo "configure: warning: *** The top-level configure must select either" 1>&2
660 echo "configure: warning: *** A""C_LIBLTDL_INSTALLABLE or A""C_LIBLTDL_CONVENIENCE." 1>&2
661 { echo "configure: error: *** Maybe you want to --enable-ltdl-install?" 1>&2; exit 1; }
665 # Find a good install program. We prefer a C program (faster),
666 # so one script is as good as another. But avoid the broken or
667 # incompatible versions:
668 # SysV /etc/install, /usr/sbin/install
669 # SunOS /usr/etc/install
672 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
673 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
674 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
675 # ./install, which can be erroneously created by make from ./install.sh.
676 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
677 echo "configure:678: checking for a BSD compatible install" >&5
678 if test -z "$INSTALL"; then
679 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
680 echo $ac_n "(cached) $ac_c" 1>&6
682 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
683 for ac_dir
in $PATH; do
684 # Account for people who put trailing slashes in PATH elements.
686 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
688 # OSF1 and SCO ODT 3.0 have their own names for install.
689 # Don't use installbsd from OSF since it installs stuff as root
691 for ac_prog
in ginstall scoinst
install; do
692 if test -f $ac_dir/$ac_prog; then
693 if test $ac_prog = install &&
694 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
695 # AIX install. It has an incompatible calling convention.
698 ac_cv_path_install
="$ac_dir/$ac_prog -c"
709 if test "${ac_cv_path_install+set}" = set; then
710 INSTALL
="$ac_cv_path_install"
712 # As a last resort, use the slow shell script. We don't cache a
713 # path for INSTALL within a source directory, because that will
714 # break other packages using the cache if that directory is
715 # removed, or if the path is relative.
716 INSTALL
="$ac_install_sh"
719 echo "$ac_t""$INSTALL" 1>&6
721 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
722 # It thinks the first close brace ends the variable substitution.
723 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
725 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
727 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
729 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
730 echo "configure:731: checking whether build environment is sane" >&5
733 echo timestamp
> conftestfile
734 # Do `set' in a subshell so we don't clobber the current shell's
735 # arguments. Must try -L first in case configure is actually a
736 # symlink; some systems play weird games with the mod time of symlinks
737 # (eg FreeBSD returns the mod time of the symlink's containing
740 set X
`ls -Lt $srcdir/configure conftestfile 2> /dev/null`
741 if test "$*" = "X"; then
743 set X
`ls -t $srcdir/configure conftestfile`
745 if test "$*" != "X $srcdir/configure conftestfile" \
746 && test "$*" != "X conftestfile $srcdir/configure"; then
748 # If neither matched, then we have a broken ls. This can happen
749 # if, for instance, CONFIG_SHELL is bash and it inherits a
750 # broken ls alias from the environment. This has actually
751 # happened. Such a system could not be considered "sane".
752 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
753 alias in your environment" 1>&2; exit 1; }
756 test "$2" = conftestfile
762 { echo "configure: error: newly created file is older than distributed files!
763 Check your system clock" 1>&2; exit 1; }
766 echo "$ac_t""yes" 1>&6
767 if test "$program_transform_name" = s
,x
,x
,; then
768 program_transform_name
=
770 # Double any \ or $. echo might interpret backslashes.
771 cat <<\EOF_SED
> conftestsed
772 s
,\\,\\\\,g
; s
,\$
,$$
,g
774 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
777 test "$program_prefix" != NONE
&&
778 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
779 # Use a double $ so make ignores it.
780 test "$program_suffix" != NONE
&&
781 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
783 # sed with no file args requires a program.
784 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
786 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
787 echo "configure:788: checking whether ${MAKE-make} sets \${MAKE}" >&5
788 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
789 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
790 echo $ac_n "(cached) $ac_c" 1>&6
792 cat > conftestmake
<<\EOF
794 @
echo 'ac_maketemp="${MAKE}"'
796 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
797 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
798 if test -n "$ac_maketemp"; then
799 eval ac_cv_prog_make_
${ac_make}_set
=yes
801 eval ac_cv_prog_make_
${ac_make}_set
=no
805 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
806 echo "$ac_t""yes" 1>&6
809 echo "$ac_t""no" 1>&6
810 SET_MAKE
="MAKE=${MAKE-make}"
818 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status
; then
819 { echo "configure: error: source directory already configured; run "make distclean
" there first" 1>&2; exit 1; }
824 missing_dir
=`cd $ac_aux_dir && pwd`
825 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
826 echo "configure:827: checking for working aclocal" >&5
827 # Run test in a subshell; some versions of sh will print an error if
828 # an executable is not found, even if stderr is redirected.
829 # Redirect stdin to placate older versions of autoconf. Sigh.
830 if (aclocal
--version) < /dev
/null
> /dev
/null
2>&1; then
832 echo "$ac_t""found" 1>&6
834 ACLOCAL
="$missing_dir/missing aclocal"
835 echo "$ac_t""missing" 1>&6
838 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
839 echo "configure:840: checking for working autoconf" >&5
840 # Run test in a subshell; some versions of sh will print an error if
841 # an executable is not found, even if stderr is redirected.
842 # Redirect stdin to placate older versions of autoconf. Sigh.
843 if (autoconf
--version) < /dev
/null
> /dev
/null
2>&1; then
845 echo "$ac_t""found" 1>&6
847 AUTOCONF
="$missing_dir/missing autoconf"
848 echo "$ac_t""missing" 1>&6
851 echo $ac_n "checking for working automake""... $ac_c" 1>&6
852 echo "configure:853: checking for working automake" >&5
853 # Run test in a subshell; some versions of sh will print an error if
854 # an executable is not found, even if stderr is redirected.
855 # Redirect stdin to placate older versions of autoconf. Sigh.
856 if (automake
--version) < /dev
/null
> /dev
/null
2>&1; then
858 echo "$ac_t""found" 1>&6
860 AUTOMAKE
="$missing_dir/missing automake"
861 echo "$ac_t""missing" 1>&6
864 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
865 echo "configure:866: checking for working autoheader" >&5
866 # Run test in a subshell; some versions of sh will print an error if
867 # an executable is not found, even if stderr is redirected.
868 # Redirect stdin to placate older versions of autoconf. Sigh.
869 if (autoheader
--version) < /dev
/null
> /dev
/null
2>&1; then
870 AUTOHEADER
=autoheader
871 echo "$ac_t""found" 1>&6
873 AUTOHEADER
="$missing_dir/missing autoheader"
874 echo "$ac_t""missing" 1>&6
877 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
878 echo "configure:879: checking for working makeinfo" >&5
879 # Run test in a subshell; some versions of sh will print an error if
880 # an executable is not found, even if stderr is redirected.
881 # Redirect stdin to placate older versions of autoconf. Sigh.
882 if (makeinfo
--version) < /dev
/null
> /dev
/null
2>&1; then
884 echo "$ac_t""found" 1>&6
886 MAKEINFO
="$missing_dir/missing makeinfo"
887 echo "$ac_t""missing" 1>&6
894 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
895 echo "configure:896: checking whether to enable maintainer-specific portions of Makefiles" >&5
896 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
897 if test "${enable_maintainer_mode+set}" = set; then
898 enableval
="$enable_maintainer_mode"
899 USE_MAINTAINER_MODE
=$enableval
901 USE_MAINTAINER_MODE
=no
904 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
907 if test $USE_MAINTAINER_MODE = yes; then
908 MAINTAINER_MODE_TRUE
=
909 MAINTAINER_MODE_FALSE
='#'
911 MAINTAINER_MODE_TRUE
='#'
912 MAINTAINER_MODE_FALSE
=
914 MAINT
=$MAINTAINER_MODE_TRUE
918 # Extract the first word of "gcc", so it can be a program name with args.
919 set dummy gcc
; ac_word
=$2
920 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
921 echo "configure:922: checking for $ac_word" >&5
922 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
923 echo $ac_n "(cached) $ac_c" 1>&6
925 if test -n "$CC"; then
926 ac_cv_prog_CC
="$CC" # Let the user override the test.
928 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
930 for ac_dir
in $ac_dummy; do
931 test -z "$ac_dir" && ac_dir
=.
932 if test -f $ac_dir/$ac_word; then
941 if test -n "$CC"; then
942 echo "$ac_t""$CC" 1>&6
944 echo "$ac_t""no" 1>&6
947 if test -z "$CC"; then
948 # Extract the first word of "cc", so it can be a program name with args.
949 set dummy cc
; ac_word
=$2
950 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
951 echo "configure:952: checking for $ac_word" >&5
952 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
953 echo $ac_n "(cached) $ac_c" 1>&6
955 if test -n "$CC"; then
956 ac_cv_prog_CC
="$CC" # Let the user override the test.
958 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
961 for ac_dir
in $ac_dummy; do
962 test -z "$ac_dir" && ac_dir
=.
963 if test -f $ac_dir/$ac_word; then
964 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
973 if test $ac_prog_rejected = yes; then
974 # We found a bogon in the path, so make sure we never use it.
975 set dummy
$ac_cv_prog_CC
977 if test $# -gt 0; then
978 # We chose a different compiler from the bogus one.
979 # However, it has the same basename, so the bogon will be chosen
980 # first if we set CC to just the basename; use the full file name.
982 set dummy
"$ac_dir/$ac_word" "$@"
990 if test -n "$CC"; then
991 echo "$ac_t""$CC" 1>&6
993 echo "$ac_t""no" 1>&6
996 if test -z "$CC"; then
999 # Extract the first word of "cl", so it can be a program name with args.
1000 set dummy cl
; ac_word
=$2
1001 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1002 echo "configure:1003: checking for $ac_word" >&5
1003 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1004 echo $ac_n "(cached) $ac_c" 1>&6
1006 if test -n "$CC"; then
1007 ac_cv_prog_CC
="$CC" # Let the user override the test.
1009 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1011 for ac_dir
in $ac_dummy; do
1012 test -z "$ac_dir" && ac_dir
=.
1013 if test -f $ac_dir/$ac_word; then
1022 if test -n "$CC"; then
1023 echo "$ac_t""$CC" 1>&6
1025 echo "$ac_t""no" 1>&6
1030 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1033 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1034 echo "configure:1035: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1037 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1038 ac_cpp
='$CPP $CPPFLAGS'
1039 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1040 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1041 cross_compiling
=$ac_cv_prog_cc_cross
1043 cat > conftest.
$ac_ext << EOF
1045 #line 1046 "configure"
1046 #include "confdefs.h"
1050 if { (eval echo configure
:1051: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1051 ac_cv_prog_cc_works
=yes
1052 # If we can't run a trivial program, we are probably using a cross compiler.
1053 if (.
/conftest
; exit) 2>/dev
/null
; then
1054 ac_cv_prog_cc_cross
=no
1056 ac_cv_prog_cc_cross
=yes
1059 echo "configure: failed program was:" >&5
1060 cat conftest.
$ac_ext >&5
1061 ac_cv_prog_cc_works
=no
1065 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1066 ac_cpp
='$CPP $CPPFLAGS'
1067 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1068 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1069 cross_compiling
=$ac_cv_prog_cc_cross
1071 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1072 if test $ac_cv_prog_cc_works = no
; then
1073 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1075 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1076 echo "configure:1077: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1077 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1078 cross_compiling
=$ac_cv_prog_cc_cross
1080 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1081 echo "configure:1082: checking whether we are using GNU C" >&5
1082 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1083 echo $ac_n "(cached) $ac_c" 1>&6
1085 cat > conftest.c
<<EOF
1090 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1091: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1097 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1099 if test $ac_cv_prog_gcc = yes; then
1105 ac_test_CFLAGS
="${CFLAGS+set}"
1106 ac_save_CFLAGS
="$CFLAGS"
1108 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1109 echo "configure:1110: checking whether ${CC-cc} accepts -g" >&5
1110 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1111 echo $ac_n "(cached) $ac_c" 1>&6
1113 echo 'void f(){}' > conftest.c
1114 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1123 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1124 if test "$ac_test_CFLAGS" = set; then
1125 CFLAGS
="$ac_save_CFLAGS"
1126 elif test $ac_cv_prog_cc_g = yes; then
1127 if test "$GCC" = yes; then
1133 if test "$GCC" = yes; then
1140 echo $ac_n "checking for working const""... $ac_c" 1>&6
1141 echo "configure:1142: checking for working const" >&5
1142 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1143 echo $ac_n "(cached) $ac_c" 1>&6
1145 cat > conftest.
$ac_ext <<EOF
1146 #line 1147 "configure"
1147 #include "confdefs.h"
1151 /* Ultrix mips cc rejects this. */
1152 typedef int charset[2]; const charset x;
1153 /* SunOS 4.1.1 cc rejects this. */
1154 char const *const *ccp;
1156 /* NEC SVR4.0.2 mips cc rejects this. */
1157 struct point {int x, y;};
1158 static struct point const zero = {0,0};
1159 /* AIX XL C 1.02.0.0 rejects this.
1160 It does not let you subtract one const X* pointer from another in an arm
1161 of an if-expression whose if-part is not a constant expression */
1162 const char *g = "string";
1163 ccp = &g + (g ? g-g : 0);
1164 /* HPUX 7.0 cc rejects these. */
1167 ccp = (char const *const *) p;
1168 { /* SCO 3.2v4 cc rejects this. */
1170 char const *s = 0 ? (char *) 0 : (char const *) 0;
1174 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1176 const int *foo = &x[0];
1179 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1180 typedef const int *iptr;
1184 { /* AIX XL C 1.02.0.0 rejects this saying
1185 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1186 struct s { int j; const int *ap[3]; };
1187 struct s *b; b->j = 5;
1189 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1195 if { (eval echo configure
:1196: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1199 echo "configure: failed program was:" >&5
1200 cat conftest.
$ac_ext >&5
1207 echo "$ac_t""$ac_cv_c_const" 1>&6
1208 if test $ac_cv_c_const = no
; then
1209 cat >> confdefs.h
<<\EOF
1215 echo $ac_n "checking for inline""... $ac_c" 1>&6
1216 echo "configure:1217: checking for inline" >&5
1217 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1218 echo $ac_n "(cached) $ac_c" 1>&6
1221 for ac_kw
in inline __inline__ __inline
; do
1222 cat > conftest.
$ac_ext <<EOF
1223 #line 1224 "configure"
1224 #include "confdefs.h"
1230 if { (eval echo configure
:1231: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1232 ac_cv_c_inline
=$ac_kw; break
1234 echo "configure: failed program was:" >&5
1235 cat conftest.
$ac_ext >&5
1242 echo "$ac_t""$ac_cv_c_inline" 1>&6
1243 case "$ac_cv_c_inline" in
1245 no
) cat >> confdefs.h
<<\EOF
1249 *) cat >> confdefs.h
<<EOF
1250 #define inline $ac_cv_c_inline
1257 # Check whether --enable-shared or --disable-shared was given.
1258 if test "${enable_shared+set}" = set; then
1259 enableval
="$enable_shared"
1260 p
=${PACKAGE-default}
1261 case "$enableval" in
1262 yes) enable_shared
=yes ;;
1263 no
) enable_shared
=no
;;
1266 # Look at the argument we got. We use all the common list separators.
1267 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1268 for pkg
in $enableval; do
1269 if test "X$pkg" = "X$p"; then
1280 # Check whether --enable-static or --disable-static was given.
1281 if test "${enable_static+set}" = set; then
1282 enableval
="$enable_static"
1283 p
=${PACKAGE-default}
1284 case "$enableval" in
1285 yes) enable_static
=yes ;;
1286 no
) enable_static
=no
;;
1289 # Look at the argument we got. We use all the common list separators.
1290 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1291 for pkg
in $enableval; do
1292 if test "X$pkg" = "X$p"; then
1303 # Check whether --enable-fast-install or --disable-fast-install was given.
1304 if test "${enable_fast_install+set}" = set; then
1305 enableval
="$enable_fast_install"
1306 p
=${PACKAGE-default}
1307 case "$enableval" in
1308 yes) enable_fast_install
=yes ;;
1309 no
) enable_fast_install
=no
;;
1311 enable_fast_install
=no
1312 # Look at the argument we got. We use all the common list separators.
1313 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1314 for pkg
in $enableval; do
1315 if test "X$pkg" = "X$p"; then
1316 enable_fast_install
=yes
1323 enable_fast_install
=yes
1327 # Make sure we can run config.sub.
1328 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
1329 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1332 echo $ac_n "checking host system type""... $ac_c" 1>&6
1333 echo "configure:1334: checking host system type" >&5
1336 case "$host_alias" in
1340 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1341 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1343 *) host_alias
=$nonopt ;;
1347 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1348 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1349 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1350 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1351 echo "$ac_t""$host" 1>&6
1353 echo $ac_n "checking build system type""... $ac_c" 1>&6
1354 echo "configure:1355: checking build system type" >&5
1357 case "$build_alias" in
1360 NONE
) build_alias
=$host_alias ;;
1361 *) build_alias
=$nonopt ;;
1365 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1366 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1367 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1368 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1369 echo "$ac_t""$build" 1>&6
1371 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1372 if test "${with_gnu_ld+set}" = set; then
1373 withval
="$with_gnu_ld"
1374 test "$withval" = no || with_gnu_ld
=yes
1380 if test "$ac_cv_prog_gcc" = yes; then
1381 # Check if gcc -print-prog-name=ld gives a path.
1382 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1383 echo "configure:1384: checking for ld used by GCC" >&5
1386 # gcc leaves a trailing carriage return which upsets mingw
1387 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1389 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
1392 # Accept absolute paths.
1393 [\\/]* |
[A-Za-z
]:[\\/]*)
1394 re_direlt
='/[^/][^/]*/\.\./'
1395 # Canonicalize the path of ld
1396 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
1397 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
1398 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
1400 test -z "$LD" && LD
="$ac_prog"
1403 # If it fails, then pretend we aren't using GCC.
1407 # If it is relative, then search for the first ld in PATH.
1411 elif test "$with_gnu_ld" = yes; then
1412 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1413 echo "configure:1414: checking for GNU ld" >&5
1415 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1416 echo "configure:1417: checking for non-GNU ld" >&5
1418 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1419 echo $ac_n "(cached) $ac_c" 1>&6
1421 if test -z "$LD"; then
1422 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1423 for ac_dir
in $PATH; do
1424 test -z "$ac_dir" && ac_dir
=.
1425 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
1426 ac_cv_path_LD
="$ac_dir/$ac_prog"
1427 # Check to see if the program is GNU ld. I'd rather use --version,
1428 # but apparently some GNU ld's only accept -v.
1429 # Break only if it was the GNU/non-GNU ld that we prefer.
1430 if "$ac_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
1431 test "$with_gnu_ld" != no
&& break
1433 test "$with_gnu_ld" != yes && break
1439 ac_cv_path_LD
="$LD" # Let the user override the test with a path.
1444 if test -n "$LD"; then
1445 echo "$ac_t""$LD" 1>&6
1447 echo "$ac_t""no" 1>&6
1449 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1450 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1451 echo "configure:1452: checking if the linker ($LD) is GNU ld" >&5
1452 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1453 echo $ac_n "(cached) $ac_c" 1>&6
1455 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1456 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
1457 ac_cv_prog_gnu_ld
=yes
1459 ac_cv_prog_gnu_ld
=no
1463 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1464 with_gnu_ld
=$ac_cv_prog_gnu_ld
1467 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1468 echo "configure:1469: checking for $LD option to reload object files" >&5
1469 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1470 echo $ac_n "(cached) $ac_c" 1>&6
1472 lt_cv_ld_reload_flag
='-r'
1475 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1476 reload_flag
=$lt_cv_ld_reload_flag
1477 test -n "$reload_flag" && reload_flag
=" $reload_flag"
1479 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1480 echo "configure:1481: checking for BSD-compatible nm" >&5
1481 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1482 echo $ac_n "(cached) $ac_c" 1>&6
1484 if test -n "$NM"; then
1485 # Let the user override the test.
1488 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1489 for ac_dir
in $PATH /usr
/ccs
/bin
/usr
/ucb
/bin
; do
1490 test -z "$ac_dir" && ac_dir
=.
1491 tmp_nm
=$ac_dir/${ac_tool_prefix}nm
1492 if test -f $tmp_nm ||
test -f $tmp_nm$ac_exeext ; then
1493 # Check to see if the nm accepts a BSD-compat flag.
1494 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1495 # nm: unknown option "B" ignored
1496 # Tru64's nm complains that /dev/null is an invalid object file
1497 if ($tmp_nm -B /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep '(/dev/null|Invalid file or object type)' >/dev
/null
; then
1498 ac_cv_path_NM
="$tmp_nm -B"
1500 elif ($tmp_nm -p /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep /dev
/null
>/dev
/null
; then
1501 ac_cv_path_NM
="$tmp_nm -p"
1504 ac_cv_path_NM
=${ac_cv_path_NM="$tmp_nm"} # keep the first match, but
1505 continue # so that we can try to find one that supports BSD flags
1510 test -z "$ac_cv_path_NM" && ac_cv_path_NM
=nm
1515 echo "$ac_t""$NM" 1>&6
1517 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1518 echo "configure:1519: checking whether ln -s works" >&5
1519 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1520 echo $ac_n "(cached) $ac_c" 1>&6
1523 if ln -s X conftestdata
2>/dev
/null
1526 ac_cv_prog_LN_S
="ln -s"
1531 LN_S
="$ac_cv_prog_LN_S"
1532 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1533 echo "$ac_t""yes" 1>&6
1535 echo "$ac_t""no" 1>&6
1538 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1539 echo "configure:1540: checking how to recognise dependant libraries" >&5
1540 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1541 echo $ac_n "(cached) $ac_c" 1>&6
1543 lt_cv_file_magic_cmd
='${MAGIC}'
1544 lt_cv_file_magic_test_file
=
1545 lt_cv_deplibs_check_method
='unknown'
1546 # Need to set the preceding variable on all platforms that support
1547 # interlibrary dependencies.
1548 # 'none' -- dependencies not supported.
1549 # `unknown' -- same as none, but documents that we really don't know.
1550 # 'pass_all' -- all dependencies passed with no checks.
1551 # 'test_compile' -- check by making test program.
1552 # 'file_magic [regex]' -- check by looking for files in library path
1553 # which responds to the $file_magic_cmd with a given egrep regex.
1554 # If you have `file' or equivalent on your system and you're not sure
1555 # whether `pass_all' will *always* work, you probably want this one.
1559 lt_cv_deplibs_check_method
=pass_all
1563 lt_cv_deplibs_check_method
=pass_all
1567 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1568 lt_cv_file_magic_cmd
='/usr/bin/file -L'
1569 lt_cv_file_magic_test_file
=/shlib
/libc.so
1573 lt_cv_deplibs_check_method
='file_magic file format pei*-i386(.*architecture: i386)?'
1574 lt_cv_file_magic_cmd
='${OBJDUMP} -f'
1578 if echo __ELF__ |
$CC -E - |
grep __ELF__
> /dev
/null
; then
1581 # Not sure whether the presence of OpenBSD here was a mistake.
1582 # Let's accept both of them until this is cleared up.
1583 lt_cv_deplibs_check_method
='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1584 lt_cv_file_magic_cmd
=/usr
/bin
/file
1585 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so.*`
1589 lt_cv_deplibs_check_method
=pass_all
1594 lt_cv_deplibs_check_method
=pass_all
1598 # TODO: Does this work for hpux-11 too?
1599 lt_cv_deplibs_check_method
='file_magic (s0-90-90-9|PA-RISC0-9.0-9) shared library'
1600 lt_cv_file_magic_cmd
=/usr
/bin
/file
1601 lt_cv_file_magic_test_file
=/usr
/lib
/libc.sl
1607 # this will be overridden with pass_all, but let us keep it just in case
1608 lt_cv_deplibs_check_method
="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
1612 *-32|
*"-32 ") libmagic
=32-bit;;
1613 *-n32|
*"-n32 ") libmagic
=N32
;;
1614 *-64|
*"-64 ") libmagic
=64-bit;;
1615 *) libmagic
=never-match
;;
1617 # this will be overridden with pass_all, but let us keep it just in case
1618 lt_cv_deplibs_check_method
="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
1621 lt_cv_file_magic_test_file
=`echo /lib${libsuff}/libc.so*`
1622 lt_cv_deplibs_check_method
=pass_all
1625 # This must be Linux ELF.
1628 alpha
* | i
*86 | powerpc
* | sparc
* | ia64
* )
1629 lt_cv_deplibs_check_method
=pass_all
;;
1631 # glibc up to 2.1.1 does not perform some relocations on ARM
1632 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
1634 lt_cv_file_magic_test_file
=`echo /lib/libc.so* /lib/libc-*.so`
1638 if echo __ELF__ |
$CC -E - |
grep __ELF__
> /dev
/null
; then :
1640 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
1641 lt_cv_file_magic_cmd
='/usr/bin/file -L'
1642 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so*`
1646 osf3
* | osf4
* | osf5
*)
1647 # this will be overridden with pass_all, but let us keep it just in case
1648 lt_cv_deplibs_check_method
='file_magic COFF format alpha shared library'
1649 lt_cv_file_magic_test_file
=/shlib
/libc.so
1650 lt_cv_deplibs_check_method
=pass_all
1654 lt_cv_deplibs_check_method
=pass_all
1658 lt_cv_deplibs_check_method
=pass_all
1659 lt_cv_file_magic_test_file
=/lib
/libc.so
1662 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
1663 case "$host_vendor" in
1665 lt_cv_deplibs_check_method
=pass_all
1668 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]'
1669 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so*`
1677 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
1678 file_magic_cmd
=$lt_cv_file_magic_cmd
1679 deplibs_check_method
=$lt_cv_deplibs_check_method
1681 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
1682 echo "configure:1683: checking for object suffix" >&5
1683 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
1684 echo $ac_n "(cached) $ac_c" 1>&6
1687 echo 'int i = 1;' > conftest.
$ac_ext
1688 if { (eval echo configure
:1689: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1689 for ac_file
in conftest.
*; do
1692 *) ac_cv_objext
=`echo $ac_file | sed -e s/conftest.//` ;;
1696 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
1701 echo "$ac_t""$ac_cv_objext" 1>&6
1702 OBJEXT
=$ac_cv_objext
1703 ac_objext
=$ac_cv_objext
1707 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1708 echo "configure:1709: checking for executable suffix" >&5
1709 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1710 echo $ac_n "(cached) $ac_c" 1>&6
1712 if test "$CYGWIN" = yes ||
test "$MINGW32" = yes; then
1716 echo 'int main () { return 0; }' > conftest.
$ac_ext
1718 if { (eval echo configure
:1719: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1719 for file in conftest.
*; do
1721 *.c |
*.o |
*.obj
) ;;
1722 *) ac_cv_exeext
=`echo $file | sed -e s/conftest//` ;;
1726 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1729 test x
"${ac_cv_exeext}" = x
&& ac_cv_exeext
=no
1734 test x
"${ac_cv_exeext}" != xno
&& EXEEXT
=${ac_cv_exeext}
1735 echo "$ac_t""${ac_cv_exeext}" 1>&6
1738 if test $host != $build; then
1739 ac_tool_prefix
=${host_alias}-
1744 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
1746 # Only perform the check for file, if the check method requires it
1747 case "$deplibs_check_method" in
1749 if test "$file_magic_cmd" = '${MAGIC}'; then
1750 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
1751 echo "configure:1752: checking for ${ac_tool_prefix}file" >&5
1752 if eval "test \"`echo '$''{'lt_cv_path_MAGIC'+set}'`\" = set"; then
1753 echo $ac_n "(cached) $ac_c" 1>&6
1757 lt_cv_path_MAGIC
="$MAGIC" # Let the user override the test with a path.
1760 ac_cv_path_MAGIC
="$MAGIC" # Let the user override the test with a dos path.
1763 ac_save_MAGIC
="$MAGIC"
1764 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1765 ac_dummy
="/usr/bin:$PATH"
1766 for ac_dir
in $ac_dummy; do
1767 test -z "$ac_dir" && ac_dir
=.
1768 if test -f $ac_dir/${ac_tool_prefix}file; then
1769 lt_cv_path_MAGIC
="$ac_dir/${ac_tool_prefix}file"
1770 if test -n "$file_magic_test_file"; then
1771 case "$deplibs_check_method" in
1773 file_magic_regex
="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
1774 MAGIC
="$lt_cv_path_MAGIC"
1775 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
1776 egrep "$file_magic_regex" > /dev
/null
; then
1781 *** Warning: the command libtool uses to detect shared libraries,
1782 *** $file_magic_cmd, produces output that libtool cannot recognize.
1783 *** The result is that libtool may fail to recognize shared libraries
1784 *** as such. This will affect the creation of libtool libraries that
1785 *** depend on shared libraries, but programs linked with such libtool
1786 *** libraries will work regardless of this problem. Nevertheless, you
1787 *** may want to report the problem to your system manager and/or to
1788 *** bug-libtool@gnu.org
1798 MAGIC
="$ac_save_MAGIC"
1803 MAGIC
="$lt_cv_path_MAGIC"
1804 if test -n "$MAGIC"; then
1805 echo "$ac_t""$MAGIC" 1>&6
1807 echo "$ac_t""no" 1>&6
1810 if test -z "$lt_cv_path_MAGIC"; then
1811 if test -n "$ac_tool_prefix"; then
1812 echo $ac_n "checking for file""... $ac_c" 1>&6
1813 echo "configure:1814: checking for file" >&5
1814 if eval "test \"`echo '$''{'lt_cv_path_MAGIC'+set}'`\" = set"; then
1815 echo $ac_n "(cached) $ac_c" 1>&6
1819 lt_cv_path_MAGIC
="$MAGIC" # Let the user override the test with a path.
1822 ac_cv_path_MAGIC
="$MAGIC" # Let the user override the test with a dos path.
1825 ac_save_MAGIC
="$MAGIC"
1826 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1827 ac_dummy
="/usr/bin:$PATH"
1828 for ac_dir
in $ac_dummy; do
1829 test -z "$ac_dir" && ac_dir
=.
1830 if test -f $ac_dir/file; then
1831 lt_cv_path_MAGIC
="$ac_dir/file"
1832 if test -n "$file_magic_test_file"; then
1833 case "$deplibs_check_method" in
1835 file_magic_regex
="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
1836 MAGIC
="$lt_cv_path_MAGIC"
1837 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
1838 egrep "$file_magic_regex" > /dev
/null
; then
1843 *** Warning: the command libtool uses to detect shared libraries,
1844 *** $file_magic_cmd, produces output that libtool cannot recognize.
1845 *** The result is that libtool may fail to recognize shared libraries
1846 *** as such. This will affect the creation of libtool libraries that
1847 *** depend on shared libraries, but programs linked with such libtool
1848 *** libraries will work regardless of this problem. Nevertheless, you
1849 *** may want to report the problem to your system manager and/or to
1850 *** bug-libtool@gnu.org
1860 MAGIC
="$ac_save_MAGIC"
1865 MAGIC
="$lt_cv_path_MAGIC"
1866 if test -n "$MAGIC"; then
1867 echo "$ac_t""$MAGIC" 1>&6
1869 echo "$ac_t""no" 1>&6
1881 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1882 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
1883 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1884 echo "configure:1885: checking for $ac_word" >&5
1885 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1886 echo $ac_n "(cached) $ac_c" 1>&6
1888 if test -n "$RANLIB"; then
1889 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1891 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1893 for ac_dir
in $ac_dummy; do
1894 test -z "$ac_dir" && ac_dir
=.
1895 if test -f $ac_dir/$ac_word; then
1896 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
1903 RANLIB
="$ac_cv_prog_RANLIB"
1904 if test -n "$RANLIB"; then
1905 echo "$ac_t""$RANLIB" 1>&6
1907 echo "$ac_t""no" 1>&6
1911 if test -z "$ac_cv_prog_RANLIB"; then
1912 if test -n "$ac_tool_prefix"; then
1913 # Extract the first word of "ranlib", so it can be a program name with args.
1914 set dummy ranlib
; ac_word
=$2
1915 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1916 echo "configure:1917: checking for $ac_word" >&5
1917 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1918 echo $ac_n "(cached) $ac_c" 1>&6
1920 if test -n "$RANLIB"; then
1921 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1923 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1925 for ac_dir
in $ac_dummy; do
1926 test -z "$ac_dir" && ac_dir
=.
1927 if test -f $ac_dir/$ac_word; then
1928 ac_cv_prog_RANLIB
="ranlib"
1933 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1936 RANLIB
="$ac_cv_prog_RANLIB"
1937 if test -n "$RANLIB"; then
1938 echo "$ac_t""$RANLIB" 1>&6
1940 echo "$ac_t""no" 1>&6
1948 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1949 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
1950 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1951 echo "configure:1952: checking for $ac_word" >&5
1952 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1953 echo $ac_n "(cached) $ac_c" 1>&6
1955 if test -n "$STRIP"; then
1956 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
1958 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1960 for ac_dir
in $ac_dummy; do
1961 test -z "$ac_dir" && ac_dir
=.
1962 if test -f $ac_dir/$ac_word; then
1963 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
1970 STRIP
="$ac_cv_prog_STRIP"
1971 if test -n "$STRIP"; then
1972 echo "$ac_t""$STRIP" 1>&6
1974 echo "$ac_t""no" 1>&6
1978 if test -z "$ac_cv_prog_STRIP"; then
1979 if test -n "$ac_tool_prefix"; then
1980 # Extract the first word of "strip", so it can be a program name with args.
1981 set dummy strip
; ac_word
=$2
1982 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1983 echo "configure:1984: checking for $ac_word" >&5
1984 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1985 echo $ac_n "(cached) $ac_c" 1>&6
1987 if test -n "$STRIP"; then
1988 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
1990 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1992 for ac_dir
in $ac_dummy; do
1993 test -z "$ac_dir" && ac_dir
=.
1994 if test -f $ac_dir/$ac_word; then
1995 ac_cv_prog_STRIP
="strip"
2000 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP
=":"
2003 STRIP
="$ac_cv_prog_STRIP"
2004 if test -n "$STRIP"; then
2005 echo "$ac_t""$STRIP" 1>&6
2007 echo "$ac_t""no" 1>&6
2016 # Check for any special flags to pass to ltconfig.
2017 libtool_flags
="--cache-file=$cache_file"
2018 test "$enable_shared" = no
&& libtool_flags
="$libtool_flags --disable-shared"
2019 test "$enable_static" = no
&& libtool_flags
="$libtool_flags --disable-static"
2020 test "$enable_fast_install" = no
&& libtool_flags
="$libtool_flags --disable-fast-install"
2021 test "$ac_cv_prog_gcc" = yes && libtool_flags
="$libtool_flags --with-gcc"
2022 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags
="$libtool_flags --with-gnu-ld"
2024 libtool_flags
="$libtool_flags --enable-win32-dll"
2025 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2026 if test "${enable_libtool_lock+set}" = set; then
2027 enableval
="$enable_libtool_lock"
2031 test "x$enable_libtool_lock" = xno
&& libtool_flags
="$libtool_flags --disable-lock"
2032 test x
"$silent" = xyes
&& libtool_flags
="$libtool_flags --silent"
2034 # Check whether --with-pic or --without-pic was given.
2035 if test "${with_pic+set}" = set; then
2042 test x
"$pic_mode" = xyes
&& libtool_flags
="$libtool_flags --prefer-pic"
2043 test x
"$pic_mode" = xno
&& libtool_flags
="$libtool_flags --prefer-non-pic"
2045 # Some flags need to be propagated to the compiler or linker for good
2049 # Find out which ABI we are using.
2050 echo '#line 2051 "configure"' > conftest.
$ac_ext
2051 if { (eval echo configure
:2052: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2052 case "`/usr/bin/file conftest.o`" in
2068 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2069 SAVE_CFLAGS
="$CFLAGS"
2070 CFLAGS
="$CFLAGS -belf"
2071 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2072 echo "configure:2073: checking whether the C compiler needs -belf" >&5
2073 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2074 echo $ac_n "(cached) $ac_c" 1>&6
2078 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2079 ac_cpp
='$CPP $CPPFLAGS'
2080 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2081 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2082 cross_compiling
=$ac_cv_prog_cc_cross
2084 cat > conftest.
$ac_ext <<EOF
2085 #line 2086 "configure"
2086 #include "confdefs.h"
2092 if { (eval echo configure
:2093: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2094 lt_cv_cc_needs_belf
=yes
2096 echo "configure: failed program was:" >&5
2097 cat conftest.
$ac_ext >&5
2099 lt_cv_cc_needs_belf
=no
2103 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2104 ac_cpp
='$CPP $CPPFLAGS'
2105 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2106 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2107 cross_compiling
=$ac_cv_prog_cc_cross
2111 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2112 if test x
"$lt_cv_cc_needs_belf" != x
"yes"; then
2113 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2114 CFLAGS
="$SAVE_CFLAGS"
2118 *-*-cygwin* |
*-*-mingw*)
2119 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
2120 set dummy
${ac_tool_prefix}dlltool
; ac_word
=$2
2121 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2122 echo "configure:2123: checking for $ac_word" >&5
2123 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
2124 echo $ac_n "(cached) $ac_c" 1>&6
2126 if test -n "$DLLTOOL"; then
2127 ac_cv_prog_DLLTOOL
="$DLLTOOL" # Let the user override the test.
2129 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2131 for ac_dir
in $ac_dummy; do
2132 test -z "$ac_dir" && ac_dir
=.
2133 if test -f $ac_dir/$ac_word; then
2134 ac_cv_prog_DLLTOOL
="${ac_tool_prefix}dlltool"
2141 DLLTOOL
="$ac_cv_prog_DLLTOOL"
2142 if test -n "$DLLTOOL"; then
2143 echo "$ac_t""$DLLTOOL" 1>&6
2145 echo "$ac_t""no" 1>&6
2149 if test -z "$ac_cv_prog_DLLTOOL"; then
2150 if test -n "$ac_tool_prefix"; then
2151 # Extract the first word of "dlltool", so it can be a program name with args.
2152 set dummy dlltool
; ac_word
=$2
2153 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2154 echo "configure:2155: checking for $ac_word" >&5
2155 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
2156 echo $ac_n "(cached) $ac_c" 1>&6
2158 if test -n "$DLLTOOL"; then
2159 ac_cv_prog_DLLTOOL
="$DLLTOOL" # Let the user override the test.
2161 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2163 for ac_dir
in $ac_dummy; do
2164 test -z "$ac_dir" && ac_dir
=.
2165 if test -f $ac_dir/$ac_word; then
2166 ac_cv_prog_DLLTOOL
="dlltool"
2171 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL
="false"
2174 DLLTOOL
="$ac_cv_prog_DLLTOOL"
2175 if test -n "$DLLTOOL"; then
2176 echo "$ac_t""$DLLTOOL" 1>&6
2178 echo "$ac_t""no" 1>&6
2186 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
2187 set dummy
${ac_tool_prefix}as
; ac_word
=$2
2188 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2189 echo "configure:2190: checking for $ac_word" >&5
2190 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
2191 echo $ac_n "(cached) $ac_c" 1>&6
2193 if test -n "$AS"; then
2194 ac_cv_prog_AS
="$AS" # Let the user override the test.
2196 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2198 for ac_dir
in $ac_dummy; do
2199 test -z "$ac_dir" && ac_dir
=.
2200 if test -f $ac_dir/$ac_word; then
2201 ac_cv_prog_AS
="${ac_tool_prefix}as"
2209 if test -n "$AS"; then
2210 echo "$ac_t""$AS" 1>&6
2212 echo "$ac_t""no" 1>&6
2216 if test -z "$ac_cv_prog_AS"; then
2217 if test -n "$ac_tool_prefix"; then
2218 # Extract the first word of "as", so it can be a program name with args.
2219 set dummy as
; ac_word
=$2
2220 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2221 echo "configure:2222: checking for $ac_word" >&5
2222 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
2223 echo $ac_n "(cached) $ac_c" 1>&6
2225 if test -n "$AS"; then
2226 ac_cv_prog_AS
="$AS" # Let the user override the test.
2228 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2230 for ac_dir
in $ac_dummy; do
2231 test -z "$ac_dir" && ac_dir
=.
2232 if test -f $ac_dir/$ac_word; then
2238 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS
="false"
2242 if test -n "$AS"; then
2243 echo "$ac_t""$AS" 1>&6
2245 echo "$ac_t""no" 1>&6
2253 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
2254 set dummy
${ac_tool_prefix}objdump
; ac_word
=$2
2255 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2256 echo "configure:2257: checking for $ac_word" >&5
2257 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then
2258 echo $ac_n "(cached) $ac_c" 1>&6
2260 if test -n "$OBJDUMP"; then
2261 ac_cv_prog_OBJDUMP
="$OBJDUMP" # Let the user override the test.
2263 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2265 for ac_dir
in $ac_dummy; do
2266 test -z "$ac_dir" && ac_dir
=.
2267 if test -f $ac_dir/$ac_word; then
2268 ac_cv_prog_OBJDUMP
="${ac_tool_prefix}objdump"
2275 OBJDUMP
="$ac_cv_prog_OBJDUMP"
2276 if test -n "$OBJDUMP"; then
2277 echo "$ac_t""$OBJDUMP" 1>&6
2279 echo "$ac_t""no" 1>&6
2283 if test -z "$ac_cv_prog_OBJDUMP"; then
2284 if test -n "$ac_tool_prefix"; then
2285 # Extract the first word of "objdump", so it can be a program name with args.
2286 set dummy objdump
; ac_word
=$2
2287 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2288 echo "configure:2289: checking for $ac_word" >&5
2289 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then
2290 echo $ac_n "(cached) $ac_c" 1>&6
2292 if test -n "$OBJDUMP"; then
2293 ac_cv_prog_OBJDUMP
="$OBJDUMP" # Let the user override the test.
2295 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2297 for ac_dir
in $ac_dummy; do
2298 test -z "$ac_dir" && ac_dir
=.
2299 if test -f $ac_dir/$ac_word; then
2300 ac_cv_prog_OBJDUMP
="objdump"
2305 test -z "$ac_cv_prog_OBJDUMP" && ac_cv_prog_OBJDUMP
="false"
2308 OBJDUMP
="$ac_cv_prog_OBJDUMP"
2309 if test -n "$OBJDUMP"; then
2310 echo "$ac_t""$OBJDUMP" 1>&6
2312 echo "$ac_t""no" 1>&6
2321 # recent cygwin and mingw systems supply a stub DllMain which the user
2322 # can override, but on older systems we have to supply one
2323 echo $ac_n "checking if libtool should supply DllMain function""... $ac_c" 1>&6
2324 echo "configure:2325: checking if libtool should supply DllMain function" >&5
2325 if eval "test \"`echo '$''{'lt_cv_need_dllmain'+set}'`\" = set"; then
2326 echo $ac_n "(cached) $ac_c" 1>&6
2328 cat > conftest.
$ac_ext <<EOF
2329 #line 2330 "configure"
2330 #include "confdefs.h"
2333 extern int __attribute__((__stdcall__)) DllMain(void*, int, void*);
2337 if { (eval echo configure
:2338: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2339 lt_cv_need_dllmain
=no
2341 echo "configure: failed program was:" >&5
2342 cat conftest.
$ac_ext >&5
2344 lt_cv_need_dllmain
=yes
2349 echo "$ac_t""$lt_cv_need_dllmain" 1>&6
2352 *-*-cygwin*/gcc
*-mno-cygwin*|
*-*-mingw*)
2353 # old mingw systems require "-dll" to link a DLL, while more recent ones
2355 SAVE_CFLAGS
="$CFLAGS"
2356 CFLAGS
="$CFLAGS -mdll"
2357 echo $ac_n "checking how to link DLLs""... $ac_c" 1>&6
2358 echo "configure:2359: checking how to link DLLs" >&5
2359 if eval "test \"`echo '$''{'lt_cv_cc_dll_switch'+set}'`\" = set"; then
2360 echo $ac_n "(cached) $ac_c" 1>&6
2362 cat > conftest.
$ac_ext <<EOF
2363 #line 2364 "configure"
2364 #include "confdefs.h"
2370 if { (eval echo configure
:2371: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2372 lt_cv_cc_dll_switch
=-mdll
2374 echo "configure: failed program was:" >&5
2375 cat conftest.
$ac_ext >&5
2377 lt_cv_cc_dll_switch
=-dll
2382 echo "$ac_t""$lt_cv_cc_dll_switch" 1>&6
2383 CFLAGS
="$SAVE_CFLAGS" ;;
2385 # cygwin systems need to pass --dll to the linker, and not link
2386 # crt.o which will require a WinMain@16 definition.
2387 lt_cv_cc_dll_switch
="-Wl,--dll -nostartfiles" ;;
2394 # Save cache, so that ltconfig can load it
2395 cat > confcache
<<\EOF
2396 # This file is a shell script that caches the results of configure
2397 # tests run on this system so they can be shared between configure
2398 # scripts and configure runs. It is not useful on other systems.
2399 # If it contains results you don't want to keep, you may remove or edit it.
2401 # By default, configure uses ./config.cache as the cache file,
2402 # creating it if it does not exist already. You can give configure
2403 # the --cache-file=FILE option to use a different cache file; that is
2404 # what configure does when it calls configure scripts in
2405 # subdirectories, so they share the cache.
2406 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2407 # config.status only pays attention to the cache file if you give it the
2408 # --recheck option to rerun configure.
2411 # The following way of writing the cache mishandles newlines in values,
2412 # but we know of no workaround that is simple, portable, and efficient.
2413 # So, don't put newlines in cache variables' values.
2414 # Ultrix sh set writes to stderr and can't be redirected directly,
2415 # and sets the high bit in the cache file unless we assign to the vars.
2417 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2419 # `set' does not quote correctly, so add quotes (double-quote substitution
2420 # turns \\\\ into \\, and sed turns \\ into \).
2422 -e "s/'/'\\\\''/g" \
2423 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2426 # `set' quotes correctly as required by POSIX, so do not add quotes.
2427 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2430 if cmp -s $cache_file confcache
; then
2433 if test -w $cache_file; then
2434 echo "updating cache $cache_file"
2435 cat confcache
> $cache_file
2437 echo "not updating unwritable cache $cache_file"
2443 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2444 AR
="$AR" LTCC
="$CC" CC
="$CC" CFLAGS
="$CFLAGS" CPPFLAGS
="$CPPFLAGS" \
2445 MAGIC
="$MAGIC" LD
="$LD" LDFLAGS
="$LDFLAGS" LIBS
="$LIBS" \
2446 LN_S
="$LN_S" NM
="$NM" RANLIB
="$RANLIB" STRIP
="$STRIP" \
2447 AS
="$AS" DLLTOOL
="$DLLTOOL" OBJDUMP
="$OBJDUMP" \
2448 objext
="$OBJEXT" exeext
="$EXEEXT" reload_flag
="$reload_flag" \
2449 deplibs_check_method
="$deplibs_check_method" file_magic_cmd
="$file_magic_cmd" \
2450 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig
--no-reexec \
2451 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh
$host \
2452 ||
{ echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2454 # Reload cache, that may have been modified by ltconfig
2455 if test -r "$cache_file"; then
2456 echo "loading cache $cache_file"
2459 echo "creating cache $cache_file"
2464 # This can be used to rebuild libtool when needed
2465 LIBTOOL_DEPS
="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2467 # Always use our own libtool.
2468 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
2470 # Redirect the config.log output again, so that the ltconfig log is not
2471 # clobbered by the next message.
2472 exec 5>>.
/config.log
2481 echo $ac_n "checking for garbage collector to use""... $ac_c" 1>&6
2482 echo "configure:2483: checking for garbage collector to use" >&5
2483 # Check whether --enable-java-gc or --disable-java-gc was given.
2484 if test "${enable_java_gc+set}" = set; then
2485 enableval
="$enable_java_gc"
2494 if test "$GC" = "boehm"; then
2495 GCINCS
='-I$(top_srcdir)/../../boehm-gc -I$(top_builddir)/../../boehm-gc'
2496 GCINCS
="$GCINCS `cat ../../boehm-gc/boehm-cflags`"
2497 cat >> confdefs.h
<<\EOF
2498 #define HAVE_BOEHM_GC 1
2504 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2505 echo "configure:2506: checking how to run the C preprocessor" >&5
2506 # On Suns, sometimes $CPP names a directory.
2507 if test -n "$CPP" && test -d "$CPP"; then
2510 if test -z "$CPP"; then
2511 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2512 echo $ac_n "(cached) $ac_c" 1>&6
2514 # This must be in double quotes, not single quotes, because CPP may get
2515 # substituted into the Makefile and "${CC-cc}" will confuse make.
2517 # On the NeXT, cc -E runs the code through the compiler's parser,
2518 # not just through cpp.
2519 cat > conftest.
$ac_ext <<EOF
2520 #line 2521 "configure"
2521 #include "confdefs.h"
2525 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2526 { (eval echo configure
:2527: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2527 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2528 if test -z "$ac_err"; then
2532 echo "configure: failed program was:" >&5
2533 cat conftest.
$ac_ext >&5
2535 CPP
="${CC-cc} -E -traditional-cpp"
2536 cat > conftest.
$ac_ext <<EOF
2537 #line 2538 "configure"
2538 #include "confdefs.h"
2542 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2543 { (eval echo configure
:2544: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2544 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2545 if test -z "$ac_err"; then
2549 echo "configure: failed program was:" >&5
2550 cat conftest.
$ac_ext >&5
2552 CPP
="${CC-cc} -nologo -E"
2553 cat > conftest.
$ac_ext <<EOF
2554 #line 2555 "configure"
2555 #include "confdefs.h"
2559 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2560 { (eval echo configure
:2561: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2561 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2562 if test -z "$ac_err"; then
2566 echo "configure: failed program was:" >&5
2567 cat conftest.
$ac_ext >&5
2576 ac_cv_prog_CPP
="$CPP"
2578 CPP
="$ac_cv_prog_CPP"
2580 ac_cv_prog_CPP
="$CPP"
2582 echo "$ac_t""$CPP" 1>&6
2584 # Read the libtool configuration
2586 .
/libtool
--config > conftest
2590 # Check for command to grab the raw symbol name followed by C symbol from nm.
2591 echo $ac_n "checking command to parse $NM output""... $ac_c" 1>&6
2592 echo "configure:2593: checking command to parse $NM output" >&5
2593 if eval "test \"`echo '$''{'ac_cv_sys_global_symbol_pipe'+set}'`\" = set"; then
2594 echo $ac_n "(cached) $ac_c" 1>&6
2596 # These are sane defaults that work on at least a few old systems.
2597 # {They come from Ultrix. What could be older than Ultrix?!! ;)}
2599 # Character class describing NM global symbol codes.
2600 ac_symcode
='[BCDEGRST]'
2602 # Regexp to match symbols that can be accessed directly from C.
2603 ac_sympat
='\([_A-Za-z][_A-Za-z0-9]*\)'
2605 # Transform the above into a raw symbol and a C symbol.
2606 ac_symxfrm
='\1 \2\3 \3'
2608 # Transform an extracted symbol line into a proper C declaration
2609 ac_global_symbol_to_cdecl
="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
2611 # Define system-specific variables.
2617 ac_symcode
='[ABCDGISTW]'
2620 ac_global_symbol_to_cdecl
="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^. .* \(.*\)$/extern char \1;/p'"
2623 ac_symcode
='[BCDEGRST]'
2630 # If we're using GNU nm, then use its standard symbol codes.
2631 if $NM -V 2>&1 |
egrep '(GNU|with BFD)' > /dev
/null
; then
2632 ac_symcode
='[ABCDGISTW]'
2635 # Try without a prefix undercore, then with it.
2636 for ac_symprfx
in "" "_"; do
2638 ac_cv_sys_global_symbol_pipe
="sed -n -e 's/^.* \($ac_symcode\) *\($ac_symprfx\)$ac_sympat$/$ac_symxfrm/p'"
2640 # Check to see that the pipe works correctly.
2642 rm -f conftest.
$ac_ext
2643 cat > conftest.
$ac_ext <<EOF
2648 void nm_test_func(){}
2652 int main(){nm_test_var='a';nm_test_func;return 0;}
2655 if { (eval echo configure
:2656: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2656 # Now try to grab the symbols.
2657 ac_nlist
=conftest.nm
2659 if { (eval echo configure
:2660: \"$NM conftest.
$ac_objext \|
$ac_cv_sys_global_symbol_pipe \
> $ac_nlist\") 1>&5; (eval $NM conftest.
$ac_objext \|
$ac_cv_sys_global_symbol_pipe \
> $ac_nlist) 2>&5; } && test -s "$ac_nlist"; then
2661 # Try sorting and uniquifying the output.
2662 if sort "$ac_nlist" |
uniq > "$ac_nlist"T
; then
2663 mv -f "$ac_nlist"T
"$ac_nlist"
2668 # Make sure that we snagged all the symbols we need.
2669 if egrep ' nm_test_var$' "$ac_nlist" >/dev
/null
; then
2670 if egrep ' nm_test_func$' "$ac_nlist" >/dev
/null
; then
2671 cat <<EOF > conftest.c
2677 # Now generate the symbol file.
2678 eval "$ac_global_symbol_to_cdecl"' < "$ac_nlist" >> conftest.c'
2680 cat <<EOF >> conftest.c
2681 #if defined (__STDC__) && __STDC__
2682 # define lt_ptr_t void *
2684 # define lt_ptr_t char *
2688 /* The mapping between symbol names and symbols. */
2693 lt_preloaded_symbols[] =
2696 sed 's/^. \(.*\) \(.*\)$/ {"\2", (lt_ptr_t) \&\2},/' < "$ac_nlist" >> conftest.c
2697 cat <<\EOF
>> conftest.c
2705 # Now try linking the two files.
2706 mv conftest.
$ac_objext conftstm.
$ac_objext
2707 ac_save_LIBS
="$LIBS"
2708 ac_save_CFLAGS
="$CFLAGS"
2709 LIBS
="conftstm.$ac_objext"
2710 CFLAGS
="$CFLAGS$no_builtin_flag"
2711 if { (eval echo configure
:2712: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2714 echo "configure: failed program was:" >&5
2717 LIBS
="$ac_save_LIBS"
2718 CFLAGS
="$ac_save_CFLAGS"
2720 echo "cannot find nm_test_func in $ac_nlist" >&5
2723 echo "cannot find nm_test_var in $ac_nlist" >&5
2726 echo "cannot run $ac_cv_sys_global_symbol_pipe" >&5
2729 echo "$progname: failed program was:" >&5
2732 rm -rf conftest
* conftst
*
2734 # Do not use the global_symbol_pipe unless it works.
2735 if test "$ac_pipe_works" = yes; then
2736 if test x
"$ac_symprfx" = x
"_"; then
2737 ac_cv_sys_symbol_underscore
=yes
2739 ac_cv_sys_symbol_underscore
=no
2743 ac_cv_sys_global_symbol_pipe
=
2751 if test -z "$ac_cv_sys_global_symbol_pipe"; then
2754 echo "$ac_t""$ac_result" 1>&6
2756 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2757 echo "configure:2758: checking for ANSI C header files" >&5
2758 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2759 echo $ac_n "(cached) $ac_c" 1>&6
2761 cat > conftest.
$ac_ext <<EOF
2762 #line 2763 "configure"
2763 #include "confdefs.h"
2769 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2770 { (eval echo configure
:2771: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2771 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2772 if test -z "$ac_err"; then
2774 ac_cv_header_stdc
=yes
2777 echo "configure: failed program was:" >&5
2778 cat conftest.
$ac_ext >&5
2780 ac_cv_header_stdc
=no
2784 if test $ac_cv_header_stdc = yes; then
2785 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2786 cat > conftest.
$ac_ext <<EOF
2787 #line 2788 "configure"
2788 #include "confdefs.h"
2791 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2792 egrep "memchr" >/dev
/null
2>&1; then
2796 ac_cv_header_stdc
=no
2802 if test $ac_cv_header_stdc = yes; then
2803 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2804 cat > conftest.
$ac_ext <<EOF
2805 #line 2806 "configure"
2806 #include "confdefs.h"
2809 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2810 egrep "free" >/dev
/null
2>&1; then
2814 ac_cv_header_stdc
=no
2820 if test $ac_cv_header_stdc = yes; then
2821 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2822 if test "$cross_compiling" = yes; then
2825 cat > conftest.
$ac_ext <<EOF
2826 #line 2827 "configure"
2827 #include "confdefs.h"
2829 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2830 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2831 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2832 int main () { int i; for (i = 0; i < 256; i++)
2833 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2837 if { (eval echo configure
:2838: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2841 echo "configure: failed program was:" >&5
2842 cat conftest.
$ac_ext >&5
2844 ac_cv_header_stdc
=no
2852 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2853 if test $ac_cv_header_stdc = yes; then
2854 cat >> confdefs.h
<<\EOF
2855 #define STDC_HEADERS 1
2860 # Check whether --enable-ltdl-install or --disable-ltdl-install was given.
2861 if test "${enable_ltdl_install+set}" = set; then
2862 enableval
="$enable_ltdl_install"
2869 if test x
"${enable_ltdl_install-no}" != xno
; then
2871 INSTALL_LTDL_FALSE
='#'
2873 INSTALL_LTDL_TRUE
='#'
2878 if test x
"${enable_ltdl_convenience-no}" != xno
; then
2879 CONVENIENCE_LTDL_TRUE
=
2880 CONVENIENCE_LTDL_FALSE
='#'
2882 CONVENIENCE_LTDL_TRUE
='#'
2883 CONVENIENCE_LTDL_FALSE
=
2886 echo $ac_n "checking which extension is used for shared libraries""... $ac_c" 1>&6
2887 echo "configure:2888: checking which extension is used for shared libraries" >&5
2888 if eval "test \"`echo '$''{'libltdl_cv_shlibext'+set}'`\" = set"; then
2889 echo $ac_n "(cached) $ac_c" 1>&6
2893 for spec
in $library_names_spec; do
2897 echo "$last" |
sed 's/\[.*\]//;s/^[^.]*//;s/\$.*$//;s/\.$//' > conftest
2900 libltdl_cv_shlibext
=`cat conftest`
2905 echo "$ac_t""$libltdl_cv_shlibext" 1>&6
2906 if test -n "$libltdl_cv_shlibext"; then
2907 cat >> confdefs.h
<<EOF
2908 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
2913 echo $ac_n "checking which variable specifies run-time library path""... $ac_c" 1>&6
2914 echo "configure:2915: checking which variable specifies run-time library path" >&5
2915 if eval "test \"`echo '$''{'libltdl_cv_shlibpath_var'+set}'`\" = set"; then
2916 echo $ac_n "(cached) $ac_c" 1>&6
2918 libltdl_cv_shlibpath_var
="$shlibpath_var"
2921 echo "$ac_t""$libltdl_cv_shlibpath_var" 1>&6
2922 if test -n "$libltdl_cv_shlibpath_var"; then
2923 cat >> confdefs.h
<<EOF
2924 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
2929 echo $ac_n "checking for the default library search path""... $ac_c" 1>&6
2930 echo "configure:2931: checking for the default library search path" >&5
2931 if eval "test \"`echo '$''{'libltdl_cv_sys_search_path'+set}'`\" = set"; then
2932 echo $ac_n "(cached) $ac_c" 1>&6
2934 libltdl_cv_sys_search_path
="$sys_lib_dlsearch_path_spec"
2937 echo "$ac_t""$libltdl_cv_sys_search_path" 1>&6
2938 if test -n "$libltdl_cv_sys_search_path"; then
2940 *-*-mingw*) pathsep
=";" ;;
2944 for dir
in $libltdl_cv_sys_search_path; do
2945 if test -z "$sys_search_path"; then
2946 sys_search_path
="$dir"
2948 sys_search_path
="$sys_search_path$pathsep$dir"
2951 cat >> confdefs.h
<<EOF
2952 #define LTDL_SYSSEARCHPATH "$sys_search_path"
2957 echo $ac_n "checking for objdir""... $ac_c" 1>&6
2958 echo "configure:2959: checking for objdir" >&5
2959 if eval "test \"`echo '$''{'libltdl_cv_objdir'+set}'`\" = set"; then
2960 echo $ac_n "(cached) $ac_c" 1>&6
2962 libltdl_cv_objdir
="$objdir"
2963 if test -n "$objdir"; then
2966 rm -f .libs
2>/dev
/null
2967 mkdir .libs
2>/dev
/null
2968 if test -d .libs
; then
2969 libltdl_cv_objdir
=.libs
2971 # MS-DOS does not allow filenames that begin with a dot.
2972 libltdl_cv_objdir
=_libs
2974 rmdir .libs
2>/dev
/null
2978 echo "$ac_t""$libltdl_cv_objdir" 1>&6
2979 cat >> confdefs.h
<<EOF
2980 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
2984 echo $ac_n "checking whether libtool supports -dlopen/-dlpreopen""... $ac_c" 1>&6
2985 echo "configure:2986: checking whether libtool supports -dlopen/-dlpreopen" >&5
2986 if eval "test \"`echo '$''{'libltdl_cv_preloaded_symbols'+set}'`\" = set"; then
2987 echo $ac_n "(cached) $ac_c" 1>&6
2989 if test -n "$global_symbol_pipe"; then
2990 libltdl_cv_preloaded_symbols
=yes
2992 libltdl_cv_preloaded_symbols
=no
2997 echo "$ac_t""$libltdl_cv_preloaded_symbols" 1>&6
2998 if test x
"$libltdl_cv_preloaded_symbols" = x
"yes"; then
2999 cat >> confdefs.h
<<\EOF
3000 #define HAVE_PRELOADED_SYMBOLS 1
3006 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
3007 echo "configure:3008: checking for dlopen in -ldl" >&5
3008 ac_lib_var
=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
3009 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3010 echo $ac_n "(cached) $ac_c" 1>&6
3012 ac_save_LIBS
="$LIBS"
3014 cat > conftest.
$ac_ext <<EOF
3015 #line 3016 "configure"
3016 #include "confdefs.h"
3017 /* Override any gcc2 internal prototype to avoid an error. */
3018 /* We use char because int might match the return type of a gcc2
3019 builtin and then its argument prototype would still apply. */
3026 if { (eval echo configure
:3027: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3028 eval "ac_cv_lib_$ac_lib_var=yes"
3030 echo "configure: failed program was:" >&5
3031 cat conftest.
$ac_ext >&5
3033 eval "ac_cv_lib_$ac_lib_var=no"
3036 LIBS
="$ac_save_LIBS"
3039 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3040 echo "$ac_t""yes" 1>&6
3041 cat >> confdefs.h
<<\EOF
3042 #define HAVE_LIBDL 1
3046 echo "$ac_t""no" 1>&6
3047 echo $ac_n "checking for dlopen""... $ac_c" 1>&6
3048 echo "configure:3049: checking for dlopen" >&5
3049 if eval "test \"`echo '$''{'ac_cv_func_dlopen'+set}'`\" = set"; then
3050 echo $ac_n "(cached) $ac_c" 1>&6
3052 cat > conftest.
$ac_ext <<EOF
3053 #line 3054 "configure"
3054 #include "confdefs.h"
3055 /* System header to define __stub macros and hopefully few prototypes,
3056 which can conflict with char dlopen(); below. */
3058 /* Override any gcc2 internal prototype to avoid an error. */
3059 /* We use char because int might match the return type of a gcc2
3060 builtin and then its argument prototype would still apply. */
3065 /* The GNU C library defines this for functions which it implements
3066 to always fail with ENOSYS. Some functions are actually named
3067 something starting with __ and the normal name is an alias. */
3068 #if defined (__stub_dlopen) || defined (__stub___dlopen)
3076 if { (eval echo configure
:3077: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3078 eval "ac_cv_func_dlopen=yes"
3080 echo "configure: failed program was:" >&5
3081 cat conftest.
$ac_ext >&5
3083 eval "ac_cv_func_dlopen=no"
3088 if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then
3089 echo "$ac_t""yes" 1>&6
3090 cat >> confdefs.h
<<\EOF
3091 #define HAVE_LIBDL 1
3095 echo "$ac_t""no" 1>&6
3096 echo $ac_n "checking for dlopen in -lsvld""... $ac_c" 1>&6
3097 echo "configure:3098: checking for dlopen in -lsvld" >&5
3098 ac_lib_var
=`echo svld'_'dlopen | sed 'y%./+-%__p_%'`
3099 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3100 echo $ac_n "(cached) $ac_c" 1>&6
3102 ac_save_LIBS
="$LIBS"
3104 cat > conftest.
$ac_ext <<EOF
3105 #line 3106 "configure"
3106 #include "confdefs.h"
3107 /* Override any gcc2 internal prototype to avoid an error. */
3108 /* We use char because int might match the return type of a gcc2
3109 builtin and then its argument prototype would still apply. */
3116 if { (eval echo configure
:3117: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3118 eval "ac_cv_lib_$ac_lib_var=yes"
3120 echo "configure: failed program was:" >&5
3121 cat conftest.
$ac_ext >&5
3123 eval "ac_cv_lib_$ac_lib_var=no"
3126 LIBS
="$ac_save_LIBS"
3129 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3130 echo "$ac_t""yes" 1>&6
3131 cat >> confdefs.h
<<\EOF
3132 #define HAVE_LIBDL 1
3137 echo "$ac_t""no" 1>&6
3144 echo $ac_n "checking for shl_load""... $ac_c" 1>&6
3145 echo "configure:3146: checking for shl_load" >&5
3146 if eval "test \"`echo '$''{'ac_cv_func_shl_load'+set}'`\" = set"; then
3147 echo $ac_n "(cached) $ac_c" 1>&6
3149 cat > conftest.
$ac_ext <<EOF
3150 #line 3151 "configure"
3151 #include "confdefs.h"
3152 /* System header to define __stub macros and hopefully few prototypes,
3153 which can conflict with char shl_load(); below. */
3155 /* Override any gcc2 internal prototype to avoid an error. */
3156 /* We use char because int might match the return type of a gcc2
3157 builtin and then its argument prototype would still apply. */
3162 /* The GNU C library defines this for functions which it implements
3163 to always fail with ENOSYS. Some functions are actually named
3164 something starting with __ and the normal name is an alias. */
3165 #if defined (__stub_shl_load) || defined (__stub___shl_load)
3173 if { (eval echo configure
:3174: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3175 eval "ac_cv_func_shl_load=yes"
3177 echo "configure: failed program was:" >&5
3178 cat conftest.
$ac_ext >&5
3180 eval "ac_cv_func_shl_load=no"
3185 if eval "test \"`echo '$ac_cv_func_'shl_load`\" = yes"; then
3186 echo "$ac_t""yes" 1>&6
3187 cat >> confdefs.h
<<\EOF
3188 #define HAVE_SHL_LOAD 1
3192 echo "$ac_t""no" 1>&6
3193 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
3194 echo "configure:3195: checking for shl_load in -ldld" >&5
3195 ac_lib_var
=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
3196 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3197 echo $ac_n "(cached) $ac_c" 1>&6
3199 ac_save_LIBS
="$LIBS"
3201 cat > conftest.
$ac_ext <<EOF
3202 #line 3203 "configure"
3203 #include "confdefs.h"
3204 /* Override any gcc2 internal prototype to avoid an error. */
3205 /* We use char because int might match the return type of a gcc2
3206 builtin and then its argument prototype would still apply. */
3213 if { (eval echo configure
:3214: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3215 eval "ac_cv_lib_$ac_lib_var=yes"
3217 echo "configure: failed program was:" >&5
3218 cat conftest.
$ac_ext >&5
3220 eval "ac_cv_lib_$ac_lib_var=no"
3223 LIBS
="$ac_save_LIBS"
3226 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3227 echo "$ac_t""yes" 1>&6
3228 cat >> confdefs.h
<<\EOF
3229 #define HAVE_SHL_LOAD 1
3232 LIBADD_DL
="$LIBADD_DL -ldld"
3234 echo "$ac_t""no" 1>&6
3240 echo $ac_n "checking for dld_link in -ldld""... $ac_c" 1>&6
3241 echo "configure:3242: checking for dld_link in -ldld" >&5
3242 ac_lib_var
=`echo dld'_'dld_link | sed 'y%./+-%__p_%'`
3243 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3244 echo $ac_n "(cached) $ac_c" 1>&6
3246 ac_save_LIBS
="$LIBS"
3248 cat > conftest.
$ac_ext <<EOF
3249 #line 3250 "configure"
3250 #include "confdefs.h"
3251 /* Override any gcc2 internal prototype to avoid an error. */
3252 /* We use char because int might match the return type of a gcc2
3253 builtin and then its argument prototype would still apply. */
3260 if { (eval echo configure
:3261: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3262 eval "ac_cv_lib_$ac_lib_var=yes"
3264 echo "configure: failed program was:" >&5
3265 cat conftest.
$ac_ext >&5
3267 eval "ac_cv_lib_$ac_lib_var=no"
3270 LIBS
="$ac_save_LIBS"
3273 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3274 echo "$ac_t""yes" 1>&6
3275 cat >> confdefs.h
<<\EOF
3278 test "x$ac_cv_lib_dld_shl_load" = yes || LIBADD_DL
="$LIBADD_DL -ldld"
3280 echo "$ac_t""no" 1>&6
3285 if test "x$ac_cv_func_dlopen" = xyes ||
test "x$ac_cv_lib_dl_dlopen" = xyes
; then
3287 LIBS
="$LIBS $LIBADD_DL"
3288 for ac_func
in dlerror
3290 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3291 echo "configure:3292: checking for $ac_func" >&5
3292 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3293 echo $ac_n "(cached) $ac_c" 1>&6
3295 cat > conftest.
$ac_ext <<EOF
3296 #line 3297 "configure"
3297 #include "confdefs.h"
3298 /* System header to define __stub macros and hopefully few prototypes,
3299 which can conflict with char $ac_func(); below. */
3301 /* Override any gcc2 internal prototype to avoid an error. */
3302 /* We use char because int might match the return type of a gcc2
3303 builtin and then its argument prototype would still apply. */
3308 /* The GNU C library defines this for functions which it implements
3309 to always fail with ENOSYS. Some functions are actually named
3310 something starting with __ and the normal name is an alias. */
3311 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3319 if { (eval echo configure
:3320: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3321 eval "ac_cv_func_$ac_func=yes"
3323 echo "configure: failed program was:" >&5
3324 cat conftest.
$ac_ext >&5
3326 eval "ac_cv_func_$ac_func=no"
3331 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3332 echo "$ac_t""yes" 1>&6
3333 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3334 cat >> confdefs.h
<<EOF
3335 #define $ac_tr_func 1
3339 echo "$ac_t""no" 1>&6
3346 echo $ac_n "checking for _ prefix in compiled symbols""... $ac_c" 1>&6
3347 echo "configure:3348: checking for _ prefix in compiled symbols" >&5
3348 if eval "test \"`echo '$''{'ac_cv_sys_symbol_underscore'+set}'`\" = set"; then
3349 echo $ac_n "(cached) $ac_c" 1>&6
3351 ac_cv_sys_symbol_underscore
=no
3352 cat > conftest.
$ac_ext <<EOF
3353 void nm_test_func(){}
3354 int main(){nm_test_func;return 0;}
3356 if { (eval echo configure
:3357: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3357 # Now try to grab the symbols.
3358 ac_nlist
=conftest.nm
3359 if { (eval echo configure
:3360: \"$NM conftest.
$ac_objext \|
$ac_cv_sys_global_symbol_pipe \
> $ac_nlist\") 1>&5; (eval $NM conftest.
$ac_objext \|
$ac_cv_sys_global_symbol_pipe \
> $ac_nlist) 2>&5; } && test -s "$ac_nlist"; then
3360 # See whether the symbols have a leading underscore.
3361 if egrep '^. _nm_test_func' "$ac_nlist" >/dev
/null
; then
3362 ac_cv_sys_symbol_underscore
=yes
3364 if egrep '^. nm_test_func ' "$ac_nlist" >/dev
/null
; then
3367 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
3371 echo "configure: cannot run $ac_cv_sys_global_symbol_pipe" >&5
3374 echo "configure: failed program was:" >&5
3381 echo "$ac_t""$ac_cv_sys_symbol_underscore" 1>&6
3382 if test x
"$ac_cv_sys_symbol_underscore" = xyes
; then
3383 if test x
"$ac_cv_func_dlopen" = xyes ||
3384 test x
"$ac_cv_lib_dl_dlopen" = xyes
; then
3385 echo $ac_n "checking whether we have to add an underscore for dlsym""... $ac_c" 1>&6
3386 echo "configure:3387: checking whether we have to add an underscore for dlsym" >&5
3387 if eval "test \"`echo '$''{'libltdl_cv_need_uscore'+set}'`\" = set"; then
3388 echo $ac_n "(cached) $ac_c" 1>&6
3390 if test "$cross_compiling" = yes; then
3391 libltdl_cv_need_uscore
=cross
3394 cat > conftest.
$ac_ext <<EOF
3395 #line 3396 "configure"
3396 #include "confdefs.h"
3405 # define LTDL_GLOBAL RTLD_GLOBAL
3408 # define LTDL_GLOBAL DL_GLOBAL
3410 # define LTDL_GLOBAL 0
3414 /* We may have to define LTDL_LAZY_OR_NOW in the command line if we
3415 find out it does not work in some platform. */
3416 #ifndef LTDL_LAZY_OR_NOW
3418 # define LTDL_LAZY_OR_NOW RTLD_LAZY
3421 # define LTDL_LAZY_OR_NOW DL_LAZY
3424 # define LTDL_LAZY_OR_NOW RTLD_NOW
3427 # define LTDL_LAZY_OR_NOW DL_NOW
3429 # define LTDL_LAZY_OR_NOW 0
3436 fnord() { int i=42;}
3437 main() { void *self, *ptr1, *ptr2; self=dlopen(0,LTDL_GLOBAL|LTDL_LAZY_OR_NOW);
3438 if(self) { ptr1=dlsym(self,"fnord"); ptr2=dlsym(self,"_fnord");
3439 if(ptr1 && !ptr2) { dlclose(self); exit(0); } } exit(1); }
3442 if { (eval echo configure
:3443: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3444 libltdl_cv_need_uscore
=no
3446 echo "configure: failed program was:" >&5
3447 cat conftest.
$ac_ext >&5
3449 libltdl_cv_need_uscore
=yes
3456 echo "$ac_t""$libltdl_cv_need_uscore" 1>&6
3460 if test x
"$libltdl_cv_need_uscore" = xyes
; then
3461 cat >> confdefs.h
<<\EOF
3462 #define NEED_USCORE 1
3470 for ac_hdr
in malloc.h memory.h stdlib.h stdio.h ctype.h dlfcn.h dl.h dld.h
3472 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3473 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3474 echo "configure:3475: checking for $ac_hdr" >&5
3475 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3476 echo $ac_n "(cached) $ac_c" 1>&6
3478 cat > conftest.
$ac_ext <<EOF
3479 #line 3480 "configure"
3480 #include "confdefs.h"
3483 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3484 { (eval echo configure
:3485: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3485 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3486 if test -z "$ac_err"; then
3488 eval "ac_cv_header_$ac_safe=yes"
3491 echo "configure: failed program was:" >&5
3492 cat conftest.
$ac_ext >&5
3494 eval "ac_cv_header_$ac_safe=no"
3498 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3499 echo "$ac_t""yes" 1>&6
3500 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3501 cat >> confdefs.h
<<EOF
3502 #define $ac_tr_hdr 1
3506 echo "$ac_t""no" 1>&6
3510 for ac_hdr
in string.h
strings.h
3512 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3513 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3514 echo "configure:3515: checking for $ac_hdr" >&5
3515 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3516 echo $ac_n "(cached) $ac_c" 1>&6
3518 cat > conftest.
$ac_ext <<EOF
3519 #line 3520 "configure"
3520 #include "confdefs.h"
3523 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3524 { (eval echo configure
:3525: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3525 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3526 if test -z "$ac_err"; then
3528 eval "ac_cv_header_$ac_safe=yes"
3531 echo "configure: failed program was:" >&5
3532 cat conftest.
$ac_ext >&5
3534 eval "ac_cv_header_$ac_safe=no"
3538 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3539 echo "$ac_t""yes" 1>&6
3540 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3541 cat >> confdefs.h
<<EOF
3542 #define $ac_tr_hdr 1
3546 echo "$ac_t""no" 1>&6
3550 for ac_func
in strchr index
3552 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3553 echo "configure:3554: checking for $ac_func" >&5
3554 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3555 echo $ac_n "(cached) $ac_c" 1>&6
3557 cat > conftest.
$ac_ext <<EOF
3558 #line 3559 "configure"
3559 #include "confdefs.h"
3560 /* System header to define __stub macros and hopefully few prototypes,
3561 which can conflict with char $ac_func(); below. */
3563 /* Override any gcc2 internal prototype to avoid an error. */
3564 /* We use char because int might match the return type of a gcc2
3565 builtin and then its argument prototype would still apply. */
3570 /* The GNU C library defines this for functions which it implements
3571 to always fail with ENOSYS. Some functions are actually named
3572 something starting with __ and the normal name is an alias. */
3573 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3581 if { (eval echo configure
:3582: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3583 eval "ac_cv_func_$ac_func=yes"
3585 echo "configure: failed program was:" >&5
3586 cat conftest.
$ac_ext >&5
3588 eval "ac_cv_func_$ac_func=no"
3593 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3594 echo "$ac_t""yes" 1>&6
3595 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3596 cat >> confdefs.h
<<EOF
3597 #define $ac_tr_func 1
3601 echo "$ac_t""no" 1>&6
3605 for ac_func
in strrchr rindex
3607 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3608 echo "configure:3609: checking for $ac_func" >&5
3609 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3610 echo $ac_n "(cached) $ac_c" 1>&6
3612 cat > conftest.
$ac_ext <<EOF
3613 #line 3614 "configure"
3614 #include "confdefs.h"
3615 /* System header to define __stub macros and hopefully few prototypes,
3616 which can conflict with char $ac_func(); below. */
3618 /* Override any gcc2 internal prototype to avoid an error. */
3619 /* We use char because int might match the return type of a gcc2
3620 builtin and then its argument prototype would still apply. */
3625 /* The GNU C library defines this for functions which it implements
3626 to always fail with ENOSYS. Some functions are actually named
3627 something starting with __ and the normal name is an alias. */
3628 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3636 if { (eval echo configure
:3637: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3638 eval "ac_cv_func_$ac_func=yes"
3640 echo "configure: failed program was:" >&5
3641 cat conftest.
$ac_ext >&5
3643 eval "ac_cv_func_$ac_func=no"
3648 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3649 echo "$ac_t""yes" 1>&6
3650 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3651 cat >> confdefs.h
<<EOF
3652 #define $ac_tr_func 1
3656 echo "$ac_t""no" 1>&6
3660 for ac_func
in strcmp
3662 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3663 echo "configure:3664: checking for $ac_func" >&5
3664 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3665 echo $ac_n "(cached) $ac_c" 1>&6
3667 cat > conftest.
$ac_ext <<EOF
3668 #line 3669 "configure"
3669 #include "confdefs.h"
3670 /* System header to define __stub macros and hopefully few prototypes,
3671 which can conflict with char $ac_func(); below. */
3673 /* Override any gcc2 internal prototype to avoid an error. */
3674 /* We use char because int might match the return type of a gcc2
3675 builtin and then its argument prototype would still apply. */
3680 /* The GNU C library defines this for functions which it implements
3681 to always fail with ENOSYS. Some functions are actually named
3682 something starting with __ and the normal name is an alias. */
3683 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3691 if { (eval echo configure
:3692: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3693 eval "ac_cv_func_$ac_func=yes"
3695 echo "configure: failed program was:" >&5
3696 cat conftest.
$ac_ext >&5
3698 eval "ac_cv_func_$ac_func=no"
3703 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3704 echo "$ac_t""yes" 1>&6
3705 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3706 cat >> confdefs.h
<<EOF
3707 #define $ac_tr_func 1
3711 echo "$ac_t""no" 1>&6
3719 cat > confcache
<<\EOF
3720 # This file is a shell script that caches the results of configure
3721 # tests run on this system so they can be shared between configure
3722 # scripts and configure runs. It is not useful on other systems.
3723 # If it contains results you don't want to keep, you may remove or edit it.
3725 # By default, configure uses ./config.cache as the cache file,
3726 # creating it if it does not exist already. You can give configure
3727 # the --cache-file=FILE option to use a different cache file; that is
3728 # what configure does when it calls configure scripts in
3729 # subdirectories, so they share the cache.
3730 # Giving --cache-file=/dev/null disables caching, for debugging configure.
3731 # config.status only pays attention to the cache file if you give it the
3732 # --recheck option to rerun configure.
3735 # The following way of writing the cache mishandles newlines in values,
3736 # but we know of no workaround that is simple, portable, and efficient.
3737 # So, don't put newlines in cache variables' values.
3738 # Ultrix sh set writes to stderr and can't be redirected directly,
3739 # and sets the high bit in the cache file unless we assign to the vars.
3741 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3743 # `set' does not quote correctly, so add quotes (double-quote substitution
3744 # turns \\\\ into \\, and sed turns \\ into \).
3746 -e "s/'/'\\\\''/g" \
3747 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3750 # `set' quotes correctly as required by POSIX, so do not add quotes.
3751 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3754 if cmp -s $cache_file confcache
; then
3757 if test -w $cache_file; then
3758 echo "updating cache $cache_file"
3759 cat confcache
> $cache_file
3761 echo "not updating unwritable cache $cache_file"
3766 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3768 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
3769 # Let make expand exec_prefix.
3770 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
3772 # Any assignment to VPATH causes Sun make to only execute
3773 # the first set of double-colon rules, so remove it if not needed.
3774 # If there is a colon in the path, we need to keep it.
3775 if test "x$srcdir" = x.
; then
3776 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
3779 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3781 DEFS
=-DHAVE_CONFIG_H
3783 # Without the "./", some shells look in PATH for config.status.
3784 : ${CONFIG_STATUS=./config.status}
3786 echo creating
$CONFIG_STATUS
3787 rm -f $CONFIG_STATUS
3788 cat > $CONFIG_STATUS <<EOF
3790 # Generated automatically by configure.
3791 # Run this file to recreate the current configuration.
3792 # This directory was configured as follows,
3793 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3795 # $0 $ac_configure_args
3797 # Compiler output produced by configure, useful for debugging
3798 # configure, is in ./config.log if it exists.
3800 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3803 case "\$ac_option" in
3804 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3805 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3806 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3807 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3808 echo "$CONFIG_STATUS generated by autoconf version 2.13"
3810 -help | --help | --hel | --he | --h)
3811 echo "\$ac_cs_usage"; exit 0 ;;
3812 *) echo "\$ac_cs_usage"; exit 1 ;;
3816 ac_given_srcdir=$srcdir
3817 ac_given_INSTALL="$INSTALL"
3819 trap 'rm -fr `echo "Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3821 cat >> $CONFIG_STATUS <<EOF
3823 # Protect against being on the right side of a sed subst in config.status.
3824 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3825 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3829 s%@CFLAGS@%$CFLAGS%g
3830 s%@CPPFLAGS@%$CPPFLAGS%g
3831 s%@CXXFLAGS@%$CXXFLAGS%g
3832 s%@FFLAGS@%$FFLAGS%g
3834 s%@LDFLAGS@%$LDFLAGS%g
3836 s%@exec_prefix@%$exec_prefix%g
3837 s%@prefix@%$prefix%g
3838 s%@program_transform_name@%$program_transform_name%g
3839 s%@bindir@%$bindir%g
3840 s%@sbindir@%$sbindir%g
3841 s%@libexecdir@%$libexecdir%g
3842 s%@datadir@%$datadir%g
3843 s%@sysconfdir@%$sysconfdir%g
3844 s%@sharedstatedir@%$sharedstatedir%g
3845 s%@localstatedir@%$localstatedir%g
3846 s%@libdir@%$libdir%g
3847 s%@includedir@%$includedir%g
3848 s%@oldincludedir@%$oldincludedir%g
3849 s%@infodir@%$infodir%g
3850 s%@mandir@%$mandir%g
3851 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3852 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
3853 s%@INSTALL_DATA@%$INSTALL_DATA%g
3854 s%@PACKAGE@%$PACKAGE%g
3855 s%@VERSION@%$VERSION%g
3856 s%@ACLOCAL@%$ACLOCAL%g
3857 s%@AUTOCONF@%$AUTOCONF%g
3858 s%@AUTOMAKE@%$AUTOMAKE%g
3859 s%@AUTOHEADER@%$AUTOHEADER%g
3860 s%@MAKEINFO@%$MAKEINFO%g
3861 s%@SET_MAKE@%$SET_MAKE%g
3862 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
3863 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
3867 s%@host_alias@%$host_alias%g
3868 s%@host_cpu@%$host_cpu%g
3869 s%@host_vendor@%$host_vendor%g
3870 s%@host_os@%$host_os%g
3872 s%@build_alias@%$build_alias%g
3873 s%@build_cpu@%$build_cpu%g
3874 s%@build_vendor@%$build_vendor%g
3875 s%@build_os@%$build_os%g
3877 s%@OBJEXT@%$OBJEXT%g
3878 s%@EXEEXT@%$EXEEXT%g
3879 s%@RANLIB@%$RANLIB%g
3881 s%@DLLTOOL@%$DLLTOOL%g
3883 s%@OBJDUMP@%$OBJDUMP%g
3884 s%@LIBTOOL@%$LIBTOOL%g
3885 s%@LIBTOOL_DEPS@%$LIBTOOL_DEPS%g
3886 s%@GCINCS@%$GCINCS%g
3888 s%@INSTALL_LTDL_TRUE@%$INSTALL_LTDL_TRUE%g
3889 s%@INSTALL_LTDL_FALSE@%$INSTALL_LTDL_FALSE%g
3890 s%@CONVENIENCE_LTDL_TRUE@%$CONVENIENCE_LTDL_TRUE%g
3891 s%@CONVENIENCE_LTDL_FALSE@%$CONVENIENCE_LTDL_FALSE%g
3892 s%@LIBADD_DL@%$LIBADD_DL%g
3897 cat >> $CONFIG_STATUS <<\EOF
3899 # Split the substitutions into bite-sized pieces for seds with
3900 # small command number limits, like on Digital OSF/1 and HP-UX.
3901 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
3902 ac_file
=1 # Number of current file.
3903 ac_beg
=1 # First line for current file.
3904 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
3907 while $ac_more_lines; do
3908 if test $ac_beg -gt 1; then
3909 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
3911 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
3913 if test ! -s conftest.s
$ac_file; then
3915 rm -f conftest.s
$ac_file
3917 if test -z "$ac_sed_cmds"; then
3918 ac_sed_cmds
="sed -f conftest.s$ac_file"
3920 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
3922 ac_file
=`expr $ac_file + 1`
3924 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
3927 if test -z "$ac_sed_cmds"; then
3932 cat >> $CONFIG_STATUS <<EOF
3934 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
3936 cat >> $CONFIG_STATUS <<\EOF
3937 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
3938 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3940 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
3941 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
3942 *) ac_file_in
="${ac_file}.in" ;;
3945 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3947 # Remove last slash and all that follows it. Not all systems have dirname.
3948 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3949 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
3950 # The file is in a subdirectory.
3951 test ! -d "$ac_dir" && mkdir
"$ac_dir"
3952 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
3953 # A "../" for each directory in $ac_dir_suffix.
3954 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3956 ac_dir_suffix
= ac_dots
=
3959 case "$ac_given_srcdir" in
3961 if test -z "$ac_dots"; then top_srcdir
=.
3962 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3963 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
3965 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3966 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
3969 case "$ac_given_INSTALL" in
3970 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
3971 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
3974 echo creating
"$ac_file"
3976 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3978 *Makefile
*) ac_comsub
="1i\\
3979 # $configure_input" ;;
3983 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3985 s%@configure_input@%$configure_input%g
3986 s%@srcdir@%$srcdir%g
3987 s%@top_srcdir@%$top_srcdir%g
3988 s%@INSTALL@%$INSTALL%g
3989 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
3993 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3994 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3996 # ac_d sets the value in "#define NAME VALUE" lines.
3997 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3998 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
4001 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
4002 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4003 ac_uB
='\([ ]\)%\1#\2define\3'
4006 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4007 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4008 ac_eB
='$%\1#\2define\3'
4012 if test "${CONFIG_HEADERS+set}" != set; then
4014 cat >> $CONFIG_STATUS <<EOF
4015 CONFIG_HEADERS="config.h"
4017 cat >> $CONFIG_STATUS <<\EOF
4019 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
4020 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4022 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
4023 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
4024 *) ac_file_in
="${ac_file}.in" ;;
4027 echo creating
$ac_file
4029 rm -f conftest.frag conftest.
in conftest.out
4030 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4031 cat $ac_file_inputs > conftest.
in
4035 # Transform confdefs.h into a sed script conftest.vals that substitutes
4036 # the proper values into config.h.in to produce config.h. And first:
4037 # Protect against being on the right side of a sed subst in config.status.
4038 # Protect against being in an unquoted here document in config.status.
4040 cat > conftest.hdr
<<\EOF
4043 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
4047 sed -n -f conftest.hdr confdefs.h > conftest.vals
4050 # This sed command replaces #undef with comments. This is necessary, for
4051 # example, in the case of _POSIX_SOURCE, which is predefined and required
4052 # on some systems where configure will not decide to define it.
4053 cat >> conftest.vals <<\EOF
4054 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
4057 # Break up conftest.vals because some shells have a limit on
4058 # the size of here documents, and old seds have small limits too.
4063 ac_lines=`grep -c . conftest.vals
`
4064 # grep -c gives empty output for an empty file on some AIX systems.
4065 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
4066 # Write a limited-size here document to conftest.frag.
4067 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
4068 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
4070 sed -f conftest.frag conftest.in > conftest.out
4072 mv conftest.out conftest.in
4074 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
4076 mv conftest.tail conftest.vals
4080 cat >> $CONFIG_STATUS <<\EOF
4081 rm -f conftest.frag conftest.h
4082 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
4083 cat conftest.in >> conftest.h
4085 if cmp -s $ac_file conftest.h 2>/dev/null; then
4086 echo "$ac_file is unchanged"
4089 # Remove last slash and all that follows it. Not all systems have dirname.
4090 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
4091 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4092 # The file is in a subdirectory.
4093 test ! -d "$ac_dir" && mkdir "$ac_dir"
4096 mv conftest.h $ac_file
4101 cat >> $CONFIG_STATUS <<EOF
4105 cat >> $CONFIG_STATUS <<\EOF
4106 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
4110 chmod +x $CONFIG_STATUS
4111 rm -fr confdefs* $ac_clean_files
4112 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1