3 # From configure.in Revision: 1.3
7 # Do all the work for Automake. This macro actually does too much --
8 # some checks are only needed if your package does certain things.
9 # But this isn't really a big deal.
17 # Check to make sure that the build environment is sane.
24 # Like AC_CONFIG_HEADER, but automatically create stamp file.
28 # libtool.m4 - Configure libtool for the host system. -*-Shell-script-*-
30 # serial 46 AC_PROG_LIBTOOL
36 # --------------------
39 # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
40 # ---------------------------------
41 # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
43 # _LT_AC_LIBTOOL_SYS_PATH_SEPARATOR
44 # ---------------------------------
45 # _LT_AC_LIBTOOL_SYS_PATH_SEPARATOR
47 # _LT_AC_PROG_ECHO_BACKSLASH
48 # --------------------------
49 # Add some code to the start of the generated configure script which
50 # will find an echo command which doesn;t interpret backslashes.
51 # _LT_AC_PROG_ECHO_BACKSLASH
53 # _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
54 # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
55 # ------------------------------------------------------------------
56 # _LT_AC_TRY_DLOPEN_SELF
58 # AC_LIBTOOL_DLOPEN_SELF
60 # AC_LIBTOOL_DLOPEN_SELF
62 # _LT_AC_LTCONFIG_HACK
64 # AC_LIBTOOL_DLOPEN - enable checks for dlopen support
67 # AC_LIBTOOL_WIN32_DLL - declare package support for building win32 dll's
70 # AC_ENABLE_SHARED - implement the --enable-shared flag
71 # Usage: AC_ENABLE_SHARED[(DEFAULT)]
72 # Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
76 # AC_DISABLE_SHARED - set the default shared flag to --disable-shared
79 # AC_ENABLE_STATIC - implement the --enable-static flag
80 # Usage: AC_ENABLE_STATIC[(DEFAULT)]
81 # Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
85 # AC_DISABLE_STATIC - set the default static flag to --disable-static
89 # AC_ENABLE_FAST_INSTALL - implement the --enable-fast-install flag
90 # Usage: AC_ENABLE_FAST_INSTALL[(DEFAULT)]
91 # Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
95 # AC_DISABLE_FAST_INSTALL - set the default to --disable-fast-install
98 # AC_LIBTOOL_PICMODE - implement the --with-pic flag
99 # Usage: AC_LIBTOOL_PICMODE[(MODE)]
100 # Where MODE is either `yes' or `no'. If omitted, it defaults to
105 # AC_PATH_TOOL_PREFIX - find a file program which can recognise shared library
109 # AC_PATH_MAGIC - find a file program which can recognise a shared library
113 # AC_PROG_LD - find the path to the GNU or non-GNU linker
119 # AC_PROG_LD_RELOAD_FLAG - find reload flag for linker
120 # -- PORTME Some linkers may need a different reload flag.
123 # AC_DEPLIBS_CHECK_METHOD - how to check for library dependencies
124 # -- PORTME fill in with the dynamic library characteristics
128 # AC_PROG_NM - find the path to a BSD-compatible name lister
131 # AC_CHECK_LIBM - check for math library
134 # AC_LIBLTDL_CONVENIENCE[(dir)] - sets LIBLTDL to the link flags for
135 # the libltdl convenience library and INCLTDL to the include flags for
136 # the libltdl header and adds --enable-ltdl-convenience to the
137 # configure arguments. Note that LIBLTDL and INCLTDL are not
138 # AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If DIR is not
139 # provided, it is assumed to be `libltdl'. LIBLTDL will be prefixed
140 # with '${top_builddir}/' and INCLTDL will be prefixed with
141 # '${top_srcdir}/' (note the single quotes!). If your package is not
142 # flat and you're not using automake, define top_builddir and
143 # top_srcdir appropriately in the Makefiles.
146 # AC_LIBLTDL_INSTALLABLE[(dir)] - sets LIBLTDL to the link flags for
147 # the libltdl installable library and INCLTDL to the include flags for
148 # the libltdl header and adds --enable-ltdl-install to the configure
149 # arguments. Note that LIBLTDL and INCLTDL are not AC_SUBSTed, nor is
150 # AC_CONFIG_SUBDIRS called. If DIR is not provided and an installed
151 # libltdl is not found, it is assumed to be `libltdl'. LIBLTDL will
152 # be prefixed with '${top_builddir}/' and INCLTDL will be prefixed
153 # with '${top_srcdir}/' (note the single quotes!). If your package is
154 # not flat and you're not using automake, define top_builddir and
155 # top_srcdir appropriately in the Makefiles.
156 # In the future, this macro may have to be called after AC_PROG_LIBTOOL.
168 # This is just to silence aclocal about the macro not being used
171 # Guess values for system-dependent variables and create Makefiles.
172 # Generated automatically using autoconf version 2.13
173 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
175 # This configure script is free software; the Free Software Foundation
176 # gives unlimited permission to copy, distribute and modify it.
180 ac_default_prefix=/usr/local
181 # Any additions from configure.in:
183 --enable-shared[=PKGS] build shared libraries [default=yes]"
185 --enable-static[=PKGS] build static libraries [default=yes]"
187 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
189 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
191 # Find the correct PATH separator. Usually this is `:', but
192 # DJGPP uses `;' like DOS.
193 if test "X${PATH_SEPARATOR+set}" != Xset; then
194 UNAME=${UNAME-`uname 2>/dev/null`}
196 *-DOS) lt_cv_sys_path_separator=';' ;;
197 *) lt_cv_sys_path_separator=':' ;;
202 # Check that we are running under the correct shell.
203 SHELL=${CONFIG_SHELL-/bin/sh}
207 # Remove one level of quotation (which was required for Make).
208 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
213 if test "X$1" = X--no-reexec; then
214 # Discard the --no-reexec flag, and continue.
216 elif test "X$1" = X--fallback-echo; then
217 # Avoid inline document here, it may be left over
219 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
220 # Yippee, $echo works!
223 # Restart under the correct shell.
224 exec $SHELL "$0" --no-reexec ${1+"$@"}
227 if test "X$1" = X--fallback-echo; then
228 # used as fallback echo
236 # The HP-UX ksh and POSIX shell print the target directory to stdout
238 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
240 if test -z "$ECHO"; then
241 if test "X${echo_test_string+set}" != Xset; then
242 # find a string as large as possible, as long as the shell can cope with it
243 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
244 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
245 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
246 echo_test_string="`eval $cmd`" &&
247 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
254 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
255 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
256 test "X$echo_testing_string" = "X$echo_test_string"; then
259 # The Solaris, AIX, and Digital Unix default echo programs unquote
260 # backslashes. This makes it impossible to quote backslashes using
261 # echo "$something" | sed 's/\\/\\\\/g'
263 # So, first we look for a working echo in the user's PATH.
265 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}"
266 for dir in $PATH /usr/ucb; do
267 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
268 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
269 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
270 test "X$echo_testing_string" = "X$echo_test_string"; then
277 if test "X$echo" = Xecho; then
278 # We didn't find a better echo, so look for alternatives.
279 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
280 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
281 test "X$echo_testing_string" = "X$echo_test_string"; then
282 # This shell has a builtin print -r that does the trick.
284 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
285 test "X$CONFIG_SHELL" != X/bin/ksh; then
286 # If we have ksh, try running configure again with it.
287 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
288 export ORIGINAL_CONFIG_SHELL
289 CONFIG_SHELL=/bin/ksh
291 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
295 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
296 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
297 test "X$echo_testing_string" = "X$echo_test_string"; then
300 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
301 test "X$echo_testing_string" = 'X\t' &&
302 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
303 test "X$echo_testing_string" = "X$echo_test_string"; then
304 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
306 SHELL="$CONFIG_SHELL"
308 echo="$CONFIG_SHELL $0 --fallback-echo"
309 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
310 test "X$echo_testing_string" = 'X\t' &&
311 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
312 test "X$echo_testing_string" = "X$echo_test_string"; then
313 echo="$CONFIG_SHELL $0 --fallback-echo"
315 # maybe with a smaller string...
318 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
319 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
326 if test "$prev" != 'sed 50q "$0"'; then
327 echo_test_string=`eval $prev`
328 export echo_test_string
329 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
331 # Oops. We lost completely, so just stick with echo.
340 # Copy echo and quote the copy suitably for passing to libtool from
341 # the Makefile, instead of quoting the original, which is used later.
343 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
344 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
349 --disable-libtool-lock avoid locking (might break parallel builds)"
351 --with-pic try to use only PIC/non-PIC objects [default=use both]"
353 # Initialize some variables set by options.
354 # The variables have the same names as the options, with
355 # dashes changed to underlines.
357 cache_file=./config.cache
366 program_transform_name=s,x,x,
374 bindir='${exec_prefix}/bin'
375 sbindir='${exec_prefix}/sbin'
376 libexecdir='${exec_prefix}/libexec'
377 datadir='${prefix}/share'
378 sysconfdir='${prefix}/etc'
379 sharedstatedir='${prefix}/com'
380 localstatedir='${prefix}/var'
381 libdir='${exec_prefix}/lib'
382 includedir='${prefix}/include'
383 oldincludedir='/usr/include'
384 infodir='${prefix}/info'
385 mandir='${prefix}/man'
387 # Initialize some other variables.
390 SHELL=${CONFIG_SHELL-/bin/sh}
391 # Maximum number of lines to put in a shell here document.
398 # If the previous option needs an argument, assign it.
399 if test -n "$ac_prev"; then
400 eval "$ac_prev=\$ac_option"
406 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
410 # Accept the important Cygnus configure options, so we can diagnose typos.
414 -bindir | --bindir | --bindi | --bind | --bin | --bi)
416 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
417 bindir="$ac_optarg" ;;
419 -build | --build | --buil | --bui | --bu)
421 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
422 build="$ac_optarg" ;;
424 -cache-file | --cache-file | --cache-fil | --cache-fi \
425 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
426 ac_prev=cache_file ;;
427 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
428 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
429 cache_file="$ac_optarg" ;;
431 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
433 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
435 datadir="$ac_optarg" ;;
437 -disable-* | --disable-*)
438 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
439 # Reject names that are not valid shell variable names.
440 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
441 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
443 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
444 eval "enable_${ac_feature}=no" ;;
446 -enable-* | --enable-*)
447 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
448 # Reject names that are not valid shell variable names.
449 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
450 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
452 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
457 eval "enable_${ac_feature}='$ac_optarg'" ;;
459 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
460 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
461 | --exec | --exe | --ex)
462 ac_prev=exec_prefix ;;
463 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
464 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
465 | --exec=* | --exe=* | --ex=*)
466 exec_prefix="$ac_optarg" ;;
468 -gas | --gas | --ga | --g)
469 # Obsolete; use --with-gas.
472 -help | --help | --hel | --he)
473 # Omit some internal or obsolete options to make the list less imposing.
474 # This message is too long to be a string in the A/UX 3.1 sh.
476 Usage: configure [options] [host]
477 Options: [defaults in brackets after descriptions]
479 --cache-file=FILE cache test results in FILE
480 --help print this message
481 --no-create do not create output files
482 --quiet, --silent do not print \`checking...' messages
483 --version print the version of autoconf that created configure
484 Directory and file names:
485 --prefix=PREFIX install architecture-independent files in PREFIX
487 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
489 --bindir=DIR user executables in DIR [EPREFIX/bin]
490 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
491 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
492 --datadir=DIR read-only architecture-independent data in DIR
494 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
495 --sharedstatedir=DIR modifiable architecture-independent data in DIR
497 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
498 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
499 --includedir=DIR C header files in DIR [PREFIX/include]
500 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
501 --infodir=DIR info documentation in DIR [PREFIX/info]
502 --mandir=DIR man documentation in DIR [PREFIX/man]
503 --srcdir=DIR find the sources in DIR [configure dir or ..]
504 --program-prefix=PREFIX prepend PREFIX to installed program names
505 --program-suffix=SUFFIX append SUFFIX to installed program names
506 --program-transform-name=PROGRAM
507 run sed PROGRAM on installed program names
511 --build=BUILD configure for building on BUILD [BUILD=HOST]
512 --host=HOST configure for HOST [guessed]
513 --target=TARGET configure for TARGET [TARGET=HOST]
514 Features and packages:
515 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
516 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
517 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
518 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
519 --x-includes=DIR X include files are in DIR
520 --x-libraries=DIR X library files are in DIR
522 if test -n "$ac_help"; then
523 echo "--enable and --with options recognized:$ac_help"
527 -host | --host | --hos | --ho)
529 -host=* | --host=* | --hos=* | --ho=*)
532 -includedir | --includedir | --includedi | --included | --include \
533 | --includ | --inclu | --incl | --inc)
534 ac_prev=includedir ;;
535 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
536 | --includ=* | --inclu=* | --incl=* | --inc=*)
537 includedir="$ac_optarg" ;;
539 -infodir | --infodir | --infodi | --infod | --info | --inf)
541 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
542 infodir="$ac_optarg" ;;
544 -libdir | --libdir | --libdi | --libd)
546 -libdir=* | --libdir=* | --libdi=* | --libd=*)
547 libdir="$ac_optarg" ;;
549 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
550 | --libexe | --libex | --libe)
551 ac_prev=libexecdir ;;
552 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
553 | --libexe=* | --libex=* | --libe=*)
554 libexecdir="$ac_optarg" ;;
556 -localstatedir | --localstatedir | --localstatedi | --localstated \
557 | --localstate | --localstat | --localsta | --localst \
558 | --locals | --local | --loca | --loc | --lo)
559 ac_prev=localstatedir ;;
560 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
561 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
562 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
563 localstatedir="$ac_optarg" ;;
565 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
567 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
568 mandir="$ac_optarg" ;;
571 # Obsolete; use --without-fp.
574 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
578 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
579 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
582 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
583 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
584 | --oldin | --oldi | --old | --ol | --o)
585 ac_prev=oldincludedir ;;
586 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
587 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
588 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
589 oldincludedir="$ac_optarg" ;;
591 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
593 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
594 prefix="$ac_optarg" ;;
596 -program-prefix | --program-prefix | --program-prefi | --program-pref \
597 | --program-pre | --program-pr | --program-p)
598 ac_prev=program_prefix ;;
599 -program-prefix=* | --program-prefix=* | --program-prefi=* \
600 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
601 program_prefix="$ac_optarg" ;;
603 -program-suffix | --program-suffix | --program-suffi | --program-suff \
604 | --program-suf | --program-su | --program-s)
605 ac_prev=program_suffix ;;
606 -program-suffix=* | --program-suffix=* | --program-suffi=* \
607 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
608 program_suffix="$ac_optarg" ;;
610 -program-transform-name | --program-transform-name \
611 | --program-transform-nam | --program-transform-na \
612 | --program-transform-n | --program-transform- \
613 | --program-transform | --program-transfor \
614 | --program-transfo | --program-transf \
615 | --program-trans | --program-tran \
616 | --progr-tra | --program-tr | --program-t)
617 ac_prev=program_transform_name ;;
618 -program-transform-name=* | --program-transform-name=* \
619 | --program-transform-nam=* | --program-transform-na=* \
620 | --program-transform-n=* | --program-transform-=* \
621 | --program-transform=* | --program-transfor=* \
622 | --program-transfo=* | --program-transf=* \
623 | --program-trans=* | --program-tran=* \
624 | --progr-tra=* | --program-tr=* | --program-t=*)
625 program_transform_name="$ac_optarg" ;;
627 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
628 | -silent | --silent | --silen | --sile | --sil)
631 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
633 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
635 sbindir="$ac_optarg" ;;
637 -sharedstatedir | --sharedstatedir | --sharedstatedi \
638 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
639 | --sharedst | --shareds | --shared | --share | --shar \
641 ac_prev=sharedstatedir ;;
642 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
643 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
644 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
646 sharedstatedir="$ac_optarg" ;;
648 -site | --site | --sit)
650 -site=* | --site=* | --sit=*)
653 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
655 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
656 srcdir="$ac_optarg" ;;
658 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
659 | --syscon | --sysco | --sysc | --sys | --sy)
660 ac_prev=sysconfdir ;;
661 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
662 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
663 sysconfdir="$ac_optarg" ;;
665 -target | --target | --targe | --targ | --tar | --ta | --t)
667 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
668 target="$ac_optarg" ;;
670 -v | -verbose | --verbose | --verbos | --verbo | --verb)
673 -version | --version | --versio | --versi | --vers)
674 echo "configure generated by autoconf version 2.13"
678 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
679 # Reject names that are not valid shell variable names.
680 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
681 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
683 ac_package=`echo $ac_package| sed 's/-/_/g'`
688 eval "with_${ac_package}='$ac_optarg'" ;;
690 -without-* | --without-*)
691 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
692 # Reject names that are not valid shell variable names.
693 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
694 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
696 ac_package=`echo $ac_package| sed 's/-/_/g'`
697 eval "with_${ac_package}=no" ;;
700 # Obsolete; use --with-x.
703 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
704 | --x-incl | --x-inc | --x-in | --x-i)
705 ac_prev=x_includes ;;
706 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
707 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
708 x_includes="$ac_optarg" ;;
710 -x-libraries | --x-libraries | --x-librarie | --x-librari \
711 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
712 ac_prev=x_libraries ;;
713 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
714 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
715 x_libraries="$ac_optarg" ;;
717 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
721 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
722 echo "configure: warning: $ac_option: invalid host type" 1>&2
724 if test "x$nonopt" != xNONE; then
725 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
733 if test -n "$ac_prev"; then
734 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
737 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
739 # File descriptor usage:
742 # 2 errors and warnings
743 # 3 some systems may open it to /dev/tty
744 # 4 used on the Kubota Titan
745 # 6 checking for... messages and results
746 # 5 compiler messages saved in config.log
747 if test "$silent" = yes; then
755 This file contains any messages produced by compilers while
756 running configure, to aid debugging if configure makes a mistake.
759 # Strip out --no-create and --no-recursion so they do not pile up.
760 # Also quote any args containing shell metacharacters.
765 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
766 | --no-cr | --no-c) ;;
767 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
768 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
769 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
770 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
771 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
776 # Only set these to C if already set. These must not be set unconditionally
777 # because not all systems understand e.g. LANG=C (notably SCO).
778 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
779 # Non-C LC_CTYPE values break the ctype check.
780 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
781 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
782 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
783 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
785 # confdefs.h avoids OS command line length limits that DEFS can exceed.
786 rm -rf conftest* confdefs.h
787 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
790 # A filename unique to this package, relative to the directory that
791 # configure is in, which we can look for to find out if srcdir is correct.
792 ac_unique_file=redblack.c
794 # Find the source files, if location was not specified.
795 if test -z "$srcdir"; then
796 ac_srcdir_defaulted=yes
797 # Try the directory containing this script, then its parent.
799 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
800 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
802 if test ! -r $srcdir/$ac_unique_file; then
806 ac_srcdir_defaulted=no
808 if test ! -r $srcdir/$ac_unique_file; then
809 if test "$ac_srcdir_defaulted" = yes; then
810 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
812 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
815 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
817 # Prefer explicitly selected file to automatically selected ones.
818 if test -z "$CONFIG_SITE"; then
819 if test "x$prefix" != xNONE; then
820 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
822 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
825 for ac_site_file in $CONFIG_SITE; do
826 if test -r "$ac_site_file"; then
827 echo "loading site script $ac_site_file"
832 if test -r "$cache_file"; then
833 echo "loading cache $cache_file"
836 echo "creating cache $cache_file"
841 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
842 ac_cpp='$CPP $CPPFLAGS'
843 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
844 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
845 cross_compiling=$ac_cv_prog_cc_cross
849 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
850 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
851 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
858 ac_n= ac_c='\c' ac_t=
863 REDBLACK_MAJOR_VERSION=1
864 REDBLACK_MINOR_VERSION=2
865 REDBLACK_VERSION=$REDBLACK_MAJOR_VERSION.$REDBLACK_MINOR_VERSION
867 REDBLACK_LIB_CURRENT=2
869 REDBLACK_LIB_REVISION=$REDBLACK_MINOR_VERSION
874 VERSION=$REDBLACK_VERSION
878 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
879 if test -f $ac_dir/install-sh; then
881 ac_install_sh="$ac_aux_dir/install-sh -c"
883 elif test -f $ac_dir/install.sh; then
885 ac_install_sh="$ac_aux_dir/install.sh -c"
889 if test -z "$ac_aux_dir"; then
890 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
892 ac_config_guess=$ac_aux_dir/config.guess
893 ac_config_sub=$ac_aux_dir/config.sub
894 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
896 # Find a good install program. We prefer a C program (faster),
897 # so one script is as good as another. But avoid the broken or
898 # incompatible versions:
899 # SysV /etc/install, /usr/sbin/install
900 # SunOS /usr/etc/install
903 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
904 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
905 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
906 # ./install, which can be erroneously created by make from ./install.sh.
907 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
908 echo "configure:909: checking for a BSD compatible install" >&5
909 if test -z "$INSTALL"; then
910 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
911 echo $ac_n "(cached) $ac_c" 1>&6
913 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
914 for ac_dir in $PATH; do
915 # Account for people who put trailing slashes in PATH elements.
917 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
919 # OSF1 and SCO ODT 3.0 have their own names for install.
920 # Don't use installbsd from OSF since it installs stuff as root
922 for ac_prog in ginstall scoinst install; do
923 if test -f $ac_dir/$ac_prog; then
924 if test $ac_prog = install &&
925 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
926 # AIX install. It has an incompatible calling convention.
929 ac_cv_path_install="$ac_dir/$ac_prog -c"
940 if test "${ac_cv_path_install+set}" = set; then
941 INSTALL="$ac_cv_path_install"
943 # As a last resort, use the slow shell script. We don't cache a
944 # path for INSTALL within a source directory, because that will
945 # break other packages using the cache if that directory is
946 # removed, or if the path is relative.
947 INSTALL="$ac_install_sh"
950 echo "$ac_t""$INSTALL" 1>&6
952 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
953 # It thinks the first close brace ends the variable substitution.
954 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
956 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
958 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
960 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
961 echo "configure:962: checking whether build environment is sane" >&5
964 echo timestamp > conftestfile
965 # Do `set' in a subshell so we don't clobber the current shell's
966 # arguments. Must try -L first in case configure is actually a
967 # symlink; some systems play weird games with the mod time of symlinks
968 # (eg FreeBSD returns the mod time of the symlink's containing
971 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
972 if test "$*" = "X"; then
974 set X `ls -t $srcdir/configure conftestfile`
976 if test "$*" != "X $srcdir/configure conftestfile" \
977 && test "$*" != "X conftestfile $srcdir/configure"; then
979 # If neither matched, then we have a broken ls. This can happen
980 # if, for instance, CONFIG_SHELL is bash and it inherits a
981 # broken ls alias from the environment. This has actually
982 # happened. Such a system could not be considered "sane".
983 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
984 alias in your environment" 1>&2; exit 1; }
987 test "$2" = conftestfile
993 { echo "configure: error: newly created file is older than distributed files!
994 Check your system clock" 1>&2; exit 1; }
997 echo "$ac_t""yes" 1>&6
998 if test "$program_transform_name" = s,x,x,; then
999 program_transform_name=
1001 # Double any \ or $. echo might interpret backslashes.
1002 cat <<\EOF_SED > conftestsed
1003 s,\\,\\\\,g; s,\$,$$,g
1005 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
1008 test "$program_prefix" != NONE &&
1009 program_transform_name="s,^,${program_prefix},; $program_transform_name"
1010 # Use a double $ so make ignores it.
1011 test "$program_suffix" != NONE &&
1012 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
1014 # sed with no file args requires a program.
1015 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
1017 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1018 echo "configure:1019: checking whether ${MAKE-make} sets \${MAKE}" >&5
1019 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1020 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1021 echo $ac_n "(cached) $ac_c" 1>&6
1023 cat > conftestmake <<\EOF
1025 @echo 'ac_maketemp="${MAKE}"'
1027 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1028 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1029 if test -n "$ac_maketemp"; then
1030 eval ac_cv_prog_make_${ac_make}_set=yes
1032 eval ac_cv_prog_make_${ac_make}_set=no
1036 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1037 echo "$ac_t""yes" 1>&6
1040 echo "$ac_t""no" 1>&6
1041 SET_MAKE="MAKE=${MAKE-make}"
1049 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1050 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
1052 cat >> confdefs.h <<EOF
1053 #define PACKAGE "$PACKAGE"
1056 cat >> confdefs.h <<EOF
1057 #define VERSION "$VERSION"
1062 missing_dir=`cd $ac_aux_dir && pwd`
1063 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1064 echo "configure:1065: checking for working aclocal" >&5
1065 # Run test in a subshell; some versions of sh will print an error if
1066 # an executable is not found, even if stderr is redirected.
1067 # Redirect stdin to placate older versions of autoconf. Sigh.
1068 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1070 echo "$ac_t""found" 1>&6
1072 ACLOCAL="$missing_dir/missing aclocal"
1073 echo "$ac_t""missing" 1>&6
1076 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1077 echo "configure:1078: checking for working autoconf" >&5
1078 # Run test in a subshell; some versions of sh will print an error if
1079 # an executable is not found, even if stderr is redirected.
1080 # Redirect stdin to placate older versions of autoconf. Sigh.
1081 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1083 echo "$ac_t""found" 1>&6
1085 AUTOCONF="$missing_dir/missing autoconf"
1086 echo "$ac_t""missing" 1>&6
1089 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1090 echo "configure:1091: checking for working automake" >&5
1091 # Run test in a subshell; some versions of sh will print an error if
1092 # an executable is not found, even if stderr is redirected.
1093 # Redirect stdin to placate older versions of autoconf. Sigh.
1094 if (automake --version) < /dev/null > /dev/null 2>&1; then
1096 echo "$ac_t""found" 1>&6
1098 AUTOMAKE="$missing_dir/missing automake"
1099 echo "$ac_t""missing" 1>&6
1102 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1103 echo "configure:1104: checking for working autoheader" >&5
1104 # Run test in a subshell; some versions of sh will print an error if
1105 # an executable is not found, even if stderr is redirected.
1106 # Redirect stdin to placate older versions of autoconf. Sigh.
1107 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1108 AUTOHEADER=autoheader
1109 echo "$ac_t""found" 1>&6
1111 AUTOHEADER="$missing_dir/missing autoheader"
1112 echo "$ac_t""missing" 1>&6
1115 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1116 echo "configure:1117: checking for working makeinfo" >&5
1117 # Run test in a subshell; some versions of sh will print an error if
1118 # an executable is not found, even if stderr is redirected.
1119 # Redirect stdin to placate older versions of autoconf. Sigh.
1120 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1122 echo "$ac_t""found" 1>&6
1124 MAKEINFO="$missing_dir/missing makeinfo"
1125 echo "$ac_t""missing" 1>&6
1140 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
1141 echo "configure:1142: checking for Cygwin environment" >&5
1142 if eval "test \"`echo '$''{'ac_cv_cygwin'+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"
1152 #define __CYGWIN__ __CYGWIN32__
1157 if { (eval echo configure:1158: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1161 echo "configure: failed program was:" >&5
1162 cat conftest.$ac_ext >&5
1170 echo "$ac_t""$ac_cv_cygwin" 1>&6
1172 test "$ac_cv_cygwin" = yes && CYGWIN=yes
1173 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
1174 echo "configure:1175: checking for mingw32 environment" >&5
1175 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
1176 echo $ac_n "(cached) $ac_c" 1>&6
1178 cat > conftest.$ac_ext <<EOF
1179 #line 1180 "configure"
1180 #include "confdefs.h"
1186 if { (eval echo configure:1187: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1190 echo "configure: failed program was:" >&5
1191 cat conftest.$ac_ext >&5
1199 echo "$ac_t""$ac_cv_mingw32" 1>&6
1201 test "$ac_cv_mingw32" = yes && MINGW32=yes
1202 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1203 echo "configure:1204: checking how to run the C preprocessor" >&5
1204 # On Suns, sometimes $CPP names a directory.
1205 if test -n "$CPP" && test -d "$CPP"; then
1208 if test -z "$CPP"; then
1209 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1210 echo $ac_n "(cached) $ac_c" 1>&6
1212 # This must be in double quotes, not single quotes, because CPP may get
1213 # substituted into the Makefile and "${CC-cc}" will confuse make.
1215 # On the NeXT, cc -E runs the code through the compiler's parser,
1216 # not just through cpp.
1217 cat > conftest.$ac_ext <<EOF
1218 #line 1219 "configure"
1219 #include "confdefs.h"
1223 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1224 { (eval echo configure:1225: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1225 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1226 if test -z "$ac_err"; then
1230 echo "configure: failed program was:" >&5
1231 cat conftest.$ac_ext >&5
1233 CPP="${CC-cc} -E -traditional-cpp"
1234 cat > conftest.$ac_ext <<EOF
1235 #line 1236 "configure"
1236 #include "confdefs.h"
1240 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1241 { (eval echo configure:1242: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1242 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1243 if test -z "$ac_err"; then
1247 echo "configure: failed program was:" >&5
1248 cat conftest.$ac_ext >&5
1250 CPP="${CC-cc} -nologo -E"
1251 cat > conftest.$ac_ext <<EOF
1252 #line 1253 "configure"
1253 #include "confdefs.h"
1257 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1258 { (eval echo configure:1259: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1259 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1260 if test -z "$ac_err"; then
1264 echo "configure: failed program was:" >&5
1265 cat conftest.$ac_ext >&5
1274 ac_cv_prog_CPP="$CPP"
1276 CPP="$ac_cv_prog_CPP"
1278 ac_cv_prog_CPP="$CPP"
1280 echo "$ac_t""$CPP" 1>&6
1282 # Check whether --enable-shared or --disable-shared was given.
1283 if test "${enable_shared+set}" = set; then
1284 enableval="$enable_shared"
1285 p=${PACKAGE-default}
1287 yes) enable_shared=yes ;;
1288 no) enable_shared=no ;;
1291 # Look at the argument we got. We use all the common list separators.
1292 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1293 for pkg in $enableval; do
1294 if test "X$pkg" = "X$p"; then
1305 # Check whether --enable-static or --disable-static was given.
1306 if test "${enable_static+set}" = set; then
1307 enableval="$enable_static"
1308 p=${PACKAGE-default}
1310 yes) enable_static=yes ;;
1311 no) enable_static=no ;;
1314 # Look at the argument we got. We use all the common list separators.
1315 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1316 for pkg in $enableval; do
1317 if test "X$pkg" = "X$p"; then
1328 # Check whether --enable-fast-install or --disable-fast-install was given.
1329 if test "${enable_fast_install+set}" = set; then
1330 enableval="$enable_fast_install"
1331 p=${PACKAGE-default}
1333 yes) enable_fast_install=yes ;;
1334 no) enable_fast_install=no ;;
1336 enable_fast_install=no
1337 # Look at the argument we got. We use all the common list separators.
1338 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1339 for pkg in $enableval; do
1340 if test "X$pkg" = "X$p"; then
1341 enable_fast_install=yes
1348 enable_fast_install=yes
1352 # Make sure we can run config.sub.
1353 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1354 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1357 echo $ac_n "checking host system type""... $ac_c" 1>&6
1358 echo "configure:1359: checking host system type" >&5
1361 case "$host_alias" in
1365 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1366 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1368 *) host_alias=$nonopt ;;
1372 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1373 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1374 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1375 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1376 echo "$ac_t""$host" 1>&6
1378 echo $ac_n "checking build system type""... $ac_c" 1>&6
1379 echo "configure:1380: checking build system type" >&5
1382 case "$build_alias" in
1385 NONE) build_alias=$host_alias ;;
1386 *) build_alias=$nonopt ;;
1390 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1391 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1392 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1393 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1394 echo "$ac_t""$build" 1>&6
1396 # Extract the first word of "gcc", so it can be a program name with args.
1397 set dummy gcc; ac_word=$2
1398 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1399 echo "configure:1400: checking for $ac_word" >&5
1400 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1401 echo $ac_n "(cached) $ac_c" 1>&6
1403 if test -n "$CC"; then
1404 ac_cv_prog_CC="$CC" # Let the user override the test.
1406 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1408 for ac_dir in $ac_dummy; do
1409 test -z "$ac_dir" && ac_dir=.
1410 if test -f $ac_dir/$ac_word; then
1419 if test -n "$CC"; then
1420 echo "$ac_t""$CC" 1>&6
1422 echo "$ac_t""no" 1>&6
1425 if test -z "$CC"; then
1426 # Extract the first word of "cc", so it can be a program name with args.
1427 set dummy cc; ac_word=$2
1428 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1429 echo "configure:1430: checking for $ac_word" >&5
1430 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1431 echo $ac_n "(cached) $ac_c" 1>&6
1433 if test -n "$CC"; then
1434 ac_cv_prog_CC="$CC" # Let the user override the test.
1436 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1439 for ac_dir in $ac_dummy; do
1440 test -z "$ac_dir" && ac_dir=.
1441 if test -f $ac_dir/$ac_word; then
1442 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1443 ac_prog_rejected=yes
1451 if test $ac_prog_rejected = yes; then
1452 # We found a bogon in the path, so make sure we never use it.
1453 set dummy $ac_cv_prog_CC
1455 if test $# -gt 0; then
1456 # We chose a different compiler from the bogus one.
1457 # However, it has the same basename, so the bogon will be chosen
1458 # first if we set CC to just the basename; use the full file name.
1460 set dummy "$ac_dir/$ac_word" "$@"
1468 if test -n "$CC"; then
1469 echo "$ac_t""$CC" 1>&6
1471 echo "$ac_t""no" 1>&6
1474 if test -z "$CC"; then
1475 case "`uname -s`" in
1477 # Extract the first word of "cl", so it can be a program name with args.
1478 set dummy cl; ac_word=$2
1479 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1480 echo "configure:1481: checking for $ac_word" >&5
1481 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1482 echo $ac_n "(cached) $ac_c" 1>&6
1484 if test -n "$CC"; then
1485 ac_cv_prog_CC="$CC" # Let the user override the test.
1487 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1489 for ac_dir in $ac_dummy; do
1490 test -z "$ac_dir" && ac_dir=.
1491 if test -f $ac_dir/$ac_word; then
1500 if test -n "$CC"; then
1501 echo "$ac_t""$CC" 1>&6
1503 echo "$ac_t""no" 1>&6
1508 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1511 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1512 echo "configure:1513: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1515 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1516 ac_cpp='$CPP $CPPFLAGS'
1517 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1518 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1519 cross_compiling=$ac_cv_prog_cc_cross
1521 cat > conftest.$ac_ext << EOF
1523 #line 1524 "configure"
1524 #include "confdefs.h"
1528 if { (eval echo configure:1529: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1529 ac_cv_prog_cc_works=yes
1530 # If we can't run a trivial program, we are probably using a cross compiler.
1531 if (./conftest; exit) 2>/dev/null; then
1532 ac_cv_prog_cc_cross=no
1534 ac_cv_prog_cc_cross=yes
1537 echo "configure: failed program was:" >&5
1538 cat conftest.$ac_ext >&5
1539 ac_cv_prog_cc_works=no
1543 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1544 ac_cpp='$CPP $CPPFLAGS'
1545 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1546 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1547 cross_compiling=$ac_cv_prog_cc_cross
1549 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1550 if test $ac_cv_prog_cc_works = no; then
1551 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1553 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1554 echo "configure:1555: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1555 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1556 cross_compiling=$ac_cv_prog_cc_cross
1558 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1559 echo "configure:1560: checking whether we are using GNU C" >&5
1560 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1561 echo $ac_n "(cached) $ac_c" 1>&6
1563 cat > conftest.c <<EOF
1568 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1569: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1575 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1577 if test $ac_cv_prog_gcc = yes; then
1583 ac_test_CFLAGS="${CFLAGS+set}"
1584 ac_save_CFLAGS="$CFLAGS"
1586 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1587 echo "configure:1588: checking whether ${CC-cc} accepts -g" >&5
1588 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1589 echo $ac_n "(cached) $ac_c" 1>&6
1591 echo 'void f(){}' > conftest.c
1592 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1601 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1602 if test "$ac_test_CFLAGS" = set; then
1603 CFLAGS="$ac_save_CFLAGS"
1604 elif test $ac_cv_prog_cc_g = yes; then
1605 if test "$GCC" = yes; then
1611 if test "$GCC" = yes; then
1618 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1619 if test "${with_gnu_ld+set}" = set; then
1620 withval="$with_gnu_ld"
1621 test "$withval" = no || with_gnu_ld=yes
1627 if test "$GCC" = yes; then
1628 # Check if gcc -print-prog-name=ld gives a path.
1629 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1630 echo "configure:1631: checking for ld used by GCC" >&5
1633 # gcc leaves a trailing carriage return which upsets mingw
1634 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1636 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1639 # Accept absolute paths.
1640 [\\/]* | [A-Za-z]:[\\/]*)
1641 re_direlt='/[^/][^/]*/\.\./'
1642 # Canonicalize the path of ld
1643 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1644 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1645 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1647 test -z "$LD" && LD="$ac_prog"
1650 # If it fails, then pretend we aren't using GCC.
1654 # If it is relative, then search for the first ld in PATH.
1658 elif test "$with_gnu_ld" = yes; then
1659 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1660 echo "configure:1661: checking for GNU ld" >&5
1662 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1663 echo "configure:1664: checking for non-GNU ld" >&5
1665 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1666 echo $ac_n "(cached) $ac_c" 1>&6
1668 if test -z "$LD"; then
1669 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1670 for ac_dir in $PATH; do
1671 test -z "$ac_dir" && ac_dir=.
1672 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1673 lt_cv_path_LD="$ac_dir/$ac_prog"
1674 # Check to see if the program is GNU ld. I'd rather use --version,
1675 # but apparently some GNU ld's only accept -v.
1676 # Break only if it was the GNU/non-GNU ld that we prefer.
1677 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1678 test "$with_gnu_ld" != no && break
1680 test "$with_gnu_ld" != yes && break
1686 lt_cv_path_LD="$LD" # Let the user override the test with a path.
1691 if test -n "$LD"; then
1692 echo "$ac_t""$LD" 1>&6
1694 echo "$ac_t""no" 1>&6
1696 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1697 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1698 echo "configure:1699: checking if the linker ($LD) is GNU ld" >&5
1699 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1700 echo $ac_n "(cached) $ac_c" 1>&6
1702 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1703 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1704 lt_cv_prog_gnu_ld=yes
1706 lt_cv_prog_gnu_ld=no
1710 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1711 with_gnu_ld=$lt_cv_prog_gnu_ld
1714 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1715 echo "configure:1716: checking for $LD option to reload object files" >&5
1716 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1717 echo $ac_n "(cached) $ac_c" 1>&6
1719 lt_cv_ld_reload_flag='-r'
1722 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1723 reload_flag=$lt_cv_ld_reload_flag
1724 test -n "$reload_flag" && reload_flag=" $reload_flag"
1726 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1727 echo "configure:1728: checking for BSD-compatible nm" >&5
1728 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1729 echo $ac_n "(cached) $ac_c" 1>&6
1731 if test -n "$NM"; then
1732 # Let the user override the test.
1735 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1736 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1737 test -z "$ac_dir" && ac_dir=.
1738 tmp_nm=$ac_dir/${ac_tool_prefix}nm
1739 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1740 # Check to see if the nm accepts a BSD-compat flag.
1741 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1742 # nm: unknown option "B" ignored
1743 # Tru64's nm complains that /dev/null is an invalid object file
1744 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1745 lt_cv_path_NM="$tmp_nm -B"
1747 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1748 lt_cv_path_NM="$tmp_nm -p"
1751 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1752 continue # so that we can try to find one that supports BSD flags
1757 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1762 echo "$ac_t""$NM" 1>&6
1764 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1765 echo "configure:1766: checking whether ln -s works" >&5
1766 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1767 echo $ac_n "(cached) $ac_c" 1>&6
1770 if ln -s X conftestdata 2>/dev/null
1773 ac_cv_prog_LN_S="ln -s"
1778 LN_S="$ac_cv_prog_LN_S"
1779 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1780 echo "$ac_t""yes" 1>&6
1782 echo "$ac_t""no" 1>&6
1785 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1786 echo "configure:1787: checking how to recognise dependant libraries" >&5
1787 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1788 echo $ac_n "(cached) $ac_c" 1>&6
1790 lt_cv_file_magic_cmd='$MAGIC_CMD'
1791 lt_cv_file_magic_test_file=
1792 lt_cv_deplibs_check_method='unknown'
1793 # Need to set the preceding variable on all platforms that support
1794 # interlibrary dependencies.
1795 # 'none' -- dependencies not supported.
1796 # `unknown' -- same as none, but documents that we really don't know.
1797 # 'pass_all' -- all dependencies passed with no checks.
1798 # 'test_compile' -- check by making test program.
1799 # ['file_magic [regex]'] -- check by looking for files in library path
1800 # which responds to the $file_magic_cmd with a given egrep regex.
1801 # If you have `file' or equivalent on your system and you're not sure
1802 # whether `pass_all' will *always* work, you probably want this one.
1806 lt_cv_deplibs_check_method=pass_all
1810 lt_cv_deplibs_check_method=pass_all
1814 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1815 lt_cv_file_magic_cmd='/usr/bin/file -L'
1816 lt_cv_file_magic_test_file=/shlib/libc.so
1819 cygwin* | mingw* | pw32*)
1820 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1821 lt_cv_file_magic_cmd='$OBJDUMP -f'
1824 darwin* | rhapsody*)
1825 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
1826 lt_cv_file_magic_cmd='/usr/bin/file -L'
1828 rhapsody* | darwin1.012)
1829 lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
1832 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
1838 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1841 # Not sure whether the presence of OpenBSD here was a mistake.
1842 # Let's accept both of them until this is cleared up.
1843 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1844 lt_cv_file_magic_cmd=/usr/bin/file
1845 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1849 lt_cv_deplibs_check_method=pass_all
1854 lt_cv_deplibs_check_method=pass_all
1858 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
1859 lt_cv_file_magic_cmd=/usr/bin/file
1860 lt_cv_file_magic_test_file=/usr/lib/libc.sl
1866 # this will be overridden with pass_all, but let us keep it just in case
1867 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
1871 *-32|*"-32 ") libmagic=32-bit;;
1872 *-n32|*"-n32 ") libmagic=N32;;
1873 *-64|*"-64 ") libmagic=64-bit;;
1874 *) libmagic=never-match;;
1876 # this will be overridden with pass_all, but let us keep it just in case
1877 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
1880 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
1881 lt_cv_deplibs_check_method=pass_all
1884 # This must be Linux ELF.
1887 alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* | s390* )
1888 lt_cv_deplibs_check_method=pass_all ;;
1890 # glibc up to 2.1.1 does not perform some relocations on ARM
1891 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
1893 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
1897 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1898 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
1900 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
1905 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
1906 lt_cv_file_magic_cmd=/usr/bin/file
1907 lt_cv_file_magic_test_file=/usr/lib/libnls.so
1910 osf3* | osf4* | osf5*)
1911 # this will be overridden with pass_all, but let us keep it just in case
1912 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
1913 lt_cv_file_magic_test_file=/shlib/libc.so
1914 lt_cv_deplibs_check_method=pass_all
1918 lt_cv_deplibs_check_method=pass_all
1922 lt_cv_deplibs_check_method=pass_all
1923 lt_cv_file_magic_test_file=/lib/libc.so
1926 sysv5uw[78]* | sysv4*uw2*)
1927 lt_cv_deplibs_check_method=pass_all
1930 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
1931 case $host_vendor in
1933 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]'
1934 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
1937 lt_cv_deplibs_check_method=pass_all
1940 lt_cv_file_magic_cmd='/bin/file'
1941 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
1944 lt_cv_file_magic_cmd='/bin/file'
1945 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
1946 lt_cv_file_magic_test_file=/lib/libc.so
1954 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
1955 file_magic_cmd=$lt_cv_file_magic_cmd
1956 deplibs_check_method=$lt_cv_deplibs_check_method
1958 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
1959 echo "configure:1960: checking for object suffix" >&5
1960 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
1961 echo $ac_n "(cached) $ac_c" 1>&6
1964 echo 'int i = 1;' > conftest.$ac_ext
1965 if { (eval echo configure:1966: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1966 for ac_file in conftest.*; do
1969 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
1973 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
1978 echo "$ac_t""$ac_cv_objext" 1>&6
1979 OBJEXT=$ac_cv_objext
1980 ac_objext=$ac_cv_objext
1984 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1985 echo "configure:1986: checking for executable suffix" >&5
1986 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1987 echo $ac_n "(cached) $ac_c" 1>&6
1989 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1993 echo 'int main () { return 0; }' > conftest.$ac_ext
1995 if { (eval echo configure:1996: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1996 for file in conftest.*; do
1998 *.c | *.o | *.obj) ;;
1999 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
2003 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
2006 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
2011 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
2012 echo "$ac_t""${ac_cv_exeext}" 1>&6
2015 if test $host != $build; then
2016 ac_tool_prefix=${host_alias}-
2024 # Check for command to grab the raw symbol name followed by C symbol from nm.
2025 echo $ac_n "checking command to parse $NM output""... $ac_c" 1>&6
2026 echo "configure:2027: checking command to parse $NM output" >&5
2027 if eval "test \"`echo '$''{'lt_cv_sys_global_symbol_pipe'+set}'`\" = set"; then
2028 echo $ac_n "(cached) $ac_c" 1>&6
2031 # These are sane defaults that work on at least a few old systems.
2032 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
2034 # Character class describing NM global symbol codes.
2035 symcode='[BCDEGRST]'
2037 # Regexp to match symbols that can be accessed directly from C.
2038 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
2040 # Transform the above into a raw symbol and a C symbol.
2041 symxfrm='\1 \2\3 \3'
2043 # Transform an extracted symbol line into a proper C declaration
2044 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
2046 # Define system-specific variables.
2051 cygwin* | mingw* | pw32*)
2052 symcode='[ABCDGISTW]'
2054 hpux*) # Its linker distinguishes data from code symbols
2055 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
2058 symcode='[BCDEGRST]'
2068 # Handle CRLF in mingw tool chain
2072 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
2076 # If we're using GNU nm, then use its standard symbol codes.
2077 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
2078 symcode='[ABCDGISTW]'
2081 # Try without a prefix undercore, then with it.
2082 for ac_symprfx in "" "_"; do
2084 # Write the raw and C identifiers.
2085 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
2087 # Check to see that the pipe works correctly.
2090 cat > conftest.$ac_ext <<EOF
2095 void nm_test_func(){}
2099 int main(){nm_test_var='a';nm_test_func();return(0);}
2102 if { (eval echo configure:2103: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2103 # Now try to grab the symbols.
2105 if { (eval echo configure:2106: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\") 1>&5; (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5; } && test -s "$nlist"; then
2106 # Try sorting and uniquifying the output.
2107 if sort "$nlist" | uniq > "$nlist"T; then
2108 mv -f "$nlist"T "$nlist"
2113 # Make sure that we snagged all the symbols we need.
2114 if egrep ' nm_test_var$' "$nlist" >/dev/null; then
2115 if egrep ' nm_test_func$' "$nlist" >/dev/null; then
2116 cat <<EOF > conftest.$ac_ext
2122 # Now generate the symbol file.
2123 eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
2125 cat <<EOF >> conftest.$ac_ext
2126 #if defined (__STDC__) && __STDC__
2127 # define lt_ptr_t void *
2129 # define lt_ptr_t char *
2133 /* The mapping between symbol names and symbols. */
2138 lt_preloaded_symbols[] =
2141 sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" >> conftest.$ac_ext
2142 cat <<\EOF >> conftest.$ac_ext
2150 # Now try linking the two files.
2151 mv conftest.$ac_objext conftstm.$ac_objext
2153 save_CFLAGS="$CFLAGS"
2154 LIBS="conftstm.$ac_objext"
2155 CFLAGS="$CFLAGS$no_builtin_flag"
2156 if { (eval echo configure:2157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2160 CFLAGS="$save_CFLAGS"
2162 echo "cannot find nm_test_func in $nlist" >&5
2165 echo "cannot find nm_test_var in $nlist" >&5
2168 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
2171 echo "$progname: failed program was:" >&5
2172 cat conftest.$ac_ext >&5
2174 rm -f conftest* conftst*
2176 # Do not use the global_symbol_pipe unless it works.
2177 if test "$pipe_works" = yes; then
2180 lt_cv_sys_global_symbol_pipe=
2186 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
2187 if test -z "$lt_cv_sys_global_symbol_pipe"; then
2188 global_symbol_to_cdecl=
2190 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
2192 if test -z "$global_symbol_pipe$global_symbol_to_cdecl"; then
2193 echo "$ac_t""failed" 1>&6
2195 echo "$ac_t""ok" 1>&6
2198 for ac_hdr in dlfcn.h
2200 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2201 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2202 echo "configure:2203: checking for $ac_hdr" >&5
2203 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2204 echo $ac_n "(cached) $ac_c" 1>&6
2206 cat > conftest.$ac_ext <<EOF
2207 #line 2208 "configure"
2208 #include "confdefs.h"
2211 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2212 { (eval echo configure:2213: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2213 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2214 if test -z "$ac_err"; then
2216 eval "ac_cv_header_$ac_safe=yes"
2219 echo "configure: failed program was:" >&5
2220 cat conftest.$ac_ext >&5
2222 eval "ac_cv_header_$ac_safe=no"
2226 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2227 echo "$ac_t""yes" 1>&6
2228 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2229 cat >> confdefs.h <<EOF
2230 #define $ac_tr_hdr 1
2234 echo "$ac_t""no" 1>&6
2242 # Only perform the check for file, if the check method requires it
2243 case $deplibs_check_method in
2245 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2246 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
2247 echo "configure:2248: checking for ${ac_tool_prefix}file" >&5
2248 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2249 echo $ac_n "(cached) $ac_c" 1>&6
2253 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2256 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2259 ac_save_MAGIC_CMD="$MAGIC_CMD"
2260 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2261 ac_dummy="/usr/bin:$PATH"
2262 for ac_dir in $ac_dummy; do
2263 test -z "$ac_dir" && ac_dir=.
2264 if test -f $ac_dir/${ac_tool_prefix}file; then
2265 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
2266 if test -n "$file_magic_test_file"; then
2267 case $deplibs_check_method in
2269 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2270 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2271 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2272 egrep "$file_magic_regex" > /dev/null; then
2277 *** Warning: the command libtool uses to detect shared libraries,
2278 *** $file_magic_cmd, produces output that libtool cannot recognize.
2279 *** The result is that libtool may fail to recognize shared libraries
2280 *** as such. This will affect the creation of libtool libraries that
2281 *** depend on shared libraries, but programs linked with such libtool
2282 *** libraries will work regardless of this problem. Nevertheless, you
2283 *** may want to report the problem to your system manager and/or to
2284 *** bug-libtool@gnu.org
2294 MAGIC_CMD="$ac_save_MAGIC_CMD"
2299 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2300 if test -n "$MAGIC_CMD"; then
2301 echo "$ac_t""$MAGIC_CMD" 1>&6
2303 echo "$ac_t""no" 1>&6
2306 if test -z "$lt_cv_path_MAGIC_CMD"; then
2307 if test -n "$ac_tool_prefix"; then
2308 echo $ac_n "checking for file""... $ac_c" 1>&6
2309 echo "configure:2310: checking for file" >&5
2310 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2311 echo $ac_n "(cached) $ac_c" 1>&6
2315 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2318 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2321 ac_save_MAGIC_CMD="$MAGIC_CMD"
2322 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2323 ac_dummy="/usr/bin:$PATH"
2324 for ac_dir in $ac_dummy; do
2325 test -z "$ac_dir" && ac_dir=.
2326 if test -f $ac_dir/file; then
2327 lt_cv_path_MAGIC_CMD="$ac_dir/file"
2328 if test -n "$file_magic_test_file"; then
2329 case $deplibs_check_method in
2331 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2332 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2333 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2334 egrep "$file_magic_regex" > /dev/null; then
2339 *** Warning: the command libtool uses to detect shared libraries,
2340 *** $file_magic_cmd, produces output that libtool cannot recognize.
2341 *** The result is that libtool may fail to recognize shared libraries
2342 *** as such. This will affect the creation of libtool libraries that
2343 *** depend on shared libraries, but programs linked with such libtool
2344 *** libraries will work regardless of this problem. Nevertheless, you
2345 *** may want to report the problem to your system manager and/or to
2346 *** bug-libtool@gnu.org
2356 MAGIC_CMD="$ac_save_MAGIC_CMD"
2361 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2362 if test -n "$MAGIC_CMD"; then
2363 echo "$ac_t""$MAGIC_CMD" 1>&6
2365 echo "$ac_t""no" 1>&6
2377 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2378 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2379 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2380 echo "configure:2381: checking for $ac_word" >&5
2381 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2382 echo $ac_n "(cached) $ac_c" 1>&6
2384 if test -n "$RANLIB"; then
2385 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2387 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2389 for ac_dir in $ac_dummy; do
2390 test -z "$ac_dir" && ac_dir=.
2391 if test -f $ac_dir/$ac_word; then
2392 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2399 RANLIB="$ac_cv_prog_RANLIB"
2400 if test -n "$RANLIB"; then
2401 echo "$ac_t""$RANLIB" 1>&6
2403 echo "$ac_t""no" 1>&6
2407 if test -z "$ac_cv_prog_RANLIB"; then
2408 if test -n "$ac_tool_prefix"; then
2409 # Extract the first word of "ranlib", so it can be a program name with args.
2410 set dummy ranlib; ac_word=$2
2411 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2412 echo "configure:2413: checking for $ac_word" >&5
2413 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2414 echo $ac_n "(cached) $ac_c" 1>&6
2416 if test -n "$RANLIB"; then
2417 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2419 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2421 for ac_dir in $ac_dummy; do
2422 test -z "$ac_dir" && ac_dir=.
2423 if test -f $ac_dir/$ac_word; then
2424 ac_cv_prog_RANLIB="ranlib"
2429 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2432 RANLIB="$ac_cv_prog_RANLIB"
2433 if test -n "$RANLIB"; then
2434 echo "$ac_t""$RANLIB" 1>&6
2436 echo "$ac_t""no" 1>&6
2444 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2445 set dummy ${ac_tool_prefix}strip; ac_word=$2
2446 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2447 echo "configure:2448: checking for $ac_word" >&5
2448 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2449 echo $ac_n "(cached) $ac_c" 1>&6
2451 if test -n "$STRIP"; then
2452 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2454 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2456 for ac_dir in $ac_dummy; do
2457 test -z "$ac_dir" && ac_dir=.
2458 if test -f $ac_dir/$ac_word; then
2459 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2466 STRIP="$ac_cv_prog_STRIP"
2467 if test -n "$STRIP"; then
2468 echo "$ac_t""$STRIP" 1>&6
2470 echo "$ac_t""no" 1>&6
2474 if test -z "$ac_cv_prog_STRIP"; then
2475 if test -n "$ac_tool_prefix"; then
2476 # Extract the first word of "strip", so it can be a program name with args.
2477 set dummy strip; ac_word=$2
2478 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2479 echo "configure:2480: checking for $ac_word" >&5
2480 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2481 echo $ac_n "(cached) $ac_c" 1>&6
2483 if test -n "$STRIP"; then
2484 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2486 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2488 for ac_dir in $ac_dummy; do
2489 test -z "$ac_dir" && ac_dir=.
2490 if test -f $ac_dir/$ac_word; then
2491 ac_cv_prog_STRIP="strip"
2496 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2499 STRIP="$ac_cv_prog_STRIP"
2500 if test -n "$STRIP"; then
2501 echo "$ac_t""$STRIP" 1>&6
2503 echo "$ac_t""no" 1>&6
2515 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2516 if test "${enable_libtool_lock+set}" = set; then
2517 enableval="$enable_libtool_lock"
2521 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
2523 # Some flags need to be propagated to the compiler or linker for good
2527 # Find out which ABI we are using.
2528 echo '#line 2529 "configure"' > conftest.$ac_ext
2529 if { (eval echo configure:2530: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2530 case `/usr/bin/file conftest.$ac_objext` in
2546 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2547 SAVE_CFLAGS="$CFLAGS"
2548 CFLAGS="$CFLAGS -belf"
2549 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2550 echo "configure:2551: checking whether the C compiler needs -belf" >&5
2551 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2552 echo $ac_n "(cached) $ac_c" 1>&6
2556 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2557 ac_cpp='$CPP $CPPFLAGS'
2558 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2559 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2560 cross_compiling=$ac_cv_prog_cc_cross
2562 cat > conftest.$ac_ext <<EOF
2563 #line 2564 "configure"
2564 #include "confdefs.h"
2570 if { (eval echo configure:2571: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2572 lt_cv_cc_needs_belf=yes
2574 echo "configure: failed program was:" >&5
2575 cat conftest.$ac_ext >&5
2577 lt_cv_cc_needs_belf=no
2581 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2582 ac_cpp='$CPP $CPPFLAGS'
2583 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2584 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2585 cross_compiling=$ac_cv_prog_cc_cross
2589 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2590 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2591 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2592 CFLAGS="$SAVE_CFLAGS"
2599 # Sed substitution that helps us do robust quoting. It backslashifies
2600 # metacharacters that are still active within double-quoted strings.
2601 Xsed='sed -e s/^X//'
2602 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
2604 # Same as above, but do not quote variable references.
2605 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
2607 # Sed substitution to delay expansion of an escaped shell variable in a
2608 # double_quote_subst'ed string.
2609 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2615 default_ofile=libtool
2616 can_build_shared=yes
2618 # All known linkers require a `.a' archive for static linking (except M$VC,
2619 # which needs '.lib').
2621 ltmain="$ac_aux_dir/ltmain.sh"
2622 ofile="$default_ofile"
2623 with_gnu_ld="$lt_cv_prog_gnu_ld"
2624 need_locks="$enable_libtool_lock"
2627 old_CFLAGS="$CFLAGS"
2629 # Set sane defaults for various variables
2630 test -z "$AR" && AR=ar
2631 test -z "$AR_FLAGS" && AR_FLAGS=cru
2632 test -z "$AS" && AS=as
2633 test -z "$CC" && CC=cc
2634 test -z "$DLLTOOL" && DLLTOOL=dlltool
2635 test -z "$LD" && LD=ld
2636 test -z "$LN_S" && LN_S="ln -s"
2637 test -z "$MAGIC_CMD" && MAGIC_CMD=file
2638 test -z "$NM" && NM=nm
2639 test -z "$OBJDUMP" && OBJDUMP=objdump
2640 test -z "$RANLIB" && RANLIB=:
2641 test -z "$STRIP" && STRIP=:
2642 test -z "$ac_objext" && ac_objext=o
2644 if test x"$host" != x"$build"; then
2645 ac_tool_prefix=${host_alias}-
2650 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
2653 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
2658 # AIX sometimes has problems with the GCC collect2 program. For some
2659 # reason, if we set the COLLECT_NAMES environment variable, the problems
2660 # vanish in a puff of smoke.
2661 if test "X${COLLECT_NAMES+set}" != Xset; then
2663 export COLLECT_NAMES
2668 # Determine commands to create old-style static archives.
2669 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
2670 old_postinstall_cmds='chmod 644 $oldlib'
2671 old_postuninstall_cmds=
2673 if test -n "$RANLIB"; then
2674 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
2675 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
2678 # Allow CC to be a program name with arguments.
2682 echo $ac_n "checking for objdir""... $ac_c" 1>&6
2683 echo "configure:2684: checking for objdir" >&5
2684 rm -f .libs 2>/dev/null
2685 mkdir .libs 2>/dev/null
2686 if test -d .libs; then
2689 # MS-DOS does not allow filenames that begin with a dot.
2692 rmdir .libs 2>/dev/null
2693 echo "$ac_t""$objdir" 1>&6
2696 # Check whether --with-pic or --without-pic was given.
2697 if test "${with_pic+set}" = set; then
2704 test -z "$pic_mode" && pic_mode=default
2706 # We assume here that the value for lt_cv_prog_cc_pic will not be cached
2707 # in isolation, and that seeing it set (from the cache) indicates that
2708 # the associated values are set (in the cache) correctly too.
2709 echo $ac_n "checking for $compiler option to produce PIC""... $ac_c" 1>&6
2710 echo "configure:2711: checking for $compiler option to produce PIC" >&5
2711 if eval "test \"`echo '$''{'lt_cv_prog_cc_pic'+set}'`\" = set"; then
2712 echo $ac_n "(cached) $ac_c" 1>&6
2715 lt_cv_prog_cc_shlib=
2717 lt_cv_prog_cc_static=
2718 lt_cv_prog_cc_no_builtin=
2719 lt_cv_prog_cc_can_build_shared=$can_build_shared
2721 if test "$GCC" = yes; then
2722 lt_cv_prog_cc_wl='-Wl,'
2723 lt_cv_prog_cc_static='-static'
2727 # Below there is a dirty hack to force normal static linking with -ldl
2728 # The problem is because libdl dynamically linked with both libc and
2729 # libC (AIX C++ library), which obviously doesn't included in libraries
2730 # list by gcc. This cause undefined symbols with -static flags.
2731 # This hack allows C programs to be linked with "-static -ldl", but
2732 # we not sure about C++ programs.
2733 lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
2736 # FIXME: we need at least 68020 code to build shared libraries, but
2737 # adding the `-m68020' flag to GCC prevents building anything better,
2739 lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
2741 beos* | irix5* | irix6* | osf3* | osf4* | osf5*)
2742 # PIC is the default for these OSes.
2744 darwin* | rhapsody*)
2745 # PIC is the default on this platform
2746 # Common symbols not allowed in MH_DYLIB files
2747 lt_cv_prog_cc_pic='-fno-common'
2749 cygwin* | mingw* | pw32* | os2*)
2750 # This hack is so that the source file can tell whether it is being
2751 # built for inclusion in a dll (and should export symbols for example).
2752 lt_cv_prog_cc_pic='-DDLL_EXPORT'
2755 if test -d /usr/nec; then
2756 lt_cv_prog_cc_pic=-Kconform_pic
2760 lt_cv_prog_cc_pic='-fPIC'
2764 # PORTME Check for PIC flags for the system compiler.
2766 aix3* | aix4* | aix5*)
2767 # All AIX code is PIC.
2768 if test "$host_cpu" = ia64; then
2769 # AIX 5 now supports IA64 processor
2770 lt_cv_prog_cc_static='-Bstatic'
2771 lt_cv_prog_cc_wl='-Wl,'
2773 lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
2777 hpux9* | hpux10* | hpux11*)
2778 # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
2779 lt_cv_prog_cc_wl='-Wl,'
2780 lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
2781 lt_cv_prog_cc_pic='+Z'
2785 lt_cv_prog_cc_wl='-Wl,'
2786 lt_cv_prog_cc_static='-non_shared'
2787 # PIC (with -KPIC) is the default.
2790 cygwin* | mingw* | pw32* | os2*)
2791 # This hack is so that the source file can tell whether it is being
2792 # built for inclusion in a dll (and should export symbols for example).
2793 lt_cv_prog_cc_pic='-DDLL_EXPORT'
2797 lt_cv_prog_cc_pic='-KPIC'
2798 lt_cv_prog_cc_static='-Bstatic'
2801 osf3* | osf4* | osf5*)
2802 # All OSF/1 code is PIC.
2803 lt_cv_prog_cc_wl='-Wl,'
2804 lt_cv_prog_cc_static='-non_shared'
2808 lt_cv_prog_cc_pic='-Kpic'
2809 lt_cv_prog_cc_static='-dn'
2810 lt_cv_prog_cc_shlib='-belf'
2814 lt_cv_prog_cc_pic='-KPIC'
2815 lt_cv_prog_cc_static='-Bstatic'
2816 lt_cv_prog_cc_wl='-Wl,'
2820 lt_cv_prog_cc_pic='-PIC'
2821 lt_cv_prog_cc_static='-Bstatic'
2822 lt_cv_prog_cc_wl='-Qoption ld '
2825 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2826 lt_cv_prog_cc_pic='-KPIC'
2827 lt_cv_prog_cc_static='-Bstatic'
2828 if test "x$host_vendor" = xsni; then
2829 lt_cv_prog_cc_wl='-LD'
2831 lt_cv_prog_cc_wl='-Wl,'
2836 lt_cv_prog_cc_pic='-pic'
2837 lt_cv_prog_cc_static='-Bstatic'
2841 if test -d /usr/nec ;then
2842 lt_cv_prog_cc_pic='-Kconform_pic'
2843 lt_cv_prog_cc_static='-Bstatic'
2848 lt_cv_prog_cc_can_build_shared=no
2855 if test -z "$lt_cv_prog_cc_pic"; then
2856 echo "$ac_t""none" 1>&6
2858 echo "$ac_t""$lt_cv_prog_cc_pic" 1>&6
2860 # Check to make sure the pic_flag actually works.
2861 echo $ac_n "checking if $compiler PIC flag $lt_cv_prog_cc_pic works""... $ac_c" 1>&6
2862 echo "configure:2863: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
2863 if eval "test \"`echo '$''{'lt_cv_prog_cc_pic_works'+set}'`\" = set"; then
2864 echo $ac_n "(cached) $ac_c" 1>&6
2866 save_CFLAGS="$CFLAGS"
2867 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
2868 cat > conftest.$ac_ext <<EOF
2869 #line 2870 "configure"
2870 #include "confdefs.h"
2876 if { (eval echo configure:2877: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2879 hpux9* | hpux10* | hpux11*)
2880 # On HP-UX, both CC and GCC only warn that PIC is supported... then
2881 # they create non-PIC objects. So, if there were any warnings, we
2882 # assume that PIC is not supported.
2883 if test -s conftest.err; then
2884 lt_cv_prog_cc_pic_works=no
2886 lt_cv_prog_cc_pic_works=yes
2890 lt_cv_prog_cc_pic_works=yes
2895 echo "configure: failed program was:" >&5
2896 cat conftest.$ac_ext >&5
2898 lt_cv_prog_cc_pic_works=no
2902 CFLAGS="$save_CFLAGS"
2907 if test "X$lt_cv_prog_cc_pic_works" = Xno; then
2909 lt_cv_prog_cc_can_build_shared=no
2911 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
2914 echo "$ac_t""$lt_cv_prog_cc_pic_works" 1>&6
2917 # Check for any special shared library compilation flags.
2918 if test -n "$lt_cv_prog_cc_shlib"; then
2919 echo "configure: warning: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" 1>&2
2920 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
2922 echo "configure: warning: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" 1>&2
2923 lt_cv_prog_cc_can_build_shared=no
2927 echo $ac_n "checking if $compiler static flag $lt_cv_prog_cc_static works""... $ac_c" 1>&6
2928 echo "configure:2929: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
2929 if eval "test \"`echo '$''{'lt_cv_prog_cc_static_works'+set}'`\" = set"; then
2930 echo $ac_n "(cached) $ac_c" 1>&6
2932 lt_cv_prog_cc_static_works=no
2933 save_LDFLAGS="$LDFLAGS"
2934 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
2935 cat > conftest.$ac_ext <<EOF
2936 #line 2937 "configure"
2937 #include "confdefs.h"
2943 if { (eval echo configure:2944: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2945 lt_cv_prog_cc_static_works=yes
2947 echo "configure: failed program was:" >&5
2948 cat conftest.$ac_ext >&5
2951 LDFLAGS="$save_LDFLAGS"
2956 # Belt *and* braces to stop my trousers falling down:
2957 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
2958 echo "$ac_t""$lt_cv_prog_cc_static_works" 1>&6
2960 pic_flag="$lt_cv_prog_cc_pic"
2961 special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
2962 wl="$lt_cv_prog_cc_wl"
2963 link_static_flag="$lt_cv_prog_cc_static"
2964 no_builtin_flag="$lt_cv_prog_cc_no_builtin"
2965 can_build_shared="$lt_cv_prog_cc_can_build_shared"
2968 # Check to see if options -o and -c are simultaneously supported by compiler
2969 echo $ac_n "checking if $compiler supports -c -o file.$ac_objext""... $ac_c" 1>&6
2970 echo "configure:2971: checking if $compiler supports -c -o file.$ac_objext" >&5
2971 if eval "test \"`echo '$''{'lt_cv_compiler_c_o'+set}'`\" = set"; then
2972 echo $ac_n "(cached) $ac_c" 1>&6
2975 $rm -r conftest 2>/dev/null
2978 echo "int some_variable = 0;" > conftest.$ac_ext
2980 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
2981 # that will create temporary files in the current directory regardless of
2982 # the output directory. Thus, making CWD read-only will cause this test
2983 # to fail, enabling locking or at least warning the user not to do parallel
2986 save_CFLAGS="$CFLAGS"
2987 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
2989 if { (eval echo configure:2990: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
2990 # The compiler can only warn and ignore the option if not recognized
2991 # So say no if there are warnings
2992 if test -s out/conftest.err; then
2993 lt_cv_compiler_c_o=no
2995 lt_cv_compiler_c_o=yes
2998 # Append any errors to the config.log.
2999 cat out/conftest.err 1>&5
3000 lt_cv_compiler_c_o=no
3002 CFLAGS="$save_CFLAGS"
3008 $rm -r conftest 2>/dev/null
3012 compiler_c_o=$lt_cv_compiler_c_o
3013 echo "$ac_t""$compiler_c_o" 1>&6
3015 if test x"$compiler_c_o" = x"yes"; then
3016 # Check to see if we can write to a .lo
3017 echo $ac_n "checking if $compiler supports -c -o file.lo""... $ac_c" 1>&6
3018 echo "configure:3019: checking if $compiler supports -c -o file.lo" >&5
3019 if eval "test \"`echo '$''{'lt_cv_compiler_o_lo'+set}'`\" = set"; then
3020 echo $ac_n "(cached) $ac_c" 1>&6
3023 lt_cv_compiler_o_lo=no
3024 save_CFLAGS="$CFLAGS"
3025 CFLAGS="$CFLAGS -c -o conftest.lo"
3026 cat > conftest.$ac_ext <<EOF
3027 #line 3028 "configure"
3028 #include "confdefs.h"
3031 int some_variable = 0;
3034 if { (eval echo configure:3035: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3036 # The compiler can only warn and ignore the option if not recognized
3037 # So say no if there are warnings
3038 if test -s conftest.err; then
3039 lt_cv_compiler_o_lo=no
3041 lt_cv_compiler_o_lo=yes
3045 echo "configure: failed program was:" >&5
3046 cat conftest.$ac_ext >&5
3049 CFLAGS="$save_CFLAGS"
3053 compiler_o_lo=$lt_cv_compiler_o_lo
3054 echo "$ac_t""$compiler_o_lo" 1>&6
3059 # Check to see if we can do hard links to lock some files if needed
3060 hard_links="nottested"
3061 if test "$compiler_c_o" = no && test "$need_locks" != no; then
3062 # do not overwrite the value of need_locks provided by the user
3063 echo $ac_n "checking if we can lock with hard links""... $ac_c" 1>&6
3064 echo "configure:3065: checking if we can lock with hard links" >&5
3067 ln conftest.a conftest.b 2>/dev/null && hard_links=no
3069 ln conftest.a conftest.b 2>&5 || hard_links=no
3070 ln conftest.a conftest.b 2>/dev/null && hard_links=no
3071 echo "$ac_t""$hard_links" 1>&6
3072 if test "$hard_links" = no; then
3073 echo "configure: warning: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" 1>&2
3080 if test "$GCC" = yes; then
3081 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
3082 echo $ac_n "checking if $compiler supports -fno-rtti -fno-exceptions""... $ac_c" 1>&6
3083 echo "configure:3084: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
3084 echo "int some_variable = 0;" > conftest.$ac_ext
3085 save_CFLAGS="$CFLAGS"
3086 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
3087 compiler_rtti_exceptions=no
3088 cat > conftest.$ac_ext <<EOF
3089 #line 3090 "configure"
3090 #include "confdefs.h"
3093 int some_variable = 0;
3096 if { (eval echo configure:3097: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3098 # The compiler can only warn and ignore the option if not recognized
3099 # So say no if there are warnings
3100 if test -s conftest.err; then
3101 compiler_rtti_exceptions=no
3103 compiler_rtti_exceptions=yes
3107 echo "configure: failed program was:" >&5
3108 cat conftest.$ac_ext >&5
3111 CFLAGS="$save_CFLAGS"
3112 echo "$ac_t""$compiler_rtti_exceptions" 1>&6
3114 if test "$compiler_rtti_exceptions" = "yes"; then
3115 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
3117 no_builtin_flag=' -fno-builtin'
3121 # See if the linker supports building shared libraries.
3122 echo $ac_n "checking whether the linker ($LD) supports shared libraries""... $ac_c" 1>&6
3123 echo "configure:3124: checking whether the linker ($LD) supports shared libraries" >&5
3125 allow_undefined_flag=
3127 need_lib_prefix=unknown
3128 need_version=unknown
3129 # when you set need_version to no, make sure it does not cause -set_version
3130 # flags to be left without arguments
3132 archive_expsym_cmds=
3133 old_archive_from_new_cmds=
3134 old_archive_from_expsyms_cmds=
3135 export_dynamic_flag_spec=
3136 whole_archive_flag_spec=
3137 thread_safe_flag_spec=
3138 hardcode_into_libs=no
3139 hardcode_libdir_flag_spec=
3140 hardcode_libdir_separator=
3143 hardcode_shlibpath_var=unsupported
3145 link_all_deplibs=unknown
3146 always_export_symbols=no
3147 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
3148 # include_expsyms should be a list of space-separated symbols to be *always*
3149 # included in the symbol list
3151 # exclude_expsyms can be an egrep regular expression of symbols to exclude
3152 # it will be wrapped by ` (' and `)$', so one must not match beginning or
3153 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
3154 # as well as any symbol that contains `d'.
3155 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
3156 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
3157 # platforms (ab)use it in PIC code, but their linkers get confused if
3158 # the symbol is explicitly referenced. Since portable code cannot
3159 # rely on this symbol name, it's probably fine to never include it in
3160 # preloaded symbol tables.
3161 extract_expsyms_cmds=
3164 cygwin* | mingw* | pw32* )
3165 # FIXME: the MSVC++ port hasn't been tested in a loooong time
3166 # When not using gcc, we currently assume that we are using
3167 # Microsoft Visual C++.
3168 if test "$GCC" != yes; then
3176 if test "$with_gnu_ld" = yes; then
3177 # If archive_cmds runs LD, not CC, wlarc should be empty
3180 # See if GNU ld supports shared libraries.
3182 aix3* | aix4* | aix5*)
3183 # On AIX, the GNU linker is very broken
3184 # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
3188 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
3189 *** to be unable to reliably create shared libraries on AIX.
3190 *** Therefore, libtool is disabling shared libraries support. If you
3191 *** really care for shared libraries, you may want to modify your PATH
3192 *** so that a non-GNU linker is found, and then restart.
3198 archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
3199 hardcode_libdir_flag_spec='-L$libdir'
3200 hardcode_minus_L=yes
3202 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
3203 # that the semantics of dynamic libraries on AmigaOS, at least up
3204 # to version 4, is to share data among multiple programs linked
3205 # with the same dynamic library. Since this doesn't match the
3206 # behavior of shared libraries on other platforms, we can use
3212 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
3213 allow_undefined_flag=unsupported
3214 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
3215 # support --undefined. This deserves some investigation. FIXME
3216 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3222 cygwin* | mingw* | pw32*)
3223 # hardcode_libdir_flag_spec is actually meaningless, as there is
3224 # no search path for DLLs.
3225 hardcode_libdir_flag_spec='-L$libdir'
3226 allow_undefined_flag=unsupported
3227 always_export_symbols=yes
3229 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
3230 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
3231 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
3232 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
3233 else $CC -o impgen impgen.c ; fi)~
3234 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
3236 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
3238 # cygwin and mingw dlls have different entry points and sets of symbols
3240 # FIXME: what about values for MSVC?
3241 dll_entry=__cygwin_dll_entry@12
3242 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
3246 dll_entry=_DllMainCRTStartup@12
3247 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
3251 # mingw and cygwin differ, and it's simplest to just exclude the union
3252 # of the two symbol sets.
3253 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
3255 # recent cygwin and mingw systems supply a stub DllMain which the user
3256 # can override, but on older systems we have to supply one (in ltdll.c)
3257 if test "x$lt_cv_need_dllmain" = "xyes"; then
3258 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
3259 ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < [$]0 > $output_objdir/$soname-ltdll.c~
3260 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
3266 # Extract the symbol export list from an `--export-all' def file,
3267 # then regenerate the def file from the symbol export list, so that
3268 # the compiled dll only exports the symbol export list.
3269 # Be careful not to strip the DATA tag left be newer dlltools.
3270 export_symbols_cmds="$ltdll_cmds"'
3271 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
3272 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
3274 # If the export-symbols file already is a .def file (1st line
3275 # is EXPORTS), use it as is.
3276 # If DATA tags from a recent dlltool are present, honour them!
3277 archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
3278 cp $export_symbols $output_objdir/$soname-def;
3280 echo EXPORTS > $output_objdir/$soname-def;
3282 cat $export_symbols | while read symbol; do
3285 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
3286 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
3288 _lt_hint=`expr 1 + \$_lt_hint`;
3292 $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
3293 $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
3294 $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
3295 $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~
3296 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
3300 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
3301 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
3304 archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3305 archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
3310 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
3314 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
3315 *** create shared libraries on Solaris systems. Therefore, libtool
3316 *** is disabling shared libraries support. We urge you to upgrade GNU
3317 *** binutils to release 2.9.1 or newer. Another option is to modify
3318 *** your PATH or compiler configuration so that the native linker is
3319 *** used, and then restart.
3322 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
3323 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3324 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
3331 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
3334 hardcode_shlibpath_var=no
3338 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
3339 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3340 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
3347 if test "$ld_shlibs" = yes; then
3348 runpath_var=LD_RUN_PATH
3349 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
3350 export_dynamic_flag_spec='${wl}--export-dynamic'
3352 cygwin* | mingw* | pw32*)
3353 # dlltool doesn't understand --whole-archive et. al.
3354 whole_archive_flag_spec=
3357 # ancient GNU ld didn't support --whole-archive et. al.
3358 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
3359 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
3361 whole_archive_flag_spec=
3367 # PORTME fill in a description of your system's linker (not GNU ld)
3370 allow_undefined_flag=unsupported
3371 always_export_symbols=yes
3372 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
3373 # Note: this linker hardcodes the directories in LIBPATH if there
3374 # are no directories specified by -L.
3375 hardcode_minus_L=yes
3376 if test "$GCC" = yes && test -z "$link_static_flag"; then
3377 # Neither direct hardcoding nor static linking is supported with a
3379 hardcode_direct=unsupported
3384 # When large executables or shared objects are built, AIX ld can
3385 # have problems creating the table of contents. If linking a library
3386 # or program results in "error TOC overflow" add -mminimal-toc to
3387 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
3388 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
3391 hardcode_libdir_separator=':'
3392 if test "$GCC" = yes; then
3393 collect2name=`${CC} -print-prog-name=collect2`
3394 if test -f "$collect2name" && \
3395 strings "$collect2name" | grep resolve_lib_name >/dev/null
3397 # We have reworked collect2
3400 # We have old collect2
3401 hardcode_direct=unsupported
3402 # It fails to find uninstalled libraries when the uninstalled
3403 # path is not listed in the libpath. Setting hardcode_minus_L
3404 # to unsupported forces relinking
3405 hardcode_minus_L=yes
3406 hardcode_libdir_flag_spec='-L$libdir'
3407 hardcode_libdir_separator=
3409 shared_flag='-shared'
3411 if test "$host_cpu" = ia64; then
3414 shared_flag='${wl}-bM:SRE'
3419 if test "$host_cpu" = ia64; then
3420 # On IA64, the linker does run time linking by default, so we don't
3421 # have to do anything special.
3422 aix_use_runtimelinking=no
3423 exp_sym_flag='-Bexport'
3426 # Test if we are trying to use run time linking, or normal AIX style linking.
3427 # If -brtl is somewhere in LDFLAGS, we need to do run time linking.
3428 aix_use_runtimelinking=no
3429 for ld_flag in $LDFLAGS; do
3430 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl" ); then
3431 aix_use_runtimelinking=yes
3435 exp_sym_flag='-bexport'
3436 no_entry_flag='-bnoentry'
3438 # It seems that -bexpall can do strange things, so it is better to
3439 # generate a list of symbols to export.
3440 always_export_symbols=yes
3441 if test "$aix_use_runtimelinking" = yes; then
3442 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
3443 allow_undefined_flag=' -Wl,-G'
3444 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
3446 if test "$host_cpu" = ia64; then
3447 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
3448 allow_undefined_flag="-znodefs"
3449 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
3451 hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
3452 # Warning - without using the other run time loading flags, -berok will
3453 # link without error, but may produce a broken library.
3454 allow_undefined_flag='${wl}-berok'
3455 # This is a bit strange, but is similar to how AIX traditionally builds
3456 # it's shared libraries.
3457 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $objdir/$libname$release.a $objdir/$soname'
3463 archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
3464 hardcode_libdir_flag_spec='-L$libdir'
3465 hardcode_minus_L=yes
3466 # see comment about different semantics on the GNU ld section
3470 cygwin* | mingw* | pw32*)
3471 # When not using gcc, we currently assume that we are using
3472 # Microsoft Visual C++.
3473 # hardcode_libdir_flag_spec is actually meaningless, as there is
3474 # no search path for DLLs.
3475 hardcode_libdir_flag_spec=' '
3476 allow_undefined_flag=unsupported
3477 # Tell ltmain to make .lib files, not .a files.
3479 # FIXME: Setting linknames here is a bad hack.
3480 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
3481 # The linker will automatically build a .lib file if we build a DLL.
3482 old_archive_from_new_cmds='true'
3483 # FIXME: Should let the user specify the lib program.
3484 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
3485 fix_srcfile_path='`cygpath -w "$srcfile"`'
3488 darwin* | rhapsody*)
3489 allow_undefined_flag='-undefined suppress'
3490 # FIXME: Relying on posixy $() will cause problems for
3491 # cross-compilation, but unfortunately the echo tests do not
3492 # yet detect zsh echo's removal of \ escapes.
3493 archive_cmds='$CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linkopts -install_name $rpath/$soname $(test -n "$verstring" -a x$verstring != x0.0 && echo $verstring)'
3494 # We need to add '_' to the symbols in $export_symbols first
3495 #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
3497 hardcode_shlibpath_var=no
3498 whole_archive_flag_spec='-all_load $convenience'
3505 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
3506 # support. Future versions do this automatically, but an explicit c++rt0.o
3507 # does not break anything, and helps significantly (at the cost of a little
3510 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
3511 hardcode_libdir_flag_spec='-R$libdir'
3513 hardcode_shlibpath_var=no
3516 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
3518 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
3520 hardcode_minus_L=yes
3521 hardcode_shlibpath_var=no
3524 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
3526 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
3527 hardcode_libdir_flag_spec='-R$libdir'
3529 hardcode_shlibpath_var=no
3532 hpux9* | hpux10* | hpux11*)
3534 hpux9*) archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' ;;
3535 *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
3537 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
3538 hardcode_libdir_separator=:
3540 hardcode_minus_L=yes # Not in the search PATH, but as the default
3541 # location of the library.
3542 export_dynamic_flag_spec='${wl}-E'
3546 if test "$GCC" = yes; then
3547 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
3549 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
3551 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
3552 hardcode_libdir_separator=:
3553 link_all_deplibs=yes
3557 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
3558 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
3560 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
3562 hardcode_libdir_flag_spec='-R$libdir'
3564 hardcode_shlibpath_var=no
3568 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linkopts'
3570 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
3571 hardcode_libdir_separator=:
3572 hardcode_shlibpath_var=no
3576 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
3577 hardcode_libdir_flag_spec='-R$libdir'
3579 hardcode_shlibpath_var=no
3583 hardcode_libdir_flag_spec='-L$libdir'
3584 hardcode_minus_L=yes
3585 allow_undefined_flag=unsupported
3586 archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
3587 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
3591 if test "$GCC" = yes; then
3592 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
3593 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
3595 allow_undefined_flag=' -expect_unresolved \*'
3596 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
3598 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
3599 hardcode_libdir_separator=:
3602 osf4* | osf5*) # as osf3* with the addition of -msym flag
3603 if test "$GCC" = yes; then
3604 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
3605 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
3606 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
3608 allow_undefined_flag=' -expect_unresolved \*'
3609 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
3610 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
3611 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
3613 #Both c and cxx compiler support -rpath directly
3614 hardcode_libdir_flag_spec='-rpath $libdir'
3616 hardcode_libdir_separator=:
3620 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3621 hardcode_shlibpath_var=no
3622 runpath_var=LD_RUN_PATH
3623 hardcode_runpath_var=yes
3627 no_undefined_flag=' -z defs'
3628 # $CC -shared without GNU ld will not create a library from C++
3629 # object files and a static libstdc++, better avoid it by now
3630 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
3631 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
3632 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
3633 hardcode_libdir_flag_spec='-R$libdir'
3634 hardcode_shlibpath_var=no
3636 solaris2.[0-5] | solaris2.[0-5].*) ;;
3637 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
3638 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
3640 link_all_deplibs=yes
3644 if test "x$host_vendor" = xsequent; then
3645 # Use $CC to link under sequent, because it throws in some extra .o
3646 # files that make .init and .fini sections work.
3647 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
3649 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
3651 hardcode_libdir_flag_spec='-L$libdir'
3653 hardcode_minus_L=yes
3654 hardcode_shlibpath_var=no
3658 if test "x$host_vendor" = xsno; then
3659 archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linkopts'
3660 hardcode_direct=yes # is this really true???
3662 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3663 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
3665 runpath_var='LD_RUN_PATH'
3666 hardcode_shlibpath_var=no
3670 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3671 hardcode_shlibpath_var=no
3672 export_dynamic_flag_spec='-Bexport'
3676 no_undefined_flag=' -z text'
3677 # $CC -shared without GNU ld will not create a library from C++
3678 # object files and a static libstdc++, better avoid it by now
3679 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
3680 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
3681 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
3682 hardcode_libdir_flag_spec=
3683 hardcode_shlibpath_var=no
3684 runpath_var='LD_RUN_PATH'
3688 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3689 hardcode_libdir_flag_spec='-L$libdir'
3690 hardcode_shlibpath_var=no
3694 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3695 hardcode_libdir_flag_spec='-L$libdir'
3696 hardcode_shlibpath_var=no
3700 if test -d /usr/nec; then
3701 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3702 hardcode_shlibpath_var=no
3703 runpath_var=LD_RUN_PATH
3704 hardcode_runpath_var=yes
3710 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
3713 hardcode_shlibpath_var=no
3714 hardcode_runpath_var=yes
3715 runpath_var=LD_RUN_PATH
3718 sysv5uw7* | unixware7*)
3719 no_undefined_flag='${wl}-z ${wl}text'
3720 if test "$GCC" = yes; then
3721 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
3723 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
3725 runpath_var='LD_RUN_PATH'
3726 hardcode_shlibpath_var=no
3734 echo "$ac_t""$ld_shlibs" 1>&6
3735 test "$ld_shlibs" = no && can_build_shared=no
3737 # Check hardcoding attributes.
3738 echo $ac_n "checking how to hardcode library paths into programs""... $ac_c" 1>&6
3739 echo "configure:3740: checking how to hardcode library paths into programs" >&5
3741 if test -n "$hardcode_libdir_flag_spec" || \
3742 test -n "$runpath_var"; then
3744 # We can hardcode non-existant directories.
3745 if test "$hardcode_direct" != no &&
3746 # If the only mechanism to avoid hardcoding is shlibpath_var, we
3747 # have to relink, otherwise we might link with an installed library
3748 # when we should be linking with a yet-to-be-installed one
3749 ## test "$hardcode_shlibpath_var" != no &&
3750 test "$hardcode_minus_L" != no; then
3751 # Linking always hardcodes the temporary library directory.
3752 hardcode_action=relink
3754 # We can link without hardcoding, and we can hardcode nonexisting dirs.
3755 hardcode_action=immediate
3758 # We cannot hardcode anything, or else we can only hardcode existing
3760 hardcode_action=unsupported
3762 echo "$ac_t""$hardcode_action" 1>&6
3766 echo $ac_n "checking whether stripping libraries is possible""... $ac_c" 1>&6
3767 echo "configure:3768: checking whether stripping libraries is possible" >&5
3768 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
3769 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
3770 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
3771 echo "$ac_t""yes" 1>&6
3773 echo "$ac_t""no" 1>&6
3776 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3777 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3779 # PORTME Fill in your ld.so characteristics
3780 echo $ac_n "checking dynamic linker characteristics""... $ac_c" 1>&6
3781 echo "configure:3782: checking dynamic linker characteristics" >&5
3783 libname_spec='lib$name'
3790 shlibpath_overrides_runpath=unknown
3792 dynamic_linker="$host_os ld.so"
3793 sys_lib_dlsearch_path_spec="/lib /usr/lib"
3794 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
3799 library_names_spec='${libname}${release}.so$versuffix $libname.a'
3800 shlibpath_var=LIBPATH
3802 # AIX has no versioning support, so we append a major version to the name.
3803 soname_spec='${libname}${release}.so$major'
3808 if test "$host_cpu" = ia64; then
3809 # AIX 5 supports IA64
3810 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
3811 shlibpath_var=LD_LIBRARY_PATH
3813 # With GCC up to 2.95.x, collect2 would create an import file
3814 # for dependence libraries. The import file would start with
3815 # the line `#! .'. This would cause the generated library to
3816 # depend on `.', always an invalid library. This was fixed in
3817 # development snapshots of GCC prior to 3.0.
3819 aix4 | aix4.[01] | aix4.[01].*)
3820 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
3822 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
3829 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
3830 # soname into executable. Probably we can add versioning support to
3831 # collect2, so additional links can be useful in future.
3832 if test "$aix_use_runtimelinking" = yes; then
3833 # If using run time linking (on AIX 4.2 or later) use lib<name>.so instead of
3834 # lib<name>.a to let people know that these are not typical AIX shared libraries.
3835 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
3837 # We preserve .a as extension for shared libraries through AIX4.2
3838 # and later when we are not doing run time linking.
3839 library_names_spec='${libname}${release}.a $libname.a'
3840 soname_spec='${libname}${release}.so$major'
3842 shlibpath_var=LIBPATH
3843 deplibs_check_method=pass_all
3848 library_names_spec='$libname.ixlibrary $libname.a'
3849 # Create ${libname}_ixlibrary.a entries in /sys/libs.
3850 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done'
3854 library_names_spec='${libname}.so'
3855 dynamic_linker="$host_os ld.so"
3856 shlibpath_var=LIBRARY_PATH
3862 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
3863 soname_spec='${libname}${release}.so$major'
3864 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
3865 shlibpath_var=LD_LIBRARY_PATH
3866 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
3867 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
3868 export_dynamic_flag_spec=-rdynamic
3869 # the default ld.so.conf also contains /usr/contrib/lib and
3870 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
3871 # libtool to hard-code these into programs
3874 cygwin* | mingw* | pw32*)
3875 version_type=windows
3878 case $GCC,$host_os in
3880 library_names_spec='$libname.dll.a'
3881 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
3882 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
3883 dldir=$destdir/`dirname \$dlpath`~
3884 test -d \$dldir || mkdir -p \$dldir~
3885 $install_prog .libs/$dlname \$dldir/$dlname'
3886 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
3887 dlpath=$dir/\$dldll~
3891 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
3892 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"`
3895 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
3898 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
3901 dynamic_linker='Win32 ld.exe'
3902 # FIXME: first we should search . and the directory the executable is in
3906 darwin* | rhapsody*)
3907 dynamic_linker="$host_os dyld"
3911 # FIXME: Relying on posixy $() will cause problems for
3912 # cross-compilation, but unfortunately the echo tests do not
3913 # yet detect zsh echo's removal of \ escapes.
3914 library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
3915 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
3916 shlibpath_overrides_runpath=yes
3917 shlibpath_var=DYLD_LIBRARY_PATH
3925 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
3926 version_type=freebsd-$objformat
3927 case $version_type in
3929 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
3934 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
3938 shlibpath_var=LD_LIBRARY_PATH
3941 shlibpath_overrides_runpath=yes
3944 shlibpath_overrides_runpath=no
3945 hardcode_into_libs=yes
3954 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
3955 soname_spec='${libname}${release}.so$major'
3956 shlibpath_var=LD_LIBRARY_PATH
3957 hardcode_into_libs=yes
3960 hpux9* | hpux10* | hpux11*)
3961 # Give a soname corresponding to the major version so that dld.sl refuses to
3962 # link against other versions.
3963 dynamic_linker="$host_os dld.sl"
3967 shlibpath_var=SHLIB_PATH
3968 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
3969 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
3970 soname_spec='${libname}${release}.sl$major'
3971 # HP-UX runs *really* slowly unless shared libraries are mode 555.
3972 postinstall_cmds='chmod 555 $lib'
3979 soname_spec='${libname}${release}.so$major'
3980 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
3986 case $LD in # libtool.m4 will add one of these switches to LD
3987 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
3988 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
3989 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
3990 *) libsuff= shlibsuff= libmagic=never-match;;
3994 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
3995 shlibpath_overrides_runpath=no
3996 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
3997 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
4000 # No shared lib support for Linux oldld, aout, or coff.
4001 linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
4005 # This must be Linux ELF.
4010 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4011 soname_spec='${libname}${release}.so$major'
4012 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
4013 shlibpath_var=LD_LIBRARY_PATH
4014 shlibpath_overrides_runpath=no
4015 # This implies no fast_install, which is unacceptable.
4016 # Some rework will be needed to allow for fast_install
4017 # before this can be enabled.
4018 hardcode_into_libs=yes
4020 # We used to test for /lib/ld.so.1 and disable shared libraries on
4021 # powerpc, because MkLinux only supported shared libraries with the
4022 # GNU dynamic linker. Since this was broken with cross compilers,
4023 # most powerpc-linux boxes support dynamic linking these days and
4024 # people can always --disable-shared, the test was removed, and we
4025 # assume the GNU/Linux dynamic linker is in use.
4026 dynamic_linker='GNU/Linux ld.so'
4033 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4034 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
4035 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
4036 dynamic_linker='NetBSD (a.out) ld.so'
4038 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
4039 soname_spec='${libname}${release}.so$major'
4040 dynamic_linker='NetBSD ld.elf_so'
4042 shlibpath_var=LD_LIBRARY_PATH
4043 shlibpath_overrides_runpath=yes
4044 hardcode_into_libs=yes
4049 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4050 shlibpath_var=LD_LIBRARY_PATH
4051 shlibpath_overrides_runpath=yes
4056 if test "$with_gnu_ld" = yes; then
4060 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
4061 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
4062 shlibpath_var=LD_LIBRARY_PATH
4066 libname_spec='$name'
4068 library_names_spec='$libname.dll $libname.a'
4069 dynamic_linker='OS/2 ld.exe'
4070 shlibpath_var=LIBPATH
4073 osf3* | osf4* | osf5*)
4076 soname_spec='${libname}${release}.so'
4077 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
4078 shlibpath_var=LD_LIBRARY_PATH
4079 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
4080 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
4085 soname_spec='${libname}${release}.so$major'
4086 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4087 shlibpath_var=LD_LIBRARY_PATH
4094 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4095 soname_spec='${libname}${release}.so$major'
4096 shlibpath_var=LD_LIBRARY_PATH
4097 shlibpath_overrides_runpath=yes
4098 hardcode_into_libs=yes
4099 # ldd complains unless libraries are executable
4100 postinstall_cmds='chmod +x $lib'
4105 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
4106 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
4107 shlibpath_var=LD_LIBRARY_PATH
4108 shlibpath_overrides_runpath=yes
4109 if test "$with_gnu_ld" = yes; then
4115 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4117 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4118 soname_spec='${libname}${release}.so$major'
4119 shlibpath_var=LD_LIBRARY_PATH
4120 case $host_vendor in
4122 shlibpath_overrides_runpath=no
4127 shlibpath_overrides_runpath=no
4128 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
4135 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4136 soname_spec='${libname}${release}.so$major'
4137 shlibpath_var=LD_LIBRARY_PATH
4144 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4145 soname_spec='${libname}${release}.so$major'
4146 shlibpath_var=LD_LIBRARY_PATH
4150 if test -d /usr/nec ;then
4152 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
4153 soname_spec='$libname.so.$major'
4154 shlibpath_var=LD_LIBRARY_PATH
4162 echo "$ac_t""$dynamic_linker" 1>&6
4163 test "$dynamic_linker" = no && can_build_shared=no
4165 # Report the final consequences.
4166 echo $ac_n "checking if libtool supports shared libraries""... $ac_c" 1>&6
4167 echo "configure:4168: checking if libtool supports shared libraries" >&5
4168 echo "$ac_t""$can_build_shared" 1>&6
4170 if test "$hardcode_action" = relink; then
4171 # Fast installation is not supported
4172 enable_fast_install=no
4173 elif test "$shlibpath_overrides_runpath" = yes ||
4174 test "$enable_shared" = no; then
4175 # Fast installation is not necessary
4176 enable_fast_install=needless
4179 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
4180 if test "$GCC" = yes; then
4181 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
4184 if test "x$enable_dlopen" != xyes; then
4185 enable_dlopen=unknown
4186 enable_dlopen_self=unknown
4187 enable_dlopen_self_static=unknown
4194 lt_cv_dlopen="load_add_on"
4196 lt_cv_dlopen_self=yes
4199 cygwin* | mingw* | pw32*)
4200 lt_cv_dlopen="LoadLibrary"
4205 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
4206 echo "configure:4207: checking for dlopen in -ldl" >&5
4207 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
4208 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4209 echo $ac_n "(cached) $ac_c" 1>&6
4211 ac_save_LIBS="$LIBS"
4213 cat > conftest.$ac_ext <<EOF
4214 #line 4215 "configure"
4215 #include "confdefs.h"
4216 /* Override any gcc2 internal prototype to avoid an error. */
4217 /* We use char because int might match the return type of a gcc2
4218 builtin and then its argument prototype would still apply. */
4225 if { (eval echo configure:4226: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4227 eval "ac_cv_lib_$ac_lib_var=yes"
4229 echo "configure: failed program was:" >&5
4230 cat conftest.$ac_ext >&5
4232 eval "ac_cv_lib_$ac_lib_var=no"
4235 LIBS="$ac_save_LIBS"
4238 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4239 echo "$ac_t""yes" 1>&6
4240 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
4242 echo "$ac_t""no" 1>&6
4243 echo $ac_n "checking for dlopen""... $ac_c" 1>&6
4244 echo "configure:4245: checking for dlopen" >&5
4245 if eval "test \"`echo '$''{'ac_cv_func_dlopen'+set}'`\" = set"; then
4246 echo $ac_n "(cached) $ac_c" 1>&6
4248 cat > conftest.$ac_ext <<EOF
4249 #line 4250 "configure"
4250 #include "confdefs.h"
4251 /* System header to define __stub macros and hopefully few prototypes,
4252 which can conflict with char dlopen(); below. */
4254 /* Override any gcc2 internal prototype to avoid an error. */
4255 /* We use char because int might match the return type of a gcc2
4256 builtin and then its argument prototype would still apply. */
4261 /* The GNU C library defines this for functions which it implements
4262 to always fail with ENOSYS. Some functions are actually named
4263 something starting with __ and the normal name is an alias. */
4264 #if defined (__stub_dlopen) || defined (__stub___dlopen)
4272 if { (eval echo configure:4273: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4274 eval "ac_cv_func_dlopen=yes"
4276 echo "configure: failed program was:" >&5
4277 cat conftest.$ac_ext >&5
4279 eval "ac_cv_func_dlopen=no"
4284 if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then
4285 echo "$ac_t""yes" 1>&6
4286 lt_cv_dlopen="dlopen"
4288 echo "$ac_t""no" 1>&6
4289 echo $ac_n "checking for shl_load""... $ac_c" 1>&6
4290 echo "configure:4291: checking for shl_load" >&5
4291 if eval "test \"`echo '$''{'ac_cv_func_shl_load'+set}'`\" = set"; then
4292 echo $ac_n "(cached) $ac_c" 1>&6
4294 cat > conftest.$ac_ext <<EOF
4295 #line 4296 "configure"
4296 #include "confdefs.h"
4297 /* System header to define __stub macros and hopefully few prototypes,
4298 which can conflict with char shl_load(); below. */
4300 /* Override any gcc2 internal prototype to avoid an error. */
4301 /* We use char because int might match the return type of a gcc2
4302 builtin and then its argument prototype would still apply. */
4307 /* The GNU C library defines this for functions which it implements
4308 to always fail with ENOSYS. Some functions are actually named
4309 something starting with __ and the normal name is an alias. */
4310 #if defined (__stub_shl_load) || defined (__stub___shl_load)
4318 if { (eval echo configure:4319: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4320 eval "ac_cv_func_shl_load=yes"
4322 echo "configure: failed program was:" >&5
4323 cat conftest.$ac_ext >&5
4325 eval "ac_cv_func_shl_load=no"
4330 if eval "test \"`echo '$ac_cv_func_'shl_load`\" = yes"; then
4331 echo "$ac_t""yes" 1>&6
4332 lt_cv_dlopen="shl_load"
4334 echo "$ac_t""no" 1>&6
4335 echo $ac_n "checking for dlopen in -lsvld""... $ac_c" 1>&6
4336 echo "configure:4337: checking for dlopen in -lsvld" >&5
4337 ac_lib_var=`echo svld'_'dlopen | sed 'y%./+-%__p_%'`
4338 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4339 echo $ac_n "(cached) $ac_c" 1>&6
4341 ac_save_LIBS="$LIBS"
4343 cat > conftest.$ac_ext <<EOF
4344 #line 4345 "configure"
4345 #include "confdefs.h"
4346 /* Override any gcc2 internal prototype to avoid an error. */
4347 /* We use char because int might match the return type of a gcc2
4348 builtin and then its argument prototype would still apply. */
4355 if { (eval echo configure:4356: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4357 eval "ac_cv_lib_$ac_lib_var=yes"
4359 echo "configure: failed program was:" >&5
4360 cat conftest.$ac_ext >&5
4362 eval "ac_cv_lib_$ac_lib_var=no"
4365 LIBS="$ac_save_LIBS"
4368 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4369 echo "$ac_t""yes" 1>&6
4370 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
4372 echo "$ac_t""no" 1>&6
4373 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
4374 echo "configure:4375: checking for shl_load in -ldld" >&5
4375 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
4376 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4377 echo $ac_n "(cached) $ac_c" 1>&6
4379 ac_save_LIBS="$LIBS"
4381 cat > conftest.$ac_ext <<EOF
4382 #line 4383 "configure"
4383 #include "confdefs.h"
4384 /* Override any gcc2 internal prototype to avoid an error. */
4385 /* We use char because int might match the return type of a gcc2
4386 builtin and then its argument prototype would still apply. */
4393 if { (eval echo configure:4394: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4395 eval "ac_cv_lib_$ac_lib_var=yes"
4397 echo "configure: failed program was:" >&5
4398 cat conftest.$ac_ext >&5
4400 eval "ac_cv_lib_$ac_lib_var=no"
4403 LIBS="$ac_save_LIBS"
4406 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4407 echo "$ac_t""yes" 1>&6
4408 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
4410 echo "$ac_t""no" 1>&6
4428 if test "x$lt_cv_dlopen" != xno; then
4434 case $lt_cv_dlopen in
4436 save_CPPFLAGS="$CPPFLAGS"
4437 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
4439 save_LDFLAGS="$LDFLAGS"
4440 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
4443 LIBS="$lt_cv_dlopen_libs $LIBS"
4445 echo $ac_n "checking whether a program can dlopen itself""... $ac_c" 1>&6
4446 echo "configure:4447: checking whether a program can dlopen itself" >&5
4447 if eval "test \"`echo '$''{'lt_cv_dlopen_self'+set}'`\" = set"; then
4448 echo $ac_n "(cached) $ac_c" 1>&6
4450 if test "$cross_compiling" = yes; then :
4451 lt_cv_dlopen_self=cross
4453 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
4454 lt_status=$lt_dlunknown
4455 cat > conftest.$ac_ext <<EOF
4456 #line 4457 "configure"
4457 #include "confdefs.h"
4466 # define LT_DLGLOBAL RTLD_GLOBAL
4469 # define LT_DLGLOBAL DL_GLOBAL
4471 # define LT_DLGLOBAL 0
4475 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
4476 find out it does not work in some platform. */
4477 #ifndef LT_DLLAZY_OR_NOW
4479 # define LT_DLLAZY_OR_NOW RTLD_LAZY
4482 # define LT_DLLAZY_OR_NOW DL_LAZY
4485 # define LT_DLLAZY_OR_NOW RTLD_NOW
4488 # define LT_DLLAZY_OR_NOW DL_NOW
4490 # define LT_DLLAZY_OR_NOW 0
4498 extern "C" void exit (int);
4501 void fnord() { int i=42;}
4504 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
4505 int status = $lt_dlunknown;
4509 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
4510 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
4511 /* dlclose (self); */
4517 if { (eval echo configure:4518: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then
4518 (./conftest; exit; ) 2>/dev/null
4521 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
4522 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
4523 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
4526 # compilation failed
4527 lt_cv_dlopen_self=no
4535 echo "$ac_t""$lt_cv_dlopen_self" 1>&6
4537 if test "x$lt_cv_dlopen_self" = xyes; then
4538 LDFLAGS="$LDFLAGS $link_static_flag"
4539 echo $ac_n "checking whether a statically linked program can dlopen itself""... $ac_c" 1>&6
4540 echo "configure:4541: checking whether a statically linked program can dlopen itself" >&5
4541 if eval "test \"`echo '$''{'lt_cv_dlopen_self_static'+set}'`\" = set"; then
4542 echo $ac_n "(cached) $ac_c" 1>&6
4544 if test "$cross_compiling" = yes; then :
4545 lt_cv_dlopen_self_static=cross
4547 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
4548 lt_status=$lt_dlunknown
4549 cat > conftest.$ac_ext <<EOF
4550 #line 4551 "configure"
4551 #include "confdefs.h"
4560 # define LT_DLGLOBAL RTLD_GLOBAL
4563 # define LT_DLGLOBAL DL_GLOBAL
4565 # define LT_DLGLOBAL 0
4569 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
4570 find out it does not work in some platform. */
4571 #ifndef LT_DLLAZY_OR_NOW
4573 # define LT_DLLAZY_OR_NOW RTLD_LAZY
4576 # define LT_DLLAZY_OR_NOW DL_LAZY
4579 # define LT_DLLAZY_OR_NOW RTLD_NOW
4582 # define LT_DLLAZY_OR_NOW DL_NOW
4584 # define LT_DLLAZY_OR_NOW 0
4592 extern "C" void exit (int);
4595 void fnord() { int i=42;}
4598 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
4599 int status = $lt_dlunknown;
4603 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
4604 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
4605 /* dlclose (self); */
4611 if { (eval echo configure:4612: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then
4612 (./conftest; exit; ) 2>/dev/null
4615 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
4616 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
4617 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
4620 # compilation failed
4621 lt_cv_dlopen_self_static=no
4629 echo "$ac_t""$lt_cv_dlopen_self_static" 1>&6
4632 CPPFLAGS="$save_CPPFLAGS"
4633 LDFLAGS="$save_LDFLAGS"
4638 case $lt_cv_dlopen_self in
4639 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
4640 *) enable_dlopen_self=unknown ;;
4643 case $lt_cv_dlopen_self_static in
4644 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
4645 *) enable_dlopen_self_static=unknown ;;
4650 if test "$enable_shared" = yes && test "$GCC" = yes; then
4651 case $archive_cmds in
4653 # FIXME: we may have to deal with multi-command sequences.
4656 # Test whether the compiler implicitly links with -lc since on some
4657 # systems, -lgcc has to come before -lc. If gcc already passes -lc
4658 # to ld, don't add -lc before -lgcc.
4659 echo $ac_n "checking whether -lc should be explicitly linked in""... $ac_c" 1>&6
4660 echo "configure:4661: checking whether -lc should be explicitly linked in" >&5
4661 if eval "test \"`echo '$''{'lt_cv_archive_cmds_need_lc'+set}'`\" = set"; then
4662 echo $ac_n "(cached) $ac_c" 1>&6
4665 echo 'static int dummy;' > conftest.$ac_ext
4667 if { (eval echo configure:4668: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4670 libobjs=conftest.$ac_objext
4672 wl=$lt_cv_prog_cc_wl
4678 save_allow_undefined_flag=$allow_undefined_flag
4679 allow_undefined_flag=
4680 if { (eval echo configure:4681: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\") 1>&5; (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5; }
4682 lt_cv_archive_cmds_need_lc=no
4684 lt_cv_archive_cmds_need_lc=yes
4686 allow_undefined_flag=$save_allow_undefined_flag
4688 cat conftest.err 1>&5
4692 echo "$ac_t""$lt_cv_archive_cmds_need_lc" 1>&6
4696 need_lc=${lt_cv_archive_cmds_need_lc-yes}
4698 # The second clause should only fire when bootstrapping the
4699 # libtool distribution, otherwise you forgot to ship ltmain.sh
4700 # with your package, and you will get complaints that there are
4701 # no rules to generate ltmain.sh.
4702 if test -f "$ltmain"; then
4705 # If there is no Makefile yet, we rely on a make rule to execute
4706 # `config.status --recheck' to rerun these tests and create the
4707 # libtool script then.
4708 test -f Makefile && make "$ltmain"
4711 if test -f "$ltmain"; then
4712 trap "$rm \"${ofile}T\"; exit 1" 1 2 15
4715 echo creating $ofile
4717 # Now quote all the things that may contain metacharacters while being
4718 # careful not to overquote the AC_SUBSTed values. We take copies of the
4719 # variables and quote the copies for generation of the libtool script.
4720 for var in echo old_CC old_CFLAGS \
4721 AR AR_FLAGS CC LD LN_S NM SHELL \
4722 reload_flag reload_cmds wl \
4723 pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
4724 thread_safe_flag_spec whole_archive_flag_spec libname_spec \
4725 library_names_spec soname_spec \
4726 RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
4727 old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
4728 postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
4729 old_striplib striplib file_magic_cmd export_symbols_cmds \
4730 deplibs_check_method allow_undefined_flag no_undefined_flag \
4731 finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
4732 hardcode_libdir_flag_spec hardcode_libdir_separator \
4733 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
4734 compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
4737 reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
4738 old_postinstall_cmds | old_postuninstall_cmds | \
4739 export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
4740 extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
4741 postinstall_cmds | postuninstall_cmds | \
4742 finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
4743 # Double-quote double-evaled strings.
4744 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
4747 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
4752 cat <<__EOF__ > "${ofile}T"
4755 # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
4756 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
4757 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
4759 # Copyright (C) 1996-2000 Free Software Foundation, Inc.
4760 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
4762 # This program is free software; you can redistribute it and/or modify
4763 # it under the terms of the GNU General Public License as published by
4764 # the Free Software Foundation; either version 2 of the License, or
4765 # (at your option) any later version.
4767 # This program is distributed in the hope that it will be useful, but
4768 # WITHOUT ANY WARRANTY; without even the implied warranty of
4769 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
4770 # General Public License for more details.
4772 # You should have received a copy of the GNU General Public License
4773 # along with this program; if not, write to the Free Software
4774 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
4776 # As a special exception to the GNU General Public License, if you
4777 # distribute this file as part of a program that contains a
4778 # configuration script generated by Autoconf, you may include it under
4779 # the same distribution terms that you use for the rest of that program.
4781 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
4782 Xsed="sed -e s/^X//"
4784 # The HP-UX ksh and POSIX shell print the target directory to stdout
4786 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
4788 # ### BEGIN LIBTOOL CONFIG
4790 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4792 # Shell to use when invoking shell scripts.
4795 # Whether or not to build shared libraries.
4796 build_libtool_libs=$enable_shared
4798 # Whether or not to add -lc for building shared libraries.
4799 build_libtool_need_lc=$need_lc
4801 # Whether or not to build static libraries.
4802 build_old_libs=$enable_static
4804 # Whether or not to optimize for fast installation.
4805 fast_install=$enable_fast_install
4808 host_alias=$host_alias
4811 # An echo program that does not interpret backslashes.
4816 AR_FLAGS=$lt_AR_FLAGS
4818 # The default C compiler.
4821 # Is the compiler the GNU C compiler?
4824 # The linker used to build libraries.
4827 # Whether we need hard or soft links.
4830 # A BSD-compatible nm program.
4833 # A symbol stripping program
4836 # Used to examine libraries when file_magic_cmd begins "file"
4837 MAGIC_CMD=$MAGIC_CMD
4839 # Used on cygwin: DLL creation program.
4842 # Used on cygwin: object dumper.
4845 # Used on cygwin: assembler.
4848 # The name of the directory that contains temporary libtool files.
4851 # How to create reloadable object files.
4852 reload_flag=$lt_reload_flag
4853 reload_cmds=$lt_reload_cmds
4855 # How to pass a linker flag through the compiler.
4858 # Object file suffix (normally "o").
4861 # Old archive suffix (normally "a").
4864 # Executable file suffix (normally "").
4867 # Additional compiler flags for building library objects.
4868 pic_flag=$lt_pic_flag
4871 # Does compiler simultaneously support -c and -o options?
4872 compiler_c_o=$lt_compiler_c_o
4874 # Can we write directly to a .lo ?
4875 compiler_o_lo=$lt_compiler_o_lo
4877 # Must we lock files when doing compilation ?
4878 need_locks=$lt_need_locks
4880 # Do we need the lib prefix for modules?
4881 need_lib_prefix=$need_lib_prefix
4883 # Do we need a version for libraries?
4884 need_version=$need_version
4886 # Whether dlopen is supported.
4887 dlopen_support=$enable_dlopen
4889 # Whether dlopen of programs is supported.
4890 dlopen_self=$enable_dlopen_self
4892 # Whether dlopen of statically linked programs is supported.
4893 dlopen_self_static=$enable_dlopen_self_static
4895 # Compiler flag to prevent dynamic linking.
4896 link_static_flag=$lt_link_static_flag
4898 # Compiler flag to turn off builtin functions.
4899 no_builtin_flag=$lt_no_builtin_flag
4901 # Compiler flag to allow reflexive dlopens.
4902 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
4904 # Compiler flag to generate shared objects directly from archives.
4905 whole_archive_flag_spec=$lt_whole_archive_flag_spec
4907 # Compiler flag to generate thread-safe objects.
4908 thread_safe_flag_spec=$lt_thread_safe_flag_spec
4910 # Library versioning type.
4911 version_type=$version_type
4913 # Format of library name prefix.
4914 libname_spec=$lt_libname_spec
4916 # List of archive names. First name is the real one, the rest are links.
4917 # The last name is the one that the linker finds with -lNAME.
4918 library_names_spec=$lt_library_names_spec
4920 # The coded name of the library, if different from the real name.
4921 soname_spec=$lt_soname_spec
4923 # Commands used to build and install an old-style archive.
4925 old_archive_cmds=$lt_old_archive_cmds
4926 old_postinstall_cmds=$lt_old_postinstall_cmds
4927 old_postuninstall_cmds=$lt_old_postuninstall_cmds
4929 # Create an old-style archive from a shared archive.
4930 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
4932 # Create a temporary old-style archive to link instead of a shared archive.
4933 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
4935 # Commands used to build and install a shared archive.
4936 archive_cmds=$lt_archive_cmds
4937 archive_expsym_cmds=$lt_archive_expsym_cmds
4938 postinstall_cmds=$lt_postinstall_cmds
4939 postuninstall_cmds=$lt_postuninstall_cmds
4941 # Commands to strip libraries.
4942 old_striplib=$lt_old_striplib
4943 striplib=$lt_striplib
4945 # Method to check whether dependent libraries are shared objects.
4946 deplibs_check_method=$lt_deplibs_check_method
4948 # Command to use when deplibs_check_method == file_magic.
4949 file_magic_cmd=$lt_file_magic_cmd
4951 # Flag that allows shared libraries with undefined symbols to be built.
4952 allow_undefined_flag=$lt_allow_undefined_flag
4954 # Flag that forces no undefined symbols.
4955 no_undefined_flag=$lt_no_undefined_flag
4957 # Commands used to finish a libtool library installation in a directory.
4958 finish_cmds=$lt_finish_cmds
4960 # Same as above, but a single script fragment to be evaled but not shown.
4961 finish_eval=$lt_finish_eval
4963 # Take the output of nm and produce a listing of raw symbols and C names.
4964 global_symbol_pipe=$lt_global_symbol_pipe
4966 # Transform the output of nm in a proper C declaration
4967 global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
4969 # This is the shared library runtime path variable.
4970 runpath_var=$runpath_var
4972 # This is the shared library path variable.
4973 shlibpath_var=$shlibpath_var
4975 # Is shlibpath searched before the hard-coded library search path?
4976 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
4978 # How to hardcode a shared library path into an executable.
4979 hardcode_action=$hardcode_action
4981 # Whether we should hardcode library paths into libraries.
4982 hardcode_into_libs=$hardcode_into_libs
4984 # Flag to hardcode \$libdir into a binary during linking.
4985 # This must work even if \$libdir does not exist.
4986 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
4988 # Whether we need a single -rpath flag with a separated argument.
4989 hardcode_libdir_separator=$lt_hardcode_libdir_separator
4991 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
4993 hardcode_direct=$hardcode_direct
4995 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
4997 hardcode_minus_L=$hardcode_minus_L
4999 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
5000 # the resulting binary.
5001 hardcode_shlibpath_var=$hardcode_shlibpath_var
5003 # Variables whose values should be saved in libtool wrapper scripts and
5004 # restored at relink time.
5005 variables_saved_for_relink="$variables_saved_for_relink"
5007 # Whether libtool must link a program against all its dependency libraries.
5008 link_all_deplibs=$link_all_deplibs
5010 # Compile-time system search path for libraries
5011 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
5013 # Run-time system search path for libraries
5014 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
5016 # Fix the shell variable \$srcfile for the compiler.
5017 fix_srcfile_path="$fix_srcfile_path"
5019 # Set to yes if exported symbols are required.
5020 always_export_symbols=$always_export_symbols
5022 # The commands to list exported symbols.
5023 export_symbols_cmds=$lt_export_symbols_cmds
5025 # The commands to extract the exported symbol list from a shared archive.
5026 extract_expsyms_cmds=$lt_extract_expsyms_cmds
5028 # Symbols that should not be listed in the preloaded symbols.
5029 exclude_expsyms=$lt_exclude_expsyms
5031 # Symbols that must always be exported.
5032 include_expsyms=$lt_include_expsyms
5034 # ### END LIBTOOL CONFIG
5040 cat <<\EOF >> "${ofile}T"
5042 # AIX sometimes has problems with the GCC collect2 program. For some
5043 # reason, if we set the COLLECT_NAMES environment variable, the problems
5044 # vanish in a puff of smoke.
5045 if test "X${COLLECT_NAMES+set}" != Xset; then
5047 export COLLECT_NAMES
5054 cygwin* | mingw* | pw32* | os2*)
5055 cat <<'EOF' >> "${ofile}T"
5056 # This is a source program that is used to create dlls on Windows
5057 # Don't remove nor modify the starting and closing comments
5058 # /* ltdll.c starts here */
5059 # #define WIN32_LEAN_AND_MEAN
5060 # #include <windows.h>
5061 # #undef WIN32_LEAN_AND_MEAN
5062 # #include <stdio.h>
5064 # #ifndef __CYGWIN__
5065 # # ifdef __CYGWIN32__
5066 # # define __CYGWIN__ __CYGWIN32__
5070 # #ifdef __cplusplus
5073 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
5074 # #ifdef __cplusplus
5079 # #include <cygwin/cygwin_dll.h>
5080 # DECLARE_CYGWIN_DLL( DllMain );
5082 # HINSTANCE __hDllInstance_base;
5085 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
5087 # __hDllInstance_base = hInst;
5090 # /* ltdll.c ends here */
5091 # This is a source program that is used to create import libraries
5092 # on Windows for dlls which lack them. Don't remove nor modify the
5093 # starting and closing comments
5094 # /* impgen.c starts here */
5095 # /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
5097 # This file is part of GNU libtool.
5099 # This program is free software; you can redistribute it and/or modify
5100 # it under the terms of the GNU General Public License as published by
5101 # the Free Software Foundation; either version 2 of the License, or
5102 # (at your option) any later version.
5104 # This program is distributed in the hope that it will be useful,
5105 # but WITHOUT ANY WARRANTY; without even the implied warranty of
5106 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
5107 # GNU General Public License for more details.
5109 # You should have received a copy of the GNU General Public License
5110 # along with this program; if not, write to the Free Software
5111 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
5114 # #include <stdio.h> /* for printf() */
5115 # #include <unistd.h> /* for open(), lseek(), read() */
5116 # #include <fcntl.h> /* for O_RDONLY, O_BINARY */
5117 # #include <string.h> /* for strdup() */
5119 # /* O_BINARY isn't required (or even defined sometimes) under Unix */
5121 # #define O_BINARY 0
5124 # static unsigned int
5125 # pe_get16 (fd, offset)
5129 # unsigned char b[2];
5130 # lseek (fd, offset, SEEK_SET);
5132 # return b[0] + (b[1]<<8);
5135 # static unsigned int
5136 # pe_get32 (fd, offset)
5140 # unsigned char b[4];
5141 # lseek (fd, offset, SEEK_SET);
5143 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
5146 # static unsigned int
5150 # unsigned char *b = ptr;
5151 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
5160 # unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
5161 # unsigned long export_rva, export_size, nsections, secptr, expptr;
5162 # unsigned long name_rvas, nexp;
5163 # unsigned char *expdata, *erva;
5164 # char *filename, *dll_name;
5166 # filename = argv[1];
5168 # dll = open(filename, O_RDONLY|O_BINARY);
5172 # dll_name = filename;
5174 # for (i=0; filename[i]; i++)
5175 # if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
5176 # dll_name = filename + i +1;
5178 # pe_header_offset = pe_get32 (dll, 0x3c);
5179 # opthdr_ofs = pe_header_offset + 4 + 20;
5180 # num_entries = pe_get32 (dll, opthdr_ofs + 92);
5182 # if (num_entries < 1) /* no exports */
5185 # export_rva = pe_get32 (dll, opthdr_ofs + 96);
5186 # export_size = pe_get32 (dll, opthdr_ofs + 100);
5187 # nsections = pe_get16 (dll, pe_header_offset + 4 +2);
5188 # secptr = (pe_header_offset + 4 + 20 +
5189 # pe_get16 (dll, pe_header_offset + 4 + 16));
5192 # for (i = 0; i < nsections; i++)
5195 # unsigned long secptr1 = secptr + 40 * i;
5196 # unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
5197 # unsigned long vsize = pe_get32 (dll, secptr1 + 16);
5198 # unsigned long fptr = pe_get32 (dll, secptr1 + 20);
5199 # lseek(dll, secptr1, SEEK_SET);
5200 # read(dll, sname, 8);
5201 # if (vaddr <= export_rva && vaddr+vsize > export_rva)
5203 # expptr = fptr + (export_rva - vaddr);
5204 # if (export_rva + export_size > vaddr + vsize)
5205 # export_size = vsize - (export_rva - vaddr);
5210 # expdata = (unsigned char*)malloc(export_size);
5211 # lseek (dll, expptr, SEEK_SET);
5212 # read (dll, expdata, export_size);
5213 # erva = expdata - export_rva;
5215 # nexp = pe_as32 (expdata+24);
5216 # name_rvas = pe_as32 (expdata+32);
5218 # printf ("EXPORTS\n");
5219 # for (i = 0; i<nexp; i++)
5221 # unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
5222 # printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
5227 # /* impgen.c ends here */
5233 # We use sed instead of cat because bash on DJGPP gets confused if
5234 # if finds mixed CR/LF and LF-only lines. Since sed operates in
5235 # text mode, it properly converts lines to CR/LF. This bash problem
5236 # is reportedly fixed, but why not run on old versions too?
5237 sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
5239 mv -f "${ofile}T" "$ofile" || \
5240 (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
5248 # This can be used to rebuild libtool when needed
5249 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
5251 # Always use our own libtool.
5252 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
5254 # Prevent multiple expansion
5258 # Extract the first word of "gcc", so it can be a program name with args.
5259 set dummy gcc; ac_word=$2
5260 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5261 echo "configure:5262: checking for $ac_word" >&5
5262 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
5263 echo $ac_n "(cached) $ac_c" 1>&6
5265 if test -n "$CC"; then
5266 ac_cv_prog_CC="$CC" # Let the user override the test.
5268 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5270 for ac_dir in $ac_dummy; do
5271 test -z "$ac_dir" && ac_dir=.
5272 if test -f $ac_dir/$ac_word; then
5281 if test -n "$CC"; then
5282 echo "$ac_t""$CC" 1>&6
5284 echo "$ac_t""no" 1>&6
5287 if test -z "$CC"; then
5288 # Extract the first word of "cc", so it can be a program name with args.
5289 set dummy cc; ac_word=$2
5290 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5291 echo "configure:5292: checking for $ac_word" >&5
5292 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
5293 echo $ac_n "(cached) $ac_c" 1>&6
5295 if test -n "$CC"; then
5296 ac_cv_prog_CC="$CC" # Let the user override the test.
5298 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5301 for ac_dir in $ac_dummy; do
5302 test -z "$ac_dir" && ac_dir=.
5303 if test -f $ac_dir/$ac_word; then
5304 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
5305 ac_prog_rejected=yes
5313 if test $ac_prog_rejected = yes; then
5314 # We found a bogon in the path, so make sure we never use it.
5315 set dummy $ac_cv_prog_CC
5317 if test $# -gt 0; then
5318 # We chose a different compiler from the bogus one.
5319 # However, it has the same basename, so the bogon will be chosen
5320 # first if we set CC to just the basename; use the full file name.
5322 set dummy "$ac_dir/$ac_word" "$@"
5330 if test -n "$CC"; then
5331 echo "$ac_t""$CC" 1>&6
5333 echo "$ac_t""no" 1>&6
5336 if test -z "$CC"; then
5337 case "`uname -s`" in
5339 # Extract the first word of "cl", so it can be a program name with args.
5340 set dummy cl; ac_word=$2
5341 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5342 echo "configure:5343: checking for $ac_word" >&5
5343 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
5344 echo $ac_n "(cached) $ac_c" 1>&6
5346 if test -n "$CC"; then
5347 ac_cv_prog_CC="$CC" # Let the user override the test.
5349 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5351 for ac_dir in $ac_dummy; do
5352 test -z "$ac_dir" && ac_dir=.
5353 if test -f $ac_dir/$ac_word; then
5362 if test -n "$CC"; then
5363 echo "$ac_t""$CC" 1>&6
5365 echo "$ac_t""no" 1>&6
5370 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
5373 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
5374 echo "configure:5375: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
5377 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5378 ac_cpp='$CPP $CPPFLAGS'
5379 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5380 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5381 cross_compiling=$ac_cv_prog_cc_cross
5383 cat > conftest.$ac_ext << EOF
5385 #line 5386 "configure"
5386 #include "confdefs.h"
5390 if { (eval echo configure:5391: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5391 ac_cv_prog_cc_works=yes
5392 # If we can't run a trivial program, we are probably using a cross compiler.
5393 if (./conftest; exit) 2>/dev/null; then
5394 ac_cv_prog_cc_cross=no
5396 ac_cv_prog_cc_cross=yes
5399 echo "configure: failed program was:" >&5
5400 cat conftest.$ac_ext >&5
5401 ac_cv_prog_cc_works=no
5405 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5406 ac_cpp='$CPP $CPPFLAGS'
5407 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5408 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5409 cross_compiling=$ac_cv_prog_cc_cross
5411 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
5412 if test $ac_cv_prog_cc_works = no; then
5413 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
5415 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
5416 echo "configure:5417: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
5417 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
5418 cross_compiling=$ac_cv_prog_cc_cross
5420 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
5421 echo "configure:5422: checking whether we are using GNU C" >&5
5422 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
5423 echo $ac_n "(cached) $ac_c" 1>&6
5425 cat > conftest.c <<EOF
5430 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:5431: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
5437 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
5439 if test $ac_cv_prog_gcc = yes; then
5445 ac_test_CFLAGS="${CFLAGS+set}"
5446 ac_save_CFLAGS="$CFLAGS"
5448 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
5449 echo "configure:5450: checking whether ${CC-cc} accepts -g" >&5
5450 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
5451 echo $ac_n "(cached) $ac_c" 1>&6
5453 echo 'void f(){}' > conftest.c
5454 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
5463 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
5464 if test "$ac_test_CFLAGS" = set; then
5465 CFLAGS="$ac_save_CFLAGS"
5466 elif test $ac_cv_prog_cc_g = yes; then
5467 if test "$GCC" = yes; then
5473 if test "$GCC" = yes; then
5480 # Find a good install program. We prefer a C program (faster),
5481 # so one script is as good as another. But avoid the broken or
5482 # incompatible versions:
5483 # SysV /etc/install, /usr/sbin/install
5484 # SunOS /usr/etc/install
5485 # IRIX /sbin/install
5487 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5488 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5489 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5490 # ./install, which can be erroneously created by make from ./install.sh.
5491 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
5492 echo "configure:5493: checking for a BSD compatible install" >&5
5493 if test -z "$INSTALL"; then
5494 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
5495 echo $ac_n "(cached) $ac_c" 1>&6
5497 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
5498 for ac_dir in $PATH; do
5499 # Account for people who put trailing slashes in PATH elements.
5501 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
5503 # OSF1 and SCO ODT 3.0 have their own names for install.
5504 # Don't use installbsd from OSF since it installs stuff as root
5506 for ac_prog in ginstall scoinst install; do
5507 if test -f $ac_dir/$ac_prog; then
5508 if test $ac_prog = install &&
5509 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
5510 # AIX install. It has an incompatible calling convention.
5513 ac_cv_path_install="$ac_dir/$ac_prog -c"
5524 if test "${ac_cv_path_install+set}" = set; then
5525 INSTALL="$ac_cv_path_install"
5527 # As a last resort, use the slow shell script. We don't cache a
5528 # path for INSTALL within a source directory, because that will
5529 # break other packages using the cache if that directory is
5530 # removed, or if the path is relative.
5531 INSTALL="$ac_install_sh"
5534 echo "$ac_t""$INSTALL" 1>&6
5536 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5537 # It thinks the first close brace ends the variable substitution.
5538 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5540 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
5542 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5546 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
5547 echo "configure:5548: checking for ANSI C header files" >&5
5548 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
5549 echo $ac_n "(cached) $ac_c" 1>&6
5551 cat > conftest.$ac_ext <<EOF
5552 #line 5553 "configure"
5553 #include "confdefs.h"
5559 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5560 { (eval echo configure:5561: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5561 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5562 if test -z "$ac_err"; then
5564 ac_cv_header_stdc=yes
5567 echo "configure: failed program was:" >&5
5568 cat conftest.$ac_ext >&5
5570 ac_cv_header_stdc=no
5574 if test $ac_cv_header_stdc = yes; then
5575 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5576 cat > conftest.$ac_ext <<EOF
5577 #line 5578 "configure"
5578 #include "confdefs.h"
5581 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5582 egrep "memchr" >/dev/null 2>&1; then
5586 ac_cv_header_stdc=no
5592 if test $ac_cv_header_stdc = yes; then
5593 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5594 cat > conftest.$ac_ext <<EOF
5595 #line 5596 "configure"
5596 #include "confdefs.h"
5599 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5600 egrep "free" >/dev/null 2>&1; then
5604 ac_cv_header_stdc=no
5610 if test $ac_cv_header_stdc = yes; then
5611 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5612 if test "$cross_compiling" = yes; then
5615 cat > conftest.$ac_ext <<EOF
5616 #line 5617 "configure"
5617 #include "confdefs.h"
5619 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5620 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5621 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5622 int main () { int i; for (i = 0; i < 256; i++)
5623 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
5627 if { (eval echo configure:5628: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5631 echo "configure: failed program was:" >&5
5632 cat conftest.$ac_ext >&5
5634 ac_cv_header_stdc=no
5642 echo "$ac_t""$ac_cv_header_stdc" 1>&6
5643 if test $ac_cv_header_stdc = yes; then
5644 cat >> confdefs.h <<\EOF
5645 #define STDC_HEADERS 1
5651 echo $ac_n "checking for working const""... $ac_c" 1>&6
5652 echo "configure:5653: checking for working const" >&5
5653 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
5654 echo $ac_n "(cached) $ac_c" 1>&6
5656 cat > conftest.$ac_ext <<EOF
5657 #line 5658 "configure"
5658 #include "confdefs.h"
5662 /* Ultrix mips cc rejects this. */
5663 typedef int charset[2]; const charset x;
5664 /* SunOS 4.1.1 cc rejects this. */
5665 char const *const *ccp;
5667 /* NEC SVR4.0.2 mips cc rejects this. */
5668 struct point {int x, y;};
5669 static struct point const zero = {0,0};
5670 /* AIX XL C 1.02.0.0 rejects this.
5671 It does not let you subtract one const X* pointer from another in an arm
5672 of an if-expression whose if-part is not a constant expression */
5673 const char *g = "string";
5674 ccp = &g + (g ? g-g : 0);
5675 /* HPUX 7.0 cc rejects these. */
5678 ccp = (char const *const *) p;
5679 { /* SCO 3.2v4 cc rejects this. */
5681 char const *s = 0 ? (char *) 0 : (char const *) 0;
5685 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5687 const int *foo = &x[0];
5690 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5691 typedef const int *iptr;
5695 { /* AIX XL C 1.02.0.0 rejects this saying
5696 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5697 struct s { int j; const int *ap[3]; };
5698 struct s *b; b->j = 5;
5700 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5706 if { (eval echo configure:5707: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5710 echo "configure: failed program was:" >&5
5711 cat conftest.$ac_ext >&5
5718 echo "$ac_t""$ac_cv_c_const" 1>&6
5719 if test $ac_cv_c_const = no; then
5720 cat >> confdefs.h <<\EOF
5727 for ac_func in strdup
5729 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5730 echo "configure:5731: checking for $ac_func" >&5
5731 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5732 echo $ac_n "(cached) $ac_c" 1>&6
5734 cat > conftest.$ac_ext <<EOF
5735 #line 5736 "configure"
5736 #include "confdefs.h"
5737 /* System header to define __stub macros and hopefully few prototypes,
5738 which can conflict with char $ac_func(); below. */
5740 /* Override any gcc2 internal prototype to avoid an error. */
5741 /* We use char because int might match the return type of a gcc2
5742 builtin and then its argument prototype would still apply. */
5747 /* The GNU C library defines this for functions which it implements
5748 to always fail with ENOSYS. Some functions are actually named
5749 something starting with __ and the normal name is an alias. */
5750 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5758 if { (eval echo configure:5759: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5760 eval "ac_cv_func_$ac_func=yes"
5762 echo "configure: failed program was:" >&5
5763 cat conftest.$ac_ext >&5
5765 eval "ac_cv_func_$ac_func=no"
5770 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5771 echo "$ac_t""yes" 1>&6
5772 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5773 cat >> confdefs.h <<EOF
5774 #define $ac_tr_func 1
5778 echo "$ac_t""no" 1>&6
5784 cat > confcache <<\EOF
5785 # This file is a shell script that caches the results of configure
5786 # tests run on this system so they can be shared between configure
5787 # scripts and configure runs. It is not useful on other systems.
5788 # If it contains results you don't want to keep, you may remove or edit it.
5790 # By default, configure uses ./config.cache as the cache file,
5791 # creating it if it does not exist already. You can give configure
5792 # the --cache-file=FILE option to use a different cache file; that is
5793 # what configure does when it calls configure scripts in
5794 # subdirectories, so they share the cache.
5795 # Giving --cache-file=/dev/null disables caching, for debugging configure.
5796 # config.status only pays attention to the cache file if you give it the
5797 # --recheck option to rerun configure.
5800 # The following way of writing the cache mishandles newlines in values,
5801 # but we know of no workaround that is simple, portable, and efficient.
5802 # So, don't put newlines in cache variables' values.
5803 # Ultrix sh set writes to stderr and can't be redirected directly,
5804 # and sets the high bit in the cache file unless we assign to the vars.
5806 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5808 # `set' does not quote correctly, so add quotes (double-quote substitution
5809 # turns \\\\ into \\, and sed turns \\ into \).
5811 -e "s/'/'\\\\''/g" \
5812 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
5815 # `set' quotes correctly as required by POSIX, so do not add quotes.
5816 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
5819 if cmp -s $cache_file confcache; then
5822 if test -w $cache_file; then
5823 echo "updating cache $cache_file"
5824 cat confcache > $cache_file
5826 echo "not updating unwritable cache $cache_file"
5831 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
5833 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5834 # Let make expand exec_prefix.
5835 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5837 # Any assignment to VPATH causes Sun make to only execute
5838 # the first set of double-colon rules, so remove it if not needed.
5839 # If there is a colon in the path, we need to keep it.
5840 if test "x$srcdir" = x.; then
5841 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
5844 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
5846 DEFS=-DHAVE_CONFIG_H
5848 # Without the "./", some shells look in PATH for config.status.
5849 : ${CONFIG_STATUS=./config.status}
5851 echo creating $CONFIG_STATUS
5852 rm -f $CONFIG_STATUS
5853 cat > $CONFIG_STATUS <<EOF
5855 # Generated automatically by configure.
5856 # Run this file to recreate the current configuration.
5857 # This directory was configured as follows,
5858 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5860 # $0 $ac_configure_args
5862 # Compiler output produced by configure, useful for debugging
5863 # configure, is in ./config.log if it exists.
5865 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
5868 case "\$ac_option" in
5869 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5870 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
5871 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
5872 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
5873 echo "$CONFIG_STATUS generated by autoconf version 2.13"
5875 -help | --help | --hel | --he | --h)
5876 echo "\$ac_cs_usage"; exit 0 ;;
5877 *) echo "\$ac_cs_usage"; exit 1 ;;
5881 ac_given_srcdir=$srcdir
5882 ac_given_INSTALL="$INSTALL"
5884 trap 'rm -fr `echo "Makefile libredblack.spec config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
5886 cat >> $CONFIG_STATUS <<EOF
5888 # Protect against being on the right side of a sed subst in config.status.
5889 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
5890 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
5894 s%@CFLAGS@%$CFLAGS%g
5895 s%@CPPFLAGS@%$CPPFLAGS%g
5896 s%@CXXFLAGS@%$CXXFLAGS%g
5897 s%@FFLAGS@%$FFLAGS%g
5899 s%@LDFLAGS@%$LDFLAGS%g
5901 s%@exec_prefix@%$exec_prefix%g
5902 s%@prefix@%$prefix%g
5903 s%@program_transform_name@%$program_transform_name%g
5904 s%@bindir@%$bindir%g
5905 s%@sbindir@%$sbindir%g
5906 s%@libexecdir@%$libexecdir%g
5907 s%@datadir@%$datadir%g
5908 s%@sysconfdir@%$sysconfdir%g
5909 s%@sharedstatedir@%$sharedstatedir%g
5910 s%@localstatedir@%$localstatedir%g
5911 s%@libdir@%$libdir%g
5912 s%@includedir@%$includedir%g
5913 s%@oldincludedir@%$oldincludedir%g
5914 s%@infodir@%$infodir%g
5915 s%@mandir@%$mandir%g
5916 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
5917 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
5918 s%@INSTALL_DATA@%$INSTALL_DATA%g
5919 s%@PACKAGE@%$PACKAGE%g
5920 s%@VERSION@%$VERSION%g
5921 s%@ACLOCAL@%$ACLOCAL%g
5922 s%@AUTOCONF@%$AUTOCONF%g
5923 s%@AUTOMAKE@%$AUTOMAKE%g
5924 s%@AUTOHEADER@%$AUTOHEADER%g
5925 s%@MAKEINFO@%$MAKEINFO%g
5926 s%@SET_MAKE@%$SET_MAKE%g
5927 s%@REDBLACK_LIB_CURRENT@%$REDBLACK_LIB_CURRENT%g
5928 s%@REDBLACK_LIB_REVISION@%$REDBLACK_LIB_REVISION%g
5929 s%@REDBLACK_LIB_AGE@%$REDBLACK_LIB_AGE%g
5930 s%@REDBLACK_VERSION@%$REDBLACK_VERSION%g
5932 s%@host_alias@%$host_alias%g
5933 s%@host_cpu@%$host_cpu%g
5934 s%@host_vendor@%$host_vendor%g
5935 s%@host_os@%$host_os%g
5937 s%@build_alias@%$build_alias%g
5938 s%@build_cpu@%$build_cpu%g
5939 s%@build_vendor@%$build_vendor%g
5940 s%@build_os@%$build_os%g
5943 s%@OBJEXT@%$OBJEXT%g
5944 s%@EXEEXT@%$EXEEXT%g
5946 s%@RANLIB@%$RANLIB%g
5949 s%@LIBTOOL@%$LIBTOOL%g
5954 cat >> $CONFIG_STATUS <<\EOF
5956 # Split the substitutions into bite-sized pieces for seds with
5957 # small command number limits, like on Digital OSF/1 and HP-UX.
5958 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
5959 ac_file=1 # Number of current file.
5960 ac_beg=1 # First line for current file.
5961 ac_end=$ac_max_sed_cmds # Line after last line for current file.
5964 while $ac_more_lines; do
5965 if test $ac_beg -gt 1; then
5966 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
5968 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
5970 if test ! -s conftest.s$ac_file; then
5972 rm -f conftest.s$ac_file
5974 if test -z "$ac_sed_cmds"; then
5975 ac_sed_cmds="sed -f conftest.s$ac_file"
5977 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
5979 ac_file=`expr $ac_file + 1`
5981 ac_end=`expr $ac_end + $ac_max_sed_cmds`
5984 if test -z "$ac_sed_cmds"; then
5989 cat >> $CONFIG_STATUS <<EOF
5991 CONFIG_FILES=\${CONFIG_FILES-"Makefile libredblack.spec"}
5993 cat >> $CONFIG_STATUS <<\EOF
5994 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
5995 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5997 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
5998 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
5999 *) ac_file_in="${ac_file}.in" ;;
6002 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
6004 # Remove last slash and all that follows it. Not all systems have dirname.
6005 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6006 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6007 # The file is in a subdirectory.
6008 test ! -d "$ac_dir" && mkdir "$ac_dir"
6009 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
6010 # A "../" for each directory in $ac_dir_suffix.
6011 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
6013 ac_dir_suffix= ac_dots=
6016 case "$ac_given_srcdir" in
6018 if test -z "$ac_dots"; then top_srcdir=.
6019 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
6020 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
6022 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
6023 top_srcdir="$ac_dots$ac_given_srcdir" ;;
6026 case "$ac_given_INSTALL" in
6027 [/$]*) INSTALL="$ac_given_INSTALL" ;;
6028 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
6031 echo creating "$ac_file"
6033 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
6035 *Makefile*) ac_comsub="1i\\
6036 # $configure_input" ;;
6040 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6042 s%@configure_input@%$configure_input%g
6043 s%@srcdir@%$srcdir%g
6044 s%@top_srcdir@%$top_srcdir%g
6045 s%@INSTALL@%$INSTALL%g
6046 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
6050 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6051 # NAME is the cpp macro being defined and VALUE is the value it is being given.
6053 # ac_d sets the value in "#define NAME VALUE" lines.
6054 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
6055 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
6058 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
6059 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6060 ac_uB='\([ ]\)%\1#\2define\3'
6063 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6064 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6065 ac_eB='$%\1#\2define\3'
6069 if test "${CONFIG_HEADERS+set}" != set; then
6071 cat >> $CONFIG_STATUS <<EOF
6072 CONFIG_HEADERS="config.h"
6074 cat >> $CONFIG_STATUS <<\EOF
6076 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
6077 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6079 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
6080 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
6081 *) ac_file_in="${ac_file}.in" ;;
6084 echo creating $ac_file
6086 rm -f conftest.frag conftest.in conftest.out
6087 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6088 cat $ac_file_inputs > conftest.in
6092 # Transform confdefs.h into a sed script conftest.vals that substitutes
6093 # the proper values into config.h.in to produce config.h. And first:
6094 # Protect against being on the right side of a sed subst in config.status.
6095 # Protect against being in an unquoted here document in config.status.
6097 cat > conftest.hdr <<\EOF
6100 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
6104 sed -n -f conftest.hdr confdefs.h > conftest.vals
6107 # This sed command replaces #undef with comments. This is necessary, for
6108 # example, in the case of _POSIX_SOURCE, which is predefined and required
6109 # on some systems where configure will not decide to define it.
6110 cat >> conftest.vals <<\EOF
6111 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
6114 # Break up conftest.vals because some shells have a limit on
6115 # the size of here documents, and old seds have small limits too.
6120 ac_lines=`grep -c . conftest.vals`
6121 # grep -c gives empty output for an empty file on some AIX systems.
6122 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
6123 # Write a limited-size here document to conftest.frag.
6124 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
6125 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
6127 sed -f conftest.frag conftest.in > conftest.out
6129 mv conftest.out conftest.in
6131 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
6133 mv conftest.tail conftest.vals
6137 cat >> $CONFIG_STATUS <<\EOF
6138 rm -f conftest.frag conftest.h
6139 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
6140 cat conftest.in >> conftest.h
6142 if cmp -s $ac_file conftest.h 2>/dev/null; then
6143 echo "$ac_file is unchanged"
6146 # Remove last slash and all that follows it. Not all systems have dirname.
6147 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6148 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6149 # The file is in a subdirectory.
6150 test ! -d "$ac_dir" && mkdir "$ac_dir"
6153 mv conftest.h $ac_file
6158 cat >> $CONFIG_STATUS <<EOF
6162 cat >> $CONFIG_STATUS <<\EOF
6163 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
6167 chmod +x $CONFIG_STATUS
6168 rm -fr confdefs* $ac_clean_files
6169 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1