3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
15 --enable-maintainer-mode enable make rules and dependencies not useful
16 (and sometimes confusing) to the casual installer"
18 --enable-shared[=PKGS] build shared libraries [default=yes]"
20 --enable-static[=PKGS] build static libraries [default=yes]"
22 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
24 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
26 --disable-libtool-lock avoid locking (might break parallel builds)"
28 --enable-ltdl-install install libltdl"
30 # Initialize some variables set by options.
31 # The variables have the same names as the options, with
32 # dashes changed to underlines.
34 cache_file=./config.cache
43 program_transform_name=s,x,x,
51 bindir='${exec_prefix}/bin'
52 sbindir='${exec_prefix}/sbin'
53 libexecdir='${exec_prefix}/libexec'
54 datadir='${prefix}/share'
55 sysconfdir='${prefix}/etc'
56 sharedstatedir='${prefix}/com'
57 localstatedir='${prefix}/var'
58 libdir='${exec_prefix}/lib'
59 includedir='${prefix}/include'
60 oldincludedir='/usr/include'
61 infodir='${prefix}/info'
62 mandir='${prefix}/man'
64 # Initialize some other variables.
67 SHELL=${CONFIG_SHELL-/bin/sh}
68 # Maximum number of lines to put in a shell here document.
75 # If the previous option needs an argument, assign it.
76 if test -n "$ac_prev"; then
77 eval "$ac_prev=\$ac_option"
83 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
87 # Accept the important Cygnus configure options, so we can diagnose typos.
91 -bindir | --bindir | --bindi | --bind | --bin | --bi)
93 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
94 bindir="$ac_optarg" ;;
96 -build | --build | --buil | --bui | --bu)
98 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
101 -cache-file | --cache-file | --cache-fil | --cache-fi \
102 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
103 ac_prev=cache_file ;;
104 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
105 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
106 cache_file="$ac_optarg" ;;
108 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
110 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
112 datadir="$ac_optarg" ;;
114 -disable-* | --disable-*)
115 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
116 # Reject names that are not valid shell variable names.
117 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
118 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
120 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
121 eval "enable_${ac_feature}=no" ;;
123 -enable-* | --enable-*)
124 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
125 # Reject names that are not valid shell variable names.
126 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
127 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
129 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
134 eval "enable_${ac_feature}='$ac_optarg'" ;;
136 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
137 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
138 | --exec | --exe | --ex)
139 ac_prev=exec_prefix ;;
140 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
141 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
142 | --exec=* | --exe=* | --ex=*)
143 exec_prefix="$ac_optarg" ;;
145 -gas | --gas | --ga | --g)
146 # Obsolete; use --with-gas.
149 -help | --help | --hel | --he)
150 # Omit some internal or obsolete options to make the list less imposing.
151 # This message is too long to be a string in the A/UX 3.1 sh.
153 Usage: configure [options] [host]
154 Options: [defaults in brackets after descriptions]
156 --cache-file=FILE cache test results in FILE
157 --help print this message
158 --no-create do not create output files
159 --quiet, --silent do not print \`checking...' messages
160 --version print the version of autoconf that created configure
161 Directory and file names:
162 --prefix=PREFIX install architecture-independent files in PREFIX
164 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
166 --bindir=DIR user executables in DIR [EPREFIX/bin]
167 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
168 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
169 --datadir=DIR read-only architecture-independent data in DIR
171 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
172 --sharedstatedir=DIR modifiable architecture-independent data in DIR
174 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
175 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
176 --includedir=DIR C header files in DIR [PREFIX/include]
177 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
178 --infodir=DIR info documentation in DIR [PREFIX/info]
179 --mandir=DIR man documentation in DIR [PREFIX/man]
180 --srcdir=DIR find the sources in DIR [configure dir or ..]
181 --program-prefix=PREFIX prepend PREFIX to installed program names
182 --program-suffix=SUFFIX append SUFFIX to installed program names
183 --program-transform-name=PROGRAM
184 run sed PROGRAM on installed program names
188 --build=BUILD configure for building on BUILD [BUILD=HOST]
189 --host=HOST configure for HOST [guessed]
190 --target=TARGET configure for TARGET [TARGET=HOST]
191 Features and packages:
192 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
193 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
194 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
195 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
196 --x-includes=DIR X include files are in DIR
197 --x-libraries=DIR X library files are in DIR
199 if test -n "$ac_help"; then
200 echo "--enable and --with options recognized:$ac_help"
204 -host | --host | --hos | --ho)
206 -host=* | --host=* | --hos=* | --ho=*)
209 -includedir | --includedir | --includedi | --included | --include \
210 | --includ | --inclu | --incl | --inc)
211 ac_prev=includedir ;;
212 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
213 | --includ=* | --inclu=* | --incl=* | --inc=*)
214 includedir="$ac_optarg" ;;
216 -infodir | --infodir | --infodi | --infod | --info | --inf)
218 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
219 infodir="$ac_optarg" ;;
221 -libdir | --libdir | --libdi | --libd)
223 -libdir=* | --libdir=* | --libdi=* | --libd=*)
224 libdir="$ac_optarg" ;;
226 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
227 | --libexe | --libex | --libe)
228 ac_prev=libexecdir ;;
229 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
230 | --libexe=* | --libex=* | --libe=*)
231 libexecdir="$ac_optarg" ;;
233 -localstatedir | --localstatedir | --localstatedi | --localstated \
234 | --localstate | --localstat | --localsta | --localst \
235 | --locals | --local | --loca | --loc | --lo)
236 ac_prev=localstatedir ;;
237 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
238 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
239 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
240 localstatedir="$ac_optarg" ;;
242 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
244 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
245 mandir="$ac_optarg" ;;
248 # Obsolete; use --without-fp.
251 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
255 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
256 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
259 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
260 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
261 | --oldin | --oldi | --old | --ol | --o)
262 ac_prev=oldincludedir ;;
263 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
264 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
265 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
266 oldincludedir="$ac_optarg" ;;
268 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
270 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
271 prefix="$ac_optarg" ;;
273 -program-prefix | --program-prefix | --program-prefi | --program-pref \
274 | --program-pre | --program-pr | --program-p)
275 ac_prev=program_prefix ;;
276 -program-prefix=* | --program-prefix=* | --program-prefi=* \
277 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
278 program_prefix="$ac_optarg" ;;
280 -program-suffix | --program-suffix | --program-suffi | --program-suff \
281 | --program-suf | --program-su | --program-s)
282 ac_prev=program_suffix ;;
283 -program-suffix=* | --program-suffix=* | --program-suffi=* \
284 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
285 program_suffix="$ac_optarg" ;;
287 -program-transform-name | --program-transform-name \
288 | --program-transform-nam | --program-transform-na \
289 | --program-transform-n | --program-transform- \
290 | --program-transform | --program-transfor \
291 | --program-transfo | --program-transf \
292 | --program-trans | --program-tran \
293 | --progr-tra | --program-tr | --program-t)
294 ac_prev=program_transform_name ;;
295 -program-transform-name=* | --program-transform-name=* \
296 | --program-transform-nam=* | --program-transform-na=* \
297 | --program-transform-n=* | --program-transform-=* \
298 | --program-transform=* | --program-transfor=* \
299 | --program-transfo=* | --program-transf=* \
300 | --program-trans=* | --program-tran=* \
301 | --progr-tra=* | --program-tr=* | --program-t=*)
302 program_transform_name="$ac_optarg" ;;
304 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
305 | -silent | --silent | --silen | --sile | --sil)
308 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
310 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
312 sbindir="$ac_optarg" ;;
314 -sharedstatedir | --sharedstatedir | --sharedstatedi \
315 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
316 | --sharedst | --shareds | --shared | --share | --shar \
318 ac_prev=sharedstatedir ;;
319 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
320 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
321 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
323 sharedstatedir="$ac_optarg" ;;
325 -site | --site | --sit)
327 -site=* | --site=* | --sit=*)
330 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
332 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
333 srcdir="$ac_optarg" ;;
335 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
336 | --syscon | --sysco | --sysc | --sys | --sy)
337 ac_prev=sysconfdir ;;
338 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
339 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
340 sysconfdir="$ac_optarg" ;;
342 -target | --target | --targe | --targ | --tar | --ta | --t)
344 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
345 target="$ac_optarg" ;;
347 -v | -verbose | --verbose | --verbos | --verbo | --verb)
350 -version | --version | --versio | --versi | --vers)
351 echo "configure generated by autoconf version 2.13"
355 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
356 # Reject names that are not valid shell variable names.
357 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
358 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
360 ac_package=`echo $ac_package| sed 's/-/_/g'`
365 eval "with_${ac_package}='$ac_optarg'" ;;
367 -without-* | --without-*)
368 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
369 # Reject names that are not valid shell variable names.
370 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
371 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
373 ac_package=`echo $ac_package| sed 's/-/_/g'`
374 eval "with_${ac_package}=no" ;;
377 # Obsolete; use --with-x.
380 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
381 | --x-incl | --x-inc | --x-in | --x-i)
382 ac_prev=x_includes ;;
383 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
384 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
385 x_includes="$ac_optarg" ;;
387 -x-libraries | --x-libraries | --x-librarie | --x-librari \
388 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
389 ac_prev=x_libraries ;;
390 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
391 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
392 x_libraries="$ac_optarg" ;;
394 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
398 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
399 echo "configure: warning: $ac_option: invalid host type" 1>&2
401 if test "x$nonopt" != xNONE; then
402 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
410 if test -n "$ac_prev"; then
411 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
414 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
416 # File descriptor usage:
419 # 2 errors and warnings
420 # 3 some systems may open it to /dev/tty
421 # 4 used on the Kubota Titan
422 # 6 checking for... messages and results
423 # 5 compiler messages saved in config.log
424 if test "$silent" = yes; then
432 This file contains any messages produced by compilers while
433 running configure, to aid debugging if configure makes a mistake.
436 # Strip out --no-create and --no-recursion so they do not pile up.
437 # Also quote any args containing shell metacharacters.
442 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
443 | --no-cr | --no-c) ;;
444 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
445 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
446 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
447 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
448 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
453 # Only set these to C if already set. These must not be set unconditionally
454 # because not all systems understand e.g. LANG=C (notably SCO).
455 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
456 # Non-C LC_CTYPE values break the ctype check.
457 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
458 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
459 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
460 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
462 # confdefs.h avoids OS command line length limits that DEFS can exceed.
463 rm -rf conftest* confdefs.h
464 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
467 # A filename unique to this package, relative to the directory that
468 # configure is in, which we can look for to find out if srcdir is correct.
469 ac_unique_file=ltdl.c
471 # Find the source files, if location was not specified.
472 if test -z "$srcdir"; then
473 ac_srcdir_defaulted=yes
474 # Try the directory containing this script, then its parent.
476 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
477 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
479 if test ! -r $srcdir/$ac_unique_file; then
483 ac_srcdir_defaulted=no
485 if test ! -r $srcdir/$ac_unique_file; then
486 if test "$ac_srcdir_defaulted" = yes; then
487 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
489 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
492 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
494 # Prefer explicitly selected file to automatically selected ones.
495 if test -z "$CONFIG_SITE"; then
496 if test "x$prefix" != xNONE; then
497 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
499 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
502 for ac_site_file in $CONFIG_SITE; do
503 if test -r "$ac_site_file"; then
504 echo "loading site script $ac_site_file"
509 if test -r "$cache_file"; then
510 echo "loading cache $cache_file"
513 echo "creating cache $cache_file"
518 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
519 ac_cpp='$CPP $CPPFLAGS'
520 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
521 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
522 cross_compiling=$ac_cv_prog_cc_cross
526 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
527 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
528 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
535 ac_n= ac_c='\c' ac_t=
540 if test -z "$enable_ltdl_install$enable_ltdl_convenience"; then
541 if test -f ${srcdir}/ltconfig && test -f ${srcdir}/ltmain.sh; then
542 # if libltdl is libtoolized, it is assumed to be stand-alone and
543 # installed unless the command line overrides it (tested above)
544 enable_ltdl_install=yes
546 echo "configure: warning: *** The top-level configure must select either" 1>&2
547 echo "configure: warning: *** A""C_LIBLTDL_INSTALLABLE or A""C_LIBLTDL_CONVENIENCE." 1>&2
548 { echo "configure: error: *** Maybe you want to --enable-ltdl-install?" 1>&2; exit 1; }
553 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
554 if test -f $ac_dir/install-sh; then
556 ac_install_sh="$ac_aux_dir/install-sh -c"
558 elif test -f $ac_dir/install.sh; then
560 ac_install_sh="$ac_aux_dir/install.sh -c"
564 if test -z "$ac_aux_dir"; then
565 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
567 ac_config_guess=$ac_aux_dir/config.guess
568 ac_config_sub=$ac_aux_dir/config.sub
569 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
571 # Find a good install program. We prefer a C program (faster),
572 # so one script is as good as another. But avoid the broken or
573 # incompatible versions:
574 # SysV /etc/install, /usr/sbin/install
575 # SunOS /usr/etc/install
578 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
579 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
580 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
581 # ./install, which can be erroneously created by make from ./install.sh.
582 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
583 echo "configure:584: checking for a BSD compatible install" >&5
584 if test -z "$INSTALL"; then
585 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
586 echo $ac_n "(cached) $ac_c" 1>&6
588 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
589 for ac_dir in $PATH; do
590 # Account for people who put trailing slashes in PATH elements.
592 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
594 # OSF1 and SCO ODT 3.0 have their own names for install.
595 # Don't use installbsd from OSF since it installs stuff as root
597 for ac_prog in ginstall scoinst install; do
598 if test -f $ac_dir/$ac_prog; then
599 if test $ac_prog = install &&
600 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
601 # AIX install. It has an incompatible calling convention.
604 ac_cv_path_install="$ac_dir/$ac_prog -c"
615 if test "${ac_cv_path_install+set}" = set; then
616 INSTALL="$ac_cv_path_install"
618 # As a last resort, use the slow shell script. We don't cache a
619 # path for INSTALL within a source directory, because that will
620 # break other packages using the cache if that directory is
621 # removed, or if the path is relative.
622 INSTALL="$ac_install_sh"
625 echo "$ac_t""$INSTALL" 1>&6
627 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
628 # It thinks the first close brace ends the variable substitution.
629 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
631 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
633 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
635 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
636 echo "configure:637: checking whether build environment is sane" >&5
639 echo timestamp > conftestfile
640 # Do `set' in a subshell so we don't clobber the current shell's
641 # arguments. Must try -L first in case configure is actually a
642 # symlink; some systems play weird games with the mod time of symlinks
643 # (eg FreeBSD returns the mod time of the symlink's containing
646 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
647 if test "$*" = "X"; then
649 set X `ls -t $srcdir/configure conftestfile`
651 if test "$*" != "X $srcdir/configure conftestfile" \
652 && test "$*" != "X conftestfile $srcdir/configure"; then
654 # If neither matched, then we have a broken ls. This can happen
655 # if, for instance, CONFIG_SHELL is bash and it inherits a
656 # broken ls alias from the environment. This has actually
657 # happened. Such a system could not be considered "sane".
658 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
659 alias in your environment" 1>&2; exit 1; }
662 test "$2" = conftestfile
668 { echo "configure: error: newly created file is older than distributed files!
669 Check your system clock" 1>&2; exit 1; }
672 echo "$ac_t""yes" 1>&6
673 if test "$program_transform_name" = s,x,x,; then
674 program_transform_name=
676 # Double any \ or $. echo might interpret backslashes.
677 cat <<\EOF_SED > conftestsed
678 s,\\,\\\\,g; s,\$,$$,g
680 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
683 test "$program_prefix" != NONE &&
684 program_transform_name="s,^,${program_prefix},; $program_transform_name"
685 # Use a double $ so make ignores it.
686 test "$program_suffix" != NONE &&
687 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
689 # sed with no file args requires a program.
690 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
692 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
693 echo "configure:694: checking whether ${MAKE-make} sets \${MAKE}" >&5
694 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
695 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
696 echo $ac_n "(cached) $ac_c" 1>&6
698 cat > conftestmake <<\EOF
700 @echo 'ac_maketemp="${MAKE}"'
702 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
703 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
704 if test -n "$ac_maketemp"; then
705 eval ac_cv_prog_make_${ac_make}_set=yes
707 eval ac_cv_prog_make_${ac_make}_set=no
711 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
712 echo "$ac_t""yes" 1>&6
715 echo "$ac_t""no" 1>&6
716 SET_MAKE="MAKE=${MAKE-make}"
724 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
725 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
730 missing_dir=`cd $ac_aux_dir && pwd`
731 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
732 echo "configure:733: checking for working aclocal" >&5
733 # Run test in a subshell; some versions of sh will print an error if
734 # an executable is not found, even if stderr is redirected.
735 # Redirect stdin to placate older versions of autoconf. Sigh.
736 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
738 echo "$ac_t""found" 1>&6
740 ACLOCAL="$missing_dir/missing aclocal"
741 echo "$ac_t""missing" 1>&6
744 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
745 echo "configure:746: checking for working autoconf" >&5
746 # Run test in a subshell; some versions of sh will print an error if
747 # an executable is not found, even if stderr is redirected.
748 # Redirect stdin to placate older versions of autoconf. Sigh.
749 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
751 echo "$ac_t""found" 1>&6
753 AUTOCONF="$missing_dir/missing autoconf"
754 echo "$ac_t""missing" 1>&6
757 echo $ac_n "checking for working automake""... $ac_c" 1>&6
758 echo "configure:759: checking for working automake" >&5
759 # Run test in a subshell; some versions of sh will print an error if
760 # an executable is not found, even if stderr is redirected.
761 # Redirect stdin to placate older versions of autoconf. Sigh.
762 if (automake --version) < /dev/null > /dev/null 2>&1; then
764 echo "$ac_t""found" 1>&6
766 AUTOMAKE="$missing_dir/missing automake"
767 echo "$ac_t""missing" 1>&6
770 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
771 echo "configure:772: checking for working autoheader" >&5
772 # Run test in a subshell; some versions of sh will print an error if
773 # an executable is not found, even if stderr is redirected.
774 # Redirect stdin to placate older versions of autoconf. Sigh.
775 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
776 AUTOHEADER=autoheader
777 echo "$ac_t""found" 1>&6
779 AUTOHEADER="$missing_dir/missing autoheader"
780 echo "$ac_t""missing" 1>&6
783 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
784 echo "configure:785: checking for working makeinfo" >&5
785 # Run test in a subshell; some versions of sh will print an error if
786 # an executable is not found, even if stderr is redirected.
787 # Redirect stdin to placate older versions of autoconf. Sigh.
788 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
790 echo "$ac_t""found" 1>&6
792 MAKEINFO="$missing_dir/missing makeinfo"
793 echo "$ac_t""missing" 1>&6
800 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
801 echo "configure:802: checking whether to enable maintainer-specific portions of Makefiles" >&5
802 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
803 if test "${enable_maintainer_mode+set}" = set; then
804 enableval="$enable_maintainer_mode"
805 USE_MAINTAINER_MODE=$enableval
807 USE_MAINTAINER_MODE=no
810 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
813 if test $USE_MAINTAINER_MODE = yes; then
814 MAINTAINER_MODE_TRUE=
815 MAINTAINER_MODE_FALSE='#'
817 MAINTAINER_MODE_TRUE='#'
818 MAINTAINER_MODE_FALSE=
820 MAINT=$MAINTAINER_MODE_TRUE
824 # Extract the first word of "gcc", so it can be a program name with args.
825 set dummy gcc; ac_word=$2
826 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
827 echo "configure:828: checking for $ac_word" >&5
828 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
829 echo $ac_n "(cached) $ac_c" 1>&6
831 if test -n "$CC"; then
832 ac_cv_prog_CC="$CC" # Let the user override the test.
834 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
836 for ac_dir in $ac_dummy; do
837 test -z "$ac_dir" && ac_dir=.
838 if test -f $ac_dir/$ac_word; then
847 if test -n "$CC"; then
848 echo "$ac_t""$CC" 1>&6
850 echo "$ac_t""no" 1>&6
853 if test -z "$CC"; then
854 # Extract the first word of "cc", so it can be a program name with args.
855 set dummy cc; ac_word=$2
856 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
857 echo "configure:858: checking for $ac_word" >&5
858 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
859 echo $ac_n "(cached) $ac_c" 1>&6
861 if test -n "$CC"; then
862 ac_cv_prog_CC="$CC" # Let the user override the test.
864 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
867 for ac_dir in $ac_dummy; do
868 test -z "$ac_dir" && ac_dir=.
869 if test -f $ac_dir/$ac_word; then
870 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
879 if test $ac_prog_rejected = yes; then
880 # We found a bogon in the path, so make sure we never use it.
881 set dummy $ac_cv_prog_CC
883 if test $# -gt 0; then
884 # We chose a different compiler from the bogus one.
885 # However, it has the same basename, so the bogon will be chosen
886 # first if we set CC to just the basename; use the full file name.
888 set dummy "$ac_dir/$ac_word" "$@"
896 if test -n "$CC"; then
897 echo "$ac_t""$CC" 1>&6
899 echo "$ac_t""no" 1>&6
902 if test -z "$CC"; then
905 # Extract the first word of "cl", so it can be a program name with args.
906 set dummy cl; ac_word=$2
907 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
908 echo "configure:909: checking for $ac_word" >&5
909 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
910 echo $ac_n "(cached) $ac_c" 1>&6
912 if test -n "$CC"; then
913 ac_cv_prog_CC="$CC" # Let the user override the test.
915 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
917 for ac_dir in $ac_dummy; do
918 test -z "$ac_dir" && ac_dir=.
919 if test -f $ac_dir/$ac_word; then
928 if test -n "$CC"; then
929 echo "$ac_t""$CC" 1>&6
931 echo "$ac_t""no" 1>&6
936 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
939 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
940 echo "configure:941: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
943 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
944 ac_cpp='$CPP $CPPFLAGS'
945 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
946 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
947 cross_compiling=$ac_cv_prog_cc_cross
949 cat > conftest.$ac_ext << EOF
951 #line 952 "configure"
952 #include "confdefs.h"
956 if { (eval echo configure:957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
957 ac_cv_prog_cc_works=yes
958 # If we can't run a trivial program, we are probably using a cross compiler.
959 if (./conftest; exit) 2>/dev/null; then
960 ac_cv_prog_cc_cross=no
962 ac_cv_prog_cc_cross=yes
965 echo "configure: failed program was:" >&5
966 cat conftest.$ac_ext >&5
967 ac_cv_prog_cc_works=no
971 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
972 ac_cpp='$CPP $CPPFLAGS'
973 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
974 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
975 cross_compiling=$ac_cv_prog_cc_cross
977 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
978 if test $ac_cv_prog_cc_works = no; then
979 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
981 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
982 echo "configure:983: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
983 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
984 cross_compiling=$ac_cv_prog_cc_cross
986 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
987 echo "configure:988: checking whether we are using GNU C" >&5
988 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
989 echo $ac_n "(cached) $ac_c" 1>&6
991 cat > conftest.c <<EOF
996 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:997: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1003 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1005 if test $ac_cv_prog_gcc = yes; then
1011 ac_test_CFLAGS="${CFLAGS+set}"
1012 ac_save_CFLAGS="$CFLAGS"
1014 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1015 echo "configure:1016: checking whether ${CC-cc} accepts -g" >&5
1016 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1017 echo $ac_n "(cached) $ac_c" 1>&6
1019 echo 'void f(){}' > conftest.c
1020 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1029 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1030 if test "$ac_test_CFLAGS" = set; then
1031 CFLAGS="$ac_save_CFLAGS"
1032 elif test $ac_cv_prog_cc_g = yes; then
1033 if test "$GCC" = yes; then
1039 if test "$GCC" = yes; then
1046 echo $ac_n "checking for working const""... $ac_c" 1>&6
1047 echo "configure:1048: checking for working const" >&5
1048 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1049 echo $ac_n "(cached) $ac_c" 1>&6
1051 cat > conftest.$ac_ext <<EOF
1052 #line 1053 "configure"
1053 #include "confdefs.h"
1057 /* Ultrix mips cc rejects this. */
1058 typedef int charset[2]; const charset x = {0,0};
1059 /* SunOS 4.1.1 cc rejects this. */
1060 char const *const *ccp;
1062 /* NEC SVR4.0.2 mips cc rejects this. */
1063 struct point {int x, y;};
1064 static struct point const zero = {0,0};
1065 /* AIX XL C 1.02.0.0 rejects this.
1066 It does not let you subtract one const X* pointer from another in an arm
1067 of an if-expression whose if-part is not a constant expression */
1068 const char *g = "string";
1069 ccp = &g + (g ? g-g : 0);
1070 /* HPUX 7.0 cc rejects these. */
1073 ccp = (char const *const *) p;
1074 { /* SCO 3.2v4 cc rejects this. */
1076 char const *s = 0 ? (char *) 0 : (char const *) 0;
1080 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1082 const int *foo = &x[0];
1085 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1086 typedef const int *iptr;
1090 { /* AIX XL C 1.02.0.0 rejects this saying
1091 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1092 struct s { int j; const int *ap[3]; };
1093 struct s *b; b->j = 5;
1095 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1101 if { (eval echo configure:1102: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1105 echo "configure: failed program was:" >&5
1106 cat conftest.$ac_ext >&5
1113 echo "$ac_t""$ac_cv_c_const" 1>&6
1114 if test $ac_cv_c_const = no; then
1115 cat >> confdefs.h <<\EOF
1121 echo $ac_n "checking for inline""... $ac_c" 1>&6
1122 echo "configure:1123: checking for inline" >&5
1123 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1124 echo $ac_n "(cached) $ac_c" 1>&6
1127 for ac_kw in inline __inline__ __inline; do
1128 cat > conftest.$ac_ext <<EOF
1129 #line 1130 "configure"
1130 #include "confdefs.h"
1136 if { (eval echo configure:1137: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1138 ac_cv_c_inline=$ac_kw; break
1140 echo "configure: failed program was:" >&5
1141 cat conftest.$ac_ext >&5
1148 echo "$ac_t""$ac_cv_c_inline" 1>&6
1149 case "$ac_cv_c_inline" in
1151 no) cat >> confdefs.h <<\EOF
1155 *) cat >> confdefs.h <<EOF
1156 #define inline $ac_cv_c_inline
1161 # Check whether --enable-shared or --disable-shared was given.
1162 if test "${enable_shared+set}" = set; then
1163 enableval="$enable_shared"
1164 p=${PACKAGE-default}
1165 case "$enableval" in
1166 yes) enable_shared=yes ;;
1167 no) enable_shared=no ;;
1170 # Look at the argument we got. We use all the common list separators.
1171 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1172 for pkg in $enableval; do
1173 if test "X$pkg" = "X$p"; then
1184 # Check whether --enable-static or --disable-static was given.
1185 if test "${enable_static+set}" = set; then
1186 enableval="$enable_static"
1187 p=${PACKAGE-default}
1188 case "$enableval" in
1189 yes) enable_static=yes ;;
1190 no) enable_static=no ;;
1193 # Look at the argument we got. We use all the common list separators.
1194 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1195 for pkg in $enableval; do
1196 if test "X$pkg" = "X$p"; then
1207 # Check whether --enable-fast-install or --disable-fast-install was given.
1208 if test "${enable_fast_install+set}" = set; then
1209 enableval="$enable_fast_install"
1210 p=${PACKAGE-default}
1211 case "$enableval" in
1212 yes) enable_fast_install=yes ;;
1213 no) enable_fast_install=no ;;
1215 enable_fast_install=no
1216 # Look at the argument we got. We use all the common list separators.
1217 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1218 for pkg in $enableval; do
1219 if test "X$pkg" = "X$p"; then
1220 enable_fast_install=yes
1227 enable_fast_install=yes
1231 # Make sure we can run config.sub.
1232 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1233 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1236 echo $ac_n "checking host system type""... $ac_c" 1>&6
1237 echo "configure:1238: checking host system type" >&5
1240 case "$host_alias" in
1244 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1245 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1247 *) host_alias=$nonopt ;;
1251 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1252 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1253 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1254 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1255 echo "$ac_t""$host" 1>&6
1257 echo $ac_n "checking build system type""... $ac_c" 1>&6
1258 echo "configure:1259: checking build system type" >&5
1261 case "$build_alias" in
1264 NONE) build_alias=$host_alias ;;
1265 *) build_alias=$nonopt ;;
1269 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1270 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1271 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1272 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1273 echo "$ac_t""$build" 1>&6
1275 # Extract the first word of "ranlib", so it can be a program name with args.
1276 set dummy ranlib; ac_word=$2
1277 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1278 echo "configure:1279: checking for $ac_word" >&5
1279 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1280 echo $ac_n "(cached) $ac_c" 1>&6
1282 if test -n "$RANLIB"; then
1283 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1285 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1287 for ac_dir in $ac_dummy; do
1288 test -z "$ac_dir" && ac_dir=.
1289 if test -f $ac_dir/$ac_word; then
1290 ac_cv_prog_RANLIB="ranlib"
1295 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1298 RANLIB="$ac_cv_prog_RANLIB"
1299 if test -n "$RANLIB"; then
1300 echo "$ac_t""$RANLIB" 1>&6
1302 echo "$ac_t""no" 1>&6
1305 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1306 if test "${with_gnu_ld+set}" = set; then
1307 withval="$with_gnu_ld"
1308 test "$withval" = no || with_gnu_ld=yes
1314 if test "$ac_cv_prog_gcc" = yes; then
1315 # Check if gcc -print-prog-name=ld gives a path.
1316 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1317 echo "configure:1318: checking for ld used by GCC" >&5
1318 ac_prog=`($CC -print-prog-name=ld) 2>&5`
1320 # Accept absolute paths.
1321 [\\/]* | [A-Za-z]:[\\/]*)
1322 re_direlt='/[^/][^/]*/\.\./'
1323 # Canonicalize the path of ld
1324 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1325 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1326 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1328 test -z "$LD" && LD="$ac_prog"
1331 # If it fails, then pretend we aren't using GCC.
1335 # If it is relative, then search for the first ld in PATH.
1339 elif test "$with_gnu_ld" = yes; then
1340 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1341 echo "configure:1342: checking for GNU ld" >&5
1343 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1344 echo "configure:1345: checking for non-GNU ld" >&5
1346 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1347 echo $ac_n "(cached) $ac_c" 1>&6
1349 if test -z "$LD"; then
1350 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1351 for ac_dir in $PATH; do
1352 test -z "$ac_dir" && ac_dir=.
1353 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1354 ac_cv_path_LD="$ac_dir/$ac_prog"
1355 # Check to see if the program is GNU ld. I'd rather use --version,
1356 # but apparently some GNU ld's only accept -v.
1357 # Break only if it was the GNU/non-GNU ld that we prefer.
1358 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1359 test "$with_gnu_ld" != no && break
1361 test "$with_gnu_ld" != yes && break
1367 ac_cv_path_LD="$LD" # Let the user override the test with a path.
1372 if test -n "$LD"; then
1373 echo "$ac_t""$LD" 1>&6
1375 echo "$ac_t""no" 1>&6
1377 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1378 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1379 echo "configure:1380: checking if the linker ($LD) is GNU ld" >&5
1380 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1381 echo $ac_n "(cached) $ac_c" 1>&6
1383 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1384 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1385 ac_cv_prog_gnu_ld=yes
1387 ac_cv_prog_gnu_ld=no
1391 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1394 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1395 echo "configure:1396: checking for BSD-compatible nm" >&5
1396 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1397 echo $ac_n "(cached) $ac_c" 1>&6
1399 if test -n "$NM"; then
1400 # Let the user override the test.
1403 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1404 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1405 test -z "$ac_dir" && ac_dir=.
1406 if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
1407 # Check to see if the nm accepts a BSD-compat flag.
1408 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1409 # nm: unknown option "B" ignored
1410 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1411 ac_cv_path_NM="$ac_dir/nm -B"
1413 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1414 ac_cv_path_NM="$ac_dir/nm -p"
1417 ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
1418 continue # so that we can try to find one that supports BSD flags
1423 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
1428 echo "$ac_t""$NM" 1>&6
1430 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1431 echo "configure:1432: checking whether ln -s works" >&5
1432 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1433 echo $ac_n "(cached) $ac_c" 1>&6
1436 if ln -s X conftestdata 2>/dev/null
1439 ac_cv_prog_LN_S="ln -s"
1444 LN_S="$ac_cv_prog_LN_S"
1445 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1446 echo "$ac_t""yes" 1>&6
1448 echo "$ac_t""no" 1>&6
1453 NONE) lt_target="$host" ;;
1454 *) lt_target="$target" ;;
1457 # Check for any special flags to pass to ltconfig.
1458 libtool_flags="--cache-file=$cache_file"
1459 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
1460 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
1461 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
1462 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
1463 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
1466 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
1467 if test "${enable_libtool_lock+set}" = set; then
1468 enableval="$enable_libtool_lock"
1472 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
1473 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
1475 # Some flags need to be propagated to the compiler or linker for good
1477 case "$lt_target" in
1479 # Find out which ABI we are using.
1480 echo '#line 1481 "configure"' > conftest.$ac_ext
1481 if { (eval echo configure:1482: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1482 case "`/usr/bin/file conftest.o`" in
1498 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1499 SAVE_CFLAGS="$CFLAGS"
1500 CFLAGS="$CFLAGS -belf"
1501 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
1502 echo "configure:1503: checking whether the C compiler needs -belf" >&5
1503 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
1504 echo $ac_n "(cached) $ac_c" 1>&6
1506 cat > conftest.$ac_ext <<EOF
1507 #line 1508 "configure"
1508 #include "confdefs.h"
1514 if { (eval echo configure:1515: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1516 lt_cv_cc_needs_belf=yes
1518 echo "configure: failed program was:" >&5
1519 cat conftest.$ac_ext >&5
1521 lt_cv_cc_needs_belf=no
1526 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
1527 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1528 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1529 CFLAGS="$SAVE_CFLAGS"
1537 # Save cache, so that ltconfig can load it
1538 cat > confcache <<\EOF
1539 # This file is a shell script that caches the results of configure
1540 # tests run on this system so they can be shared between configure
1541 # scripts and configure runs. It is not useful on other systems.
1542 # If it contains results you don't want to keep, you may remove or edit it.
1544 # By default, configure uses ./config.cache as the cache file,
1545 # creating it if it does not exist already. You can give configure
1546 # the --cache-file=FILE option to use a different cache file; that is
1547 # what configure does when it calls configure scripts in
1548 # subdirectories, so they share the cache.
1549 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1550 # config.status only pays attention to the cache file if you give it the
1551 # --recheck option to rerun configure.
1554 # The following way of writing the cache mishandles newlines in values,
1555 # but we know of no workaround that is simple, portable, and efficient.
1556 # So, don't put newlines in cache variables' values.
1557 # Ultrix sh set writes to stderr and can't be redirected directly,
1558 # and sets the high bit in the cache file unless we assign to the vars.
1560 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1562 # `set' does not quote correctly, so add quotes (double-quote substitution
1563 # turns \\\\ into \\, and sed turns \\ into \).
1565 -e "s/'/'\\\\''/g" \
1566 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1569 # `set' quotes correctly as required by POSIX, so do not add quotes.
1570 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1573 if cmp -s $cache_file confcache; then
1576 if test -w $cache_file; then
1577 echo "updating cache $cache_file"
1578 cat confcache > $cache_file
1580 echo "not updating unwritable cache $cache_file"
1586 # Actually configure libtool. ac_aux_dir is where install-sh is found.
1587 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
1588 LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
1589 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
1590 DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
1591 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
1592 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $lt_target \
1593 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1595 # Reload cache, that may have been modified by ltconfig
1596 if test -r "$cache_file"; then
1597 echo "loading cache $cache_file"
1600 echo "creating cache $cache_file"
1605 # This can be used to rebuild libtool when needed
1606 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
1608 # Always use our own libtool.
1609 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
1611 # Redirect the config.log output again, so that the ltconfig log is not
1612 # clobbered by the next message.
1613 exec 5>>./config.log
1617 # Check whether --enable-ltdl-install or --disable-ltdl-install was given.
1618 if test "${enable_ltdl_install+set}" = set; then
1619 enableval="$enable_ltdl_install"
1626 if test x"${enable_ltdl_install-no}" != xno; then
1628 INSTALL_LTDL_FALSE='#'
1630 INSTALL_LTDL_TRUE='#'
1635 if test x"${enable_ltdl_convenience-no}" != xno; then
1636 CONVENIENCE_LTDL_TRUE=
1637 CONVENIENCE_LTDL_FALSE='#'
1639 CONVENIENCE_LTDL_TRUE='#'
1640 CONVENIENCE_LTDL_FALSE=
1644 ./libtool --config > conftest
1648 echo $ac_n "checking which extension is used for shared libraries""... $ac_c" 1>&6
1649 echo "configure:1650: checking which extension is used for shared libraries" >&5
1650 if eval "test \"`echo '$''{'libltdl_cv_shlibext'+set}'`\" = set"; then
1651 echo $ac_n "(cached) $ac_c" 1>&6
1655 for spec in $library_names_spec; do
1659 echo "$last" | sed 's/\[.*\]//;s/^[^.]*//;s/\$.*$//;s/\.$//' > conftest
1662 libltdl_cv_shlibext=`cat conftest`
1667 echo "$ac_t""$libltdl_cv_shlibext" 1>&6
1668 if test -n "$libltdl_cv_shlibext"; then
1669 cat >> confdefs.h <<EOF
1670 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
1675 echo $ac_n "checking which variable specifies run-time library path""... $ac_c" 1>&6
1676 echo "configure:1677: checking which variable specifies run-time library path" >&5
1677 if eval "test \"`echo '$''{'libltdl_cv_shlibpath_var'+set}'`\" = set"; then
1678 echo $ac_n "(cached) $ac_c" 1>&6
1680 libltdl_cv_shlibpath_var="$shlibpath_var"
1683 echo "$ac_t""$libltdl_cv_shlibpath_var" 1>&6
1684 if test -n "$libltdl_cv_shlibpath_var"; then
1685 cat >> confdefs.h <<EOF
1686 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
1691 echo $ac_n "checking for objdir""... $ac_c" 1>&6
1692 echo "configure:1693: checking for objdir" >&5
1693 if eval "test \"`echo '$''{'libltdl_cv_objdir'+set}'`\" = set"; then
1694 echo $ac_n "(cached) $ac_c" 1>&6
1696 libltdl_cv_objdir="$objdir"
1699 echo "$ac_t""$libltdl_cv_objdir" 1>&6
1700 test -z "$libltdl_cv_objdir" && libltdl_cv_objdir=".libs"
1701 cat >> confdefs.h <<EOF
1702 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
1706 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1707 echo "configure:1708: checking how to run the C preprocessor" >&5
1708 # On Suns, sometimes $CPP names a directory.
1709 if test -n "$CPP" && test -d "$CPP"; then
1712 if test -z "$CPP"; then
1713 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1714 echo $ac_n "(cached) $ac_c" 1>&6
1716 # This must be in double quotes, not single quotes, because CPP may get
1717 # substituted into the Makefile and "${CC-cc}" will confuse make.
1719 # On the NeXT, cc -E runs the code through the compiler's parser,
1720 # not just through cpp.
1721 cat > conftest.$ac_ext <<EOF
1722 #line 1723 "configure"
1723 #include "confdefs.h"
1727 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1728 { (eval echo configure:1729: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1729 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1730 if test -z "$ac_err"; then
1734 echo "configure: failed program was:" >&5
1735 cat conftest.$ac_ext >&5
1737 CPP="${CC-cc} -E -traditional-cpp"
1738 cat > conftest.$ac_ext <<EOF
1739 #line 1740 "configure"
1740 #include "confdefs.h"
1744 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1745 { (eval echo configure:1746: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1746 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1747 if test -z "$ac_err"; then
1751 echo "configure: failed program was:" >&5
1752 cat conftest.$ac_ext >&5
1754 CPP="${CC-cc} -nologo -E"
1755 cat > conftest.$ac_ext <<EOF
1756 #line 1757 "configure"
1757 #include "confdefs.h"
1761 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1762 { (eval echo configure:1763: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1763 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1764 if test -z "$ac_err"; then
1768 echo "configure: failed program was:" >&5
1769 cat conftest.$ac_ext >&5
1778 ac_cv_prog_CPP="$CPP"
1780 CPP="$ac_cv_prog_CPP"
1782 ac_cv_prog_CPP="$CPP"
1784 echo "$ac_t""$CPP" 1>&6
1786 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1787 echo "configure:1788: checking for ANSI C header files" >&5
1788 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1789 echo $ac_n "(cached) $ac_c" 1>&6
1791 cat > conftest.$ac_ext <<EOF
1792 #line 1793 "configure"
1793 #include "confdefs.h"
1799 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1800 { (eval echo configure:1801: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1801 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1802 if test -z "$ac_err"; then
1804 ac_cv_header_stdc=yes
1807 echo "configure: failed program was:" >&5
1808 cat conftest.$ac_ext >&5
1810 ac_cv_header_stdc=no
1814 if test $ac_cv_header_stdc = yes; then
1815 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1816 cat > conftest.$ac_ext <<EOF
1817 #line 1818 "configure"
1818 #include "confdefs.h"
1821 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1822 egrep "memchr" >/dev/null 2>&1; then
1826 ac_cv_header_stdc=no
1832 if test $ac_cv_header_stdc = yes; then
1833 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1834 cat > conftest.$ac_ext <<EOF
1835 #line 1836 "configure"
1836 #include "confdefs.h"
1839 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1840 egrep "free" >/dev/null 2>&1; then
1844 ac_cv_header_stdc=no
1850 if test $ac_cv_header_stdc = yes; then
1851 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1852 if test "$cross_compiling" = yes; then
1855 cat > conftest.$ac_ext <<EOF
1856 #line 1857 "configure"
1857 #include "confdefs.h"
1859 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1860 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1861 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1862 int main () { int i; for (i = 0; i < 256; i++)
1863 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1867 if { (eval echo configure:1868: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1871 echo "configure: failed program was:" >&5
1872 cat conftest.$ac_ext >&5
1874 ac_cv_header_stdc=no
1882 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1883 if test $ac_cv_header_stdc = yes; then
1884 cat >> confdefs.h <<\EOF
1885 #define STDC_HEADERS 1
1890 for ac_hdr in malloc.h memory.h stdlib.h stdio.h ctype.h dlfcn.h dl.h dld.h
1892 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1893 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1894 echo "configure:1895: checking for $ac_hdr" >&5
1895 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1896 echo $ac_n "(cached) $ac_c" 1>&6
1898 cat > conftest.$ac_ext <<EOF
1899 #line 1900 "configure"
1900 #include "confdefs.h"
1903 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1904 { (eval echo configure:1905: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1905 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1906 if test -z "$ac_err"; then
1908 eval "ac_cv_header_$ac_safe=yes"
1911 echo "configure: failed program was:" >&5
1912 cat conftest.$ac_ext >&5
1914 eval "ac_cv_header_$ac_safe=no"
1918 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1919 echo "$ac_t""yes" 1>&6
1920 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1921 cat >> confdefs.h <<EOF
1922 #define $ac_tr_hdr 1
1926 echo "$ac_t""no" 1>&6
1930 for ac_hdr in string.h strings.h
1932 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1933 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1934 echo "configure:1935: checking for $ac_hdr" >&5
1935 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1936 echo $ac_n "(cached) $ac_c" 1>&6
1938 cat > conftest.$ac_ext <<EOF
1939 #line 1940 "configure"
1940 #include "confdefs.h"
1943 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1944 { (eval echo configure:1945: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1945 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1946 if test -z "$ac_err"; then
1948 eval "ac_cv_header_$ac_safe=yes"
1951 echo "configure: failed program was:" >&5
1952 cat conftest.$ac_ext >&5
1954 eval "ac_cv_header_$ac_safe=no"
1958 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1959 echo "$ac_t""yes" 1>&6
1960 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1961 cat >> confdefs.h <<EOF
1962 #define $ac_tr_hdr 1
1966 echo "$ac_t""no" 1>&6
1970 for ac_func in strchr index
1972 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1973 echo "configure:1974: checking for $ac_func" >&5
1974 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1975 echo $ac_n "(cached) $ac_c" 1>&6
1977 cat > conftest.$ac_ext <<EOF
1978 #line 1979 "configure"
1979 #include "confdefs.h"
1980 /* System header to define __stub macros and hopefully few prototypes,
1981 which can conflict with char $ac_func(); below. */
1983 /* Override any gcc2 internal prototype to avoid an error. */
1984 /* We use char because int might match the return type of a gcc2
1985 builtin and then its argument prototype would still apply. */
1990 /* The GNU C library defines this for functions which it implements
1991 to always fail with ENOSYS. Some functions are actually named
1992 something starting with __ and the normal name is an alias. */
1993 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2001 if { (eval echo configure:2002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2003 eval "ac_cv_func_$ac_func=yes"
2005 echo "configure: failed program was:" >&5
2006 cat conftest.$ac_ext >&5
2008 eval "ac_cv_func_$ac_func=no"
2013 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2014 echo "$ac_t""yes" 1>&6
2015 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2016 cat >> confdefs.h <<EOF
2017 #define $ac_tr_func 1
2021 echo "$ac_t""no" 1>&6
2025 for ac_func in strrchr rindex
2027 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2028 echo "configure:2029: checking for $ac_func" >&5
2029 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2030 echo $ac_n "(cached) $ac_c" 1>&6
2032 cat > conftest.$ac_ext <<EOF
2033 #line 2034 "configure"
2034 #include "confdefs.h"
2035 /* System header to define __stub macros and hopefully few prototypes,
2036 which can conflict with char $ac_func(); below. */
2038 /* Override any gcc2 internal prototype to avoid an error. */
2039 /* We use char because int might match the return type of a gcc2
2040 builtin and then its argument prototype would still apply. */
2045 /* The GNU C library defines this for functions which it implements
2046 to always fail with ENOSYS. Some functions are actually named
2047 something starting with __ and the normal name is an alias. */
2048 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2056 if { (eval echo configure:2057: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2058 eval "ac_cv_func_$ac_func=yes"
2060 echo "configure: failed program was:" >&5
2061 cat conftest.$ac_ext >&5
2063 eval "ac_cv_func_$ac_func=no"
2068 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2069 echo "$ac_t""yes" 1>&6
2070 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2071 cat >> confdefs.h <<EOF
2072 #define $ac_tr_func 1
2076 echo "$ac_t""no" 1>&6
2081 echo $ac_n "checking whether libtool supports -dlopen/-dlpreopen""... $ac_c" 1>&6
2082 echo "configure:2083: checking whether libtool supports -dlopen/-dlpreopen" >&5
2083 if eval "test \"`echo '$''{'libltdl_cv_preloaded_symbols'+set}'`\" = set"; then
2084 echo $ac_n "(cached) $ac_c" 1>&6
2086 if test -n "$global_symbol_pipe"; then
2087 libltdl_cv_preloaded_symbols=yes
2089 libltdl_cv_preloaded_symbols=no
2094 echo "$ac_t""$libltdl_cv_preloaded_symbols" 1>&6
2095 if test x"$libltdl_cv_preloaded_symbols" = x"yes"; then
2096 cat >> confdefs.h <<\EOF
2097 #define HAVE_PRELOADED_SYMBOLS 1
2103 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
2104 echo "configure:2105: checking for dlopen in -ldl" >&5
2105 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
2106 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2107 echo $ac_n "(cached) $ac_c" 1>&6
2109 ac_save_LIBS="$LIBS"
2111 cat > conftest.$ac_ext <<EOF
2112 #line 2113 "configure"
2113 #include "confdefs.h"
2114 /* Override any gcc2 internal prototype to avoid an error. */
2115 /* We use char because int might match the return type of a gcc2
2116 builtin and then its argument prototype would still apply. */
2123 if { (eval echo configure:2124: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2125 eval "ac_cv_lib_$ac_lib_var=yes"
2127 echo "configure: failed program was:" >&5
2128 cat conftest.$ac_ext >&5
2130 eval "ac_cv_lib_$ac_lib_var=no"
2133 LIBS="$ac_save_LIBS"
2136 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2137 echo "$ac_t""yes" 1>&6
2138 cat >> confdefs.h <<\EOF
2139 #define HAVE_LIBDL 1
2143 echo "$ac_t""no" 1>&6
2144 echo $ac_n "checking for dlopen""... $ac_c" 1>&6
2145 echo "configure:2146: checking for dlopen" >&5
2146 if eval "test \"`echo '$''{'ac_cv_func_dlopen'+set}'`\" = set"; then
2147 echo $ac_n "(cached) $ac_c" 1>&6
2149 cat > conftest.$ac_ext <<EOF
2150 #line 2151 "configure"
2151 #include "confdefs.h"
2152 /* System header to define __stub macros and hopefully few prototypes,
2153 which can conflict with char dlopen(); below. */
2155 /* Override any gcc2 internal prototype to avoid an error. */
2156 /* We use char because int might match the return type of a gcc2
2157 builtin and then its argument prototype would still apply. */
2162 /* The GNU C library defines this for functions which it implements
2163 to always fail with ENOSYS. Some functions are actually named
2164 something starting with __ and the normal name is an alias. */
2165 #if defined (__stub_dlopen) || defined (__stub___dlopen)
2173 if { (eval echo configure:2174: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2175 eval "ac_cv_func_dlopen=yes"
2177 echo "configure: failed program was:" >&5
2178 cat conftest.$ac_ext >&5
2180 eval "ac_cv_func_dlopen=no"
2185 if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then
2186 echo "$ac_t""yes" 1>&6
2187 cat >> confdefs.h <<\EOF
2188 #define HAVE_LIBDL 1
2192 echo "$ac_t""no" 1>&6
2197 echo $ac_n "checking for shl_load""... $ac_c" 1>&6
2198 echo "configure:2199: checking for shl_load" >&5
2199 if eval "test \"`echo '$''{'ac_cv_func_shl_load'+set}'`\" = set"; then
2200 echo $ac_n "(cached) $ac_c" 1>&6
2202 cat > conftest.$ac_ext <<EOF
2203 #line 2204 "configure"
2204 #include "confdefs.h"
2205 /* System header to define __stub macros and hopefully few prototypes,
2206 which can conflict with char shl_load(); below. */
2208 /* Override any gcc2 internal prototype to avoid an error. */
2209 /* We use char because int might match the return type of a gcc2
2210 builtin and then its argument prototype would still apply. */
2215 /* The GNU C library defines this for functions which it implements
2216 to always fail with ENOSYS. Some functions are actually named
2217 something starting with __ and the normal name is an alias. */
2218 #if defined (__stub_shl_load) || defined (__stub___shl_load)
2226 if { (eval echo configure:2227: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2228 eval "ac_cv_func_shl_load=yes"
2230 echo "configure: failed program was:" >&5
2231 cat conftest.$ac_ext >&5
2233 eval "ac_cv_func_shl_load=no"
2238 if eval "test \"`echo '$ac_cv_func_'shl_load`\" = yes"; then
2239 echo "$ac_t""yes" 1>&6
2240 cat >> confdefs.h <<\EOF
2241 #define HAVE_SHL_LOAD 1
2245 echo "$ac_t""no" 1>&6
2246 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
2247 echo "configure:2248: checking for shl_load in -ldld" >&5
2248 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
2249 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2250 echo $ac_n "(cached) $ac_c" 1>&6
2252 ac_save_LIBS="$LIBS"
2254 cat > conftest.$ac_ext <<EOF
2255 #line 2256 "configure"
2256 #include "confdefs.h"
2257 /* Override any gcc2 internal prototype to avoid an error. */
2258 /* We use char because int might match the return type of a gcc2
2259 builtin and then its argument prototype would still apply. */
2266 if { (eval echo configure:2267: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2268 eval "ac_cv_lib_$ac_lib_var=yes"
2270 echo "configure: failed program was:" >&5
2271 cat conftest.$ac_ext >&5
2273 eval "ac_cv_lib_$ac_lib_var=no"
2276 LIBS="$ac_save_LIBS"
2279 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2280 echo "$ac_t""yes" 1>&6
2281 cat >> confdefs.h <<\EOF
2282 #define HAVE_SHL_LOAD 1
2284 LIBADD_DL="$LIBADD_DL -ldld"
2286 echo "$ac_t""no" 1>&6
2291 echo $ac_n "checking for dld_link in -ldld""... $ac_c" 1>&6
2292 echo "configure:2293: checking for dld_link in -ldld" >&5
2293 ac_lib_var=`echo dld'_'dld_link | sed 'y%./+-%__p_%'`
2294 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2295 echo $ac_n "(cached) $ac_c" 1>&6
2297 ac_save_LIBS="$LIBS"
2299 cat > conftest.$ac_ext <<EOF
2300 #line 2301 "configure"
2301 #include "confdefs.h"
2302 /* Override any gcc2 internal prototype to avoid an error. */
2303 /* We use char because int might match the return type of a gcc2
2304 builtin and then its argument prototype would still apply. */
2311 if { (eval echo configure:2312: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2313 eval "ac_cv_lib_$ac_lib_var=yes"
2315 echo "configure: failed program was:" >&5
2316 cat conftest.$ac_ext >&5
2318 eval "ac_cv_lib_$ac_lib_var=no"
2321 LIBS="$ac_save_LIBS"
2324 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2325 echo "$ac_t""yes" 1>&6
2326 cat >> confdefs.h <<\EOF
2329 test "x$ac_cv_lib_dld_shl_load" = yes || LIBADD_DL="$LIBADD_DL -ldld"
2331 echo "$ac_t""no" 1>&6
2336 if test "x$ac_cv_func_dlopen" = xyes || test "x$ac_cv_lib_dl_dlopen" = xyes; then
2338 LIBS="$LIBS $LIBADD_DL"
2339 for ac_func in dlerror
2341 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2342 echo "configure:2343: checking for $ac_func" >&5
2343 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2344 echo $ac_n "(cached) $ac_c" 1>&6
2346 cat > conftest.$ac_ext <<EOF
2347 #line 2348 "configure"
2348 #include "confdefs.h"
2349 /* System header to define __stub macros and hopefully few prototypes,
2350 which can conflict with char $ac_func(); below. */
2352 /* Override any gcc2 internal prototype to avoid an error. */
2353 /* We use char because int might match the return type of a gcc2
2354 builtin and then its argument prototype would still apply. */
2359 /* The GNU C library defines this for functions which it implements
2360 to always fail with ENOSYS. Some functions are actually named
2361 something starting with __ and the normal name is an alias. */
2362 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2370 if { (eval echo configure:2371: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2372 eval "ac_cv_func_$ac_func=yes"
2374 echo "configure: failed program was:" >&5
2375 cat conftest.$ac_ext >&5
2377 eval "ac_cv_func_$ac_func=no"
2382 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2383 echo "$ac_t""yes" 1>&6
2384 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2385 cat >> confdefs.h <<EOF
2386 #define $ac_tr_func 1
2390 echo "$ac_t""no" 1>&6
2397 # Check for command to grab the raw symbol name followed by C symbol from nm.
2398 echo $ac_n "checking command to parse $NM output""... $ac_c" 1>&6
2399 echo "configure:2400: checking command to parse $NM output" >&5
2400 if eval "test \"`echo '$''{'ac_cv_sys_global_symbol_pipe'+set}'`\" = set"; then
2401 echo $ac_n "(cached) $ac_c" 1>&6
2403 # These are sane defaults that work on at least a few old systems.
2404 # {They come from Ultrix. What could be older than Ultrix?!! ;)}
2406 # Character class describing NM global symbol codes.
2407 ac_symcode='[BCDEGRST]'
2409 # Regexp to match symbols that can be accessed directly from C.
2410 ac_sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
2412 # Transform the above into a raw symbol and a C symbol.
2413 ac_symxfrm='\1 \2\3 \3'
2415 # Transform an extracted symbol line into a proper C declaration
2416 ac_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
2418 # Define system-specific variables.
2424 ac_symcode='[ABCDGISTW]'
2427 ac_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^. .* \(.*\)$/extern char \1;/p'"
2430 ac_symcode='[BCDEGRST]'
2437 # If we're using GNU nm, then use its standard symbol codes.
2438 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
2439 ac_symcode='[ABCDGISTW]'
2442 # Try without a prefix undercore, then with it.
2443 for ac_symprfx in "" "_"; do
2445 ac_cv_sys_global_symbol_pipe="sed -n -e 's/^.* \($ac_symcode\) *\($ac_symprfx\)$ac_sympat$/$ac_symxfrm/p'"
2447 # Check to see that the pipe works correctly.
2449 rm -f conftest.$ac_ext
2450 cat > conftest.$ac_ext <<EOF
2455 void nm_test_func(){}
2459 int main(){nm_test_var='a';nm_test_func;return 0;}
2462 if { (eval echo configure:2463: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2463 # Now try to grab the symbols.
2464 ac_nlist=conftest.nm
2466 if { (eval echo configure:2467: \"$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
2468 # Try sorting and uniquifying the output.
2469 if sort "$ac_nlist" | uniq > "$ac_nlist"T; then
2470 mv -f "$ac_nlist"T "$ac_nlist"
2475 # Make sure that we snagged all the symbols we need.
2476 if egrep ' nm_test_var$' "$ac_nlist" >/dev/null; then
2477 if egrep ' nm_test_func$' "$ac_nlist" >/dev/null; then
2478 cat <<EOF > conftest.c
2484 # Now generate the symbol file.
2485 eval "$ac_global_symbol_to_cdecl"' < "$ac_nlist" >> conftest.c'
2487 cat <<EOF >> conftest.c
2488 #if defined (__STDC__) && __STDC__
2489 # define lt_ptr_t void *
2491 # define lt_ptr_t char *
2495 /* The mapping between symbol names and symbols. */
2500 lt_preloaded_symbols[] =
2503 sed 's/^. \(.*\) \(.*\)$/ {"\2", (lt_ptr_t) \&\2},/' < "$ac_nlist" >> conftest.c
2504 cat <<\EOF >> conftest.c
2512 # Now try linking the two files.
2513 mv conftest.$ac_objext conftstm.$ac_objext
2514 ac_save_LIBS="$LIBS"
2515 ac_save_CFLAGS="$CFLAGS"
2516 LIBS="conftstm.$ac_objext"
2517 CFLAGS="$CFLAGS$no_builtin_flag"
2518 if { (eval echo configure:2519: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2521 echo "configure: failed program was:" >&5
2524 LIBS="$ac_save_LIBS"
2525 CFLAGS="$ac_save_CFLAGS"
2527 echo "cannot find nm_test_func in $ac_nlist" >&5
2530 echo "cannot find nm_test_var in $ac_nlist" >&5
2533 echo "cannot run $ac_cv_sys_global_symbol_pipe" >&5
2536 echo "$progname: failed program was:" >&5
2539 rm -rf conftest* conftst*
2541 # Do not use the global_symbol_pipe unless it works.
2542 if test "$ac_pipe_works" = yes; then
2543 if test x"$ac_symprfx" = x"_"; then
2544 ac_cv_sys_symbol_underscore=yes
2546 ac_cv_sys_symbol_underscore=no
2550 ac_cv_sys_global_symbol_pipe=
2558 if test -z "$ac_cv_sys_global_symbol_pipe"; then
2561 echo "$ac_t""$ac_result" 1>&6
2563 echo $ac_n "checking for _ prefix in compiled symbols""... $ac_c" 1>&6
2564 echo "configure:2565: checking for _ prefix in compiled symbols" >&5
2565 if eval "test \"`echo '$''{'ac_cv_sys_symbol_underscore'+set}'`\" = set"; then
2566 echo $ac_n "(cached) $ac_c" 1>&6
2568 ac_cv_sys_symbol_underscore=no
2569 cat > conftest.$ac_ext <<EOF
2570 void nm_test_func(){}
2571 int main(){nm_test_func;return 0;}
2573 if { (eval echo configure:2574: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2574 # Now try to grab the symbols.
2575 ac_nlist=conftest.nm
2576 if { (eval echo configure:2577: \"$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
2577 # See whether the symbols have a leading underscore.
2578 if egrep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
2579 ac_cv_sys_symbol_underscore=yes
2581 if egrep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
2584 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
2588 echo "configure: cannot run $ac_cv_sys_global_symbol_pipe" >&5
2591 echo "configure: failed program was:" >&5
2598 echo "$ac_t""$ac_cv_sys_symbol_underscore" 1>&6
2600 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
2601 if test x"$ac_cv_func_dlopen" = xyes ||
2602 test x"$ac_cv_lib_dl_dlopen" = xyes ; then
2603 echo $ac_n "checking whether we have to add an underscore for dlsym""... $ac_c" 1>&6
2604 echo "configure:2605: checking whether we have to add an underscore for dlsym" >&5
2605 if eval "test \"`echo '$''{'libltdl_cv_need_uscore'+set}'`\" = set"; then
2606 echo $ac_n "(cached) $ac_c" 1>&6
2608 if test "$cross_compiling" = yes; then
2609 libltdl_cv_need_uscore=cross
2612 cat > conftest.$ac_ext <<EOF
2613 #line 2614 "configure"
2614 #include "confdefs.h"
2623 # define LTDL_GLOBAL RTLD_GLOBAL
2626 # define LTDL_GLOBAL DL_GLOBAL
2628 # define LTDL_GLOBAL 0
2632 /* We may have to define LTDL_LAZY_OR_NOW in the command line if we
2633 find out it does not work in some platform. */
2634 #ifndef LTDL_LAZY_OR_NOW
2636 # define LTDL_LAZY_OR_NOW RTLD_LAZY
2639 # define LTDL_LAZY_OR_NOW DL_LAZY
2642 # define LTDL_LAZY_OR_NOW RTLD_NOW
2645 # define LTDL_LAZY_OR_NOW DL_NOW
2647 # define LTDL_LAZY_OR_NOW 0
2654 fnord() { int i=42;}
2655 main() { void *self, *ptr1, *ptr2; self=dlopen(0,LTDL_GLOBAL|LTDL_LAZY_OR_NOW);
2656 if(self) { ptr1=dlsym(self,"fnord"); ptr2=dlsym(self,"_fnord");
2657 if(ptr1 && !ptr2) { dlclose(self); exit(0); } } exit(1); }
2660 if { (eval echo configure:2661: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2662 libltdl_cv_need_uscore=no
2664 echo "configure: failed program was:" >&5
2665 cat conftest.$ac_ext >&5
2667 libltdl_cv_need_uscore=yes
2674 echo "$ac_t""$libltdl_cv_need_uscore" 1>&6
2678 if test x"$libltdl_cv_need_uscore" = xyes; then
2679 cat >> confdefs.h <<\EOF
2680 #define NEED_USCORE 1
2686 cat > confcache <<\EOF
2687 # This file is a shell script that caches the results of configure
2688 # tests run on this system so they can be shared between configure
2689 # scripts and configure runs. It is not useful on other systems.
2690 # If it contains results you don't want to keep, you may remove or edit it.
2692 # By default, configure uses ./config.cache as the cache file,
2693 # creating it if it does not exist already. You can give configure
2694 # the --cache-file=FILE option to use a different cache file; that is
2695 # what configure does when it calls configure scripts in
2696 # subdirectories, so they share the cache.
2697 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2698 # config.status only pays attention to the cache file if you give it the
2699 # --recheck option to rerun configure.
2702 # The following way of writing the cache mishandles newlines in values,
2703 # but we know of no workaround that is simple, portable, and efficient.
2704 # So, don't put newlines in cache variables' values.
2705 # Ultrix sh set writes to stderr and can't be redirected directly,
2706 # and sets the high bit in the cache file unless we assign to the vars.
2708 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2710 # `set' does not quote correctly, so add quotes (double-quote substitution
2711 # turns \\\\ into \\, and sed turns \\ into \).
2713 -e "s/'/'\\\\''/g" \
2714 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2717 # `set' quotes correctly as required by POSIX, so do not add quotes.
2718 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2721 if cmp -s $cache_file confcache; then
2724 if test -w $cache_file; then
2725 echo "updating cache $cache_file"
2726 cat confcache > $cache_file
2728 echo "not updating unwritable cache $cache_file"
2733 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2735 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2736 # Let make expand exec_prefix.
2737 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2739 # Any assignment to VPATH causes Sun make to only execute
2740 # the first set of double-colon rules, so remove it if not needed.
2741 # If there is a colon in the path, we need to keep it.
2742 if test "x$srcdir" = x.; then
2743 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
2746 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2748 DEFS=-DHAVE_CONFIG_H
2750 # Without the "./", some shells look in PATH for config.status.
2751 : ${CONFIG_STATUS=./config.status}
2753 echo creating $CONFIG_STATUS
2754 rm -f $CONFIG_STATUS
2755 cat > $CONFIG_STATUS <<EOF
2757 # Generated automatically by configure.
2758 # Run this file to recreate the current configuration.
2759 # This directory was configured as follows,
2760 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2762 # $0 $ac_configure_args
2764 # Compiler output produced by configure, useful for debugging
2765 # configure, is in ./config.log if it exists.
2767 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2770 case "\$ac_option" in
2771 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2772 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2773 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2774 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2775 echo "$CONFIG_STATUS generated by autoconf version 2.13"
2777 -help | --help | --hel | --he | --h)
2778 echo "\$ac_cs_usage"; exit 0 ;;
2779 *) echo "\$ac_cs_usage"; exit 1 ;;
2783 ac_given_srcdir=$srcdir
2784 ac_given_INSTALL="$INSTALL"
2786 trap 'rm -fr `echo "Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2788 cat >> $CONFIG_STATUS <<EOF
2790 # Protect against being on the right side of a sed subst in config.status.
2791 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2792 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2796 s%@CFLAGS@%$CFLAGS%g
2797 s%@CPPFLAGS@%$CPPFLAGS%g
2798 s%@CXXFLAGS@%$CXXFLAGS%g
2799 s%@FFLAGS@%$FFLAGS%g
2801 s%@LDFLAGS@%$LDFLAGS%g
2803 s%@exec_prefix@%$exec_prefix%g
2804 s%@prefix@%$prefix%g
2805 s%@program_transform_name@%$program_transform_name%g
2806 s%@bindir@%$bindir%g
2807 s%@sbindir@%$sbindir%g
2808 s%@libexecdir@%$libexecdir%g
2809 s%@datadir@%$datadir%g
2810 s%@sysconfdir@%$sysconfdir%g
2811 s%@sharedstatedir@%$sharedstatedir%g
2812 s%@localstatedir@%$localstatedir%g
2813 s%@libdir@%$libdir%g
2814 s%@includedir@%$includedir%g
2815 s%@oldincludedir@%$oldincludedir%g
2816 s%@infodir@%$infodir%g
2817 s%@mandir@%$mandir%g
2818 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2819 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
2820 s%@INSTALL_DATA@%$INSTALL_DATA%g
2821 s%@PACKAGE@%$PACKAGE%g
2822 s%@VERSION@%$VERSION%g
2823 s%@ACLOCAL@%$ACLOCAL%g
2824 s%@AUTOCONF@%$AUTOCONF%g
2825 s%@AUTOMAKE@%$AUTOMAKE%g
2826 s%@AUTOHEADER@%$AUTOHEADER%g
2827 s%@MAKEINFO@%$MAKEINFO%g
2828 s%@SET_MAKE@%$SET_MAKE%g
2829 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
2830 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
2834 s%@host_alias@%$host_alias%g
2835 s%@host_cpu@%$host_cpu%g
2836 s%@host_vendor@%$host_vendor%g
2837 s%@host_os@%$host_os%g
2839 s%@build_alias@%$build_alias%g
2840 s%@build_cpu@%$build_cpu%g
2841 s%@build_vendor@%$build_vendor%g
2842 s%@build_os@%$build_os%g
2843 s%@RANLIB@%$RANLIB%g
2845 s%@LIBTOOL@%$LIBTOOL%g
2846 s%@LIBTOOL_DEPS@%$LIBTOOL_DEPS%g
2847 s%@INSTALL_LTDL_TRUE@%$INSTALL_LTDL_TRUE%g
2848 s%@INSTALL_LTDL_FALSE@%$INSTALL_LTDL_FALSE%g
2849 s%@CONVENIENCE_LTDL_TRUE@%$CONVENIENCE_LTDL_TRUE%g
2850 s%@CONVENIENCE_LTDL_FALSE@%$CONVENIENCE_LTDL_FALSE%g
2852 s%@LIBADD_DL@%$LIBADD_DL%g
2857 cat >> $CONFIG_STATUS <<\EOF
2859 # Split the substitutions into bite-sized pieces for seds with
2860 # small command number limits, like on Digital OSF/1 and HP-UX.
2861 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2862 ac_file=1 # Number of current file.
2863 ac_beg=1 # First line for current file.
2864 ac_end=$ac_max_sed_cmds # Line after last line for current file.
2867 while $ac_more_lines; do
2868 if test $ac_beg -gt 1; then
2869 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2871 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2873 if test ! -s conftest.s$ac_file; then
2875 rm -f conftest.s$ac_file
2877 if test -z "$ac_sed_cmds"; then
2878 ac_sed_cmds="sed -f conftest.s$ac_file"
2880 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2882 ac_file=`expr $ac_file + 1`
2884 ac_end=`expr $ac_end + $ac_max_sed_cmds`
2887 if test -z "$ac_sed_cmds"; then
2892 cat >> $CONFIG_STATUS <<EOF
2894 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
2896 cat >> $CONFIG_STATUS <<\EOF
2897 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2898 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2900 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2901 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2902 *) ac_file_in="${ac_file}.in" ;;
2905 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2907 # Remove last slash and all that follows it. Not all systems have dirname.
2908 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2909 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2910 # The file is in a subdirectory.
2911 test ! -d "$ac_dir" && mkdir "$ac_dir"
2912 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2913 # A "../" for each directory in $ac_dir_suffix.
2914 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2916 ac_dir_suffix= ac_dots=
2919 case "$ac_given_srcdir" in
2921 if test -z "$ac_dots"; then top_srcdir=.
2922 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2923 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2925 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2926 top_srcdir="$ac_dots$ac_given_srcdir" ;;
2929 case "$ac_given_INSTALL" in
2930 [/$]*) INSTALL="$ac_given_INSTALL" ;;
2931 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2934 echo creating "$ac_file"
2936 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2938 *Makefile*) ac_comsub="1i\\
2939 # $configure_input" ;;
2943 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2945 s%@configure_input@%$configure_input%g
2946 s%@srcdir@%$srcdir%g
2947 s%@top_srcdir@%$top_srcdir%g
2948 s%@INSTALL@%$INSTALL%g
2949 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2953 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
2954 # NAME is the cpp macro being defined and VALUE is the value it is being given.
2956 # ac_d sets the value in "#define NAME VALUE" lines.
2957 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
2958 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
2961 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2962 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2963 ac_uB='\([ ]\)%\1#\2define\3'
2966 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2967 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2968 ac_eB='$%\1#\2define\3'
2972 if test "${CONFIG_HEADERS+set}" != set; then
2974 cat >> $CONFIG_STATUS <<EOF
2975 CONFIG_HEADERS="config.h"
2977 cat >> $CONFIG_STATUS <<\EOF
2979 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
2980 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2982 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2983 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2984 *) ac_file_in="${ac_file}.in" ;;
2987 echo creating $ac_file
2989 rm -f conftest.frag conftest.in conftest.out
2990 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2991 cat $ac_file_inputs > conftest.in
2995 # Transform confdefs.h into a sed script conftest.vals that substitutes
2996 # the proper values into config.h.in to produce config.h. And first:
2997 # Protect against being on the right side of a sed subst in config.status.
2998 # Protect against being in an unquoted here document in config.status.
3000 cat > conftest.hdr <<\EOF
3003 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3007 sed -n -f conftest.hdr confdefs.h > conftest.vals
3010 # This sed command replaces #undef with comments. This is necessary, for
3011 # example, in the case of _POSIX_SOURCE, which is predefined and required
3012 # on some systems where configure will not decide to define it.
3013 cat >> conftest.vals <<\EOF
3014 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3017 # Break up conftest.vals because some shells have a limit on
3018 # the size of here documents, and old seds have small limits too.
3023 ac_lines=`grep -c . conftest.vals`
3024 # grep -c gives empty output for an empty file on some AIX systems.
3025 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3026 # Write a limited-size here document to conftest.frag.
3027 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3028 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3030 sed -f conftest.frag conftest.in > conftest.out
3032 mv conftest.out conftest.in
3034 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3036 mv conftest.tail conftest.vals
3040 cat >> $CONFIG_STATUS <<\EOF
3041 rm -f conftest.frag conftest.h
3042 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3043 cat conftest.in >> conftest.h
3045 if cmp -s $ac_file conftest.h 2>/dev/null; then
3046 echo "$ac_file is unchanged"
3049 # Remove last slash and all that follows it. Not all systems have dirname.
3050 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3051 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3052 # The file is in a subdirectory.
3053 test ! -d "$ac_dir" && mkdir "$ac_dir"
3056 mv conftest.h $ac_file
3061 cat >> $CONFIG_STATUS <<EOF
3065 cat >> $CONFIG_STATUS <<\EOF
3066 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
3070 chmod +x $CONFIG_STATUS
3071 rm -fr confdefs* $ac_clean_files
3072 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1