3 # From configure.in Revision: 7466
4 # libtool.m4 - Configure libtool for the host system. -*-Shell-script-*-
5 ## Copyright 1996, 1997, 1998, 1999, 2000, 2001
6 ## Free Software Foundation, Inc.
7 ## Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9 ## This program is free software; you can redistribute it and/or modify
10 ## it under the terms of the GNU General Public License as published by
11 ## the Free Software Foundation; either version 2 of the License, or
12 ## (at your option) any later version.
14 ## This program is distributed in the hope that it will be useful, but
15 ## WITHOUT ANY WARRANTY; without even the implied warranty of
16 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 ## General Public License for more details.
19 ## You should have received a copy of the GNU General Public License
20 ## along with this program; if not, write to the Free Software
21 ## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
23 ## As a special exception to the GNU General Public License, if you
24 ## distribute this file as part of a program that contains a
25 ## configuration script generated by Autoconf, you may include it under
26 ## the same distribution terms that you use for the rest of that program.
28 # serial 46 AC_PROG_LIBTOOL
34 # AC_LIBTOOL_HEADER_ASSERT
35 # ------------------------
36 # AC_LIBTOOL_HEADER_ASSERT
39 # --------------------
42 # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
43 # ---------------------------------
44 # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
46 # _LT_AC_LIBTOOL_SYS_PATH_SEPARATOR
47 # ---------------------------------
48 # _LT_AC_LIBTOOL_SYS_PATH_SEPARATOR
50 # _LT_AC_PROG_ECHO_BACKSLASH
51 # --------------------------
52 # Add some code to the start of the generated configure script which
53 # will find an echo command which doesn't interpret backslashes.
54 # _LT_AC_PROG_ECHO_BACKSLASH
56 # _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
57 # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
58 # ------------------------------------------------------------------
59 # _LT_AC_TRY_DLOPEN_SELF
61 # AC_LIBTOOL_DLOPEN_SELF
63 # AC_LIBTOOL_DLOPEN_SELF
65 # _LT_AC_LTCONFIG_HACK
67 # AC_LIBTOOL_DLOPEN - enable checks for dlopen support
70 # AC_LIBTOOL_WIN32_DLL - declare package support for building win32 dll's
73 # AC_ENABLE_SHARED - implement the --enable-shared flag
74 # Usage: AC_ENABLE_SHARED[(DEFAULT)]
75 # Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
79 # AC_DISABLE_SHARED - set the default shared flag to --disable-shared
82 # AC_ENABLE_STATIC - implement the --enable-static flag
83 # Usage: AC_ENABLE_STATIC[(DEFAULT)]
84 # Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
88 # AC_DISABLE_STATIC - set the default static flag to --disable-static
92 # AC_ENABLE_FAST_INSTALL - implement the --enable-fast-install flag
93 # Usage: AC_ENABLE_FAST_INSTALL[(DEFAULT)]
94 # Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
98 # AC_DISABLE_FAST_INSTALL - set the default to --disable-fast-install
101 # AC_LIBTOOL_PICMODE - implement the --with-pic flag
102 # Usage: AC_LIBTOOL_PICMODE[(MODE)]
103 # Where MODE is either `yes' or `no'. If omitted, it defaults to
108 # AC_PATH_TOOL_PREFIX - find a file program which can recognise shared library
112 # AC_PATH_MAGIC - find a file program which can recognise a shared library
116 # AC_PROG_LD - find the path to the GNU or non-GNU linker
122 # AC_PROG_LD_RELOAD_FLAG - find reload flag for linker
123 # -- PORTME Some linkers may need a different reload flag.
126 # AC_DEPLIBS_CHECK_METHOD - how to check for library dependencies
127 # -- PORTME fill in with the dynamic library characteristics
131 # AC_PROG_NM - find the path to a BSD-compatible name lister
134 # AC_CHECK_LIBM - check for math library
137 # AC_LIBLTDL_CONVENIENCE[(dir)] - sets LIBLTDL to the link flags for
138 # the libltdl convenience library and INCLTDL to the include flags for
139 # the libltdl header and adds --enable-ltdl-convenience to the
140 # configure arguments. Note that LIBLTDL and INCLTDL are not
141 # AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If DIR is not
142 # provided, it is assumed to be `libltdl'. LIBLTDL will be prefixed
143 # with '${top_builddir}/' and INCLTDL will be prefixed with
144 # '${top_srcdir}/' (note the single quotes!). If your package is not
145 # flat and you're not using automake, define top_builddir and
146 # top_srcdir appropriately in the Makefiles.
149 # AC_LIBLTDL_INSTALLABLE[(dir)] - sets LIBLTDL to the link flags for
150 # the libltdl installable library and INCLTDL to the include flags for
151 # the libltdl header and adds --enable-ltdl-install to the configure
152 # arguments. Note that LIBLTDL and INCLTDL are not AC_SUBSTed, nor is
153 # AC_CONFIG_SUBDIRS called. If DIR is not provided and an installed
154 # libltdl is not found, it is assumed to be `libltdl'. LIBLTDL will
155 # be prefixed with '${top_builddir}/' and INCLTDL will be prefixed
156 # with '${top_srcdir}/' (note the single quotes!). If your package is
157 # not flat and you're not using automake, define top_builddir and
158 # top_srcdir appropriately in the Makefiles.
159 # In the future, this macro may have to be called after AC_PROG_LIBTOOL.
171 # This is just to silence aclocal about the macro not being used
173 # Guess values for system-dependent variables and create Makefiles.
174 # Generated automatically using autoconf version 2.13
175 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
177 # This configure script is free software; the Free Software Foundation
178 # gives unlimited permission to copy, distribute and modify it.
182 ac_default_prefix=/usr/local
183 # Any additions from configure.in:
184 ac_default_prefix=/usr/local/news
186 --enable-libtool Use libtool for lib generation [default=no]"
188 --enable-shared[=PKGS] build shared libraries [default=yes]"
190 --enable-static[=PKGS] build static libraries [default=yes]"
192 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
194 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
196 # Find the correct PATH separator. Usually this is `:', but
197 # DJGPP uses `;' like DOS.
198 if test "X${PATH_SEPARATOR+set}" != Xset; then
199 UNAME=${UNAME-`uname 2>/dev/null`}
201 *-DOS) lt_cv_sys_path_separator=';' ;;
202 *) lt_cv_sys_path_separator=':' ;;
204 PATH_SEPARATOR=$lt_cv_sys_path_separator
208 # Check that we are running under the correct shell.
209 SHELL=${CONFIG_SHELL-/bin/sh}
213 # Remove one level of quotation (which was required for Make).
214 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
219 if test "X$1" = X--no-reexec; then
220 # Discard the --no-reexec flag, and continue.
222 elif test "X$1" = X--fallback-echo; then
223 # Avoid inline document here, it may be left over
225 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
226 # Yippee, $echo works!
229 # Restart under the correct shell.
230 exec $SHELL "$0" --no-reexec ${1+"$@"}
233 if test "X$1" = X--fallback-echo; then
234 # used as fallback echo
242 # The HP-UX ksh and POSIX shell print the target directory to stdout
244 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
246 if test -z "$ECHO"; then
247 if test "X${echo_test_string+set}" != Xset; then
248 # find a string as large as possible, as long as the shell can cope with it
249 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
250 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
251 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
252 echo_test_string="`eval $cmd`" &&
253 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
260 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
261 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
262 test "X$echo_testing_string" = "X$echo_test_string"; then
265 # The Solaris, AIX, and Digital Unix default echo programs unquote
266 # backslashes. This makes it impossible to quote backslashes using
267 # echo "$something" | sed 's/\\/\\\\/g'
269 # So, first we look for a working echo in the user's PATH.
271 IFS="${IFS= }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
272 for dir in $PATH /usr/ucb; do
273 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
274 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
275 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
276 test "X$echo_testing_string" = "X$echo_test_string"; then
283 if test "X$echo" = Xecho; then
284 # We didn't find a better echo, so look for alternatives.
285 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
286 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
287 test "X$echo_testing_string" = "X$echo_test_string"; then
288 # This shell has a builtin print -r that does the trick.
290 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
291 test "X$CONFIG_SHELL" != X/bin/ksh; then
292 # If we have ksh, try running configure again with it.
293 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
294 export ORIGINAL_CONFIG_SHELL
295 CONFIG_SHELL=/bin/ksh
297 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
301 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
302 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
303 test "X$echo_testing_string" = "X$echo_test_string"; then
306 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
307 test "X$echo_testing_string" = 'X\t' &&
308 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
309 test "X$echo_testing_string" = "X$echo_test_string"; then
310 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
312 SHELL="$CONFIG_SHELL"
314 echo="$CONFIG_SHELL $0 --fallback-echo"
315 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
316 test "X$echo_testing_string" = 'X\t' &&
317 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
318 test "X$echo_testing_string" = "X$echo_test_string"; then
319 echo="$CONFIG_SHELL $0 --fallback-echo"
321 # maybe with a smaller string...
324 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
325 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
332 if test "$prev" != 'sed 50q "$0"'; then
333 echo_test_string=`eval $prev`
334 export echo_test_string
335 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
337 # Oops. We lost completely, so just stick with echo.
346 # Copy echo and quote the copy suitably for passing to libtool from
347 # the Makefile, instead of quoting the original, which is used later.
349 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
350 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
355 --disable-libtool-lock avoid locking (might break parallel builds)"
357 --with-pic try to use only PIC/non-PIC objects [default=use both]"
359 --with-control-dir=PATH Path for control programs [PREFIX/bin/control]"
361 --with-db-dir=PATH Path for news database files [PREFIX/db]"
363 --with-doc-dir=PATH Path for news documentation [PREFIX/doc]"
365 --with-etc-dir=PATH Path for news config files [PREFIX/etc]"
367 --with-filter-dir=PATH Path for embedded filters [PREFIX/bin/filter]"
369 --with-lib-dir=PATH Path for news library files [PREFIX/lib]"
371 --with-log-dir=PATH Path for news logs [PREFIX/log]"
373 --with-run-dir=PATH Path for news PID/runtime files [PREFIX/run]"
375 --with-spool-dir=PATH Path for news storage [PREFIX/spool]"
377 --with-tmp-dir=PATH Path for temporary files [PREFIX/tmp]"
379 --with-syslog-facility=LOG_FAC Syslog facility [LOG_NEWS or LOG_LOCAL1]"
381 --with-news-user=USER News user name [news]"
383 --with-news-group=GROUP News group name [news]"
385 --with-news-master=USER News master (address for reports) [usenet]"
387 --with-news-umask=UMASK umask for news files [002]"
389 --enable-setgid-inews Install inews setgid"
391 --enable-uucp-rnews Install rnews setuid, group uucp"
393 --with-log-compress=METHOD Log compression method [gzip]"
395 --with-innd-port=PORT Additional low-numbered port for inndstart"
397 --enable-ipv6 Enable IPv6 support"
399 --with-max-sockets=N Maximum number of listening sockets in innd"
401 --enable-tagged-hash Use tagged hash table for history"
403 --enable-keywords Automatic keyword generation support"
405 --enable-largefiles Support for files larger than 2GB [default=no]"
407 --with-sendmail=PATH Path to sendmail"
409 --with-kerberos=PATH Path to Kerberos v5 (for auth_krb5)"
411 --with-perl Embedded Perl script support [default=no]"
413 --with-python Embedded Python module support [default=no]"
415 --with-berkeleydb[=PATH] Enable BerkeleyDB (for ovdb overview method)"
417 --with-openssl=PATH Enable OpenSSL (for NNTP over SSL support)"
419 --with-sasl=PATH Enable SASL (for imapfeed authentication)"
421 # Initialize some variables set by options.
422 # The variables have the same names as the options, with
423 # dashes changed to underlines.
425 cache_file=./config.cache
434 program_transform_name=s,x,x,
442 bindir='${exec_prefix}/bin'
443 sbindir='${exec_prefix}/sbin'
444 libexecdir='${exec_prefix}/libexec'
445 datadir='${prefix}/share'
446 sysconfdir='${prefix}/etc'
447 sharedstatedir='${prefix}/com'
448 localstatedir='${prefix}/var'
449 libdir='${exec_prefix}/lib'
450 includedir='${prefix}/include'
451 oldincludedir='/usr/include'
452 infodir='${prefix}/info'
453 mandir='${prefix}/man'
455 # Initialize some other variables.
458 SHELL=${CONFIG_SHELL-/bin/sh}
459 # Maximum number of lines to put in a shell here document.
466 # If the previous option needs an argument, assign it.
467 if test -n "$ac_prev"; then
468 eval "$ac_prev=\$ac_option"
474 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
478 # Accept the important Cygnus configure options, so we can diagnose typos.
482 -bindir | --bindir | --bindi | --bind | --bin | --bi)
484 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
485 bindir="$ac_optarg" ;;
487 -build | --build | --buil | --bui | --bu)
489 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
490 build="$ac_optarg" ;;
492 -cache-file | --cache-file | --cache-fil | --cache-fi \
493 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
494 ac_prev=cache_file ;;
495 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
496 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
497 cache_file="$ac_optarg" ;;
499 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
501 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
503 datadir="$ac_optarg" ;;
505 -disable-* | --disable-*)
506 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
507 # Reject names that are not valid shell variable names.
508 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
509 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
511 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
512 eval "enable_${ac_feature}=no" ;;
514 -enable-* | --enable-*)
515 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
516 # Reject names that are not valid shell variable names.
517 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
518 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
520 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
525 eval "enable_${ac_feature}='$ac_optarg'" ;;
527 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
528 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
529 | --exec | --exe | --ex)
530 ac_prev=exec_prefix ;;
531 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
532 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
533 | --exec=* | --exe=* | --ex=*)
534 exec_prefix="$ac_optarg" ;;
536 -gas | --gas | --ga | --g)
537 # Obsolete; use --with-gas.
540 -help | --help | --hel | --he)
541 # Omit some internal or obsolete options to make the list less imposing.
542 # This message is too long to be a string in the A/UX 3.1 sh.
544 Usage: configure [options] [host]
545 Options: [defaults in brackets after descriptions]
547 --cache-file=FILE cache test results in FILE
548 --help print this message
549 --no-create do not create output files
550 --quiet, --silent do not print \`checking...' messages
551 --version print the version of autoconf that created configure
552 Directory and file names:
553 --prefix=PREFIX install architecture-independent files in PREFIX
555 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
557 --bindir=DIR user executables in DIR [EPREFIX/bin]
558 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
559 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
560 --datadir=DIR read-only architecture-independent data in DIR
562 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
563 --sharedstatedir=DIR modifiable architecture-independent data in DIR
565 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
566 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
567 --includedir=DIR C header files in DIR [PREFIX/include]
568 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
569 --infodir=DIR info documentation in DIR [PREFIX/info]
570 --mandir=DIR man documentation in DIR [PREFIX/man]
571 --srcdir=DIR find the sources in DIR [configure dir or ..]
572 --program-prefix=PREFIX prepend PREFIX to installed program names
573 --program-suffix=SUFFIX append SUFFIX to installed program names
574 --program-transform-name=PROGRAM
575 run sed PROGRAM on installed program names
579 --build=BUILD configure for building on BUILD [BUILD=HOST]
580 --host=HOST configure for HOST [guessed]
581 --target=TARGET configure for TARGET [TARGET=HOST]
582 Features and packages:
583 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
584 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
585 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
586 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
587 --x-includes=DIR X include files are in DIR
588 --x-libraries=DIR X library files are in DIR
590 if test -n "$ac_help"; then
591 echo "--enable and --with options recognized:$ac_help"
595 -host | --host | --hos | --ho)
597 -host=* | --host=* | --hos=* | --ho=*)
600 -includedir | --includedir | --includedi | --included | --include \
601 | --includ | --inclu | --incl | --inc)
602 ac_prev=includedir ;;
603 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
604 | --includ=* | --inclu=* | --incl=* | --inc=*)
605 includedir="$ac_optarg" ;;
607 -infodir | --infodir | --infodi | --infod | --info | --inf)
609 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
610 infodir="$ac_optarg" ;;
612 -libdir | --libdir | --libdi | --libd)
614 -libdir=* | --libdir=* | --libdi=* | --libd=*)
615 libdir="$ac_optarg" ;;
617 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
618 | --libexe | --libex | --libe)
619 ac_prev=libexecdir ;;
620 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
621 | --libexe=* | --libex=* | --libe=*)
622 libexecdir="$ac_optarg" ;;
624 -localstatedir | --localstatedir | --localstatedi | --localstated \
625 | --localstate | --localstat | --localsta | --localst \
626 | --locals | --local | --loca | --loc | --lo)
627 ac_prev=localstatedir ;;
628 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
629 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
630 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
631 localstatedir="$ac_optarg" ;;
633 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
635 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
636 mandir="$ac_optarg" ;;
639 # Obsolete; use --without-fp.
642 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
646 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
647 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
650 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
651 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
652 | --oldin | --oldi | --old | --ol | --o)
653 ac_prev=oldincludedir ;;
654 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
655 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
656 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
657 oldincludedir="$ac_optarg" ;;
659 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
661 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
662 prefix="$ac_optarg" ;;
664 -program-prefix | --program-prefix | --program-prefi | --program-pref \
665 | --program-pre | --program-pr | --program-p)
666 ac_prev=program_prefix ;;
667 -program-prefix=* | --program-prefix=* | --program-prefi=* \
668 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
669 program_prefix="$ac_optarg" ;;
671 -program-suffix | --program-suffix | --program-suffi | --program-suff \
672 | --program-suf | --program-su | --program-s)
673 ac_prev=program_suffix ;;
674 -program-suffix=* | --program-suffix=* | --program-suffi=* \
675 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
676 program_suffix="$ac_optarg" ;;
678 -program-transform-name | --program-transform-name \
679 | --program-transform-nam | --program-transform-na \
680 | --program-transform-n | --program-transform- \
681 | --program-transform | --program-transfor \
682 | --program-transfo | --program-transf \
683 | --program-trans | --program-tran \
684 | --progr-tra | --program-tr | --program-t)
685 ac_prev=program_transform_name ;;
686 -program-transform-name=* | --program-transform-name=* \
687 | --program-transform-nam=* | --program-transform-na=* \
688 | --program-transform-n=* | --program-transform-=* \
689 | --program-transform=* | --program-transfor=* \
690 | --program-transfo=* | --program-transf=* \
691 | --program-trans=* | --program-tran=* \
692 | --progr-tra=* | --program-tr=* | --program-t=*)
693 program_transform_name="$ac_optarg" ;;
695 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
696 | -silent | --silent | --silen | --sile | --sil)
699 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
701 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
703 sbindir="$ac_optarg" ;;
705 -sharedstatedir | --sharedstatedir | --sharedstatedi \
706 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
707 | --sharedst | --shareds | --shared | --share | --shar \
709 ac_prev=sharedstatedir ;;
710 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
711 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
712 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
714 sharedstatedir="$ac_optarg" ;;
716 -site | --site | --sit)
718 -site=* | --site=* | --sit=*)
721 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
723 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
724 srcdir="$ac_optarg" ;;
726 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
727 | --syscon | --sysco | --sysc | --sys | --sy)
728 ac_prev=sysconfdir ;;
729 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
730 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
731 sysconfdir="$ac_optarg" ;;
733 -target | --target | --targe | --targ | --tar | --ta | --t)
735 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
736 target="$ac_optarg" ;;
738 -v | -verbose | --verbose | --verbos | --verbo | --verb)
741 -version | --version | --versio | --versi | --vers)
742 echo "configure generated by autoconf version 2.13"
746 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
747 # Reject names that are not valid shell variable names.
748 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
749 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
751 ac_package=`echo $ac_package| sed 's/-/_/g'`
756 eval "with_${ac_package}='$ac_optarg'" ;;
758 -without-* | --without-*)
759 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
760 # Reject names that are not valid shell variable names.
761 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
762 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
764 ac_package=`echo $ac_package| sed 's/-/_/g'`
765 eval "with_${ac_package}=no" ;;
768 # Obsolete; use --with-x.
771 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
772 | --x-incl | --x-inc | --x-in | --x-i)
773 ac_prev=x_includes ;;
774 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
775 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
776 x_includes="$ac_optarg" ;;
778 -x-libraries | --x-libraries | --x-librarie | --x-librari \
779 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
780 ac_prev=x_libraries ;;
781 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
782 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
783 x_libraries="$ac_optarg" ;;
785 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
789 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
790 echo "configure: warning: $ac_option: invalid host type" 1>&2
792 if test "x$nonopt" != xNONE; then
793 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
801 if test -n "$ac_prev"; then
802 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
805 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
807 # File descriptor usage:
810 # 2 errors and warnings
811 # 3 some systems may open it to /dev/tty
812 # 4 used on the Kubota Titan
813 # 6 checking for... messages and results
814 # 5 compiler messages saved in config.log
815 if test "$silent" = yes; then
823 This file contains any messages produced by compilers while
824 running configure, to aid debugging if configure makes a mistake.
827 # Strip out --no-create and --no-recursion so they do not pile up.
828 # Also quote any args containing shell metacharacters.
833 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
834 | --no-cr | --no-c) ;;
835 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
836 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
837 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
838 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
839 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
844 # Only set these to C if already set. These must not be set unconditionally
845 # because not all systems understand e.g. LANG=C (notably SCO).
846 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
847 # Non-C LC_CTYPE values break the ctype check.
848 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
849 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
850 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
851 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
853 # confdefs.h avoids OS command line length limits that DEFS can exceed.
854 rm -rf conftest* confdefs.h
855 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
858 # A filename unique to this package, relative to the directory that
859 # configure is in, which we can look for to find out if srcdir is correct.
860 ac_unique_file=Makefile.global.in
862 # Find the source files, if location was not specified.
863 if test -z "$srcdir"; then
864 ac_srcdir_defaulted=yes
865 # Try the directory containing this script, then its parent.
867 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
868 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
870 if test ! -r $srcdir/$ac_unique_file; then
874 ac_srcdir_defaulted=no
876 if test ! -r $srcdir/$ac_unique_file; then
877 if test "$ac_srcdir_defaulted" = yes; then
878 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
880 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
883 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
885 # Prefer explicitly selected file to automatically selected ones.
886 if test -z "$CONFIG_SITE"; then
887 if test "x$prefix" != xNONE; then
888 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
890 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
893 for ac_site_file in $CONFIG_SITE; do
894 if test -r "$ac_site_file"; then
895 echo "loading site script $ac_site_file"
900 if test -r "$cache_file"; then
901 echo "loading cache $cache_file"
904 echo "creating cache $cache_file"
909 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
910 ac_cpp='$CPP $CPPFLAGS'
911 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
912 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
913 cross_compiling=$ac_cv_prog_cc_cross
917 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
918 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
919 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
926 ac_n= ac_c='\c' ac_t=
931 for ac_dir in support $srcdir/support; do
932 if test -f $ac_dir/install-sh; then
934 ac_install_sh="$ac_aux_dir/install-sh -c"
936 elif test -f $ac_dir/install.sh; then
938 ac_install_sh="$ac_aux_dir/install.sh -c"
942 if test -z "$ac_aux_dir"; then
943 { echo "configure: error: can not find install-sh or install.sh in support $srcdir/support" 1>&2; exit 1; }
945 ac_config_guess=$ac_aux_dir/config.guess
946 ac_config_sub=$ac_aux_dir/config.sub
947 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
951 test x"$prefix" = xNONE && prefix="$ac_default_prefix"
956 if test x"$with_largefiles" != x ; then
957 { echo "configure: error: Use --enable-largefiles instead of --with-largefiles" 1>&2; exit 1; }
962 # Extract the first word of "gcc", so it can be a program name with args.
963 set dummy gcc; ac_word=$2
964 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
965 echo "configure:966: checking for $ac_word" >&5
966 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
967 echo $ac_n "(cached) $ac_c" 1>&6
969 if test -n "$CC"; then
970 ac_cv_prog_CC="$CC" # Let the user override the test.
972 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
974 for ac_dir in $ac_dummy; do
975 test -z "$ac_dir" && ac_dir=.
976 if test -f $ac_dir/$ac_word; then
985 if test -n "$CC"; then
986 echo "$ac_t""$CC" 1>&6
988 echo "$ac_t""no" 1>&6
991 if test -z "$CC"; then
992 # Extract the first word of "cc", so it can be a program name with args.
993 set dummy cc; ac_word=$2
994 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
995 echo "configure:996: checking for $ac_word" >&5
996 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
997 echo $ac_n "(cached) $ac_c" 1>&6
999 if test -n "$CC"; then
1000 ac_cv_prog_CC="$CC" # Let the user override the test.
1002 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1005 for ac_dir in $ac_dummy; do
1006 test -z "$ac_dir" && ac_dir=.
1007 if test -f $ac_dir/$ac_word; then
1008 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1009 ac_prog_rejected=yes
1017 if test $ac_prog_rejected = yes; then
1018 # We found a bogon in the path, so make sure we never use it.
1019 set dummy $ac_cv_prog_CC
1021 if test $# -gt 0; then
1022 # We chose a different compiler from the bogus one.
1023 # However, it has the same basename, so the bogon will be chosen
1024 # first if we set CC to just the basename; use the full file name.
1026 set dummy "$ac_dir/$ac_word" "$@"
1034 if test -n "$CC"; then
1035 echo "$ac_t""$CC" 1>&6
1037 echo "$ac_t""no" 1>&6
1040 if test -z "$CC"; then
1041 case "`uname -s`" in
1043 # Extract the first word of "cl", so it can be a program name with args.
1044 set dummy cl; ac_word=$2
1045 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1046 echo "configure:1047: checking for $ac_word" >&5
1047 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1048 echo $ac_n "(cached) $ac_c" 1>&6
1050 if test -n "$CC"; then
1051 ac_cv_prog_CC="$CC" # Let the user override the test.
1053 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1055 for ac_dir in $ac_dummy; do
1056 test -z "$ac_dir" && ac_dir=.
1057 if test -f $ac_dir/$ac_word; then
1066 if test -n "$CC"; then
1067 echo "$ac_t""$CC" 1>&6
1069 echo "$ac_t""no" 1>&6
1074 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1077 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1078 echo "configure:1079: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1081 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1082 ac_cpp='$CPP $CPPFLAGS'
1083 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1084 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1085 cross_compiling=$ac_cv_prog_cc_cross
1087 cat > conftest.$ac_ext << EOF
1089 #line 1090 "configure"
1090 #include "confdefs.h"
1094 if { (eval echo configure:1095: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1095 ac_cv_prog_cc_works=yes
1096 # If we can't run a trivial program, we are probably using a cross compiler.
1097 if (./conftest; exit) 2>/dev/null; then
1098 ac_cv_prog_cc_cross=no
1100 ac_cv_prog_cc_cross=yes
1103 echo "configure: failed program was:" >&5
1104 cat conftest.$ac_ext >&5
1105 ac_cv_prog_cc_works=no
1109 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1110 ac_cpp='$CPP $CPPFLAGS'
1111 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1112 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1113 cross_compiling=$ac_cv_prog_cc_cross
1115 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1116 if test $ac_cv_prog_cc_works = no; then
1117 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1119 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1120 echo "configure:1121: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1121 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1122 cross_compiling=$ac_cv_prog_cc_cross
1124 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1125 echo "configure:1126: checking whether we are using GNU C" >&5
1126 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1127 echo $ac_n "(cached) $ac_c" 1>&6
1129 cat > conftest.c <<EOF
1134 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1135: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1141 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1143 if test $ac_cv_prog_gcc = yes; then
1149 ac_test_CFLAGS="${CFLAGS+set}"
1150 ac_save_CFLAGS="$CFLAGS"
1152 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1153 echo "configure:1154: checking whether ${CC-cc} accepts -g" >&5
1154 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1155 echo $ac_n "(cached) $ac_c" 1>&6
1157 echo 'void f(){}' > conftest.c
1158 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1167 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1168 if test "$ac_test_CFLAGS" = set; then
1169 CFLAGS="$ac_save_CFLAGS"
1170 elif test $ac_cv_prog_cc_g = yes; then
1171 if test "$GCC" = yes; then
1177 if test "$GCC" = yes; then
1184 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1185 echo "configure:1186: checking how to run the C preprocessor" >&5
1186 # On Suns, sometimes $CPP names a directory.
1187 if test -n "$CPP" && test -d "$CPP"; then
1190 if test -z "$CPP"; then
1191 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1192 echo $ac_n "(cached) $ac_c" 1>&6
1194 # This must be in double quotes, not single quotes, because CPP may get
1195 # substituted into the Makefile and "${CC-cc}" will confuse make.
1197 # On the NeXT, cc -E runs the code through the compiler's parser,
1198 # not just through cpp.
1199 cat > conftest.$ac_ext <<EOF
1200 #line 1201 "configure"
1201 #include "confdefs.h"
1205 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1206 { (eval echo configure:1207: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1207 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1208 if test -z "$ac_err"; then
1212 echo "configure: failed program was:" >&5
1213 cat conftest.$ac_ext >&5
1215 CPP="${CC-cc} -E -traditional-cpp"
1216 cat > conftest.$ac_ext <<EOF
1217 #line 1218 "configure"
1218 #include "confdefs.h"
1222 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1223 { (eval echo configure:1224: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1224 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1225 if test -z "$ac_err"; then
1229 echo "configure: failed program was:" >&5
1230 cat conftest.$ac_ext >&5
1232 CPP="${CC-cc} -nologo -E"
1233 cat > conftest.$ac_ext <<EOF
1234 #line 1235 "configure"
1235 #include "confdefs.h"
1239 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1240 { (eval echo configure:1241: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1241 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1242 if test -z "$ac_err"; then
1246 echo "configure: failed program was:" >&5
1247 cat conftest.$ac_ext >&5
1256 ac_cv_prog_CPP="$CPP"
1258 CPP="$ac_cv_prog_CPP"
1260 ac_cv_prog_CPP="$CPP"
1262 echo "$ac_t""$CPP" 1>&6
1264 echo $ac_n "checking for AIX""... $ac_c" 1>&6
1265 echo "configure:1266: checking for AIX" >&5
1266 cat > conftest.$ac_ext <<EOF
1267 #line 1268 "configure"
1268 #include "confdefs.h"
1274 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1275 egrep "yes" >/dev/null 2>&1; then
1277 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
1278 #define _ALL_SOURCE 1
1283 echo "$ac_t""no" 1>&6
1288 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
1289 echo "configure:1290: checking for POSIXized ISC" >&5
1290 if test -d /etc/conf/kconfig.d &&
1291 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
1293 echo "$ac_t""yes" 1>&6
1294 ISC=yes # If later tests want to check for ISC.
1295 cat >> confdefs.h <<\EOF
1296 #define _POSIX_SOURCE 1
1299 if test "$GCC" = yes; then
1305 echo "$ac_t""no" 1>&6
1309 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
1310 echo "configure:1311: checking for object suffix" >&5
1311 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
1312 echo $ac_n "(cached) $ac_c" 1>&6
1315 echo 'int i = 1;' > conftest.$ac_ext
1316 if { (eval echo configure:1317: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1317 for ac_file in conftest.*; do
1320 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
1324 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
1329 echo "$ac_t""$ac_cv_objext" 1>&6
1330 OBJEXT=$ac_cv_objext
1331 ac_objext=$ac_cv_objext
1334 echo $ac_n "checking if $CC supports -c -o file.$ac_objext""... $ac_c" 1>&6
1335 echo "configure:1336: checking if $CC supports -c -o file.$ac_objext" >&5
1336 if eval "test \"`echo '$''{'inn_cv_compiler_c_o'+set}'`\" = set"; then
1337 echo $ac_n "(cached) $ac_c" 1>&6
1339 rm -f -r conftest 2>/dev/null
1342 echo "int some_variable = 0;" > conftest.$ac_ext
1344 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
1345 # that will create temporary files in the current directory regardless of
1346 # the output directory. Thus, making CWD read-only will cause this test
1347 # to fail, enabling locking or at least warning the user not to do parallel
1350 save_CFLAGS="$CFLAGS"
1351 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
1353 if { (eval $ac_compile) 2> out/conftest.err; } \
1354 && test -s out/conftest2.$ac_objext; then
1355 # The compiler can only warn and ignore the option if not recognized
1356 # So say no if there are warnings
1357 if test -s out/conftest.err; then
1358 inn_cv_compiler_c_o=no
1360 inn_cv_compiler_c_o=yes
1363 # Append any errors to the config.log.
1364 cat out/conftest.err 1>&5
1365 inn_cv_compiler_c_o=no
1367 CFLAGS="$save_CFLAGS"
1369 rm -f conftest* out/*
1373 rm -f -r conftest 2>/dev/null
1376 compiler_c_o=$inn_cv_compiler_c_o
1377 echo "$ac_t""$compiler_c_o" 1>&6
1380 # Check whether --enable-libtool or --disable-libtool was given.
1381 if test "${enable_libtool+set}" = set; then
1382 enableval="$enable_libtool"
1383 if test "$enableval" = yes ; then
1388 if test x"$inn_use_libtool" = xyes ; then
1389 # Find the correct PATH separator. Usually this is `:', but
1390 # DJGPP uses `;' like DOS.
1391 if test "X${PATH_SEPARATOR+set}" != Xset; then
1392 UNAME=${UNAME-`uname 2>/dev/null`}
1394 *-DOS) lt_cv_sys_path_separator=';' ;;
1395 *) lt_cv_sys_path_separator=':' ;;
1397 PATH_SEPARATOR=$lt_cv_sys_path_separator
1400 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
1401 echo "configure:1402: checking for Cygwin environment" >&5
1402 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
1403 echo $ac_n "(cached) $ac_c" 1>&6
1405 cat > conftest.$ac_ext <<EOF
1406 #line 1407 "configure"
1407 #include "confdefs.h"
1412 #define __CYGWIN__ __CYGWIN32__
1417 if { (eval echo configure:1418: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1421 echo "configure: failed program was:" >&5
1422 cat conftest.$ac_ext >&5
1430 echo "$ac_t""$ac_cv_cygwin" 1>&6
1432 test "$ac_cv_cygwin" = yes && CYGWIN=yes
1433 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
1434 echo "configure:1435: checking for mingw32 environment" >&5
1435 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
1436 echo $ac_n "(cached) $ac_c" 1>&6
1438 cat > conftest.$ac_ext <<EOF
1439 #line 1440 "configure"
1440 #include "confdefs.h"
1446 if { (eval echo configure:1447: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1450 echo "configure: failed program was:" >&5
1451 cat conftest.$ac_ext >&5
1459 echo "$ac_t""$ac_cv_mingw32" 1>&6
1461 test "$ac_cv_mingw32" = yes && MINGW32=yes
1462 # Check whether --enable-shared or --disable-shared was given.
1463 if test "${enable_shared+set}" = set; then
1464 enableval="$enable_shared"
1465 p=${PACKAGE-default}
1467 yes) enable_shared=yes ;;
1468 no) enable_shared=no ;;
1471 # Look at the argument we got. We use all the common list separators.
1472 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1473 for pkg in $enableval; do
1474 if test "X$pkg" = "X$p"; then
1485 # Check whether --enable-static or --disable-static was given.
1486 if test "${enable_static+set}" = set; then
1487 enableval="$enable_static"
1488 p=${PACKAGE-default}
1490 yes) enable_static=yes ;;
1491 no) enable_static=no ;;
1494 # Look at the argument we got. We use all the common list separators.
1495 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1496 for pkg in $enableval; do
1497 if test "X$pkg" = "X$p"; then
1508 # Check whether --enable-fast-install or --disable-fast-install was given.
1509 if test "${enable_fast_install+set}" = set; then
1510 enableval="$enable_fast_install"
1511 p=${PACKAGE-default}
1513 yes) enable_fast_install=yes ;;
1514 no) enable_fast_install=no ;;
1516 enable_fast_install=no
1517 # Look at the argument we got. We use all the common list separators.
1518 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1519 for pkg in $enableval; do
1520 if test "X$pkg" = "X$p"; then
1521 enable_fast_install=yes
1528 enable_fast_install=yes
1532 # Make sure we can run config.sub.
1533 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1534 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1537 echo $ac_n "checking host system type""... $ac_c" 1>&6
1538 echo "configure:1539: checking host system type" >&5
1541 case "$host_alias" in
1545 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1546 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1548 *) host_alias=$nonopt ;;
1552 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1553 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1554 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1555 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1556 echo "$ac_t""$host" 1>&6
1558 echo $ac_n "checking build system type""... $ac_c" 1>&6
1559 echo "configure:1560: checking build system type" >&5
1562 case "$build_alias" in
1565 NONE) build_alias=$host_alias ;;
1566 *) build_alias=$nonopt ;;
1570 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1571 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1572 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1573 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1574 echo "$ac_t""$build" 1>&6
1576 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1577 if test "${with_gnu_ld+set}" = set; then
1578 withval="$with_gnu_ld"
1579 test "$withval" = no || with_gnu_ld=yes
1585 if test "$GCC" = yes; then
1586 # Check if gcc -print-prog-name=ld gives a path.
1587 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1588 echo "configure:1589: checking for ld used by GCC" >&5
1591 # gcc leaves a trailing carriage return which upsets mingw
1592 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1594 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1597 # Accept absolute paths.
1598 [\\/]* | [A-Za-z]:[\\/]*)
1599 re_direlt='/[^/][^/]*/\.\./'
1600 # Canonicalize the path of ld
1601 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1602 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1603 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1605 test -z "$LD" && LD="$ac_prog"
1608 # If it fails, then pretend we aren't using GCC.
1612 # If it is relative, then search for the first ld in PATH.
1616 elif test "$with_gnu_ld" = yes; then
1617 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1618 echo "configure:1619: checking for GNU ld" >&5
1620 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1621 echo "configure:1622: checking for non-GNU ld" >&5
1623 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1624 echo $ac_n "(cached) $ac_c" 1>&6
1626 if test -z "$LD"; then
1627 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1628 for ac_dir in $PATH; do
1629 test -z "$ac_dir" && ac_dir=.
1630 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1631 lt_cv_path_LD="$ac_dir/$ac_prog"
1632 # Check to see if the program is GNU ld. I'd rather use --version,
1633 # but apparently some GNU ld's only accept -v.
1634 # Break only if it was the GNU/non-GNU ld that we prefer.
1635 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1636 test "$with_gnu_ld" != no && break
1638 test "$with_gnu_ld" != yes && break
1644 lt_cv_path_LD="$LD" # Let the user override the test with a path.
1649 if test -n "$LD"; then
1650 echo "$ac_t""$LD" 1>&6
1652 echo "$ac_t""no" 1>&6
1654 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1655 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1656 echo "configure:1657: checking if the linker ($LD) is GNU ld" >&5
1657 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1658 echo $ac_n "(cached) $ac_c" 1>&6
1660 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1661 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1662 lt_cv_prog_gnu_ld=yes
1664 lt_cv_prog_gnu_ld=no
1668 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1669 with_gnu_ld=$lt_cv_prog_gnu_ld
1672 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1673 echo "configure:1674: checking for $LD option to reload object files" >&5
1674 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1675 echo $ac_n "(cached) $ac_c" 1>&6
1677 lt_cv_ld_reload_flag='-r'
1680 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1681 reload_flag=$lt_cv_ld_reload_flag
1682 test -n "$reload_flag" && reload_flag=" $reload_flag"
1684 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1685 echo "configure:1686: checking for BSD-compatible nm" >&5
1686 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1687 echo $ac_n "(cached) $ac_c" 1>&6
1689 if test -n "$NM"; then
1690 # Let the user override the test.
1693 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1694 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1695 test -z "$ac_dir" && ac_dir=.
1696 tmp_nm=$ac_dir/${ac_tool_prefix}nm
1697 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1698 # Check to see if the nm accepts a BSD-compat flag.
1699 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1700 # nm: unknown option "B" ignored
1701 # Tru64's nm complains that /dev/null is an invalid object file
1702 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1703 lt_cv_path_NM="$tmp_nm -B"
1705 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1706 lt_cv_path_NM="$tmp_nm -p"
1709 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1710 continue # so that we can try to find one that supports BSD flags
1715 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1720 echo "$ac_t""$NM" 1>&6
1722 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1723 echo "configure:1724: checking whether ln -s works" >&5
1724 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1725 echo $ac_n "(cached) $ac_c" 1>&6
1728 if ln -s X conftestdata 2>/dev/null
1731 ac_cv_prog_LN_S="ln -s"
1736 LN_S="$ac_cv_prog_LN_S"
1737 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1738 echo "$ac_t""yes" 1>&6
1740 echo "$ac_t""no" 1>&6
1743 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1744 echo "configure:1745: checking how to recognise dependant libraries" >&5
1745 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1746 echo $ac_n "(cached) $ac_c" 1>&6
1748 lt_cv_file_magic_cmd='$MAGIC_CMD'
1749 lt_cv_file_magic_test_file=
1750 lt_cv_deplibs_check_method='unknown'
1751 # Need to set the preceding variable on all platforms that support
1752 # interlibrary dependencies.
1753 # 'none' -- dependencies not supported.
1754 # `unknown' -- same as none, but documents that we really don't know.
1755 # 'pass_all' -- all dependencies passed with no checks.
1756 # 'test_compile' -- check by making test program.
1757 # 'file_magic [[regex]]' -- check by looking for files in library path
1758 # which responds to the $file_magic_cmd with a given egrep regex.
1759 # If you have `file' or equivalent on your system and you're not sure
1760 # whether `pass_all' will *always* work, you probably want this one.
1764 lt_cv_deplibs_check_method=pass_all
1768 lt_cv_deplibs_check_method=pass_all
1772 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1773 lt_cv_file_magic_cmd='/usr/bin/file -L'
1774 lt_cv_file_magic_test_file=/shlib/libc.so
1777 cygwin* | mingw* | pw32*)
1778 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1779 lt_cv_file_magic_cmd='$OBJDUMP -f'
1782 darwin* | rhapsody*)
1783 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
1784 lt_cv_file_magic_cmd='/usr/bin/file -L'
1786 rhapsody* | darwin1.[012])
1787 lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
1790 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
1796 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1799 # Not sure whether the presence of OpenBSD here was a mistake.
1800 # Let's accept both of them until this is cleared up.
1801 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1802 lt_cv_file_magic_cmd=/usr/bin/file
1803 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1807 lt_cv_deplibs_check_method=pass_all
1812 lt_cv_deplibs_check_method=pass_all
1816 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
1817 lt_cv_file_magic_cmd=/usr/bin/file
1818 lt_cv_file_magic_test_file=/usr/lib/libc.sl
1824 # this will be overridden with pass_all, but let us keep it just in case
1825 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
1829 *-32|*"-32 ") libmagic=32-bit;;
1830 *-n32|*"-n32 ") libmagic=N32;;
1831 *-64|*"-64 ") libmagic=64-bit;;
1832 *) libmagic=never-match;;
1834 # this will be overridden with pass_all, but let us keep it just in case
1835 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
1838 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
1839 lt_cv_deplibs_check_method=pass_all
1842 # This must be Linux ELF.
1845 alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
1846 lt_cv_deplibs_check_method=pass_all ;;
1848 # glibc up to 2.1.1 does not perform some relocations on ARM
1849 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
1851 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
1855 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1856 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
1858 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
1863 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
1864 lt_cv_file_magic_cmd=/usr/bin/file
1865 lt_cv_file_magic_test_file=/usr/lib/libnls.so
1869 lt_cv_file_magic_cmd=/usr/bin/file
1870 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1871 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
1872 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
1874 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
1878 osf3* | osf4* | osf5*)
1879 # this will be overridden with pass_all, but let us keep it just in case
1880 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
1881 lt_cv_file_magic_test_file=/shlib/libc.so
1882 lt_cv_deplibs_check_method=pass_all
1886 lt_cv_deplibs_check_method=pass_all
1890 lt_cv_deplibs_check_method=pass_all
1891 lt_cv_file_magic_test_file=/lib/libc.so
1894 sysv5uw[78]* | sysv4*uw2*)
1895 lt_cv_deplibs_check_method=pass_all
1898 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
1899 case $host_vendor in
1901 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]'
1902 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
1905 lt_cv_deplibs_check_method=pass_all
1908 lt_cv_file_magic_cmd='/bin/file'
1909 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
1912 lt_cv_file_magic_cmd='/bin/file'
1913 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
1914 lt_cv_file_magic_test_file=/lib/libc.so
1922 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
1923 file_magic_cmd=$lt_cv_file_magic_cmd
1924 deplibs_check_method=$lt_cv_deplibs_check_method
1928 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1929 echo "configure:1930: checking for executable suffix" >&5
1930 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1931 echo $ac_n "(cached) $ac_c" 1>&6
1933 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1937 echo 'int main () { return 0; }' > conftest.$ac_ext
1939 if { (eval echo configure:1940: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1940 for file in conftest.*; do
1942 *.$ac_ext | *.c | *.o | *.obj) ;;
1943 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1947 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1950 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1955 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1956 echo "$ac_t""${ac_cv_exeext}" 1>&6
1959 if test $host != $build; then
1960 ac_tool_prefix=${host_alias}-
1968 # Check for command to grab the raw symbol name followed by C symbol from nm.
1969 echo $ac_n "checking command to parse $NM output""... $ac_c" 1>&6
1970 echo "configure:1971: checking command to parse $NM output" >&5
1971 if eval "test \"`echo '$''{'lt_cv_sys_global_symbol_pipe'+set}'`\" = set"; then
1972 echo $ac_n "(cached) $ac_c" 1>&6
1975 # These are sane defaults that work on at least a few old systems.
1976 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
1978 # Character class describing NM global symbol codes.
1979 symcode='[BCDEGRST]'
1981 # Regexp to match symbols that can be accessed directly from C.
1982 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
1984 # Transform the above into a raw symbol and a C symbol.
1985 symxfrm='\1 \2\3 \3'
1987 # Transform an extracted symbol line into a proper C declaration
1988 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
1990 # Transform an extracted symbol line into symbol name and symbol address
1991 lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
1993 # Define system-specific variables.
1998 cygwin* | mingw* | pw32*)
1999 symcode='[ABCDGISTW]'
2001 hpux*) # Its linker distinguishes data from code symbols
2002 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
2003 lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
2006 symcode='[BCDEGRST]'
2016 # Handle CRLF in mingw tool chain
2020 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
2024 # If we're using GNU nm, then use its standard symbol codes.
2025 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
2026 symcode='[ABCDGISTW]'
2029 # Try without a prefix undercore, then with it.
2030 for ac_symprfx in "" "_"; do
2032 # Write the raw and C identifiers.
2033 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
2035 # Check to see that the pipe works correctly.
2038 cat > conftest.$ac_ext <<EOF
2043 void nm_test_func(){}
2047 int main(){nm_test_var='a';nm_test_func();return(0);}
2050 if { (eval echo configure:2051: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2051 # Now try to grab the symbols.
2053 if { (eval echo configure:2054: \"$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
2054 # Try sorting and uniquifying the output.
2055 if sort "$nlist" | uniq > "$nlist"T; then
2056 mv -f "$nlist"T "$nlist"
2061 # Make sure that we snagged all the symbols we need.
2062 if egrep ' nm_test_var$' "$nlist" >/dev/null; then
2063 if egrep ' nm_test_func$' "$nlist" >/dev/null; then
2064 cat <<EOF > conftest.$ac_ext
2070 # Now generate the symbol file.
2071 eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
2073 cat <<EOF >> conftest.$ac_ext
2074 #if defined (__STDC__) && __STDC__
2075 # define lt_ptr void *
2077 # define lt_ptr char *
2081 /* The mapping between symbol names and symbols. */
2086 lt_preloaded_symbols[] =
2089 sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
2090 cat <<\EOF >> conftest.$ac_ext
2098 # Now try linking the two files.
2099 mv conftest.$ac_objext conftstm.$ac_objext
2101 save_CFLAGS="$CFLAGS"
2102 LIBS="conftstm.$ac_objext"
2103 CFLAGS="$CFLAGS$no_builtin_flag"
2104 if { (eval echo configure:2105: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2108 CFLAGS="$save_CFLAGS"
2110 echo "cannot find nm_test_func in $nlist" >&5
2113 echo "cannot find nm_test_var in $nlist" >&5
2116 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
2119 echo "$progname: failed program was:" >&5
2120 cat conftest.$ac_ext >&5
2122 rm -f conftest* conftst*
2124 # Do not use the global_symbol_pipe unless it works.
2125 if test "$pipe_works" = yes; then
2128 lt_cv_sys_global_symbol_pipe=
2134 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
2135 if test -z "$lt_cv_sys_global_symbol_pipe"; then
2136 global_symbol_to_cdecl=
2137 global_symbol_to_c_name_address=
2139 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
2140 global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
2142 if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
2144 echo "$ac_t""failed" 1>&6
2146 echo "$ac_t""ok" 1>&6
2149 for ac_hdr in dlfcn.h
2151 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2152 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2153 echo "configure:2154: checking for $ac_hdr" >&5
2154 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2155 echo $ac_n "(cached) $ac_c" 1>&6
2157 cat > conftest.$ac_ext <<EOF
2158 #line 2159 "configure"
2159 #include "confdefs.h"
2162 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2163 { (eval echo configure:2164: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2164 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2165 if test -z "$ac_err"; then
2167 eval "ac_cv_header_$ac_safe=yes"
2170 echo "configure: failed program was:" >&5
2171 cat conftest.$ac_ext >&5
2173 eval "ac_cv_header_$ac_safe=no"
2177 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2178 echo "$ac_t""yes" 1>&6
2179 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2180 cat >> confdefs.h <<EOF
2181 #define $ac_tr_hdr 1
2185 echo "$ac_t""no" 1>&6
2193 # Only perform the check for file, if the check method requires it
2194 case $deplibs_check_method in
2196 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2197 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
2198 echo "configure:2199: checking for ${ac_tool_prefix}file" >&5
2199 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2200 echo $ac_n "(cached) $ac_c" 1>&6
2204 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2207 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2210 ac_save_MAGIC_CMD="$MAGIC_CMD"
2211 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2212 ac_dummy="/usr/bin:$PATH"
2213 for ac_dir in $ac_dummy; do
2214 test -z "$ac_dir" && ac_dir=.
2215 if test -f $ac_dir/${ac_tool_prefix}file; then
2216 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
2217 if test -n "$file_magic_test_file"; then
2218 case $deplibs_check_method in
2220 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2221 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2222 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2223 egrep "$file_magic_regex" > /dev/null; then
2228 *** Warning: the command libtool uses to detect shared libraries,
2229 *** $file_magic_cmd, produces output that libtool cannot recognize.
2230 *** The result is that libtool may fail to recognize shared libraries
2231 *** as such. This will affect the creation of libtool libraries that
2232 *** depend on shared libraries, but programs linked with such libtool
2233 *** libraries will work regardless of this problem. Nevertheless, you
2234 *** may want to report the problem to your system manager and/or to
2235 *** bug-libtool@gnu.org
2245 MAGIC_CMD="$ac_save_MAGIC_CMD"
2250 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2251 if test -n "$MAGIC_CMD"; then
2252 echo "$ac_t""$MAGIC_CMD" 1>&6
2254 echo "$ac_t""no" 1>&6
2257 if test -z "$lt_cv_path_MAGIC_CMD"; then
2258 if test -n "$ac_tool_prefix"; then
2259 echo $ac_n "checking for file""... $ac_c" 1>&6
2260 echo "configure:2261: checking for file" >&5
2261 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2262 echo $ac_n "(cached) $ac_c" 1>&6
2266 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2269 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2272 ac_save_MAGIC_CMD="$MAGIC_CMD"
2273 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2274 ac_dummy="/usr/bin:$PATH"
2275 for ac_dir in $ac_dummy; do
2276 test -z "$ac_dir" && ac_dir=.
2277 if test -f $ac_dir/file; then
2278 lt_cv_path_MAGIC_CMD="$ac_dir/file"
2279 if test -n "$file_magic_test_file"; then
2280 case $deplibs_check_method in
2282 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2283 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2284 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2285 egrep "$file_magic_regex" > /dev/null; then
2290 *** Warning: the command libtool uses to detect shared libraries,
2291 *** $file_magic_cmd, produces output that libtool cannot recognize.
2292 *** The result is that libtool may fail to recognize shared libraries
2293 *** as such. This will affect the creation of libtool libraries that
2294 *** depend on shared libraries, but programs linked with such libtool
2295 *** libraries will work regardless of this problem. Nevertheless, you
2296 *** may want to report the problem to your system manager and/or to
2297 *** bug-libtool@gnu.org
2307 MAGIC_CMD="$ac_save_MAGIC_CMD"
2312 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2313 if test -n "$MAGIC_CMD"; then
2314 echo "$ac_t""$MAGIC_CMD" 1>&6
2316 echo "$ac_t""no" 1>&6
2328 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2329 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2330 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2331 echo "configure:2332: checking for $ac_word" >&5
2332 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2333 echo $ac_n "(cached) $ac_c" 1>&6
2335 if test -n "$RANLIB"; then
2336 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2338 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2340 for ac_dir in $ac_dummy; do
2341 test -z "$ac_dir" && ac_dir=.
2342 if test -f $ac_dir/$ac_word; then
2343 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2350 RANLIB="$ac_cv_prog_RANLIB"
2351 if test -n "$RANLIB"; then
2352 echo "$ac_t""$RANLIB" 1>&6
2354 echo "$ac_t""no" 1>&6
2358 if test -z "$ac_cv_prog_RANLIB"; then
2359 if test -n "$ac_tool_prefix"; then
2360 # Extract the first word of "ranlib", so it can be a program name with args.
2361 set dummy ranlib; ac_word=$2
2362 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2363 echo "configure:2364: checking for $ac_word" >&5
2364 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2365 echo $ac_n "(cached) $ac_c" 1>&6
2367 if test -n "$RANLIB"; then
2368 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2370 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2372 for ac_dir in $ac_dummy; do
2373 test -z "$ac_dir" && ac_dir=.
2374 if test -f $ac_dir/$ac_word; then
2375 ac_cv_prog_RANLIB="ranlib"
2380 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2383 RANLIB="$ac_cv_prog_RANLIB"
2384 if test -n "$RANLIB"; then
2385 echo "$ac_t""$RANLIB" 1>&6
2387 echo "$ac_t""no" 1>&6
2395 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2396 set dummy ${ac_tool_prefix}strip; ac_word=$2
2397 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2398 echo "configure:2399: checking for $ac_word" >&5
2399 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2400 echo $ac_n "(cached) $ac_c" 1>&6
2402 if test -n "$STRIP"; then
2403 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2405 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2407 for ac_dir in $ac_dummy; do
2408 test -z "$ac_dir" && ac_dir=.
2409 if test -f $ac_dir/$ac_word; then
2410 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2417 STRIP="$ac_cv_prog_STRIP"
2418 if test -n "$STRIP"; then
2419 echo "$ac_t""$STRIP" 1>&6
2421 echo "$ac_t""no" 1>&6
2425 if test -z "$ac_cv_prog_STRIP"; then
2426 if test -n "$ac_tool_prefix"; then
2427 # Extract the first word of "strip", so it can be a program name with args.
2428 set dummy strip; ac_word=$2
2429 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2430 echo "configure:2431: checking for $ac_word" >&5
2431 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2432 echo $ac_n "(cached) $ac_c" 1>&6
2434 if test -n "$STRIP"; then
2435 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2437 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2439 for ac_dir in $ac_dummy; do
2440 test -z "$ac_dir" && ac_dir=.
2441 if test -f $ac_dir/$ac_word; then
2442 ac_cv_prog_STRIP="strip"
2447 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2450 STRIP="$ac_cv_prog_STRIP"
2451 if test -n "$STRIP"; then
2452 echo "$ac_t""$STRIP" 1>&6
2454 echo "$ac_t""no" 1>&6
2466 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2467 if test "${enable_libtool_lock+set}" = set; then
2468 enableval="$enable_libtool_lock"
2472 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
2474 # Some flags need to be propagated to the compiler or linker for good
2478 # Find out which ABI we are using.
2479 echo '#line 2480 "configure"' > conftest.$ac_ext
2480 if { (eval echo configure:2481: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2481 case `/usr/bin/file conftest.$ac_objext` in
2497 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2498 SAVE_CFLAGS="$CFLAGS"
2499 CFLAGS="$CFLAGS -belf"
2500 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2501 echo "configure:2502: checking whether the C compiler needs -belf" >&5
2502 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2503 echo $ac_n "(cached) $ac_c" 1>&6
2507 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2508 ac_cpp='$CPP $CPPFLAGS'
2509 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2510 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2511 cross_compiling=$ac_cv_prog_cc_cross
2513 cat > conftest.$ac_ext <<EOF
2514 #line 2515 "configure"
2515 #include "confdefs.h"
2521 if { (eval echo configure:2522: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2523 lt_cv_cc_needs_belf=yes
2525 echo "configure: failed program was:" >&5
2526 cat conftest.$ac_ext >&5
2528 lt_cv_cc_needs_belf=no
2532 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2533 ac_cpp='$CPP $CPPFLAGS'
2534 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2535 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2536 cross_compiling=$ac_cv_prog_cc_cross
2540 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2541 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2542 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2543 CFLAGS="$SAVE_CFLAGS"
2550 # Sed substitution that helps us do robust quoting. It backslashifies
2551 # metacharacters that are still active within double-quoted strings.
2552 Xsed='sed -e s/^X//'
2553 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
2555 # Same as above, but do not quote variable references.
2556 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
2558 # Sed substitution to delay expansion of an escaped shell variable in a
2559 # double_quote_subst'ed string.
2560 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2566 default_ofile=libtool
2567 can_build_shared=yes
2569 # All known linkers require a `.a' archive for static linking (except M$VC,
2570 # which needs '.lib').
2572 ltmain="$ac_aux_dir/ltmain.sh"
2573 ofile="$default_ofile"
2574 with_gnu_ld="$lt_cv_prog_gnu_ld"
2575 need_locks="$enable_libtool_lock"
2578 old_CFLAGS="$CFLAGS"
2580 # Set sane defaults for various variables
2581 test -z "$AR" && AR=ar
2582 test -z "$AR_FLAGS" && AR_FLAGS=cru
2583 test -z "$AS" && AS=as
2584 test -z "$CC" && CC=cc
2585 test -z "$DLLTOOL" && DLLTOOL=dlltool
2586 test -z "$LD" && LD=ld
2587 test -z "$LN_S" && LN_S="ln -s"
2588 test -z "$MAGIC_CMD" && MAGIC_CMD=file
2589 test -z "$NM" && NM=nm
2590 test -z "$OBJDUMP" && OBJDUMP=objdump
2591 test -z "$RANLIB" && RANLIB=:
2592 test -z "$STRIP" && STRIP=:
2593 test -z "$ac_objext" && ac_objext=o
2595 if test x"$host" != x"$build"; then
2596 ac_tool_prefix=${host_alias}-
2601 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
2604 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
2609 # AIX sometimes has problems with the GCC collect2 program. For some
2610 # reason, if we set the COLLECT_NAMES environment variable, the problems
2611 # vanish in a puff of smoke.
2612 if test "X${COLLECT_NAMES+set}" != Xset; then
2614 export COLLECT_NAMES
2619 # Determine commands to create old-style static archives.
2620 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
2621 old_postinstall_cmds='chmod 644 $oldlib'
2622 old_postuninstall_cmds=
2624 if test -n "$RANLIB"; then
2627 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
2630 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
2633 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
2636 # Allow CC to be a program name with arguments.
2640 ## FIXME: this should be a separate macro
2642 echo $ac_n "checking for objdir""... $ac_c" 1>&6
2643 echo "configure:2644: checking for objdir" >&5
2644 rm -f .libs 2>/dev/null
2645 mkdir .libs 2>/dev/null
2646 if test -d .libs; then
2649 # MS-DOS does not allow filenames that begin with a dot.
2652 rmdir .libs 2>/dev/null
2653 echo "$ac_t""$objdir" 1>&6
2658 ## FIXME: this should be a separate macro
2660 # Check whether --with-pic or --without-pic was given.
2661 if test "${with_pic+set}" = set; then
2668 test -z "$pic_mode" && pic_mode=default
2670 # We assume here that the value for lt_cv_prog_cc_pic will not be cached
2671 # in isolation, and that seeing it set (from the cache) indicates that
2672 # the associated values are set (in the cache) correctly too.
2673 echo $ac_n "checking for $compiler option to produce PIC""... $ac_c" 1>&6
2674 echo "configure:2675: checking for $compiler option to produce PIC" >&5
2675 if eval "test \"`echo '$''{'lt_cv_prog_cc_pic'+set}'`\" = set"; then
2676 echo $ac_n "(cached) $ac_c" 1>&6
2679 lt_cv_prog_cc_shlib=
2681 lt_cv_prog_cc_static=
2682 lt_cv_prog_cc_no_builtin=
2683 lt_cv_prog_cc_can_build_shared=$can_build_shared
2685 if test "$GCC" = yes; then
2686 lt_cv_prog_cc_wl='-Wl,'
2687 lt_cv_prog_cc_static='-static'
2691 # Below there is a dirty hack to force normal static linking with -ldl
2692 # The problem is because libdl dynamically linked with both libc and
2693 # libC (AIX C++ library), which obviously doesn't included in libraries
2694 # list by gcc. This cause undefined symbols with -static flags.
2695 # This hack allows C programs to be linked with "-static -ldl", but
2696 # not sure about C++ programs.
2697 lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
2700 # FIXME: we need at least 68020 code to build shared libraries, but
2701 # adding the `-m68020' flag to GCC prevents building anything better,
2703 lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
2705 beos* | irix5* | irix6* | osf3* | osf4* | osf5*)
2706 # PIC is the default for these OSes.
2708 darwin* | rhapsody*)
2709 # PIC is the default on this platform
2710 # Common symbols not allowed in MH_DYLIB files
2711 lt_cv_prog_cc_pic='-fno-common'
2713 cygwin* | mingw* | pw32* | os2*)
2714 # This hack is so that the source file can tell whether it is being
2715 # built for inclusion in a dll (and should export symbols for example).
2716 lt_cv_prog_cc_pic='-DDLL_EXPORT'
2719 if test -d /usr/nec; then
2720 lt_cv_prog_cc_pic=-Kconform_pic
2724 lt_cv_prog_cc_pic='-fPIC'
2728 # PORTME Check for PIC flags for the system compiler.
2730 aix3* | aix4* | aix5*)
2731 lt_cv_prog_cc_wl='-Wl,'
2732 # All AIX code is PIC.
2733 if test "$host_cpu" = ia64; then
2734 # AIX 5 now supports IA64 processor
2735 lt_cv_prog_cc_static='-Bstatic'
2737 lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
2741 hpux9* | hpux10* | hpux11*)
2742 # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
2743 lt_cv_prog_cc_wl='-Wl,'
2744 lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
2745 lt_cv_prog_cc_pic='+Z'
2749 lt_cv_prog_cc_wl='-Wl,'
2750 lt_cv_prog_cc_static='-non_shared'
2751 # PIC (with -KPIC) is the default.
2754 cygwin* | mingw* | pw32* | os2*)
2755 # This hack is so that the source file can tell whether it is being
2756 # built for inclusion in a dll (and should export symbols for example).
2757 lt_cv_prog_cc_pic='-DDLL_EXPORT'
2761 lt_cv_prog_cc_pic='-KPIC'
2762 lt_cv_prog_cc_static='-Bstatic'
2765 osf3* | osf4* | osf5*)
2766 # All OSF/1 code is PIC.
2767 lt_cv_prog_cc_wl='-Wl,'
2768 lt_cv_prog_cc_static='-non_shared'
2772 lt_cv_prog_cc_pic='-Kpic'
2773 lt_cv_prog_cc_static='-dn'
2774 lt_cv_prog_cc_shlib='-belf'
2778 lt_cv_prog_cc_pic='-KPIC'
2779 lt_cv_prog_cc_static='-Bstatic'
2780 lt_cv_prog_cc_wl='-Wl,'
2784 lt_cv_prog_cc_pic='-PIC'
2785 lt_cv_prog_cc_static='-Bstatic'
2786 lt_cv_prog_cc_wl='-Qoption ld '
2789 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2790 lt_cv_prog_cc_pic='-KPIC'
2791 lt_cv_prog_cc_static='-Bstatic'
2792 if test "x$host_vendor" = xsni; then
2793 lt_cv_prog_cc_wl='-LD'
2795 lt_cv_prog_cc_wl='-Wl,'
2800 lt_cv_prog_cc_pic='-pic'
2801 lt_cv_prog_cc_static='-Bstatic'
2805 if test -d /usr/nec ;then
2806 lt_cv_prog_cc_pic='-Kconform_pic'
2807 lt_cv_prog_cc_static='-Bstatic'
2812 lt_cv_prog_cc_can_build_shared=no
2819 if test -z "$lt_cv_prog_cc_pic"; then
2820 echo "$ac_t""none" 1>&6
2822 echo "$ac_t""$lt_cv_prog_cc_pic" 1>&6
2824 # Check to make sure the pic_flag actually works.
2825 echo $ac_n "checking if $compiler PIC flag $lt_cv_prog_cc_pic works""... $ac_c" 1>&6
2826 echo "configure:2827: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
2827 if eval "test \"`echo '$''{'lt_cv_prog_cc_pic_works'+set}'`\" = set"; then
2828 echo $ac_n "(cached) $ac_c" 1>&6
2830 save_CFLAGS="$CFLAGS"
2831 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
2832 cat > conftest.$ac_ext <<EOF
2833 #line 2834 "configure"
2834 #include "confdefs.h"
2840 if { (eval echo configure:2841: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2843 hpux9* | hpux10* | hpux11*)
2844 # On HP-UX, both CC and GCC only warn that PIC is supported... then
2845 # they create non-PIC objects. So, if there were any warnings, we
2846 # assume that PIC is not supported.
2847 if test -s conftest.err; then
2848 lt_cv_prog_cc_pic_works=no
2850 lt_cv_prog_cc_pic_works=yes
2854 lt_cv_prog_cc_pic_works=yes
2859 echo "configure: failed program was:" >&5
2860 cat conftest.$ac_ext >&5
2862 lt_cv_prog_cc_pic_works=no
2866 CFLAGS="$save_CFLAGS"
2871 if test "X$lt_cv_prog_cc_pic_works" = Xno; then
2873 lt_cv_prog_cc_can_build_shared=no
2875 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
2878 echo "$ac_t""$lt_cv_prog_cc_pic_works" 1>&6
2883 # Check for any special shared library compilation flags.
2884 if test -n "$lt_cv_prog_cc_shlib"; then
2885 echo "configure: warning: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" 1>&2
2886 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
2888 echo "configure: warning: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" 1>&2
2889 lt_cv_prog_cc_can_build_shared=no
2893 ## FIXME: this should be a separate macro
2895 echo $ac_n "checking if $compiler static flag $lt_cv_prog_cc_static works""... $ac_c" 1>&6
2896 echo "configure:2897: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
2897 if eval "test \"`echo '$''{'lt_cv_prog_cc_static_works'+set}'`\" = set"; then
2898 echo $ac_n "(cached) $ac_c" 1>&6
2900 lt_cv_prog_cc_static_works=no
2901 save_LDFLAGS="$LDFLAGS"
2902 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
2903 cat > conftest.$ac_ext <<EOF
2904 #line 2905 "configure"
2905 #include "confdefs.h"
2911 if { (eval echo configure:2912: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2913 lt_cv_prog_cc_static_works=yes
2915 echo "configure: failed program was:" >&5
2916 cat conftest.$ac_ext >&5
2919 LDFLAGS="$save_LDFLAGS"
2924 # Belt *and* braces to stop my trousers falling down:
2925 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
2926 echo "$ac_t""$lt_cv_prog_cc_static_works" 1>&6
2928 pic_flag="$lt_cv_prog_cc_pic"
2929 special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
2930 wl="$lt_cv_prog_cc_wl"
2931 link_static_flag="$lt_cv_prog_cc_static"
2932 no_builtin_flag="$lt_cv_prog_cc_no_builtin"
2933 can_build_shared="$lt_cv_prog_cc_can_build_shared"
2938 ## FIXME: this should be a separate macro
2940 # Check to see if options -o and -c are simultaneously supported by compiler
2941 echo $ac_n "checking if $compiler supports -c -o file.$ac_objext""... $ac_c" 1>&6
2942 echo "configure:2943: checking if $compiler supports -c -o file.$ac_objext" >&5
2943 if eval "test \"`echo '$''{'lt_cv_compiler_c_o'+set}'`\" = set"; then
2944 echo $ac_n "(cached) $ac_c" 1>&6
2947 $rm -r conftest 2>/dev/null
2950 echo "int some_variable = 0;" > conftest.$ac_ext
2952 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
2953 # that will create temporary files in the current directory regardless of
2954 # the output directory. Thus, making CWD read-only will cause this test
2955 # to fail, enabling locking or at least warning the user not to do parallel
2958 save_CFLAGS="$CFLAGS"
2959 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
2961 if { (eval echo configure:2962: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
2962 # The compiler can only warn and ignore the option if not recognized
2963 # So say no if there are warnings
2964 if test -s out/conftest.err; then
2965 lt_cv_compiler_c_o=no
2967 lt_cv_compiler_c_o=yes
2970 # Append any errors to the config.log.
2971 cat out/conftest.err 1>&5
2972 lt_cv_compiler_c_o=no
2974 CFLAGS="$save_CFLAGS"
2980 $rm -r conftest 2>/dev/null
2984 compiler_c_o=$lt_cv_compiler_c_o
2985 echo "$ac_t""$compiler_c_o" 1>&6
2987 if test x"$compiler_c_o" = x"yes"; then
2988 # Check to see if we can write to a .lo
2989 echo $ac_n "checking if $compiler supports -c -o file.lo""... $ac_c" 1>&6
2990 echo "configure:2991: checking if $compiler supports -c -o file.lo" >&5
2991 if eval "test \"`echo '$''{'lt_cv_compiler_o_lo'+set}'`\" = set"; then
2992 echo $ac_n "(cached) $ac_c" 1>&6
2995 lt_cv_compiler_o_lo=no
2996 save_CFLAGS="$CFLAGS"
2997 CFLAGS="$CFLAGS -c -o conftest.lo"
2998 save_objext="$ac_objext"
3000 cat > conftest.$ac_ext <<EOF
3001 #line 3002 "configure"
3002 #include "confdefs.h"
3005 int some_variable = 0;
3008 if { (eval echo configure:3009: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3010 # The compiler can only warn and ignore the option if not recognized
3011 # So say no if there are warnings
3012 if test -s conftest.err; then
3013 lt_cv_compiler_o_lo=no
3015 lt_cv_compiler_o_lo=yes
3019 echo "configure: failed program was:" >&5
3020 cat conftest.$ac_ext >&5
3023 ac_objext="$save_objext"
3024 CFLAGS="$save_CFLAGS"
3028 compiler_o_lo=$lt_cv_compiler_o_lo
3029 echo "$ac_t""$compiler_o_lo" 1>&6
3036 ## FIXME: this should be a separate macro
3038 # Check to see if we can do hard links to lock some files if needed
3039 hard_links="nottested"
3040 if test "$compiler_c_o" = no && test "$need_locks" != no; then
3041 # do not overwrite the value of need_locks provided by the user
3042 echo $ac_n "checking if we can lock with hard links""... $ac_c" 1>&6
3043 echo "configure:3044: checking if we can lock with hard links" >&5
3046 ln conftest.a conftest.b 2>/dev/null && hard_links=no
3048 ln conftest.a conftest.b 2>&5 || hard_links=no
3049 ln conftest.a conftest.b 2>/dev/null && hard_links=no
3050 echo "$ac_t""$hard_links" 1>&6
3051 if test "$hard_links" = no; then
3052 echo "configure: warning: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" 1>&2
3061 ## FIXME: this should be a separate macro
3063 if test "$GCC" = yes; then
3064 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
3065 echo $ac_n "checking if $compiler supports -fno-rtti -fno-exceptions""... $ac_c" 1>&6
3066 echo "configure:3067: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
3067 echo "int some_variable = 0;" > conftest.$ac_ext
3068 save_CFLAGS="$CFLAGS"
3069 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
3070 compiler_rtti_exceptions=no
3071 cat > conftest.$ac_ext <<EOF
3072 #line 3073 "configure"
3073 #include "confdefs.h"
3076 int some_variable = 0;
3079 if { (eval echo configure:3080: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3081 # The compiler can only warn and ignore the option if not recognized
3082 # So say no if there are warnings
3083 if test -s conftest.err; then
3084 compiler_rtti_exceptions=no
3086 compiler_rtti_exceptions=yes
3090 echo "configure: failed program was:" >&5
3091 cat conftest.$ac_ext >&5
3094 CFLAGS="$save_CFLAGS"
3095 echo "$ac_t""$compiler_rtti_exceptions" 1>&6
3097 if test "$compiler_rtti_exceptions" = "yes"; then
3098 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
3100 no_builtin_flag=' -fno-builtin'
3106 ## FIXME: this should be a separate macro
3108 # See if the linker supports building shared libraries.
3109 echo $ac_n "checking whether the linker ($LD) supports shared libraries""... $ac_c" 1>&6
3110 echo "configure:3111: checking whether the linker ($LD) supports shared libraries" >&5
3112 allow_undefined_flag=
3114 need_lib_prefix=unknown
3115 need_version=unknown
3116 # when you set need_version to no, make sure it does not cause -set_version
3117 # flags to be left without arguments
3119 archive_expsym_cmds=
3120 old_archive_from_new_cmds=
3121 old_archive_from_expsyms_cmds=
3122 export_dynamic_flag_spec=
3123 whole_archive_flag_spec=
3124 thread_safe_flag_spec=
3125 hardcode_into_libs=no
3126 hardcode_libdir_flag_spec=
3127 hardcode_libdir_separator=
3130 hardcode_shlibpath_var=unsupported
3132 link_all_deplibs=unknown
3133 always_export_symbols=no
3134 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
3135 # include_expsyms should be a list of space-separated symbols to be *always*
3136 # included in the symbol list
3138 # exclude_expsyms can be an egrep regular expression of symbols to exclude
3139 # it will be wrapped by ` (' and `)$', so one must not match beginning or
3140 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
3141 # as well as any symbol that contains `d'.
3142 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
3143 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
3144 # platforms (ab)use it in PIC code, but their linkers get confused if
3145 # the symbol is explicitly referenced. Since portable code cannot
3146 # rely on this symbol name, it's probably fine to never include it in
3147 # preloaded symbol tables.
3148 extract_expsyms_cmds=
3151 cygwin* | mingw* | pw32*)
3152 # FIXME: the MSVC++ port hasn't been tested in a loooong time
3153 # When not using gcc, we currently assume that we are using
3154 # Microsoft Visual C++.
3155 if test "$GCC" != yes; then
3165 if test "$with_gnu_ld" = yes; then
3166 # If archive_cmds runs LD, not CC, wlarc should be empty
3169 # See if GNU ld supports shared libraries.
3171 aix3* | aix4* | aix5*)
3172 # On AIX, the GNU linker is very broken
3173 # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
3177 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
3178 *** to be unable to reliably create shared libraries on AIX.
3179 *** Therefore, libtool is disabling shared libraries support. If you
3180 *** really care for shared libraries, you may want to modify your PATH
3181 *** so that a non-GNU linker is found, and then restart.
3187 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)'
3188 hardcode_libdir_flag_spec='-L$libdir'
3189 hardcode_minus_L=yes
3191 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
3192 # that the semantics of dynamic libraries on AmigaOS, at least up
3193 # to version 4, is to share data among multiple programs linked
3194 # with the same dynamic library. Since this doesn't match the
3195 # behavior of shared libraries on other platforms, we can use
3201 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
3202 allow_undefined_flag=unsupported
3203 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
3204 # support --undefined. This deserves some investigation. FIXME
3205 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3211 cygwin* | mingw* | pw32*)
3212 # hardcode_libdir_flag_spec is actually meaningless, as there is
3213 # no search path for DLLs.
3214 hardcode_libdir_flag_spec='-L$libdir'
3215 allow_undefined_flag=unsupported
3216 always_export_symbols=yes
3218 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
3219 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
3220 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
3221 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
3222 else $CC -o impgen impgen.c ; fi)~
3223 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
3225 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
3227 # cygwin and mingw dlls have different entry points and sets of symbols
3229 # FIXME: what about values for MSVC?
3230 dll_entry=__cygwin_dll_entry@12
3231 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
3235 dll_entry=_DllMainCRTStartup@12
3236 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
3240 # mingw and cygwin differ, and it's simplest to just exclude the union
3241 # of the two symbol sets.
3242 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
3244 # recent cygwin and mingw systems supply a stub DllMain which the user
3245 # can override, but on older systems we have to supply one (in ltdll.c)
3246 if test "x$lt_cv_need_dllmain" = "xyes"; then
3247 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
3248 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~
3249 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
3255 # Extract the symbol export list from an `--export-all' def file,
3256 # then regenerate the def file from the symbol export list, so that
3257 # the compiled dll only exports the symbol export list.
3258 # Be careful not to strip the DATA tag left be newer dlltools.
3259 export_symbols_cmds="$ltdll_cmds"'
3260 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
3261 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
3263 # If the export-symbols file already is a .def file (1st line
3264 # is EXPORTS), use it as is.
3265 # If DATA tags from a recent dlltool are present, honour them!
3266 archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
3267 cp $export_symbols $output_objdir/$soname-def;
3269 echo EXPORTS > $output_objdir/$soname-def;
3271 cat $export_symbols | while read symbol; do
3274 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
3275 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
3277 _lt_hint=`expr 1 + \$_lt_hint`;
3281 $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~
3282 $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~
3283 $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~
3284 $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~
3285 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
3289 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
3290 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
3293 archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3294 archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
3299 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
3303 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
3304 *** create shared libraries on Solaris systems. Therefore, libtool
3305 *** is disabling shared libraries support. We urge you to upgrade GNU
3306 *** binutils to release 2.9.1 or newer. Another option is to modify
3307 *** your PATH or compiler configuration so that the native linker is
3308 *** used, and then restart.
3311 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
3312 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3313 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
3320 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
3323 hardcode_shlibpath_var=no
3327 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
3328 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3329 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
3336 if test "$ld_shlibs" = yes; then
3337 runpath_var=LD_RUN_PATH
3338 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
3339 export_dynamic_flag_spec='${wl}--export-dynamic'
3341 cygwin* | mingw* | pw32*)
3342 # dlltool doesn't understand --whole-archive et. al.
3343 whole_archive_flag_spec=
3346 # ancient GNU ld didn't support --whole-archive et. al.
3347 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
3348 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
3350 whole_archive_flag_spec=
3356 # PORTME fill in a description of your system's linker (not GNU ld)
3359 allow_undefined_flag=unsupported
3360 always_export_symbols=yes
3361 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'
3362 # Note: this linker hardcodes the directories in LIBPATH if there
3363 # are no directories specified by -L.
3364 hardcode_minus_L=yes
3365 if test "$GCC" = yes && test -z "$link_static_flag"; then
3366 # Neither direct hardcoding nor static linking is supported with a
3368 hardcode_direct=unsupported
3373 if test "$host_cpu" = ia64; then
3374 # On IA64, the linker does run time linking by default, so we don't
3375 # have to do anything special.
3376 aix_use_runtimelinking=no
3377 exp_sym_flag='-Bexport'
3380 aix_use_runtimelinking=no
3382 # Test if we are trying to use run time linking or normal
3383 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
3384 # need to do runtime linking.
3385 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
3386 for ld_flag in $LDFLAGS; do
3387 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
3388 aix_use_runtimelinking=yes
3394 exp_sym_flag='-bexport'
3395 no_entry_flag='-bnoentry'
3398 # When large executables or shared objects are built, AIX ld can
3399 # have problems creating the table of contents. If linking a library
3400 # or program results in "error TOC overflow" add -mminimal-toc to
3401 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
3402 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
3406 hardcode_libdir_separator=':'
3407 if test "$GCC" = yes; then
3408 case $host_os in aix4.[012]|aix4.[012].*)
3409 collect2name=`${CC} -print-prog-name=collect2`
3410 if test -f "$collect2name" && \
3411 strings "$collect2name" | grep resolve_lib_name >/dev/null
3413 # We have reworked collect2
3416 # We have old collect2
3417 hardcode_direct=unsupported
3418 # It fails to find uninstalled libraries when the uninstalled
3419 # path is not listed in the libpath. Setting hardcode_minus_L
3420 # to unsupported forces relinking
3421 hardcode_minus_L=yes
3422 hardcode_libdir_flag_spec='-L$libdir'
3423 hardcode_libdir_separator=
3427 shared_flag='-shared'
3430 if test "$host_cpu" = ia64; then
3431 shared_flag='${wl}-G'
3433 if test "$aix_use_runtimelinking" = yes; then
3434 shared_flag='${wl}-G'
3436 shared_flag='${wl}-bM:SRE'
3441 # It seems that -bexpall can do strange things, so it is better to
3442 # generate a list of symbols to export.
3443 always_export_symbols=yes
3444 if test "$aix_use_runtimelinking" = yes; then
3445 # Warning - without using the other runtime loading flags (-brtl),
3446 # -berok will link without error, but may produce a broken library.
3447 allow_undefined_flag='-berok'
3448 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
3449 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
3451 if test "$host_cpu" = ia64; then
3452 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
3453 allow_undefined_flag="-z nodefs"
3454 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"
3456 hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
3457 # Warning - without using the other run time loading flags,
3458 # -berok will link without error, but may produce a broken library.
3459 allow_undefined_flag='${wl}-berok'
3460 # This is a bit strange, but is similar to how AIX traditionally builds
3461 # it's shared libraries.
3462 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'
3468 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)'
3469 hardcode_libdir_flag_spec='-L$libdir'
3470 hardcode_minus_L=yes
3471 # see comment about different semantics on the GNU ld section
3475 cygwin* | mingw* | pw32*)
3476 # When not using gcc, we currently assume that we are using
3477 # Microsoft Visual C++.
3478 # hardcode_libdir_flag_spec is actually meaningless, as there is
3479 # no search path for DLLs.
3480 hardcode_libdir_flag_spec=' '
3481 allow_undefined_flag=unsupported
3482 # Tell ltmain to make .lib files, not .a files.
3484 # FIXME: Setting linknames here is a bad hack.
3485 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
3486 # The linker will automatically build a .lib file if we build a DLL.
3487 old_archive_from_new_cmds='true'
3488 # FIXME: Should let the user specify the lib program.
3489 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
3490 fix_srcfile_path='`cygpath -w "$srcfile"`'
3493 darwin* | rhapsody*)
3495 rhapsody* | darwin1.[012])
3496 allow_undefined_flag='-undefined suppress'
3499 allow_undefined_flag='-flat_namespace -undefined suppress'
3502 # FIXME: Relying on posixy $() will cause problems for
3503 # cross-compilation, but unfortunately the echo tests do not
3504 # yet detect zsh echo's removal of \ escapes.
3505 archive_cmds='$nonopt $(test "x$module" = xyes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring'
3506 # We need to add '_' to the symbols in $export_symbols first
3507 #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
3509 hardcode_shlibpath_var=no
3510 whole_archive_flag_spec='-all_load $convenience'
3517 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
3518 # support. Future versions do this automatically, but an explicit c++rt0.o
3519 # does not break anything, and helps significantly (at the cost of a little
3522 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
3523 hardcode_libdir_flag_spec='-R$libdir'
3525 hardcode_shlibpath_var=no
3528 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
3530 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
3532 hardcode_minus_L=yes
3533 hardcode_shlibpath_var=no
3536 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
3538 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
3539 hardcode_libdir_flag_spec='-R$libdir'
3541 hardcode_shlibpath_var=no
3544 hpux9* | hpux10* | hpux11*)
3546 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' ;;
3547 *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
3549 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
3550 hardcode_libdir_separator=:
3552 hardcode_minus_L=yes # Not in the search PATH, but as the default
3553 # location of the library.
3554 export_dynamic_flag_spec='${wl}-E'
3558 if test "$GCC" = yes; then
3559 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'
3561 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'
3563 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
3564 hardcode_libdir_separator=:
3565 link_all_deplibs=yes
3569 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
3570 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
3572 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
3574 hardcode_libdir_flag_spec='-R$libdir'
3576 hardcode_shlibpath_var=no
3580 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3582 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
3583 hardcode_libdir_separator=:
3584 hardcode_shlibpath_var=no
3589 hardcode_shlibpath_var=no
3590 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3591 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
3592 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
3593 export_dynamic_flag_spec='${wl}-E'
3596 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
3597 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
3598 hardcode_libdir_flag_spec='-R$libdir'
3601 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
3602 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
3609 hardcode_libdir_flag_spec='-L$libdir'
3610 hardcode_minus_L=yes
3611 allow_undefined_flag=unsupported
3612 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'
3613 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
3617 if test "$GCC" = yes; then
3618 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
3619 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'
3621 allow_undefined_flag=' -expect_unresolved \*'
3622 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'
3624 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
3625 hardcode_libdir_separator=:
3628 osf4* | osf5*) # as osf3* with the addition of -msym flag
3629 if test "$GCC" = yes; then
3630 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
3631 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'
3632 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
3634 allow_undefined_flag=' -expect_unresolved \*'
3635 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'
3636 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
3637 $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'
3639 #Both c and cxx compiler support -rpath directly
3640 hardcode_libdir_flag_spec='-rpath $libdir'
3642 hardcode_libdir_separator=:
3646 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3647 hardcode_shlibpath_var=no
3648 runpath_var=LD_RUN_PATH
3649 hardcode_runpath_var=yes
3650 export_dynamic_flag_spec='${wl}-Bexport'
3654 # gcc --version < 3.0 without binutils cannot create self contained
3655 # shared libraries reliably, requiring libgcc.a to resolve some of
3656 # the object symbols generated in some cases. Libraries that use
3657 # assert need libgcc.a to resolve __eprintf, for example. Linking
3658 # a copy of libgcc.a into every shared library to guarantee resolving
3659 # such symbols causes other problems: According to Tim Van Holder
3660 # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
3661 # (to the application) exception stack for one thing.
3662 no_undefined_flag=' -z defs'
3663 if test "$GCC" = yes; then
3664 case `$CC --version 2>/dev/null` in
3668 *** Warning: Releases of GCC earlier than version 3.0 cannot reliably
3669 *** create self contained shared libraries on Solaris systems, without
3670 *** introducing a dependency on libgcc.a. Therefore, libtool is disabling
3671 *** -no-undefined support, which will at least allow you to build shared
3672 *** libraries. However, you may find that when you link such libraries
3673 *** into an application without using GCC, you have to manually add
3674 *** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
3675 *** upgrade to a newer version of GCC. Another option is to rebuild your
3676 *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
3683 # $CC -shared without GNU ld will not create a library from C++
3684 # object files and a static libstdc++, better avoid it by now
3685 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
3686 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
3687 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
3688 hardcode_libdir_flag_spec='-R$libdir'
3689 hardcode_shlibpath_var=no
3691 solaris2.[0-5] | solaris2.[0-5].*) ;;
3692 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
3693 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
3695 link_all_deplibs=yes
3699 if test "x$host_vendor" = xsequent; then
3700 # Use $CC to link under sequent, because it throws in some extra .o
3701 # files that make .init and .fini sections work.
3702 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
3704 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
3706 hardcode_libdir_flag_spec='-L$libdir'
3708 hardcode_minus_L=yes
3709 hardcode_shlibpath_var=no
3713 if test "x$host_vendor" = xsno; then
3714 archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags'
3715 hardcode_direct=yes # is this really true???
3717 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3718 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
3720 runpath_var='LD_RUN_PATH'
3721 hardcode_shlibpath_var=no
3725 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3726 hardcode_shlibpath_var=no
3727 export_dynamic_flag_spec='-Bexport'
3731 no_undefined_flag=' -z text'
3732 # $CC -shared without GNU ld will not create a library from C++
3733 # object files and a static libstdc++, better avoid it by now
3734 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
3735 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
3736 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
3737 hardcode_libdir_flag_spec=
3738 hardcode_shlibpath_var=no
3739 runpath_var='LD_RUN_PATH'
3743 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3744 hardcode_libdir_flag_spec='-L$libdir'
3745 hardcode_shlibpath_var=no
3749 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3750 hardcode_libdir_flag_spec='-L$libdir'
3751 hardcode_shlibpath_var=no
3755 if test -d /usr/nec; then
3756 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3757 hardcode_shlibpath_var=no
3758 runpath_var=LD_RUN_PATH
3759 hardcode_runpath_var=yes
3765 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
3768 hardcode_shlibpath_var=no
3769 hardcode_runpath_var=yes
3770 runpath_var=LD_RUN_PATH
3773 sysv5uw7* | unixware7*)
3774 no_undefined_flag='${wl}-z ${wl}text'
3775 if test "$GCC" = yes; then
3776 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
3778 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
3780 runpath_var='LD_RUN_PATH'
3781 hardcode_shlibpath_var=no