1 diff -urN lua-5.1.4/aclocal.m4 lua-5.1.4-autotoolize/aclocal.m4
2 --- lua-5.1.4/aclocal.m4 1970-01-01 01:00:00.000000000 +0100
3 +++ lua-5.1.4-autotoolize/aclocal.m4 2008-09-03 13:18:37.000000000 +0200
5 +# generated automatically by aclocal 1.9.6 -*- Autoconf -*-
7 +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
8 +# 2005 Free Software Foundation, Inc.
9 +# This file is free software; the Free Software Foundation
10 +# gives unlimited permission to copy and/or distribute it,
11 +# with or without modifications, as long as this notice is preserved.
13 +# This program is distributed in the hope that it will be useful,
14 +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
15 +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
16 +# PARTICULAR PURPOSE.
18 +# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
20 +# serial 48 AC_PROG_LIBTOOL
23 +# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
24 +# -----------------------------------------------------------
25 +# If this macro is not defined by Autoconf, define it here.
26 +m4_ifdef([AC_PROVIDE_IFELSE],
28 + [m4_define([AC_PROVIDE_IFELSE],
29 + [m4_ifdef([AC_PROVIDE_$1],
35 +AC_DEFUN([AC_PROG_LIBTOOL],
36 +[AC_REQUIRE([_AC_PROG_LIBTOOL])dnl
37 +dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX
38 +dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX.
39 + AC_PROVIDE_IFELSE([AC_PROG_CXX],
41 + [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX
43 +dnl And a similar setup for Fortran 77 support
44 + AC_PROVIDE_IFELSE([AC_PROG_F77],
46 + [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77
49 +dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly.
50 +dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run
51 +dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both.
52 + AC_PROVIDE_IFELSE([AC_PROG_GCJ],
54 + [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
56 + [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],
58 + [ifdef([AC_PROG_GCJ],
59 + [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])
60 + ifdef([A][M_PROG_GCJ],
61 + [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])])
62 + ifdef([LT_AC_PROG_GCJ],
63 + [define([LT_AC_PROG_GCJ],
64 + defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])])
65 +])])# AC_PROG_LIBTOOL
70 +AC_DEFUN([_AC_PROG_LIBTOOL],
71 +[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
72 +AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl
73 +AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl
74 +AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl
76 +# This can be used to rebuild libtool when needed
77 +LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
79 +# Always use our own libtool.
80 +LIBTOOL='$(SHELL) $(top_builddir)/libtool'
83 +# Prevent multiple expansion
84 +define([AC_PROG_LIBTOOL], [])
90 +AC_DEFUN([AC_LIBTOOL_SETUP],
92 +AC_REQUIRE([AC_ENABLE_SHARED])dnl
93 +AC_REQUIRE([AC_ENABLE_STATIC])dnl
94 +AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
95 +AC_REQUIRE([AC_CANONICAL_HOST])dnl
96 +AC_REQUIRE([AC_CANONICAL_BUILD])dnl
97 +AC_REQUIRE([AC_PROG_CC])dnl
98 +AC_REQUIRE([AC_PROG_LD])dnl
99 +AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl
100 +AC_REQUIRE([AC_PROG_NM])dnl
102 +AC_REQUIRE([AC_PROG_LN_S])dnl
103 +AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
104 +# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
105 +AC_REQUIRE([AC_OBJEXT])dnl
106 +AC_REQUIRE([AC_EXEEXT])dnl
109 +AC_LIBTOOL_SYS_MAX_CMD_LEN
110 +AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
113 +AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
114 +_LT_AC_PROG_ECHO_BACKSLASH
118 + # AIX sometimes has problems with the GCC collect2 program. For some
119 + # reason, if we set the COLLECT_NAMES environment variable, the problems
120 + # vanish in a puff of smoke.
121 + if test "X${COLLECT_NAMES+set}" != Xset; then
123 + export COLLECT_NAMES
128 +# Sed substitution that helps us do robust quoting. It backslashifies
129 +# metacharacters that are still active within double-quoted strings.
130 +Xsed='sed -e 1s/^X//'
131 +[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
133 +# Same as above, but do not quote variable references.
134 +[double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']
136 +# Sed substitution to delay expansion of an escaped shell variable in a
137 +# double_quote_subst'ed string.
138 +delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
140 +# Sed substitution to avoid accidental globbing in evaled expressions
141 +no_glob_subst='s/\*/\\\*/g'
147 +default_ofile=libtool
148 +can_build_shared=yes
150 +# All known linkers require a `.a' archive for static linking (except MSVC,
151 +# which needs '.lib').
153 +ltmain="$ac_aux_dir/ltmain.sh"
154 +ofile="$default_ofile"
155 +with_gnu_ld="$lt_cv_prog_gnu_ld"
157 +AC_CHECK_TOOL(AR, ar, false)
158 +AC_CHECK_TOOL(RANLIB, ranlib, :)
159 +AC_CHECK_TOOL(STRIP, strip, :)
162 +old_CFLAGS="$CFLAGS"
164 +# Set sane defaults for various variables
165 +test -z "$AR" && AR=ar
166 +test -z "$AR_FLAGS" && AR_FLAGS=cru
167 +test -z "$AS" && AS=as
168 +test -z "$CC" && CC=cc
169 +test -z "$LTCC" && LTCC=$CC
170 +test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
171 +test -z "$DLLTOOL" && DLLTOOL=dlltool
172 +test -z "$LD" && LD=ld
173 +test -z "$LN_S" && LN_S="ln -s"
174 +test -z "$MAGIC_CMD" && MAGIC_CMD=file
175 +test -z "$NM" && NM=nm
176 +test -z "$SED" && SED=sed
177 +test -z "$OBJDUMP" && OBJDUMP=objdump
178 +test -z "$RANLIB" && RANLIB=:
179 +test -z "$STRIP" && STRIP=:
180 +test -z "$ac_objext" && ac_objext=o
182 +# Determine commands to create old-style static archives.
183 +old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
184 +old_postinstall_cmds='chmod 644 $oldlib'
185 +old_postuninstall_cmds=
187 +if test -n "$RANLIB"; then
190 + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
193 + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
196 + old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
199 +_LT_CC_BASENAME([$compiler])
201 +# Only perform the check for file, if the check method requires it
202 +case $deplibs_check_method in
204 + if test "$file_magic_cmd" = '$MAGIC_CMD'; then
210 +AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
211 +AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
212 +enable_win32_dll=yes, enable_win32_dll=no)
214 +AC_ARG_ENABLE([libtool-lock],
215 + [AC_HELP_STRING([--disable-libtool-lock],
216 + [avoid locking (might break parallel builds)])])
217 +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
220 + [AC_HELP_STRING([--with-pic],
221 + [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
222 + [pic_mode="$withval"],
223 + [pic_mode=default])
224 +test -z "$pic_mode" && pic_mode=default
226 +# Check if we have a version mismatch between libtool.m4 and ltmain.sh.
228 +# Note: This should be in AC_LIBTOOL_SETUP, _after_ $ltmain have been defined.
229 +# We also should do it _before_ AC_LIBTOOL_LANG_C_CONFIG that actually
230 +# calls AC_LIBTOOL_CONFIG and creates libtool.
234 +# Use C for the default configuration in the libtool script
236 +AC_LIBTOOL_LANG_C_CONFIG
238 +])# AC_LIBTOOL_SETUP
243 +AC_DEFUN([_LT_VERSION_CHECK],
244 +[AC_MSG_CHECKING([for correct ltmain.sh version])
245 +if test "x$ltmain" = "x" ; then
249 +*** @<:@Gentoo@:>@ sanity check failed! ***
250 +*** \$ltmain is not defined, please check the patch for consistency! ***
253 +gentoo_lt_version="1.5.22"
254 +gentoo_ltmain_version=`sed -n '/^[[ ]]*VERSION=/{s/^[[ ]]*VERSION=//;p;q;}' "$ltmain"`
255 +if test "x$gentoo_lt_version" != "x$gentoo_ltmain_version" ; then
259 +*** @<:@Gentoo@:>@ sanity check failed! ***
260 +*** libtool.m4 and ltmain.sh have a version mismatch! ***
261 +*** (libtool.m4 = $gentoo_lt_version, ltmain.sh = $gentoo_ltmain_version) ***
265 + libtoolize --copy --force
267 +if appropriate, please contact the maintainer of this
268 +package (or your distribution) for help.
273 +])# _LT_VERSION_CHECK
276 +# _LT_AC_SYS_COMPILER
277 +# -------------------
278 +AC_DEFUN([_LT_AC_SYS_COMPILER],
279 +[AC_REQUIRE([AC_PROG_CC])dnl
281 +# If no C compiler was specified, use CC.
284 +# If no C compiler flags were specified, use CFLAGS.
285 +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
287 +# Allow CC to be a program name with arguments.
289 +])# _LT_AC_SYS_COMPILER
292 +# _LT_CC_BASENAME(CC)
293 +# -------------------
294 +# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
295 +AC_DEFUN([_LT_CC_BASENAME],
296 +[for cc_temp in $1""; do
298 + compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
299 + distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
304 +cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
308 +# _LT_COMPILER_BOILERPLATE
309 +# ------------------------
310 +# Check for compiler boilerplate output or warnings with
311 +# the simple compiler test code.
312 +AC_DEFUN([_LT_COMPILER_BOILERPLATE],
313 +[ac_outfile=conftest.$ac_objext
314 +printf "$lt_simple_compile_test_code" >conftest.$ac_ext
315 +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
316 +_lt_compiler_boilerplate=`cat conftest.err`
318 +])# _LT_COMPILER_BOILERPLATE
321 +# _LT_LINKER_BOILERPLATE
322 +# ----------------------
323 +# Check for linker boilerplate output or warnings with
324 +# the simple link test code.
325 +AC_DEFUN([_LT_LINKER_BOILERPLATE],
326 +[ac_outfile=conftest.$ac_objext
327 +printf "$lt_simple_link_test_code" >conftest.$ac_ext
328 +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
329 +_lt_linker_boilerplate=`cat conftest.err`
331 +])# _LT_LINKER_BOILERPLATE
334 +# _LT_AC_SYS_LIBPATH_AIX
335 +# ----------------------
336 +# Links a minimal program and checks the executable
337 +# for the system default hardcoded library path. In most cases,
338 +# this is /usr/lib:/lib, but when the MPI compilers are used
339 +# the location of the communication and MPI libs are included too.
340 +# If we don't find anything, use the default library path according
341 +# to the aix ld manual.
342 +AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
343 +[AC_LINK_IFELSE(AC_LANG_PROGRAM,[
344 +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
346 +# Check for a 64-bit object if we didn't find anything.
347 +if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
349 +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
350 +])# _LT_AC_SYS_LIBPATH_AIX
353 +# _LT_AC_SHELL_INIT(ARG)
354 +# ----------------------
355 +AC_DEFUN([_LT_AC_SHELL_INIT],
356 +[ifdef([AC_DIVERSION_NOTICE],
357 + [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
358 + [AC_DIVERT_PUSH(NOTICE)])
361 +])# _LT_AC_SHELL_INIT
364 +# _LT_AC_PROG_ECHO_BACKSLASH
365 +# --------------------------
366 +# Add some code to the start of the generated configure script which
367 +# will find an echo command which doesn't interpret backslashes.
368 +AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH],
369 +[_LT_AC_SHELL_INIT([
370 +# Check that we are running under the correct shell.
371 +SHELL=${CONFIG_SHELL-/bin/sh}
375 + # Remove one level of quotation (which was required for Make).
376 + ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
381 +if test "X[$]1" = X--no-reexec; then
382 + # Discard the --no-reexec flag, and continue.
384 +elif test "X[$]1" = X--fallback-echo; then
385 + # Avoid inline document here, it may be left over
387 +elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
388 + # Yippee, $echo works!
391 + # Restart under the correct shell.
392 + exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
395 +if test "X[$]1" = X--fallback-echo; then
396 + # used as fallback echo
404 +# The HP-UX ksh and POSIX shell print the target directory to stdout
406 +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
408 +if test -z "$ECHO"; then
409 +if test "X${echo_test_string+set}" != Xset; then
410 +# find a string as large as possible, as long as the shell can cope with it
411 + for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
412 + # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
413 + if (echo_test_string=`eval $cmd`) 2>/dev/null &&
414 + echo_test_string=`eval $cmd` &&
415 + (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
422 +if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
423 + echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
424 + test "X$echo_testing_string" = "X$echo_test_string"; then
427 + # The Solaris, AIX, and Digital Unix default echo programs unquote
428 + # backslashes. This makes it impossible to quote backslashes using
429 + # echo "$something" | sed 's/\\/\\\\/g'
431 + # So, first we look for a working echo in the user's PATH.
433 + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
434 + for dir in $PATH /usr/ucb; do
436 + if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
437 + test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
438 + echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
439 + test "X$echo_testing_string" = "X$echo_test_string"; then
446 + if test "X$echo" = Xecho; then
447 + # We didn't find a better echo, so look for alternatives.
448 + if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
449 + echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
450 + test "X$echo_testing_string" = "X$echo_test_string"; then
451 + # This shell has a builtin print -r that does the trick.
453 + elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
454 + test "X$CONFIG_SHELL" != X/bin/ksh; then
455 + # If we have ksh, try running configure again with it.
456 + ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
457 + export ORIGINAL_CONFIG_SHELL
458 + CONFIG_SHELL=/bin/ksh
459 + export CONFIG_SHELL
460 + exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
462 + # Try using printf.
464 + if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
465 + echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
466 + test "X$echo_testing_string" = "X$echo_test_string"; then
467 + # Cool, printf works
469 + elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
470 + test "X$echo_testing_string" = 'X\t' &&
471 + echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
472 + test "X$echo_testing_string" = "X$echo_test_string"; then
473 + CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
474 + export CONFIG_SHELL
475 + SHELL="$CONFIG_SHELL"
477 + echo="$CONFIG_SHELL [$]0 --fallback-echo"
478 + elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
479 + test "X$echo_testing_string" = 'X\t' &&
480 + echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
481 + test "X$echo_testing_string" = "X$echo_test_string"; then
482 + echo="$CONFIG_SHELL [$]0 --fallback-echo"
484 + # maybe with a smaller string...
487 + for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
488 + if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
495 + if test "$prev" != 'sed 50q "[$]0"'; then
496 + echo_test_string=`eval $prev`
497 + export echo_test_string
498 + exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
500 + # Oops. We lost completely, so just stick with echo.
509 +# Copy echo and quote the copy suitably for passing to libtool from
510 +# the Makefile, instead of quoting the original, which is used later.
512 +if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
513 + ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
517 +])])# _LT_AC_PROG_ECHO_BACKSLASH
522 +AC_DEFUN([_LT_AC_LOCK],
523 +[AC_ARG_ENABLE([libtool-lock],
524 + [AC_HELP_STRING([--disable-libtool-lock],
525 + [avoid locking (might break parallel builds)])])
526 +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
528 +# Some flags need to be propagated to the compiler or linker for good
532 + # Find out which ABI we are using.
533 + echo 'int i;' > conftest.$ac_ext
534 + if AC_TRY_EVAL(ac_compile); then
535 + case `/usr/bin/file conftest.$ac_objext` in
537 + HPUX_IA64_MODE="32"
540 + HPUX_IA64_MODE="64"
547 + # Find out which ABI we are using.
548 + echo '[#]line __oline__ "configure"' > conftest.$ac_ext
549 + if AC_TRY_EVAL(ac_compile); then
550 + if test "$lt_cv_prog_gnu_ld" = yes; then
551 + case `/usr/bin/file conftest.$ac_objext` in
553 + LD="${LD-ld} -melf32bsmip"
556 + LD="${LD-ld} -melf32bmipn32"
559 + LD="${LD-ld} -melf64bmip"
563 + case `/usr/bin/file conftest.$ac_objext` in
579 +x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
580 + # Find out which ABI we are using.
581 + echo 'int i;' > conftest.$ac_ext
582 + if AC_TRY_EVAL(ac_compile); then
583 + case `/usr/bin/file conftest.o` in
587 + LD="${LD-ld} -m elf_i386"
589 + ppc64-*linux*|powerpc64-*linux*)
590 + LD="${LD-ld} -m elf32ppclinux"
593 + LD="${LD-ld} -m elf_s390"
596 + LD="${LD-ld} -m elf32_sparc"
603 + LD="${LD-ld} -m elf_x86_64"
605 + ppc*-*linux*|powerpc*-*linux*)
606 + LD="${LD-ld} -m elf64ppc"
609 + LD="${LD-ld} -m elf64_s390"
612 + LD="${LD-ld} -m elf64_sparc"
622 + # On SCO OpenServer 5, we need -belf to get full-featured binaries.
623 + SAVE_CFLAGS="$CFLAGS"
624 + CFLAGS="$CFLAGS -belf"
625 + AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
627 + AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
629 + if test x"$lt_cv_cc_needs_belf" != x"yes"; then
630 + # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
631 + CFLAGS="$SAVE_CFLAGS"
635 + # Find out which ABI we are using.
636 + echo 'int i;' > conftest.$ac_ext
637 + if AC_TRY_EVAL(ac_compile); then
638 + case `/usr/bin/file conftest.o` in
640 + case $lt_cv_prog_gnu_ld in
641 + yes*) LD="${LD-ld} -m elf64_sparc" ;;
642 + *) LD="${LD-ld} -64" ;;
650 +AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
651 +[*-*-cygwin* | *-*-mingw* | *-*-pw32*)
652 + AC_CHECK_TOOL(DLLTOOL, dlltool, false)
653 + AC_CHECK_TOOL(AS, as, false)
654 + AC_CHECK_TOOL(OBJDUMP, objdump, false)
659 +need_locks="$enable_libtool_lock"
664 +# AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
665 +# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
666 +# ----------------------------------------------------------------
667 +# Check whether the given compiler option works
668 +AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION],
669 +[AC_REQUIRE([LT_AC_PROG_SED])
670 +AC_CACHE_CHECK([$1], [$2],
672 + ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
673 + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
674 + lt_compiler_flag="$3"
675 + # Insert the option either (1) after the last *FLAGS variable, or
676 + # (2) before a word containing "conftest.", or (3) at the end.
677 + # Note that $ac_compile itself does not contain backslashes and begins
678 + # with a dollar sign (not a hyphen), so the echo should work correctly.
679 + # The option is referenced via a variable to avoid confusing sed.
680 + lt_compile=`echo "$ac_compile" | $SED \
681 + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
682 + -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
683 + -e 's:$: $lt_compiler_flag:'`
684 + (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
685 + (eval "$lt_compile" 2>conftest.err)
687 + cat conftest.err >&AS_MESSAGE_LOG_FD
688 + echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
689 + if (exit $ac_status) && test -s "$ac_outfile"; then
690 + # The compiler can only warn and ignore the option if not recognized
691 + # So say no if there are warnings other than the usual output.
692 + $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
693 + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
694 + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
701 +if test x"[$]$2" = xyes; then
702 + ifelse([$5], , :, [$5])
704 + ifelse([$6], , :, [$6])
706 +])# AC_LIBTOOL_COMPILER_OPTION
709 +# AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
710 +# [ACTION-SUCCESS], [ACTION-FAILURE])
711 +# ------------------------------------------------------------
712 +# Check whether the given compiler option works
713 +AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
714 +[AC_CACHE_CHECK([$1], [$2],
716 + save_LDFLAGS="$LDFLAGS"
717 + LDFLAGS="$LDFLAGS $3"
718 + printf "$lt_simple_link_test_code" > conftest.$ac_ext
719 + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
720 + # The linker can only warn and ignore the option if not recognized
721 + # So say no if there are warnings
722 + if test -s conftest.err; then
723 + # Append any errors to the config.log.
724 + cat conftest.err 1>&AS_MESSAGE_LOG_FD
725 + $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
726 + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
727 + if diff conftest.exp conftest.er2 >/dev/null; then
735 + LDFLAGS="$save_LDFLAGS"
738 +if test x"[$]$2" = xyes; then
739 + ifelse([$4], , :, [$4])
741 + ifelse([$5], , :, [$5])
743 +])# AC_LIBTOOL_LINKER_OPTION
746 +# AC_LIBTOOL_SYS_MAX_CMD_LEN
747 +# --------------------------
748 +AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN],
749 +[# find the maximum length of command line arguments
750 +AC_MSG_CHECKING([the maximum length of command line arguments])
751 +AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
757 + # On DJGPP, this test can blow up pretty badly due to problems in libc
758 + # (any single argument exceeding 2000 bytes causes a buffer overrun
759 + # during glob expansion). Even if it were fixed, the result of this
760 + # check would be larger than it should be.
761 + lt_cv_sys_max_cmd_len=12288; # 12K is about right
765 + # Under GNU Hurd, this test is not required because there is
766 + # no limit to the length of command line arguments.
767 + # Libtool will interpret -1 as no limit whatsoever
768 + lt_cv_sys_max_cmd_len=-1;
772 + # On Win9x/ME, this test blows up -- it succeeds, but takes
773 + # about 5 minutes as the teststring grows exponentially.
774 + # Worse, since 9x/ME are not pre-emptively multitasking,
775 + # you end up with a "frozen" computer, even though with patience
776 + # the test eventually succeeds (with a max line length of 256k).
777 + # Instead, let's just punt: use the minimum linelength reported by
778 + # all of the supported platforms: 8192 (on NT/2K/XP).
779 + lt_cv_sys_max_cmd_len=8192;
783 + # On AmigaOS with pdksh, this test takes hours, literally.
784 + # So we just punt and use a minimum line length of 8192.
785 + lt_cv_sys_max_cmd_len=8192;
788 + netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
789 + # This has been around since 386BSD, at least. Likely further.
790 + if test -x /sbin/sysctl; then
791 + lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
792 + elif test -x /usr/sbin/sysctl; then
793 + lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
795 + lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
797 + # And add a safety zone
798 + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
799 + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
803 + # We know the value 262144 and hardcode it with a safety zone (like BSD)
804 + lt_cv_sys_max_cmd_len=196608
808 + # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
809 + # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
810 + # nice to cause kernel panics so lets avoid the loop below.
811 + # First set a reasonable default.
812 + lt_cv_sys_max_cmd_len=16384
814 + if test -x /sbin/sysconfig; then
815 + case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
816 + *1*) lt_cv_sys_max_cmd_len=-1 ;;
821 + lt_cv_sys_max_cmd_len=102400
823 + sysv5* | sco5v6* | sysv4.2uw2*)
824 + kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
825 + if test -n "$kargmax"; then
826 + lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
828 + lt_cv_sys_max_cmd_len=32768
832 + # If test is not a shell built-in, we'll probably end up computing a
833 + # maximum length that is only half of the actual maximum length, but
835 + SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
836 + while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
837 + = "XX$teststring") >/dev/null 2>&1 &&
838 + new_result=`expr "X$teststring" : ".*" 2>&1` &&
839 + lt_cv_sys_max_cmd_len=$new_result &&
840 + test $i != 17 # 1/2 MB should be enough
843 + teststring=$teststring$teststring
846 + # Add a significant safety factor because C++ compilers can tack on massive
847 + # amounts of additional arguments before passing them to the linker.
848 + # It appears as though 1/2 is a usable value.
849 + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
853 +if test -n $lt_cv_sys_max_cmd_len ; then
854 + AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
856 + AC_MSG_RESULT(none)
858 +])# AC_LIBTOOL_SYS_MAX_CMD_LEN
861 +# _LT_AC_CHECK_DLFCN
862 +# ------------------
863 +AC_DEFUN([_LT_AC_CHECK_DLFCN],
864 +[AC_CHECK_HEADERS(dlfcn.h)dnl
865 +])# _LT_AC_CHECK_DLFCN
868 +# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
869 +# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
870 +# ---------------------------------------------------------------------
871 +AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
872 +[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
873 +if test "$cross_compiling" = yes; then :
876 + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
877 + lt_status=$lt_dlunknown
878 + cat > conftest.$ac_ext <<EOF
879 +[#line __oline__ "configure"
880 +#include "confdefs.h"
889 +# define LT_DLGLOBAL RTLD_GLOBAL
892 +# define LT_DLGLOBAL DL_GLOBAL
894 +# define LT_DLGLOBAL 0
898 +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
899 + find out it does not work in some platform. */
900 +#ifndef LT_DLLAZY_OR_NOW
902 +# define LT_DLLAZY_OR_NOW RTLD_LAZY
905 +# define LT_DLLAZY_OR_NOW DL_LAZY
908 +# define LT_DLLAZY_OR_NOW RTLD_NOW
911 +# define LT_DLLAZY_OR_NOW DL_NOW
913 +# define LT_DLLAZY_OR_NOW 0
921 +extern "C" void exit (int);
924 +void fnord() { int i=42;}
927 + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
928 + int status = $lt_dlunknown;
932 + if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
933 + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
934 + /* dlclose (self); */
942 + if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
943 + (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
945 + case x$lt_status in
946 + x$lt_dlno_uscore) $1 ;;
947 + x$lt_dlneed_uscore) $2 ;;
948 + x$lt_dlunknown|x*) $3 ;;
951 + # compilation failed
956 +])# _LT_AC_TRY_DLOPEN_SELF
959 +# AC_LIBTOOL_DLOPEN_SELF
960 +# ----------------------
961 +AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
962 +[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
963 +if test "x$enable_dlopen" != xyes; then
964 + enable_dlopen=unknown
965 + enable_dlopen_self=unknown
966 + enable_dlopen_self_static=unknown
973 + lt_cv_dlopen="load_add_on"
975 + lt_cv_dlopen_self=yes
979 + lt_cv_dlopen="LoadLibrary"
984 + lt_cv_dlopen="dlopen"
989 + # if libdl is installed we need to link against it
990 + AC_CHECK_LIB([dl], [dlopen],
991 + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
992 + lt_cv_dlopen="dyld"
994 + lt_cv_dlopen_self=yes
999 + AC_CHECK_FUNC([shl_load],
1000 + [lt_cv_dlopen="shl_load"],
1001 + [AC_CHECK_LIB([dld], [shl_load],
1002 + [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"],
1003 + [AC_CHECK_FUNC([dlopen],
1004 + [lt_cv_dlopen="dlopen"],
1005 + [AC_CHECK_LIB([dl], [dlopen],
1006 + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
1007 + [AC_CHECK_LIB([svld], [dlopen],
1008 + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
1009 + [AC_CHECK_LIB([dld], [dld_link],
1010 + [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
1019 + if test "x$lt_cv_dlopen" != xno; then
1025 + case $lt_cv_dlopen in
1027 + save_CPPFLAGS="$CPPFLAGS"
1028 + test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
1030 + save_LDFLAGS="$LDFLAGS"
1031 + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
1034 + LIBS="$lt_cv_dlopen_libs $LIBS"
1036 + AC_CACHE_CHECK([whether a program can dlopen itself],
1037 + lt_cv_dlopen_self, [dnl
1038 + _LT_AC_TRY_DLOPEN_SELF(
1039 + lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
1040 + lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
1043 + if test "x$lt_cv_dlopen_self" = xyes; then
1044 + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
1045 + AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
1046 + lt_cv_dlopen_self_static, [dnl
1047 + _LT_AC_TRY_DLOPEN_SELF(
1048 + lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
1049 + lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
1053 + CPPFLAGS="$save_CPPFLAGS"
1054 + LDFLAGS="$save_LDFLAGS"
1059 + case $lt_cv_dlopen_self in
1060 + yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
1061 + *) enable_dlopen_self=unknown ;;
1064 + case $lt_cv_dlopen_self_static in
1065 + yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
1066 + *) enable_dlopen_self_static=unknown ;;
1069 +])# AC_LIBTOOL_DLOPEN_SELF
1072 +# AC_LIBTOOL_PROG_CC_C_O([TAGNAME])
1073 +# ---------------------------------
1074 +# Check to see if options -c and -o are simultaneously supported by compiler
1075 +AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
1076 +[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
1077 +AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
1078 + [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
1079 + [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
1080 + $rm -r conftest 2>/dev/null
1084 + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
1086 + lt_compiler_flag="-o out/conftest2.$ac_objext"
1087 + # Insert the option either (1) after the last *FLAGS variable, or
1088 + # (2) before a word containing "conftest.", or (3) at the end.
1089 + # Note that $ac_compile itself does not contain backslashes and begins
1090 + # with a dollar sign (not a hyphen), so the echo should work correctly.
1091 + lt_compile=`echo "$ac_compile" | $SED \
1092 + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1093 + -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
1094 + -e 's:$: $lt_compiler_flag:'`
1095 + (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
1096 + (eval "$lt_compile" 2>out/conftest.err)
1098 + cat out/conftest.err >&AS_MESSAGE_LOG_FD
1099 + echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1100 + if (exit $ac_status) && test -s out/conftest2.$ac_objext
1102 + # The compiler can only warn and ignore the option if not recognized
1103 + # So say no if there are warnings
1104 + $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
1105 + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
1106 + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
1107 + _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
1110 + chmod u+w . 2>&AS_MESSAGE_LOG_FD
1112 + # SGI C++ compiler will create directory out/ii_files/ for
1113 + # template instantiation
1114 + test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
1115 + $rm out/* && rmdir out
1120 +])# AC_LIBTOOL_PROG_CC_C_O
1123 +# AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME])
1124 +# -----------------------------------------
1125 +# Check to see if we can do hard links to lock some files if needed
1126 +AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS],
1127 +[AC_REQUIRE([_LT_AC_LOCK])dnl
1129 +hard_links="nottested"
1130 +if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
1131 + # do not overwrite the value of need_locks provided by the user
1132 + AC_MSG_CHECKING([if we can lock with hard links])
1135 + ln conftest.a conftest.b 2>/dev/null && hard_links=no
1137 + ln conftest.a conftest.b 2>&5 || hard_links=no
1138 + ln conftest.a conftest.b 2>/dev/null && hard_links=no
1139 + AC_MSG_RESULT([$hard_links])
1140 + if test "$hard_links" = no; then
1141 + AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
1147 +])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS
1150 +# AC_LIBTOOL_OBJDIR
1151 +# -----------------
1152 +AC_DEFUN([AC_LIBTOOL_OBJDIR],
1153 +[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
1154 +[rm -f .libs 2>/dev/null
1155 +mkdir .libs 2>/dev/null
1156 +if test -d .libs; then
1157 + lt_cv_objdir=.libs
1159 + # MS-DOS does not allow filenames that begin with a dot.
1160 + lt_cv_objdir=_libs
1162 +rmdir .libs 2>/dev/null])
1163 +objdir=$lt_cv_objdir
1164 +])# AC_LIBTOOL_OBJDIR
1167 +# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME])
1168 +# ----------------------------------------------
1169 +# Check hardcoding attributes.
1170 +AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH],
1171 +[AC_MSG_CHECKING([how to hardcode library paths into programs])
1172 +_LT_AC_TAGVAR(hardcode_action, $1)=
1173 +if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \
1174 + test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \
1175 + test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
1177 + # We can hardcode non-existant directories.
1178 + if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
1179 + # If the only mechanism to avoid hardcoding is shlibpath_var, we
1180 + # have to relink, otherwise we might link with an installed library
1181 + # when we should be linking with a yet-to-be-installed one
1182 + ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
1183 + test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then
1184 + # Linking always hardcodes the temporary library directory.
1185 + _LT_AC_TAGVAR(hardcode_action, $1)=relink
1187 + # We can link without hardcoding, and we can hardcode nonexisting dirs.
1188 + _LT_AC_TAGVAR(hardcode_action, $1)=immediate
1191 + # We cannot hardcode anything, or else we can only hardcode existing
1193 + _LT_AC_TAGVAR(hardcode_action, $1)=unsupported
1195 +AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)])
1197 +if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then
1198 + # Fast installation is not supported
1199 + enable_fast_install=no
1200 +elif test "$shlibpath_overrides_runpath" = yes ||
1201 + test "$enable_shared" = no; then
1202 + # Fast installation is not necessary
1203 + enable_fast_install=needless
1205 +])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH
1208 +# AC_LIBTOOL_SYS_LIB_STRIP
1209 +# ------------------------
1210 +AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP],
1213 +AC_MSG_CHECKING([whether stripping libraries is possible])
1214 +if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
1215 + test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
1216 + test -z "$striplib" && striplib="$STRIP --strip-unneeded"
1217 + AC_MSG_RESULT([yes])
1219 +# FIXME - insert some real tests, host_os isn't really good enough
1222 + if test -n "$STRIP" ; then
1223 + striplib="$STRIP -x"
1224 + AC_MSG_RESULT([yes])
1226 + AC_MSG_RESULT([no])
1230 + AC_MSG_RESULT([no])
1234 +])# AC_LIBTOOL_SYS_LIB_STRIP
1237 +# AC_LIBTOOL_SYS_DYNAMIC_LINKER
1238 +# -----------------------------
1239 +# PORTME Fill in your ld.so characteristics
1240 +AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
1241 +[AC_MSG_CHECKING([dynamic linker characteristics])
1242 +library_names_spec=
1243 +libname_spec='lib$name'
1247 +postuninstall_cmds=
1251 +shlibpath_overrides_runpath=unknown
1253 +dynamic_linker="$host_os ld.so"
1254 +sys_lib_dlsearch_path_spec="/lib /usr/lib"
1255 +if test "$GCC" = yes; then
1256 + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
1257 + if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
1258 + # if the path contains ";" then we assume it to be the separator
1259 + # otherwise default to the standard path separator (i.e. ":") - it is
1260 + # assumed that no part of a normal pathname contains ";" but that should
1261 + # okay in the real world where ";" in dirpaths is itself problematic.
1262 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
1264 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
1267 + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
1269 +need_lib_prefix=unknown
1270 +hardcode_into_libs=no
1272 +# when you set need_version to no, make sure it does not cause -set_version
1273 +# flags to be left without arguments
1274 +need_version=unknown
1278 + version_type=linux
1279 + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
1280 + shlibpath_var=LIBPATH
1282 + # AIX 3 has no versioning support, so we append a major version to the name.
1283 + soname_spec='${libname}${release}${shared_ext}$major'
1287 + version_type=linux
1288 + need_lib_prefix=no
1290 + hardcode_into_libs=yes
1291 + if test "$host_cpu" = ia64; then
1292 + # AIX 5 supports IA64
1293 + library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
1294 + shlibpath_var=LD_LIBRARY_PATH
1296 + # With GCC up to 2.95.x, collect2 would create an import file
1297 + # for dependence libraries. The import file would start with
1298 + # the line `#! .'. This would cause the generated library to
1299 + # depend on `.', always an invalid library. This was fixed in
1300 + # development snapshots of GCC prior to 3.0.
1302 + aix4 | aix4.[[01]] | aix4.[[01]].*)
1303 + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
1305 + echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
1308 + can_build_shared=no
1312 + # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
1313 + # soname into executable. Probably we can add versioning support to
1314 + # collect2, so additional links can be useful in future.
1315 + if test "$aix_use_runtimelinking" = yes; then
1316 + # If using run time linking (on AIX 4.2 or later) use lib<name>.so
1317 + # instead of lib<name>.a to let people know that these are not
1318 + # typical AIX shared libraries.
1319 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1321 + # We preserve .a as extension for shared libraries through AIX4.2
1322 + # and later when we are not doing run time linking.
1323 + library_names_spec='${libname}${release}.a $libname.a'
1324 + soname_spec='${libname}${release}${shared_ext}$major'
1326 + shlibpath_var=LIBPATH
1331 + library_names_spec='$libname.ixlibrary $libname.a'
1332 + # Create ${libname}_ixlibrary.a entries in /sys/libs.
1333 + finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
1337 + library_names_spec='${libname}${shared_ext}'
1338 + dynamic_linker="$host_os ld.so"
1339 + shlibpath_var=LIBRARY_PATH
1343 + version_type=linux
1345 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1346 + soname_spec='${libname}${release}${shared_ext}$major'
1347 + finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
1348 + shlibpath_var=LD_LIBRARY_PATH
1349 + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
1350 + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
1351 + # the default ld.so.conf also contains /usr/contrib/lib and
1352 + # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
1353 + # libtool to hard-code these into programs
1356 +cygwin* | mingw* | pw32*)
1357 + version_type=windows
1358 + shrext_cmds=".dll"
1360 + need_lib_prefix=no
1362 + case $GCC,$host_os in
1363 + yes,cygwin* | yes,mingw* | yes,pw32*)
1364 + library_names_spec='$libname.dll.a'
1365 + # DLL is installed to $(libdir)/../bin by postinstall_cmds
1366 + postinstall_cmds='base_file=`basename \${file}`~
1367 + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
1368 + dldir=$destdir/`dirname \$dlpath`~
1369 + test -d \$dldir || mkdir -p \$dldir~
1370 + $install_prog $dir/$dlname \$dldir/$dlname~
1371 + chmod a+x \$dldir/$dlname'
1372 + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
1373 + dlpath=$dir/\$dldll~
1375 + shlibpath_overrides_runpath=yes
1379 + # Cygwin DLLs use 'cyg' prefix rather than 'lib'
1380 + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
1381 + sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
1384 + # MinGW DLLs use traditional 'lib' prefix
1385 + soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
1386 + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
1387 + if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then
1388 + # It is most probably a Windows format PATH printed by
1389 + # mingw gcc, but we are running on Cygwin. Gcc prints its search
1390 + # path with ; separators, and with drive letters. We can handle the
1391 + # drive letters (cygwin fileutils understands them), so leave them,
1392 + # especially as we might pass files found there to a mingw objdump,
1393 + # which wouldn't understand a cygwinified path. Ahh.
1394 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
1396 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
1400 + # pw32 DLLs use 'pw' prefix rather than 'lib'
1401 + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
1407 + if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
1408 + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
1409 + supports_anon_versioning=no
1410 + case `$LD -v 2>/dev/null` in
1411 + *\ [01].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
1412 + *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
1413 + *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
1414 + *\ 2.11.*) ;; # other 2.11 versions
1415 + *) supports_anon_versioning=yes ;;
1417 + if test $supports_anon_versioning = yes; then
1418 + archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
1419 +cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
1420 +$echo "local: *; };" >> $output_objdir/$libname.ver~
1421 + $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
1423 + $archive_expsym_cmds="$archive_cmds"
1431 + library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
1434 + dynamic_linker='Win32 ld.exe'
1435 + # FIXME: first we should search . and the directory the executable is in
1436 + shlibpath_var=PATH
1439 +darwin* | rhapsody*)
1440 + dynamic_linker="$host_os dyld"
1441 + version_type=darwin
1442 + need_lib_prefix=no
1444 + library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
1445 + soname_spec='${libname}${release}${major}$shared_ext'
1446 + shlibpath_overrides_runpath=yes
1447 + shlibpath_var=DYLD_LIBRARY_PATH
1448 + shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
1449 + # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
1450 + if test "$GCC" = yes; then
1451 + sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
1453 + sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
1455 + sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
1459 + version_type=linux
1460 + need_lib_prefix=no
1462 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
1463 + soname_spec='${libname}${release}${shared_ext}$major'
1464 + shlibpath_var=LD_LIBRARY_PATH
1472 + version_type=linux
1473 + need_lib_prefix=no
1475 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1476 + soname_spec='${libname}${release}${shared_ext}$major'
1477 + shlibpath_var=LD_LIBRARY_PATH
1478 + shlibpath_overrides_runpath=no
1479 + hardcode_into_libs=yes
1480 + dynamic_linker='GNU ld.so'
1483 +freebsd* | dragonfly*)
1484 + # DragonFly does not have aout. When/if they implement a new
1485 + # versioning mechanism, adjust this.
1486 + if test -x /usr/bin/objformat; then
1487 + objformat=`/usr/bin/objformat`
1490 + freebsd[[123]]*) objformat=aout ;;
1491 + *) objformat=elf ;;
1494 + # Handle Gentoo/FreeBSD as it was Linux
1495 + case $host_vendor in
1497 + version_type=linux ;;
1499 + version_type=freebsd-$objformat ;;
1502 + case $version_type in
1504 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
1506 + need_lib_prefix=no
1509 + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
1513 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1514 + soname_spec='${libname}${release}${shared_ext}$major'
1515 + need_lib_prefix=no
1519 + shlibpath_var=LD_LIBRARY_PATH
1522 + shlibpath_overrides_runpath=yes
1524 + freebsd3.[[01]]* | freebsdelf3.[[01]]*)
1525 + shlibpath_overrides_runpath=yes
1526 + hardcode_into_libs=yes
1528 + freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
1529 + freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
1530 + shlibpath_overrides_runpath=no
1531 + hardcode_into_libs=yes
1533 + freebsd*) # from 4.6 on
1534 + shlibpath_overrides_runpath=yes
1535 + hardcode_into_libs=yes
1541 + version_type=linux
1542 + need_lib_prefix=no
1544 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
1545 + soname_spec='${libname}${release}${shared_ext}$major'
1546 + shlibpath_var=LD_LIBRARY_PATH
1547 + hardcode_into_libs=yes
1550 +hpux9* | hpux10* | hpux11*)
1551 + # Give a soname corresponding to the major version so that dld.sl refuses to
1552 + # link against other versions.
1553 + version_type=sunos
1554 + need_lib_prefix=no
1559 + hardcode_into_libs=yes
1560 + dynamic_linker="$host_os dld.so"
1561 + shlibpath_var=LD_LIBRARY_PATH
1562 + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
1563 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1564 + soname_spec='${libname}${release}${shared_ext}$major'
1565 + if test "X$HPUX_IA64_MODE" = X32; then
1566 + sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
1568 + sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
1570 + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
1574 + hardcode_into_libs=yes
1575 + dynamic_linker="$host_os dld.sl"
1576 + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
1577 + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
1578 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1579 + soname_spec='${libname}${release}${shared_ext}$major'
1580 + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
1581 + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
1585 + dynamic_linker="$host_os dld.sl"
1586 + shlibpath_var=SHLIB_PATH
1587 + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
1588 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1589 + soname_spec='${libname}${release}${shared_ext}$major'
1592 + # HP-UX runs *really* slowly unless shared libraries are mode 555.
1593 + postinstall_cmds='chmod 555 $lib'
1597 + version_type=linux
1598 + need_lib_prefix=no
1600 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1601 + soname_spec='${libname}${release}${shared_ext}$major'
1602 + dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
1603 + shlibpath_var=LD_LIBRARY_PATH
1604 + shlibpath_overrides_runpath=no
1605 + hardcode_into_libs=yes
1608 +irix5* | irix6* | nonstopux*)
1610 + nonstopux*) version_type=nonstopux ;;
1612 + if test "$lt_cv_prog_gnu_ld" = yes; then
1613 + version_type=linux
1618 + need_lib_prefix=no
1620 + soname_spec='${libname}${release}${shared_ext}$major'
1621 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
1623 + irix5* | nonstopux*)
1624 + libsuff= shlibsuff=
1627 + case $LD in # libtool.m4 will add one of these switches to LD
1628 + *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
1629 + libsuff= shlibsuff= libmagic=32-bit;;
1630 + *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
1631 + libsuff=32 shlibsuff=N32 libmagic=N32;;
1632 + *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
1633 + libsuff=64 shlibsuff=64 libmagic=64-bit;;
1634 + *) libsuff= shlibsuff= libmagic=never-match;;
1638 + shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
1639 + shlibpath_overrides_runpath=no
1640 + sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
1641 + sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
1642 + hardcode_into_libs=yes
1645 +# No shared lib support for Linux oldld, aout, or coff.
1646 +linux*oldld* | linux*aout* | linux*coff*)
1650 +# This must be Linux ELF.
1652 + version_type=linux
1653 + need_lib_prefix=no
1655 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1656 + soname_spec='${libname}${release}${shared_ext}$major'
1657 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
1658 + shlibpath_var=LD_LIBRARY_PATH
1659 + shlibpath_overrides_runpath=no
1660 + # This implies no fast_install, which is unacceptable.
1661 + # Some rework will be needed to allow for fast_install
1662 + # before this can be enabled.
1663 + hardcode_into_libs=yes
1665 + # Append ld.so.conf contents to the search path
1666 + if test -f /etc/ld.so.conf; then
1667 + lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
1668 + sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
1671 + # We used to test for /lib/ld.so.1 and disable shared libraries on
1672 + # powerpc, because MkLinux only supported shared libraries with the
1673 + # GNU dynamic linker. Since this was broken with cross compilers,
1674 + # most powerpc-linux boxes support dynamic linking these days and
1675 + # people can always --disable-shared, the test was removed, and we
1676 + # assume the GNU/Linux dynamic linker is in use.
1677 + dynamic_linker='GNU/Linux ld.so'
1681 + version_type=linux
1682 + need_lib_prefix=no
1684 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1685 + soname_spec='${libname}${release}${shared_ext}$major'
1686 + shlibpath_var=LD_LIBRARY_PATH
1687 + shlibpath_overrides_runpath=no
1688 + hardcode_into_libs=yes
1689 + dynamic_linker='GNU ld.so'
1693 + version_type=sunos
1694 + need_lib_prefix=no
1696 + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
1697 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
1698 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
1699 + dynamic_linker='NetBSD (a.out) ld.so'
1701 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1702 + soname_spec='${libname}${release}${shared_ext}$major'
1703 + dynamic_linker='NetBSD ld.elf_so'
1705 + shlibpath_var=LD_LIBRARY_PATH
1706 + shlibpath_overrides_runpath=yes
1707 + hardcode_into_libs=yes
1711 + version_type=linux
1712 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1713 + shlibpath_var=LD_LIBRARY_PATH
1714 + shlibpath_overrides_runpath=yes
1718 + version_type=linux
1719 + need_lib_prefix=no
1721 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1722 + soname_spec='${libname}${release}${shared_ext}$major'
1723 + shlibpath_var=LD_LIBRARY_PATH
1724 + shlibpath_overrides_runpath=yes
1728 + version_type=sunos
1729 + sys_lib_dlsearch_path_spec="/usr/lib"
1730 + need_lib_prefix=no
1731 + # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
1733 + openbsd3.3 | openbsd3.3.*) need_version=yes ;;
1734 + *) need_version=no ;;
1736 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
1737 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
1738 + shlibpath_var=LD_LIBRARY_PATH
1739 + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
1741 + openbsd2.[[89]] | openbsd2.[[89]].*)
1742 + shlibpath_overrides_runpath=no
1745 + shlibpath_overrides_runpath=yes
1749 + shlibpath_overrides_runpath=yes
1754 + libname_spec='$name'
1755 + shrext_cmds=".dll"
1756 + need_lib_prefix=no
1757 + library_names_spec='$libname${shared_ext} $libname.a'
1758 + dynamic_linker='OS/2 ld.exe'
1759 + shlibpath_var=LIBPATH
1762 +osf3* | osf4* | osf5*)
1764 + need_lib_prefix=no
1766 + soname_spec='${libname}${release}${shared_ext}$major'
1767 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1768 + shlibpath_var=LD_LIBRARY_PATH
1769 + sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
1770 + sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
1774 + version_type=linux
1775 + need_lib_prefix=no
1777 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1778 + soname_spec='${libname}${release}${shared_ext}$major'
1779 + shlibpath_var=LD_LIBRARY_PATH
1780 + shlibpath_overrides_runpath=yes
1781 + hardcode_into_libs=yes
1782 + # ldd complains unless libraries are executable
1783 + postinstall_cmds='chmod +x $lib'
1787 + version_type=sunos
1788 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
1789 + finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
1790 + shlibpath_var=LD_LIBRARY_PATH
1791 + shlibpath_overrides_runpath=yes
1792 + if test "$with_gnu_ld" = yes; then
1793 + need_lib_prefix=no
1799 + version_type=linux
1800 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1801 + soname_spec='${libname}${release}${shared_ext}$major'
1802 + shlibpath_var=LD_LIBRARY_PATH
1803 + case $host_vendor in
1805 + shlibpath_overrides_runpath=no
1806 + need_lib_prefix=no
1807 + export_dynamic_flag_spec='${wl}-Blargedynsym'
1808 + runpath_var=LD_RUN_PATH
1811 + need_lib_prefix=no
1814 + need_lib_prefix=no
1816 + shlibpath_overrides_runpath=no
1817 + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
1823 + if test -d /usr/nec ;then
1824 + version_type=linux
1825 + library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
1826 + soname_spec='$libname${shared_ext}.$major'
1827 + shlibpath_var=LD_LIBRARY_PATH
1831 +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
1832 + version_type=freebsd-elf
1833 + need_lib_prefix=no
1835 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
1836 + soname_spec='${libname}${release}${shared_ext}$major'
1837 + shlibpath_var=LD_LIBRARY_PATH
1838 + hardcode_into_libs=yes
1839 + if test "$with_gnu_ld" = yes; then
1840 + sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
1841 + shlibpath_overrides_runpath=no
1843 + sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
1844 + shlibpath_overrides_runpath=yes
1847 + sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
1851 + sys_lib_dlsearch_path_spec='/usr/lib'
1855 + version_type=linux
1856 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1857 + soname_spec='${libname}${release}${shared_ext}$major'
1858 + shlibpath_var=LD_LIBRARY_PATH
1865 +AC_MSG_RESULT([$dynamic_linker])
1866 +test "$dynamic_linker" = no && can_build_shared=no
1868 +variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
1869 +if test "$GCC" = yes; then
1870 + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
1872 +])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
1877 +AC_DEFUN([_LT_AC_TAGCONFIG],
1878 +[AC_ARG_WITH([tags],
1879 + [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
1880 + [include additional configurations @<:@automatic@:>@])],
1881 + [tagnames="$withval"])
1883 +if test -f "$ltmain" && test -n "$tagnames"; then
1884 + if test ! -f "${ofile}"; then
1885 + AC_MSG_WARN([output file `$ofile' does not exist])
1888 + if test -z "$LTCC"; then
1889 + eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
1890 + if test -z "$LTCC"; then
1891 + AC_MSG_WARN([output file `$ofile' does not look like a libtool script])
1893 + AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
1896 + if test -z "$LTCFLAGS"; then
1897 + eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
1900 + # Extract list of available tagged configurations in $ofile.
1901 + # Note that this assumes the entire list is on one line.
1902 + available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
1904 + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
1905 + for tagname in $tagnames; do
1906 + IFS="$lt_save_ifs"
1907 + # Check whether tagname contains only valid characters
1908 + case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in
1910 + *) AC_MSG_ERROR([invalid tag name: $tagname])
1914 + if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
1916 + AC_MSG_ERROR([tag name \"$tagname\" already exists])
1919 + # Update the list of available tags.
1920 + if test -n "$tagname"; then
1921 + echo appending configuration tag \"$tagname\" to $ofile
1925 + if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
1926 + ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
1927 + (test "X$CXX" != "Xg++"))) ; then
1928 + AC_LIBTOOL_LANG_CXX_CONFIG
1935 + if test -n "$F77" && test "X$F77" != "Xno"; then
1936 + AC_LIBTOOL_LANG_F77_CONFIG
1943 + if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
1944 + AC_LIBTOOL_LANG_GCJ_CONFIG
1951 + AC_LIBTOOL_LANG_RC_CONFIG
1955 + AC_MSG_ERROR([Unsupported tag name: $tagname])
1959 + # Append the new tag name to the list of available tags.
1960 + if test -n "$tagname" ; then
1961 + available_tags="$available_tags $tagname"
1965 + IFS="$lt_save_ifs"
1967 + # Now substitute the updated list of available tags.
1968 + if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
1969 + mv "${ofile}T" "$ofile"
1973 + AC_MSG_ERROR([unable to update list of available tagged configurations.])
1976 +])# _LT_AC_TAGCONFIG
1979 +# AC_LIBTOOL_DLOPEN
1980 +# -----------------
1981 +# enable checks for dlopen support
1982 +AC_DEFUN([AC_LIBTOOL_DLOPEN],
1983 + [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])
1984 +])# AC_LIBTOOL_DLOPEN
1987 +# AC_LIBTOOL_WIN32_DLL
1988 +# --------------------
1989 +# declare package support for building win32 DLLs
1990 +AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
1991 +[AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
1992 +])# AC_LIBTOOL_WIN32_DLL
1995 +# AC_ENABLE_SHARED([DEFAULT])
1996 +# ---------------------------
1997 +# implement the --enable-shared flag
1998 +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
1999 +AC_DEFUN([AC_ENABLE_SHARED],
2000 +[define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
2001 +AC_ARG_ENABLE([shared],
2002 + [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
2003 + [build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])],
2004 + [p=${PACKAGE-default}
2005 + case $enableval in
2006 + yes) enable_shared=yes ;;
2007 + no) enable_shared=no ;;
2010 + # Look at the argument we got. We use all the common list separators.
2011 + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2012 + for pkg in $enableval; do
2013 + IFS="$lt_save_ifs"
2014 + if test "X$pkg" = "X$p"; then
2018 + IFS="$lt_save_ifs"
2021 + [enable_shared=]AC_ENABLE_SHARED_DEFAULT)
2022 +])# AC_ENABLE_SHARED
2025 +# AC_DISABLE_SHARED
2026 +# -----------------
2027 +# set the default shared flag to --disable-shared
2028 +AC_DEFUN([AC_DISABLE_SHARED],
2029 +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2030 +AC_ENABLE_SHARED(no)
2031 +])# AC_DISABLE_SHARED
2034 +# AC_ENABLE_STATIC([DEFAULT])
2035 +# ---------------------------
2036 +# implement the --enable-static flag
2037 +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
2038 +AC_DEFUN([AC_ENABLE_STATIC],
2039 +[define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
2040 +AC_ARG_ENABLE([static],
2041 + [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@],
2042 + [build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])],
2043 + [p=${PACKAGE-default}
2044 + case $enableval in
2045 + yes) enable_static=yes ;;
2046 + no) enable_static=no ;;
2049 + # Look at the argument we got. We use all the common list separators.
2050 + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2051 + for pkg in $enableval; do
2052 + IFS="$lt_save_ifs"
2053 + if test "X$pkg" = "X$p"; then
2057 + IFS="$lt_save_ifs"
2060 + [enable_static=]AC_ENABLE_STATIC_DEFAULT)
2061 +])# AC_ENABLE_STATIC
2064 +# AC_DISABLE_STATIC
2065 +# -----------------
2066 +# set the default static flag to --disable-static
2067 +AC_DEFUN([AC_DISABLE_STATIC],
2068 +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2069 +AC_ENABLE_STATIC(no)
2070 +])# AC_DISABLE_STATIC
2073 +# AC_ENABLE_FAST_INSTALL([DEFAULT])
2074 +# ---------------------------------
2075 +# implement the --enable-fast-install flag
2076 +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
2077 +AC_DEFUN([AC_ENABLE_FAST_INSTALL],
2078 +[define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
2079 +AC_ARG_ENABLE([fast-install],
2080 + [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
2081 + [optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
2082 + [p=${PACKAGE-default}
2083 + case $enableval in
2084 + yes) enable_fast_install=yes ;;
2085 + no) enable_fast_install=no ;;
2087 + enable_fast_install=no
2088 + # Look at the argument we got. We use all the common list separators.
2089 + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2090 + for pkg in $enableval; do
2091 + IFS="$lt_save_ifs"
2092 + if test "X$pkg" = "X$p"; then
2093 + enable_fast_install=yes
2096 + IFS="$lt_save_ifs"
2099 + [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT)
2100 +])# AC_ENABLE_FAST_INSTALL
2103 +# AC_DISABLE_FAST_INSTALL
2104 +# -----------------------
2105 +# set the default to --disable-fast-install
2106 +AC_DEFUN([AC_DISABLE_FAST_INSTALL],
2107 +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2108 +AC_ENABLE_FAST_INSTALL(no)
2109 +])# AC_DISABLE_FAST_INSTALL
2112 +# AC_LIBTOOL_PICMODE([MODE])
2113 +# --------------------------
2114 +# implement the --with-pic flag
2115 +# MODE is either `yes' or `no'. If omitted, it defaults to `both'.
2116 +AC_DEFUN([AC_LIBTOOL_PICMODE],
2117 +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2118 +pic_mode=ifelse($#,1,$1,default)
2119 +])# AC_LIBTOOL_PICMODE
2124 +# This is predefined starting with Autoconf 2.54, so this conditional
2125 +# definition can be removed once we require Autoconf 2.54 or later.
2126 +m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP],
2127 +[AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep],
2128 + [if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2129 + then ac_cv_prog_egrep='grep -E'
2130 + else ac_cv_prog_egrep='egrep'
2132 + EGREP=$ac_cv_prog_egrep
2137 +# AC_PATH_TOOL_PREFIX
2138 +# -------------------
2139 +# find a file program which can recognise shared library
2140 +AC_DEFUN([AC_PATH_TOOL_PREFIX],
2141 +[AC_REQUIRE([AC_PROG_EGREP])dnl
2142 +AC_MSG_CHECKING([for $1])
2143 +AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
2144 +[case $MAGIC_CMD in
2145 +[[\\/*] | ?:[\\/]*])
2146 + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2149 + lt_save_MAGIC_CMD="$MAGIC_CMD"
2150 + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2151 +dnl $ac_dummy forces splitting on constant user-supplied paths.
2152 +dnl POSIX.2 word splitting is done only on the output of word expansions,
2153 +dnl not every word. This closes a longstanding sh security hole.
2154 + ac_dummy="ifelse([$2], , $PATH, [$2])"
2155 + for ac_dir in $ac_dummy; do
2156 + IFS="$lt_save_ifs"
2157 + test -z "$ac_dir" && ac_dir=.
2158 + if test -f $ac_dir/$1; then
2159 + lt_cv_path_MAGIC_CMD="$ac_dir/$1"
2160 + if test -n "$file_magic_test_file"; then
2161 + case $deplibs_check_method in
2163 + file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
2164 + MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2165 + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2166 + $EGREP "$file_magic_regex" > /dev/null; then
2171 +*** Warning: the command libtool uses to detect shared libraries,
2172 +*** $file_magic_cmd, produces output that libtool cannot recognize.
2173 +*** The result is that libtool may fail to recognize shared libraries
2174 +*** as such. This will affect the creation of libtool libraries that
2175 +*** depend on shared libraries, but programs linked with such libtool
2176 +*** libraries will work regardless of this problem. Nevertheless, you
2177 +*** may want to report the problem to your system manager and/or to
2178 +*** bug-libtool@gnu.org
2187 + IFS="$lt_save_ifs"
2188 + MAGIC_CMD="$lt_save_MAGIC_CMD"
2191 +MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2192 +if test -n "$MAGIC_CMD"; then
2193 + AC_MSG_RESULT($MAGIC_CMD)
2197 +])# AC_PATH_TOOL_PREFIX
2202 +# find a file program which can recognise a shared library
2203 +AC_DEFUN([AC_PATH_MAGIC],
2204 +[AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
2205 +if test -z "$lt_cv_path_MAGIC_CMD"; then
2206 + if test -n "$ac_tool_prefix"; then
2207 + AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
2217 +# find the pathname to the GNU or non-GNU linker
2218 +AC_DEFUN([AC_PROG_LD],
2219 +[AC_ARG_WITH([gnu-ld],
2220 + [AC_HELP_STRING([--with-gnu-ld],
2221 + [assume the C compiler uses GNU ld @<:@default=no@:>@])],
2222 + [test "$withval" = no || with_gnu_ld=yes],
2224 +AC_REQUIRE([LT_AC_PROG_SED])dnl
2225 +AC_REQUIRE([AC_PROG_CC])dnl
2226 +AC_REQUIRE([AC_CANONICAL_HOST])dnl
2227 +AC_REQUIRE([AC_CANONICAL_BUILD])dnl
2229 +if test "$GCC" = yes; then
2230 + # Check if gcc -print-prog-name=ld gives a path.
2231 + AC_MSG_CHECKING([for ld used by $CC])
2234 + # gcc leaves a trailing carriage return which upsets mingw
2235 + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2237 + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
2240 + # Accept absolute paths.
2241 + [[\\/]]* | ?:[[\\/]]*)
2242 + re_direlt='/[[^/]][[^/]]*/\.\./'
2243 + # Canonicalize the pathname of ld
2244 + ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
2245 + while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2246 + ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
2248 + test -z "$LD" && LD="$ac_prog"
2251 + # If it fails, then pretend we aren't using GCC.
2255 + # If it is relative, then search for the first ld in PATH.
2256 + with_gnu_ld=unknown
2259 +elif test "$with_gnu_ld" = yes; then
2260 + AC_MSG_CHECKING([for GNU ld])
2262 + AC_MSG_CHECKING([for non-GNU ld])
2264 +AC_CACHE_VAL(lt_cv_path_LD,
2265 +[if test -z "$LD"; then
2266 + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2267 + for ac_dir in $PATH; do
2268 + IFS="$lt_save_ifs"
2269 + test -z "$ac_dir" && ac_dir=.
2270 + if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2271 + lt_cv_path_LD="$ac_dir/$ac_prog"
2272 + # Check to see if the program is GNU ld. I'd rather use --version,
2273 + # but apparently some variants of GNU ld only accept -v.
2274 + # Break only if it was the GNU/non-GNU ld that we prefer.
2275 + case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
2276 + *GNU* | *'with BFD'*)
2277 + test "$with_gnu_ld" != no && break
2280 + test "$with_gnu_ld" != yes && break
2285 + IFS="$lt_save_ifs"
2287 + lt_cv_path_LD="$LD" # Let the user override the test with a path.
2289 +LD="$lt_cv_path_LD"
2290 +if test -n "$LD"; then
2291 + AC_MSG_RESULT($LD)
2295 +test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
2302 +AC_DEFUN([AC_PROG_LD_GNU],
2303 +[AC_REQUIRE([AC_PROG_EGREP])dnl
2304 +AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
2305 +[# I'd rather use --version here, but apparently some GNU lds only accept -v.
2306 +case `$LD -v 2>&1 </dev/null` in
2307 +*GNU* | *'with BFD'*)
2308 + lt_cv_prog_gnu_ld=yes
2311 + lt_cv_prog_gnu_ld=no
2314 +with_gnu_ld=$lt_cv_prog_gnu_ld
2318 +# AC_PROG_LD_RELOAD_FLAG
2319 +# ----------------------
2320 +# find reload flag for linker
2321 +# -- PORTME Some linkers may need a different reload flag.
2322 +AC_DEFUN([AC_PROG_LD_RELOAD_FLAG],
2323 +[AC_CACHE_CHECK([for $LD option to reload object files],
2324 + lt_cv_ld_reload_flag,
2325 + [lt_cv_ld_reload_flag='-r'])
2326 +reload_flag=$lt_cv_ld_reload_flag
2327 +case $reload_flag in
2329 +*) reload_flag=" $reload_flag" ;;
2331 +reload_cmds='$LD$reload_flag -o $output$reload_objs'
2334 + if test "$GCC" = yes; then
2335 + reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
2337 + reload_cmds='$LD$reload_flag -o $output$reload_objs'
2341 +])# AC_PROG_LD_RELOAD_FLAG
2344 +# AC_DEPLIBS_CHECK_METHOD
2345 +# -----------------------
2346 +# how to check for library dependencies
2347 +# -- PORTME fill in with the dynamic library characteristics
2348 +AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
2349 +[AC_CACHE_CHECK([how to recognise dependent libraries],
2350 +lt_cv_deplibs_check_method,
2351 +[lt_cv_file_magic_cmd='$MAGIC_CMD'
2352 +lt_cv_file_magic_test_file=
2353 +lt_cv_deplibs_check_method='unknown'
2354 +# Need to set the preceding variable on all platforms that support
2355 +# interlibrary dependencies.
2356 +# 'none' -- dependencies not supported.
2357 +# `unknown' -- same as none, but documents that we really don't know.
2358 +# 'pass_all' -- all dependencies passed with no checks.
2359 +# 'test_compile' -- check by making test program.
2360 +# 'file_magic [[regex]]' -- check by looking for files in library path
2361 +# which responds to the $file_magic_cmd with a given extended regex.
2362 +# If you have `file' or equivalent on your system and you're not sure
2363 +# whether `pass_all' will *always* work, you probably want this one.
2367 + lt_cv_deplibs_check_method=pass_all
2371 + lt_cv_deplibs_check_method=pass_all
2375 + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
2376 + lt_cv_file_magic_cmd='/usr/bin/file -L'
2377 + lt_cv_file_magic_test_file=/shlib/libc.so
2381 + # func_win32_libid is a shell function defined in ltmain.sh
2382 + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
2383 + lt_cv_file_magic_cmd='func_win32_libid'
2387 + # Base MSYS/MinGW do not provide the 'file' command needed by
2388 + # func_win32_libid shell function, so use a weaker test based on 'objdump'.
2389 + lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
2390 + lt_cv_file_magic_cmd='$OBJDUMP -f'
2393 +darwin* | rhapsody*)
2394 + lt_cv_deplibs_check_method=pass_all
2397 +freebsd* | kfreebsd*-gnu | dragonfly*)
2398 + if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2401 + # Not sure whether the presence of OpenBSD here was a mistake.
2402 + # Let's accept both of them until this is cleared up.
2403 + lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
2404 + lt_cv_file_magic_cmd=/usr/bin/file
2405 + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2409 + lt_cv_deplibs_check_method=pass_all
2414 + lt_cv_deplibs_check_method=pass_all
2417 +hpux10.20* | hpux11*)
2418 + lt_cv_file_magic_cmd=/usr/bin/file
2421 + lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
2422 + lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
2425 + [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]']
2426 + lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
2429 + lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
2430 + lt_cv_file_magic_test_file=/usr/lib/libc.sl
2436 + # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
2437 + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
2440 +irix5* | irix6* | nonstopux*)
2442 + *-32|*"-32 ") libmagic=32-bit;;
2443 + *-n32|*"-n32 ") libmagic=N32;;
2444 + *-64|*"-64 ") libmagic=64-bit;;
2445 + *) libmagic=never-match;;
2447 + lt_cv_deplibs_check_method=pass_all
2450 +# This must be Linux ELF.
2452 + lt_cv_deplibs_check_method=pass_all
2456 + if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2457 + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
2459 + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
2464 + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
2465 + lt_cv_file_magic_cmd=/usr/bin/file
2466 + lt_cv_file_magic_test_file=/usr/lib/libnls.so
2470 + lt_cv_deplibs_check_method=unknown
2474 + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
2475 + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
2477 + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
2481 +osf3* | osf4* | osf5*)
2482 + lt_cv_deplibs_check_method=pass_all
2486 + lt_cv_deplibs_check_method=pass_all
2490 + case $host_vendor in
2492 + 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]]'
2493 + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2496 + lt_cv_deplibs_check_method=pass_all
2499 + lt_cv_file_magic_cmd='/bin/file'
2500 + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
2503 + lt_cv_file_magic_cmd='/bin/file'
2504 + lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
2505 + lt_cv_file_magic_test_file=/lib/libc.so
2508 + lt_cv_deplibs_check_method=pass_all
2511 + lt_cv_deplibs_check_method=pass_all
2516 +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
2517 + lt_cv_deplibs_check_method=pass_all
2521 +file_magic_cmd=$lt_cv_file_magic_cmd
2522 +deplibs_check_method=$lt_cv_deplibs_check_method
2523 +test -z "$deplibs_check_method" && deplibs_check_method=unknown
2524 +])# AC_DEPLIBS_CHECK_METHOD
2529 +# find the pathname to a BSD-compatible name lister
2530 +AC_DEFUN([AC_PROG_NM],
2531 +[AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM,
2532 +[if test -n "$NM"; then
2533 + # Let the user override the test.
2534 + lt_cv_path_NM="$NM"
2536 + lt_nm_to_check="${ac_tool_prefix}nm"
2537 + if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
2538 + lt_nm_to_check="$lt_nm_to_check nm"
2540 + for lt_tmp_nm in $lt_nm_to_check; do
2541 + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2542 + for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
2543 + IFS="$lt_save_ifs"
2544 + test -z "$ac_dir" && ac_dir=.
2545 + tmp_nm="$ac_dir/$lt_tmp_nm"
2546 + if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
2547 + # Check to see if the nm accepts a BSD-compat flag.
2548 + # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2549 + # nm: unknown option "B" ignored
2550 + # Tru64's nm complains that /dev/null is an invalid object file
2551 + case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
2552 + */dev/null* | *'Invalid file or object type'*)
2553 + lt_cv_path_NM="$tmp_nm -B"
2557 + case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
2559 + lt_cv_path_NM="$tmp_nm -p"
2563 + lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
2564 + continue # so that we can try to find one that supports BSD flags
2571 + IFS="$lt_save_ifs"
2573 + test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
2575 +NM="$lt_cv_path_NM"
2581 +# check for math library
2582 +AC_DEFUN([AC_CHECK_LIBM],
2583 +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
2586 +*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
2587 + # These system don't have libm, or don't need it
2590 + AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
2591 + AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
2594 + AC_CHECK_LIB(m, cos, LIBM="-lm")
2600 +# AC_LIBLTDL_CONVENIENCE([DIRECTORY])
2601 +# -----------------------------------
2602 +# sets LIBLTDL to the link flags for the libltdl convenience library and
2603 +# LTDLINCL to the include flags for the libltdl header and adds
2604 +# --enable-ltdl-convenience to the configure arguments. Note that
2605 +# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
2606 +# it is assumed to be `libltdl'. LIBLTDL will be prefixed with
2607 +# '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/'
2608 +# (note the single quotes!). If your package is not flat and you're not
2609 +# using automake, define top_builddir and top_srcdir appropriately in
2611 +AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
2612 +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2613 + case $enable_ltdl_convenience in
2614 + no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
2615 + "") enable_ltdl_convenience=yes
2616 + ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
2618 + LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
2619 + LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
2620 + # For backwards non-gettext consistent compatibility...
2621 + INCLTDL="$LTDLINCL"
2622 +])# AC_LIBLTDL_CONVENIENCE
2625 +# AC_LIBLTDL_INSTALLABLE([DIRECTORY])
2626 +# -----------------------------------
2627 +# sets LIBLTDL to the link flags for the libltdl installable library and
2628 +# LTDLINCL to the include flags for the libltdl header and adds
2629 +# --enable-ltdl-install to the configure arguments. Note that
2630 +# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
2631 +# and an installed libltdl is not found, it is assumed to be `libltdl'.
2632 +# LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with
2633 +# '${top_srcdir}/' (note the single quotes!). If your package is not
2634 +# flat and you're not using automake, define top_builddir and top_srcdir
2635 +# appropriately in the Makefiles.
2636 +# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
2637 +AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
2638 +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2639 + AC_CHECK_LIB(ltdl, lt_dlinit,
2640 + [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
2641 + [if test x"$enable_ltdl_install" = xno; then
2642 + AC_MSG_WARN([libltdl not installed, but installation disabled])
2644 + enable_ltdl_install=yes
2647 + if test x"$enable_ltdl_install" = x"yes"; then
2648 + ac_configure_args="$ac_configure_args --enable-ltdl-install"
2649 + LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
2650 + LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
2652 + ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
2656 + # For backwards non-gettext consistent compatibility...
2657 + INCLTDL="$LTDLINCL"
2658 +])# AC_LIBLTDL_INSTALLABLE
2663 +# enable support for C++ libraries
2664 +AC_DEFUN([AC_LIBTOOL_CXX],
2665 +[AC_REQUIRE([_LT_AC_LANG_CXX])
2671 +AC_DEFUN([_LT_AC_LANG_CXX],
2672 +[AC_REQUIRE([AC_PROG_CXX])
2673 +AC_REQUIRE([_LT_AC_PROG_CXXCPP])
2674 +_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
2675 +])# _LT_AC_LANG_CXX
2677 +# _LT_AC_PROG_CXXCPP
2678 +# ------------------
2679 +AC_DEFUN([_LT_AC_PROG_CXXCPP],
2681 +AC_REQUIRE([AC_PROG_CXX])
2682 +if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
2683 + ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
2684 + (test "X$CXX" != "Xg++"))) ; then
2687 +])# _LT_AC_PROG_CXXCPP
2691 +# enable support for Fortran 77 libraries
2692 +AC_DEFUN([AC_LIBTOOL_F77],
2693 +[AC_REQUIRE([_LT_AC_LANG_F77])
2699 +AC_DEFUN([_LT_AC_LANG_F77],
2700 +[AC_REQUIRE([AC_PROG_F77])
2701 +_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77])
2702 +])# _LT_AC_LANG_F77
2707 +# enable support for GCJ libraries
2708 +AC_DEFUN([AC_LIBTOOL_GCJ],
2709 +[AC_REQUIRE([_LT_AC_LANG_GCJ])
2715 +AC_DEFUN([_LT_AC_LANG_GCJ],
2716 +[AC_PROVIDE_IFELSE([AC_PROG_GCJ],[],
2717 + [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[],
2718 + [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[],
2719 + [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])],
2720 + [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])],
2721 + [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])])
2722 +_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ])
2723 +])# _LT_AC_LANG_GCJ
2728 +# enable support for Windows resource files
2729 +AC_DEFUN([AC_LIBTOOL_RC],
2730 +[AC_REQUIRE([LT_AC_PROG_RC])
2731 +_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC])
2735 +# AC_LIBTOOL_LANG_C_CONFIG
2736 +# ------------------------
2737 +# Ensure that the configuration vars for the C compiler are
2738 +# suitably defined. Those variables are subsequently used by
2739 +# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
2740 +AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG])
2741 +AC_DEFUN([_LT_AC_LANG_C_CONFIG],
2745 +# Source file extension for C test sources.
2748 +# Object file extension for compiled C test sources.
2750 +_LT_AC_TAGVAR(objext, $1)=$objext
2752 +# Code to be used in simple compile tests
2753 +lt_simple_compile_test_code="int some_variable = 0;\n"
2755 +# Code to be used in simple link tests
2756 +lt_simple_link_test_code='int main(){return(0);}\n'
2758 +_LT_AC_SYS_COMPILER
2760 +# save warnings/boilerplate of simple test code
2761 +_LT_COMPILER_BOILERPLATE
2762 +_LT_LINKER_BOILERPLATE
2764 +AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
2765 +AC_LIBTOOL_PROG_COMPILER_PIC($1)
2766 +AC_LIBTOOL_PROG_CC_C_O($1)
2767 +AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
2768 +AC_LIBTOOL_PROG_LD_SHLIBS($1)
2769 +AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
2770 +AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
2771 +AC_LIBTOOL_SYS_LIB_STRIP
2772 +AC_LIBTOOL_DLOPEN_SELF
2774 +# Report which library types will actually be built
2775 +AC_MSG_CHECKING([if libtool supports shared libraries])
2776 +AC_MSG_RESULT([$can_build_shared])
2778 +AC_MSG_CHECKING([whether to build shared libraries])
2779 +test "$can_build_shared" = "no" && enable_shared=no
2781 +# On AIX, shared libraries and static libraries use the same namespace, and
2782 +# are all built from PIC.
2785 + test "$enable_shared" = yes && enable_static=no
2786 + if test -n "$RANLIB"; then
2787 + archive_cmds="$archive_cmds~\$RANLIB \$lib"
2788 + postinstall_cmds='$RANLIB $lib'
2793 + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
2794 + test "$enable_shared" = yes && enable_static=no
2798 +AC_MSG_RESULT([$enable_shared])
2800 +AC_MSG_CHECKING([whether to build static libraries])
2801 +# Make sure either enable_shared or enable_static is yes.
2802 +test "$enable_shared" = yes || enable_static=yes
2803 +AC_MSG_RESULT([$enable_static])
2805 +AC_LIBTOOL_CONFIG($1)
2809 +])# AC_LIBTOOL_LANG_C_CONFIG
2812 +# AC_LIBTOOL_LANG_CXX_CONFIG
2813 +# --------------------------
2814 +# Ensure that the configuration vars for the C compiler are
2815 +# suitably defined. Those variables are subsequently used by
2816 +# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
2817 +AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)])
2818 +AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
2820 +AC_REQUIRE([AC_PROG_CXX])
2821 +AC_REQUIRE([_LT_AC_PROG_CXXCPP])
2823 +_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
2824 +_LT_AC_TAGVAR(allow_undefined_flag, $1)=
2825 +_LT_AC_TAGVAR(always_export_symbols, $1)=no
2826 +_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
2827 +_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
2828 +_LT_AC_TAGVAR(hardcode_direct, $1)=no
2829 +_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
2830 +_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
2831 +_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
2832 +_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
2833 +_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
2834 +_LT_AC_TAGVAR(hardcode_automatic, $1)=no
2835 +_LT_AC_TAGVAR(module_cmds, $1)=
2836 +_LT_AC_TAGVAR(module_expsym_cmds, $1)=
2837 +_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
2838 +_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
2839 +_LT_AC_TAGVAR(no_undefined_flag, $1)=
2840 +_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
2841 +_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
2843 +# Dependencies to place before and after the object being linked:
2844 +_LT_AC_TAGVAR(predep_objects, $1)=
2845 +_LT_AC_TAGVAR(postdep_objects, $1)=
2846 +_LT_AC_TAGVAR(predeps, $1)=
2847 +_LT_AC_TAGVAR(postdeps, $1)=
2848 +_LT_AC_TAGVAR(compiler_lib_search_path, $1)=
2850 +# Source file extension for C++ test sources.
2853 +# Object file extension for compiled C++ test sources.
2855 +_LT_AC_TAGVAR(objext, $1)=$objext
2857 +# Code to be used in simple compile tests
2858 +lt_simple_compile_test_code="int some_variable = 0;\n"
2860 +# Code to be used in simple link tests
2861 +lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }\n'
2863 +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
2864 +_LT_AC_SYS_COMPILER
2866 +# save warnings/boilerplate of simple test code
2867 +_LT_COMPILER_BOILERPLATE
2868 +_LT_LINKER_BOILERPLATE
2870 +# Allow CC to be a program name with arguments.
2875 +lt_save_with_gnu_ld=$with_gnu_ld
2876 +lt_save_path_LD=$lt_cv_path_LD
2877 +if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
2878 + lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
2880 + $as_unset lt_cv_prog_gnu_ld
2882 +if test -n "${lt_cv_path_LDCXX+set}"; then
2883 + lt_cv_path_LD=$lt_cv_path_LDCXX
2885 + $as_unset lt_cv_path_LD
2887 +test -z "${LDCXX+set}" || LD=$LDCXX
2890 +_LT_AC_TAGVAR(compiler, $1)=$CC
2891 +_LT_CC_BASENAME([$compiler])
2893 +# We don't want -fno-exception wen compiling C++ code, so set the
2894 +# no_builtin_flag separately
2895 +if test "$GXX" = yes; then
2896 + _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
2898 + _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
2901 +if test "$GXX" = yes; then
2902 + # Set up default GNU C++ configuration
2906 + # Check if GNU C++ uses GNU ld as the underlying linker, since the
2907 + # archiving commands below assume that GNU ld is being used.
2908 + if test "$with_gnu_ld" = yes; then
2909 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
2910 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
2912 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
2913 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
2915 + # If archive_cmds runs LD, not CC, wlarc should be empty
2916 + # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
2917 + # investigate it a little bit more. (MM)
2920 + # ancient GNU ld didn't support --whole-archive et. al.
2921 + if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
2922 + grep 'no-whole-archive' > /dev/null; then
2923 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
2925 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
2931 + # A generic and very simple default shared library creation
2932 + # command for GNU C++ for the case where it uses the native
2933 + # linker, instead of GNU ld. If possible, this setting should
2934 + # overridden to take advantage of the native linker features on
2935 + # the platform it is being used on.
2936 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
2939 + # Commands to make compiler produce verbose output that lists
2940 + # what "hidden" libraries, object files and flags are used when
2941 + # linking a shared library.
2942 + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
2950 +# PORTME: fill in a description of your system's C++ link characteristics
2951 +AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
2952 +_LT_AC_TAGVAR(ld_shlibs, $1)=yes
2955 + # FIXME: insert proper C++ library support
2956 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
2959 + if test "$host_cpu" = ia64; then
2960 + # On IA64, the linker does run time linking by default, so we don't
2961 + # have to do anything special.
2962 + aix_use_runtimelinking=no
2963 + exp_sym_flag='-Bexport'
2966 + aix_use_runtimelinking=no
2968 + # Test if we are trying to use run time linking or normal
2969 + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
2970 + # need to do runtime linking.
2971 + case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
2972 + for ld_flag in $LDFLAGS; do
2975 + aix_use_runtimelinking=yes
2983 + exp_sym_flag='-bexport'
2984 + no_entry_flag='-bnoentry'
2987 + # When large executables or shared objects are built, AIX ld can
2988 + # have problems creating the table of contents. If linking a library
2989 + # or program results in "error TOC overflow" add -mminimal-toc to
2990 + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
2991 + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
2993 + _LT_AC_TAGVAR(archive_cmds, $1)=''
2994 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
2995 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
2996 + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
2998 + if test "$GXX" = yes; then
2999 + case $host_os in aix4.[[012]]|aix4.[[012]].*)
3000 + # We only want to do this on AIX 4.2 and lower, the check
3001 + # below for broken collect2 doesn't work under 4.3+
3002 + collect2name=`${CC} -print-prog-name=collect2`
3003 + if test -f "$collect2name" && \
3004 + strings "$collect2name" | grep resolve_lib_name >/dev/null
3006 + # We have reworked collect2
3007 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3009 + # We have old collect2
3010 + _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
3011 + # It fails to find uninstalled libraries when the uninstalled
3012 + # path is not listed in the libpath. Setting hardcode_minus_L
3013 + # to unsupported forces relinking
3014 + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
3015 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
3016 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
3020 + shared_flag='-shared'
3021 + if test "$aix_use_runtimelinking" = yes; then
3022 + shared_flag="$shared_flag "'${wl}-G'
3026 + if test "$host_cpu" = ia64; then
3027 + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
3028 + # chokes on -Wl,-G. The following line is correct:
3031 + if test "$aix_use_runtimelinking" = yes; then
3032 + shared_flag='${wl}-G'
3034 + shared_flag='${wl}-bM:SRE'
3039 + # It seems that -bexpall does not export symbols beginning with
3040 + # underscore (_), so it is better to generate a list of symbols to export.
3041 + _LT_AC_TAGVAR(always_export_symbols, $1)=yes
3042 + if test "$aix_use_runtimelinking" = yes; then
3043 + # Warning - without using the other runtime loading flags (-brtl),
3044 + # -berok will link without error, but may produce a broken library.
3045 + _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
3046 + # Determine the default libpath from the value encoded in an empty executable.
3047 + _LT_AC_SYS_LIBPATH_AIX
3048 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
3050 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
3052 + if test "$host_cpu" = ia64; then
3053 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
3054 + _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
3055 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
3057 + # Determine the default libpath from the value encoded in an empty executable.
3058 + _LT_AC_SYS_LIBPATH_AIX
3059 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
3060 + # Warning - without using the other run time loading flags,
3061 + # -berok will link without error, but may produce a broken library.
3062 + _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
3063 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
3064 + # Exported symbols can be pulled into shared objects from archives
3065 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
3066 + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
3067 + # This is similar to how AIX traditionally builds its shared libraries.
3068 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
3074 + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
3075 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
3076 + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
3077 + # support --undefined. This deserves some investigation. FIXME
3078 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3080 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
3085 + case $cc_basename in
3087 + # FIXME: insert proper C++ library support
3088 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
3093 + cygwin* | mingw* | pw32*)
3094 + # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
3095 + # as there is no search path for DLLs.
3096 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
3097 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
3098 + _LT_AC_TAGVAR(always_export_symbols, $1)=no
3099 + _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
3101 + if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
3102 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
3103 + # If the export-symbols file already is a .def file (1st line
3104 + # is EXPORTS), use it as is; otherwise, prepend...
3105 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
3106 + cp $export_symbols $output_objdir/$soname.def;
3108 + echo EXPORTS > $output_objdir/$soname.def;
3109 + cat $export_symbols >> $output_objdir/$soname.def;
3111 + $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
3113 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
3116 + darwin* | rhapsody*)
3118 + rhapsody* | darwin1.[[012]])
3119 + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
3121 + *) # Darwin 1.3 on
3122 + if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
3123 + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
3125 + case ${MACOSX_DEPLOYMENT_TARGET} in
3127 + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
3130 + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
3136 + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3137 + _LT_AC_TAGVAR(hardcode_direct, $1)=no
3138 + _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
3139 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
3140 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
3141 + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3143 + if test "$GXX" = yes ; then
3144 + lt_int_apple_cc_single_mod=no
3145 + output_verbose_link_cmd='echo'
3146 + if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
3147 + lt_int_apple_cc_single_mod=yes
3149 + if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
3150 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
3152 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
3154 + _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3155 + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
3156 + if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
3157 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3159 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3161 + _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3163 + case $cc_basename in
3165 + output_verbose_link_cmd='echo'
3166 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
3167 + _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3168 + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
3169 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3170 + _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3173 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
3180 + case $cc_basename in
3182 + # FIXME: insert proper C++ library support
3183 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
3186 + # Green Hills C++ Compiler
3187 + # FIXME: insert proper C++ library support
3188 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
3191 + # FIXME: insert proper C++ library support
3192 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
3197 + # C++ shared libraries reported to be fairly broken before switch to ELF
3198 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
3201 + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3203 + freebsd* | kfreebsd*-gnu | dragonfly*)
3204 + # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
3206 + _LT_AC_TAGVAR(ld_shlibs, $1)=yes
3211 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3212 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3213 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3214 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3215 + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
3216 + # but as the default
3217 + # location of the library.
3219 + case $cc_basename in
3221 + # FIXME: insert proper C++ library support
3222 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
3225 + _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
3226 + # Commands to make compiler produce verbose output that lists
3227 + # what "hidden" libraries, object files and flags are used when
3228 + # linking a shared library.
3230 + # There doesn't appear to be a way to prevent this compiler from
3231 + # explicitly linking system object files so we need to strip them
3232 + # from the output so that they don't get included in the library
3234 + output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[[-]]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
3237 + if test "$GXX" = yes; then
3238 + _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
3240 + # FIXME: insert proper C++ library support
3241 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
3247 + if test $with_gnu_ld = no; then
3248 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3249 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3253 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
3256 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3262 + _LT_AC_TAGVAR(hardcode_direct, $1)=no
3263 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3266 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3267 + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
3268 + # but as the default
3269 + # location of the library.
3273 + case $cc_basename in
3275 + # FIXME: insert proper C++ library support
3276 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
3281 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3284 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3287 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3290 + # Commands to make compiler produce verbose output that lists
3291 + # what "hidden" libraries, object files and flags are used when
3292 + # linking a shared library.
3294 + # There doesn't appear to be a way to prevent this compiler from
3295 + # explicitly linking system object files so we need to strip them
3296 + # from the output so that they don't get included in the library
3298 + output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
3301 + if test "$GXX" = yes; then
3302 + if test $with_gnu_ld = no; then
3305 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3308 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3311 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3316 + # FIXME: insert proper C++ library support
3317 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
3323 + _LT_AC_TAGVAR(hardcode_direct, $1)=no
3324 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3325 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3326 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3327 + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
3328 + # Instead, shared libraries are loaded at an image base (0x10000000 by
3329 + # default) and relocated if they conflict, which is a slow very memory
3330 + # consuming and fragmenting process. To avoid this, we pick a random,
3331 + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
3332 + # time. Moving up from 0x10000000 also allows more sbrk(2) space.
3333 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
3334 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
3337 + case $cc_basename in
3340 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
3342 + # Archives containing C++ object files must be created using
3343 + # "CC -ar", where "CC" is the IRIX C++ compiler. This is
3344 + # necessary to make sure instantiated templates are included
3346 + _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
3349 + if test "$GXX" = yes; then
3350 + if test "$with_gnu_ld" = no; then
3351 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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'
3353 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
3356 + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3359 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3360 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3363 + case $cc_basename in
3365 + # Kuck and Associates, Inc. (KAI) C++ Compiler
3367 + # KCC will only create a shared library if the output file
3368 + # ends with ".so" (or ".sl" for HP-UX), so rename the library
3369 + # to its proper name (with version) after linking.
3370 + _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
3371 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
3372 + # Commands to make compiler produce verbose output that lists
3373 + # what "hidden" libraries, object files and flags are used when
3374 + # linking a shared library.
3376 + # There doesn't appear to be a way to prevent this compiler from
3377 + # explicitly linking system object files so we need to strip them
3378 + # from the output so that they don't get included in the library
3380 + output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
3382 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir'
3383 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3385 + # Archives containing C++ object files must be created using
3386 + # "CC -Bstatic", where "CC" is the KAI C++ compiler.
3387 + _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
3392 + # version 8.0 and above of icpc choke on multiply defined symbols
3393 + # if we add $predep_objects and $postdep_objects, however 7.1 and
3394 + # earlier do not add the objects themselves.
3395 + case `$CC -V 2>&1` in
3397 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
3398 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
3400 + *) # Version 8.0 or newer
3403 + ia64*) tmp_idyn=' -i_dynamic';;
3405 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3406 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
3409 + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3410 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3411 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3412 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
3415 + # Portland Group C++ compiler
3416 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
3417 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
3419 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
3420 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3421 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
3425 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
3426 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
3428 + runpath_var=LD_RUN_PATH
3429 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
3430 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3432 + # Commands to make compiler produce verbose output that lists
3433 + # what "hidden" libraries, object files and flags are used when
3434 + # linking a shared library.
3436 + # There doesn't appear to be a way to prevent this compiler from
3437 + # explicitly linking system object files so we need to strip them
3438 + # from the output so that they don't get included in the library
3440 + output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
3445 + # FIXME: insert proper C++ library support
3446 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
3449 + # FIXME: insert proper C++ library support
3450 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
3453 + case $cc_basename in
3455 + # FIXME: insert proper C++ library support
3456 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
3459 + # FIXME: insert proper C++ library support
3460 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
3465 + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
3466 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
3468 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
3469 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3470 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3472 + # Workaround some broken pre-1.5 toolchains
3473 + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
3476 + # C++ shared libraries are fairly broken
3477 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
3480 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3481 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3482 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
3483 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3484 + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3485 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
3486 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3487 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
3489 + output_verbose_link_cmd='echo'
3492 + case $cc_basename in
3494 + # Kuck and Associates, Inc. (KAI) C++ Compiler
3496 + # KCC will only create a shared library if the output file
3497 + # ends with ".so" (or ".sl" for HP-UX), so rename the library
3498 + # to its proper name (with version) after linking.
3499 + _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
3501 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3502 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3504 + # Archives containing C++ object files must be created using
3505 + # "CC -Bstatic", where "CC" is the KAI C++ compiler.
3506 + _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
3510 + # Rational C++ 2.4.1
3511 + # FIXME: insert proper C++ library support
3512 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
3515 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
3516 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
3518 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3519 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3521 + # Commands to make compiler produce verbose output that lists
3522 + # what "hidden" libraries, object files and flags are used when
3523 + # linking a shared library.
3525 + # There doesn't appear to be a way to prevent this compiler from
3526 + # explicitly linking system object files so we need to strip them
3527 + # from the output so that they don't get included in the library
3529 + output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
3532 + if test "$GXX" = yes && test "$with_gnu_ld" = no; then
3533 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
3534 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
3536 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3537 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3539 + # Commands to make compiler produce verbose output that lists
3540 + # what "hidden" libraries, object files and flags are used when
3541 + # linking a shared library.
3542 + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
3545 + # FIXME: insert proper C++ library support
3546 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
3552 + case $cc_basename in
3554 + # Kuck and Associates, Inc. (KAI) C++ Compiler
3556 + # KCC will only create a shared library if the output file
3557 + # ends with ".so" (or ".sl" for HP-UX), so rename the library
3558 + # to its proper name (with version) after linking.
3559 + _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
3561 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3562 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3564 + # Archives containing C++ object files must be created using
3565 + # the KAI C++ compiler.
3566 + _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
3569 + # Rational C++ 2.4.1
3570 + # FIXME: insert proper C++ library support
3571 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
3574 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
3575 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
3576 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
3577 + echo "-hidden">> $lib.exp~
3578 + $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
3581 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
3582 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3584 + # Commands to make compiler produce verbose output that lists
3585 + # what "hidden" libraries, object files and flags are used when
3586 + # linking a shared library.
3588 + # There doesn't appear to be a way to prevent this compiler from
3589 + # explicitly linking system object files so we need to strip them
3590 + # from the output so that they don't get included in the library
3592 + output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
3595 + if test "$GXX" = yes && test "$with_gnu_ld" = no; then
3596 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
3597 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
3599 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3600 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3602 + # Commands to make compiler produce verbose output that lists
3603 + # what "hidden" libraries, object files and flags are used when
3604 + # linking a shared library.
3605 + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
3608 + # FIXME: insert proper C++ library support
3609 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
3615 + # FIXME: insert proper C++ library support
3616 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
3619 + case $cc_basename in
3622 + # FIXME: insert proper C++ library support
3623 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
3627 + # FIXME: insert proper C++ library support
3628 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
3631 + # FIXME: insert proper C++ library support
3632 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
3637 + case $cc_basename in
3639 + # Sun C++ 4.2, 5.x and Centerline C++
3640 + _LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes
3641 + _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
3642 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3643 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
3644 + $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
3646 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
3647 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3649 + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
3651 + # The C++ compiler is used as linker so we must use $wl
3652 + # flag to pass the commands to the underlying system
3653 + # linker. We must also pass each convience library through
3654 + # to the system linker between allextract/defaultextract.
3655 + # The C++ compiler will combine linker options so we
3656 + # cannot just pass the convience library names through
3658 + # Supported since Solaris 2.6 (maybe 2.5.1?)
3659 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
3662 + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3664 + output_verbose_link_cmd='echo'
3666 + # Archives containing C++ object files must be created using
3667 + # "CC -xar", where "CC" is the Sun C++ compiler. This is
3668 + # necessary to make sure instantiated templates are included
3670 + _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
3673 + # Green Hills C++ Compiler
3674 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
3676 + # The C++ compiler must be used to create the archive.
3677 + _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
3680 + # GNU C++ compiler with Solaris linker
3681 + if test "$GXX" = yes && test "$with_gnu_ld" = no; then
3682 + _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
3683 + if $CC --version | grep -v '^2\.7' > /dev/null; then
3684 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
3685 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
3686 + $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
3688 + # Commands to make compiler produce verbose output that lists
3689 + # what "hidden" libraries, object files and flags are used when
3690 + # linking a shared library.
3691 + output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
3693 + # g++ 2.7 appears to require `-G' NOT `-shared' on this
3695 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
3696 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
3697 + $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
3699 + # Commands to make compiler produce verbose output that lists
3700 + # what "hidden" libraries, object files and flags are used when
3701 + # linking a shared library.
3702 + output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
3705 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
3710 + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
3711 + _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
3712 + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3713 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3714 + runpath_var='LD_RUN_PATH'
3716 + case $cc_basename in
3718 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3719 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3722 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3723 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3727 + sysv5* | sco3.2v5* | sco5v6*)
3728 + # Note: We can NOT use -z defs as we might desire, because we do not
3729 + # link with -lc, and that would cause any symbols used from libc to
3730 + # always be unresolved, which means just about no library would
3731 + # ever link correctly. If we're not using GNU ld we use -z text
3732 + # though, which does catch some bad symbols but isn't as heavy-handed
3734 + # For security reasons, it is highly recommended that you always
3735 + # use absolute paths for naming shared libraries, and exclude the
3736 + # DT_RUNPATH tag from executables and libraries. But doing so
3737 + # requires that you compile everything twice, which is a pain.
3738 + # So that behaviour is only enabled if SCOABSPATH is set to a
3739 + # non-empty value in the environment. Most likely only useful for
3740 + # creating official distributions of packages.
3741 + # This is a hack until libtool officially supports absolute path
3742 + # names for shared libraries.
3743 + _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
3744 + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
3745 + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3746 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3747 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
3748 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
3749 + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3750 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
3751 + runpath_var='LD_RUN_PATH'
3753 + case $cc_basename in
3755 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
3756 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
3759 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
3760 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
3765 + case $cc_basename in
3767 + # NonStop-UX NCC 3.20
3768 + # FIXME: insert proper C++ library support
3769 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
3772 + # FIXME: insert proper C++ library support
3773 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
3778 + # FIXME: insert proper C++ library support
3779 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
3782 + # FIXME: insert proper C++ library support
3783 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
3786 +AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
3787 +test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
3789 +_LT_AC_TAGVAR(GCC, $1)="$GXX"
3790 +_LT_AC_TAGVAR(LD, $1)="$LD"
3792 +AC_LIBTOOL_POSTDEP_PREDEP($1)
3793 +AC_LIBTOOL_PROG_COMPILER_PIC($1)
3794 +AC_LIBTOOL_PROG_CC_C_O($1)
3795 +AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
3796 +AC_LIBTOOL_PROG_LD_SHLIBS($1)
3797 +AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
3798 +AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
3800 +AC_LIBTOOL_CONFIG($1)
3807 +with_gnu_ldcxx=$with_gnu_ld
3808 +with_gnu_ld=$lt_save_with_gnu_ld
3809 +lt_cv_path_LDCXX=$lt_cv_path_LD
3810 +lt_cv_path_LD=$lt_save_path_LD
3811 +lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
3812 +lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
3813 +])# AC_LIBTOOL_LANG_CXX_CONFIG
3815 +# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
3816 +# ------------------------------------
3817 +# Figure out "hidden" library dependencies from verbose
3818 +# compiler output when linking a shared library.
3819 +# Parse the compiler output and extract the necessary
3820 +# objects, libraries and library flags.
3821 +AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[
3822 +dnl we can't use the lt_simple_compile_test_code here,
3823 +dnl because it contains code intended for an executable,
3824 +dnl not a library. It's possible we should let each
3825 +dnl tag define a new lt_????_link_test_code variable,
3826 +dnl but it's only used here...
3827 +ifelse([$1],[],[cat > conftest.$ac_ext <<EOF
3829 +void foo (void) { a = 0; }
3831 +],[$1],[CXX],[cat > conftest.$ac_ext <<EOF
3835 + Foo (void) { a = 0; }
3840 +],[$1],[F77],[cat > conftest.$ac_ext <<EOF
3848 +],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF
3851 + public void bar (void) {
3857 +dnl Parse the compiler output and extract the necessary
3858 +dnl objects, libraries and library flags.
3859 +if AC_TRY_EVAL(ac_compile); then
3860 + # Parse the compiler output and extract the necessary
3861 + # objects, libraries and library flags.
3863 + # Sentinel used to keep track of whether or not we are before
3864 + # the conftest object file.
3865 + pre_test_object_deps_done=no
3867 + # The `*' in the case matches for architectures that use `case' in
3868 + # $output_verbose_cmd can trigger glob expansion during the loop
3869 + # eval without this substitution.
3870 + output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
3872 + for p in `eval $output_verbose_link_cmd`; do
3876 + # Some compilers place space between "-{L,R}" and the path.
3877 + # Remove the space.
3878 + if test $p = "-L" \
3879 + || test $p = "-R"; then
3886 + if test "$pre_test_object_deps_done" = no; then
3889 + # Internal compiler library paths should come after those
3890 + # provided the user. The postdeps already come after the
3891 + # user supplied libs so there is no need to process them.
3892 + if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
3893 + _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
3895 + _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
3898 + # The "-l" case would never come before the object being
3899 + # linked, so don't bother handling this case.
3902 + if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then
3903 + _LT_AC_TAGVAR(postdeps, $1)="${prev}${p}"
3905 + _LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}"
3911 + # This assumes that the test object file only shows up
3912 + # once in the compiler output.
3913 + if test "$p" = "conftest.$objext"; then
3914 + pre_test_object_deps_done=yes
3918 + if test "$pre_test_object_deps_done" = no; then
3919 + if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then
3920 + _LT_AC_TAGVAR(predep_objects, $1)="$p"
3922 + _LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p"
3925 + if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then
3926 + _LT_AC_TAGVAR(postdep_objects, $1)="$p"
3928 + _LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p"
3933 + *) ;; # Ignore the rest.
3941 + echo "libtool.m4: error: problem compiling $1 test program"
3944 +$rm -f confest.$objext
3946 +# PORTME: override above test on systems where it is broken
3950 + # Interix 3.5 installs completely hosed .la files for C++, so rather than
3951 + # hack all around it, let's just trust "g++" to DTRT.
3952 + _LT_AC_TAGVAR(predep_objects,$1)=
3953 + _LT_AC_TAGVAR(postdep_objects,$1)=
3954 + _LT_AC_TAGVAR(postdeps,$1)=
3958 + case $cc_basename in
3960 + # Adding this requires a known-good setup of shared libraries for
3961 + # Sun compiler versions before 5.6, else PIC objects from an old
3962 + # archive will be linked into the output, leading to subtle bugs.
3963 + _LT_AC_TAGVAR(postdeps,$1)='-lCstd -lCrun'
3970 +case " $_LT_AC_TAGVAR(postdeps, $1) " in
3971 +*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
3973 +])# AC_LIBTOOL_POSTDEP_PREDEP
3975 +# AC_LIBTOOL_LANG_F77_CONFIG
3976 +# --------------------------
3977 +# Ensure that the configuration vars for the C compiler are
3978 +# suitably defined. Those variables are subsequently used by
3979 +# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
3980 +AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)])
3981 +AC_DEFUN([_LT_AC_LANG_F77_CONFIG],
3982 +[AC_REQUIRE([AC_PROG_F77])
3983 +AC_LANG_PUSH(Fortran 77)
3985 +_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3986 +_LT_AC_TAGVAR(allow_undefined_flag, $1)=
3987 +_LT_AC_TAGVAR(always_export_symbols, $1)=no
3988 +_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
3989 +_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
3990 +_LT_AC_TAGVAR(hardcode_direct, $1)=no
3991 +_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
3992 +_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
3993 +_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
3994 +_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
3995 +_LT_AC_TAGVAR(hardcode_automatic, $1)=no
3996 +_LT_AC_TAGVAR(module_cmds, $1)=
3997 +_LT_AC_TAGVAR(module_expsym_cmds, $1)=
3998 +_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
3999 +_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
4000 +_LT_AC_TAGVAR(no_undefined_flag, $1)=
4001 +_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
4002 +_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
4004 +# Source file extension for f77 test sources.
4007 +# Object file extension for compiled f77 test sources.
4009 +_LT_AC_TAGVAR(objext, $1)=$objext
4011 +# Code to be used in simple compile tests
4012 +lt_simple_compile_test_code=" subroutine t\n return\n end\n"
4014 +# Code to be used in simple link tests
4015 +lt_simple_link_test_code=" program t\n end\n"
4017 +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
4018 +_LT_AC_SYS_COMPILER
4020 +# save warnings/boilerplate of simple test code
4021 +_LT_COMPILER_BOILERPLATE
4022 +_LT_LINKER_BOILERPLATE
4024 +# Allow CC to be a program name with arguments.
4028 +_LT_AC_TAGVAR(compiler, $1)=$CC
4029 +_LT_CC_BASENAME([$compiler])
4031 +AC_MSG_CHECKING([if libtool supports shared libraries])
4032 +AC_MSG_RESULT([$can_build_shared])
4034 +AC_MSG_CHECKING([whether to build shared libraries])
4035 +test "$can_build_shared" = "no" && enable_shared=no
4037 +# On AIX, shared libraries and static libraries use the same namespace, and
4038 +# are all built from PIC.
4041 + test "$enable_shared" = yes && enable_static=no
4042 + if test -n "$RANLIB"; then
4043 + archive_cmds="$archive_cmds~\$RANLIB \$lib"
4044 + postinstall_cmds='$RANLIB $lib'
4048 + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
4049 + test "$enable_shared" = yes && enable_static=no
4053 +AC_MSG_RESULT([$enable_shared])
4055 +AC_MSG_CHECKING([whether to build static libraries])
4056 +# Make sure either enable_shared or enable_static is yes.
4057 +test "$enable_shared" = yes || enable_static=yes
4058 +AC_MSG_RESULT([$enable_static])
4060 +_LT_AC_TAGVAR(GCC, $1)="$G77"
4061 +_LT_AC_TAGVAR(LD, $1)="$LD"
4063 +AC_LIBTOOL_PROG_COMPILER_PIC($1)
4064 +AC_LIBTOOL_PROG_CC_C_O($1)
4065 +AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
4066 +AC_LIBTOOL_PROG_LD_SHLIBS($1)
4067 +AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4068 +AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
4070 +AC_LIBTOOL_CONFIG($1)
4074 +])# AC_LIBTOOL_LANG_F77_CONFIG
4077 +# AC_LIBTOOL_LANG_GCJ_CONFIG
4078 +# --------------------------
4079 +# Ensure that the configuration vars for the C compiler are
4080 +# suitably defined. Those variables are subsequently used by
4081 +# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4082 +AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)])
4083 +AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG],
4086 +# Source file extension for Java test sources.
4089 +# Object file extension for compiled Java test sources.
4091 +_LT_AC_TAGVAR(objext, $1)=$objext
4093 +# Code to be used in simple compile tests
4094 +lt_simple_compile_test_code="class foo {}\n"
4096 +# Code to be used in simple link tests
4097 +lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }\n'
4099 +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
4100 +_LT_AC_SYS_COMPILER
4102 +# save warnings/boilerplate of simple test code
4103 +_LT_COMPILER_BOILERPLATE
4104 +_LT_LINKER_BOILERPLATE
4106 +# Allow CC to be a program name with arguments.
4110 +_LT_AC_TAGVAR(compiler, $1)=$CC
4111 +_LT_CC_BASENAME([$compiler])
4113 +# GCJ did not exist at the time GCC didn't implicitly link libc in.
4114 +_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4116 +_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
4118 +AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
4119 +AC_LIBTOOL_PROG_COMPILER_PIC($1)
4120 +AC_LIBTOOL_PROG_CC_C_O($1)
4121 +AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
4122 +AC_LIBTOOL_PROG_LD_SHLIBS($1)
4123 +AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4124 +AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
4126 +AC_LIBTOOL_CONFIG($1)
4130 +])# AC_LIBTOOL_LANG_GCJ_CONFIG
4133 +# AC_LIBTOOL_LANG_RC_CONFIG
4134 +# -------------------------
4135 +# Ensure that the configuration vars for the Windows resource compiler are
4136 +# suitably defined. Those variables are subsequently used by
4137 +# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4138 +AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)])
4139 +AC_DEFUN([_LT_AC_LANG_RC_CONFIG],
4142 +# Source file extension for RC test sources.
4145 +# Object file extension for compiled RC test sources.
4147 +_LT_AC_TAGVAR(objext, $1)=$objext
4149 +# Code to be used in simple compile tests
4150 +lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
4152 +# Code to be used in simple link tests
4153 +lt_simple_link_test_code="$lt_simple_compile_test_code"
4155 +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
4156 +_LT_AC_SYS_COMPILER
4158 +# save warnings/boilerplate of simple test code
4159 +_LT_COMPILER_BOILERPLATE
4160 +_LT_LINKER_BOILERPLATE
4162 +# Allow CC to be a program name with arguments.
4166 +_LT_AC_TAGVAR(compiler, $1)=$CC
4167 +_LT_CC_BASENAME([$compiler])
4168 +_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
4170 +AC_LIBTOOL_CONFIG($1)
4174 +])# AC_LIBTOOL_LANG_RC_CONFIG
4177 +# AC_LIBTOOL_CONFIG([TAGNAME])
4178 +# ----------------------------
4179 +# If TAGNAME is not passed, then create an initial libtool script
4180 +# with a default configuration from the untagged config vars. Otherwise
4181 +# add code to config.status for appending the configuration named by
4182 +# TAGNAME from the matching tagged config vars.
4183 +AC_DEFUN([AC_LIBTOOL_CONFIG],
4184 +[# The else clause should only fire when bootstrapping the
4185 +# libtool distribution, otherwise you forgot to ship ltmain.sh
4186 +# with your package, and you will get complaints that there are
4187 +# no rules to generate ltmain.sh.
4188 +if test -f "$ltmain"; then
4189 + # See if we are running on zsh, and set the options which allow our commands through
4190 + # without removal of \ escapes.
4191 + if test -n "${ZSH_VERSION+set}" ; then
4192 + setopt NO_GLOB_SUBST
4194 + # Now quote all the things that may contain metacharacters while being
4195 + # careful not to overquote the AC_SUBSTed values. We take copies of the
4196 + # variables and quote the copies for generation of the libtool script.
4197 + for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
4199 + libname_spec library_names_spec soname_spec extract_expsyms_cmds \
4200 + old_striplib striplib file_magic_cmd finish_cmds finish_eval \
4201 + deplibs_check_method reload_flag reload_cmds need_locks \
4202 + lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
4203 + lt_cv_sys_global_symbol_to_c_name_address \
4204 + sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
4205 + old_postinstall_cmds old_postuninstall_cmds \
4206 + _LT_AC_TAGVAR(compiler, $1) \
4207 + _LT_AC_TAGVAR(CC, $1) \
4208 + _LT_AC_TAGVAR(LD, $1) \
4209 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \
4210 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \
4211 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1) \
4212 + _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \
4213 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \
4214 + _LT_AC_TAGVAR(thread_safe_flag_spec, $1) \
4215 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1) \
4216 + _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \
4217 + _LT_AC_TAGVAR(old_archive_cmds, $1) \
4218 + _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \
4219 + _LT_AC_TAGVAR(predep_objects, $1) \
4220 + _LT_AC_TAGVAR(postdep_objects, $1) \
4221 + _LT_AC_TAGVAR(predeps, $1) \
4222 + _LT_AC_TAGVAR(postdeps, $1) \
4223 + _LT_AC_TAGVAR(compiler_lib_search_path, $1) \
4224 + _LT_AC_TAGVAR(archive_cmds, $1) \
4225 + _LT_AC_TAGVAR(archive_expsym_cmds, $1) \
4226 + _LT_AC_TAGVAR(postinstall_cmds, $1) \
4227 + _LT_AC_TAGVAR(postuninstall_cmds, $1) \
4228 + _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \
4229 + _LT_AC_TAGVAR(allow_undefined_flag, $1) \
4230 + _LT_AC_TAGVAR(no_undefined_flag, $1) \
4231 + _LT_AC_TAGVAR(export_symbols_cmds, $1) \
4232 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \
4233 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \
4234 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1) \
4235 + _LT_AC_TAGVAR(hardcode_automatic, $1) \
4236 + _LT_AC_TAGVAR(module_cmds, $1) \
4237 + _LT_AC_TAGVAR(module_expsym_cmds, $1) \
4238 + _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
4239 + _LT_AC_TAGVAR(exclude_expsyms, $1) \
4240 + _LT_AC_TAGVAR(include_expsyms, $1); do
4243 + _LT_AC_TAGVAR(old_archive_cmds, $1) | \
4244 + _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \
4245 + _LT_AC_TAGVAR(archive_cmds, $1) | \
4246 + _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \
4247 + _LT_AC_TAGVAR(module_cmds, $1) | \
4248 + _LT_AC_TAGVAR(module_expsym_cmds, $1) | \
4249 + _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \
4250 + _LT_AC_TAGVAR(export_symbols_cmds, $1) | \
4251 + extract_expsyms_cmds | reload_cmds | finish_cmds | \
4252 + postinstall_cmds | postuninstall_cmds | \
4253 + old_postinstall_cmds | old_postuninstall_cmds | \
4254 + sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
4255 + # Double-quote double-evaled strings.
4256 + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
4259 + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
4265 + *'\[$]0 --fallback-echo"')
4266 + lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'`
4271 + [cfgfile="${ofile}T"
4272 + trap "$rm \"$cfgfile\"; exit 1" 1 2 15
4274 + AC_MSG_NOTICE([creating $ofile])],
4275 + [cfgfile="$ofile"])
4277 + cat <<__EOF__ >> "$cfgfile"
4281 +# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
4282 +# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
4283 +# NOTE: Changes made to this file will be lost: look at ltmain.sh.
4285 +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
4286 +# Free Software Foundation, Inc.
4288 +# This file is part of GNU Libtool:
4289 +# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
4291 +# This program is free software; you can redistribute it and/or modify
4292 +# it under the terms of the GNU General Public License as published by
4293 +# the Free Software Foundation; either version 2 of the License, or
4294 +# (at your option) any later version.
4296 +# This program is distributed in the hope that it will be useful, but
4297 +# WITHOUT ANY WARRANTY; without even the implied warranty of
4298 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
4299 +# General Public License for more details.
4301 +# You should have received a copy of the GNU General Public License
4302 +# along with this program; if not, write to the Free Software
4303 +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
4305 +# As a special exception to the GNU General Public License, if you
4306 +# distribute this file as part of a program that contains a
4307 +# configuration script generated by Autoconf, you may include it under
4308 +# the same distribution terms that you use for the rest of that program.
4310 +# A sed program that does not truncate output.
4313 +# Sed that helps us avoid accidentally triggering echo(1) options like -n.
4314 +Xsed="$SED -e 1s/^X//"
4316 +# The HP-UX ksh and POSIX shell print the target directory to stdout
4317 +# if CDPATH is set.
4318 +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
4320 +# The names of the tagged configurations supported by this script.
4323 +# ### BEGIN LIBTOOL CONFIG],
4324 +[# ### BEGIN LIBTOOL TAG CONFIG: $tagname])
4326 +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4328 +# Shell to use when invoking shell scripts.
4331 +# Whether or not to build shared libraries.
4332 +build_libtool_libs=$enable_shared
4334 +# Whether or not to build static libraries.
4335 +build_old_libs=$enable_static
4337 +# Whether or not to add -lc for building shared libraries.
4338 +build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)
4340 +# Whether or not to disallow shared libs when runtime libs are static
4341 +allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)
4343 +# Whether or not to optimize for fast installation.
4344 +fast_install=$enable_fast_install
4347 +host_alias=$host_alias
4351 +# The build system.
4352 +build_alias=$build_alias
4356 +# An echo program that does not interpret backslashes.
4361 +AR_FLAGS=$lt_AR_FLAGS
4366 +# LTCC compiler flags.
4367 +LTCFLAGS=$lt_LTCFLAGS
4369 +# A language-specific compiler.
4370 +CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
4372 +# Is the compiler the GNU C compiler?
4373 +with_gcc=$_LT_AC_TAGVAR(GCC, $1)
4378 +# The linker used to build libraries.
4379 +LD=$lt_[]_LT_AC_TAGVAR(LD, $1)
4381 +# Whether we need hard or soft links.
4384 +# A BSD-compatible nm program.
4387 +# A symbol stripping program
4390 +# Used to examine libraries when file_magic_cmd begins "file"
4391 +MAGIC_CMD=$MAGIC_CMD
4393 +# Used on cygwin: DLL creation program.
4396 +# Used on cygwin: object dumper.
4399 +# Used on cygwin: assembler.
4402 +# The name of the directory that contains temporary libtool files.
4405 +# How to create reloadable object files.
4406 +reload_flag=$lt_reload_flag
4407 +reload_cmds=$lt_reload_cmds
4409 +# How to pass a linker flag through the compiler.
4410 +wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
4412 +# Object file suffix (normally "o").
4413 +objext="$ac_objext"
4415 +# Old archive suffix (normally "a").
4418 +# Shared library suffix (normally ".so").
4419 +shrext_cmds='$shrext_cmds'
4421 +# Executable file suffix (normally "").
4424 +# Additional compiler flags for building library objects.
4425 +pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
4428 +# What is the maximum length of a command?
4429 +max_cmd_len=$lt_cv_sys_max_cmd_len
4431 +# Does compiler simultaneously support -c and -o options?
4432 +compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
4434 +# Must we lock files when doing compilation?
4435 +need_locks=$lt_need_locks
4437 +# Do we need the lib prefix for modules?
4438 +need_lib_prefix=$need_lib_prefix
4440 +# Do we need a version for libraries?
4441 +need_version=$need_version
4443 +# Whether dlopen is supported.
4444 +dlopen_support=$enable_dlopen
4446 +# Whether dlopen of programs is supported.
4447 +dlopen_self=$enable_dlopen_self
4449 +# Whether dlopen of statically linked programs is supported.
4450 +dlopen_self_static=$enable_dlopen_self_static
4452 +# Compiler flag to prevent dynamic linking.
4453 +link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1)
4455 +# Compiler flag to turn off builtin functions.
4456 +no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)
4458 +# Compiler flag to allow reflexive dlopens.
4459 +export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)
4461 +# Compiler flag to generate shared objects directly from archives.
4462 +whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1)
4464 +# Compiler flag to generate thread-safe objects.
4465 +thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1)
4467 +# Library versioning type.
4468 +version_type=$version_type
4470 +# Format of library name prefix.
4471 +libname_spec=$lt_libname_spec
4473 +# List of archive names. First name is the real one, the rest are links.
4474 +# The last name is the one that the linker finds with -lNAME.
4475 +library_names_spec=$lt_library_names_spec
4477 +# The coded name of the library, if different from the real name.
4478 +soname_spec=$lt_soname_spec
4480 +# Commands used to build and install an old-style archive.
4482 +old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1)
4483 +old_postinstall_cmds=$lt_old_postinstall_cmds
4484 +old_postuninstall_cmds=$lt_old_postuninstall_cmds
4486 +# Create an old-style archive from a shared archive.
4487 +old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1)
4489 +# Create a temporary old-style archive to link instead of a shared archive.
4490 +old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)
4492 +# Commands used to build and install a shared archive.
4493 +archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1)
4494 +archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1)
4495 +postinstall_cmds=$lt_postinstall_cmds
4496 +postuninstall_cmds=$lt_postuninstall_cmds
4498 +# Commands used to build a loadable module (assumed same as above if empty)
4499 +module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1)
4500 +module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1)
4502 +# Commands to strip libraries.
4503 +old_striplib=$lt_old_striplib
4504 +striplib=$lt_striplib
4506 +# Dependencies to place before the objects being linked to create a
4508 +predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1)
4510 +# Dependencies to place after the objects being linked to create a
4512 +postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1)
4514 +# Dependencies to place before the objects being linked to create a
4516 +predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1)
4518 +# Dependencies to place after the objects being linked to create a
4520 +postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
4522 +# The library search path used internally by the compiler when linking
4523 +# a shared library.
4524 +compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
4526 +# Method to check whether dependent libraries are shared objects.
4527 +deplibs_check_method=$lt_deplibs_check_method
4529 +# Command to use when deplibs_check_method == file_magic.
4530 +file_magic_cmd=$lt_file_magic_cmd
4532 +# Flag that allows shared libraries with undefined symbols to be built.
4533 +allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1)
4535 +# Flag that forces no undefined symbols.
4536 +no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1)
4538 +# Commands used to finish a libtool library installation in a directory.
4539 +finish_cmds=$lt_finish_cmds
4541 +# Same as above, but a single script fragment to be evaled but not shown.
4542 +finish_eval=$lt_finish_eval
4544 +# Take the output of nm and produce a listing of raw symbols and C names.
4545 +global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
4547 +# Transform the output of nm in a proper C declaration
4548 +global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
4550 +# Transform the output of nm in a C name address pair
4551 +global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
4553 +# This is the shared library runtime path variable.
4554 +runpath_var=$runpath_var
4556 +# This is the shared library path variable.
4557 +shlibpath_var=$shlibpath_var
4559 +# Is shlibpath searched before the hard-coded library search path?
4560 +shlibpath_overrides_runpath=$shlibpath_overrides_runpath
4562 +# How to hardcode a shared library path into an executable.
4563 +hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1)
4565 +# Whether we should hardcode library paths into libraries.
4566 +hardcode_into_libs=$hardcode_into_libs
4568 +# Flag to hardcode \$libdir into a binary during linking.
4569 +# This must work even if \$libdir does not exist.
4570 +hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)
4572 +# If ld is used when linking, flag to hardcode \$libdir into
4573 +# a binary during linking. This must work even if \$libdir does
4575 +hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)
4577 +# Whether we need a single -rpath flag with a separated argument.
4578 +hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1)
4580 +# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
4581 +# resulting binary.
4582 +hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1)
4584 +# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
4585 +# resulting binary.
4586 +hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1)
4588 +# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
4589 +# the resulting binary.
4590 +hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)
4592 +# Set to yes if building a shared library automatically hardcodes DIR into the library
4593 +# and all subsequent libraries and executables linked against it.
4594 +hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1)
4596 +# Variables whose values should be saved in libtool wrapper scripts and
4597 +# restored at relink time.
4598 +variables_saved_for_relink="$variables_saved_for_relink"
4600 +# Whether libtool must link a program against all its dependency libraries.
4601 +link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1)
4603 +# Compile-time system search path for libraries
4604 +sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
4606 +# Run-time system search path for libraries
4607 +sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
4609 +# Fix the shell variable \$srcfile for the compiler.
4610 +fix_srcfile_path="$_LT_AC_TAGVAR(fix_srcfile_path, $1)"
4612 +# Set to yes if exported symbols are required.
4613 +always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
4615 +# The commands to list exported symbols.
4616 +export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1)
4618 +# The commands to extract the exported symbol list from a shared archive.
4619 +extract_expsyms_cmds=$lt_extract_expsyms_cmds
4621 +# Symbols that should not be listed in the preloaded symbols.
4622 +exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1)
4624 +# Symbols that must always be exported.
4625 +include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1)
4628 +[# ### END LIBTOOL CONFIG],
4629 +[# ### END LIBTOOL TAG CONFIG: $tagname])
4636 + cat <<\EOF >> "$cfgfile"
4638 +# AIX sometimes has problems with the GCC collect2 program. For some
4639 +# reason, if we set the COLLECT_NAMES environment variable, the problems
4640 +# vanish in a puff of smoke.
4641 +if test "X${COLLECT_NAMES+set}" != Xset; then
4643 + export COLLECT_NAMES
4649 + # We use sed instead of cat because bash on DJGPP gets confused if
4650 + # if finds mixed CR/LF and LF-only lines. Since sed operates in
4651 + # text mode, it properly converts lines to CR/LF. This bash problem
4652 + # is reportedly fixed, but why not run on old versions too?
4653 + sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
4655 + mv -f "$cfgfile" "$ofile" || \
4656 + (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
4660 + # If there is no Makefile yet, we rely on a make rule to execute
4661 + # `config.status --recheck' to rerun these tests and create the
4662 + # libtool script then.
4663 + ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
4664 + if test -f "$ltmain_in"; then
4665 + test -f Makefile && make "$ltmain"
4668 +])# AC_LIBTOOL_CONFIG
4671 +# AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME])
4672 +# -------------------------------------------
4673 +AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI],
4674 +[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
4676 +_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
4678 +if test "$GCC" = yes; then
4679 + _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
4681 + AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
4682 + lt_cv_prog_compiler_rtti_exceptions,
4683 + [-fno-rtti -fno-exceptions], [],
4684 + [_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
4686 +])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI
4689 +# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
4690 +# ---------------------------------
4691 +AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
4692 +[AC_REQUIRE([AC_CANONICAL_HOST])
4693 +AC_REQUIRE([AC_PROG_NM])
4694 +AC_REQUIRE([AC_OBJEXT])
4695 +# Check for command to grab the raw symbol name followed by C symbol from nm.
4696 +AC_MSG_CHECKING([command to parse $NM output from $compiler object])
4697 +AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
4699 +# These are sane defaults that work on at least a few old systems.
4700 +# [They come from Ultrix. What could be older than Ultrix?!! ;)]
4702 +# Character class describing NM global symbol codes.
4703 +symcode='[[BCDEGRST]]'
4705 +# Regexp to match symbols that can be accessed directly from C.
4706 +sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
4708 +# Transform an extracted symbol line into a proper C declaration
4709 +lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
4711 +# Transform an extracted symbol line into symbol name and symbol address
4712 +lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
4714 +# Define system-specific variables.
4717 + symcode='[[BCDT]]'
4719 +cygwin* | mingw* | pw32*)
4720 + symcode='[[ABCDGISTW]]'
4722 +hpux*) # Its linker distinguishes data from code symbols
4723 + if test "$host_cpu" = ia64; then
4724 + symcode='[[ABCDEGRST]]'
4726 + lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4727 + lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
4730 + if test "$host_cpu" = ia64; then
4731 + symcode='[[ABCDGIRSTW]]'
4732 + lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4733 + lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
4736 +irix* | nonstopux*)
4737 + symcode='[[BCDEGRST]]'
4740 + symcode='[[BCDEGQRST]]'
4743 + symcode='[[BDRT]]'
4751 +sysv5* | sco5v6* | unixware* | OpenUNIX*)
4752 + symcode='[[ABDT]]'
4755 + symcode='[[DFNSTU]]'
4759 +# Handle CRLF in mingw tool chain
4763 + opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4767 +# If we're using GNU nm, then use its standard symbol codes.
4768 +case `$NM -V 2>&1` in
4769 +*GNU* | *'with BFD'*)
4770 + symcode='[[ABCDGIRSTW]]' ;;
4773 +# Try without a prefix undercore, then with it.
4774 +for ac_symprfx in "" "_"; do
4776 + # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
4777 + symxfrm="\\1 $ac_symprfx\\2 \\2"
4779 + # Write the raw and C identifiers.
4780 + lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
4782 + # Check to see that the pipe works correctly.
4786 + cat > conftest.$ac_ext <<EOF
4791 +void nm_test_func(){}
4795 +int main(){nm_test_var='a';nm_test_func();return(0);}
4798 + if AC_TRY_EVAL(ac_compile); then
4799 + # Now try to grab the symbols.
4801 + if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
4802 + # Try sorting and uniquifying the output.
4803 + if sort "$nlist" | uniq > "$nlist"T; then
4804 + mv -f "$nlist"T "$nlist"
4809 + # Make sure that we snagged all the symbols we need.
4810 + if grep ' nm_test_var$' "$nlist" >/dev/null; then
4811 + if grep ' nm_test_func$' "$nlist" >/dev/null; then
4812 + cat <<EOF > conftest.$ac_ext
4818 + # Now generate the symbol file.
4819 + eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
4821 + cat <<EOF >> conftest.$ac_ext
4822 +#if defined (__STDC__) && __STDC__
4823 +# define lt_ptr_t void *
4825 +# define lt_ptr_t char *
4829 +/* The mapping between symbol names and symbols. */
4834 +lt_preloaded_symbols[[]] =
4837 + $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
4838 + cat <<\EOF >> conftest.$ac_ext
4846 + # Now try linking the two files.
4847 + mv conftest.$ac_objext conftstm.$ac_objext
4848 + lt_save_LIBS="$LIBS"
4849 + lt_save_CFLAGS="$CFLAGS"
4850 + LIBS="conftstm.$ac_objext"
4851 + CFLAGS="$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
4852 + if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
4855 + LIBS="$lt_save_LIBS"
4856 + CFLAGS="$lt_save_CFLAGS"
4858 + echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
4861 + echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
4864 + echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
4867 + echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
4868 + cat conftest.$ac_ext >&5
4870 + rm -f conftest* conftst*
4872 + # Do not use the global_symbol_pipe unless it works.
4873 + if test "$pipe_works" = yes; then
4876 + lt_cv_sys_global_symbol_pipe=
4880 +if test -z "$lt_cv_sys_global_symbol_pipe"; then
4881 + lt_cv_sys_global_symbol_to_cdecl=
4883 +if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
4884 + AC_MSG_RESULT(failed)
4888 +]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
4891 +# AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME])
4892 +# ---------------------------------------
4893 +AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC],
4894 +[_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=
4895 +_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
4896 +_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=
4898 +AC_MSG_CHECKING([for $compiler option to produce PIC])
4899 + ifelse([$1],[CXX],[
4900 + # C++ specific cases for pic, static, wl, etc.
4901 + if test "$GXX" = yes; then
4902 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4903 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
4907 + # All AIX code is PIC.
4908 + if test "$host_cpu" = ia64; then
4909 + # AIX 5 now supports IA64 processor
4910 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4914 + # FIXME: we need at least 68020 code to build shared libraries, but
4915 + # adding the `-m68020' flag to GCC prevents building anything better,
4917 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
4919 + beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
4920 + # PIC is the default for these OSes.
4922 + mingw* | os2* | pw32*)
4923 + # This hack is so that the source file can tell whether it is being
4924 + # built for inclusion in a dll (and should export symbols for example).
4925 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
4927 + darwin* | rhapsody*)
4928 + # PIC is the default on this platform
4929 + # Common symbols not allowed in MH_DYLIB files
4930 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
4933 + # DJGPP does not support shared libraries at all
4934 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
4937 + # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4938 + # Instead, we relocate shared libraries at runtime.
4941 + if test -d /usr/nec; then
4942 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
4946 + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
4947 + # not for PA HP-UX.
4952 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4957 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4963 + # All AIX code is PIC.
4964 + if test "$host_cpu" = ia64; then
4965 + # AIX 5 now supports IA64 processor
4966 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4968 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
4972 + case $cc_basename in
4974 + # Green Hills C++ Compiler
4975 + # _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
4980 + # PIC is the default on this platform
4981 + # Common symbols not allowed in MH_DYLIB files
4982 + case $cc_basename in
4984 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
4985 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4990 + case $cc_basename in
4992 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4995 + # Green Hills C++ Compiler
4996 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5002 + freebsd* | kfreebsd*-gnu | dragonfly*)
5003 + # FreeBSD uses GNU C++
5005 + hpux9* | hpux10* | hpux11*)
5006 + case $cc_basename in
5008 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5009 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
5010 + if test "$host_cpu" != ia64; then
5011 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
5015 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5016 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
5022 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
5031 + # This is c89, which is MS Visual C++ (no shared libs)
5032 + # Anyone wants to do a port?
5034 + irix5* | irix6* | nonstopux*)
5035 + case $cc_basename in
5037 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5038 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5039 + # CC pic flag -KPIC is the default.
5046 + case $cc_basename in
5048 + # KAI C++ Compiler
5049 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
5050 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5054 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5055 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5056 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
5059 + # Portland Group C++ compiler.
5060 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5061 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
5062 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5066 + # Make sure the PIC flag is empty. It appears that all Alpha
5067 + # Linux and Compaq Tru64 Unix objects are PIC.
5068 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5069 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5080 + case $cc_basename in
5082 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
5090 + osf3* | osf4* | osf5*)
5091 + case $cc_basename in
5093 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
5096 + # Rational C++ 2.4.1
5097 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5100 + # Digital/Compaq C++
5101 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5102 + # Make sure the PIC flag is empty. It appears that all Alpha
5103 + # Linux and Compaq Tru64 Unix objects are PIC.
5104 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5105 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5114 + case $cc_basename in
5116 + # Sun C++ 4.2, 5.x and Centerline C++
5117 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5118 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5119 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
5122 + # Green Hills C++ Compiler
5123 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
5130 + case $cc_basename in
5133 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5134 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5138 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5145 + case $cc_basename in
5147 + # NonStop-UX NCC 3.20
5148 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5154 + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
5155 + case $cc_basename in
5157 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5158 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5159 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5166 + _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5172 + if test "$GCC" = yes; then
5173 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5174 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
5178 + # All AIX code is PIC.
5179 + if test "$host_cpu" = ia64; then
5180 + # AIX 5 now supports IA64 processor
5181 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5186 + # FIXME: we need at least 68020 code to build shared libraries, but
5187 + # adding the `-m68020' flag to GCC prevents building anything better,
5189 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
5192 + beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5193 + # PIC is the default for these OSes.
5196 + mingw* | pw32* | os2*)
5197 + # This hack is so that the source file can tell whether it is being
5198 + # built for inclusion in a dll (and should export symbols for example).
5199 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
5202 + darwin* | rhapsody*)
5203 + # PIC is the default on this platform
5204 + # Common symbols not allowed in MH_DYLIB files
5205 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
5209 + # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5210 + # Instead, we relocate shared libraries at runtime.
5214 + # Just because we use GCC doesn't mean we suddenly get shared libraries
5215 + # on systems that don't support them.
5216 + _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5221 + if test -d /usr/nec; then
5222 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
5227 + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5228 + # not for PA HP-UX.
5234 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5240 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5244 + # PORTME Check for flag to pass linker flags through the system compiler.
5247 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5248 + if test "$host_cpu" = ia64; then
5249 + # AIX 5 now supports IA64 processor
5250 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5252 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
5256 + # PIC is the default on this platform
5257 + # Common symbols not allowed in MH_DYLIB files
5258 + case $cc_basename in
5260 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
5261 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5266 + mingw* | pw32* | os2*)
5267 + # This hack is so that the source file can tell whether it is being
5268 + # built for inclusion in a dll (and should export symbols for example).
5269 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
5272 + hpux9* | hpux10* | hpux11*)
5273 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5274 + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5275 + # not for PA HP-UX.
5281 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
5284 + # Is there a better lt_prog_compiler_static that works with the bundled CC?
5285 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
5288 + irix5* | irix6* | nonstopux*)
5289 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5290 + # PIC (with -KPIC) is the default.
5291 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5295 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5296 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5300 + case $cc_basename in
5302 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5303 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5304 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
5306 + pgcc* | pgf77* | pgf90* | pgf95*)
5307 + # Portland Group compilers (*not* the Pentium gcc compiler,
5308 + # which looks to be a dead project)
5309 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5310 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
5311 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5314 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5315 + # All Alpha code is PIC.
5316 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5321 + osf3* | osf4* | osf5*)
5322 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5323 + # All OSF/1 code is PIC.
5324 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5328 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5329 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5330 + case $cc_basename in
5331 + f77* | f90* | f95*)
5332 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
5334 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
5339 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
5340 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
5341 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5344 + sysv4 | sysv4.2uw2* | sysv4.3*)
5345 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5346 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5347 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5351 + if test -d /usr/nec ;then
5352 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
5353 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5357 + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
5358 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5359 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5360 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5364 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5365 + _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5369 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5370 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5374 + _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5379 +AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)])
5382 +# Check to make sure the PIC flag actually works.
5384 +if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
5385 + AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
5386 + _LT_AC_TAGVAR(lt_prog_compiler_pic_works, $1),
5387 + [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
5388 + [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
5390 + *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;;
5392 + [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5393 + _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
5396 + # For platforms which do not support PIC, -DPIC is meaningless:
5398 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5401 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
5406 +# Check to make sure the static flag actually works.
5408 +wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\"
5409 +AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
5410 + _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
5411 + $lt_tmp_static_flag,
5413 + [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
5417 +# AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME])
5418 +# ------------------------------------
5419 +# See if the linker supports building shared libraries.
5420 +AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
5421 +[AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
5422 +ifelse([$1],[CXX],[
5423 + _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5426 + # If we're using GNU nm, then we don't want the "-C" option.
5427 + # -C means demangle to AIX nm, but means don't demangle with GNU nm
5428 + if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
5429 + _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
5431 + _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
5435 + _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
5438 + _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]] /s/.* \([[^ ]]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([[^ ]]*\) [[^ ]]*/\1 DATA/;/^I /d;/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
5441 + _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5446 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=
5447 + _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
5448 + _LT_AC_TAGVAR(archive_cmds, $1)=
5449 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
5450 + _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)=
5451 + _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)=
5452 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
5453 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
5454 + _LT_AC_TAGVAR(thread_safe_flag_spec, $1)=
5455 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
5456 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
5457 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
5458 + _LT_AC_TAGVAR(hardcode_direct, $1)=no
5459 + _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
5460 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
5461 + _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
5462 + _LT_AC_TAGVAR(hardcode_automatic, $1)=no
5463 + _LT_AC_TAGVAR(module_cmds, $1)=
5464 + _LT_AC_TAGVAR(module_expsym_cmds, $1)=
5465 + _LT_AC_TAGVAR(always_export_symbols, $1)=no
5466 + _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5467 + # include_expsyms should be a list of space-separated symbols to be *always*
5468 + # included in the symbol list
5469 + _LT_AC_TAGVAR(include_expsyms, $1)=
5470 + # exclude_expsyms can be an extended regexp of symbols to exclude
5471 + # it will be wrapped by ` (' and `)$', so one must not match beginning or
5472 + # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5473 + # as well as any symbol that contains `d'.
5474 + _LT_AC_TAGVAR(exclude_expsyms, $1)="_GLOBAL_OFFSET_TABLE_"
5475 + # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5476 + # platforms (ab)use it in PIC code, but their linkers get confused if
5477 + # the symbol is explicitly referenced. Since portable code cannot
5478 + # rely on this symbol name, it's probably fine to never include it in
5479 + # preloaded symbol tables.
5480 + extract_expsyms_cmds=
5481 + # Just being paranoid about ensuring that cc_basename is set.
5482 + _LT_CC_BASENAME([$compiler])
5484 + cygwin* | mingw* | pw32*)
5485 + # FIXME: the MSVC++ port hasn't been tested in a loooong time
5486 + # When not using gcc, we currently assume that we are using
5487 + # Microsoft Visual C++.
5488 + if test "$GCC" != yes; then
5493 + # we just hope/assume this is gcc and not c89 (= MSVC++)
5501 + _LT_AC_TAGVAR(ld_shlibs, $1)=yes
5502 + if test "$with_gnu_ld" = yes; then
5503 + # If archive_cmds runs LD, not CC, wlarc should be empty
5506 + # Set some defaults for GNU ld with shared library support. These
5507 + # are reset later if shared libraries are not supported. Putting them
5508 + # here allows them to be overridden if necessary.
5509 + runpath_var=LD_RUN_PATH
5510 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
5511 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5512 + # ancient GNU ld didn't support --whole-archive et. al.
5513 + if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
5514 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5516 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
5518 + supports_anon_versioning=no
5519 + case `$LD -v 2>/dev/null` in
5520 + *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
5521 + *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
5522 + *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
5523 + *\ 2.11.*) ;; # other 2.11 versions
5524 + *) supports_anon_versioning=yes ;;
5527 + # See if GNU ld supports shared libraries.
5529 + aix3* | aix4* | aix5*)
5530 + # On AIX/PPC, the GNU linker is very broken
5531 + if test "$host_cpu" != ia64; then
5532 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
5535 +*** Warning: the GNU linker, at least up to release 2.9.1, is reported
5536 +*** to be unable to reliably create shared libraries on AIX.
5537 +*** Therefore, libtool is disabling shared libraries support. If you
5538 +*** really care for shared libraries, you may want to modify your PATH
5539 +*** so that a non-GNU linker is found, and then restart.
5546 + _LT_AC_TAGVAR(archive_cmds, $1)='$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)'
5547 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5548 + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5550 + # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5551 + # that the semantics of dynamic libraries on AmigaOS, at least up
5552 + # to version 4, is to share data among multiple programs linked
5553 + # with the same dynamic library. Since this doesn't match the
5554 + # behavior of shared libraries on other platforms, we can't use
5556 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
5560 + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5561 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
5562 + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5563 + # support --undefined. This deserves some investigation. FIXME
5564 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5566 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
5570 + cygwin* | mingw* | pw32*)
5571 + # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
5572 + # as there is no search path for DLLs.
5573 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5574 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
5575 + _LT_AC_TAGVAR(always_export_symbols, $1)=no
5576 + _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5577 + _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
5579 + if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
5580 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
5581 + # If the export-symbols file already is a .def file (1st line
5582 + # is EXPORTS), use it as is; otherwise, prepend...
5583 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
5584 + cp $export_symbols $output_objdir/$soname.def;
5586 + echo EXPORTS > $output_objdir/$soname.def;
5587 + cat $export_symbols >> $output_objdir/$soname.def;
5589 + $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
5591 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
5596 + _LT_AC_TAGVAR(hardcode_direct, $1)=no
5597 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5598 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5599 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5600 + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
5601 + # Instead, shared libraries are loaded at an image base (0x10000000 by
5602 + # default) and relocated if they conflict, which is a slow very memory
5603 + # consuming and fragmenting process. To avoid this, we pick a random,
5604 + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
5605 + # time. Moving up from 0x10000000 also allows more sbrk(2) space.
5606 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
5607 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
5611 + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5613 + case $cc_basename,$host_cpu in
5614 + pgcc*) # Portland Group C compiler
5615 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
5616 + tmp_addflag=' $pic_flag'
5618 + pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
5619 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
5620 + tmp_addflag=' $pic_flag -Mnomain' ;;
5621 + ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
5622 + tmp_addflag=' -i_dynamic' ;;
5623 + efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
5624 + tmp_addflag=' -i_dynamic -nofor_main' ;;
5625 + ifc* | ifort*) # Intel Fortran compiler
5626 + tmp_addflag=' -nofor_main' ;;
5628 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5630 + if test $supports_anon_versioning = yes; then
5631 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
5632 + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5633 + $echo "local: *; };" >> $output_objdir/$libname.ver~
5634 + $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
5637 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
5642 + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5643 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5646 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5647 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5652 + if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
5653 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
5656 +*** Warning: The releases 2.8.* of the GNU linker cannot reliably
5657 +*** create shared libraries on Solaris systems. Therefore, libtool
5658 +*** is disabling shared libraries support. We urge you to upgrade GNU
5659 +*** binutils to release 2.9.1 or newer. Another option is to modify
5660 +*** your PATH or compiler configuration so that the native linker is
5661 +*** used, and then restart.
5664 + elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5665 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5666 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5668 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
5672 + sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
5673 + case `$LD -v 2>&1` in
5674 + *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
5675 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
5676 + cat <<_LT_EOF 1>&2
5678 +*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
5679 +*** reliably create shared libraries on SCO systems. Therefore, libtool
5680 +*** is disabling shared libraries support. We urge you to upgrade GNU
5681 +*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
5682 +*** your PATH or compiler configuration so that the native linker is
5683 +*** used, and then restart.
5688 + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5689 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
5690 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
5691 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
5693 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
5700 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5702 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5703 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5707 + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5708 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5709 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5711 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
5716 + if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no; then
5718 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
5719 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
5720 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
5723 + # PORTME fill in a description of your system's linker (not GNU ld)
5726 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
5727 + _LT_AC_TAGVAR(always_export_symbols, $1)=yes
5728 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
5729 + # Note: this linker hardcodes the directories in LIBPATH if there
5730 + # are no directories specified by -L.
5731 + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5732 + if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
5733 + # Neither direct hardcoding nor static linking is supported with a
5734 + # broken collect2.
5735 + _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
5740 + if test "$host_cpu" = ia64; then
5741 + # On IA64, the linker does run time linking by default, so we don't
5742 + # have to do anything special.
5743 + aix_use_runtimelinking=no
5744 + exp_sym_flag='-Bexport'
5747 + # If we're using GNU nm, then we don't want the "-C" option.
5748 + # -C means demangle to AIX nm, but means don't demangle with GNU nm
5749 + if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
5750 + _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
5752 + _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
5754 + aix_use_runtimelinking=no
5756 + # Test if we are trying to use run time linking or normal
5757 + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5758 + # need to do runtime linking.
5759 + case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
5760 + for ld_flag in $LDFLAGS; do
5761 + if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
5762 + aix_use_runtimelinking=yes
5769 + exp_sym_flag='-bexport'
5770 + no_entry_flag='-bnoentry'
5773 + # When large executables or shared objects are built, AIX ld can
5774 + # have problems creating the table of contents. If linking a library
5775 + # or program results in "error TOC overflow" add -mminimal-toc to
5776 + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
5777 + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5779 + _LT_AC_TAGVAR(archive_cmds, $1)=''
5780 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5781 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
5782 + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
5784 + if test "$GCC" = yes; then
5785 + case $host_os in aix4.[[012]]|aix4.[[012]].*)
5786 + # We only want to do this on AIX 4.2 and lower, the check
5787 + # below for broken collect2 doesn't work under 4.3+
5788 + collect2name=`${CC} -print-prog-name=collect2`
5789 + if test -f "$collect2name" && \
5790 + strings "$collect2name" | grep resolve_lib_name >/dev/null
5792 + # We have reworked collect2
5793 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5795 + # We have old collect2
5796 + _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
5797 + # It fails to find uninstalled libraries when the uninstalled
5798 + # path is not listed in the libpath. Setting hardcode_minus_L
5799 + # to unsupported forces relinking
5800 + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5801 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5802 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
5806 + shared_flag='-shared'
5807 + if test "$aix_use_runtimelinking" = yes; then
5808 + shared_flag="$shared_flag "'${wl}-G'
5812 + if test "$host_cpu" = ia64; then
5813 + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
5814 + # chokes on -Wl,-G. The following line is correct:
5817 + if test "$aix_use_runtimelinking" = yes; then
5818 + shared_flag='${wl}-G'
5820 + shared_flag='${wl}-bM:SRE'
5825 + # It seems that -bexpall does not export symbols beginning with
5826 + # underscore (_), so it is better to generate a list of symbols to export.
5827 + _LT_AC_TAGVAR(always_export_symbols, $1)=yes
5828 + if test "$aix_use_runtimelinking" = yes; then
5829 + # Warning - without using the other runtime loading flags (-brtl),
5830 + # -berok will link without error, but may produce a broken library.
5831 + _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
5832 + # Determine the default libpath from the value encoded in an empty executable.
5833 + _LT_AC_SYS_LIBPATH_AIX
5834 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5835 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
5837 + if test "$host_cpu" = ia64; then
5838 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
5839 + _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
5840 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
5842 + # Determine the default libpath from the value encoded in an empty executable.
5843 + _LT_AC_SYS_LIBPATH_AIX
5844 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5845 + # Warning - without using the other run time loading flags,
5846 + # -berok will link without error, but may produce a broken library.
5847 + _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
5848 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
5849 + # Exported symbols can be pulled into shared objects from archives
5850 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
5851 + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
5852 + # This is similar to how AIX traditionally builds its shared libraries.
5853 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
5859 + _LT_AC_TAGVAR(archive_cmds, $1)='$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)'
5860 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5861 + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5862 + # see comment about different semantics on the GNU ld section
5863 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
5867 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
5870 + cygwin* | mingw* | pw32*)
5871 + # When not using gcc, we currently assume that we are using
5872 + # Microsoft Visual C++.
5873 + # hardcode_libdir_flag_spec is actually meaningless, as there is
5874 + # no search path for DLLs.
5875 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
5876 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
5877 + # Tell ltmain to make .lib files, not .a files.
5879 + # Tell ltmain to make .dll files, not .so files.
5880 + shrext_cmds=".dll"
5881 + # FIXME: Setting linknames here is a bad hack.
5882 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
5883 + # The linker will automatically build a .lib file if we build a DLL.
5884 + _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
5885 + # FIXME: Should let the user specify the lib program.
5886 + _LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs'
5887 + _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
5888 + _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5891 + darwin* | rhapsody*)
5893 + rhapsody* | darwin1.[[012]])
5894 + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
5896 + *) # Darwin 1.3 on
5897 + if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
5898 + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
5900 + case ${MACOSX_DEPLOYMENT_TARGET} in
5902 + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
5905 + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
5911 + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
5912 + _LT_AC_TAGVAR(hardcode_direct, $1)=no
5913 + _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
5914 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
5915 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
5916 + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
5917 + if test "$GCC" = yes ; then
5918 + output_verbose_link_cmd='echo'
5919 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
5920 + _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
5921 + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
5922 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
5923 + _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
5925 + case $cc_basename in
5927 + output_verbose_link_cmd='echo'
5928 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
5929 + _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
5930 + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
5931 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
5932 + _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
5935 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
5942 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5943 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5944 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5948 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
5951 + # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
5952 + # support. Future versions do this automatically, but an explicit c++rt0.o
5953 + # does not break anything, and helps significantly (at the cost of a little
5956 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
5957 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5958 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5959 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5962 + # Unfortunately, older versions of FreeBSD 2 do not have this feature.
5964 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5965 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5966 + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5967 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5970 + # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5971 + freebsd* | kfreebsd*-gnu | dragonfly*)
5972 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
5973 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5974 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5975 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5979 + if test "$GCC" = yes; then
5980 + _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
5982 + _LT_AC_TAGVAR(archive_cmds, $1)='$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'
5984 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5985 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5986 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5988 + # hardcode_minus_L: Not really in the search PATH,
5989 + # but as the default location of the library.
5990 + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5991 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5995 + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
5996 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5998 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
6000 + if test "$with_gnu_ld" = no; then
6001 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6002 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6004 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6005 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6007 + # hardcode_minus_L: Not really in the search PATH,
6008 + # but as the default location of the library.
6009 + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6014 + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6017 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6020 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
6023 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6029 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6032 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
6035 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6039 + if test "$with_gnu_ld" = no; then
6040 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6041 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6045 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
6046 + _LT_AC_TAGVAR(hardcode_direct, $1)=no
6047 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6050 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6051 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6053 + # hardcode_minus_L: Not really in the search PATH,
6054 + # but as the default location of the library.
6055 + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6061 + irix5* | irix6* | nonstopux*)
6062 + if test "$GCC" = yes; then
6063 + _LT_AC_TAGVAR(archive_cmds, $1)='$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'
6065 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
6066 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
6068 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6069 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6070 + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6074 + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6075 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
6077 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
6079 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6080 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6081 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6085 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6086 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6087 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6088 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6089 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6093 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6094 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6095 + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6096 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6097 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
6098 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6099 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6102 + openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
6103 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6104 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6107 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6108 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6115 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6116 + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6117 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
6118 + _LT_AC_TAGVAR(archive_cmds, $1)='$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'
6119 + _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6123 + if test "$GCC" = yes; then
6124 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6125 + _LT_AC_TAGVAR(archive_cmds, $1)='$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'
6127 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6128 + _LT_AC_TAGVAR(archive_cmds, $1)='$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'
6130 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6131 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6134 + osf4* | osf5*) # as osf3* with the addition of -msym flag
6135 + if test "$GCC" = yes; then
6136 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6137 + _LT_AC_TAGVAR(archive_cmds, $1)='$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'
6138 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6140 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6141 + _LT_AC_TAGVAR(archive_cmds, $1)='$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'
6142 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6143 + $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
6145 + # Both c and cxx compiler support -rpath directly
6146 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6148 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6152 + _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
6153 + if test "$GCC" = yes; then
6155 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6156 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6157 + $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
6160 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6161 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6162 + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6164 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6165 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6167 + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6169 + # The compiler driver will combine linker options so we
6170 + # cannot just pass the convience library names through
6171 + # without $wl, iff we do not link with $LD.
6172 + # Luckily, gcc supports the same syntax we need for Sun Studio.
6173 + # Supported since Solaris 2.6 (maybe 2.5.1?)
6176 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;;
6178 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
6181 + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6185 + if test "x$host_vendor" = xsequent; then
6186 + # Use $CC to link under sequent, because it throws in some extra .o
6187 + # files that make .init and .fini sections work.
6188 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6190 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6192 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6193 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6194 + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6195 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6199 + case $host_vendor in
6201 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6202 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true???
6205 + ## LD is ld it makes a PLAMLIB
6206 + ## CC just makes a GrossModule.
6207 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6208 + _LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
6209 + _LT_AC_TAGVAR(hardcode_direct, $1)=no
6212 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6213 + _LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
6216 + runpath_var='LD_RUN_PATH'
6217 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6221 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6222 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6223 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
6227 + if test -d /usr/nec; then
6228 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6229 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6230 + runpath_var=LD_RUN_PATH
6231 + hardcode_runpath_var=yes
6232 + _LT_AC_TAGVAR(ld_shlibs, $1)=yes
6236 + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7*)
6237 + _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6238 + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6239 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6240 + runpath_var='LD_RUN_PATH'
6242 + if test "$GCC" = yes; then
6243 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6244 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6246 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6247 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6251 + sysv5* | sco3.2v5* | sco5v6*)
6252 + # Note: We can NOT use -z defs as we might desire, because we do not
6253 + # link with -lc, and that would cause any symbols used from libc to
6254 + # always be unresolved, which means just about no library would
6255 + # ever link correctly. If we're not using GNU ld we use -z text
6256 + # though, which does catch some bad symbols but isn't as heavy-handed
6258 + _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6259 + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
6260 + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6261 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6262 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
6263 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
6264 + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6265 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
6266 + runpath_var='LD_RUN_PATH'
6268 + if test "$GCC" = yes; then
6269 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
6270 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
6272 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
6273 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
6278 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6279 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6280 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6284 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
6289 +AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
6290 +test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
6293 +# Do we need to explicitly link libc?
6295 +case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in
6297 + # Assume -lc should be added
6298 + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
6300 + if test "$enable_shared" = yes && test "$GCC" = yes; then
6301 + case $_LT_AC_TAGVAR(archive_cmds, $1) in
6303 + # FIXME: we may have to deal with multi-command sequences.
6306 + # Test whether the compiler implicitly links with -lc since on some
6307 + # systems, -lgcc has to come before -lc. If gcc already passes -lc
6308 + # to ld, don't add -lc before -lgcc.
6309 + AC_MSG_CHECKING([whether -lc should be explicitly linked in])
6311 + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6313 + if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
6316 + libobjs=conftest.$ac_objext
6318 + wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
6319 + pic_flag=$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
6325 + lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1)
6326 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=
6327 + if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1)
6329 + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6331 + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
6333 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
6335 + cat conftest.err 1>&5
6338 + AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)])
6344 +])# AC_LIBTOOL_PROG_LD_SHLIBS
6347 +# _LT_AC_FILE_LTDLL_C
6348 +# -------------------
6349 +# Be careful that the start marker always follows a newline.
6350 +AC_DEFUN([_LT_AC_FILE_LTDLL_C], [
6351 +# /* ltdll.c starts here */
6352 +# #define WIN32_LEAN_AND_MEAN
6353 +# #include <windows.h>
6354 +# #undef WIN32_LEAN_AND_MEAN
6355 +# #include <stdio.h>
6357 +# #ifndef __CYGWIN__
6358 +# # ifdef __CYGWIN32__
6359 +# # define __CYGWIN__ __CYGWIN32__
6363 +# #ifdef __cplusplus
6366 +# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
6367 +# #ifdef __cplusplus
6371 +# #ifdef __CYGWIN__
6372 +# #include <cygwin/cygwin_dll.h>
6373 +# DECLARE_CYGWIN_DLL( DllMain );
6375 +# HINSTANCE __hDllInstance_base;
6378 +# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
6380 +# __hDllInstance_base = hInst;
6383 +# /* ltdll.c ends here */
6384 +])# _LT_AC_FILE_LTDLL_C
6387 +# _LT_AC_TAGVAR(VARNAME, [TAGNAME])
6388 +# ---------------------------------
6389 +AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])])
6393 +AC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL])
6394 +AC_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
6395 +AC_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
6396 +AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
6397 +AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
6398 +AC_DEFUN([AM_PROG_LD], [AC_PROG_LD])
6399 +AC_DEFUN([AM_PROG_NM], [AC_PROG_NM])
6401 +# This is just to silence aclocal about the macro not being used
6402 +ifelse([AC_DISABLE_FAST_INSTALL])
6404 +AC_DEFUN([LT_AC_PROG_GCJ],
6405 +[AC_CHECK_TOOL(GCJ, gcj, no)
6406 + test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
6407 + AC_SUBST(GCJFLAGS)
6410 +AC_DEFUN([LT_AC_PROG_RC],
6411 +[AC_CHECK_TOOL(RC, windres, no)
6414 +# NOTE: This macro has been submitted for inclusion into #
6415 +# GNU Autoconf as AC_PROG_SED. When it is available in #
6416 +# a released version of Autoconf we should remove this #
6417 +# macro and use it instead. #
6420 +# Check for a fully-functional sed program, that truncates
6421 +# as few characters as possible. Prefer GNU sed if found.
6422 +AC_DEFUN([LT_AC_PROG_SED],
6423 +[AC_MSG_CHECKING([for a sed that does not truncate output])
6424 +AC_CACHE_VAL(lt_cv_path_SED,
6425 +[# Loop through the user's path and test for sed and gsed.
6426 +# Then use that list of sed's as ones to test for truncation.
6427 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6428 +for as_dir in $PATH
6431 + test -z "$as_dir" && as_dir=.
6432 + for lt_ac_prog in sed gsed; do
6433 + for ac_exec_ext in '' $ac_executable_extensions; do
6434 + if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
6435 + lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
6442 +# Add /usr/xpg4/bin/sed as it is typically found on Solaris
6443 +# along with /bin/sed that truncates output.
6444 +for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
6445 + test ! -f $lt_ac_sed && continue
6446 + cat /dev/null > conftest.in
6448 + echo $ECHO_N "0123456789$ECHO_C" >conftest.in
6449 + # Check for GNU sed and select it if it is found.
6450 + if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
6451 + lt_cv_path_SED=$lt_ac_sed
6455 + cat conftest.in conftest.in >conftest.tmp
6456 + mv conftest.tmp conftest.in
6457 + cp conftest.in conftest.nl
6458 + echo >>conftest.nl
6459 + $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
6460 + cmp -s conftest.out conftest.nl || break
6461 + # 10000 chars as input seems more than enough
6462 + test $lt_ac_count -gt 10 && break
6463 + lt_ac_count=`expr $lt_ac_count + 1`
6464 + if test $lt_ac_count -gt $lt_ac_max; then
6465 + lt_ac_max=$lt_ac_count
6466 + lt_cv_path_SED=$lt_ac_sed
6471 +SED=$lt_cv_path_SED
6472 +AC_MSG_RESULT([$SED])
6475 +# Copyright (C) 2002, 2003, 2005 Free Software Foundation, Inc.
6477 +# This file is free software; the Free Software Foundation
6478 +# gives unlimited permission to copy and/or distribute it,
6479 +# with or without modifications, as long as this notice is preserved.
6481 +# AM_AUTOMAKE_VERSION(VERSION)
6482 +# ----------------------------
6483 +# Automake X.Y traces this macro to ensure aclocal.m4 has been
6484 +# generated from the m4 files accompanying Automake X.Y.
6485 +AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.9"])
6487 +# AM_SET_CURRENT_AUTOMAKE_VERSION
6488 +# -------------------------------
6489 +# Call AM_AUTOMAKE_VERSION so it can be traced.
6490 +# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
6491 +AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
6492 + [AM_AUTOMAKE_VERSION([1.9.6])])
6494 +# AM_AUX_DIR_EXPAND -*- Autoconf -*-
6496 +# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
6498 +# This file is free software; the Free Software Foundation
6499 +# gives unlimited permission to copy and/or distribute it,
6500 +# with or without modifications, as long as this notice is preserved.
6502 +# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
6503 +# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
6504 +# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
6506 +# Of course, Automake must honor this variable whenever it calls a
6507 +# tool from the auxiliary directory. The problem is that $srcdir (and
6508 +# therefore $ac_aux_dir as well) can be either absolute or relative,
6509 +# depending on how configure is run. This is pretty annoying, since
6510 +# it makes $ac_aux_dir quite unusable in subdirectories: in the top
6511 +# source directory, any form will work fine, but in subdirectories a
6512 +# relative path needs to be adjusted first.
6514 +# $ac_aux_dir/missing
6515 +# fails when called from a subdirectory if $ac_aux_dir is relative
6516 +# $top_srcdir/$ac_aux_dir/missing
6517 +# fails if $ac_aux_dir is absolute,
6518 +# fails when called from a subdirectory in a VPATH build with
6519 +# a relative $ac_aux_dir
6521 +# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
6522 +# are both prefixed by $srcdir. In an in-source build this is usually
6523 +# harmless because $srcdir is `.', but things will broke when you
6524 +# start a VPATH build or use an absolute $srcdir.
6526 +# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
6527 +# iff we strip the leading $srcdir from $ac_aux_dir. That would be:
6528 +# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
6529 +# and then we would define $MISSING as
6530 +# MISSING="\${SHELL} $am_aux_dir/missing"
6531 +# This will work as long as MISSING is not called from configure, because
6532 +# unfortunately $(top_srcdir) has no meaning in configure.
6533 +# However there are other variables, like CC, which are often used in
6534 +# configure, and could therefore not use this "fixed" $ac_aux_dir.
6536 +# Another solution, used here, is to always expand $ac_aux_dir to an
6537 +# absolute PATH. The drawback is that using absolute paths prevent a
6538 +# configured tree to be moved without reconfiguration.
6540 +AC_DEFUN([AM_AUX_DIR_EXPAND],
6541 +[dnl Rely on autoconf to set up CDPATH properly.
6542 +AC_PREREQ([2.50])dnl
6543 +# expand $ac_aux_dir to an absolute path
6544 +am_aux_dir=`cd $ac_aux_dir && pwd`
6547 +# AM_CONDITIONAL -*- Autoconf -*-
6549 +# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005
6550 +# Free Software Foundation, Inc.
6552 +# This file is free software; the Free Software Foundation
6553 +# gives unlimited permission to copy and/or distribute it,
6554 +# with or without modifications, as long as this notice is preserved.
6558 +# AM_CONDITIONAL(NAME, SHELL-CONDITION)
6559 +# -------------------------------------
6560 +# Define a conditional.
6561 +AC_DEFUN([AM_CONDITIONAL],
6562 +[AC_PREREQ(2.52)dnl
6563 + ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
6564 + [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
6565 +AC_SUBST([$1_TRUE])
6566 +AC_SUBST([$1_FALSE])
6574 +AC_CONFIG_COMMANDS_PRE(
6575 +[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
6576 + AC_MSG_ERROR([[conditional "$1" was never defined.
6577 +Usually this means the macro was only invoked conditionally.]])
6581 +# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
6582 +# Free Software Foundation, Inc.
6584 +# This file is free software; the Free Software Foundation
6585 +# gives unlimited permission to copy and/or distribute it,
6586 +# with or without modifications, as long as this notice is preserved.
6590 +# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
6591 +# written in clear, in which case automake, when reading aclocal.m4,
6592 +# will think it sees a *use*, and therefore will trigger all it's
6593 +# C support machinery. Also note that it means that autoscan, seeing
6594 +# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
6597 +# _AM_DEPENDENCIES(NAME)
6598 +# ----------------------
6599 +# See how the compiler implements dependency checking.
6600 +# NAME is "CC", "CXX", "GCJ", or "OBJC".
6601 +# We try a few techniques and use that to set a single cache variable.
6603 +# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
6604 +# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
6605 +# dependency, and given that the user is not expected to run this macro,
6606 +# just rely on AC_PROG_CC.
6607 +AC_DEFUN([_AM_DEPENDENCIES],
6608 +[AC_REQUIRE([AM_SET_DEPDIR])dnl
6609 +AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
6610 +AC_REQUIRE([AM_MAKE_INCLUDE])dnl
6611 +AC_REQUIRE([AM_DEP_TRACK])dnl
6613 +ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
6614 + [$1], CXX, [depcc="$CXX" am_compiler_list=],
6615 + [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
6616 + [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
6617 + [depcc="$$1" am_compiler_list=])
6619 +AC_CACHE_CHECK([dependency style of $depcc],
6620 + [am_cv_$1_dependencies_compiler_type],
6621 +[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6622 + # We make a subdir and do the tests there. Otherwise we can end up
6623 + # making bogus files that we don't know about and never remove. For
6624 + # instance it was reported that on HP-UX the gcc test will end up
6625 + # making a dummy file named `D' -- because `-MD' means `put the output
6627 + mkdir conftest.dir
6628 + # Copy depcomp to subdir because otherwise we won't find it if we're
6629 + # using a relative directory.
6630 + cp "$am_depcomp" conftest.dir
6632 + # We will build objects and dependencies in a subdirectory because
6633 + # it helps to detect inapplicable dependency modes. For instance
6634 + # both Tru64's cc and ICC support -MD to output dependencies as a
6635 + # side effect of compilation, but ICC will put the dependencies in
6636 + # the current directory while Tru64 will put them in the object
6640 + am_cv_$1_dependencies_compiler_type=none
6641 + if test "$am_compiler_list" = ""; then
6642 + am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
6644 + for depmode in $am_compiler_list; do
6645 + # Setup a source with many dependencies, because some compilers
6646 + # like to wrap large dependency lists on column 80 (with \), and
6647 + # we should not choose a depcomp mode which is confused by this.
6649 + # We need to recreate these files for each test, as the compiler may
6650 + # overwrite some of them when testing with obscure command lines.
6651 + # This happens at least with the AIX C compiler.
6652 + : > sub/conftest.c
6653 + for i in 1 2 3 4 5 6; do
6654 + echo '#include "conftst'$i'.h"' >> sub/conftest.c
6655 + # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6656 + # Solaris 8's {/usr,}/bin/sh.
6657 + touch sub/conftst$i.h
6659 + echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6663 + # after this tag, mechanisms are not by side-effect, so they'll
6664 + # only be used when explicitly requested
6665 + if test "x$enable_dependency_tracking" = xyes; then
6673 + # We check with `-c' and `-o' for the sake of the "dashmstdout"
6674 + # mode. It turns out that the SunPro C++ compiler does not properly
6675 + # handle `-M -o', and we need to detect this.
6676 + if depmode=$depmode \
6677 + source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6678 + depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6679 + $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6680 + >/dev/null 2>conftest.err &&
6681 + grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6682 + grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6683 + ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6684 + # icc doesn't choke on unknown options, it will just issue warnings
6685 + # or remarks (even with -Werror). So we grep stderr for any message
6686 + # that says an option was ignored or not supported.
6687 + # When given -MP, icc 7.0 and 7.1 complain thusly:
6688 + # icc: Command line warning: ignoring option '-M'; no argument required
6689 + # The diagnosis changed in icc 8.0:
6690 + # icc: Command line remark: option '-MP' not supported
6691 + if (grep 'ignoring option' conftest.err ||
6692 + grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6693 + am_cv_$1_dependencies_compiler_type=$depmode
6700 + rm -rf conftest.dir
6702 + am_cv_$1_dependencies_compiler_type=none
6705 +AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
6706 +AM_CONDITIONAL([am__fastdep$1], [
6707 + test "x$enable_dependency_tracking" != xno \
6708 + && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
6714 +# Choose a directory name for dependency files.
6715 +# This macro is AC_REQUIREd in _AM_DEPENDENCIES
6716 +AC_DEFUN([AM_SET_DEPDIR],
6717 +[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
6718 +AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
6724 +AC_DEFUN([AM_DEP_TRACK],
6725 +[AC_ARG_ENABLE(dependency-tracking,
6726 +[ --disable-dependency-tracking speeds up one-time build
6727 + --enable-dependency-tracking do not reject slow dependency extractors])
6728 +if test "x$enable_dependency_tracking" != xno; then
6729 + am_depcomp="$ac_aux_dir/depcomp"
6730 + AMDEPBACKSLASH='\'
6732 +AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
6733 +AC_SUBST([AMDEPBACKSLASH])
6736 +# Generate code to set up dependency tracking. -*- Autoconf -*-
6738 +# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
6739 +# Free Software Foundation, Inc.
6741 +# This file is free software; the Free Software Foundation
6742 +# gives unlimited permission to copy and/or distribute it,
6743 +# with or without modifications, as long as this notice is preserved.
6747 +# _AM_OUTPUT_DEPENDENCY_COMMANDS
6748 +# ------------------------------
6749 +AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
6750 +[for mf in $CONFIG_FILES; do
6751 + # Strip MF so we end up with the name of the file.
6752 + mf=`echo "$mf" | sed -e 's/:.*$//'`
6753 + # Check whether this is an Automake generated Makefile or not.
6754 + # We used to match only the files named `Makefile.in', but
6755 + # some people rename them; so instead we look at the file content.
6756 + # Grep'ing the first line is not enough: some people post-process
6757 + # each Makefile.in and add a new line on top of each file to say so.
6758 + # So let's grep whole file.
6759 + if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
6760 + dirpart=`AS_DIRNAME("$mf")`
6764 + # Extract the definition of DEPDIR, am__include, and am__quote
6765 + # from the Makefile without running `make'.
6766 + DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
6767 + test -z "$DEPDIR" && continue
6768 + am__include=`sed -n 's/^am__include = //p' < "$mf"`
6769 + test -z "am__include" && continue
6770 + am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
6771 + # When using ansi2knr, U may be empty or an underscore; expand it
6772 + U=`sed -n 's/^U = //p' < "$mf"`
6773 + # Find all dependency output files, they are included files with
6774 + # $(DEPDIR) in their names. We invoke sed twice because it is the
6775 + # simplest approach to changing $(DEPDIR) to its actual value in the
6777 + for file in `sed -n "
6778 + s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
6779 + sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
6780 + # Make sure the directory exists.
6781 + test -f "$dirpart/$file" && continue
6782 + fdir=`AS_DIRNAME(["$file"])`
6783 + AS_MKDIR_P([$dirpart/$fdir])
6784 + # echo "creating $dirpart/$file"
6785 + echo '# dummy' > "$dirpart/$file"
6788 +])# _AM_OUTPUT_DEPENDENCY_COMMANDS
6791 +# AM_OUTPUT_DEPENDENCY_COMMANDS
6792 +# -----------------------------
6793 +# This macro should only be invoked once -- use via AC_REQUIRE.
6795 +# This code is only required when automatic dependency tracking
6796 +# is enabled. FIXME. This creates each `.P' file that we will
6797 +# need in order to bootstrap the dependency handling code.
6798 +AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
6799 +[AC_CONFIG_COMMANDS([depfiles],
6800 + [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
6801 + [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
6804 +# Do all the work for Automake. -*- Autoconf -*-
6806 +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
6807 +# Free Software Foundation, Inc.
6809 +# This file is free software; the Free Software Foundation
6810 +# gives unlimited permission to copy and/or distribute it,
6811 +# with or without modifications, as long as this notice is preserved.
6815 +# This macro actually does too much. Some checks are only needed if
6816 +# your package does certain things. But this isn't really a big deal.
6818 +# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
6819 +# AM_INIT_AUTOMAKE([OPTIONS])
6820 +# -----------------------------------------------
6821 +# The call with PACKAGE and VERSION arguments is the old style
6822 +# call (pre autoconf-2.50), which is being phased out. PACKAGE
6823 +# and VERSION should now be passed to AC_INIT and removed from
6824 +# the call to AM_INIT_AUTOMAKE.
6825 +# We support both call styles for the transition. After
6826 +# the next Automake release, Autoconf can make the AC_INIT
6827 +# arguments mandatory, and then we can depend on a new Autoconf
6828 +# release and drop the old call support.
6829 +AC_DEFUN([AM_INIT_AUTOMAKE],
6830 +[AC_PREREQ([2.58])dnl
6831 +dnl Autoconf wants to disallow AM_ names. We explicitly allow
6832 +dnl the ones we care about.
6833 +m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
6834 +AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
6835 +AC_REQUIRE([AC_PROG_INSTALL])dnl
6836 +# test to see if srcdir already configured
6837 +if test "`cd $srcdir && pwd`" != "`pwd`" &&
6838 + test -f $srcdir/config.status; then
6839 + AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
6842 +# test whether we have cygpath
6843 +if test -z "$CYGPATH_W"; then
6844 + if (cygpath --version) >/dev/null 2>/dev/null; then
6845 + CYGPATH_W='cygpath -w'
6850 +AC_SUBST([CYGPATH_W])
6852 +# Define the identity of the package.
6853 +dnl Distinguish between old-style and new-style calls.
6855 +[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
6856 + AC_SUBST([PACKAGE], [$1])dnl
6857 + AC_SUBST([VERSION], [$2])],
6858 +[_AM_SET_OPTIONS([$1])dnl
6859 + AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
6860 + AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
6862 +_AM_IF_OPTION([no-define],,
6863 +[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
6864 + AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
6866 +# Some tools Automake needs.
6867 +AC_REQUIRE([AM_SANITY_CHECK])dnl
6868 +AC_REQUIRE([AC_ARG_PROGRAM])dnl
6869 +AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
6870 +AM_MISSING_PROG(AUTOCONF, autoconf)
6871 +AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
6872 +AM_MISSING_PROG(AUTOHEADER, autoheader)
6873 +AM_MISSING_PROG(MAKEINFO, makeinfo)
6875 +AM_PROG_INSTALL_STRIP
6876 +AC_REQUIRE([AM_PROG_MKDIR_P])dnl
6877 +# We need awk for the "check" target. The system "awk" is bad on
6879 +AC_REQUIRE([AC_PROG_AWK])dnl
6880 +AC_REQUIRE([AC_PROG_MAKE_SET])dnl
6881 +AC_REQUIRE([AM_SET_LEADING_DOT])dnl
6882 +_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
6883 + [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
6884 + [_AM_PROG_TAR([v7])])])
6885 +_AM_IF_OPTION([no-dependencies],,
6886 +[AC_PROVIDE_IFELSE([AC_PROG_CC],
6887 + [_AM_DEPENDENCIES(CC)],
6888 + [define([AC_PROG_CC],
6889 + defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
6890 +AC_PROVIDE_IFELSE([AC_PROG_CXX],
6891 + [_AM_DEPENDENCIES(CXX)],
6892 + [define([AC_PROG_CXX],
6893 + defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
6898 +# When config.status generates a header, we must update the stamp-h file.
6899 +# This file resides in the same directory as the config header
6900 +# that is generated. The stamp files are numbered to have different names.
6902 +# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
6903 +# loop where config.status creates the headers, so we can generate
6904 +# our stamp files there.
6905 +AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
6906 +[# Compute $1's index in $config_headers.
6908 +for _am_header in $config_headers :; do
6909 + case $_am_header in
6913 + _am_stamp_count=`expr $_am_stamp_count + 1` ;;
6916 +echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
6918 +# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
6920 +# This file is free software; the Free Software Foundation
6921 +# gives unlimited permission to copy and/or distribute it,
6922 +# with or without modifications, as long as this notice is preserved.
6924 +# AM_PROG_INSTALL_SH
6925 +# ------------------
6926 +# Define $install_sh.
6927 +AC_DEFUN([AM_PROG_INSTALL_SH],
6928 +[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
6929 +install_sh=${install_sh-"$am_aux_dir/install-sh"}
6930 +AC_SUBST(install_sh)])
6932 +# Copyright (C) 2003, 2005 Free Software Foundation, Inc.
6934 +# This file is free software; the Free Software Foundation
6935 +# gives unlimited permission to copy and/or distribute it,
6936 +# with or without modifications, as long as this notice is preserved.
6940 +# Check whether the underlying file-system supports filenames
6941 +# with a leading dot. For instance MS-DOS doesn't.
6942 +AC_DEFUN([AM_SET_LEADING_DOT],
6943 +[rm -rf .tst 2>/dev/null
6944 +mkdir .tst 2>/dev/null
6945 +if test -d .tst; then
6950 +rmdir .tst 2>/dev/null
6951 +AC_SUBST([am__leading_dot])])
6953 +# Check to see how 'make' treats includes. -*- Autoconf -*-
6955 +# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
6957 +# This file is free software; the Free Software Foundation
6958 +# gives unlimited permission to copy and/or distribute it,
6959 +# with or without modifications, as long as this notice is preserved.
6963 +# AM_MAKE_INCLUDE()
6964 +# -----------------
6965 +# Check to see how make treats includes.
6966 +AC_DEFUN([AM_MAKE_INCLUDE],
6967 +[am_make=${MAKE-make}
6968 +cat > confinc << 'END'
6973 +# If we don't find an include directive, just comment out the code.
6974 +AC_MSG_CHECKING([for style of include used by $am_make])
6978 +# First try GNU make style include.
6979 +echo "include confinc" > confmf
6980 +# We grep out `Entering directory' and `Leaving directory'
6981 +# messages which can occur if `w' ends up in MAKEFLAGS.
6982 +# In particular we don't look at `^make:' because GNU make might
6983 +# be invoked under some other name (usually "gmake"), in which
6984 +# case it prints its new name instead of `make'.
6985 +if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
6986 + am__include=include
6990 +# Now try BSD make style include.
6991 +if test "$am__include" = "#"; then
6992 + echo '.include "confinc"' > confmf
6993 + if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
6994 + am__include=.include
6999 +AC_SUBST([am__include])
7000 +AC_SUBST([am__quote])
7001 +AC_MSG_RESULT([$_am_result])
7002 +rm -f confinc confmf
7005 +# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
7007 +# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2005
7008 +# Free Software Foundation, Inc.
7010 +# This file is free software; the Free Software Foundation
7011 +# gives unlimited permission to copy and/or distribute it,
7012 +# with or without modifications, as long as this notice is preserved.
7016 +# AM_MISSING_PROG(NAME, PROGRAM)
7017 +# ------------------------------
7018 +AC_DEFUN([AM_MISSING_PROG],
7019 +[AC_REQUIRE([AM_MISSING_HAS_RUN])
7020 +$1=${$1-"${am_missing_run}$2"}
7024 +# AM_MISSING_HAS_RUN
7025 +# ------------------
7026 +# Define MISSING if not defined so far and test if it supports --run.
7027 +# If it does, set am_missing_run to use it, otherwise, to nothing.
7028 +AC_DEFUN([AM_MISSING_HAS_RUN],
7029 +[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
7030 +test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
7031 +# Use eval to expand $SHELL
7032 +if eval "$MISSING --run true"; then
7033 + am_missing_run="$MISSING --run "
7036 + AC_MSG_WARN([`missing' script is too old or missing])
7040 +# Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc.
7042 +# This file is free software; the Free Software Foundation
7043 +# gives unlimited permission to copy and/or distribute it,
7044 +# with or without modifications, as long as this notice is preserved.
7048 +# Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise.
7050 +# Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories
7051 +# created by `make install' are always world readable, even if the
7052 +# installer happens to have an overly restrictive umask (e.g. 077).
7053 +# This was a mistake. There are at least two reasons why we must not
7055 +# - it causes special bits like SGID to be ignored,
7056 +# - it may be too restrictive (some setups expect 775 directories).
7058 +# Do not use -m 0755 and let people choose whatever they expect by
7061 +# We cannot accept any implementation of `mkdir' that recognizes `-p'.
7062 +# Some implementations (such as Solaris 8's) are not thread-safe: if a
7063 +# parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c'
7064 +# concurrently, both version can detect that a/ is missing, but only
7065 +# one can create it and the other will error out. Consequently we
7066 +# restrict ourselves to GNU make (using the --version option ensures
7068 +AC_DEFUN([AM_PROG_MKDIR_P],
7069 +[if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
7070 + # We used to keeping the `.' as first argument, in order to
7071 + # allow $(mkdir_p) to be used without argument. As in
7072 + # $(mkdir_p) $(somedir)
7073 + # where $(somedir) is conditionally defined. However this is wrong
7074 + # for two reasons:
7075 + # 1. if the package is installed by a user who cannot write `.'
7076 + # make install will fail,
7077 + # 2. the above comment should most certainly read
7078 + # $(mkdir_p) $(DESTDIR)$(somedir)
7079 + # so it does not work when $(somedir) is undefined and
7080 + # $(DESTDIR) is not.
7081 + # To support the latter case, we have to write
7082 + # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
7083 + # so the `.' trick is pointless.
7084 + mkdir_p='mkdir -p --'
7086 + # On NextStep and OpenStep, the `mkdir' command does not
7087 + # recognize any option. It will interpret all options as
7088 + # directories to create, and then abort because `.' already
7090 + for d in ./-p ./--version;
7092 + test -d $d && rmdir $d
7094 + # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
7095 + if test -f "$ac_aux_dir/mkinstalldirs"; then
7096 + mkdir_p='$(mkinstalldirs)'
7098 + mkdir_p='$(install_sh) -d'
7101 +AC_SUBST([mkdir_p])])
7103 +# Helper functions for option handling. -*- Autoconf -*-
7105 +# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
7107 +# This file is free software; the Free Software Foundation
7108 +# gives unlimited permission to copy and/or distribute it,
7109 +# with or without modifications, as long as this notice is preserved.
7113 +# _AM_MANGLE_OPTION(NAME)
7114 +# -----------------------
7115 +AC_DEFUN([_AM_MANGLE_OPTION],
7116 +[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
7118 +# _AM_SET_OPTION(NAME)
7119 +# ------------------------------
7120 +# Set option NAME. Presently that only means defining a flag for this option.
7121 +AC_DEFUN([_AM_SET_OPTION],
7122 +[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
7124 +# _AM_SET_OPTIONS(OPTIONS)
7125 +# ----------------------------------
7126 +# OPTIONS is a space-separated list of Automake options.
7127 +AC_DEFUN([_AM_SET_OPTIONS],
7128 +[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
7130 +# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
7131 +# -------------------------------------------
7132 +# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
7133 +AC_DEFUN([_AM_IF_OPTION],
7134 +[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
7136 +# Check to make sure that the build environment is sane. -*- Autoconf -*-
7138 +# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
7139 +# Free Software Foundation, Inc.
7141 +# This file is free software; the Free Software Foundation
7142 +# gives unlimited permission to copy and/or distribute it,
7143 +# with or without modifications, as long as this notice is preserved.
7149 +AC_DEFUN([AM_SANITY_CHECK],
7150 +[AC_MSG_CHECKING([whether build environment is sane])
7153 +echo timestamp > conftest.file
7154 +# Do `set' in a subshell so we don't clobber the current shell's
7155 +# arguments. Must try -L first in case configure is actually a
7156 +# symlink; some systems play weird games with the mod time of symlinks
7157 +# (eg FreeBSD returns the mod time of the symlink's containing
7160 + set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
7161 + if test "$[*]" = "X"; then
7163 + set X `ls -t $srcdir/configure conftest.file`
7165 + rm -f conftest.file
7166 + if test "$[*]" != "X $srcdir/configure conftest.file" \
7167 + && test "$[*]" != "X conftest.file $srcdir/configure"; then
7169 + # If neither matched, then we have a broken ls. This can happen
7170 + # if, for instance, CONFIG_SHELL is bash and it inherits a
7171 + # broken ls alias from the environment. This has actually
7172 + # happened. Such a system could not be considered "sane".
7173 + AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
7174 +alias in your environment])
7177 + test "$[2]" = conftest.file
7183 + AC_MSG_ERROR([newly created file is older than distributed files!
7184 +Check your system clock])
7186 +AC_MSG_RESULT(yes)])
7188 +# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
7190 +# This file is free software; the Free Software Foundation
7191 +# gives unlimited permission to copy and/or distribute it,
7192 +# with or without modifications, as long as this notice is preserved.
7194 +# AM_PROG_INSTALL_STRIP
7195 +# ---------------------
7196 +# One issue with vendor `install' (even GNU) is that you can't
7197 +# specify the program used to strip binaries. This is especially
7198 +# annoying in cross-compiling environments, where the build's strip
7199 +# is unlikely to handle the host's binaries.
7200 +# Fortunately install-sh will honor a STRIPPROG variable, so we
7201 +# always use install-sh in `make install-strip', and initialize
7202 +# STRIPPROG with the value of the STRIP variable (set by the user).
7203 +AC_DEFUN([AM_PROG_INSTALL_STRIP],
7204 +[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
7205 +# Installed binaries are usually stripped using `strip' when the user
7206 +# run `make install-strip'. However `strip' might not be the right
7207 +# tool to use in cross-compilation environments, therefore Automake
7208 +# will honor the `STRIP' environment variable to overrule this program.
7209 +dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
7210 +if test "$cross_compiling" != no; then
7211 + AC_CHECK_TOOL([STRIP], [strip], :)
7213 +INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
7214 +AC_SUBST([INSTALL_STRIP_PROGRAM])])
7216 +# Check how to create a tarball. -*- Autoconf -*-
7218 +# Copyright (C) 2004, 2005 Free Software Foundation, Inc.
7220 +# This file is free software; the Free Software Foundation
7221 +# gives unlimited permission to copy and/or distribute it,
7222 +# with or without modifications, as long as this notice is preserved.
7226 +# _AM_PROG_TAR(FORMAT)
7227 +# --------------------
7228 +# Check how to create a tarball in format FORMAT.
7229 +# FORMAT should be one of `v7', `ustar', or `pax'.
7231 +# Substitute a variable $(am__tar) that is a command
7232 +# writing to stdout a FORMAT-tarball containing the directory
7234 +# tardir=directory && $(am__tar) > result.tar
7236 +# Substitute a variable $(am__untar) that extract such
7237 +# a tarball read from stdin.
7238 +# $(am__untar) < result.tar
7239 +AC_DEFUN([_AM_PROG_TAR],
7240 +[# Always define AMTAR for backward compatibility.
7241 +AM_MISSING_PROG([AMTAR], [tar])
7243 + [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
7244 + [m4_case([$1], [ustar],, [pax],,
7245 + [m4_fatal([Unknown tar format])])
7246 +AC_MSG_CHECKING([how to create a $1 tar archive])
7247 +# Loop over all known methods to create a tar archive until one works.
7248 +_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
7249 +_am_tools=${am_cv_prog_tar_$1-$_am_tools}
7250 +# Do not fold the above two line into one, because Tru64 sh and
7251 +# Solaris sh will not grok spaces in the rhs of `-'.
7252 +for _am_tool in $_am_tools
7256 + for _am_tar in tar gnutar gtar;
7258 + AM_RUN_LOG([$_am_tar --version]) && break
7260 + am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
7261 + am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
7262 + am__untar="$_am_tar -xf -"
7265 + # Must skip GNU tar: if it does not support --format= it doesn't create
7266 + # ustar tarball either.
7267 + (tar --version) >/dev/null 2>&1 && continue
7268 + am__tar='tar chf - "$$tardir"'
7269 + am__tar_='tar chf - "$tardir"'
7270 + am__untar='tar xf -'
7273 + am__tar='pax -L -x $1 -w "$$tardir"'
7274 + am__tar_='pax -L -x $1 -w "$tardir"'
7275 + am__untar='pax -r'
7278 + am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
7279 + am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
7280 + am__untar='cpio -i -H $1 -d'
7289 + # If the value was cached, stop now. We just wanted to have am__tar
7290 + # and am__untar set.
7291 + test -n "${am_cv_prog_tar_$1}" && break
7293 + # tar/untar a dummy directory, and stop if the command works
7294 + rm -rf conftest.dir
7295 + mkdir conftest.dir
7296 + echo GrepMe > conftest.dir/file
7297 + AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
7298 + rm -rf conftest.dir
7299 + if test -s conftest.tar; then
7300 + AM_RUN_LOG([$am__untar <conftest.tar])
7301 + grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
7304 +rm -rf conftest.dir
7306 +AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
7307 +AC_MSG_RESULT([$am_cv_prog_tar_$1])])
7308 +AC_SUBST([am__tar])
7309 +AC_SUBST([am__untar])
7312 diff -urN lua-5.1.4/autogen.sh lua-5.1.4-autotoolize/autogen.sh
7313 --- lua-5.1.4/autogen.sh 1970-01-01 01:00:00.000000000 +0100
7314 +++ lua-5.1.4-autotoolize/autogen.sh 2008-09-03 13:18:28.000000000 +0200
7320 +echo "Now run ./configure"
7321 diff -urN lua-5.1.4/config.guess lua-5.1.4-autotoolize/config.guess
7322 --- lua-5.1.4/config.guess 1970-01-01 01:00:00.000000000 +0100
7323 +++ lua-5.1.4-autotoolize/config.guess 2008-09-03 13:18:37.000000000 +0200
7326 +# Attempt to guess a canonical system name.
7327 +# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
7328 +# 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation,
7331 +timestamp='2006-02-27'
7333 +# This file is free software; you can redistribute it and/or modify it
7334 +# under the terms of the GNU General Public License as published by
7335 +# the Free Software Foundation; either version 2 of the License, or
7336 +# (at your option) any later version.
7338 +# This program is distributed in the hope that it will be useful, but
7339 +# WITHOUT ANY WARRANTY; without even the implied warranty of
7340 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
7341 +# General Public License for more details.
7343 +# You should have received a copy of the GNU General Public License
7344 +# along with this program; if not, write to the Free Software
7345 +# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
7348 +# As a special exception to the GNU General Public License, if you
7349 +# distribute this file as part of a program that contains a
7350 +# configuration script generated by Autoconf, you may include it under
7351 +# the same distribution terms that you use for the rest of that program.
7354 +# Originally written by Per Bothner <per@bothner.com>.
7355 +# Please send patches to <config-patches@gnu.org>. Submit a context
7356 +# diff and a properly formatted ChangeLog entry.
7358 +# This script attempts to guess a canonical system name similar to
7359 +# config.sub. If it succeeds, it prints the system name on stdout, and
7360 +# exits with 0. Otherwise, it exits with 1.
7362 +# The plan is that this can be called by configure scripts if you
7363 +# don't specify an explicit build system type.
7365 +me=`echo "$0" | sed -e 's,.*/,,'`
7370 +Output the configuration name of the system \`$me' is run on.
7373 + -h, --help print this help, then exit
7374 + -t, --time-stamp print date of last modification, then exit
7375 + -v, --version print version number, then exit
7377 +Report bugs and patches to <config-patches@gnu.org>."
7380 +GNU config.guess ($timestamp)
7382 +Originally written by Per Bothner.
7383 +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
7384 +Free Software Foundation, Inc.
7386 +This is free software; see the source for copying conditions. There is NO
7387 +warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
7390 +Try \`$me --help' for more information."
7392 +# Parse command line
7393 +while test $# -gt 0 ; do
7395 + --time-stamp | --time* | -t )
7396 + echo "$timestamp" ; exit ;;
7398 + echo "$version" ; exit ;;
7399 + --help | --h* | -h )
7400 + echo "$usage"; exit ;;
7401 + -- ) # Stop option processing
7403 + - ) # Use stdin as input.
7406 + echo "$me: invalid option $1$help" >&2
7413 +if test $# != 0; then
7414 + echo "$me: too many arguments$help" >&2
7418 +trap 'exit 1' 1 2 15
7420 +# CC_FOR_BUILD -- compiler used by this script. Note that the use of a
7421 +# compiler to aid in system detection is discouraged as it requires
7422 +# temporary files to be created and, as you can see below, it is a
7423 +# headache to deal with in a portable fashion.
7425 +# Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still
7426 +# use `HOST_CC' if defined, but it is deprecated.
7428 +# Portable tmp directory creation inspired by the Autoconf team.
7431 +trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ;
7432 +trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ;
7434 + { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
7435 + { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } ||
7436 + { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } ||
7437 + { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ;
7439 +tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ;
7440 +case $CC_FOR_BUILD,$HOST_CC,$CC in
7441 + ,,) echo "int x;" > $dummy.c ;
7442 + for c in cc gcc c89 c99 ; do
7443 + if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then
7444 + CC_FOR_BUILD="$c"; break ;
7447 + if test x"$CC_FOR_BUILD" = x ; then
7448 + CC_FOR_BUILD=no_compiler_found ;
7451 + ,,*) CC_FOR_BUILD=$CC ;;
7452 + ,*,*) CC_FOR_BUILD=$HOST_CC ;;
7453 +esac ; set_cc_for_build= ;'
7455 +# This is needed to find uname on a Pyramid OSx when run in the BSD universe.
7456 +# (ghazi@noc.rutgers.edu 1994-08-24)
7457 +if (test -f /.attbin/uname) >/dev/null 2>&1 ; then
7458 + PATH=$PATH:/.attbin ; export PATH
7461 +UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown
7462 +UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown
7463 +UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown
7464 +UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
7466 +if [ "${UNAME_SYSTEM}" = "Linux" ] ; then
7467 + eval $set_cc_for_build
7468 + cat << EOF > $dummy.c
7469 + #include <features.h>
7471 + # ifdef __UCLIBC_CONFIG_VERSION__
7472 + LIBC=uclibc __UCLIBC_CONFIG_VERSION__
7480 + eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep LIBC= | sed -e 's: ::g'`
7483 +# Note: order is significant - the case branches are not exclusive.
7485 +case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
7487 + # NetBSD (nbsd) targets should (where applicable) match one or
7488 + # more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*,
7489 + # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently
7490 + # switched to ELF, *-*-netbsd* would select the old
7491 + # object file format. This provides both forward
7492 + # compatibility and a consistent mechanism for selecting the
7493 + # object file format.
7495 + # Note: NetBSD doesn't particularly care about the vendor
7496 + # portion of the name. We always set it to "unknown".
7497 + sysctl="sysctl -n hw.machine_arch"
7498 + UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \
7499 + /usr/sbin/$sysctl 2>/dev/null || echo unknown)`
7500 + case "${UNAME_MACHINE_ARCH}" in
7501 + armeb) machine=armeb-unknown ;;
7502 + arm*) machine=arm-unknown ;;
7503 + sh3el) machine=shl-unknown ;;
7504 + sh3eb) machine=sh-unknown ;;
7505 + *) machine=${UNAME_MACHINE_ARCH}-unknown ;;
7507 + # The Operating System including object format, if it has switched
7508 + # to ELF recently, or will in the future.
7509 + case "${UNAME_MACHINE_ARCH}" in
7510 + arm*|i386|m68k|ns32k|sh3*|sparc|vax)
7511 + eval $set_cc_for_build
7512 + if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
7513 + | grep __ELF__ >/dev/null
7515 + # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout).
7516 + # Return netbsd for either. FIX?
7527 + # Debian GNU/NetBSD machines have a different userland, and
7528 + # thus, need a distinct triplet. However, they do not need
7529 + # kernel version information, so it can be replaced with a
7530 + # suitable tag, in the style of linux-gnu.
7531 + case "${UNAME_VERSION}" in
7536 + release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
7539 + # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:
7540 + # contains redundant information, the shorter form:
7541 + # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
7542 + echo "${machine}-${os}${release}"
7545 + UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
7546 + echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE}
7549 + echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}
7552 + echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE}
7554 + macppc:MirBSD:*:*)
7555 + echo powerppc-unknown-mirbsd${UNAME_RELEASE}
7558 + echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
7561 + case $UNAME_RELEASE in
7563 + UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
7566 + UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
7569 + # According to Compaq, /usr/sbin/psrinfo has been available on
7570 + # OSF/1 and Tru64 systems produced since 1995. I hope that
7571 + # covers most systems running today. This code pipes the CPU
7572 + # types through head -n 1, so we only detect the type of CPU 0.
7573 + ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1`
7574 + case "$ALPHA_CPU_TYPE" in
7576 + UNAME_MACHINE="alpha" ;;
7578 + UNAME_MACHINE="alpha" ;;
7579 + "LCA4 (21066/21068)")
7580 + UNAME_MACHINE="alpha" ;;
7582 + UNAME_MACHINE="alphaev5" ;;
7584 + UNAME_MACHINE="alphaev56" ;;
7585 + "EV5.6 (21164PC)")
7586 + UNAME_MACHINE="alphapca56" ;;
7587 + "EV5.7 (21164PC)")
7588 + UNAME_MACHINE="alphapca57" ;;
7590 + UNAME_MACHINE="alphaev6" ;;
7592 + UNAME_MACHINE="alphaev67" ;;
7593 + "EV6.8CB (21264C)")
7594 + UNAME_MACHINE="alphaev68" ;;
7595 + "EV6.8AL (21264B)")
7596 + UNAME_MACHINE="alphaev68" ;;
7597 + "EV6.8CX (21264D)")
7598 + UNAME_MACHINE="alphaev68" ;;
7599 + "EV6.9A (21264/EV69A)")
7600 + UNAME_MACHINE="alphaev69" ;;
7602 + UNAME_MACHINE="alphaev7" ;;
7604 + UNAME_MACHINE="alphaev79" ;;
7606 + # A Pn.n version is a patched version.
7607 + # A Vn.n version is a released version.
7608 + # A Tn.n version is a released field test version.
7609 + # A Xn.n version is an unreleased experimental baselevel.
7610 + # 1.2 uses "1.2" for uname -r.
7611 + echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
7613 + Alpha\ *:Windows_NT*:*)
7614 + # How do we know it's Interix rather than the generic POSIX subsystem?
7615 + # Should we change UNAME_MACHINE based on the output of uname instead
7616 + # of the specific Alpha model?
7617 + echo alpha-pc-interix
7619 + 21064:Windows_NT:50:3)
7620 + echo alpha-dec-winnt3.5
7622 + Amiga*:UNIX_System_V:4.0:*)
7623 + echo m68k-unknown-sysv4
7625 + *:[Aa]miga[Oo][Ss]:*:*)
7626 + echo ${UNAME_MACHINE}-unknown-amigaos
7628 + *:[Mm]orph[Oo][Ss]:*:*)
7629 + echo ${UNAME_MACHINE}-unknown-morphos
7632 + echo i370-ibm-openedition
7635 + echo s390-ibm-zvmoe
7638 + echo powerpc-ibm-os400
7640 + arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
7641 + echo arm-acorn-riscix${UNAME_RELEASE}
7643 + arm:riscos:*:*|arm:RISCOS:*:*)
7644 + echo arm-unknown-riscos
7646 + SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
7647 + echo hppa1.1-hitachi-hiuxmpp
7649 + Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*)
7650 + # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE.
7651 + if test "`(/bin/universe) 2>/dev/null`" = att ; then
7652 + echo pyramid-pyramid-sysv3
7654 + echo pyramid-pyramid-bsd
7658 + echo pyramid-pyramid-svr4
7660 + DRS?6000:unix:4.0:6*)
7661 + echo sparc-icl-nx6
7663 + DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*)
7664 + case `/usr/bin/uname -p` in
7665 + sparc) echo sparc-icl-nx7; exit ;;
7667 + sun4H:SunOS:5.*:*)
7668 + echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
7670 + sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
7671 + echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
7673 + i86pc:SunOS:5.*:*)
7674 + echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
7677 + # According to config.sub, this is the proper way to canonicalize
7678 + # SunOS6. Hard to guess exactly what SunOS6 will be like, but
7679 + # it's likely to be more like Solaris than SunOS4.
7680 + echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
7683 + case "`/usr/bin/arch -k`" in
7685 + UNAME_RELEASE=`uname -v`
7688 + # Japanese Language versions have a version number like `4.1.3-JL'.
7689 + echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'`
7692 + echo m68k-sun-sunos${UNAME_RELEASE}
7695 + UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
7696 + test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3
7697 + case "`/bin/arch`" in
7699 + echo m68k-sun-sunos${UNAME_RELEASE}
7702 + echo sparc-sun-sunos${UNAME_RELEASE}
7707 + echo sparc-auspex-sunos${UNAME_RELEASE}
7709 + # The situation for MiNT is a little confusing. The machine name
7710 + # can be virtually everything (everything which is not
7711 + # "atarist" or "atariste" at least should have a processor
7712 + # > m68000). The system name ranges from "MiNT" over "FreeMiNT"
7713 + # to the lowercase version "mint" (or "freemint"). Finally
7714 + # the system name "TOS" denotes a system which is actually not
7715 + # MiNT. But MiNT is downward compatible to TOS, so this should
7717 + atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
7718 + echo m68k-atari-mint${UNAME_RELEASE}
7720 + atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
7721 + echo m68k-atari-mint${UNAME_RELEASE}
7723 + *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
7724 + echo m68k-atari-mint${UNAME_RELEASE}
7726 + milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
7727 + echo m68k-milan-mint${UNAME_RELEASE}
7729 + hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
7730 + echo m68k-hades-mint${UNAME_RELEASE}
7732 + *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
7733 + echo m68k-unknown-mint${UNAME_RELEASE}
7736 + echo m68k-apple-machten${UNAME_RELEASE}
7738 + powerpc:machten:*:*)
7739 + echo powerpc-apple-machten${UNAME_RELEASE}
7742 + echo mips-dec-mach_bsd4.3
7745 + echo mips-dec-ultrix${UNAME_RELEASE}
7748 + echo vax-dec-ultrix${UNAME_RELEASE}
7750 + 2020:CLIX:*:* | 2430:CLIX:*:*)
7751 + echo clipper-intergraph-clix${UNAME_RELEASE}
7753 + mips:*:*:UMIPS | mips:*:*:RISCos)
7754 + eval $set_cc_for_build
7755 + sed 's/^ //' << EOF >$dummy.c
7757 +#include <stdio.h> /* for printf() prototype */
7758 + int main (int argc, char *argv[]) {
7760 + int main (argc, argv) int argc; char *argv[]; {
7762 + #if defined (host_mips) && defined (MIPSEB)
7763 + #if defined (SYSTYPE_SYSV)
7764 + printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0);
7766 + #if defined (SYSTYPE_SVR4)
7767 + printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0);
7769 + #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD)
7770 + printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0);
7776 + $CC_FOR_BUILD -o $dummy $dummy.c &&
7777 + dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` &&
7778 + SYSTEM_NAME=`$dummy $dummyarg` &&
7779 + { echo "$SYSTEM_NAME"; exit; }
7780 + echo mips-mips-riscos${UNAME_RELEASE}
7782 + Motorola:PowerMAX_OS:*:*)
7783 + echo powerpc-motorola-powermax
7785 + Motorola:*:4.3:PL8-*)
7786 + echo powerpc-harris-powermax
7788 + Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*)
7789 + echo powerpc-harris-powermax
7791 + Night_Hawk:Power_UNIX:*:*)
7792 + echo powerpc-harris-powerunix
7795 + echo m88k-harris-cxux7
7798 + echo m88k-motorola-sysv4
7801 + echo m88k-motorola-sysv3
7804 + # DG/UX returns AViiON for all architectures
7805 + UNAME_PROCESSOR=`/usr/bin/uname -p`
7806 + if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ]
7808 + if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \
7809 + [ ${TARGET_BINARY_INTERFACE}x = x ]
7811 + echo m88k-dg-dgux${UNAME_RELEASE}
7813 + echo m88k-dg-dguxbcs${UNAME_RELEASE}
7816 + echo i586-dg-dgux${UNAME_RELEASE}
7819 + M88*:DolphinOS:*:*) # DolphinOS (SVR3)
7820 + echo m88k-dolphin-sysv3
7823 + # Delta 88k system running SVR3
7824 + echo m88k-motorola-sysv3
7826 + XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3)
7827 + echo m88k-tektronix-sysv3
7829 + Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD)
7830 + echo m68k-tektronix-bsd
7833 + echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'`
7835 + ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX.
7836 + echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id
7837 + exit ;; # Note that: echo "'`uname -s`'" gives 'AIX '
7842 + if [ -x /usr/bin/oslevel ] ; then
7843 + IBM_REV=`/usr/bin/oslevel`
7845 + IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
7847 + echo ${UNAME_MACHINE}-ibm-aix${IBM_REV}
7850 + if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then
7851 + eval $set_cc_for_build
7852 + sed 's/^ //' << EOF >$dummy.c
7853 + #include <sys/systemcfg.h>
7857 + if (!__power_pc())
7859 + puts("powerpc-ibm-aix3.2.5");
7863 + if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy`
7865 + echo "$SYSTEM_NAME"
7867 + echo rs6000-ibm-aix3.2.5
7869 + elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then
7870 + echo rs6000-ibm-aix3.2.4
7872 + echo rs6000-ibm-aix3.2
7876 + IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
7877 + if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
7882 + if [ -x /usr/bin/oslevel ] ; then
7883 + IBM_REV=`/usr/bin/oslevel`
7885 + IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
7887 + echo ${IBM_ARCH}-ibm-aix${IBM_REV}
7890 + echo rs6000-ibm-aix
7892 + ibmrt:4.4BSD:*|romp-ibm:BSD:*)
7893 + echo romp-ibm-bsd4.4
7895 + ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and
7896 + echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to
7897 + exit ;; # report: romp-ibm BSD 4.3
7899 + echo rs6000-bull-bosx
7901 + DPX/2?00:B.O.S.:*:*)
7902 + echo m68k-bull-sysv3
7904 + 9000/[34]??:4.3bsd:1.*:*)
7907 + hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*)
7908 + echo m68k-hp-bsd4.4
7910 + 9000/[34678]??:HP-UX:*:*)
7911 + HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
7912 + case "${UNAME_MACHINE}" in
7913 + 9000/31? ) HP_ARCH=m68000 ;;
7914 + 9000/[34]?? ) HP_ARCH=m68k ;;
7915 + 9000/[678][0-9][0-9])
7916 + if [ -x /usr/bin/getconf ]; then
7917 + sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
7918 + sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
7919 + case "${sc_cpu_version}" in
7920 + 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
7921 + 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
7922 + 532) # CPU_PA_RISC2_0
7923 + case "${sc_kernel_bits}" in
7924 + 32) HP_ARCH="hppa2.0n" ;;
7925 + 64) HP_ARCH="hppa2.0w" ;;
7926 + '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20
7930 + if [ "${HP_ARCH}" = "" ]; then
7931 + eval $set_cc_for_build
7932 + sed 's/^ //' << EOF >$dummy.c
7934 + #define _HPUX_SOURCE
7935 + #include <stdlib.h>
7936 + #include <unistd.h>
7940 + #if defined(_SC_KERNEL_BITS)
7941 + long bits = sysconf(_SC_KERNEL_BITS);
7943 + long cpu = sysconf (_SC_CPU_VERSION);
7947 + case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
7948 + case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
7949 + case CPU_PA_RISC2_0:
7950 + #if defined(_SC_KERNEL_BITS)
7953 + case 64: puts ("hppa2.0w"); break;
7954 + case 32: puts ("hppa2.0n"); break;
7955 + default: puts ("hppa2.0"); break;
7957 + #else /* !defined(_SC_KERNEL_BITS) */
7958 + puts ("hppa2.0"); break;
7960 + default: puts ("hppa1.0"); break;
7965 + (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
7966 + test -z "$HP_ARCH" && HP_ARCH=hppa
7969 + if [ ${HP_ARCH} = "hppa2.0w" ]
7971 + eval $set_cc_for_build
7973 + # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating
7974 + # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler
7975 + # generating 64-bit code. GNU and HP use different nomenclature:
7977 + # $ CC_FOR_BUILD=cc ./config.guess
7978 + # => hppa2.0w-hp-hpux11.23
7979 + # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess
7980 + # => hppa64-hp-hpux11.23
7982 + if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) |
7983 + grep __LP64__ >/dev/null
7985 + HP_ARCH="hppa2.0w"
7990 + echo ${HP_ARCH}-hp-hpux${HPUX_REV}
7993 + HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
7994 + echo ia64-hp-hpux${HPUX_REV}
7997 + eval $set_cc_for_build
7998 + sed 's/^ //' << EOF >$dummy.c
7999 + #include <unistd.h>
8003 + long cpu = sysconf (_SC_CPU_VERSION);
8004 + /* The order matters, because CPU_IS_HP_MC68K erroneously returns
8005 + true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct
8006 + results, however. */
8007 + if (CPU_IS_PA_RISC (cpu))
8011 + case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break;
8012 + case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break;
8013 + case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break;
8014 + default: puts ("hppa-hitachi-hiuxwe2"); break;
8017 + else if (CPU_IS_HP_MC68K (cpu))
8018 + puts ("m68k-hitachi-hiuxwe2");
8019 + else puts ("unknown-hitachi-hiuxwe2");
8023 + $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` &&
8024 + { echo "$SYSTEM_NAME"; exit; }
8025 + echo unknown-hitachi-hiuxwe2
8027 + 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* )
8028 + echo hppa1.1-hp-bsd
8030 + 9000/8??:4.3bsd:*:*)
8031 + echo hppa1.0-hp-bsd
8033 + *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*)
8034 + echo hppa1.0-hp-mpeix
8036 + hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* )
8037 + echo hppa1.1-hp-osf
8040 + echo hppa1.0-hp-osf
8043 + if [ -x /usr/sbin/sysversion ] ; then
8044 + echo ${UNAME_MACHINE}-unknown-osf1mk
8046 + echo ${UNAME_MACHINE}-unknown-osf1
8049 + parisc*:Lites*:*:*)
8050 + echo hppa1.1-hp-lites
8052 + C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
8053 + echo c1-convex-bsd
8055 + C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
8056 + if getsysinfo -f scalar_acc
8057 + then echo c32-convex-bsd
8058 + else echo c2-convex-bsd
8061 + C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
8062 + echo c34-convex-bsd
8064 + C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
8065 + echo c38-convex-bsd
8067 + C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
8068 + echo c4-convex-bsd
8071 + echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
8073 + CRAY*[A-Z]90:*:*:*)
8074 + echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \
8075 + | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \
8076 + -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \
8077 + -e 's/\.[^.]*$/.X/'
8080 + echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
8083 + echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
8086 + echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
8089 + echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
8091 + F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
8092 + FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
8093 + FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
8094 + FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
8095 + echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
8097 + 5000:UNIX_System_V:4.*:*)
8098 + FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
8099 + FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
8100 + echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
8102 + i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
8103 + echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
8105 + sparc*:BSD/OS:*:*)
8106 + echo sparc-unknown-bsdi${UNAME_RELEASE}
8109 + echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
8112 + case ${UNAME_MACHINE} in
8114 + echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
8116 + echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
8120 + echo ${UNAME_MACHINE}-pc-cygwin
8123 + echo ${UNAME_MACHINE}-pc-mingw32
8126 + echo ${UNAME_MACHINE}-pc-mingw32
8129 + # uname -m includes "-pc" on this system.
8130 + echo ${UNAME_MACHINE}-mingw32
8133 + echo ${UNAME_MACHINE}-pc-pw32
8135 + x86:Interix*:[345]*)
8136 + echo i586-pc-interix${UNAME_RELEASE}
8138 + EM64T:Interix*:[345]*)
8139 + echo x86_64-unknown-interix${UNAME_RELEASE}
8141 + [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
8142 + echo i${UNAME_MACHINE}-pc-mks
8144 + i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
8145 + # How do we know it's Interix rather than the generic POSIX subsystem?
8146 + # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
8147 + # UNAME_MACHINE based on the output of uname instead of i386?
8148 + echo i586-pc-interix
8151 + echo ${UNAME_MACHINE}-pc-uwin
8153 + amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*)
8154 + echo x86_64-unknown-cygwin
8157 + echo powerpcle-unknown-cygwin
8159 + prep*:SunOS:5.*:*)
8160 + echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
8164 + echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
8167 + # other systems with GNU libc and userland
8168 + echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu
8171 + echo ${UNAME_MACHINE}-pc-minix
8174 + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
8177 + echo cris-axis-linux-${LIBC}
8179 + crisv32:Linux:*:*)
8180 + echo crisv32-axis-linux-${LIBC}
8183 + echo frv-unknown-linux-${LIBC}
8186 + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
8189 + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
8192 + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
8195 + eval $set_cc_for_build
8196 + sed 's/^ //' << EOF >$dummy.c
8200 + #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
8203 + #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
8210 + eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
8215 + test x"${CPU}" != x && { echo "${CPU}-unknown-linux-${LIBC}"; exit; }
8218 + eval $set_cc_for_build
8219 + sed 's/^ //' << EOF >$dummy.c
8223 + #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
8226 + #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
8233 + eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
8238 + test x"${CPU}" != x && { echo "${CPU}-unknown-linux-${LIBC}"; exit; }
8241 + echo or32-unknown-linux-${LIBC}
8244 + echo powerpc-unknown-linux-${LIBC}
8247 + echo powerpc64-unknown-linux-${LIBC}
8250 + case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
8251 + EV5) UNAME_MACHINE=alphaev5 ;;
8252 + EV56) UNAME_MACHINE=alphaev56 ;;
8253 + PCA56) UNAME_MACHINE=alphapca56 ;;
8254 + PCA57) UNAME_MACHINE=alphapca56 ;;
8255 + EV6) UNAME_MACHINE=alphaev6 ;;
8256 + EV67) UNAME_MACHINE=alphaev67 ;;
8257 + EV68*) UNAME_MACHINE=alphaev68 ;;
8259 + objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null
8260 + if test "$?" = 0 ; then LIBC="gnulibc1" ; fi
8261 + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
8263 + parisc:Linux:*:* | hppa:Linux:*:*)
8264 + # Look for CPU level
8265 + case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
8266 + PA7*) echo hppa1.1-unknown-linux-${LIBC} ;;
8267 + PA8*) echo hppa2.0-unknown-linux-${LIBC} ;;
8268 + *) echo hppa-unknown-linux-${LIBC} ;;
8271 + parisc64:Linux:*:* | hppa64:Linux:*:*)
8272 + echo hppa64-unknown-linux-${LIBC}
8274 + s390:Linux:*:* | s390x:Linux:*:*)
8275 + echo ${UNAME_MACHINE}-ibm-linux
8278 + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
8281 + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
8283 + sparc:Linux:*:* | sparc64:Linux:*:*)
8284 + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
8287 + echo ${UNAME_MACHINE}-dec-linux-${LIBC}
8290 + echo x86_64-unknown-linux-${LIBC}
8293 + # The BFD linker knows what the default object file format is, so
8294 + # first see if it will tell us. cd to the root directory to prevent
8295 + # problems with other programs or directories called `ld' in the path.
8296 + # Set LC_ALL=C to ensure ld outputs messages in English.
8297 + ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \
8298 + | sed -ne '/supported targets:/!d
8300 + s/.*supported targets: *//
8303 + case "$ld_supported_targets" in
8305 + TENTATIVE="${UNAME_MACHINE}-pc-linux-${LIBC}"
8308 + echo "${UNAME_MACHINE}-pc-linux-${LIBC}aout"
8311 + echo "${UNAME_MACHINE}-pc-linux-${LIBC}coff"
8314 + # Either a pre-BFD a.out linker (linux-gnuoldld) or
8315 + # one that does not give us useful --help.
8316 + echo "${UNAME_MACHINE}-pc-linux-${LIBC}oldld"
8319 + # This should get integrated into the C code below, but now we hack
8320 + if [ "$LIBC" != "gnu" ] ; then echo "$TENTATIVE" && exit 0 ; fi
8321 + # Determine whether the default compiler is a.out or elf
8322 + eval $set_cc_for_build
8323 + sed 's/^ //' << EOF >$dummy.c
8324 + #include <features.h>
8327 + # if __GLIBC__ >= 2
8336 + #if defined(__INTEL_COMPILER) || defined(__PGI) || defined(__sun)
8342 + #ifdef __dietlibc__
8346 + eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
8351 + test x"${LIBC}" != x && {
8352 + echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
8355 + test x"${TENTATIVE}" != x && { echo "${TENTATIVE}"; exit; }
8357 + i*86:DYNIX/ptx:4*:*)
8358 + # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
8359 + # earlier versions are messed up and put the nodename in both
8360 + # sysname and nodename.
8361 + echo i386-sequent-sysv4
8363 + i*86:UNIX_SV:4.2MP:2.*)
8364 + # Unixware is an offshoot of SVR4, but it has its own version
8365 + # number series starting with 2...
8366 + # I am not positive that other SVR4 systems won't match this,
8367 + # I just have to hope. -- rms.
8368 + # Use sysv4.2uw... so that sysv4* matches it.
8369 + echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
8372 + # If we were able to find `uname', then EMX Unix compatibility
8373 + # is probably installed.
8374 + echo ${UNAME_MACHINE}-pc-os2-emx
8376 + i*86:XTS-300:*:STOP)
8377 + echo ${UNAME_MACHINE}-unknown-stop
8380 + echo ${UNAME_MACHINE}-unknown-atheos
8382 + i*86:syllable:*:*)
8383 + echo ${UNAME_MACHINE}-pc-syllable
8385 + i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)
8386 + echo i386-unknown-lynxos${UNAME_RELEASE}
8389 + echo ${UNAME_MACHINE}-pc-msdosdjgpp
8391 + i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*)
8392 + UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'`
8393 + if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then
8394 + echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL}
8396 + echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL}
8400 + # UnixWare 7.x, OpenUNIX and OpenServer 6.
8401 + case `/bin/uname -X | grep "^Machine"` in
8402 + *486*) UNAME_MACHINE=i486 ;;
8403 + *Pentium) UNAME_MACHINE=i586 ;;
8404 + *Pent*|*Celeron) UNAME_MACHINE=i686 ;;
8406 + echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}
8409 + if test -f /usr/options/cb.name; then
8410 + UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name`
8411 + echo ${UNAME_MACHINE}-pc-isc$UNAME_REL
8412 + elif /bin/uname -X 2>/dev/null >/dev/null ; then
8413 + UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')`
8414 + (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486
8415 + (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \
8416 + && UNAME_MACHINE=i586
8417 + (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \
8418 + && UNAME_MACHINE=i686
8419 + (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \
8420 + && UNAME_MACHINE=i686
8421 + echo ${UNAME_MACHINE}-pc-sco$UNAME_REL
8423 + echo ${UNAME_MACHINE}-pc-sysv32
8427 + # Left here for compatibility:
8428 + # uname -m prints for DJGPP always 'pc', but it prints nothing about
8429 + # the processor, so we play safe by assuming i386.
8430 + echo i386-pc-msdosdjgpp
8433 + echo i386-pc-mach3
8436 + echo i860-intel-osf1
8438 + i860:*:4.*:*) # i860-SVR4
8439 + if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then
8440 + echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4
8441 + else # Add other i860-SVR4 vendors below as they are discovered.
8442 + echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4
8445 + mini*:CTIX:SYS*5:*)
8447 + echo m68010-convergent-sysv
8449 + mc68k:UNIX:SYSTEM5:3.51m)
8450 + echo m68k-convergent-sysv
8452 + M680?0:D-NIX:5.3:*)
8453 + echo m68k-diab-dnix
8455 + M68*:*:R3V[5678]*:*)
8456 + test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;;
8457 + 3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0 | S7501*:*:4.0:3.0)
8459 + test -r /etc/.relid \
8460 + && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
8461 + /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
8462 + && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
8463 + /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
8464 + && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
8465 + 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
8466 + /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
8467 + && { echo i486-ncr-sysv4; exit; } ;;
8468 + m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
8469 + echo m68k-unknown-lynxos${UNAME_RELEASE}
8471 + mc68030:UNIX_System_V:4.*:*)
8472 + echo m68k-atari-sysv4
8474 + TSUNAMI:LynxOS:2.*:*)
8475 + echo sparc-unknown-lynxos${UNAME_RELEASE}
8477 + rs6000:LynxOS:2.*:*)
8478 + echo rs6000-unknown-lynxos${UNAME_RELEASE}
8480 + PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*)
8481 + echo powerpc-unknown-lynxos${UNAME_RELEASE}
8483 + SM[BE]S:UNIX_SV:*:*)
8484 + echo mips-dde-sysv${UNAME_RELEASE}
8486 + RM*:ReliantUNIX-*:*:*)
8487 + echo mips-sni-sysv4
8490 + echo mips-sni-sysv4
8493 + if uname -p 2>/dev/null >/dev/null ; then
8494 + UNAME_MACHINE=`(uname -p) 2>/dev/null`
8495 + echo ${UNAME_MACHINE}-sni-sysv4
8497 + echo ns32k-sni-sysv
8500 + PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
8501 + # says <Richard.M.Bartel@ccMail.Census.GOV>
8502 + echo i586-unisys-sysv4
8504 + *:UNIX_System_V:4*:FTX*)
8505 + # From Gerald Hewes <hewes@openmarket.com>.
8506 + # How about differentiating between stratus architectures? -djm
8507 + echo hppa1.1-stratus-sysv4
8510 + # From seanf@swdc.stratus.com.
8511 + echo i860-stratus-sysv4
8514 + # From Paul.Green@stratus.com.
8515 + echo ${UNAME_MACHINE}-stratus-vos
8518 + # From Paul.Green@stratus.com.
8519 + echo hppa1.1-stratus-vos
8522 + echo m68k-apple-aux${UNAME_RELEASE}
8524 + news*:NEWS-OS:6*:*)
8525 + echo mips-sony-newsos6
8527 + R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
8528 + if [ -d /usr/nec ]; then
8529 + echo mips-nec-sysv${UNAME_RELEASE}
8531 + echo mips-unknown-sysv${UNAME_RELEASE}
8534 + BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only.
8535 + echo powerpc-be-beos
8537 + BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only.
8538 + echo powerpc-apple-beos
8540 + BePC:BeOS:*:*) # BeOS running on Intel PC compatible.
8543 + SX-4:SUPER-UX:*:*)
8544 + echo sx4-nec-superux${UNAME_RELEASE}
8546 + SX-5:SUPER-UX:*:*)
8547 + echo sx5-nec-superux${UNAME_RELEASE}
8549 + SX-6:SUPER-UX:*:*)
8550 + echo sx6-nec-superux${UNAME_RELEASE}
8552 + Power*:Rhapsody:*:*)
8553 + echo powerpc-apple-rhapsody${UNAME_RELEASE}
8556 + echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
8559 + UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
8560 + case $UNAME_PROCESSOR in
8561 + unknown) UNAME_PROCESSOR=powerpc ;;
8563 + echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
8565 + *:procnto*:*:* | *:QNX:[0123456789]*:*)
8566 + UNAME_PROCESSOR=`uname -p`
8567 + if test "$UNAME_PROCESSOR" = "x86"; then
8568 + UNAME_PROCESSOR=i386
8571 + echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE}
8576 + NSE-?:NONSTOP_KERNEL:*:*)
8577 + echo nse-tandem-nsk${UNAME_RELEASE}
8579 + NSR-?:NONSTOP_KERNEL:*:*)
8580 + echo nsr-tandem-nsk${UNAME_RELEASE}
8583 + echo mips-compaq-nonstopux
8585 + BS2000:POSIX*:*:*)
8586 + echo bs2000-siemens-sysv
8588 + DS/*:UNIX_System_V:*:*)
8589 + echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE}
8592 + # "uname -m" is not consistent, so use $cputype instead. 386
8593 + # is converted to i386 for consistency with other x86
8594 + # operating systems.
8595 + if test "$cputype" = "386"; then
8596 + UNAME_MACHINE=i386
8598 + UNAME_MACHINE="$cputype"
8600 + echo ${UNAME_MACHINE}-unknown-plan9
8603 + echo pdp10-unknown-tops10
8606 + echo pdp10-unknown-tenex
8608 + KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*)
8609 + echo pdp10-dec-tops20
8611 + XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*)
8612 + echo pdp10-xkl-tops20
8615 + echo pdp10-unknown-tops20
8618 + echo pdp10-unknown-its
8621 + echo mips-sei-seiux${UNAME_RELEASE}
8624 + echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
8627 + UNAME_MACHINE=`(uname -p) 2>/dev/null`
8628 + case "${UNAME_MACHINE}" in
8629 + A*) echo alpha-dec-vms ; exit ;;
8630 + I*) echo ia64-dec-vms ; exit ;;
8631 + V*) echo vax-dec-vms ; exit ;;
8634 + echo i386-pc-xenix
8637 + echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//'
8640 + echo ${UNAME_MACHINE}-pc-rdos
8644 +#echo '(No uname command or uname output not recognized.)' 1>&2
8645 +#echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2
8647 +eval $set_cc_for_build
8648 +cat >$dummy.c <<EOF
8650 +# include <sys/types.h>
8651 +# include <sys/utsname.h>
8656 +#if defined (MIPSEB)
8657 + /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed,
8658 + I don't know.... */
8659 + printf ("mips-sony-bsd\n"); exit (0);
8661 +#include <sys/param.h>
8662 + printf ("m68k-sony-newsos%s\n",
8672 +#if defined (__arm) && defined (__acorn) && defined (__unix)
8673 + printf ("arm-acorn-riscix\n"); exit (0);
8676 +#if defined (hp300) && !defined (hpux)
8677 + printf ("m68k-hp-bsd\n"); exit (0);
8681 +#if !defined (__ARCHITECTURE__)
8682 +#define __ARCHITECTURE__ "m68k"
8685 + version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`;
8687 + printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version);
8689 + printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version);
8693 +#if defined (MULTIMAX) || defined (n16)
8694 +#if defined (UMAXV)
8695 + printf ("ns32k-encore-sysv\n"); exit (0);
8698 + printf ("ns32k-encore-mach\n"); exit (0);
8700 + printf ("ns32k-encore-bsd\n"); exit (0);
8705 +#if defined (__386BSD__)
8706 + printf ("i386-pc-bsd\n"); exit (0);
8709 +#if defined (sequent)
8711 + printf ("i386-sequent-dynix\n"); exit (0);
8713 +#if defined (ns32000)
8714 + printf ("ns32k-sequent-dynix\n"); exit (0);
8718 +#if defined (_SEQUENT_)
8719 + struct utsname un;
8723 + if (strncmp(un.version, "V2", 2) == 0) {
8724 + printf ("i386-sequent-ptx2\n"); exit (0);
8726 + if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */
8727 + printf ("i386-sequent-ptx1\n"); exit (0);
8729 + printf ("i386-sequent-ptx\n"); exit (0);
8734 +# if !defined (ultrix)
8735 +# include <sys/param.h>
8738 + printf ("vax-dec-bsd4.3\n"); exit (0);
8741 + printf ("vax-dec-bsd4.3reno\n"); exit (0);
8743 + printf ("vax-dec-bsd\n"); exit (0);
8747 + printf ("vax-dec-bsd\n"); exit (0);
8750 + printf ("vax-dec-ultrix\n"); exit (0);
8754 +#if defined (alliant) && defined (i860)
8755 + printf ("i860-alliant-bsd\n"); exit (0);
8762 +$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` &&
8763 + { echo "$SYSTEM_NAME"; exit; }
8765 +# Apollos put the system type in the environment.
8767 +test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; }
8769 +# Convex versions that predate uname can use getsysinfo(1)
8771 +if [ -x /usr/convex/getsysinfo ]
8773 + case `getsysinfo -f cpu_type` in
8775 + echo c1-convex-bsd
8778 + if getsysinfo -f scalar_acc
8779 + then echo c32-convex-bsd
8780 + else echo c2-convex-bsd
8784 + echo c34-convex-bsd
8787 + echo c38-convex-bsd
8790 + echo c4-convex-bsd
8796 +$0: unable to guess system type
8798 +This script, last modified $timestamp, has failed to recognize
8799 +the operating system you are using. It is advised that you
8800 +download the most up to date version of the config scripts from
8802 + http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.guess
8804 + http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.sub
8806 +If the version you run ($0) is already up to date, please
8807 +send the following data and any information you think might be
8808 +pertinent to <config-patches@gnu.org> in order to provide the needed
8809 +information to handle your system.
8811 +config.guess timestamp = $timestamp
8813 +uname -m = `(uname -m) 2>/dev/null || echo unknown`
8814 +uname -r = `(uname -r) 2>/dev/null || echo unknown`
8815 +uname -s = `(uname -s) 2>/dev/null || echo unknown`
8816 +uname -v = `(uname -v) 2>/dev/null || echo unknown`
8818 +/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null`
8819 +/bin/uname -X = `(/bin/uname -X) 2>/dev/null`
8821 +hostinfo = `(hostinfo) 2>/dev/null`
8822 +/bin/universe = `(/bin/universe) 2>/dev/null`
8823 +/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null`
8824 +/bin/arch = `(/bin/arch) 2>/dev/null`
8825 +/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null`
8826 +/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null`
8828 +UNAME_MACHINE = ${UNAME_MACHINE}
8829 +UNAME_RELEASE = ${UNAME_RELEASE}
8830 +UNAME_SYSTEM = ${UNAME_SYSTEM}
8831 +UNAME_VERSION = ${UNAME_VERSION}
8837 +# eval: (add-hook 'write-file-hooks 'time-stamp)
8838 +# time-stamp-start: "timestamp='"
8839 +# time-stamp-format: "%:y-%02m-%02d"
8840 +# time-stamp-end: "'"
8842 diff -urN lua-5.1.4/config.h.in lua-5.1.4-autotoolize/config.h.in
8843 --- lua-5.1.4/config.h.in 1970-01-01 01:00:00.000000000 +0100
8844 +++ lua-5.1.4-autotoolize/config.h.in 2008-09-03 13:18:23.000000000 +0200
8846 +/* config.h.in. Generated from configure.ac by autoheader. */
8848 +/* Define to 1 if you have the <dlfcn.h> header file. */
8849 +#undef HAVE_DLFCN_H
8851 +/* Define to 1 if you have the <inttypes.h> header file. */
8852 +#undef HAVE_INTTYPES_H
8854 +/* Define to 1 if you have the `readline' library (-lreadline). */
8855 +#undef HAVE_LIBREADLINE
8857 +/* Define to 1 if you have the <memory.h> header file. */
8858 +#undef HAVE_MEMORY_H
8860 +/* Define to 1 if you have the <readline/history.h> header file. */
8861 +#undef HAVE_READLINE_HISTORY_H
8863 +/* Define to 1 if you have the <readline/readline.h> header file. */
8864 +#undef HAVE_READLINE_READLINE_H
8866 +/* Define to 1 if you have the <stdint.h> header file. */
8867 +#undef HAVE_STDINT_H
8869 +/* Define to 1 if you have the <stdlib.h> header file. */
8870 +#undef HAVE_STDLIB_H
8872 +/* Define to 1 if you have the <strings.h> header file. */
8873 +#undef HAVE_STRINGS_H
8875 +/* Define to 1 if you have the <string.h> header file. */
8876 +#undef HAVE_STRING_H
8878 +/* Define to 1 if you have the <sys/stat.h> header file. */
8879 +#undef HAVE_SYS_STAT_H
8881 +/* Define to 1 if you have the <sys/types.h> header file. */
8882 +#undef HAVE_SYS_TYPES_H
8884 +/* Define to 1 if you have the <unistd.h> header file. */
8885 +#undef HAVE_UNISTD_H
8887 +/* Name of package */
8890 +/* Define to the address where bug reports for this package should be sent. */
8891 +#undef PACKAGE_BUGREPORT
8893 +/* Define to the full name of this package. */
8894 +#undef PACKAGE_NAME
8896 +/* Define to the full name and version of this package. */
8897 +#undef PACKAGE_STRING
8899 +/* Define to the one symbol short name of this package. */
8900 +#undef PACKAGE_TARNAME
8902 +/* Define to the version of this package. */
8903 +#undef PACKAGE_VERSION
8905 +/* Define to 1 if you have the ANSI C header files. */
8906 +#undef STDC_HEADERS
8908 +/* Version number of package */
8910 diff -urN lua-5.1.4/config.sub lua-5.1.4-autotoolize/config.sub
8911 --- lua-5.1.4/config.sub 1970-01-01 01:00:00.000000000 +0100
8912 +++ lua-5.1.4-autotoolize/config.sub 2008-09-03 13:18:37.000000000 +0200
8915 +# Configuration validation subroutine script.
8916 +# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
8917 +# 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation,
8920 +timestamp='2006-02-27'
8922 +# This file is (in principle) common to ALL GNU software.
8923 +# The presence of a machine in this file suggests that SOME GNU software
8924 +# can handle that machine. It does not imply ALL GNU software can.
8926 +# This file is free software; you can redistribute it and/or modify
8927 +# it under the terms of the GNU General Public License as published by
8928 +# the Free Software Foundation; either version 2 of the License, or
8929 +# (at your option) any later version.
8931 +# This program is distributed in the hope that it will be useful,
8932 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
8933 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
8934 +# GNU General Public License for more details.
8936 +# You should have received a copy of the GNU General Public License
8937 +# along with this program; if not, write to the Free Software
8938 +# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
8941 +# As a special exception to the GNU General Public License, if you
8942 +# distribute this file as part of a program that contains a
8943 +# configuration script generated by Autoconf, you may include it under
8944 +# the same distribution terms that you use for the rest of that program.
8947 +# Please send patches to <config-patches@gnu.org>. Submit a context
8948 +# diff and a properly formatted ChangeLog entry.
8950 +# Configuration subroutine to validate and canonicalize a configuration type.
8951 +# Supply the specified configuration type as an argument.
8952 +# If it is invalid, we print an error message on stderr and exit with code 1.
8953 +# Otherwise, we print the canonical config type on stdout and succeed.
8955 +# This file is supposed to be the same for all GNU packages
8956 +# and recognize all the CPU types, system types and aliases
8957 +# that are meaningful with *any* GNU software.
8958 +# Each package is responsible for reporting which valid configurations
8959 +# it does not support. The user should be able to distinguish
8960 +# a failure to support a valid configuration from a meaningless
8963 +# The goal of this file is to map all the various variations of a given
8964 +# machine specification into a single specification in the form:
8965 +# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM
8966 +# or in some cases, the newer four-part form:
8967 +# CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM
8968 +# It is wrong to echo any other type of specification.
8970 +me=`echo "$0" | sed -e 's,.*/,,'`
8973 +Usage: $0 [OPTION] CPU-MFR-OPSYS
8976 +Canonicalize a configuration name.
8979 + -h, --help print this help, then exit
8980 + -t, --time-stamp print date of last modification, then exit
8981 + -v, --version print version number, then exit
8983 +Report bugs and patches to <config-patches@gnu.org>."
8986 +GNU config.sub ($timestamp)
8988 +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
8989 +Free Software Foundation, Inc.
8991 +This is free software; see the source for copying conditions. There is NO
8992 +warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
8995 +Try \`$me --help' for more information."
8997 +# Parse command line
8998 +while test $# -gt 0 ; do
9000 + --time-stamp | --time* | -t )
9001 + echo "$timestamp" ; exit ;;
9003 + echo "$version" ; exit ;;
9004 + --help | --h* | -h )
9005 + echo "$usage"; exit ;;
9006 + -- ) # Stop option processing
9008 + - ) # Use stdin as input.
9011 + echo "$me: invalid option $1$help"
9015 + # First pass through any local machine types.
9025 + 0) echo "$me: missing argument$help" >&2
9028 + *) echo "$me: too many arguments$help" >&2
9032 +# Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any).
9033 +# Here we must recognize all the valid KERNEL-OS combinations.
9034 +maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
9036 + nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \
9037 + uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \
9038 + storm-chaos* | os2-emx* | rtmk-nova*)
9040 + basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
9043 + basic_machine=`echo $1 | sed 's/-[^-]*$//'`
9044 + if [ $basic_machine != $1 ]
9045 + then os=`echo $1 | sed 's/.*-/-/'`
9050 +### Let's recognize common machines as not being operating systems so
9051 +### that things like config.sub decstation-3100 work. We also
9052 +### recognize some manufacturers as not being operating systems, so we
9053 +### can provide default operating systems below.
9056 + # Prevent following clause from handling this invalid input.
9058 + -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \
9059 + -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \
9060 + -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \
9061 + -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
9062 + -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
9063 + -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
9064 + -apple | -axis | -knuth | -cray)
9068 + -sim | -cisco | -oki | -wec | -winbond)
9091 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
9095 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
9099 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
9102 + os=`echo $os | sed -e 's/sco3.2./sco3.2v/'`
9103 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
9106 + # Don't forget version if it is 3.2v4 or newer.
9107 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
9110 + # Don't forget version if it is 3.2v4 or newer.
9111 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
9115 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
9118 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
9122 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
9125 + basic_machine=clipper-intergraph
9128 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
9134 + basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'`
9137 + os=`echo $os | sed -e 's/windowsnt/winnt/'`
9142 + -mint | -mint[0-9]*)
9143 + basic_machine=m68k-atari
9148 +# Decode aliases for certain CPU-COMPANY combinations.
9149 +case $basic_machine in
9150 + # Recognize the basic CPU types without company name.
9151 + # Some are omitted here because they have special meanings below.
9154 + | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
9155 + | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
9157 + | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \
9160 + | d10v | d30v | dlx | dsp16xx | dvp \
9162 + | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
9163 + | i370 | i860 | i960 | ia64 \
9165 + | m32r | m32rle | m68000 | m68k | m88k | maxq | mb | microblaze | mcore \
9166 + | mips | mipsbe | mipseb | mipsel | mipsle \
9168 + | mips64 | mips64el \
9169 + | mips64vr | mips64vrel \
9170 + | mips64orion | mips64orionel \
9171 + | mips64vr4100 | mips64vr4100el \
9172 + | mips64vr4300 | mips64vr4300el \
9173 + | mips64vr5000 | mips64vr5000el \
9174 + | mips64vr5900 | mips64vr5900el \
9175 + | mipsisa32 | mipsisa32el \
9176 + | mipsisa32r2 | mipsisa32r2el \
9177 + | mipsisa64 | mipsisa64el \
9178 + | mipsisa64r2 | mipsisa64r2el \
9179 + | mipsisa64sb1 | mipsisa64sb1el \
9180 + | mipsisa64sr71k | mipsisa64sr71kel \
9181 + | mipstx39 | mipstx39el \
9182 + | mn10200 | mn10300 \
9188 + | pdp10 | pdp11 | pj | pjl \
9189 + | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
9191 + | sh | sh[1234] | sh[24]a | sh[24]a*eb | sh[23]e | sh[34]eb | shbe | sheb | shle | sh[1234]le | sh3ele \
9193 + | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
9194 + | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
9196 + | tahoe | thumb | tic4x | tic80 | tron \
9199 + | x86 | xscale | xscalee[bl] | xstormy16 | xtensa \
9201 + basic_machine=$basic_machine-unknown
9204 + basic_machine=$basic_machine-unknown
9206 + m6811 | m68hc11 | m6812 | m68hc12)
9207 + # Motorola 68HC11/12.
9208 + basic_machine=$basic_machine-unknown
9211 + m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
9214 + basic_machine=mt-unknown
9217 + # We use `pc' rather than `unknown'
9218 + # because (1) that's what they normally are, and
9219 + # (2) the word "unknown" tends to confuse beginning users.
9221 + basic_machine=$basic_machine-pc
9223 + # Object if more than one company name word.
9225 + echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
9228 + # Recognize the basic CPU types with company name.
9231 + | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
9232 + | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
9233 + | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
9234 + | arm-* | armbe-* | armle-* | armeb-* | armv*-* \
9236 + | bfin-* | bs2000-* \
9237 + | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
9238 + | clipper-* | craynv-* | cydra-* \
9239 + | d10v-* | d30v-* | dlx-* \
9241 + | f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \
9242 + | h8300-* | h8500-* \
9243 + | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
9244 + | i*86-* | i860-* | i960-* | ia64-* \
9245 + | ip2k-* | iq2000-* \
9246 + | m32r-* | m32rle-* \
9247 + | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
9248 + | m88110-* | m88k-* | maxq-* | mcore-* \
9249 + | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
9251 + | mips64-* | mips64el-* \
9252 + | mips64vr-* | mips64vrel-* \
9253 + | mips64orion-* | mips64orionel-* \
9254 + | mips64vr4100-* | mips64vr4100el-* \
9255 + | mips64vr4300-* | mips64vr4300el-* \
9256 + | mips64vr5000-* | mips64vr5000el-* \
9257 + | mips64vr5900-* | mips64vr5900el-* \
9258 + | mipsisa32-* | mipsisa32el-* \
9259 + | mipsisa32r2-* | mipsisa32r2el-* \
9260 + | mipsisa64-* | mipsisa64el-* \
9261 + | mipsisa64r2-* | mipsisa64r2el-* \
9262 + | mipsisa64sb1-* | mipsisa64sb1el-* \
9263 + | mipsisa64sr71k-* | mipsisa64sr71kel-* \
9264 + | mipstx39-* | mipstx39el-* \
9268 + | nios-* | nios2-* \
9269 + | none-* | np1-* | ns16k-* | ns32k-* \
9271 + | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
9272 + | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
9274 + | romp-* | rs6000-* \
9275 + | sh-* | sh[1234]-* | sh[24]a-* | sh[24]a*eb-* | sh[23]e-* | sh[34]eb-* | shbe-* | sheb-* \
9276 + | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
9277 + | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
9279 + | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \
9280 + | tahoe-* | thumb-* \
9281 + | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
9283 + | v850-* | v850e-* | vax-* \
9285 + | x86-* | x86_64-* | xps100-* | xscale-* | xscalee[bl]-* \
9286 + | xstormy16-* | xtensa-* \
9292 + # Recognize the various machine names and aliases which stand
9293 + # for a CPU type and a company and sometimes even an OS.
9295 + basic_machine=i386-unknown
9298 + 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)
9299 + basic_machine=m68000-att
9302 + basic_machine=we32k-att
9305 + basic_machine=a29k-amd
9309 + basic_machine=abacus-unknown
9312 + basic_machine=m68010-adobe
9316 + basic_machine=fx80-alliant
9318 + altos | altos3068)
9319 + basic_machine=m68k-altos
9322 + basic_machine=a29k-none
9326 + basic_machine=x86_64-pc
9329 + basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'`
9332 + basic_machine=580-amdahl
9336 + basic_machine=m68k-unknown
9338 + amigaos | amigados)
9339 + basic_machine=m68k-unknown
9343 + basic_machine=m68k-unknown
9347 + basic_machine=m68k-apollo
9351 + basic_machine=m68k-apollo
9355 + basic_machine=m68k-apple
9359 + basic_machine=ns32k-sequent
9363 + basic_machine=c90-cray
9367 + basic_machine=c1-convex
9371 + basic_machine=c2-convex
9375 + basic_machine=c32-convex
9379 + basic_machine=c34-convex
9383 + basic_machine=c38-convex
9387 + basic_machine=j90-cray
9391 + basic_machine=craynv-cray
9395 + basic_machine=cr16c-unknown
9399 + basic_machine=m68k-crds
9401 + crisv32 | crisv32-* | etraxfs*)
9402 + basic_machine=crisv32-axis
9404 + cris | cris-* | etrax*)
9405 + basic_machine=cris-axis
9408 + basic_machine=crx-unknown
9412 + basic_machine=m68k-da30
9414 + decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn)
9415 + basic_machine=mips-dec
9417 + decsystem10* | dec10*)
9418 + basic_machine=pdp10-dec
9421 + decsystem20* | dec20*)
9422 + basic_machine=pdp10-dec
9425 + delta | 3300 | motorola-3300 | motorola-delta \
9426 + | 3300-motorola | delta-motorola)
9427 + basic_machine=m68k-motorola
9430 + basic_machine=m88k-motorola
9434 + basic_machine=i586-pc
9438 + basic_machine=rs6000-bull
9441 + dpx2* | dpx2*-bull)
9442 + basic_machine=m68k-bull
9446 + basic_machine=a29k-amd
9450 + basic_machine=elxsi-elxsi
9453 + encore | umax | mmax)
9454 + basic_machine=ns32k-encore
9456 + es1800 | OSE68k | ose68k | ose | OSE)
9457 + basic_machine=m68k-ericsson
9461 + basic_machine=i860-alliant
9464 + basic_machine=ns32k-ns
9467 + basic_machine=tron-gmicro
9471 + basic_machine=i386-pc
9475 + basic_machine=hppa1.1-hitachi
9479 + basic_machine=h8300-hitachi
9483 + basic_machine=h8300-hitachi
9487 + basic_machine=h8500-hitachi
9491 + basic_machine=m88k-harris
9495 + basic_machine=m68k-hp
9498 + basic_machine=m68k-hp
9502 + basic_machine=m68k-hp
9505 + hp3k9[0-9][0-9] | hp9[0-9][0-9])
9506 + basic_machine=hppa1.0-hp
9508 + hp9k2[0-9][0-9] | hp9k31[0-9])
9509 + basic_machine=m68000-hp
9512 + basic_machine=m68k-hp
9514 + hp9k6[0-9][0-9] | hp6[0-9][0-9])
9515 + basic_machine=hppa1.0-hp
9517 + hp9k7[0-79][0-9] | hp7[0-79][0-9])
9518 + basic_machine=hppa1.1-hp
9520 + hp9k78[0-9] | hp78[0-9])
9521 + # FIXME: really hppa2.0-hp
9522 + basic_machine=hppa1.1-hp
9524 + hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893)
9525 + # FIXME: really hppa2.0-hp
9526 + basic_machine=hppa1.1-hp
9528 + hp9k8[0-9][13679] | hp8[0-9][13679])
9529 + basic_machine=hppa1.1-hp
9531 + hp9k8[0-9][0-9] | hp8[0-9][0-9])
9532 + basic_machine=hppa1.0-hp
9538 + basic_machine=hppa1.1-hp
9542 + basic_machine=hppa1.1-hp
9546 + basic_machine=i370-ibm
9548 +# I'm not sure what "Sysv32" means. Should this be sysv3.2?
9550 + basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
9554 + basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
9558 + basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
9562 + basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
9566 + basic_machine=i386-mach
9570 + basic_machine=i386-unknown
9574 + basic_machine=mips-sgi
9584 + basic_machine=m68k-isi
9588 + basic_machine=m88k-omron
9591 + basic_machine=mips-mips
9595 + basic_machine=ns32k-utek
9599 + basic_machine=i386-pc
9603 + basic_machine=m68000-convergent
9605 + *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*)
9606 + basic_machine=m68k-atari
9609 + mipsEE* | ee | ps2)
9610 + basic_machine=mips64r5900el-scei
9620 + basic_machine=mipsel-scei
9624 + basic_machine=dvp-scei
9628 + basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
9631 + basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
9634 + basic_machine=m68k-rom68k
9638 + basic_machine=powerpc-unknown
9642 + basic_machine=i386-pc
9646 + basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
9649 + basic_machine=i370-ibm
9653 + basic_machine=i486-ncr
9657 + basic_machine=i386-unknown
9661 + basic_machine=armv4l-rebel
9664 + news | news700 | news800 | news900)
9665 + basic_machine=m68k-sony
9669 + basic_machine=m68030-sony
9672 + news-3600 | risc-news)
9673 + basic_machine=mips-sony
9677 + basic_machine=v70-nec
9681 + basic_machine=m68k-next
9694 + basic_machine=m68k-harris
9698 + basic_machine=m88k-harris
9702 + basic_machine=i960-intel
9706 + basic_machine=i960-intel
9710 + basic_machine=mips-compaq
9714 + basic_machine=np1-gould
9717 + basic_machine=nsr-tandem
9719 + op50n-* | op60c-*)
9720 + basic_machine=hppa1.1-oki
9723 + openrisc | openrisc-*)
9724 + basic_machine=or32-unknown
9727 + basic_machine=powerpc-ibm
9730 + OSE68000 | ose68000)
9731 + basic_machine=m68000-ericsson
9735 + basic_machine=m68k-none
9739 + basic_machine=hppa1.1-hitachi
9743 + basic_machine=i860-intel
9747 + basic_machine=sparc-tti
9750 + basic_machine=m68k-tti
9753 + basic_machine=ns32k-pc532
9756 + basic_machine=i386-pc
9759 + basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'`
9761 + pentium | p5 | k5 | k6 | nexgen | viac3)
9762 + basic_machine=i586-pc
9764 + pentiumpro | p6 | 6x86 | athlon | athlon_*)
9765 + basic_machine=i686-pc
9767 + pentiumii | pentium2 | pentiumiii | pentium3)
9768 + basic_machine=i686-pc
9771 + basic_machine=i786-pc
9773 + pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
9774 + basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
9776 + pentiumpro-* | p6-* | 6x86-* | athlon-*)
9777 + basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
9779 + pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*)
9780 + basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
9783 + basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'`
9786 + basic_machine=pn-gould
9788 + power) basic_machine=power-ibm
9790 + ppc) basic_machine=powerpc-unknown
9792 + ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
9794 + ppcle | powerpclittle | ppc-le | powerpc-little)
9795 + basic_machine=powerpcle-unknown
9797 + ppcle-* | powerpclittle-*)
9798 + basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`
9800 + ppc64) basic_machine=powerpc64-unknown
9802 + ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'`
9804 + ppc64le | powerpc64little | ppc64-le | powerpc64-little)
9805 + basic_machine=powerpc64le-unknown
9807 + ppc64le-* | powerpc64little-*)
9808 + basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'`
9811 + basic_machine=i386-ibm
9814 + basic_machine=i586-unknown
9818 + basic_machine=i386-pc
9822 + basic_machine=m68k-rom68k
9826 + basic_machine=mips-siemens
9829 + basic_machine=romp-ibm
9832 + basic_machine=s390-ibm
9835 + basic_machine=s390x-ibm
9838 + basic_machine=a29k-amd
9842 + basic_machine=mipsisa64sb1-unknown
9845 + basic_machine=mipsisa64sb1el-unknown
9848 + basic_machine=mips-sei
9852 + basic_machine=i386-sequent
9855 + basic_machine=sh-hitachi
9859 + basic_machine=sh64-unknown
9861 + sparclite-wrs | simso-wrs)
9862 + basic_machine=sparclite-wrs
9866 + basic_machine=m68k-bull
9870 + basic_machine=spur-unknown
9873 + basic_machine=m68k-tandem
9876 + basic_machine=i860-stratus
9880 + basic_machine=m68000-sun
9883 + basic_machine=m68000-sun
9887 + basic_machine=m68000-sun
9891 + basic_machine=m68k-sun
9895 + basic_machine=m68k-sun
9899 + basic_machine=sparc-sun
9903 + basic_machine=sparc-sun
9907 + basic_machine=sparc-sun
9911 + basic_machine=m68k-sun
9914 + basic_machine=sparc-sun
9916 + sun386 | sun386i | roadrunner)
9917 + basic_machine=i386-sun
9920 + basic_machine=sv1-cray
9924 + basic_machine=i386-sequent
9928 + basic_machine=alphaev5-cray
9932 + basic_machine=t90-cray
9936 + basic_machine=tic54x-unknown
9940 + basic_machine=tic55x-unknown
9944 + basic_machine=tic6x-unknown
9948 + basic_machine=mipstx39-unknown
9951 + basic_machine=mipstx39el-unknown
9954 + basic_machine=pdp10-xkl
9958 + basic_machine=m68k-ncr
9961 + basic_machine=s390x-ibm
9965 + basic_machine=a29k-amd
9969 + basic_machine=a29k-nyu
9973 + basic_machine=v810-nec
9977 + basic_machine=vax-dec
9981 + basic_machine=vax-dec
9985 + basic_machine=f301-fujitsu
9988 + basic_machine=i960-wrs
9992 + basic_machine=m68k-wrs
9996 + basic_machine=a29k-wrs
10000 + basic_machine=w65-wdc
10004 + basic_machine=hppa1.1-winbond
10008 + basic_machine=i686-pc
10012 + basic_machine=xps100-honeywell
10015 + basic_machine=ymp-cray
10019 + basic_machine=z8k-unknown
10023 + basic_machine=none-none
10027 +# Here we handle the default manufacturer of certain CPU types. It is in
10028 +# some cases the only manufacturer, in others, it is the most popular.
10030 + basic_machine=hppa1.1-winbond
10033 + basic_machine=hppa1.1-oki
10036 + basic_machine=hppa1.1-oki
10039 + basic_machine=romp-ibm
10042 + basic_machine=mmix-knuth
10045 + basic_machine=rs6000-ibm
10048 + basic_machine=vax-dec
10051 + # there are many clones, so DEC is not a safe bet
10052 + basic_machine=pdp10-unknown
10055 + basic_machine=pdp11-dec
10058 + basic_machine=we32k-att
10060 + sh[1234] | sh[24]a | sh[34]eb | sh[1234]le | sh[23]ele)
10061 + basic_machine=sh-unknown
10063 + sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v)
10064 + basic_machine=sparc-sun
10067 + basic_machine=cydra-cydrome
10070 + basic_machine=orion-highlevel
10073 + basic_machine=clipper-highlevel
10075 + mac | mpw | mac-mpw)
10076 + basic_machine=m68k-apple
10079 + basic_machine=powerpc-apple
10082 + # Make sure to match an already-canonicalized machine name.
10085 + echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
10090 +# Here we canonicalize certain aliases for manufacturers.
10091 +case $basic_machine in
10093 + basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'`
10096 + basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'`
10102 +# Decode manufacturer-specific aliases for certain operating systems.
10104 +if [ x"$os" != x"" ]
10107 + # First match some system type aliases
10108 + # that might get confused with valid system types.
10109 + # -solaris* is a basic system type, with this one exception.
10110 + -solaris1 | -solaris1.*)
10111 + os=`echo $os | sed -e 's|solaris1|sunos4|'`
10123 + os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'`
10125 + # First accept the basic system types.
10126 + # The portable systems comes first.
10127 + # Each alternative MUST END IN A *, to match a version number.
10128 + # -sysv* is not here because it comes later, after sysvr4.
10129 + -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
10130 + | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\
10131 + | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
10132 + | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
10134 + | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
10135 + | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
10136 + | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
10137 + | -openbsd* | -solidbsd* \
10138 + | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
10139 + | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
10140 + | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
10141 + | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
10142 + | -chorusos* | -chorusrdb* \
10143 + | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
10144 + | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \
10145 + | -uxpv* | -beos* | -mpeix* | -udk* \
10146 + | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
10147 + | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
10148 + | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
10149 + | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
10150 + | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
10151 + | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
10152 + | -skyos* | -haiku* | -rdos* | -irx*)
10153 + # Remember, each alternative MUST END IN *, to match a version number.
10156 + case $basic_machine in
10167 + os=`echo $os | sed -e 's|nto|nto-qnx|'`
10169 + -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
10170 + | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \
10171 + | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
10174 + os=`echo $os | sed -e 's|mac|macos|'`
10177 + os=-linux-dietlibc
10180 + os=`echo $os | sed -e 's|linux|linux-gnu|'`
10183 + os=`echo $os | sed -e 's|sunos5|solaris2|'`
10186 + os=`echo $os | sed -e 's|sunos6|solaris3|'`
10233 + # Preserve the version number of sinix5.
10235 + os=`echo $os | sed -e 's|sinix|sysv|'`
10258 + # This must come after -sysvr4.
10270 + -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
10285 + # Get rid of the `-' at the beginning of $os.
10286 + os=`echo $os | sed 's/[^-]*-//'`
10287 + echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2
10293 +# Here we handle the default operating systems that come with various machines.
10294 +# The value should be what the vendor currently ships out the door with their
10295 +# machine or put another way, the most popular os provided with the machine.
10297 +# Note that if you're going to try to match "-MANUFACTURER" here (say,
10298 +# "-sun"), then you have to tell the case statement up towards the top
10299 +# that MANUFACTURER isn't an operating system. Otherwise, code above
10300 +# will signal an error saying that MANUFACTURER isn't an operating
10301 +# system, and we'll never get to this point.
10303 +case $basic_machine in
10316 + # This must come before the *-dec entry.
10334 + # This also exists in the configure program, but was not the
10350 + *-tti) # must be before sparc entry or we get the wrong os.
10383 + i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent)
10437 + f30[01]-fujitsu | f700-fujitsu)
10458 +# Here we handle the case where we know the os, and the CPU type, but not the
10459 +# manufacturer. We pick the logical manufacturer.
10461 +case $basic_machine in
10497 + -mvs* | -opened*)
10509 + -vxsim* | -vxworks* | -windiss*)
10521 + -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
10528 + basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"`
10532 +echo $basic_machine$os
10535 +# Local variables:
10536 +# eval: (add-hook 'write-file-hooks 'time-stamp)
10537 +# time-stamp-start: "timestamp='"
10538 +# time-stamp-format: "%:y-%02m-%02d"
10539 +# time-stamp-end: "'"
10541 diff -urN lua-5.1.4/configure lua-5.1.4-autotoolize/configure
10542 --- lua-5.1.4/configure 1970-01-01 01:00:00.000000000 +0100
10543 +++ lua-5.1.4-autotoolize/configure 2008-09-03 13:18:28.000000000 +0200
10544 @@ -0,0 +1,20444 @@
10546 +# Guess values for system-dependent variables and create Makefiles.
10547 +# Generated by GNU Autoconf 2.59 for Autotoolized Lua 5.1.3.
10549 +# Copyright (C) 2003 Free Software Foundation, Inc.
10550 +# This configure script is free software; the Free Software Foundation
10551 +# gives unlimited permission to copy, distribute and modify it.
10552 +## --------------------- ##
10553 +## M4sh Initialization. ##
10554 +## --------------------- ##
10556 +# Be Bourne compatible
10557 +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10560 + # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
10561 + # is contrary to our usage. Disable this feature.
10562 + alias -g '${1+"$@"}'='"$@"'
10563 +elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
10566 +DUALCASE=1; export DUALCASE # for MKS sh
10568 +# Support unset when possible.
10569 +if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10576 +# Work around bugs in pre-3.0 UWIN ksh.
10577 +$as_unset ENV MAIL MAILPATH
10584 + LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
10585 + LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
10586 + LC_TELEPHONE LC_TIME
10588 + if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
10589 + eval $as_var=C; export $as_var
10591 + $as_unset $as_var
10595 +# Required to use basename.
10596 +if expr a : '\(a\)' >/dev/null 2>&1; then
10602 +if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
10603 + as_basename=basename
10605 + as_basename=false
10609 +# Name of the executable.
10610 +as_me=`$as_basename "$0" ||
10611 +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10612 + X"$0" : 'X\(//\)$' \| \
10613 + X"$0" : 'X\(/\)$' \| \
10614 + . : '\(.\)' 2>/dev/null ||
10616 + sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
10617 + /^X\/\(\/\/\)$/{ s//\1/; q; }
10618 + /^X\/\(\/\).*/{ s//\1/; q; }
10622 +# PATH needs CR, and LINENO needs CR and PATH.
10623 +# Avoid depending upon Character Ranges.
10624 +as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10625 +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10626 +as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10627 +as_cr_digits='0123456789'
10628 +as_cr_alnum=$as_cr_Letters$as_cr_digits
10630 +# The user is always right.
10631 +if test "${PATH_SEPARATOR+set}" != set; then
10632 + echo "#! /bin/sh" >conf$$.sh
10633 + echo "exit 0" >>conf$$.sh
10634 + chmod +x conf$$.sh
10635 + if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10636 + PATH_SEPARATOR=';'
10644 + as_lineno_1=$LINENO
10645 + as_lineno_2=$LINENO
10646 + as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10647 + test "x$as_lineno_1" != "x$as_lineno_2" &&
10648 + test "x$as_lineno_3" = "x$as_lineno_2" || {
10649 + # Find who we are. Look in the path if we contain no path at all
10650 + # relative or not.
10652 + *[\\/]* ) as_myself=$0 ;;
10653 + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10654 +for as_dir in $PATH
10657 + test -z "$as_dir" && as_dir=.
10658 + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10663 + # We did not find ourselves, most probably we were run as `sh COMMAND'
10664 + # in which case we are not to be found in the path.
10665 + if test "x$as_myself" = x; then
10668 + if test ! -f "$as_myself"; then
10669 + { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
10670 + { (exit 1); exit 1; }; }
10672 + case $CONFIG_SHELL in
10674 + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10675 +for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
10678 + test -z "$as_dir" && as_dir=.
10679 + for as_base in sh bash ksh sh5; do
10682 + if ("$as_dir/$as_base" -c '
10683 + as_lineno_1=$LINENO
10684 + as_lineno_2=$LINENO
10685 + as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10686 + test "x$as_lineno_1" != "x$as_lineno_2" &&
10687 + test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
10688 + $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
10689 + $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
10690 + CONFIG_SHELL=$as_dir/$as_base
10691 + export CONFIG_SHELL
10692 + exec "$CONFIG_SHELL" "$0" ${1+"$@"}
10700 + # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
10701 + # uniformly replaced by the line number. The first 'sed' inserts a
10702 + # line-number line before each line; the second 'sed' does the real
10703 + # work. The second script uses 'N' to pair each line-number line
10704 + # with the numbered line, and appends trailing '-' during
10705 + # substitution so that $LINENO is not a special case at line end.
10706 + # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
10707 + # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
10708 + sed '=' <$as_myself |
10713 + s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
10716 + s,^['$as_cr_digits']*\n,,
10717 + ' >$as_me.lineno &&
10718 + chmod +x $as_me.lineno ||
10719 + { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
10720 + { (exit 1); exit 1; }; }
10722 + # Don't try to exec as it changes $[0], causing all sort of problems
10723 + # (the dirname of $[0] is not the place where we might find the
10724 + # original and so on. Autoconf is especially sensible to this).
10725 + . ./$as_me.lineno
10726 + # Exit status is that of the last command.
10731 +case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
10732 + *c*,-n*) ECHO_N= ECHO_C='
10734 + *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
10735 + *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
10738 +if expr a : '\(a\)' >/dev/null 2>&1; then
10744 +rm -f conf$$ conf$$.exe conf$$.file
10746 +if ln -s conf$$.file conf$$ 2>/dev/null; then
10747 + # We could just check for DJGPP; but this test a) works b) is more generic
10748 + # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
10749 + if test -f conf$$.exe; then
10750 + # Don't use ln at all; we don't have any links
10755 +elif ln conf$$.file conf$$ 2>/dev/null; then
10760 +rm -f conf$$ conf$$.exe conf$$.file
10762 +if mkdir -p . 2>/dev/null; then
10765 + test -d ./-p && rmdir ./-p
10769 +as_executable_p="test -f"
10771 +# Sed expression to map a string onto a valid CPP name.
10772 +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10774 +# Sed expression to map a string onto a valid variable name.
10775 +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10779 +# We need space, tab and new line, in precisely that order.
10789 +# Check that we are running under the correct shell.
10790 +SHELL=${CONFIG_SHELL-/bin/sh}
10793 +X*--fallback-echo)
10794 + # Remove one level of quotation (which was required for Make).
10795 + ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
10800 +if test "X$1" = X--no-reexec; then
10801 + # Discard the --no-reexec flag, and continue.
10803 +elif test "X$1" = X--fallback-echo; then
10804 + # Avoid inline document here, it may be left over
10806 +elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
10807 + # Yippee, $echo works!
10810 + # Restart under the correct shell.
10811 + exec $SHELL "$0" --no-reexec ${1+"$@"}
10814 +if test "X$1" = X--fallback-echo; then
10815 + # used as fallback echo
10823 +# The HP-UX ksh and POSIX shell print the target directory to stdout
10824 +# if CDPATH is set.
10825 +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10827 +if test -z "$ECHO"; then
10828 +if test "X${echo_test_string+set}" != Xset; then
10829 +# find a string as large as possible, as long as the shell can cope with it
10830 + for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
10831 + # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
10832 + if (echo_test_string=`eval $cmd`) 2>/dev/null &&
10833 + echo_test_string=`eval $cmd` &&
10834 + (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
10841 +if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
10842 + echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
10843 + test "X$echo_testing_string" = "X$echo_test_string"; then
10846 + # The Solaris, AIX, and Digital Unix default echo programs unquote
10847 + # backslashes. This makes it impossible to quote backslashes using
10848 + # echo "$something" | sed 's/\\/\\\\/g'
10850 + # So, first we look for a working echo in the user's PATH.
10852 + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10853 + for dir in $PATH /usr/ucb; do
10854 + IFS="$lt_save_ifs"
10855 + if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
10856 + test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
10857 + echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
10858 + test "X$echo_testing_string" = "X$echo_test_string"; then
10863 + IFS="$lt_save_ifs"
10865 + if test "X$echo" = Xecho; then
10866 + # We didn't find a better echo, so look for alternatives.
10867 + if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
10868 + echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
10869 + test "X$echo_testing_string" = "X$echo_test_string"; then
10870 + # This shell has a builtin print -r that does the trick.
10872 + elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
10873 + test "X$CONFIG_SHELL" != X/bin/ksh; then
10874 + # If we have ksh, try running configure again with it.
10875 + ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
10876 + export ORIGINAL_CONFIG_SHELL
10877 + CONFIG_SHELL=/bin/ksh
10878 + export CONFIG_SHELL
10879 + exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
10881 + # Try using printf.
10882 + echo='printf %s\n'
10883 + if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
10884 + echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
10885 + test "X$echo_testing_string" = "X$echo_test_string"; then
10886 + # Cool, printf works
10888 + elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
10889 + test "X$echo_testing_string" = 'X\t' &&
10890 + echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
10891 + test "X$echo_testing_string" = "X$echo_test_string"; then
10892 + CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
10893 + export CONFIG_SHELL
10894 + SHELL="$CONFIG_SHELL"
10896 + echo="$CONFIG_SHELL $0 --fallback-echo"
10897 + elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
10898 + test "X$echo_testing_string" = 'X\t' &&
10899 + echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
10900 + test "X$echo_testing_string" = "X$echo_test_string"; then
10901 + echo="$CONFIG_SHELL $0 --fallback-echo"
10903 + # maybe with a smaller string...
10906 + for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
10907 + if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
10914 + if test "$prev" != 'sed 50q "$0"'; then
10915 + echo_test_string=`eval $prev`
10916 + export echo_test_string
10917 + exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
10919 + # Oops. We lost completely, so just stick with echo.
10928 +# Copy echo and quote the copy suitably for passing to libtool from
10929 +# the Makefile, instead of quoting the original, which is used later.
10931 +if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
10932 + ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
10938 +tagnames=${tagnames+${tagnames},}CXX
10940 +tagnames=${tagnames+${tagnames},}F77
10942 +# Name of the host.
10943 +# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
10944 +# so uname gets run too.
10945 +ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
10950 +# Initializations.
10952 +ac_default_prefix=/usr/local
10953 +ac_config_libobj_dir=.
10954 +cross_compiling=no
10958 +SHELL=${CONFIG_SHELL-/bin/sh}
10960 +# Maximum number of lines to put in a shell here document.
10961 +# This variable seems obsolete. It should probably be removed, and
10962 +# only ac_max_sed_lines should be used.
10963 +: ${ac_max_here_lines=38}
10965 +# Identity of this package.
10966 +PACKAGE_NAME='Autotoolized Lua'
10967 +PACKAGE_TARNAME='lua-at'
10968 +PACKAGE_VERSION='5.1.3'
10969 +PACKAGE_STRING='Autotoolized Lua 5.1.3'
10970 +PACKAGE_BUGREPORT=''
10972 +ac_unique_file="src/lapi.c"
10973 +# Factoring default headers for most tests.
10974 +ac_includes_default="\
10975 +#include <stdio.h>
10976 +#if HAVE_SYS_TYPES_H
10977 +# include <sys/types.h>
10979 +#if HAVE_SYS_STAT_H
10980 +# include <sys/stat.h>
10983 +# include <stdlib.h>
10984 +# include <stddef.h>
10986 +# if HAVE_STDLIB_H
10987 +# include <stdlib.h>
10991 +# if !STDC_HEADERS && HAVE_MEMORY_H
10992 +# include <memory.h>
10994 +# include <string.h>
10996 +#if HAVE_STRINGS_H
10997 +# include <strings.h>
10999 +#if HAVE_INTTYPES_H
11000 +# include <inttypes.h>
11002 +# if HAVE_STDINT_H
11003 +# include <stdint.h>
11007 +# include <unistd.h>
11010 +ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE build build_cpu build_vendor build_os host host_cpu host_vendor host_os EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL READLINE_DEFS POSIX_DEFS LUA_DL_DEFS LUA_BUILD_AS_DLL_DEFS LUA_LIBS LIBOBJS LTLIBOBJS'
11013 +# Initialize some variables set by options.
11015 +ac_init_version=false
11016 +# The variables have the same names as the options, with
11017 +# dashes changed to underlines.
11018 +cache_file=/dev/null
11023 +program_prefix=NONE
11024 +program_suffix=NONE
11025 +program_transform_name=s,x,x,
11033 +# Installation directory options.
11034 +# These are left unexpanded so users can "make install exec_prefix=/foo"
11035 +# and all the variables that are supposed to be based on exec_prefix
11036 +# by default will actually change.
11037 +# Use braces instead of parens because sh, perl, etc. also accept them.
11038 +bindir='${exec_prefix}/bin'
11039 +sbindir='${exec_prefix}/sbin'
11040 +libexecdir='${exec_prefix}/libexec'
11041 +datadir='${prefix}/share'
11042 +sysconfdir='${prefix}/etc'
11043 +sharedstatedir='${prefix}/com'
11044 +localstatedir='${prefix}/var'
11045 +libdir='${exec_prefix}/lib'
11046 +includedir='${prefix}/include'
11047 +oldincludedir='/usr/include'
11048 +infodir='${prefix}/info'
11049 +mandir='${prefix}/man'
11054 + # If the previous option needs an argument, assign it.
11055 + if test -n "$ac_prev"; then
11056 + eval "$ac_prev=\$ac_option"
11061 + ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
11063 + # Accept the important Cygnus configure options, so we can diagnose typos.
11065 + case $ac_option in
11067 + -bindir | --bindir | --bindi | --bind | --bin | --bi)
11068 + ac_prev=bindir ;;
11069 + -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
11070 + bindir=$ac_optarg ;;
11072 + -build | --build | --buil | --bui | --bu)
11073 + ac_prev=build_alias ;;
11074 + -build=* | --build=* | --buil=* | --bui=* | --bu=*)
11075 + build_alias=$ac_optarg ;;
11077 + -cache-file | --cache-file | --cache-fil | --cache-fi \
11078 + | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
11079 + ac_prev=cache_file ;;
11080 + -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
11081 + | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
11082 + cache_file=$ac_optarg ;;
11084 + --config-cache | -C)
11085 + cache_file=config.cache ;;
11087 + -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
11088 + ac_prev=datadir ;;
11089 + -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
11091 + datadir=$ac_optarg ;;
11093 + -disable-* | --disable-*)
11094 + ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
11095 + # Reject names that are not valid shell variable names.
11096 + expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
11097 + { echo "$as_me: error: invalid feature name: $ac_feature" >&2
11098 + { (exit 1); exit 1; }; }
11099 + ac_feature=`echo $ac_feature | sed 's/-/_/g'`
11100 + eval "enable_$ac_feature=no" ;;
11102 + -enable-* | --enable-*)
11103 + ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
11104 + # Reject names that are not valid shell variable names.
11105 + expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
11106 + { echo "$as_me: error: invalid feature name: $ac_feature" >&2
11107 + { (exit 1); exit 1; }; }
11108 + ac_feature=`echo $ac_feature | sed 's/-/_/g'`
11109 + case $ac_option in
11110 + *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
11111 + *) ac_optarg=yes ;;
11113 + eval "enable_$ac_feature='$ac_optarg'" ;;
11115 + -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
11116 + | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
11117 + | --exec | --exe | --ex)
11118 + ac_prev=exec_prefix ;;
11119 + -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
11120 + | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
11121 + | --exec=* | --exe=* | --ex=*)
11122 + exec_prefix=$ac_optarg ;;
11124 + -gas | --gas | --ga | --g)
11125 + # Obsolete; use --with-gas.
11128 + -help | --help | --hel | --he | -h)
11129 + ac_init_help=long ;;
11130 + -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
11131 + ac_init_help=recursive ;;
11132 + -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
11133 + ac_init_help=short ;;
11135 + -host | --host | --hos | --ho)
11136 + ac_prev=host_alias ;;
11137 + -host=* | --host=* | --hos=* | --ho=*)
11138 + host_alias=$ac_optarg ;;
11140 + -includedir | --includedir | --includedi | --included | --include \
11141 + | --includ | --inclu | --incl | --inc)
11142 + ac_prev=includedir ;;
11143 + -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
11144 + | --includ=* | --inclu=* | --incl=* | --inc=*)
11145 + includedir=$ac_optarg ;;
11147 + -infodir | --infodir | --infodi | --infod | --info | --inf)
11148 + ac_prev=infodir ;;
11149 + -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
11150 + infodir=$ac_optarg ;;
11152 + -libdir | --libdir | --libdi | --libd)
11153 + ac_prev=libdir ;;
11154 + -libdir=* | --libdir=* | --libdi=* | --libd=*)
11155 + libdir=$ac_optarg ;;
11157 + -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
11158 + | --libexe | --libex | --libe)
11159 + ac_prev=libexecdir ;;
11160 + -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
11161 + | --libexe=* | --libex=* | --libe=*)
11162 + libexecdir=$ac_optarg ;;
11164 + -localstatedir | --localstatedir | --localstatedi | --localstated \
11165 + | --localstate | --localstat | --localsta | --localst \
11166 + | --locals | --local | --loca | --loc | --lo)
11167 + ac_prev=localstatedir ;;
11168 + -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
11169 + | --localstate=* | --localstat=* | --localsta=* | --localst=* \
11170 + | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
11171 + localstatedir=$ac_optarg ;;
11173 + -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
11174 + ac_prev=mandir ;;
11175 + -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
11176 + mandir=$ac_optarg ;;
11178 + -nfp | --nfp | --nf)
11179 + # Obsolete; use --without-fp.
11182 + -no-create | --no-create | --no-creat | --no-crea | --no-cre \
11183 + | --no-cr | --no-c | -n)
11186 + -no-recursion | --no-recursion | --no-recursio | --no-recursi \
11187 + | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
11188 + no_recursion=yes ;;
11190 + -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
11191 + | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
11192 + | --oldin | --oldi | --old | --ol | --o)
11193 + ac_prev=oldincludedir ;;
11194 + -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
11195 + | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
11196 + | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
11197 + oldincludedir=$ac_optarg ;;
11199 + -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
11200 + ac_prev=prefix ;;
11201 + -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
11202 + prefix=$ac_optarg ;;
11204 + -program-prefix | --program-prefix | --program-prefi | --program-pref \
11205 + | --program-pre | --program-pr | --program-p)
11206 + ac_prev=program_prefix ;;
11207 + -program-prefix=* | --program-prefix=* | --program-prefi=* \
11208 + | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
11209 + program_prefix=$ac_optarg ;;
11211 + -program-suffix | --program-suffix | --program-suffi | --program-suff \
11212 + | --program-suf | --program-su | --program-s)
11213 + ac_prev=program_suffix ;;
11214 + -program-suffix=* | --program-suffix=* | --program-suffi=* \
11215 + | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
11216 + program_suffix=$ac_optarg ;;
11218 + -program-transform-name | --program-transform-name \
11219 + | --program-transform-nam | --program-transform-na \
11220 + | --program-transform-n | --program-transform- \
11221 + | --program-transform | --program-transfor \
11222 + | --program-transfo | --program-transf \
11223 + | --program-trans | --program-tran \
11224 + | --progr-tra | --program-tr | --program-t)
11225 + ac_prev=program_transform_name ;;
11226 + -program-transform-name=* | --program-transform-name=* \
11227 + | --program-transform-nam=* | --program-transform-na=* \
11228 + | --program-transform-n=* | --program-transform-=* \
11229 + | --program-transform=* | --program-transfor=* \
11230 + | --program-transfo=* | --program-transf=* \
11231 + | --program-trans=* | --program-tran=* \
11232 + | --progr-tra=* | --program-tr=* | --program-t=*)
11233 + program_transform_name=$ac_optarg ;;
11235 + -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11236 + | -silent | --silent | --silen | --sile | --sil)
11239 + -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
11240 + ac_prev=sbindir ;;
11241 + -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
11242 + | --sbi=* | --sb=*)
11243 + sbindir=$ac_optarg ;;
11245 + -sharedstatedir | --sharedstatedir | --sharedstatedi \
11246 + | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
11247 + | --sharedst | --shareds | --shared | --share | --shar \
11249 + ac_prev=sharedstatedir ;;
11250 + -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
11251 + | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
11252 + | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
11253 + | --sha=* | --sh=*)
11254 + sharedstatedir=$ac_optarg ;;
11256 + -site | --site | --sit)
11258 + -site=* | --site=* | --sit=*)
11259 + site=$ac_optarg ;;
11261 + -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
11262 + ac_prev=srcdir ;;
11263 + -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
11264 + srcdir=$ac_optarg ;;
11266 + -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
11267 + | --syscon | --sysco | --sysc | --sys | --sy)
11268 + ac_prev=sysconfdir ;;
11269 + -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
11270 + | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
11271 + sysconfdir=$ac_optarg ;;
11273 + -target | --target | --targe | --targ | --tar | --ta | --t)
11274 + ac_prev=target_alias ;;
11275 + -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
11276 + target_alias=$ac_optarg ;;
11278 + -v | -verbose | --verbose | --verbos | --verbo | --verb)
11281 + -version | --version | --versio | --versi | --vers | -V)
11282 + ac_init_version=: ;;
11284 + -with-* | --with-*)
11285 + ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
11286 + # Reject names that are not valid shell variable names.
11287 + expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
11288 + { echo "$as_me: error: invalid package name: $ac_package" >&2
11289 + { (exit 1); exit 1; }; }
11290 + ac_package=`echo $ac_package| sed 's/-/_/g'`
11291 + case $ac_option in
11292 + *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
11293 + *) ac_optarg=yes ;;
11295 + eval "with_$ac_package='$ac_optarg'" ;;
11297 + -without-* | --without-*)
11298 + ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
11299 + # Reject names that are not valid shell variable names.
11300 + expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
11301 + { echo "$as_me: error: invalid package name: $ac_package" >&2
11302 + { (exit 1); exit 1; }; }
11303 + ac_package=`echo $ac_package | sed 's/-/_/g'`
11304 + eval "with_$ac_package=no" ;;
11307 + # Obsolete; use --with-x.
11310 + -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
11311 + | --x-incl | --x-inc | --x-in | --x-i)
11312 + ac_prev=x_includes ;;
11313 + -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
11314 + | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
11315 + x_includes=$ac_optarg ;;
11317 + -x-libraries | --x-libraries | --x-librarie | --x-librari \
11318 + | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
11319 + ac_prev=x_libraries ;;
11320 + -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
11321 + | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
11322 + x_libraries=$ac_optarg ;;
11324 + -*) { echo "$as_me: error: unrecognized option: $ac_option
11325 +Try \`$0 --help' for more information." >&2
11326 + { (exit 1); exit 1; }; }
11330 + ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
11331 + # Reject names that are not valid shell variable names.
11332 + expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
11333 + { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
11334 + { (exit 1); exit 1; }; }
11335 + ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
11336 + eval "$ac_envvar='$ac_optarg'"
11337 + export $ac_envvar ;;
11340 + # FIXME: should be removed in autoconf 3.0.
11341 + echo "$as_me: WARNING: you should use --build, --host, --target" >&2
11342 + expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
11343 + echo "$as_me: WARNING: invalid host type: $ac_option" >&2
11344 + : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
11350 +if test -n "$ac_prev"; then
11351 + ac_option=--`echo $ac_prev | sed 's/_/-/g'`
11352 + { echo "$as_me: error: missing argument to $ac_option" >&2
11353 + { (exit 1); exit 1; }; }
11356 +# Be sure to have absolute paths.
11357 +for ac_var in exec_prefix prefix
11359 + eval ac_val=$`echo $ac_var`
11361 + [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
11362 + *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
11363 + { (exit 1); exit 1; }; };;
11367 +# Be sure to have absolute paths.
11368 +for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
11369 + localstatedir libdir includedir oldincludedir infodir mandir
11371 + eval ac_val=$`echo $ac_var`
11373 + [\\/$]* | ?:[\\/]* ) ;;
11374 + *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
11375 + { (exit 1); exit 1; }; };;
11379 +# There might be people who depend on the old broken behavior: `$host'
11380 +# used to hold the argument of --host etc.
11381 +# FIXME: To remove some day.
11382 +build=$build_alias
11384 +target=$target_alias
11386 +# FIXME: To remove some day.
11387 +if test "x$host_alias" != x; then
11388 + if test "x$build_alias" = x; then
11389 + cross_compiling=maybe
11390 + echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
11391 + If a cross compiler is detected then cross compile mode will be used." >&2
11392 + elif test "x$build_alias" != "x$host_alias"; then
11393 + cross_compiling=yes
11398 +test -n "$host_alias" && ac_tool_prefix=$host_alias-
11400 +test "$silent" = yes && exec 6>/dev/null
11403 +# Find the source files, if location was not specified.
11404 +if test -z "$srcdir"; then
11405 + ac_srcdir_defaulted=yes
11406 + # Try the directory containing this script, then its parent.
11407 + ac_confdir=`(dirname "$0") 2>/dev/null ||
11408 +$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11409 + X"$0" : 'X\(//\)[^/]' \| \
11410 + X"$0" : 'X\(//\)$' \| \
11411 + X"$0" : 'X\(/\)' \| \
11412 + . : '\(.\)' 2>/dev/null ||
11414 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11415 + /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11416 + /^X\(\/\/\)$/{ s//\1/; q; }
11417 + /^X\(\/\).*/{ s//\1/; q; }
11419 + srcdir=$ac_confdir
11420 + if test ! -r "$srcdir/$ac_unique_file"; then
11424 + ac_srcdir_defaulted=no
11426 +if test ! -r "$srcdir/$ac_unique_file"; then
11427 + if test "$ac_srcdir_defaulted" = yes; then
11428 + { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
11429 + { (exit 1); exit 1; }; }
11431 + { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
11432 + { (exit 1); exit 1; }; }
11435 +(cd $srcdir && test -r "./$ac_unique_file") 2>/dev/null ||
11436 + { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
11437 + { (exit 1); exit 1; }; }
11438 +srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
11439 +ac_env_build_alias_set=${build_alias+set}
11440 +ac_env_build_alias_value=$build_alias
11441 +ac_cv_env_build_alias_set=${build_alias+set}
11442 +ac_cv_env_build_alias_value=$build_alias
11443 +ac_env_host_alias_set=${host_alias+set}
11444 +ac_env_host_alias_value=$host_alias
11445 +ac_cv_env_host_alias_set=${host_alias+set}
11446 +ac_cv_env_host_alias_value=$host_alias
11447 +ac_env_target_alias_set=${target_alias+set}
11448 +ac_env_target_alias_value=$target_alias
11449 +ac_cv_env_target_alias_set=${target_alias+set}
11450 +ac_cv_env_target_alias_value=$target_alias
11451 +ac_env_CC_set=${CC+set}
11452 +ac_env_CC_value=$CC
11453 +ac_cv_env_CC_set=${CC+set}
11454 +ac_cv_env_CC_value=$CC
11455 +ac_env_CFLAGS_set=${CFLAGS+set}
11456 +ac_env_CFLAGS_value=$CFLAGS
11457 +ac_cv_env_CFLAGS_set=${CFLAGS+set}
11458 +ac_cv_env_CFLAGS_value=$CFLAGS
11459 +ac_env_LDFLAGS_set=${LDFLAGS+set}
11460 +ac_env_LDFLAGS_value=$LDFLAGS
11461 +ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
11462 +ac_cv_env_LDFLAGS_value=$LDFLAGS
11463 +ac_env_CPPFLAGS_set=${CPPFLAGS+set}
11464 +ac_env_CPPFLAGS_value=$CPPFLAGS
11465 +ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
11466 +ac_cv_env_CPPFLAGS_value=$CPPFLAGS
11467 +ac_env_CPP_set=${CPP+set}
11468 +ac_env_CPP_value=$CPP
11469 +ac_cv_env_CPP_set=${CPP+set}
11470 +ac_cv_env_CPP_value=$CPP
11471 +ac_env_CXX_set=${CXX+set}
11472 +ac_env_CXX_value=$CXX
11473 +ac_cv_env_CXX_set=${CXX+set}
11474 +ac_cv_env_CXX_value=$CXX
11475 +ac_env_CXXFLAGS_set=${CXXFLAGS+set}
11476 +ac_env_CXXFLAGS_value=$CXXFLAGS
11477 +ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
11478 +ac_cv_env_CXXFLAGS_value=$CXXFLAGS
11479 +ac_env_CXXCPP_set=${CXXCPP+set}
11480 +ac_env_CXXCPP_value=$CXXCPP
11481 +ac_cv_env_CXXCPP_set=${CXXCPP+set}
11482 +ac_cv_env_CXXCPP_value=$CXXCPP
11483 +ac_env_F77_set=${F77+set}
11484 +ac_env_F77_value=$F77
11485 +ac_cv_env_F77_set=${F77+set}
11486 +ac_cv_env_F77_value=$F77
11487 +ac_env_FFLAGS_set=${FFLAGS+set}
11488 +ac_env_FFLAGS_value=$FFLAGS
11489 +ac_cv_env_FFLAGS_set=${FFLAGS+set}
11490 +ac_cv_env_FFLAGS_value=$FFLAGS
11493 +# Report the --help message.
11495 +if test "$ac_init_help" = "long"; then
11496 + # Omit some internal or obsolete options to make the list less imposing.
11497 + # This message is too long to be a string in the A/UX 3.1 sh.
11499 +\`configure' configures Autotoolized Lua 5.1.3 to adapt to many kinds of systems.
11501 +Usage: $0 [OPTION]... [VAR=VALUE]...
11503 +To assign environment variables (e.g., CC, CFLAGS...), specify them as
11504 +VAR=VALUE. See below for descriptions of some of the useful variables.
11506 +Defaults for the options are specified in brackets.
11509 + -h, --help display this help and exit
11510 + --help=short display options specific to this package
11511 + --help=recursive display the short help of all the included packages
11512 + -V, --version display version information and exit
11513 + -q, --quiet, --silent do not print \`checking...' messages
11514 + --cache-file=FILE cache test results in FILE [disabled]
11515 + -C, --config-cache alias for \`--cache-file=config.cache'
11516 + -n, --no-create do not create output files
11517 + --srcdir=DIR find the sources in DIR [configure dir or \`..']
11522 +Installation directories:
11523 + --prefix=PREFIX install architecture-independent files in PREFIX
11524 + [$ac_default_prefix]
11525 + --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
11528 +By default, \`make install' will install all the files in
11529 +\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
11530 +an installation prefix other than \`$ac_default_prefix' using \`--prefix',
11531 +for instance \`--prefix=\$HOME'.
11533 +For better control, use the options below.
11535 +Fine tuning of the installation directories:
11536 + --bindir=DIR user executables [EPREFIX/bin]
11537 + --sbindir=DIR system admin executables [EPREFIX/sbin]
11538 + --libexecdir=DIR program executables [EPREFIX/libexec]
11539 + --datadir=DIR read-only architecture-independent data [PREFIX/share]
11540 + --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
11541 + --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
11542 + --localstatedir=DIR modifiable single-machine data [PREFIX/var]
11543 + --libdir=DIR object code libraries [EPREFIX/lib]
11544 + --includedir=DIR C header files [PREFIX/include]
11545 + --oldincludedir=DIR C header files for non-gcc [/usr/include]
11546 + --infodir=DIR info documentation [PREFIX/info]
11547 + --mandir=DIR man documentation [PREFIX/man]
11553 + --program-prefix=PREFIX prepend PREFIX to installed program names
11554 + --program-suffix=SUFFIX append SUFFIX to installed program names
11555 + --program-transform-name=PROGRAM run sed PROGRAM on installed program names
11558 + --build=BUILD configure for building on BUILD [guessed]
11559 + --host=HOST cross-compile to build programs to run on HOST [BUILD]
11563 +if test -n "$ac_init_help"; then
11564 + case $ac_init_help in
11565 + short | recursive ) echo "Configuration of Autotoolized Lua 5.1.3:";;
11569 +Optional Features:
11570 + --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
11571 + --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
11572 + --disable-dependency-tracking speeds up one-time build
11573 + --enable-dependency-tracking do not reject slow dependency extractors
11574 + --enable-shared[=PKGS]
11575 + build shared libraries [default=yes]
11576 + --enable-static[=PKGS]
11577 + build static libraries [default=yes]
11578 + --enable-fast-install[=PKGS]
11579 + optimize for fast installation [default=yes]
11580 + --disable-libtool-lock avoid locking (might break parallel builds)
11582 +Optional Packages:
11583 + --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
11584 + --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
11585 + --with-gnu-ld assume the C compiler uses GNU ld [default=no]
11586 + --with-pic try to use only PIC/non-PIC objects [default=use
11588 + --with-tags[=TAGS]
11589 + include additional configurations [automatic]
11590 + --with-readline Use readline for interpreter input [default=yes]
11592 +Some influential environment variables:
11593 + CC C compiler command
11594 + CFLAGS C compiler flags
11595 + LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
11596 + nonstandard directory <lib dir>
11597 + CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
11598 + headers in a nonstandard directory <include dir>
11599 + CPP C preprocessor
11600 + CXX C++ compiler command
11601 + CXXFLAGS C++ compiler flags
11602 + CXXCPP C++ preprocessor
11603 + F77 Fortran 77 compiler command
11604 + FFLAGS Fortran 77 compiler flags
11606 +Use these variables to override the choices made by `configure' or to help
11607 +it to find libraries and programs with nonstandard names/locations.
11612 +if test "$ac_init_help" = "recursive"; then
11613 + # If there are subdirs, report their specific --help.
11615 + for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
11616 + test -d $ac_dir || continue
11619 +if test "$ac_dir" != .; then
11620 + ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11621 + # A "../" for each directory in $ac_dir_suffix.
11622 + ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11624 + ac_dir_suffix= ac_top_builddir=
11628 + .) # No --srcdir option. We are building in place.
11630 + if test -z "$ac_top_builddir"; then
11633 + ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11635 + [\\/]* | ?:[\\/]* ) # Absolute path.
11636 + ac_srcdir=$srcdir$ac_dir_suffix;
11637 + ac_top_srcdir=$srcdir ;;
11638 + *) # Relative path.
11639 + ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11640 + ac_top_srcdir=$ac_top_builddir$srcdir ;;
11643 +# Do not use `cd foo && pwd` to compute absolute paths, because
11644 +# the directories may not exist.
11646 +.) ac_abs_builddir="$ac_dir";;
11648 + case "$ac_dir" in
11649 + .) ac_abs_builddir=`pwd`;;
11650 + [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
11651 + *) ac_abs_builddir=`pwd`/"$ac_dir";;
11654 +case $ac_abs_builddir in
11655 +.) ac_abs_top_builddir=${ac_top_builddir}.;;
11657 + case ${ac_top_builddir}. in
11658 + .) ac_abs_top_builddir=$ac_abs_builddir;;
11659 + [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
11660 + *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
11663 +case $ac_abs_builddir in
11664 +.) ac_abs_srcdir=$ac_srcdir;;
11666 + case $ac_srcdir in
11667 + .) ac_abs_srcdir=$ac_abs_builddir;;
11668 + [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
11669 + *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
11672 +case $ac_abs_builddir in
11673 +.) ac_abs_top_srcdir=$ac_top_srcdir;;
11675 + case $ac_top_srcdir in
11676 + .) ac_abs_top_srcdir=$ac_abs_builddir;;
11677 + [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
11678 + *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
11683 + # Check for guested configure; otherwise get Cygnus style configure.
11684 + if test -f $ac_srcdir/configure.gnu; then
11686 + $SHELL $ac_srcdir/configure.gnu --help=recursive
11687 + elif test -f $ac_srcdir/configure; then
11689 + $SHELL $ac_srcdir/configure --help=recursive
11690 + elif test -f $ac_srcdir/configure.ac ||
11691 + test -f $ac_srcdir/configure.in; then
11693 + $ac_configure --help
11695 + echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
11701 +test -n "$ac_init_help" && exit 0
11702 +if $ac_init_version; then
11704 +Autotoolized Lua configure 5.1.3
11705 +generated by GNU Autoconf 2.59
11707 +Copyright (C) 2003 Free Software Foundation, Inc.
11708 +This configure script is free software; the Free Software Foundation
11709 +gives unlimited permission to copy, distribute and modify it.
11715 +This file contains any messages produced by compilers while
11716 +running configure, to aid debugging if configure makes a mistake.
11718 +It was created by Autotoolized Lua $as_me 5.1.3, which was
11719 +generated by GNU Autoconf 2.59. Invocation command line was
11730 +hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
11731 +uname -m = `(uname -m) 2>/dev/null || echo unknown`
11732 +uname -r = `(uname -r) 2>/dev/null || echo unknown`
11733 +uname -s = `(uname -s) 2>/dev/null || echo unknown`
11734 +uname -v = `(uname -v) 2>/dev/null || echo unknown`
11736 +/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
11737 +/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
11739 +/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
11740 +/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
11741 +/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
11742 +hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
11743 +/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
11744 +/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
11745 +/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
11749 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11750 +for as_dir in $PATH
11753 + test -z "$as_dir" && as_dir=.
11754 + echo "PATH: $as_dir"
11769 +# Keep a trace of the command line.
11770 +# Strip out --no-create and --no-recursion so they do not pile up.
11771 +# Strip out --silent because we don't want to record it for future runs.
11772 +# Also quote any args containing shell meta-characters.
11773 +# Make two passes to allow for proper duplicate-argument suppression.
11774 +ac_configure_args=
11775 +ac_configure_args0=
11776 +ac_configure_args1=
11778 +ac_must_keep_next=false
11779 +for ac_pass in 1 2
11784 + -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
11785 + -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11786 + | -silent | --silent | --silen | --sile | --sil)
11788 + *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
11789 + ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
11792 + 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
11794 + ac_configure_args1="$ac_configure_args1 '$ac_arg'"
11795 + if test $ac_must_keep_next = true; then
11796 + ac_must_keep_next=false # Got value, back to normal.
11799 + *=* | --config-cache | -C | -disable-* | --disable-* \
11800 + | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
11801 + | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
11802 + | -with-* | --with-* | -without-* | --without-* | --x)
11803 + case "$ac_configure_args0 " in
11804 + "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
11807 + -* ) ac_must_keep_next=true ;;
11810 + ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
11811 + # Get rid of the leading space.
11817 +$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
11818 +$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
11820 +# When interrupted or exit'd, cleanup temporary files, and complete
11821 +# config.log. We remove comments because anyway the quotes in there
11822 +# would cause problems or look ugly.
11823 +# WARNING: Be sure not to use single quotes in there, as some shells,
11824 +# such as our DU 5.0 friend, will then `close' the trap.
11825 +trap 'exit_status=$?
11826 + # Save into config.log some information that might help in debugging.
11831 +## ---------------- ##
11832 +## Cache variables. ##
11833 +## ---------------- ##
11836 + # The following way of writing the cache mishandles newlines in values,
11839 + case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
11842 + "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
11843 + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
11847 + "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
11854 +## ----------------- ##
11855 +## Output variables. ##
11856 +## ----------------- ##
11859 + for ac_var in $ac_subst_vars
11861 + eval ac_val=$`echo $ac_var`
11862 + echo "$ac_var='"'"'$ac_val'"'"'"
11866 + if test -n "$ac_subst_files"; then
11868 +## ------------- ##
11869 +## Output files. ##
11870 +## ------------- ##
11873 + for ac_var in $ac_subst_files
11875 + eval ac_val=$`echo $ac_var`
11876 + echo "$ac_var='"'"'$ac_val'"'"'"
11881 + if test -s confdefs.h; then
11888 + sed "/^$/d" confdefs.h | sort
11891 + test "$ac_signal" != 0 &&
11892 + echo "$as_me: caught signal $ac_signal"
11893 + echo "$as_me: exit $exit_status"
11895 + rm -f core *.core &&
11896 + rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
11897 + exit $exit_status
11899 +for ac_signal in 1 2 13 15; do
11900 + trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
11904 +# confdefs.h avoids OS command line length limits that DEFS can exceed.
11905 +rm -rf conftest* confdefs.h
11906 +# AIX cpp loses on an empty file, so make sure it contains at least a newline.
11909 +# Predefined preprocessor variables.
11911 +cat >>confdefs.h <<_ACEOF
11912 +#define PACKAGE_NAME "$PACKAGE_NAME"
11916 +cat >>confdefs.h <<_ACEOF
11917 +#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
11921 +cat >>confdefs.h <<_ACEOF
11922 +#define PACKAGE_VERSION "$PACKAGE_VERSION"
11926 +cat >>confdefs.h <<_ACEOF
11927 +#define PACKAGE_STRING "$PACKAGE_STRING"
11931 +cat >>confdefs.h <<_ACEOF
11932 +#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
11936 +# Let the site file select an alternate cache file if it wants to.
11937 +# Prefer explicitly selected file to automatically selected ones.
11938 +if test -z "$CONFIG_SITE"; then
11939 + if test "x$prefix" != xNONE; then
11940 + CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
11942 + CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
11945 +for ac_site_file in $CONFIG_SITE; do
11946 + if test -r "$ac_site_file"; then
11947 + { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
11948 +echo "$as_me: loading site script $ac_site_file" >&6;}
11949 + sed 's/^/| /' "$ac_site_file" >&5
11950 + . "$ac_site_file"
11954 +if test -r "$cache_file"; then
11955 + # Some versions of bash will fail to source /dev/null (special
11956 + # files actually), so we avoid doing that.
11957 + if test -f "$cache_file"; then
11958 + { echo "$as_me:$LINENO: loading cache $cache_file" >&5
11959 +echo "$as_me: loading cache $cache_file" >&6;}
11960 + case $cache_file in
11961 + [\\/]* | ?:[\\/]* ) . $cache_file;;
11962 + *) . ./$cache_file;;
11966 + { echo "$as_me:$LINENO: creating cache $cache_file" >&5
11967 +echo "$as_me: creating cache $cache_file" >&6;}
11971 +# Check that the precious variables saved in the cache have kept the same
11973 +ac_cache_corrupted=false
11974 +for ac_var in `(set) 2>&1 |
11975 + sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
11976 + eval ac_old_set=\$ac_cv_env_${ac_var}_set
11977 + eval ac_new_set=\$ac_env_${ac_var}_set
11978 + eval ac_old_val="\$ac_cv_env_${ac_var}_value"
11979 + eval ac_new_val="\$ac_env_${ac_var}_value"
11980 + case $ac_old_set,$ac_new_set in
11982 + { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
11983 +echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
11984 + ac_cache_corrupted=: ;;
11986 + { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
11987 +echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
11988 + ac_cache_corrupted=: ;;
11991 + if test "x$ac_old_val" != "x$ac_new_val"; then
11992 + { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
11993 +echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
11994 + { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
11995 +echo "$as_me: former value: $ac_old_val" >&2;}
11996 + { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
11997 +echo "$as_me: current value: $ac_new_val" >&2;}
11998 + ac_cache_corrupted=:
12001 + # Pass precious variables to config.status.
12002 + if test "$ac_new_set" = set; then
12003 + case $ac_new_val in
12004 + *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
12005 + ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
12006 + *) ac_arg=$ac_var=$ac_new_val ;;
12008 + case " $ac_configure_args " in
12009 + *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
12010 + *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
12014 +if $ac_cache_corrupted; then
12015 + { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
12016 +echo "$as_me: error: changes in the environment can compromise the build" >&2;}
12017 + { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
12018 +echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
12019 + { (exit 1); exit 1; }; }
12023 +ac_cpp='$CPP $CPPFLAGS'
12024 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12025 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12026 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
12055 + ac_config_headers="$ac_config_headers config.h"
12059 +am__api_version="1.9"
12061 +for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
12062 + if test -f $ac_dir/install-sh; then
12063 + ac_aux_dir=$ac_dir
12064 + ac_install_sh="$ac_aux_dir/install-sh -c"
12066 + elif test -f $ac_dir/install.sh; then
12067 + ac_aux_dir=$ac_dir
12068 + ac_install_sh="$ac_aux_dir/install.sh -c"
12070 + elif test -f $ac_dir/shtool; then
12071 + ac_aux_dir=$ac_dir
12072 + ac_install_sh="$ac_aux_dir/shtool install -c"
12076 +if test -z "$ac_aux_dir"; then
12077 + { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
12078 +echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
12079 + { (exit 1); exit 1; }; }
12081 +ac_config_guess="$SHELL $ac_aux_dir/config.guess"
12082 +ac_config_sub="$SHELL $ac_aux_dir/config.sub"
12083 +ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
12085 +# Find a good install program. We prefer a C program (faster),
12086 +# so one script is as good as another. But avoid the broken or
12087 +# incompatible versions:
12088 +# SysV /etc/install, /usr/sbin/install
12089 +# SunOS /usr/etc/install
12090 +# IRIX /sbin/install
12091 +# AIX /bin/install
12092 +# AmigaOS /C/install, which installs bootblocks on floppy discs
12093 +# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
12094 +# AFS /usr/afsws/bin/install, which mishandles nonexistent args
12095 +# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
12096 +# OS/2's system install, which has a completely different semantic
12097 +# ./install, which can be erroneously created by make from ./install.sh.
12098 +echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
12099 +echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
12100 +if test -z "$INSTALL"; then
12101 +if test "${ac_cv_path_install+set}" = set; then
12102 + echo $ECHO_N "(cached) $ECHO_C" >&6
12104 + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12105 +for as_dir in $PATH
12108 + test -z "$as_dir" && as_dir=.
12109 + # Account for people who put trailing slashes in PATH elements.
12111 + ./ | .// | /cC/* | \
12112 + /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
12113 + ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
12116 + # OSF1 and SCO ODT 3.0 have their own names for install.
12117 + # Don't use installbsd from OSF since it installs stuff as root
12119 + for ac_prog in ginstall scoinst install; do
12120 + for ac_exec_ext in '' $ac_executable_extensions; do
12121 + if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
12122 + if test $ac_prog = install &&
12123 + grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12124 + # AIX install. It has an incompatible calling convention.
12126 + elif test $ac_prog = install &&
12127 + grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12128 + # program-specific install script used by HP pwplus--don't use.
12131 + ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
12143 + if test "${ac_cv_path_install+set}" = set; then
12144 + INSTALL=$ac_cv_path_install
12146 + # As a last resort, use the slow shell script. We don't cache a
12147 + # path for INSTALL within a source directory, because that will
12148 + # break other packages using the cache if that directory is
12149 + # removed, or if the path is relative.
12150 + INSTALL=$ac_install_sh
12153 +echo "$as_me:$LINENO: result: $INSTALL" >&5
12154 +echo "${ECHO_T}$INSTALL" >&6
12156 +# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
12157 +# It thinks the first close brace ends the variable substitution.
12158 +test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
12160 +test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
12162 +test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
12164 +echo "$as_me:$LINENO: checking whether build environment is sane" >&5
12165 +echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
12168 +echo timestamp > conftest.file
12169 +# Do `set' in a subshell so we don't clobber the current shell's
12170 +# arguments. Must try -L first in case configure is actually a
12171 +# symlink; some systems play weird games with the mod time of symlinks
12172 +# (eg FreeBSD returns the mod time of the symlink's containing
12175 + set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
12176 + if test "$*" = "X"; then
12177 + # -L didn't work.
12178 + set X `ls -t $srcdir/configure conftest.file`
12180 + rm -f conftest.file
12181 + if test "$*" != "X $srcdir/configure conftest.file" \
12182 + && test "$*" != "X conftest.file $srcdir/configure"; then
12184 + # If neither matched, then we have a broken ls. This can happen
12185 + # if, for instance, CONFIG_SHELL is bash and it inherits a
12186 + # broken ls alias from the environment. This has actually
12187 + # happened. Such a system could not be considered "sane".
12188 + { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
12189 +alias in your environment" >&5
12190 +echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
12191 +alias in your environment" >&2;}
12192 + { (exit 1); exit 1; }; }
12195 + test "$2" = conftest.file
12201 + { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
12202 +Check your system clock" >&5
12203 +echo "$as_me: error: newly created file is older than distributed files!
12204 +Check your system clock" >&2;}
12205 + { (exit 1); exit 1; }; }
12207 +echo "$as_me:$LINENO: result: yes" >&5
12208 +echo "${ECHO_T}yes" >&6
12209 +test "$program_prefix" != NONE &&
12210 + program_transform_name="s,^,$program_prefix,;$program_transform_name"
12211 +# Use a double $ so make ignores it.
12212 +test "$program_suffix" != NONE &&
12213 + program_transform_name="s,\$,$program_suffix,;$program_transform_name"
12214 +# Double any \ or $. echo might interpret backslashes.
12215 +# By default was `s,x,x', remove it if useless.
12216 +cat <<\_ACEOF >conftest.sed
12217 +s/[\\$]/&&/g;s/;s,x,x,$//
12219 +program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
12222 +# expand $ac_aux_dir to an absolute path
12223 +am_aux_dir=`cd $ac_aux_dir && pwd`
12225 +test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
12226 +# Use eval to expand $SHELL
12227 +if eval "$MISSING --run true"; then
12228 + am_missing_run="$MISSING --run "
12231 + { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
12232 +echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
12235 +if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
12236 + # We used to keeping the `.' as first argument, in order to
12237 + # allow $(mkdir_p) to be used without argument. As in
12238 + # $(mkdir_p) $(somedir)
12239 + # where $(somedir) is conditionally defined. However this is wrong
12240 + # for two reasons:
12241 + # 1. if the package is installed by a user who cannot write `.'
12242 + # make install will fail,
12243 + # 2. the above comment should most certainly read
12244 + # $(mkdir_p) $(DESTDIR)$(somedir)
12245 + # so it does not work when $(somedir) is undefined and
12246 + # $(DESTDIR) is not.
12247 + # To support the latter case, we have to write
12248 + # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
12249 + # so the `.' trick is pointless.
12250 + mkdir_p='mkdir -p --'
12252 + # On NextStep and OpenStep, the `mkdir' command does not
12253 + # recognize any option. It will interpret all options as
12254 + # directories to create, and then abort because `.' already
12256 + for d in ./-p ./--version;
12258 + test -d $d && rmdir $d
12260 + # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
12261 + if test -f "$ac_aux_dir/mkinstalldirs"; then
12262 + mkdir_p='$(mkinstalldirs)'
12264 + mkdir_p='$(install_sh) -d'
12268 +for ac_prog in gawk mawk nawk awk
12270 + # Extract the first word of "$ac_prog", so it can be a program name with args.
12271 +set dummy $ac_prog; ac_word=$2
12272 +echo "$as_me:$LINENO: checking for $ac_word" >&5
12273 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12274 +if test "${ac_cv_prog_AWK+set}" = set; then
12275 + echo $ECHO_N "(cached) $ECHO_C" >&6
12277 + if test -n "$AWK"; then
12278 + ac_cv_prog_AWK="$AWK" # Let the user override the test.
12280 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12281 +for as_dir in $PATH
12284 + test -z "$as_dir" && as_dir=.
12285 + for ac_exec_ext in '' $ac_executable_extensions; do
12286 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12287 + ac_cv_prog_AWK="$ac_prog"
12288 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12296 +AWK=$ac_cv_prog_AWK
12297 +if test -n "$AWK"; then
12298 + echo "$as_me:$LINENO: result: $AWK" >&5
12299 +echo "${ECHO_T}$AWK" >&6
12301 + echo "$as_me:$LINENO: result: no" >&5
12302 +echo "${ECHO_T}no" >&6
12305 + test -n "$AWK" && break
12308 +echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
12309 +echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
12310 +set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
12311 +if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
12312 + echo $ECHO_N "(cached) $ECHO_C" >&6
12314 + cat >conftest.make <<\_ACEOF
12316 + @echo 'ac_maketemp="$(MAKE)"'
12318 +# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
12319 +eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
12320 +if test -n "$ac_maketemp"; then
12321 + eval ac_cv_prog_make_${ac_make}_set=yes
12323 + eval ac_cv_prog_make_${ac_make}_set=no
12325 +rm -f conftest.make
12327 +if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
12328 + echo "$as_me:$LINENO: result: yes" >&5
12329 +echo "${ECHO_T}yes" >&6
12332 + echo "$as_me:$LINENO: result: no" >&5
12333 +echo "${ECHO_T}no" >&6
12334 + SET_MAKE="MAKE=${MAKE-make}"
12337 +rm -rf .tst 2>/dev/null
12338 +mkdir .tst 2>/dev/null
12339 +if test -d .tst; then
12340 + am__leading_dot=.
12342 + am__leading_dot=_
12344 +rmdir .tst 2>/dev/null
12346 +# test to see if srcdir already configured
12347 +if test "`cd $srcdir && pwd`" != "`pwd`" &&
12348 + test -f $srcdir/config.status; then
12349 + { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
12350 +echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
12351 + { (exit 1); exit 1; }; }
12354 +# test whether we have cygpath
12355 +if test -z "$CYGPATH_W"; then
12356 + if (cygpath --version) >/dev/null 2>/dev/null; then
12357 + CYGPATH_W='cygpath -w'
12364 +# Define the identity of the package.
12369 +cat >>confdefs.h <<_ACEOF
12370 +#define PACKAGE "$PACKAGE"
12374 +cat >>confdefs.h <<_ACEOF
12375 +#define VERSION "$VERSION"
12378 +# Some tools Automake needs.
12380 +ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
12383 +AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
12386 +AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
12389 +AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
12392 +MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
12394 +install_sh=${install_sh-"$am_aux_dir/install-sh"}
12396 +# Installed binaries are usually stripped using `strip' when the user
12397 +# run `make install-strip'. However `strip' might not be the right
12398 +# tool to use in cross-compilation environments, therefore Automake
12399 +# will honor the `STRIP' environment variable to overrule this program.
12400 +if test "$cross_compiling" != no; then
12401 + if test -n "$ac_tool_prefix"; then
12402 + # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12403 +set dummy ${ac_tool_prefix}strip; ac_word=$2
12404 +echo "$as_me:$LINENO: checking for $ac_word" >&5
12405 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12406 +if test "${ac_cv_prog_STRIP+set}" = set; then
12407 + echo $ECHO_N "(cached) $ECHO_C" >&6
12409 + if test -n "$STRIP"; then
12410 + ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12412 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12413 +for as_dir in $PATH
12416 + test -z "$as_dir" && as_dir=.
12417 + for ac_exec_ext in '' $ac_executable_extensions; do
12418 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12419 + ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12420 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12428 +STRIP=$ac_cv_prog_STRIP
12429 +if test -n "$STRIP"; then
12430 + echo "$as_me:$LINENO: result: $STRIP" >&5
12431 +echo "${ECHO_T}$STRIP" >&6
12433 + echo "$as_me:$LINENO: result: no" >&5
12434 +echo "${ECHO_T}no" >&6
12438 +if test -z "$ac_cv_prog_STRIP"; then
12439 + ac_ct_STRIP=$STRIP
12440 + # Extract the first word of "strip", so it can be a program name with args.
12441 +set dummy strip; ac_word=$2
12442 +echo "$as_me:$LINENO: checking for $ac_word" >&5
12443 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12444 +if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
12445 + echo $ECHO_N "(cached) $ECHO_C" >&6
12447 + if test -n "$ac_ct_STRIP"; then
12448 + ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12450 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12451 +for as_dir in $PATH
12454 + test -z "$as_dir" && as_dir=.
12455 + for ac_exec_ext in '' $ac_executable_extensions; do
12456 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12457 + ac_cv_prog_ac_ct_STRIP="strip"
12458 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12464 + test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
12467 +ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12468 +if test -n "$ac_ct_STRIP"; then
12469 + echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
12470 +echo "${ECHO_T}$ac_ct_STRIP" >&6
12472 + echo "$as_me:$LINENO: result: no" >&5
12473 +echo "${ECHO_T}no" >&6
12476 + STRIP=$ac_ct_STRIP
12478 + STRIP="$ac_cv_prog_STRIP"
12482 +INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
12484 +# We need awk for the "check" target. The system "awk" is bad on
12486 +# Always define AMTAR for backward compatibility.
12488 +AMTAR=${AMTAR-"${am_missing_run}tar"}
12490 +am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
12498 +ac_cpp='$CPP $CPPFLAGS'
12499 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12500 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12501 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
12502 +if test -n "$ac_tool_prefix"; then
12503 + # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
12504 +set dummy ${ac_tool_prefix}gcc; ac_word=$2
12505 +echo "$as_me:$LINENO: checking for $ac_word" >&5
12506 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12507 +if test "${ac_cv_prog_CC+set}" = set; then
12508 + echo $ECHO_N "(cached) $ECHO_C" >&6
12510 + if test -n "$CC"; then
12511 + ac_cv_prog_CC="$CC" # Let the user override the test.
12513 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12514 +for as_dir in $PATH
12517 + test -z "$as_dir" && as_dir=.
12518 + for ac_exec_ext in '' $ac_executable_extensions; do
12519 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12520 + ac_cv_prog_CC="${ac_tool_prefix}gcc"
12521 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12530 +if test -n "$CC"; then
12531 + echo "$as_me:$LINENO: result: $CC" >&5
12532 +echo "${ECHO_T}$CC" >&6
12534 + echo "$as_me:$LINENO: result: no" >&5
12535 +echo "${ECHO_T}no" >&6
12539 +if test -z "$ac_cv_prog_CC"; then
12541 + # Extract the first word of "gcc", so it can be a program name with args.
12542 +set dummy gcc; ac_word=$2
12543 +echo "$as_me:$LINENO: checking for $ac_word" >&5
12544 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12545 +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12546 + echo $ECHO_N "(cached) $ECHO_C" >&6
12548 + if test -n "$ac_ct_CC"; then
12549 + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12551 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12552 +for as_dir in $PATH
12555 + test -z "$as_dir" && as_dir=.
12556 + for ac_exec_ext in '' $ac_executable_extensions; do
12557 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12558 + ac_cv_prog_ac_ct_CC="gcc"
12559 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12567 +ac_ct_CC=$ac_cv_prog_ac_ct_CC
12568 +if test -n "$ac_ct_CC"; then
12569 + echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12570 +echo "${ECHO_T}$ac_ct_CC" >&6
12572 + echo "$as_me:$LINENO: result: no" >&5
12573 +echo "${ECHO_T}no" >&6
12578 + CC="$ac_cv_prog_CC"
12581 +if test -z "$CC"; then
12582 + if test -n "$ac_tool_prefix"; then
12583 + # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12584 +set dummy ${ac_tool_prefix}cc; ac_word=$2
12585 +echo "$as_me:$LINENO: checking for $ac_word" >&5
12586 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12587 +if test "${ac_cv_prog_CC+set}" = set; then
12588 + echo $ECHO_N "(cached) $ECHO_C" >&6
12590 + if test -n "$CC"; then
12591 + ac_cv_prog_CC="$CC" # Let the user override the test.
12593 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12594 +for as_dir in $PATH
12597 + test -z "$as_dir" && as_dir=.
12598 + for ac_exec_ext in '' $ac_executable_extensions; do
12599 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12600 + ac_cv_prog_CC="${ac_tool_prefix}cc"
12601 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12610 +if test -n "$CC"; then
12611 + echo "$as_me:$LINENO: result: $CC" >&5
12612 +echo "${ECHO_T}$CC" >&6
12614 + echo "$as_me:$LINENO: result: no" >&5
12615 +echo "${ECHO_T}no" >&6
12619 +if test -z "$ac_cv_prog_CC"; then
12621 + # Extract the first word of "cc", so it can be a program name with args.
12622 +set dummy cc; ac_word=$2
12623 +echo "$as_me:$LINENO: checking for $ac_word" >&5
12624 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12625 +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12626 + echo $ECHO_N "(cached) $ECHO_C" >&6
12628 + if test -n "$ac_ct_CC"; then
12629 + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12631 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12632 +for as_dir in $PATH
12635 + test -z "$as_dir" && as_dir=.
12636 + for ac_exec_ext in '' $ac_executable_extensions; do
12637 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12638 + ac_cv_prog_ac_ct_CC="cc"
12639 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12647 +ac_ct_CC=$ac_cv_prog_ac_ct_CC
12648 +if test -n "$ac_ct_CC"; then
12649 + echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12650 +echo "${ECHO_T}$ac_ct_CC" >&6
12652 + echo "$as_me:$LINENO: result: no" >&5
12653 +echo "${ECHO_T}no" >&6
12658 + CC="$ac_cv_prog_CC"
12662 +if test -z "$CC"; then
12663 + # Extract the first word of "cc", so it can be a program name with args.
12664 +set dummy cc; ac_word=$2
12665 +echo "$as_me:$LINENO: checking for $ac_word" >&5
12666 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12667 +if test "${ac_cv_prog_CC+set}" = set; then
12668 + echo $ECHO_N "(cached) $ECHO_C" >&6
12670 + if test -n "$CC"; then
12671 + ac_cv_prog_CC="$CC" # Let the user override the test.
12673 + ac_prog_rejected=no
12674 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12675 +for as_dir in $PATH
12678 + test -z "$as_dir" && as_dir=.
12679 + for ac_exec_ext in '' $ac_executable_extensions; do
12680 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12681 + if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12682 + ac_prog_rejected=yes
12685 + ac_cv_prog_CC="cc"
12686 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12692 +if test $ac_prog_rejected = yes; then
12693 + # We found a bogon in the path, so make sure we never use it.
12694 + set dummy $ac_cv_prog_CC
12696 + if test $# != 0; then
12697 + # We chose a different compiler from the bogus one.
12698 + # However, it has the same basename, so the bogon will be chosen
12699 + # first if we set CC to just the basename; use the full file name.
12701 + ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12707 +if test -n "$CC"; then
12708 + echo "$as_me:$LINENO: result: $CC" >&5
12709 +echo "${ECHO_T}$CC" >&6
12711 + echo "$as_me:$LINENO: result: no" >&5
12712 +echo "${ECHO_T}no" >&6
12716 +if test -z "$CC"; then
12717 + if test -n "$ac_tool_prefix"; then
12718 + for ac_prog in cl
12720 + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12721 +set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12722 +echo "$as_me:$LINENO: checking for $ac_word" >&5
12723 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12724 +if test "${ac_cv_prog_CC+set}" = set; then
12725 + echo $ECHO_N "(cached) $ECHO_C" >&6
12727 + if test -n "$CC"; then
12728 + ac_cv_prog_CC="$CC" # Let the user override the test.
12730 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12731 +for as_dir in $PATH
12734 + test -z "$as_dir" && as_dir=.
12735 + for ac_exec_ext in '' $ac_executable_extensions; do
12736 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12737 + ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12738 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12747 +if test -n "$CC"; then
12748 + echo "$as_me:$LINENO: result: $CC" >&5
12749 +echo "${ECHO_T}$CC" >&6
12751 + echo "$as_me:$LINENO: result: no" >&5
12752 +echo "${ECHO_T}no" >&6
12755 + test -n "$CC" && break
12758 +if test -z "$CC"; then
12760 + for ac_prog in cl
12762 + # Extract the first word of "$ac_prog", so it can be a program name with args.
12763 +set dummy $ac_prog; ac_word=$2
12764 +echo "$as_me:$LINENO: checking for $ac_word" >&5
12765 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12766 +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12767 + echo $ECHO_N "(cached) $ECHO_C" >&6
12769 + if test -n "$ac_ct_CC"; then
12770 + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12772 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12773 +for as_dir in $PATH
12776 + test -z "$as_dir" && as_dir=.
12777 + for ac_exec_ext in '' $ac_executable_extensions; do
12778 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12779 + ac_cv_prog_ac_ct_CC="$ac_prog"
12780 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12788 +ac_ct_CC=$ac_cv_prog_ac_ct_CC
12789 +if test -n "$ac_ct_CC"; then
12790 + echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12791 +echo "${ECHO_T}$ac_ct_CC" >&6
12793 + echo "$as_me:$LINENO: result: no" >&5
12794 +echo "${ECHO_T}no" >&6
12797 + test -n "$ac_ct_CC" && break
12806 +test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
12807 +See \`config.log' for more details." >&5
12808 +echo "$as_me: error: no acceptable C compiler found in \$PATH
12809 +See \`config.log' for more details." >&2;}
12810 + { (exit 1); exit 1; }; }
12812 +# Provide some information about the compiler.
12813 +echo "$as_me:$LINENO:" \
12814 + "checking for C compiler version" >&5
12815 +ac_compiler=`set X $ac_compile; echo $2`
12816 +{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
12817 + (eval $ac_compiler --version </dev/null >&5) 2>&5
12819 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
12820 + (exit $ac_status); }
12821 +{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
12822 + (eval $ac_compiler -v </dev/null >&5) 2>&5
12824 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
12825 + (exit $ac_status); }
12826 +{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
12827 + (eval $ac_compiler -V </dev/null >&5) 2>&5
12829 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
12830 + (exit $ac_status); }
12832 +cat >conftest.$ac_ext <<_ACEOF
12835 +cat confdefs.h >>conftest.$ac_ext
12836 +cat >>conftest.$ac_ext <<_ACEOF
12837 +/* end confdefs.h. */
12847 +ac_clean_files_save=$ac_clean_files
12848 +ac_clean_files="$ac_clean_files a.out a.exe b.out"
12849 +# Try to create an executable without -o first, disregard a.out.
12850 +# It will help us diagnose broken compilers, and finding out an intuition
12852 +echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
12853 +echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
12854 +ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
12855 +if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
12856 + (eval $ac_link_default) 2>&5
12858 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
12859 + (exit $ac_status); }; then
12860 + # Find the output, starting from the most likely. This scheme is
12861 +# not robust to junk in `.', hence go to wildcards (a.*) only as a last
12864 +# Be careful to initialize this variable, since it used to be cached.
12865 +# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
12867 +# b.out is created by i960 compilers.
12868 +for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
12870 + test -f "$ac_file" || continue
12872 + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
12874 + conftest.$ac_ext )
12875 + # This is the source file.
12878 + # We found the default executable, but exeext='' is most
12879 + # certainly right.
12882 + ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
12883 + # FIXME: I believe we export ac_cv_exeext for Libtool,
12884 + # but it would be cool to find out if it's true. Does anybody
12885 + # maintain Libtool? --akim.
12886 + export ac_cv_exeext
12893 + echo "$as_me: failed program was:" >&5
12894 +sed 's/^/| /' conftest.$ac_ext >&5
12896 +{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
12897 +See \`config.log' for more details." >&5
12898 +echo "$as_me: error: C compiler cannot create executables
12899 +See \`config.log' for more details." >&2;}
12900 + { (exit 77); exit 77; }; }
12903 +ac_exeext=$ac_cv_exeext
12904 +echo "$as_me:$LINENO: result: $ac_file" >&5
12905 +echo "${ECHO_T}$ac_file" >&6
12907 +# Check the compiler produces executables we can run. If not, either
12908 +# the compiler is broken, or we cross compile.
12909 +echo "$as_me:$LINENO: checking whether the C compiler works" >&5
12910 +echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
12911 +# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
12912 +# If not cross compiling, check that we can run a simple program.
12913 +if test "$cross_compiling" != yes; then
12914 + if { ac_try='./$ac_file'
12915 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12916 + (eval $ac_try) 2>&5
12918 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
12919 + (exit $ac_status); }; }; then
12920 + cross_compiling=no
12922 + if test "$cross_compiling" = maybe; then
12923 + cross_compiling=yes
12925 + { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
12926 +If you meant to cross compile, use \`--host'.
12927 +See \`config.log' for more details." >&5
12928 +echo "$as_me: error: cannot run C compiled programs.
12929 +If you meant to cross compile, use \`--host'.
12930 +See \`config.log' for more details." >&2;}
12931 + { (exit 1); exit 1; }; }
12935 +echo "$as_me:$LINENO: result: yes" >&5
12936 +echo "${ECHO_T}yes" >&6
12938 +rm -f a.out a.exe conftest$ac_cv_exeext b.out
12939 +ac_clean_files=$ac_clean_files_save
12940 +# Check the compiler produces executables we can run. If not, either
12941 +# the compiler is broken, or we cross compile.
12942 +echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
12943 +echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
12944 +echo "$as_me:$LINENO: result: $cross_compiling" >&5
12945 +echo "${ECHO_T}$cross_compiling" >&6
12947 +echo "$as_me:$LINENO: checking for suffix of executables" >&5
12948 +echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
12949 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12950 + (eval $ac_link) 2>&5
12952 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
12953 + (exit $ac_status); }; then
12954 + # If both `conftest.exe' and `conftest' are `present' (well, observable)
12955 +# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
12956 +# work properly (i.e., refer to `conftest.exe'), while it won't with
12958 +for ac_file in conftest.exe conftest conftest.*; do
12959 + test -f "$ac_file" || continue
12961 + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
12962 + *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
12963 + export ac_cv_exeext
12969 + { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
12970 +See \`config.log' for more details." >&5
12971 +echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
12972 +See \`config.log' for more details." >&2;}
12973 + { (exit 1); exit 1; }; }
12976 +rm -f conftest$ac_cv_exeext
12977 +echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
12978 +echo "${ECHO_T}$ac_cv_exeext" >&6
12980 +rm -f conftest.$ac_ext
12981 +EXEEXT=$ac_cv_exeext
12983 +echo "$as_me:$LINENO: checking for suffix of object files" >&5
12984 +echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
12985 +if test "${ac_cv_objext+set}" = set; then
12986 + echo $ECHO_N "(cached) $ECHO_C" >&6
12988 + cat >conftest.$ac_ext <<_ACEOF
12991 +cat confdefs.h >>conftest.$ac_ext
12992 +cat >>conftest.$ac_ext <<_ACEOF
12993 +/* end confdefs.h. */
13003 +rm -f conftest.o conftest.obj
13004 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13005 + (eval $ac_compile) 2>&5
13007 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
13008 + (exit $ac_status); }; then
13009 + for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
13011 + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
13012 + *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
13017 + echo "$as_me: failed program was:" >&5
13018 +sed 's/^/| /' conftest.$ac_ext >&5
13020 +{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
13021 +See \`config.log' for more details." >&5
13022 +echo "$as_me: error: cannot compute suffix of object files: cannot compile
13023 +See \`config.log' for more details." >&2;}
13024 + { (exit 1); exit 1; }; }
13027 +rm -f conftest.$ac_cv_objext conftest.$ac_ext
13029 +echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
13030 +echo "${ECHO_T}$ac_cv_objext" >&6
13031 +OBJEXT=$ac_cv_objext
13033 +echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
13034 +echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
13035 +if test "${ac_cv_c_compiler_gnu+set}" = set; then
13036 + echo $ECHO_N "(cached) $ECHO_C" >&6
13038 + cat >conftest.$ac_ext <<_ACEOF
13041 +cat confdefs.h >>conftest.$ac_ext
13042 +cat >>conftest.$ac_ext <<_ACEOF
13043 +/* end confdefs.h. */
13056 +rm -f conftest.$ac_objext
13057 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13058 + (eval $ac_compile) 2>conftest.er1
13060 + grep -v '^ *+' conftest.er1 >conftest.err
13061 + rm -f conftest.er1
13062 + cat conftest.err >&5
13063 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
13064 + (exit $ac_status); } &&
13065 + { ac_try='test -z "$ac_c_werror_flag"
13066 + || test ! -s conftest.err'
13067 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13068 + (eval $ac_try) 2>&5
13070 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
13071 + (exit $ac_status); }; } &&
13072 + { ac_try='test -s conftest.$ac_objext'
13073 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13074 + (eval $ac_try) 2>&5
13076 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
13077 + (exit $ac_status); }; }; then
13078 + ac_compiler_gnu=yes
13080 + echo "$as_me: failed program was:" >&5
13081 +sed 's/^/| /' conftest.$ac_ext >&5
13083 +ac_compiler_gnu=no
13085 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13086 +ac_cv_c_compiler_gnu=$ac_compiler_gnu
13089 +echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
13090 +echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
13091 +GCC=`test $ac_compiler_gnu = yes && echo yes`
13092 +ac_test_CFLAGS=${CFLAGS+set}
13093 +ac_save_CFLAGS=$CFLAGS
13095 +echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
13096 +echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
13097 +if test "${ac_cv_prog_cc_g+set}" = set; then
13098 + echo $ECHO_N "(cached) $ECHO_C" >&6
13100 + cat >conftest.$ac_ext <<_ACEOF
13103 +cat confdefs.h >>conftest.$ac_ext
13104 +cat >>conftest.$ac_ext <<_ACEOF
13105 +/* end confdefs.h. */
13115 +rm -f conftest.$ac_objext
13116 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13117 + (eval $ac_compile) 2>conftest.er1
13119 + grep -v '^ *+' conftest.er1 >conftest.err
13120 + rm -f conftest.er1
13121 + cat conftest.err >&5
13122 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
13123 + (exit $ac_status); } &&
13124 + { ac_try='test -z "$ac_c_werror_flag"
13125 + || test ! -s conftest.err'
13126 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13127 + (eval $ac_try) 2>&5
13129 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
13130 + (exit $ac_status); }; } &&
13131 + { ac_try='test -s conftest.$ac_objext'
13132 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13133 + (eval $ac_try) 2>&5
13135 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
13136 + (exit $ac_status); }; }; then
13137 + ac_cv_prog_cc_g=yes
13139 + echo "$as_me: failed program was:" >&5
13140 +sed 's/^/| /' conftest.$ac_ext >&5
13142 +ac_cv_prog_cc_g=no
13144 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13146 +echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
13147 +echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
13148 +if test "$ac_test_CFLAGS" = set; then
13149 + CFLAGS=$ac_save_CFLAGS
13150 +elif test $ac_cv_prog_cc_g = yes; then
13151 + if test "$GCC" = yes; then
13157 + if test "$GCC" = yes; then
13163 +echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
13164 +echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
13165 +if test "${ac_cv_prog_cc_stdc+set}" = set; then
13166 + echo $ECHO_N "(cached) $ECHO_C" >&6
13168 + ac_cv_prog_cc_stdc=no
13170 +cat >conftest.$ac_ext <<_ACEOF
13173 +cat confdefs.h >>conftest.$ac_ext
13174 +cat >>conftest.$ac_ext <<_ACEOF
13175 +/* end confdefs.h. */
13176 +#include <stdarg.h>
13177 +#include <stdio.h>
13178 +#include <sys/types.h>
13179 +#include <sys/stat.h>
13180 +/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
13181 +struct buf { int x; };
13182 +FILE * (*rcsopen) (struct buf *, struct stat *, int);
13183 +static char *e (p, i)
13189 +static char *f (char * (*g) (char **, int), char **p, ...)
13194 + s = g (p, va_arg (v,int));
13199 +/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
13200 + function prototypes and stuff, but not '\xHH' hex character constants.
13201 + These don't provoke an error unfortunately, instead are silently treated
13202 + as 'x'. The following induces an error, until -std1 is added to get
13203 + proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
13204 + array size at least. It's necessary to write '\x00'==0 to get something
13205 + that's true only with -std1. */
13206 +int osf4_cc_array ['\x00' == 0 ? 1 : -1];
13208 +int test (int i, double x);
13209 +struct s1 {int (*f) (int a);};
13210 +struct s2 {int (*f) (double a);};
13211 +int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
13217 +return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
13222 +# Don't try gcc -ansi; that turns off useful extensions and
13223 +# breaks some systems' header files.
13224 +# AIX -qlanglvl=ansi
13225 +# Ultrix and OSF/1 -std1
13226 +# HP-UX 10.20 and later -Ae
13227 +# HP-UX older versions -Aa -D_HPUX_SOURCE
13228 +# SVR4 -Xc -D__EXTENSIONS__
13229 +for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
13231 + CC="$ac_save_CC $ac_arg"
13232 + rm -f conftest.$ac_objext
13233 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13234 + (eval $ac_compile) 2>conftest.er1
13236 + grep -v '^ *+' conftest.er1 >conftest.err
13237 + rm -f conftest.er1
13238 + cat conftest.err >&5
13239 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
13240 + (exit $ac_status); } &&
13241 + { ac_try='test -z "$ac_c_werror_flag"
13242 + || test ! -s conftest.err'
13243 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13244 + (eval $ac_try) 2>&5
13246 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
13247 + (exit $ac_status); }; } &&
13248 + { ac_try='test -s conftest.$ac_objext'
13249 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13250 + (eval $ac_try) 2>&5
13252 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
13253 + (exit $ac_status); }; }; then
13254 + ac_cv_prog_cc_stdc=$ac_arg
13257 + echo "$as_me: failed program was:" >&5
13258 +sed 's/^/| /' conftest.$ac_ext >&5
13261 +rm -f conftest.err conftest.$ac_objext
13263 +rm -f conftest.$ac_ext conftest.$ac_objext
13268 +case "x$ac_cv_prog_cc_stdc" in
13270 + echo "$as_me:$LINENO: result: none needed" >&5
13271 +echo "${ECHO_T}none needed" >&6 ;;
13273 + echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
13274 +echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
13275 + CC="$CC $ac_cv_prog_cc_stdc" ;;
13278 +# Some people use a C++ compiler to compile C. Since we use `exit',
13279 +# in C++ we need to declare it. In case someone uses the same compiler
13280 +# for both compiling C and C++ we need to have the C++ compiler decide
13281 +# the declaration of exit, since it's the most demanding environment.
13282 +cat >conftest.$ac_ext <<_ACEOF
13283 +#ifndef __cplusplus
13287 +rm -f conftest.$ac_objext
13288 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13289 + (eval $ac_compile) 2>conftest.er1
13291 + grep -v '^ *+' conftest.er1 >conftest.err
13292 + rm -f conftest.er1
13293 + cat conftest.err >&5
13294 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
13295 + (exit $ac_status); } &&
13296 + { ac_try='test -z "$ac_c_werror_flag"
13297 + || test ! -s conftest.err'
13298 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13299 + (eval $ac_try) 2>&5
13301 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
13302 + (exit $ac_status); }; } &&
13303 + { ac_try='test -s conftest.$ac_objext'
13304 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13305 + (eval $ac_try) 2>&5
13307 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
13308 + (exit $ac_status); }; }; then
13309 + for ac_declaration in \
13311 + 'extern "C" void std::exit (int) throw (); using std::exit;' \
13312 + 'extern "C" void std::exit (int); using std::exit;' \
13313 + 'extern "C" void exit (int) throw ();' \
13314 + 'extern "C" void exit (int);' \
13315 + 'void exit (int);'
13317 + cat >conftest.$ac_ext <<_ACEOF
13320 +cat confdefs.h >>conftest.$ac_ext
13321 +cat >>conftest.$ac_ext <<_ACEOF
13322 +/* end confdefs.h. */
13324 +#include <stdlib.h>
13333 +rm -f conftest.$ac_objext
13334 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13335 + (eval $ac_compile) 2>conftest.er1
13337 + grep -v '^ *+' conftest.er1 >conftest.err
13338 + rm -f conftest.er1
13339 + cat conftest.err >&5
13340 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
13341 + (exit $ac_status); } &&
13342 + { ac_try='test -z "$ac_c_werror_flag"
13343 + || test ! -s conftest.err'
13344 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13345 + (eval $ac_try) 2>&5
13347 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
13348 + (exit $ac_status); }; } &&
13349 + { ac_try='test -s conftest.$ac_objext'
13350 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13351 + (eval $ac_try) 2>&5
13353 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
13354 + (exit $ac_status); }; }; then
13357 + echo "$as_me: failed program was:" >&5
13358 +sed 's/^/| /' conftest.$ac_ext >&5
13362 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13363 + cat >conftest.$ac_ext <<_ACEOF
13366 +cat confdefs.h >>conftest.$ac_ext
13367 +cat >>conftest.$ac_ext <<_ACEOF
13368 +/* end confdefs.h. */
13378 +rm -f conftest.$ac_objext
13379 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13380 + (eval $ac_compile) 2>conftest.er1
13382 + grep -v '^ *+' conftest.er1 >conftest.err
13383 + rm -f conftest.er1
13384 + cat conftest.err >&5
13385 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
13386 + (exit $ac_status); } &&
13387 + { ac_try='test -z "$ac_c_werror_flag"
13388 + || test ! -s conftest.err'
13389 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13390 + (eval $ac_try) 2>&5
13392 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
13393 + (exit $ac_status); }; } &&
13394 + { ac_try='test -s conftest.$ac_objext'
13395 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13396 + (eval $ac_try) 2>&5
13398 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
13399 + (exit $ac_status); }; }; then
13402 + echo "$as_me: failed program was:" >&5
13403 +sed 's/^/| /' conftest.$ac_ext >&5
13406 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13409 +if test -n "$ac_declaration"; then
13410 + echo '#ifdef __cplusplus' >>confdefs.h
13411 + echo $ac_declaration >>confdefs.h
13412 + echo '#endif' >>confdefs.h
13416 + echo "$as_me: failed program was:" >&5
13417 +sed 's/^/| /' conftest.$ac_ext >&5
13420 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13422 +ac_cpp='$CPP $CPPFLAGS'
13423 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13424 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13425 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
13426 +DEPDIR="${am__leading_dot}deps"
13428 + ac_config_commands="$ac_config_commands depfiles"
13431 +am_make=${MAKE-make}
13432 +cat > confinc << 'END'
13437 +# If we don't find an include directive, just comment out the code.
13438 +echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
13439 +echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
13443 +# First try GNU make style include.
13444 +echo "include confinc" > confmf
13445 +# We grep out `Entering directory' and `Leaving directory'
13446 +# messages which can occur if `w' ends up in MAKEFLAGS.
13447 +# In particular we don't look at `^make:' because GNU make might
13448 +# be invoked under some other name (usually "gmake"), in which
13449 +# case it prints its new name instead of `make'.
13450 +if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
13451 + am__include=include
13455 +# Now try BSD make style include.
13456 +if test "$am__include" = "#"; then
13457 + echo '.include "confinc"' > confmf
13458 + if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
13459 + am__include=.include
13466 +echo "$as_me:$LINENO: result: $_am_result" >&5
13467 +echo "${ECHO_T}$_am_result" >&6
13468 +rm -f confinc confmf
13470 +# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
13471 +if test "${enable_dependency_tracking+set}" = set; then
13472 + enableval="$enable_dependency_tracking"
13475 +if test "x$enable_dependency_tracking" != xno; then
13476 + am_depcomp="$ac_aux_dir/depcomp"
13477 + AMDEPBACKSLASH='\'
13481 +if test "x$enable_dependency_tracking" != xno; then
13492 +depcc="$CC" am_compiler_list=
13494 +echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
13495 +echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
13496 +if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
13497 + echo $ECHO_N "(cached) $ECHO_C" >&6
13499 + if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13500 + # We make a subdir and do the tests there. Otherwise we can end up
13501 + # making bogus files that we don't know about and never remove. For
13502 + # instance it was reported that on HP-UX the gcc test will end up
13503 + # making a dummy file named `D' -- because `-MD' means `put the output
13505 + mkdir conftest.dir
13506 + # Copy depcomp to subdir because otherwise we won't find it if we're
13507 + # using a relative directory.
13508 + cp "$am_depcomp" conftest.dir
13510 + # We will build objects and dependencies in a subdirectory because
13511 + # it helps to detect inapplicable dependency modes. For instance
13512 + # both Tru64's cc and ICC support -MD to output dependencies as a
13513 + # side effect of compilation, but ICC will put the dependencies in
13514 + # the current directory while Tru64 will put them in the object
13518 + am_cv_CC_dependencies_compiler_type=none
13519 + if test "$am_compiler_list" = ""; then
13520 + am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
13522 + for depmode in $am_compiler_list; do
13523 + # Setup a source with many dependencies, because some compilers
13524 + # like to wrap large dependency lists on column 80 (with \), and
13525 + # we should not choose a depcomp mode which is confused by this.
13527 + # We need to recreate these files for each test, as the compiler may
13528 + # overwrite some of them when testing with obscure command lines.
13529 + # This happens at least with the AIX C compiler.
13530 + : > sub/conftest.c
13531 + for i in 1 2 3 4 5 6; do
13532 + echo '#include "conftst'$i'.h"' >> sub/conftest.c
13533 + # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
13534 + # Solaris 8's {/usr,}/bin/sh.
13535 + touch sub/conftst$i.h
13537 + echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13541 + # after this tag, mechanisms are not by side-effect, so they'll
13542 + # only be used when explicitly requested
13543 + if test "x$enable_dependency_tracking" = xyes; then
13551 + # We check with `-c' and `-o' for the sake of the "dashmstdout"
13552 + # mode. It turns out that the SunPro C++ compiler does not properly
13553 + # handle `-M -o', and we need to detect this.
13554 + if depmode=$depmode \
13555 + source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
13556 + depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13557 + $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
13558 + >/dev/null 2>conftest.err &&
13559 + grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13560 + grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
13561 + ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13562 + # icc doesn't choke on unknown options, it will just issue warnings
13563 + # or remarks (even with -Werror). So we grep stderr for any message
13564 + # that says an option was ignored or not supported.
13565 + # When given -MP, icc 7.0 and 7.1 complain thusly:
13566 + # icc: Command line warning: ignoring option '-M'; no argument required
13567 + # The diagnosis changed in icc 8.0:
13568 + # icc: Command line remark: option '-MP' not supported
13569 + if (grep 'ignoring option' conftest.err ||
13570 + grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13571 + am_cv_CC_dependencies_compiler_type=$depmode
13578 + rm -rf conftest.dir
13580 + am_cv_CC_dependencies_compiler_type=none
13584 +echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
13585 +echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
13586 +CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
13591 + test "x$enable_dependency_tracking" != xno \
13592 + && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
13593 + am__fastdepCC_TRUE=
13594 + am__fastdepCC_FALSE='#'
13596 + am__fastdepCC_TRUE='#'
13597 + am__fastdepCC_FALSE=
13601 +# Check whether --enable-shared or --disable-shared was given.
13602 +if test "${enable_shared+set}" = set; then
13603 + enableval="$enable_shared"
13604 + p=${PACKAGE-default}
13605 + case $enableval in
13606 + yes) enable_shared=yes ;;
13607 + no) enable_shared=no ;;
13610 + # Look at the argument we got. We use all the common list separators.
13611 + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13612 + for pkg in $enableval; do
13613 + IFS="$lt_save_ifs"
13614 + if test "X$pkg" = "X$p"; then
13615 + enable_shared=yes
13618 + IFS="$lt_save_ifs"
13622 + enable_shared=yes
13625 +# Check whether --enable-static or --disable-static was given.
13626 +if test "${enable_static+set}" = set; then
13627 + enableval="$enable_static"
13628 + p=${PACKAGE-default}
13629 + case $enableval in
13630 + yes) enable_static=yes ;;
13631 + no) enable_static=no ;;
13634 + # Look at the argument we got. We use all the common list separators.
13635 + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13636 + for pkg in $enableval; do
13637 + IFS="$lt_save_ifs"
13638 + if test "X$pkg" = "X$p"; then
13639 + enable_static=yes
13642 + IFS="$lt_save_ifs"
13646 + enable_static=yes
13649 +# Check whether --enable-fast-install or --disable-fast-install was given.
13650 +if test "${enable_fast_install+set}" = set; then
13651 + enableval="$enable_fast_install"
13652 + p=${PACKAGE-default}
13653 + case $enableval in
13654 + yes) enable_fast_install=yes ;;
13655 + no) enable_fast_install=no ;;
13657 + enable_fast_install=no
13658 + # Look at the argument we got. We use all the common list separators.
13659 + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13660 + for pkg in $enableval; do
13661 + IFS="$lt_save_ifs"
13662 + if test "X$pkg" = "X$p"; then
13663 + enable_fast_install=yes
13666 + IFS="$lt_save_ifs"
13670 + enable_fast_install=yes
13673 +# Make sure we can run config.sub.
13674 +$ac_config_sub sun4 >/dev/null 2>&1 ||
13675 + { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
13676 +echo "$as_me: error: cannot run $ac_config_sub" >&2;}
13677 + { (exit 1); exit 1; }; }
13679 +echo "$as_me:$LINENO: checking build system type" >&5
13680 +echo $ECHO_N "checking build system type... $ECHO_C" >&6
13681 +if test "${ac_cv_build+set}" = set; then
13682 + echo $ECHO_N "(cached) $ECHO_C" >&6
13684 + ac_cv_build_alias=$build_alias
13685 +test -z "$ac_cv_build_alias" &&
13686 + ac_cv_build_alias=`$ac_config_guess`
13687 +test -z "$ac_cv_build_alias" &&
13688 + { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
13689 +echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
13690 + { (exit 1); exit 1; }; }
13691 +ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
13692 + { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
13693 +echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
13694 + { (exit 1); exit 1; }; }
13697 +echo "$as_me:$LINENO: result: $ac_cv_build" >&5
13698 +echo "${ECHO_T}$ac_cv_build" >&6
13699 +build=$ac_cv_build
13700 +build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
13701 +build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
13702 +build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
13705 +echo "$as_me:$LINENO: checking host system type" >&5
13706 +echo $ECHO_N "checking host system type... $ECHO_C" >&6
13707 +if test "${ac_cv_host+set}" = set; then
13708 + echo $ECHO_N "(cached) $ECHO_C" >&6
13710 + ac_cv_host_alias=$host_alias
13711 +test -z "$ac_cv_host_alias" &&
13712 + ac_cv_host_alias=$ac_cv_build_alias
13713 +ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
13714 + { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
13715 +echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
13716 + { (exit 1); exit 1; }; }
13719 +echo "$as_me:$LINENO: result: $ac_cv_host" >&5
13720 +echo "${ECHO_T}$ac_cv_host" >&6
13722 +host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
13723 +host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
13724 +host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
13727 +echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
13728 +echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
13729 +if test "${lt_cv_path_SED+set}" = set; then
13730 + echo $ECHO_N "(cached) $ECHO_C" >&6
13732 + # Loop through the user's path and test for sed and gsed.
13733 +# Then use that list of sed's as ones to test for truncation.
13734 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13735 +for as_dir in $PATH
13738 + test -z "$as_dir" && as_dir=.
13739 + for lt_ac_prog in sed gsed; do
13740 + for ac_exec_ext in '' $ac_executable_extensions; do
13741 + if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
13742 + lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
13749 +# Add /usr/xpg4/bin/sed as it is typically found on Solaris
13750 +# along with /bin/sed that truncates output.
13751 +for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
13752 + test ! -f $lt_ac_sed && continue
13753 + cat /dev/null > conftest.in
13755 + echo $ECHO_N "0123456789$ECHO_C" >conftest.in
13756 + # Check for GNU sed and select it if it is found.
13757 + if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
13758 + lt_cv_path_SED=$lt_ac_sed
13762 + cat conftest.in conftest.in >conftest.tmp
13763 + mv conftest.tmp conftest.in
13764 + cp conftest.in conftest.nl
13765 + echo >>conftest.nl
13766 + $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
13767 + cmp -s conftest.out conftest.nl || break
13768 + # 10000 chars as input seems more than enough
13769 + test $lt_ac_count -gt 10 && break
13770 + lt_ac_count=`expr $lt_ac_count + 1`
13771 + if test $lt_ac_count -gt $lt_ac_max; then
13772 + lt_ac_max=$lt_ac_count
13773 + lt_cv_path_SED=$lt_ac_sed
13780 +SED=$lt_cv_path_SED
13781 +echo "$as_me:$LINENO: result: $SED" >&5
13782 +echo "${ECHO_T}$SED" >&6
13784 +echo "$as_me:$LINENO: checking for egrep" >&5
13785 +echo $ECHO_N "checking for egrep... $ECHO_C" >&6
13786 +if test "${ac_cv_prog_egrep+set}" = set; then
13787 + echo $ECHO_N "(cached) $ECHO_C" >&6
13789 + if echo a | (grep -E '(a|b)') >/dev/null 2>&1
13790 + then ac_cv_prog_egrep='grep -E'
13791 + else ac_cv_prog_egrep='egrep'
13794 +echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
13795 +echo "${ECHO_T}$ac_cv_prog_egrep" >&6
13796 + EGREP=$ac_cv_prog_egrep
13800 +# Check whether --with-gnu-ld or --without-gnu-ld was given.
13801 +if test "${with_gnu_ld+set}" = set; then
13802 + withval="$with_gnu_ld"
13803 + test "$withval" = no || with_gnu_ld=yes
13808 +if test "$GCC" = yes; then
13809 + # Check if gcc -print-prog-name=ld gives a path.
13810 + echo "$as_me:$LINENO: checking for ld used by $CC" >&5
13811 +echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
13814 + # gcc leaves a trailing carriage return which upsets mingw
13815 + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13817 + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13820 + # Accept absolute paths.
13821 + [\\/]* | ?:[\\/]*)
13822 + re_direlt='/[^/][^/]*/\.\./'
13823 + # Canonicalize the pathname of ld
13824 + ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
13825 + while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
13826 + ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
13828 + test -z "$LD" && LD="$ac_prog"
13831 + # If it fails, then pretend we aren't using GCC.
13835 + # If it is relative, then search for the first ld in PATH.
13836 + with_gnu_ld=unknown
13839 +elif test "$with_gnu_ld" = yes; then
13840 + echo "$as_me:$LINENO: checking for GNU ld" >&5
13841 +echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
13843 + echo "$as_me:$LINENO: checking for non-GNU ld" >&5
13844 +echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
13846 +if test "${lt_cv_path_LD+set}" = set; then
13847 + echo $ECHO_N "(cached) $ECHO_C" >&6
13849 + if test -z "$LD"; then
13850 + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13851 + for ac_dir in $PATH; do
13852 + IFS="$lt_save_ifs"
13853 + test -z "$ac_dir" && ac_dir=.
13854 + if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13855 + lt_cv_path_LD="$ac_dir/$ac_prog"
13856 + # Check to see if the program is GNU ld. I'd rather use --version,
13857 + # but apparently some variants of GNU ld only accept -v.
13858 + # Break only if it was the GNU/non-GNU ld that we prefer.
13859 + case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13860 + *GNU* | *'with BFD'*)
13861 + test "$with_gnu_ld" != no && break
13864 + test "$with_gnu_ld" != yes && break
13869 + IFS="$lt_save_ifs"
13871 + lt_cv_path_LD="$LD" # Let the user override the test with a path.
13875 +LD="$lt_cv_path_LD"
13876 +if test -n "$LD"; then
13877 + echo "$as_me:$LINENO: result: $LD" >&5
13878 +echo "${ECHO_T}$LD" >&6
13880 + echo "$as_me:$LINENO: result: no" >&5
13881 +echo "${ECHO_T}no" >&6
13883 +test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
13884 +echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
13885 + { (exit 1); exit 1; }; }
13886 +echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
13887 +echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
13888 +if test "${lt_cv_prog_gnu_ld+set}" = set; then
13889 + echo $ECHO_N "(cached) $ECHO_C" >&6
13891 + # I'd rather use --version here, but apparently some GNU lds only accept -v.
13892 +case `$LD -v 2>&1 </dev/null` in
13893 +*GNU* | *'with BFD'*)
13894 + lt_cv_prog_gnu_ld=yes
13897 + lt_cv_prog_gnu_ld=no
13901 +echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
13902 +echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
13903 +with_gnu_ld=$lt_cv_prog_gnu_ld
13906 +echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
13907 +echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
13908 +if test "${lt_cv_ld_reload_flag+set}" = set; then
13909 + echo $ECHO_N "(cached) $ECHO_C" >&6
13911 + lt_cv_ld_reload_flag='-r'
13913 +echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
13914 +echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
13915 +reload_flag=$lt_cv_ld_reload_flag
13916 +case $reload_flag in
13918 +*) reload_flag=" $reload_flag" ;;
13920 +reload_cmds='$LD$reload_flag -o $output$reload_objs'
13923 + if test "$GCC" = yes; then
13924 + reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
13926 + reload_cmds='$LD$reload_flag -o $output$reload_objs'
13931 +echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
13932 +echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
13933 +if test "${lt_cv_path_NM+set}" = set; then
13934 + echo $ECHO_N "(cached) $ECHO_C" >&6
13936 + if test -n "$NM"; then
13937 + # Let the user override the test.
13938 + lt_cv_path_NM="$NM"
13940 + lt_nm_to_check="${ac_tool_prefix}nm"
13941 + if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
13942 + lt_nm_to_check="$lt_nm_to_check nm"
13944 + for lt_tmp_nm in $lt_nm_to_check; do
13945 + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13946 + for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
13947 + IFS="$lt_save_ifs"
13948 + test -z "$ac_dir" && ac_dir=.
13949 + tmp_nm="$ac_dir/$lt_tmp_nm"
13950 + if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
13951 + # Check to see if the nm accepts a BSD-compat flag.
13952 + # Adding the `sed 1q' prevents false positives on HP-UX, which says:
13953 + # nm: unknown option "B" ignored
13954 + # Tru64's nm complains that /dev/null is an invalid object file
13955 + case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
13956 + */dev/null* | *'Invalid file or object type'*)
13957 + lt_cv_path_NM="$tmp_nm -B"
13961 + case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
13963 + lt_cv_path_NM="$tmp_nm -p"
13967 + lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
13968 + continue # so that we can try to find one that supports BSD flags
13975 + IFS="$lt_save_ifs"
13977 + test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
13980 +echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
13981 +echo "${ECHO_T}$lt_cv_path_NM" >&6
13982 +NM="$lt_cv_path_NM"
13984 +echo "$as_me:$LINENO: checking whether ln -s works" >&5
13985 +echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
13987 +if test "$LN_S" = "ln -s"; then
13988 + echo "$as_me:$LINENO: result: yes" >&5
13989 +echo "${ECHO_T}yes" >&6
13991 + echo "$as_me:$LINENO: result: no, using $LN_S" >&5
13992 +echo "${ECHO_T}no, using $LN_S" >&6
13995 +echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
13996 +echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
13997 +if test "${lt_cv_deplibs_check_method+set}" = set; then
13998 + echo $ECHO_N "(cached) $ECHO_C" >&6
14000 + lt_cv_file_magic_cmd='$MAGIC_CMD'
14001 +lt_cv_file_magic_test_file=
14002 +lt_cv_deplibs_check_method='unknown'
14003 +# Need to set the preceding variable on all platforms that support
14004 +# interlibrary dependencies.
14005 +# 'none' -- dependencies not supported.
14006 +# `unknown' -- same as none, but documents that we really don't know.
14007 +# 'pass_all' -- all dependencies passed with no checks.
14008 +# 'test_compile' -- check by making test program.
14009 +# 'file_magic [[regex]]' -- check by looking for files in library path
14010 +# which responds to the $file_magic_cmd with a given extended regex.
14011 +# If you have `file' or equivalent on your system and you're not sure
14012 +# whether `pass_all' will *always* work, you probably want this one.
14016 + lt_cv_deplibs_check_method=pass_all
14020 + lt_cv_deplibs_check_method=pass_all
14024 + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
14025 + lt_cv_file_magic_cmd='/usr/bin/file -L'
14026 + lt_cv_file_magic_test_file=/shlib/libc.so
14030 + # func_win32_libid is a shell function defined in ltmain.sh
14031 + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
14032 + lt_cv_file_magic_cmd='func_win32_libid'
14036 + # Base MSYS/MinGW do not provide the 'file' command needed by
14037 + # func_win32_libid shell function, so use a weaker test based on 'objdump'.
14038 + lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
14039 + lt_cv_file_magic_cmd='$OBJDUMP -f'
14042 +darwin* | rhapsody*)
14043 + lt_cv_deplibs_check_method=pass_all
14046 +freebsd* | kfreebsd*-gnu | dragonfly*)
14047 + if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
14048 + case $host_cpu in
14050 + # Not sure whether the presence of OpenBSD here was a mistake.
14051 + # Let's accept both of them until this is cleared up.
14052 + lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
14053 + lt_cv_file_magic_cmd=/usr/bin/file
14054 + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
14058 + lt_cv_deplibs_check_method=pass_all
14063 + lt_cv_deplibs_check_method=pass_all
14066 +hpux10.20* | hpux11*)
14067 + lt_cv_file_magic_cmd=/usr/bin/file
14068 + case $host_cpu in
14070 + lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
14071 + lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
14074 + lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
14075 + lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
14078 + lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
14079 + lt_cv_file_magic_test_file=/usr/lib/libc.sl
14085 + # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
14086 + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
14089 +irix5* | irix6* | nonstopux*)
14091 + *-32|*"-32 ") libmagic=32-bit;;
14092 + *-n32|*"-n32 ") libmagic=N32;;
14093 + *-64|*"-64 ") libmagic=64-bit;;
14094 + *) libmagic=never-match;;
14096 + lt_cv_deplibs_check_method=pass_all
14099 +# This must be Linux ELF.
14101 + lt_cv_deplibs_check_method=pass_all
14105 + if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
14106 + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
14108 + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
14113 + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
14114 + lt_cv_file_magic_cmd=/usr/bin/file
14115 + lt_cv_file_magic_test_file=/usr/lib/libnls.so
14119 + lt_cv_deplibs_check_method=unknown
14123 + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14124 + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
14126 + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
14130 +osf3* | osf4* | osf5*)
14131 + lt_cv_deplibs_check_method=pass_all
14135 + lt_cv_deplibs_check_method=pass_all
14139 + case $host_vendor in
14141 + 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]'
14142 + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
14145 + lt_cv_deplibs_check_method=pass_all
14148 + lt_cv_file_magic_cmd='/bin/file'
14149 + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
14152 + lt_cv_file_magic_cmd='/bin/file'
14153 + lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
14154 + lt_cv_file_magic_test_file=/lib/libc.so
14157 + lt_cv_deplibs_check_method=pass_all
14160 + lt_cv_deplibs_check_method=pass_all
14165 +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14166 + lt_cv_deplibs_check_method=pass_all
14171 +echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
14172 +echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
14173 +file_magic_cmd=$lt_cv_file_magic_cmd
14174 +deplibs_check_method=$lt_cv_deplibs_check_method
14175 +test -z "$deplibs_check_method" && deplibs_check_method=unknown
14180 +# If no C compiler was specified, use CC.
14181 +LTCC=${LTCC-"$CC"}
14183 +# If no C compiler flags were specified, use CFLAGS.
14184 +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14186 +# Allow CC to be a program name with arguments.
14190 +# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
14191 +if test "${enable_libtool_lock+set}" = set; then
14192 + enableval="$enable_libtool_lock"
14195 +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14197 +# Some flags need to be propagated to the compiler or linker for good
14198 +# libtool support.
14201 + # Find out which ABI we are using.
14202 + echo 'int i;' > conftest.$ac_ext
14203 + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14204 + (eval $ac_compile) 2>&5
14206 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
14207 + (exit $ac_status); }; then
14208 + case `/usr/bin/file conftest.$ac_objext` in
14210 + HPUX_IA64_MODE="32"
14213 + HPUX_IA64_MODE="64"
14220 + # Find out which ABI we are using.
14221 + echo '#line 3677 "configure"' > conftest.$ac_ext
14222 + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14223 + (eval $ac_compile) 2>&5
14225 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
14226 + (exit $ac_status); }; then
14227 + if test "$lt_cv_prog_gnu_ld" = yes; then
14228 + case `/usr/bin/file conftest.$ac_objext` in
14230 + LD="${LD-ld} -melf32bsmip"
14233 + LD="${LD-ld} -melf32bmipn32"
14236 + LD="${LD-ld} -melf64bmip"
14240 + case `/usr/bin/file conftest.$ac_objext` in
14242 + LD="${LD-ld} -32"
14245 + LD="${LD-ld} -n32"
14248 + LD="${LD-ld} -64"
14256 +x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
14257 + # Find out which ABI we are using.
14258 + echo 'int i;' > conftest.$ac_ext
14259 + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14260 + (eval $ac_compile) 2>&5
14262 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
14263 + (exit $ac_status); }; then
14264 + case `/usr/bin/file conftest.o` in
14268 + LD="${LD-ld} -m elf_i386"
14270 + ppc64-*linux*|powerpc64-*linux*)
14271 + LD="${LD-ld} -m elf32ppclinux"
14274 + LD="${LD-ld} -m elf_s390"
14277 + LD="${LD-ld} -m elf32_sparc"
14284 + LD="${LD-ld} -m elf_x86_64"
14286 + ppc*-*linux*|powerpc*-*linux*)
14287 + LD="${LD-ld} -m elf64ppc"
14290 + LD="${LD-ld} -m elf64_s390"
14293 + LD="${LD-ld} -m elf64_sparc"
14303 + # On SCO OpenServer 5, we need -belf to get full-featured binaries.
14304 + SAVE_CFLAGS="$CFLAGS"
14305 + CFLAGS="$CFLAGS -belf"
14306 + echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
14307 +echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
14308 +if test "${lt_cv_cc_needs_belf+set}" = set; then
14309 + echo $ECHO_N "(cached) $ECHO_C" >&6
14312 +ac_cpp='$CPP $CPPFLAGS'
14313 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14314 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14315 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
14317 + cat >conftest.$ac_ext <<_ACEOF
14320 +cat confdefs.h >>conftest.$ac_ext
14321 +cat >>conftest.$ac_ext <<_ACEOF
14322 +/* end confdefs.h. */
14332 +rm -f conftest.$ac_objext conftest$ac_exeext
14333 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14334 + (eval $ac_link) 2>conftest.er1
14336 + grep -v '^ *+' conftest.er1 >conftest.err
14337 + rm -f conftest.er1
14338 + cat conftest.err >&5
14339 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
14340 + (exit $ac_status); } &&
14341 + { ac_try='test -z "$ac_c_werror_flag"
14342 + || test ! -s conftest.err'
14343 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14344 + (eval $ac_try) 2>&5
14346 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
14347 + (exit $ac_status); }; } &&
14348 + { ac_try='test -s conftest$ac_exeext'
14349 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14350 + (eval $ac_try) 2>&5
14352 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
14353 + (exit $ac_status); }; }; then
14354 + lt_cv_cc_needs_belf=yes
14356 + echo "$as_me: failed program was:" >&5
14357 +sed 's/^/| /' conftest.$ac_ext >&5
14359 +lt_cv_cc_needs_belf=no
14361 +rm -f conftest.err conftest.$ac_objext \
14362 + conftest$ac_exeext conftest.$ac_ext
14364 +ac_cpp='$CPP $CPPFLAGS'
14365 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14366 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14367 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
14370 +echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
14371 +echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
14372 + if test x"$lt_cv_cc_needs_belf" != x"yes"; then
14373 + # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
14374 + CFLAGS="$SAVE_CFLAGS"
14378 + # Find out which ABI we are using.
14379 + echo 'int i;' > conftest.$ac_ext
14380 + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14381 + (eval $ac_compile) 2>&5
14383 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
14384 + (exit $ac_status); }; then
14385 + case `/usr/bin/file conftest.o` in
14387 + case $lt_cv_prog_gnu_ld in
14388 + yes*) LD="${LD-ld} -m elf64_sparc" ;;
14389 + *) LD="${LD-ld} -64" ;;
14400 +need_locks="$enable_libtool_lock"
14404 +ac_cpp='$CPP $CPPFLAGS'
14405 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14406 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14407 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
14408 +echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
14409 +echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
14410 +# On Suns, sometimes $CPP names a directory.
14411 +if test -n "$CPP" && test -d "$CPP"; then
14414 +if test -z "$CPP"; then
14415 + if test "${ac_cv_prog_CPP+set}" = set; then
14416 + echo $ECHO_N "(cached) $ECHO_C" >&6
14418 + # Double quotes because CPP needs to be expanded
14419 + for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
14421 + ac_preproc_ok=false
14422 +for ac_c_preproc_warn_flag in '' yes
14424 + # Use a header file that comes with gcc, so configuring glibc
14425 + # with a fresh cross-compiler works.
14426 + # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14427 + # <limits.h> exists even on freestanding compilers.
14428 + # On the NeXT, cc -E runs the code through the compiler's parser,
14429 + # not just through cpp. "Syntax error" is here to catch this case.
14430 + cat >conftest.$ac_ext <<_ACEOF
14433 +cat confdefs.h >>conftest.$ac_ext
14434 +cat >>conftest.$ac_ext <<_ACEOF
14435 +/* end confdefs.h. */
14437 +# include <limits.h>
14439 +# include <assert.h>
14443 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14444 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14446 + grep -v '^ *+' conftest.er1 >conftest.err
14447 + rm -f conftest.er1
14448 + cat conftest.err >&5
14449 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
14450 + (exit $ac_status); } >/dev/null; then
14451 + if test -s conftest.err; then
14452 + ac_cpp_err=$ac_c_preproc_warn_flag
14453 + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14460 +if test -z "$ac_cpp_err"; then
14463 + echo "$as_me: failed program was:" >&5
14464 +sed 's/^/| /' conftest.$ac_ext >&5
14466 + # Broken: fails on valid input.
14469 +rm -f conftest.err conftest.$ac_ext
14471 + # OK, works on sane cases. Now check whether non-existent headers
14472 + # can be detected and how.
14473 + cat >conftest.$ac_ext <<_ACEOF
14476 +cat confdefs.h >>conftest.$ac_ext
14477 +cat >>conftest.$ac_ext <<_ACEOF
14478 +/* end confdefs.h. */
14479 +#include <ac_nonexistent.h>
14481 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14482 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14484 + grep -v '^ *+' conftest.er1 >conftest.err
14485 + rm -f conftest.er1
14486 + cat conftest.err >&5
14487 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
14488 + (exit $ac_status); } >/dev/null; then
14489 + if test -s conftest.err; then
14490 + ac_cpp_err=$ac_c_preproc_warn_flag
14491 + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14498 +if test -z "$ac_cpp_err"; then
14499 + # Broken: success on invalid input.
14502 + echo "$as_me: failed program was:" >&5
14503 +sed 's/^/| /' conftest.$ac_ext >&5
14505 + # Passes both tests.
14509 +rm -f conftest.err conftest.$ac_ext
14512 +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14513 +rm -f conftest.err conftest.$ac_ext
14514 +if $ac_preproc_ok; then
14519 + ac_cv_prog_CPP=$CPP
14522 + CPP=$ac_cv_prog_CPP
14524 + ac_cv_prog_CPP=$CPP
14526 +echo "$as_me:$LINENO: result: $CPP" >&5
14527 +echo "${ECHO_T}$CPP" >&6
14528 +ac_preproc_ok=false
14529 +for ac_c_preproc_warn_flag in '' yes
14531 + # Use a header file that comes with gcc, so configuring glibc
14532 + # with a fresh cross-compiler works.
14533 + # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14534 + # <limits.h> exists even on freestanding compilers.
14535 + # On the NeXT, cc -E runs the code through the compiler's parser,
14536 + # not just through cpp. "Syntax error" is here to catch this case.
14537 + cat >conftest.$ac_ext <<_ACEOF
14540 +cat confdefs.h >>conftest.$ac_ext
14541 +cat >>conftest.$ac_ext <<_ACEOF
14542 +/* end confdefs.h. */
14544 +# include <limits.h>
14546 +# include <assert.h>
14550 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14551 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14553 + grep -v '^ *+' conftest.er1 >conftest.err
14554 + rm -f conftest.er1
14555 + cat conftest.err >&5
14556 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
14557 + (exit $ac_status); } >/dev/null; then
14558 + if test -s conftest.err; then
14559 + ac_cpp_err=$ac_c_preproc_warn_flag
14560 + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14567 +if test -z "$ac_cpp_err"; then
14570 + echo "$as_me: failed program was:" >&5
14571 +sed 's/^/| /' conftest.$ac_ext >&5
14573 + # Broken: fails on valid input.
14576 +rm -f conftest.err conftest.$ac_ext
14578 + # OK, works on sane cases. Now check whether non-existent headers
14579 + # can be detected and how.
14580 + cat >conftest.$ac_ext <<_ACEOF
14583 +cat confdefs.h >>conftest.$ac_ext
14584 +cat >>conftest.$ac_ext <<_ACEOF
14585 +/* end confdefs.h. */
14586 +#include <ac_nonexistent.h>
14588 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14589 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14591 + grep -v '^ *+' conftest.er1 >conftest.err
14592 + rm -f conftest.er1
14593 + cat conftest.err >&5
14594 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
14595 + (exit $ac_status); } >/dev/null; then
14596 + if test -s conftest.err; then
14597 + ac_cpp_err=$ac_c_preproc_warn_flag
14598 + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14605 +if test -z "$ac_cpp_err"; then
14606 + # Broken: success on invalid input.
14609 + echo "$as_me: failed program was:" >&5
14610 +sed 's/^/| /' conftest.$ac_ext >&5
14612 + # Passes both tests.
14616 +rm -f conftest.err conftest.$ac_ext
14619 +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14620 +rm -f conftest.err conftest.$ac_ext
14621 +if $ac_preproc_ok; then
14624 + { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
14625 +See \`config.log' for more details." >&5
14626 +echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
14627 +See \`config.log' for more details." >&2;}
14628 + { (exit 1); exit 1; }; }
14632 +ac_cpp='$CPP $CPPFLAGS'
14633 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14634 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14635 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
14638 +echo "$as_me:$LINENO: checking for ANSI C header files" >&5
14639 +echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
14640 +if test "${ac_cv_header_stdc+set}" = set; then
14641 + echo $ECHO_N "(cached) $ECHO_C" >&6
14643 + cat >conftest.$ac_ext <<_ACEOF
14646 +cat confdefs.h >>conftest.$ac_ext
14647 +cat >>conftest.$ac_ext <<_ACEOF
14648 +/* end confdefs.h. */
14649 +#include <stdlib.h>
14650 +#include <stdarg.h>
14651 +#include <string.h>
14652 +#include <float.h>
14662 +rm -f conftest.$ac_objext
14663 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14664 + (eval $ac_compile) 2>conftest.er1
14666 + grep -v '^ *+' conftest.er1 >conftest.err
14667 + rm -f conftest.er1
14668 + cat conftest.err >&5
14669 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
14670 + (exit $ac_status); } &&
14671 + { ac_try='test -z "$ac_c_werror_flag"
14672 + || test ! -s conftest.err'
14673 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14674 + (eval $ac_try) 2>&5
14676 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
14677 + (exit $ac_status); }; } &&
14678 + { ac_try='test -s conftest.$ac_objext'
14679 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14680 + (eval $ac_try) 2>&5
14682 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
14683 + (exit $ac_status); }; }; then
14684 + ac_cv_header_stdc=yes
14686 + echo "$as_me: failed program was:" >&5
14687 +sed 's/^/| /' conftest.$ac_ext >&5
14689 +ac_cv_header_stdc=no
14691 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14693 +if test $ac_cv_header_stdc = yes; then
14694 + # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14695 + cat >conftest.$ac_ext <<_ACEOF
14698 +cat confdefs.h >>conftest.$ac_ext
14699 +cat >>conftest.$ac_ext <<_ACEOF
14700 +/* end confdefs.h. */
14701 +#include <string.h>
14704 +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14705 + $EGREP "memchr" >/dev/null 2>&1; then
14708 + ac_cv_header_stdc=no
14714 +if test $ac_cv_header_stdc = yes; then
14715 + # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14716 + cat >conftest.$ac_ext <<_ACEOF
14719 +cat confdefs.h >>conftest.$ac_ext
14720 +cat >>conftest.$ac_ext <<_ACEOF
14721 +/* end confdefs.h. */
14722 +#include <stdlib.h>
14725 +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14726 + $EGREP "free" >/dev/null 2>&1; then
14729 + ac_cv_header_stdc=no
14735 +if test $ac_cv_header_stdc = yes; then
14736 + # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14737 + if test "$cross_compiling" = yes; then
14740 + cat >conftest.$ac_ext <<_ACEOF
14743 +cat confdefs.h >>conftest.$ac_ext
14744 +cat >>conftest.$ac_ext <<_ACEOF
14745 +/* end confdefs.h. */
14746 +#include <ctype.h>
14747 +#if ((' ' & 0x0FF) == 0x020)
14748 +# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14749 +# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14751 +# define ISLOWER(c) \
14752 + (('a' <= (c) && (c) <= 'i') \
14753 + || ('j' <= (c) && (c) <= 'r') \
14754 + || ('s' <= (c) && (c) <= 'z'))
14755 +# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14758 +#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14763 + for (i = 0; i < 256; i++)
14764 + if (XOR (islower (i), ISLOWER (i))
14765 + || toupper (i) != TOUPPER (i))
14770 +rm -f conftest$ac_exeext
14771 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14772 + (eval $ac_link) 2>&5
14774 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
14775 + (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14776 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14777 + (eval $ac_try) 2>&5
14779 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
14780 + (exit $ac_status); }; }; then
14783 + echo "$as_me: program exited with status $ac_status" >&5
14784 +echo "$as_me: failed program was:" >&5
14785 +sed 's/^/| /' conftest.$ac_ext >&5
14787 +( exit $ac_status )
14788 +ac_cv_header_stdc=no
14790 +rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14794 +echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
14795 +echo "${ECHO_T}$ac_cv_header_stdc" >&6
14796 +if test $ac_cv_header_stdc = yes; then
14798 +cat >>confdefs.h <<\_ACEOF
14799 +#define STDC_HEADERS 1
14804 +# On IRIX 5.3, sys/types and inttypes.h are conflicting.
14814 +for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
14815 + inttypes.h stdint.h unistd.h
14817 +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14818 +echo "$as_me:$LINENO: checking for $ac_header" >&5
14819 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14820 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
14821 + echo $ECHO_N "(cached) $ECHO_C" >&6
14823 + cat >conftest.$ac_ext <<_ACEOF
14826 +cat confdefs.h >>conftest.$ac_ext
14827 +cat >>conftest.$ac_ext <<_ACEOF
14828 +/* end confdefs.h. */
14829 +$ac_includes_default
14831 +#include <$ac_header>
14833 +rm -f conftest.$ac_objext
14834 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14835 + (eval $ac_compile) 2>conftest.er1
14837 + grep -v '^ *+' conftest.er1 >conftest.err
14838 + rm -f conftest.er1
14839 + cat conftest.err >&5
14840 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
14841 + (exit $ac_status); } &&
14842 + { ac_try='test -z "$ac_c_werror_flag"
14843 + || test ! -s conftest.err'
14844 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14845 + (eval $ac_try) 2>&5
14847 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
14848 + (exit $ac_status); }; } &&
14849 + { ac_try='test -s conftest.$ac_objext'
14850 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14851 + (eval $ac_try) 2>&5
14853 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
14854 + (exit $ac_status); }; }; then
14855 + eval "$as_ac_Header=yes"
14857 + echo "$as_me: failed program was:" >&5
14858 +sed 's/^/| /' conftest.$ac_ext >&5
14860 +eval "$as_ac_Header=no"
14862 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14864 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14865 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14866 +if test `eval echo '${'$as_ac_Header'}'` = yes; then
14867 + cat >>confdefs.h <<_ACEOF
14868 +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14877 +for ac_header in dlfcn.h
14879 +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14880 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
14881 + echo "$as_me:$LINENO: checking for $ac_header" >&5
14882 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14883 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
14884 + echo $ECHO_N "(cached) $ECHO_C" >&6
14886 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14887 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14889 + # Is the header compilable?
14890 +echo "$as_me:$LINENO: checking $ac_header usability" >&5
14891 +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14892 +cat >conftest.$ac_ext <<_ACEOF
14895 +cat confdefs.h >>conftest.$ac_ext
14896 +cat >>conftest.$ac_ext <<_ACEOF
14897 +/* end confdefs.h. */
14898 +$ac_includes_default
14899 +#include <$ac_header>
14901 +rm -f conftest.$ac_objext
14902 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14903 + (eval $ac_compile) 2>conftest.er1
14905 + grep -v '^ *+' conftest.er1 >conftest.err
14906 + rm -f conftest.er1
14907 + cat conftest.err >&5
14908 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
14909 + (exit $ac_status); } &&
14910 + { ac_try='test -z "$ac_c_werror_flag"
14911 + || test ! -s conftest.err'
14912 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14913 + (eval $ac_try) 2>&5
14915 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
14916 + (exit $ac_status); }; } &&
14917 + { ac_try='test -s conftest.$ac_objext'
14918 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14919 + (eval $ac_try) 2>&5
14921 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
14922 + (exit $ac_status); }; }; then
14923 + ac_header_compiler=yes
14925 + echo "$as_me: failed program was:" >&5
14926 +sed 's/^/| /' conftest.$ac_ext >&5
14928 +ac_header_compiler=no
14930 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14931 +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14932 +echo "${ECHO_T}$ac_header_compiler" >&6
14934 +# Is the header present?
14935 +echo "$as_me:$LINENO: checking $ac_header presence" >&5
14936 +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14937 +cat >conftest.$ac_ext <<_ACEOF
14940 +cat confdefs.h >>conftest.$ac_ext
14941 +cat >>conftest.$ac_ext <<_ACEOF
14942 +/* end confdefs.h. */
14943 +#include <$ac_header>
14945 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14946 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14948 + grep -v '^ *+' conftest.er1 >conftest.err
14949 + rm -f conftest.er1
14950 + cat conftest.err >&5
14951 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
14952 + (exit $ac_status); } >/dev/null; then
14953 + if test -s conftest.err; then
14954 + ac_cpp_err=$ac_c_preproc_warn_flag
14955 + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14962 +if test -z "$ac_cpp_err"; then
14963 + ac_header_preproc=yes
14965 + echo "$as_me: failed program was:" >&5
14966 +sed 's/^/| /' conftest.$ac_ext >&5
14968 + ac_header_preproc=no
14970 +rm -f conftest.err conftest.$ac_ext
14971 +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14972 +echo "${ECHO_T}$ac_header_preproc" >&6
14974 +# So? What about this header?
14975 +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14977 + { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14978 +echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14979 + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14980 +echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14981 + ac_header_preproc=yes
14984 + { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14985 +echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14986 + { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14987 +echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14988 + { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14989 +echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14990 + { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14991 +echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14992 + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14993 +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14994 + { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14995 +echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14998 +## ------------------------------------------- ##
14999 +## Report this to the Autotoolized Lua lists. ##
15000 +## ------------------------------------------- ##
15003 + sed "s/^/$as_me: WARNING: /" >&2
15006 +echo "$as_me:$LINENO: checking for $ac_header" >&5
15007 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15008 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
15009 + echo $ECHO_N "(cached) $ECHO_C" >&6
15011 + eval "$as_ac_Header=\$ac_header_preproc"
15013 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15014 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15017 +if test `eval echo '${'$as_ac_Header'}'` = yes; then
15018 + cat >>confdefs.h <<_ACEOF
15019 +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15027 +ac_cpp='$CXXCPP $CPPFLAGS'
15028 +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15029 +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15030 +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15031 +if test -n "$ac_tool_prefix"; then
15032 + for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
15034 + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
15035 +set dummy $ac_tool_prefix$ac_prog; ac_word=$2
15036 +echo "$as_me:$LINENO: checking for $ac_word" >&5
15037 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15038 +if test "${ac_cv_prog_CXX+set}" = set; then
15039 + echo $ECHO_N "(cached) $ECHO_C" >&6
15041 + if test -n "$CXX"; then
15042 + ac_cv_prog_CXX="$CXX" # Let the user override the test.
15044 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15045 +for as_dir in $PATH
15048 + test -z "$as_dir" && as_dir=.
15049 + for ac_exec_ext in '' $ac_executable_extensions; do
15050 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15051 + ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
15052 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15060 +CXX=$ac_cv_prog_CXX
15061 +if test -n "$CXX"; then
15062 + echo "$as_me:$LINENO: result: $CXX" >&5
15063 +echo "${ECHO_T}$CXX" >&6
15065 + echo "$as_me:$LINENO: result: no" >&5
15066 +echo "${ECHO_T}no" >&6
15069 + test -n "$CXX" && break
15072 +if test -z "$CXX"; then
15074 + for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
15076 + # Extract the first word of "$ac_prog", so it can be a program name with args.
15077 +set dummy $ac_prog; ac_word=$2
15078 +echo "$as_me:$LINENO: checking for $ac_word" >&5
15079 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15080 +if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
15081 + echo $ECHO_N "(cached) $ECHO_C" >&6
15083 + if test -n "$ac_ct_CXX"; then
15084 + ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
15086 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15087 +for as_dir in $PATH
15090 + test -z "$as_dir" && as_dir=.
15091 + for ac_exec_ext in '' $ac_executable_extensions; do
15092 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15093 + ac_cv_prog_ac_ct_CXX="$ac_prog"
15094 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15102 +ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
15103 +if test -n "$ac_ct_CXX"; then
15104 + echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
15105 +echo "${ECHO_T}$ac_ct_CXX" >&6
15107 + echo "$as_me:$LINENO: result: no" >&5
15108 +echo "${ECHO_T}no" >&6
15111 + test -n "$ac_ct_CXX" && break
15113 +test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
15119 +# Provide some information about the compiler.
15120 +echo "$as_me:$LINENO:" \
15121 + "checking for C++ compiler version" >&5
15122 +ac_compiler=`set X $ac_compile; echo $2`
15123 +{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
15124 + (eval $ac_compiler --version </dev/null >&5) 2>&5
15126 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
15127 + (exit $ac_status); }
15128 +{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
15129 + (eval $ac_compiler -v </dev/null >&5) 2>&5
15131 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
15132 + (exit $ac_status); }
15133 +{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
15134 + (eval $ac_compiler -V </dev/null >&5) 2>&5
15136 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
15137 + (exit $ac_status); }
15139 +echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
15140 +echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
15141 +if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
15142 + echo $ECHO_N "(cached) $ECHO_C" >&6
15144 + cat >conftest.$ac_ext <<_ACEOF
15147 +cat confdefs.h >>conftest.$ac_ext
15148 +cat >>conftest.$ac_ext <<_ACEOF
15149 +/* end confdefs.h. */
15162 +rm -f conftest.$ac_objext
15163 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15164 + (eval $ac_compile) 2>conftest.er1
15166 + grep -v '^ *+' conftest.er1 >conftest.err
15167 + rm -f conftest.er1
15168 + cat conftest.err >&5
15169 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
15170 + (exit $ac_status); } &&
15171 + { ac_try='test -z "$ac_cxx_werror_flag"
15172 + || test ! -s conftest.err'
15173 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15174 + (eval $ac_try) 2>&5
15176 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
15177 + (exit $ac_status); }; } &&
15178 + { ac_try='test -s conftest.$ac_objext'
15179 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15180 + (eval $ac_try) 2>&5
15182 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
15183 + (exit $ac_status); }; }; then
15184 + ac_compiler_gnu=yes
15186 + echo "$as_me: failed program was:" >&5
15187 +sed 's/^/| /' conftest.$ac_ext >&5
15189 +ac_compiler_gnu=no
15191 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15192 +ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
15195 +echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
15196 +echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
15197 +GXX=`test $ac_compiler_gnu = yes && echo yes`
15198 +ac_test_CXXFLAGS=${CXXFLAGS+set}
15199 +ac_save_CXXFLAGS=$CXXFLAGS
15201 +echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
15202 +echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
15203 +if test "${ac_cv_prog_cxx_g+set}" = set; then
15204 + echo $ECHO_N "(cached) $ECHO_C" >&6
15206 + cat >conftest.$ac_ext <<_ACEOF
15209 +cat confdefs.h >>conftest.$ac_ext
15210 +cat >>conftest.$ac_ext <<_ACEOF
15211 +/* end confdefs.h. */
15221 +rm -f conftest.$ac_objext
15222 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15223 + (eval $ac_compile) 2>conftest.er1
15225 + grep -v '^ *+' conftest.er1 >conftest.err
15226 + rm -f conftest.er1
15227 + cat conftest.err >&5
15228 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
15229 + (exit $ac_status); } &&
15230 + { ac_try='test -z "$ac_cxx_werror_flag"
15231 + || test ! -s conftest.err'
15232 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15233 + (eval $ac_try) 2>&5
15235 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
15236 + (exit $ac_status); }; } &&
15237 + { ac_try='test -s conftest.$ac_objext'
15238 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15239 + (eval $ac_try) 2>&5
15241 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
15242 + (exit $ac_status); }; }; then
15243 + ac_cv_prog_cxx_g=yes
15245 + echo "$as_me: failed program was:" >&5
15246 +sed 's/^/| /' conftest.$ac_ext >&5
15248 +ac_cv_prog_cxx_g=no
15250 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15252 +echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
15253 +echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
15254 +if test "$ac_test_CXXFLAGS" = set; then
15255 + CXXFLAGS=$ac_save_CXXFLAGS
15256 +elif test $ac_cv_prog_cxx_g = yes; then
15257 + if test "$GXX" = yes; then
15258 + CXXFLAGS="-g -O2"
15263 + if test "$GXX" = yes; then
15269 +for ac_declaration in \
15271 + 'extern "C" void std::exit (int) throw (); using std::exit;' \
15272 + 'extern "C" void std::exit (int); using std::exit;' \
15273 + 'extern "C" void exit (int) throw ();' \
15274 + 'extern "C" void exit (int);' \
15275 + 'void exit (int);'
15277 + cat >conftest.$ac_ext <<_ACEOF
15280 +cat confdefs.h >>conftest.$ac_ext
15281 +cat >>conftest.$ac_ext <<_ACEOF
15282 +/* end confdefs.h. */
15284 +#include <stdlib.h>
15293 +rm -f conftest.$ac_objext
15294 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15295 + (eval $ac_compile) 2>conftest.er1
15297 + grep -v '^ *+' conftest.er1 >conftest.err
15298 + rm -f conftest.er1
15299 + cat conftest.err >&5
15300 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
15301 + (exit $ac_status); } &&
15302 + { ac_try='test -z "$ac_cxx_werror_flag"
15303 + || test ! -s conftest.err'
15304 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15305 + (eval $ac_try) 2>&5
15307 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
15308 + (exit $ac_status); }; } &&
15309 + { ac_try='test -s conftest.$ac_objext'
15310 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15311 + (eval $ac_try) 2>&5
15313 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
15314 + (exit $ac_status); }; }; then
15317 + echo "$as_me: failed program was:" >&5
15318 +sed 's/^/| /' conftest.$ac_ext >&5
15322 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15323 + cat >conftest.$ac_ext <<_ACEOF
15326 +cat confdefs.h >>conftest.$ac_ext
15327 +cat >>conftest.$ac_ext <<_ACEOF
15328 +/* end confdefs.h. */
15338 +rm -f conftest.$ac_objext
15339 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15340 + (eval $ac_compile) 2>conftest.er1
15342 + grep -v '^ *+' conftest.er1 >conftest.err
15343 + rm -f conftest.er1
15344 + cat conftest.err >&5
15345 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
15346 + (exit $ac_status); } &&
15347 + { ac_try='test -z "$ac_cxx_werror_flag"
15348 + || test ! -s conftest.err'
15349 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15350 + (eval $ac_try) 2>&5
15352 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
15353 + (exit $ac_status); }; } &&
15354 + { ac_try='test -s conftest.$ac_objext'
15355 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15356 + (eval $ac_try) 2>&5
15358 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
15359 + (exit $ac_status); }; }; then
15362 + echo "$as_me: failed program was:" >&5
15363 +sed 's/^/| /' conftest.$ac_ext >&5
15366 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15369 +if test -n "$ac_declaration"; then
15370 + echo '#ifdef __cplusplus' >>confdefs.h
15371 + echo $ac_declaration >>confdefs.h
15372 + echo '#endif' >>confdefs.h
15376 +ac_cpp='$CXXCPP $CPPFLAGS'
15377 +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15378 +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15379 +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15381 +depcc="$CXX" am_compiler_list=
15383 +echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
15384 +echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
15385 +if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
15386 + echo $ECHO_N "(cached) $ECHO_C" >&6
15388 + if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
15389 + # We make a subdir and do the tests there. Otherwise we can end up
15390 + # making bogus files that we don't know about and never remove. For
15391 + # instance it was reported that on HP-UX the gcc test will end up
15392 + # making a dummy file named `D' -- because `-MD' means `put the output
15394 + mkdir conftest.dir
15395 + # Copy depcomp to subdir because otherwise we won't find it if we're
15396 + # using a relative directory.
15397 + cp "$am_depcomp" conftest.dir
15399 + # We will build objects and dependencies in a subdirectory because
15400 + # it helps to detect inapplicable dependency modes. For instance
15401 + # both Tru64's cc and ICC support -MD to output dependencies as a
15402 + # side effect of compilation, but ICC will put the dependencies in
15403 + # the current directory while Tru64 will put them in the object
15407 + am_cv_CXX_dependencies_compiler_type=none
15408 + if test "$am_compiler_list" = ""; then
15409 + am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
15411 + for depmode in $am_compiler_list; do
15412 + # Setup a source with many dependencies, because some compilers
15413 + # like to wrap large dependency lists on column 80 (with \), and
15414 + # we should not choose a depcomp mode which is confused by this.
15416 + # We need to recreate these files for each test, as the compiler may
15417 + # overwrite some of them when testing with obscure command lines.
15418 + # This happens at least with the AIX C compiler.
15419 + : > sub/conftest.c
15420 + for i in 1 2 3 4 5 6; do
15421 + echo '#include "conftst'$i'.h"' >> sub/conftest.c
15422 + # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
15423 + # Solaris 8's {/usr,}/bin/sh.
15424 + touch sub/conftst$i.h
15426 + echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
15430 + # after this tag, mechanisms are not by side-effect, so they'll
15431 + # only be used when explicitly requested
15432 + if test "x$enable_dependency_tracking" = xyes; then
15440 + # We check with `-c' and `-o' for the sake of the "dashmstdout"
15441 + # mode. It turns out that the SunPro C++ compiler does not properly
15442 + # handle `-M -o', and we need to detect this.
15443 + if depmode=$depmode \
15444 + source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
15445 + depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
15446 + $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
15447 + >/dev/null 2>conftest.err &&
15448 + grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
15449 + grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
15450 + ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
15451 + # icc doesn't choke on unknown options, it will just issue warnings
15452 + # or remarks (even with -Werror). So we grep stderr for any message
15453 + # that says an option was ignored or not supported.
15454 + # When given -MP, icc 7.0 and 7.1 complain thusly:
15455 + # icc: Command line warning: ignoring option '-M'; no argument required
15456 + # The diagnosis changed in icc 8.0:
15457 + # icc: Command line remark: option '-MP' not supported
15458 + if (grep 'ignoring option' conftest.err ||
15459 + grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
15460 + am_cv_CXX_dependencies_compiler_type=$depmode
15467 + rm -rf conftest.dir
15469 + am_cv_CXX_dependencies_compiler_type=none
15473 +echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
15474 +echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
15475 +CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
15480 + test "x$enable_dependency_tracking" != xno \
15481 + && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
15482 + am__fastdepCXX_TRUE=
15483 + am__fastdepCXX_FALSE='#'
15485 + am__fastdepCXX_TRUE='#'
15486 + am__fastdepCXX_FALSE=
15492 +if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
15493 + ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
15494 + (test "X$CXX" != "Xg++"))) ; then
15496 +ac_cpp='$CXXCPP $CPPFLAGS'
15497 +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15498 +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15499 +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15500 +echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
15501 +echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
15502 +if test -z "$CXXCPP"; then
15503 + if test "${ac_cv_prog_CXXCPP+set}" = set; then
15504 + echo $ECHO_N "(cached) $ECHO_C" >&6
15506 + # Double quotes because CXXCPP needs to be expanded
15507 + for CXXCPP in "$CXX -E" "/lib/cpp"
15509 + ac_preproc_ok=false
15510 +for ac_cxx_preproc_warn_flag in '' yes
15512 + # Use a header file that comes with gcc, so configuring glibc
15513 + # with a fresh cross-compiler works.
15514 + # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15515 + # <limits.h> exists even on freestanding compilers.
15516 + # On the NeXT, cc -E runs the code through the compiler's parser,
15517 + # not just through cpp. "Syntax error" is here to catch this case.
15518 + cat >conftest.$ac_ext <<_ACEOF
15521 +cat confdefs.h >>conftest.$ac_ext
15522 +cat >>conftest.$ac_ext <<_ACEOF
15523 +/* end confdefs.h. */
15525 +# include <limits.h>
15527 +# include <assert.h>
15531 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15532 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15534 + grep -v '^ *+' conftest.er1 >conftest.err
15535 + rm -f conftest.er1
15536 + cat conftest.err >&5
15537 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
15538 + (exit $ac_status); } >/dev/null; then
15539 + if test -s conftest.err; then
15540 + ac_cpp_err=$ac_cxx_preproc_warn_flag
15541 + ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
15548 +if test -z "$ac_cpp_err"; then
15551 + echo "$as_me: failed program was:" >&5
15552 +sed 's/^/| /' conftest.$ac_ext >&5
15554 + # Broken: fails on valid input.
15557 +rm -f conftest.err conftest.$ac_ext
15559 + # OK, works on sane cases. Now check whether non-existent headers
15560 + # can be detected and how.
15561 + cat >conftest.$ac_ext <<_ACEOF
15564 +cat confdefs.h >>conftest.$ac_ext
15565 +cat >>conftest.$ac_ext <<_ACEOF
15566 +/* end confdefs.h. */
15567 +#include <ac_nonexistent.h>
15569 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15570 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15572 + grep -v '^ *+' conftest.er1 >conftest.err
15573 + rm -f conftest.er1
15574 + cat conftest.err >&5
15575 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
15576 + (exit $ac_status); } >/dev/null; then
15577 + if test -s conftest.err; then
15578 + ac_cpp_err=$ac_cxx_preproc_warn_flag
15579 + ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
15586 +if test -z "$ac_cpp_err"; then
15587 + # Broken: success on invalid input.
15590 + echo "$as_me: failed program was:" >&5
15591 +sed 's/^/| /' conftest.$ac_ext >&5
15593 + # Passes both tests.
15597 +rm -f conftest.err conftest.$ac_ext
15600 +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15601 +rm -f conftest.err conftest.$ac_ext
15602 +if $ac_preproc_ok; then
15607 + ac_cv_prog_CXXCPP=$CXXCPP
15610 + CXXCPP=$ac_cv_prog_CXXCPP
15612 + ac_cv_prog_CXXCPP=$CXXCPP
15614 +echo "$as_me:$LINENO: result: $CXXCPP" >&5
15615 +echo "${ECHO_T}$CXXCPP" >&6
15616 +ac_preproc_ok=false
15617 +for ac_cxx_preproc_warn_flag in '' yes
15619 + # Use a header file that comes with gcc, so configuring glibc
15620 + # with a fresh cross-compiler works.
15621 + # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15622 + # <limits.h> exists even on freestanding compilers.
15623 + # On the NeXT, cc -E runs the code through the compiler's parser,
15624 + # not just through cpp. "Syntax error" is here to catch this case.
15625 + cat >conftest.$ac_ext <<_ACEOF
15628 +cat confdefs.h >>conftest.$ac_ext
15629 +cat >>conftest.$ac_ext <<_ACEOF
15630 +/* end confdefs.h. */
15632 +# include <limits.h>
15634 +# include <assert.h>
15638 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15639 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15641 + grep -v '^ *+' conftest.er1 >conftest.err
15642 + rm -f conftest.er1
15643 + cat conftest.err >&5
15644 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
15645 + (exit $ac_status); } >/dev/null; then
15646 + if test -s conftest.err; then
15647 + ac_cpp_err=$ac_cxx_preproc_warn_flag
15648 + ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
15655 +if test -z "$ac_cpp_err"; then
15658 + echo "$as_me: failed program was:" >&5
15659 +sed 's/^/| /' conftest.$ac_ext >&5
15661 + # Broken: fails on valid input.
15664 +rm -f conftest.err conftest.$ac_ext
15666 + # OK, works on sane cases. Now check whether non-existent headers
15667 + # can be detected and how.
15668 + cat >conftest.$ac_ext <<_ACEOF
15671 +cat confdefs.h >>conftest.$ac_ext
15672 +cat >>conftest.$ac_ext <<_ACEOF
15673 +/* end confdefs.h. */
15674 +#include <ac_nonexistent.h>
15676 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15677 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15679 + grep -v '^ *+' conftest.er1 >conftest.err
15680 + rm -f conftest.er1
15681 + cat conftest.err >&5
15682 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
15683 + (exit $ac_status); } >/dev/null; then
15684 + if test -s conftest.err; then
15685 + ac_cpp_err=$ac_cxx_preproc_warn_flag
15686 + ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
15693 +if test -z "$ac_cpp_err"; then
15694 + # Broken: success on invalid input.
15697 + echo "$as_me: failed program was:" >&5
15698 +sed 's/^/| /' conftest.$ac_ext >&5
15700 + # Passes both tests.
15704 +rm -f conftest.err conftest.$ac_ext
15707 +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15708 +rm -f conftest.err conftest.$ac_ext
15709 +if $ac_preproc_ok; then
15712 + { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
15713 +See \`config.log' for more details." >&5
15714 +echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
15715 +See \`config.log' for more details." >&2;}
15716 + { (exit 1); exit 1; }; }
15720 +ac_cpp='$CXXCPP $CPPFLAGS'
15721 +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15722 +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15723 +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15729 +ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
15730 +ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15731 +ac_compiler_gnu=$ac_cv_f77_compiler_gnu
15732 +if test -n "$ac_tool_prefix"; then
15733 + for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
15735 + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
15736 +set dummy $ac_tool_prefix$ac_prog; ac_word=$2
15737 +echo "$as_me:$LINENO: checking for $ac_word" >&5
15738 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15739 +if test "${ac_cv_prog_F77+set}" = set; then
15740 + echo $ECHO_N "(cached) $ECHO_C" >&6
15742 + if test -n "$F77"; then
15743 + ac_cv_prog_F77="$F77" # Let the user override the test.
15745 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15746 +for as_dir in $PATH
15749 + test -z "$as_dir" && as_dir=.
15750 + for ac_exec_ext in '' $ac_executable_extensions; do
15751 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15752 + ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
15753 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15761 +F77=$ac_cv_prog_F77
15762 +if test -n "$F77"; then
15763 + echo "$as_me:$LINENO: result: $F77" >&5
15764 +echo "${ECHO_T}$F77" >&6
15766 + echo "$as_me:$LINENO: result: no" >&5
15767 +echo "${ECHO_T}no" >&6
15770 + test -n "$F77" && break
15773 +if test -z "$F77"; then
15775 + for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
15777 + # Extract the first word of "$ac_prog", so it can be a program name with args.
15778 +set dummy $ac_prog; ac_word=$2
15779 +echo "$as_me:$LINENO: checking for $ac_word" >&5
15780 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15781 +if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
15782 + echo $ECHO_N "(cached) $ECHO_C" >&6
15784 + if test -n "$ac_ct_F77"; then
15785 + ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
15787 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15788 +for as_dir in $PATH
15791 + test -z "$as_dir" && as_dir=.
15792 + for ac_exec_ext in '' $ac_executable_extensions; do
15793 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15794 + ac_cv_prog_ac_ct_F77="$ac_prog"
15795 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15803 +ac_ct_F77=$ac_cv_prog_ac_ct_F77
15804 +if test -n "$ac_ct_F77"; then
15805 + echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
15806 +echo "${ECHO_T}$ac_ct_F77" >&6
15808 + echo "$as_me:$LINENO: result: no" >&5
15809 +echo "${ECHO_T}no" >&6
15812 + test -n "$ac_ct_F77" && break
15819 +# Provide some information about the compiler.
15820 +echo "$as_me:5276:" \
15821 + "checking for Fortran 77 compiler version" >&5
15822 +ac_compiler=`set X $ac_compile; echo $2`
15823 +{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
15824 + (eval $ac_compiler --version </dev/null >&5) 2>&5
15826 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
15827 + (exit $ac_status); }
15828 +{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
15829 + (eval $ac_compiler -v </dev/null >&5) 2>&5
15831 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
15832 + (exit $ac_status); }
15833 +{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
15834 + (eval $ac_compiler -V </dev/null >&5) 2>&5
15836 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
15837 + (exit $ac_status); }
15840 +# If we don't use `.F' as extension, the preprocessor is not run on the
15841 +# input file. (Note that this only needs to work for GNU compilers.)
15842 +ac_save_ext=$ac_ext
15844 +echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
15845 +echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
15846 +if test "${ac_cv_f77_compiler_gnu+set}" = set; then
15847 + echo $ECHO_N "(cached) $ECHO_C" >&6
15849 + cat >conftest.$ac_ext <<_ACEOF
15857 +rm -f conftest.$ac_objext
15858 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15859 + (eval $ac_compile) 2>conftest.er1
15861 + grep -v '^ *+' conftest.er1 >conftest.err
15862 + rm -f conftest.er1
15863 + cat conftest.err >&5
15864 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
15865 + (exit $ac_status); } &&
15866 + { ac_try='test -z "$ac_f77_werror_flag"
15867 + || test ! -s conftest.err'
15868 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15869 + (eval $ac_try) 2>&5
15871 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
15872 + (exit $ac_status); }; } &&
15873 + { ac_try='test -s conftest.$ac_objext'
15874 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15875 + (eval $ac_try) 2>&5
15877 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
15878 + (exit $ac_status); }; }; then
15879 + ac_compiler_gnu=yes
15881 + echo "$as_me: failed program was:" >&5
15882 +sed 's/^/| /' conftest.$ac_ext >&5
15884 +ac_compiler_gnu=no
15886 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15887 +ac_cv_f77_compiler_gnu=$ac_compiler_gnu
15890 +echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
15891 +echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
15892 +ac_ext=$ac_save_ext
15893 +ac_test_FFLAGS=${FFLAGS+set}
15894 +ac_save_FFLAGS=$FFLAGS
15896 +echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
15897 +echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
15898 +if test "${ac_cv_prog_f77_g+set}" = set; then
15899 + echo $ECHO_N "(cached) $ECHO_C" >&6
15902 +cat >conftest.$ac_ext <<_ACEOF
15907 +rm -f conftest.$ac_objext
15908 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15909 + (eval $ac_compile) 2>conftest.er1
15911 + grep -v '^ *+' conftest.er1 >conftest.err
15912 + rm -f conftest.er1
15913 + cat conftest.err >&5
15914 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
15915 + (exit $ac_status); } &&
15916 + { ac_try='test -z "$ac_f77_werror_flag"
15917 + || test ! -s conftest.err'
15918 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15919 + (eval $ac_try) 2>&5
15921 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
15922 + (exit $ac_status); }; } &&
15923 + { ac_try='test -s conftest.$ac_objext'
15924 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15925 + (eval $ac_try) 2>&5
15927 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
15928 + (exit $ac_status); }; }; then
15929 + ac_cv_prog_f77_g=yes
15931 + echo "$as_me: failed program was:" >&5
15932 +sed 's/^/| /' conftest.$ac_ext >&5
15934 +ac_cv_prog_f77_g=no
15936 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15939 +echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
15940 +echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
15941 +if test "$ac_test_FFLAGS" = set; then
15942 + FFLAGS=$ac_save_FFLAGS
15943 +elif test $ac_cv_prog_f77_g = yes; then
15944 + if test "x$ac_cv_f77_compiler_gnu" = xyes; then
15950 + if test "x$ac_cv_f77_compiler_gnu" = xyes; then
15957 +G77=`test $ac_compiler_gnu = yes && echo yes`
15959 +ac_cpp='$CPP $CPPFLAGS'
15960 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15961 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15962 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
15966 +# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
15968 +# find the maximum length of command line arguments
15969 +echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
15970 +echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
15971 +if test "${lt_cv_sys_max_cmd_len+set}" = set; then
15972 + echo $ECHO_N "(cached) $ECHO_C" >&6
15975 + teststring="ABCD"
15977 + case $build_os in
15979 + # On DJGPP, this test can blow up pretty badly due to problems in libc
15980 + # (any single argument exceeding 2000 bytes causes a buffer overrun
15981 + # during glob expansion). Even if it were fixed, the result of this
15982 + # check would be larger than it should be.
15983 + lt_cv_sys_max_cmd_len=12288; # 12K is about right
15987 + # Under GNU Hurd, this test is not required because there is
15988 + # no limit to the length of command line arguments.
15989 + # Libtool will interpret -1 as no limit whatsoever
15990 + lt_cv_sys_max_cmd_len=-1;
15993 + cygwin* | mingw*)
15994 + # On Win9x/ME, this test blows up -- it succeeds, but takes
15995 + # about 5 minutes as the teststring grows exponentially.
15996 + # Worse, since 9x/ME are not pre-emptively multitasking,
15997 + # you end up with a "frozen" computer, even though with patience
15998 + # the test eventually succeeds (with a max line length of 256k).
15999 + # Instead, let's just punt: use the minimum linelength reported by
16000 + # all of the supported platforms: 8192 (on NT/2K/XP).
16001 + lt_cv_sys_max_cmd_len=8192;
16005 + # On AmigaOS with pdksh, this test takes hours, literally.
16006 + # So we just punt and use a minimum line length of 8192.
16007 + lt_cv_sys_max_cmd_len=8192;
16010 + netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
16011 + # This has been around since 386BSD, at least. Likely further.
16012 + if test -x /sbin/sysctl; then
16013 + lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
16014 + elif test -x /usr/sbin/sysctl; then
16015 + lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
16017 + lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
16019 + # And add a safety zone
16020 + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
16021 + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
16025 + # We know the value 262144 and hardcode it with a safety zone (like BSD)
16026 + lt_cv_sys_max_cmd_len=196608
16030 + # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
16031 + # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
16032 + # nice to cause kernel panics so lets avoid the loop below.
16033 + # First set a reasonable default.
16034 + lt_cv_sys_max_cmd_len=16384
16036 + if test -x /sbin/sysconfig; then
16037 + case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
16038 + *1*) lt_cv_sys_max_cmd_len=-1 ;;
16043 + lt_cv_sys_max_cmd_len=102400
16045 + sysv5* | sco5v6* | sysv4.2uw2*)
16046 + kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
16047 + if test -n "$kargmax"; then
16048 + lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
16050 + lt_cv_sys_max_cmd_len=32768
16054 + # If test is not a shell built-in, we'll probably end up computing a
16055 + # maximum length that is only half of the actual maximum length, but
16057 + SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
16058 + while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
16059 + = "XX$teststring") >/dev/null 2>&1 &&
16060 + new_result=`expr "X$teststring" : ".*" 2>&1` &&
16061 + lt_cv_sys_max_cmd_len=$new_result &&
16062 + test $i != 17 # 1/2 MB should be enough
16065 + teststring=$teststring$teststring
16068 + # Add a significant safety factor because C++ compilers can tack on massive
16069 + # amounts of additional arguments before passing them to the linker.
16070 + # It appears as though 1/2 is a usable value.
16071 + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
16077 +if test -n $lt_cv_sys_max_cmd_len ; then
16078 + echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
16079 +echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
16081 + echo "$as_me:$LINENO: result: none" >&5
16082 +echo "${ECHO_T}none" >&6
16088 +# Check for command to grab the raw symbol name followed by C symbol from nm.
16089 +echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
16090 +echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
16091 +if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
16092 + echo $ECHO_N "(cached) $ECHO_C" >&6
16095 +# These are sane defaults that work on at least a few old systems.
16096 +# [They come from Ultrix. What could be older than Ultrix?!! ;)]
16098 +# Character class describing NM global symbol codes.
16099 +symcode='[BCDEGRST]'
16101 +# Regexp to match symbols that can be accessed directly from C.
16102 +sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
16104 +# Transform an extracted symbol line into a proper C declaration
16105 +lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
16107 +# Transform an extracted symbol line into symbol name and symbol address
16108 +lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
16110 +# Define system-specific variables.
16115 +cygwin* | mingw* | pw32*)
16116 + symcode='[ABCDGISTW]'
16118 +hpux*) # Its linker distinguishes data from code symbols
16119 + if test "$host_cpu" = ia64; then
16120 + symcode='[ABCDEGRST]'
16122 + lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
16123 + lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
16126 + if test "$host_cpu" = ia64; then
16127 + symcode='[ABCDGIRSTW]'
16128 + lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
16129 + lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
16132 +irix* | nonstopux*)
16133 + symcode='[BCDEGRST]'
16136 + symcode='[BCDEGQRST]'
16147 +sysv5* | sco5v6* | unixware* | OpenUNIX*)
16151 + symcode='[DFNSTU]'
16155 +# Handle CRLF in mingw tool chain
16159 + opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
16163 +# If we're using GNU nm, then use its standard symbol codes.
16164 +case `$NM -V 2>&1` in
16165 +*GNU* | *'with BFD'*)
16166 + symcode='[ABCDGIRSTW]' ;;
16169 +# Try without a prefix undercore, then with it.
16170 +for ac_symprfx in "" "_"; do
16172 + # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
16173 + symxfrm="\\1 $ac_symprfx\\2 \\2"
16175 + # Write the raw and C identifiers.
16176 + lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
16178 + # Check to see that the pipe works correctly.
16182 + cat > conftest.$ac_ext <<EOF
16183 +#ifdef __cplusplus
16187 +void nm_test_func(){}
16188 +#ifdef __cplusplus
16191 +int main(){nm_test_var='a';nm_test_func();return(0);}
16194 + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16195 + (eval $ac_compile) 2>&5
16197 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
16198 + (exit $ac_status); }; then
16199 + # Now try to grab the symbols.
16200 + nlist=conftest.nm
16201 + if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
16202 + (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
16204 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
16205 + (exit $ac_status); } && test -s "$nlist"; then
16206 + # Try sorting and uniquifying the output.
16207 + if sort "$nlist" | uniq > "$nlist"T; then
16208 + mv -f "$nlist"T "$nlist"
16213 + # Make sure that we snagged all the symbols we need.
16214 + if grep ' nm_test_var$' "$nlist" >/dev/null; then
16215 + if grep ' nm_test_func$' "$nlist" >/dev/null; then
16216 + cat <<EOF > conftest.$ac_ext
16217 +#ifdef __cplusplus
16222 + # Now generate the symbol file.
16223 + eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
16225 + cat <<EOF >> conftest.$ac_ext
16226 +#if defined (__STDC__) && __STDC__
16227 +# define lt_ptr_t void *
16229 +# define lt_ptr_t char *
16233 +/* The mapping between symbol names and symbols. */
16235 + const char *name;
16236 + lt_ptr_t address;
16238 +lt_preloaded_symbols[] =
16241 + $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
16242 + cat <<\EOF >> conftest.$ac_ext
16243 + {0, (lt_ptr_t) 0}
16246 +#ifdef __cplusplus
16250 + # Now try linking the two files.
16251 + mv conftest.$ac_objext conftstm.$ac_objext
16252 + lt_save_LIBS="$LIBS"
16253 + lt_save_CFLAGS="$CFLAGS"
16254 + LIBS="conftstm.$ac_objext"
16255 + CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
16256 + if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16257 + (eval $ac_link) 2>&5
16259 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
16260 + (exit $ac_status); } && test -s conftest${ac_exeext}; then
16263 + LIBS="$lt_save_LIBS"
16264 + CFLAGS="$lt_save_CFLAGS"
16266 + echo "cannot find nm_test_func in $nlist" >&5
16269 + echo "cannot find nm_test_var in $nlist" >&5
16272 + echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
16275 + echo "$progname: failed program was:" >&5
16276 + cat conftest.$ac_ext >&5
16278 + rm -f conftest* conftst*
16280 + # Do not use the global_symbol_pipe unless it works.
16281 + if test "$pipe_works" = yes; then
16284 + lt_cv_sys_global_symbol_pipe=
16290 +if test -z "$lt_cv_sys_global_symbol_pipe"; then
16291 + lt_cv_sys_global_symbol_to_cdecl=
16293 +if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
16294 + echo "$as_me:$LINENO: result: failed" >&5
16295 +echo "${ECHO_T}failed" >&6
16297 + echo "$as_me:$LINENO: result: ok" >&5
16298 +echo "${ECHO_T}ok" >&6
16301 +echo "$as_me:$LINENO: checking for objdir" >&5
16302 +echo $ECHO_N "checking for objdir... $ECHO_C" >&6
16303 +if test "${lt_cv_objdir+set}" = set; then
16304 + echo $ECHO_N "(cached) $ECHO_C" >&6
16306 + rm -f .libs 2>/dev/null
16307 +mkdir .libs 2>/dev/null
16308 +if test -d .libs; then
16309 + lt_cv_objdir=.libs
16311 + # MS-DOS does not allow filenames that begin with a dot.
16312 + lt_cv_objdir=_libs
16314 +rmdir .libs 2>/dev/null
16316 +echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
16317 +echo "${ECHO_T}$lt_cv_objdir" >&6
16318 +objdir=$lt_cv_objdir
16326 + # AIX sometimes has problems with the GCC collect2 program. For some
16327 + # reason, if we set the COLLECT_NAMES environment variable, the problems
16328 + # vanish in a puff of smoke.
16329 + if test "X${COLLECT_NAMES+set}" != Xset; then
16331 + export COLLECT_NAMES
16336 +# Sed substitution that helps us do robust quoting. It backslashifies
16337 +# metacharacters that are still active within double-quoted strings.
16338 +Xsed='sed -e 1s/^X//'
16339 +sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
16341 +# Same as above, but do not quote variable references.
16342 +double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
16344 +# Sed substitution to delay expansion of an escaped shell variable in a
16345 +# double_quote_subst'ed string.
16346 +delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
16348 +# Sed substitution to avoid accidental globbing in evaled expressions
16349 +no_glob_subst='s/\*/\\\*/g'
16354 +# Global variables:
16355 +default_ofile=libtool
16356 +can_build_shared=yes
16358 +# All known linkers require a `.a' archive for static linking (except MSVC,
16359 +# which needs '.lib').
16361 +ltmain="$ac_aux_dir/ltmain.sh"
16362 +ofile="$default_ofile"
16363 +with_gnu_ld="$lt_cv_prog_gnu_ld"
16365 +if test -n "$ac_tool_prefix"; then
16366 + # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
16367 +set dummy ${ac_tool_prefix}ar; ac_word=$2
16368 +echo "$as_me:$LINENO: checking for $ac_word" >&5
16369 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16370 +if test "${ac_cv_prog_AR+set}" = set; then
16371 + echo $ECHO_N "(cached) $ECHO_C" >&6
16373 + if test -n "$AR"; then
16374 + ac_cv_prog_AR="$AR" # Let the user override the test.
16376 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16377 +for as_dir in $PATH
16380 + test -z "$as_dir" && as_dir=.
16381 + for ac_exec_ext in '' $ac_executable_extensions; do
16382 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16383 + ac_cv_prog_AR="${ac_tool_prefix}ar"
16384 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16393 +if test -n "$AR"; then
16394 + echo "$as_me:$LINENO: result: $AR" >&5
16395 +echo "${ECHO_T}$AR" >&6
16397 + echo "$as_me:$LINENO: result: no" >&5
16398 +echo "${ECHO_T}no" >&6
16402 +if test -z "$ac_cv_prog_AR"; then
16404 + # Extract the first word of "ar", so it can be a program name with args.
16405 +set dummy ar; ac_word=$2
16406 +echo "$as_me:$LINENO: checking for $ac_word" >&5
16407 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16408 +if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
16409 + echo $ECHO_N "(cached) $ECHO_C" >&6
16411 + if test -n "$ac_ct_AR"; then
16412 + ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
16414 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16415 +for as_dir in $PATH
16418 + test -z "$as_dir" && as_dir=.
16419 + for ac_exec_ext in '' $ac_executable_extensions; do
16420 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16421 + ac_cv_prog_ac_ct_AR="ar"
16422 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16428 + test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
16431 +ac_ct_AR=$ac_cv_prog_ac_ct_AR
16432 +if test -n "$ac_ct_AR"; then
16433 + echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
16434 +echo "${ECHO_T}$ac_ct_AR" >&6
16436 + echo "$as_me:$LINENO: result: no" >&5
16437 +echo "${ECHO_T}no" >&6
16442 + AR="$ac_cv_prog_AR"
16445 +if test -n "$ac_tool_prefix"; then
16446 + # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
16447 +set dummy ${ac_tool_prefix}ranlib; ac_word=$2
16448 +echo "$as_me:$LINENO: checking for $ac_word" >&5
16449 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16450 +if test "${ac_cv_prog_RANLIB+set}" = set; then
16451 + echo $ECHO_N "(cached) $ECHO_C" >&6
16453 + if test -n "$RANLIB"; then
16454 + ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
16456 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16457 +for as_dir in $PATH
16460 + test -z "$as_dir" && as_dir=.
16461 + for ac_exec_ext in '' $ac_executable_extensions; do
16462 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16463 + ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
16464 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16472 +RANLIB=$ac_cv_prog_RANLIB
16473 +if test -n "$RANLIB"; then
16474 + echo "$as_me:$LINENO: result: $RANLIB" >&5
16475 +echo "${ECHO_T}$RANLIB" >&6
16477 + echo "$as_me:$LINENO: result: no" >&5
16478 +echo "${ECHO_T}no" >&6
16482 +if test -z "$ac_cv_prog_RANLIB"; then
16483 + ac_ct_RANLIB=$RANLIB
16484 + # Extract the first word of "ranlib", so it can be a program name with args.
16485 +set dummy ranlib; ac_word=$2
16486 +echo "$as_me:$LINENO: checking for $ac_word" >&5
16487 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16488 +if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
16489 + echo $ECHO_N "(cached) $ECHO_C" >&6
16491 + if test -n "$ac_ct_RANLIB"; then
16492 + ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
16494 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16495 +for as_dir in $PATH
16498 + test -z "$as_dir" && as_dir=.
16499 + for ac_exec_ext in '' $ac_executable_extensions; do
16500 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16501 + ac_cv_prog_ac_ct_RANLIB="ranlib"
16502 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16508 + test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
16511 +ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
16512 +if test -n "$ac_ct_RANLIB"; then
16513 + echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
16514 +echo "${ECHO_T}$ac_ct_RANLIB" >&6
16516 + echo "$as_me:$LINENO: result: no" >&5
16517 +echo "${ECHO_T}no" >&6
16520 + RANLIB=$ac_ct_RANLIB
16522 + RANLIB="$ac_cv_prog_RANLIB"
16525 +if test -n "$ac_tool_prefix"; then
16526 + # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
16527 +set dummy ${ac_tool_prefix}strip; ac_word=$2
16528 +echo "$as_me:$LINENO: checking for $ac_word" >&5
16529 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16530 +if test "${ac_cv_prog_STRIP+set}" = set; then
16531 + echo $ECHO_N "(cached) $ECHO_C" >&6
16533 + if test -n "$STRIP"; then
16534 + ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
16536 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16537 +for as_dir in $PATH
16540 + test -z "$as_dir" && as_dir=.
16541 + for ac_exec_ext in '' $ac_executable_extensions; do
16542 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16543 + ac_cv_prog_STRIP="${ac_tool_prefix}strip"
16544 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16552 +STRIP=$ac_cv_prog_STRIP
16553 +if test -n "$STRIP"; then
16554 + echo "$as_me:$LINENO: result: $STRIP" >&5
16555 +echo "${ECHO_T}$STRIP" >&6
16557 + echo "$as_me:$LINENO: result: no" >&5
16558 +echo "${ECHO_T}no" >&6
16562 +if test -z "$ac_cv_prog_STRIP"; then
16563 + ac_ct_STRIP=$STRIP
16564 + # Extract the first word of "strip", so it can be a program name with args.
16565 +set dummy strip; ac_word=$2
16566 +echo "$as_me:$LINENO: checking for $ac_word" >&5
16567 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16568 +if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
16569 + echo $ECHO_N "(cached) $ECHO_C" >&6
16571 + if test -n "$ac_ct_STRIP"; then
16572 + ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
16574 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16575 +for as_dir in $PATH
16578 + test -z "$as_dir" && as_dir=.
16579 + for ac_exec_ext in '' $ac_executable_extensions; do
16580 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16581 + ac_cv_prog_ac_ct_STRIP="strip"
16582 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16588 + test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
16591 +ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
16592 +if test -n "$ac_ct_STRIP"; then
16593 + echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
16594 +echo "${ECHO_T}$ac_ct_STRIP" >&6
16596 + echo "$as_me:$LINENO: result: no" >&5
16597 +echo "${ECHO_T}no" >&6
16600 + STRIP=$ac_ct_STRIP
16602 + STRIP="$ac_cv_prog_STRIP"
16607 +old_CFLAGS="$CFLAGS"
16609 +# Set sane defaults for various variables
16610 +test -z "$AR" && AR=ar
16611 +test -z "$AR_FLAGS" && AR_FLAGS=cru
16612 +test -z "$AS" && AS=as
16613 +test -z "$CC" && CC=cc
16614 +test -z "$LTCC" && LTCC=$CC
16615 +test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
16616 +test -z "$DLLTOOL" && DLLTOOL=dlltool
16617 +test -z "$LD" && LD=ld
16618 +test -z "$LN_S" && LN_S="ln -s"
16619 +test -z "$MAGIC_CMD" && MAGIC_CMD=file
16620 +test -z "$NM" && NM=nm
16621 +test -z "$SED" && SED=sed
16622 +test -z "$OBJDUMP" && OBJDUMP=objdump
16623 +test -z "$RANLIB" && RANLIB=:
16624 +test -z "$STRIP" && STRIP=:
16625 +test -z "$ac_objext" && ac_objext=o
16627 +# Determine commands to create old-style static archives.
16628 +old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
16629 +old_postinstall_cmds='chmod 644 $oldlib'
16630 +old_postuninstall_cmds=
16632 +if test -n "$RANLIB"; then
16635 + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
16638 + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
16641 + old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
16644 +for cc_temp in $compiler""; do
16646 + compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16647 + distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16652 +cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16655 +# Only perform the check for file, if the check method requires it
16656 +case $deplibs_check_method in
16658 + if test "$file_magic_cmd" = '$MAGIC_CMD'; then
16659 + echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
16660 +echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
16661 +if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
16662 + echo $ECHO_N "(cached) $ECHO_C" >&6
16664 + case $MAGIC_CMD in
16665 +[\\/*] | ?:[\\/]*)
16666 + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
16669 + lt_save_MAGIC_CMD="$MAGIC_CMD"
16670 + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16671 + ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
16672 + for ac_dir in $ac_dummy; do
16673 + IFS="$lt_save_ifs"
16674 + test -z "$ac_dir" && ac_dir=.
16675 + if test -f $ac_dir/${ac_tool_prefix}file; then
16676 + lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
16677 + if test -n "$file_magic_test_file"; then
16678 + case $deplibs_check_method in
16680 + file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
16681 + MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16682 + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
16683 + $EGREP "$file_magic_regex" > /dev/null; then
16688 +*** Warning: the command libtool uses to detect shared libraries,
16689 +*** $file_magic_cmd, produces output that libtool cannot recognize.
16690 +*** The result is that libtool may fail to recognize shared libraries
16691 +*** as such. This will affect the creation of libtool libraries that
16692 +*** depend on shared libraries, but programs linked with such libtool
16693 +*** libraries will work regardless of this problem. Nevertheless, you
16694 +*** may want to report the problem to your system manager and/or to
16695 +*** bug-libtool@gnu.org
16704 + IFS="$lt_save_ifs"
16705 + MAGIC_CMD="$lt_save_MAGIC_CMD"
16710 +MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16711 +if test -n "$MAGIC_CMD"; then
16712 + echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
16713 +echo "${ECHO_T}$MAGIC_CMD" >&6
16715 + echo "$as_me:$LINENO: result: no" >&5
16716 +echo "${ECHO_T}no" >&6
16719 +if test -z "$lt_cv_path_MAGIC_CMD"; then
16720 + if test -n "$ac_tool_prefix"; then
16721 + echo "$as_me:$LINENO: checking for file" >&5
16722 +echo $ECHO_N "checking for file... $ECHO_C" >&6
16723 +if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
16724 + echo $ECHO_N "(cached) $ECHO_C" >&6
16726 + case $MAGIC_CMD in
16727 +[\\/*] | ?:[\\/]*)
16728 + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
16731 + lt_save_MAGIC_CMD="$MAGIC_CMD"
16732 + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16733 + ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
16734 + for ac_dir in $ac_dummy; do
16735 + IFS="$lt_save_ifs"
16736 + test -z "$ac_dir" && ac_dir=.
16737 + if test -f $ac_dir/file; then
16738 + lt_cv_path_MAGIC_CMD="$ac_dir/file"
16739 + if test -n "$file_magic_test_file"; then
16740 + case $deplibs_check_method in
16742 + file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
16743 + MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16744 + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
16745 + $EGREP "$file_magic_regex" > /dev/null; then
16750 +*** Warning: the command libtool uses to detect shared libraries,
16751 +*** $file_magic_cmd, produces output that libtool cannot recognize.
16752 +*** The result is that libtool may fail to recognize shared libraries
16753 +*** as such. This will affect the creation of libtool libraries that
16754 +*** depend on shared libraries, but programs linked with such libtool
16755 +*** libraries will work regardless of this problem. Nevertheless, you
16756 +*** may want to report the problem to your system manager and/or to
16757 +*** bug-libtool@gnu.org
16766 + IFS="$lt_save_ifs"
16767 + MAGIC_CMD="$lt_save_MAGIC_CMD"
16772 +MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16773 +if test -n "$MAGIC_CMD"; then
16774 + echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
16775 +echo "${ECHO_T}$MAGIC_CMD" >&6
16777 + echo "$as_me:$LINENO: result: no" >&5
16778 +echo "${ECHO_T}no" >&6
16791 +enable_win32_dll=no
16793 +# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
16794 +if test "${enable_libtool_lock+set}" = set; then
16795 + enableval="$enable_libtool_lock"
16798 +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
16801 +# Check whether --with-pic or --without-pic was given.
16802 +if test "${with_pic+set}" = set; then
16803 + withval="$with_pic"
16804 + pic_mode="$withval"
16808 +test -z "$pic_mode" && pic_mode=default
16810 +# Check if we have a version mismatch between libtool.m4 and ltmain.sh.
16812 +# Note: This should be in AC_LIBTOOL_SETUP, _after_ $ltmain have been defined.
16813 +# We also should do it _before_ AC_LIBTOOL_LANG_C_CONFIG that actually
16814 +# calls AC_LIBTOOL_CONFIG and creates libtool.
16816 +echo "$as_me:$LINENO: checking for correct ltmain.sh version" >&5
16817 +echo $ECHO_N "checking for correct ltmain.sh version... $ECHO_C" >&6
16818 +if test "x$ltmain" = "x" ; then
16819 + echo "$as_me:$LINENO: result: no" >&5
16820 +echo "${ECHO_T}no" >&6
16821 + { { echo "$as_me:$LINENO: error:
16823 +*** [Gentoo] sanity check failed! ***
16824 +*** \$ltmain is not defined, please check the patch for consistency! ***
16826 +echo "$as_me: error:
16828 +*** [Gentoo] sanity check failed! ***
16829 +*** \$ltmain is not defined, please check the patch for consistency! ***
16831 + { (exit 1); exit 1; }; }
16833 +gentoo_lt_version="1.5.22"
16834 +gentoo_ltmain_version=`sed -n '/^[ ]*VERSION=/{s/^[ ]*VERSION=//;p;q;}' "$ltmain"`
16835 +if test "x$gentoo_lt_version" != "x$gentoo_ltmain_version" ; then
16836 + echo "$as_me:$LINENO: result: no" >&5
16837 +echo "${ECHO_T}no" >&6
16838 + { { echo "$as_me:$LINENO: error:
16840 +*** [Gentoo] sanity check failed! ***
16841 +*** libtool.m4 and ltmain.sh have a version mismatch! ***
16842 +*** (libtool.m4 = $gentoo_lt_version, ltmain.sh = $gentoo_ltmain_version) ***
16846 + libtoolize --copy --force
16848 +if appropriate, please contact the maintainer of this
16849 +package (or your distribution) for help.
16851 +echo "$as_me: error:
16853 +*** [Gentoo] sanity check failed! ***
16854 +*** libtool.m4 and ltmain.sh have a version mismatch! ***
16855 +*** (libtool.m4 = $gentoo_lt_version, ltmain.sh = $gentoo_ltmain_version) ***
16859 + libtoolize --copy --force
16861 +if appropriate, please contact the maintainer of this
16862 +package (or your distribution) for help.
16864 + { (exit 1); exit 1; }; }
16866 + echo "$as_me:$LINENO: result: yes" >&5
16867 +echo "${ECHO_T}yes" >&6
16871 +# Use C for the default configuration in the libtool script
16875 +ac_cpp='$CPP $CPPFLAGS'
16876 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16877 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16878 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
16881 +# Source file extension for C test sources.
16884 +# Object file extension for compiled C test sources.
16888 +# Code to be used in simple compile tests
16889 +lt_simple_compile_test_code="int some_variable = 0;\n"
16891 +# Code to be used in simple link tests
16892 +lt_simple_link_test_code='int main(){return(0);}\n'
16895 +# If no C compiler was specified, use CC.
16896 +LTCC=${LTCC-"$CC"}
16898 +# If no C compiler flags were specified, use CFLAGS.
16899 +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16901 +# Allow CC to be a program name with arguments.
16905 +# save warnings/boilerplate of simple test code
16906 +ac_outfile=conftest.$ac_objext
16907 +printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16908 +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16909 +_lt_compiler_boilerplate=`cat conftest.err`
16912 +ac_outfile=conftest.$ac_objext
16913 +printf "$lt_simple_link_test_code" >conftest.$ac_ext
16914 +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16915 +_lt_linker_boilerplate=`cat conftest.err`
16920 +lt_prog_compiler_no_builtin_flag=
16922 +if test "$GCC" = yes; then
16923 + lt_prog_compiler_no_builtin_flag=' -fno-builtin'
16926 +echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16927 +echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
16928 +if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16929 + echo $ECHO_N "(cached) $ECHO_C" >&6
16931 + lt_cv_prog_compiler_rtti_exceptions=no
16932 + ac_outfile=conftest.$ac_objext
16933 + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16934 + lt_compiler_flag="-fno-rtti -fno-exceptions"
16935 + # Insert the option either (1) after the last *FLAGS variable, or
16936 + # (2) before a word containing "conftest.", or (3) at the end.
16937 + # Note that $ac_compile itself does not contain backslashes and begins
16938 + # with a dollar sign (not a hyphen), so the echo should work correctly.
16939 + # The option is referenced via a variable to avoid confusing sed.
16940 + lt_compile=`echo "$ac_compile" | $SED \
16941 + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16942 + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16943 + -e 's:$: $lt_compiler_flag:'`
16944 + (eval echo "\"\$as_me:6400: $lt_compile\"" >&5)
16945 + (eval "$lt_compile" 2>conftest.err)
16947 + cat conftest.err >&5
16948 + echo "$as_me:6404: \$? = $ac_status" >&5
16949 + if (exit $ac_status) && test -s "$ac_outfile"; then
16950 + # The compiler can only warn and ignore the option if not recognized
16951 + # So say no if there are warnings other than the usual output.
16952 + $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16953 + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16954 + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16955 + lt_cv_prog_compiler_rtti_exceptions=yes
16961 +echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16962 +echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
16964 +if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16965 + lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
16972 +lt_prog_compiler_wl=
16973 +lt_prog_compiler_pic=
16974 +lt_prog_compiler_static=
16976 +echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16977 +echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16979 + if test "$GCC" = yes; then
16980 + lt_prog_compiler_wl='-Wl,'
16981 + lt_prog_compiler_static='-static'
16985 + # All AIX code is PIC.
16986 + if test "$host_cpu" = ia64; then
16987 + # AIX 5 now supports IA64 processor
16988 + lt_prog_compiler_static='-Bstatic'
16993 + # FIXME: we need at least 68020 code to build shared libraries, but
16994 + # adding the `-m68020' flag to GCC prevents building anything better,
16995 + # like `-m68040'.
16996 + lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
16999 + beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17000 + # PIC is the default for these OSes.
17003 + mingw* | pw32* | os2*)
17004 + # This hack is so that the source file can tell whether it is being
17005 + # built for inclusion in a dll (and should export symbols for example).
17006 + lt_prog_compiler_pic='-DDLL_EXPORT'
17009 + darwin* | rhapsody*)
17010 + # PIC is the default on this platform
17011 + # Common symbols not allowed in MH_DYLIB files
17012 + lt_prog_compiler_pic='-fno-common'
17016 + # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17017 + # Instead, we relocate shared libraries at runtime.
17021 + # Just because we use GCC doesn't mean we suddenly get shared libraries
17022 + # on systems that don't support them.
17023 + lt_prog_compiler_can_build_shared=no
17028 + if test -d /usr/nec; then
17029 + lt_prog_compiler_pic=-Kconform_pic
17034 + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17035 + # not for PA HP-UX.
17036 + case $host_cpu in
17041 + lt_prog_compiler_pic='-fPIC'
17047 + lt_prog_compiler_pic='-fPIC'
17051 + # PORTME Check for flag to pass linker flags through the system compiler.
17054 + lt_prog_compiler_wl='-Wl,'
17055 + if test "$host_cpu" = ia64; then
17056 + # AIX 5 now supports IA64 processor
17057 + lt_prog_compiler_static='-Bstatic'
17059 + lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
17063 + # PIC is the default on this platform
17064 + # Common symbols not allowed in MH_DYLIB files
17065 + case $cc_basename in
17067 + lt_prog_compiler_pic='-qnocommon'
17068 + lt_prog_compiler_wl='-Wl,'
17073 + mingw* | pw32* | os2*)
17074 + # This hack is so that the source file can tell whether it is being
17075 + # built for inclusion in a dll (and should export symbols for example).
17076 + lt_prog_compiler_pic='-DDLL_EXPORT'
17079 + hpux9* | hpux10* | hpux11*)
17080 + lt_prog_compiler_wl='-Wl,'
17081 + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17082 + # not for PA HP-UX.
17083 + case $host_cpu in
17088 + lt_prog_compiler_pic='+Z'
17091 + # Is there a better lt_prog_compiler_static that works with the bundled CC?
17092 + lt_prog_compiler_static='${wl}-a ${wl}archive'
17095 + irix5* | irix6* | nonstopux*)
17096 + lt_prog_compiler_wl='-Wl,'
17097 + # PIC (with -KPIC) is the default.
17098 + lt_prog_compiler_static='-non_shared'
17102 + lt_prog_compiler_pic='-KPIC'
17103 + lt_prog_compiler_static='-Bstatic'
17107 + case $cc_basename in
17109 + lt_prog_compiler_wl='-Wl,'
17110 + lt_prog_compiler_pic='-KPIC'
17111 + lt_prog_compiler_static='-static'
17113 + pgcc* | pgf77* | pgf90* | pgf95*)
17114 + # Portland Group compilers (*not* the Pentium gcc compiler,
17115 + # which looks to be a dead project)
17116 + lt_prog_compiler_wl='-Wl,'
17117 + lt_prog_compiler_pic='-fpic'
17118 + lt_prog_compiler_static='-Bstatic'
17121 + lt_prog_compiler_wl='-Wl,'
17122 + # All Alpha code is PIC.
17123 + lt_prog_compiler_static='-non_shared'
17128 + osf3* | osf4* | osf5*)
17129 + lt_prog_compiler_wl='-Wl,'
17130 + # All OSF/1 code is PIC.
17131 + lt_prog_compiler_static='-non_shared'
17135 + lt_prog_compiler_pic='-KPIC'
17136 + lt_prog_compiler_static='-Bstatic'
17137 + case $cc_basename in
17138 + f77* | f90* | f95*)
17139 + lt_prog_compiler_wl='-Qoption ld ';;
17141 + lt_prog_compiler_wl='-Wl,';;
17146 + lt_prog_compiler_wl='-Qoption ld '
17147 + lt_prog_compiler_pic='-PIC'
17148 + lt_prog_compiler_static='-Bstatic'
17151 + sysv4 | sysv4.2uw2* | sysv4.3*)
17152 + lt_prog_compiler_wl='-Wl,'
17153 + lt_prog_compiler_pic='-KPIC'
17154 + lt_prog_compiler_static='-Bstatic'
17158 + if test -d /usr/nec ;then
17159 + lt_prog_compiler_pic='-Kconform_pic'
17160 + lt_prog_compiler_static='-Bstatic'
17164 + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17165 + lt_prog_compiler_wl='-Wl,'
17166 + lt_prog_compiler_pic='-KPIC'
17167 + lt_prog_compiler_static='-Bstatic'
17171 + lt_prog_compiler_wl='-Wl,'
17172 + lt_prog_compiler_can_build_shared=no
17176 + lt_prog_compiler_pic='-pic'
17177 + lt_prog_compiler_static='-Bstatic'
17181 + lt_prog_compiler_can_build_shared=no
17186 +echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
17187 +echo "${ECHO_T}$lt_prog_compiler_pic" >&6
17190 +# Check to make sure the PIC flag actually works.
17192 +if test -n "$lt_prog_compiler_pic"; then
17194 +echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
17195 +echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
17196 +if test "${lt_prog_compiler_pic_works+set}" = set; then
17197 + echo $ECHO_N "(cached) $ECHO_C" >&6
17199 + lt_prog_compiler_pic_works=no
17200 + ac_outfile=conftest.$ac_objext
17201 + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17202 + lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
17203 + # Insert the option either (1) after the last *FLAGS variable, or
17204 + # (2) before a word containing "conftest.", or (3) at the end.
17205 + # Note that $ac_compile itself does not contain backslashes and begins
17206 + # with a dollar sign (not a hyphen), so the echo should work correctly.
17207 + # The option is referenced via a variable to avoid confusing sed.
17208 + lt_compile=`echo "$ac_compile" | $SED \
17209 + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17210 + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17211 + -e 's:$: $lt_compiler_flag:'`
17212 + (eval echo "\"\$as_me:6668: $lt_compile\"" >&5)
17213 + (eval "$lt_compile" 2>conftest.err)
17215 + cat conftest.err >&5
17216 + echo "$as_me:6672: \$? = $ac_status" >&5
17217 + if (exit $ac_status) && test -s "$ac_outfile"; then
17218 + # The compiler can only warn and ignore the option if not recognized
17219 + # So say no if there are warnings other than the usual output.
17220 + $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17221 + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17222 + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17223 + lt_prog_compiler_pic_works=yes
17229 +echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
17230 +echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
17232 +if test x"$lt_prog_compiler_pic_works" = xyes; then
17233 + case $lt_prog_compiler_pic in
17235 + *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
17238 + lt_prog_compiler_pic=
17239 + lt_prog_compiler_can_build_shared=no
17244 + # For platforms which do not support PIC, -DPIC is meaningless:
17246 + lt_prog_compiler_pic=
17249 + lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
17254 +# Check to make sure the static flag actually works.
17256 +wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
17257 +echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17258 +echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
17259 +if test "${lt_prog_compiler_static_works+set}" = set; then
17260 + echo $ECHO_N "(cached) $ECHO_C" >&6
17262 + lt_prog_compiler_static_works=no
17263 + save_LDFLAGS="$LDFLAGS"
17264 + LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17265 + printf "$lt_simple_link_test_code" > conftest.$ac_ext
17266 + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17267 + # The linker can only warn and ignore the option if not recognized
17268 + # So say no if there are warnings
17269 + if test -s conftest.err; then
17270 + # Append any errors to the config.log.
17271 + cat conftest.err 1>&5
17272 + $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17273 + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17274 + if diff conftest.exp conftest.er2 >/dev/null; then
17275 + lt_prog_compiler_static_works=yes
17278 + lt_prog_compiler_static_works=yes
17282 + LDFLAGS="$save_LDFLAGS"
17285 +echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
17286 +echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
17288 +if test x"$lt_prog_compiler_static_works" = xyes; then
17291 + lt_prog_compiler_static=
17295 +echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17296 +echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
17297 +if test "${lt_cv_prog_compiler_c_o+set}" = set; then
17298 + echo $ECHO_N "(cached) $ECHO_C" >&6
17300 + lt_cv_prog_compiler_c_o=no
17301 + $rm -r conftest 2>/dev/null
17305 + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17307 + lt_compiler_flag="-o out/conftest2.$ac_objext"
17308 + # Insert the option either (1) after the last *FLAGS variable, or
17309 + # (2) before a word containing "conftest.", or (3) at the end.
17310 + # Note that $ac_compile itself does not contain backslashes and begins
17311 + # with a dollar sign (not a hyphen), so the echo should work correctly.
17312 + lt_compile=`echo "$ac_compile" | $SED \
17313 + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17314 + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17315 + -e 's:$: $lt_compiler_flag:'`
17316 + (eval echo "\"\$as_me:6772: $lt_compile\"" >&5)
17317 + (eval "$lt_compile" 2>out/conftest.err)
17319 + cat out/conftest.err >&5
17320 + echo "$as_me:6776: \$? = $ac_status" >&5
17321 + if (exit $ac_status) && test -s out/conftest2.$ac_objext
17323 + # The compiler can only warn and ignore the option if not recognized
17324 + # So say no if there are warnings
17325 + $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17326 + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17327 + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17328 + lt_cv_prog_compiler_c_o=yes
17333 + # SGI C++ compiler will create directory out/ii_files/ for
17334 + # template instantiation
17335 + test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17336 + $rm out/* && rmdir out
17342 +echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
17343 +echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
17346 +hard_links="nottested"
17347 +if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
17348 + # do not overwrite the value of need_locks provided by the user
17349 + echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17350 +echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
17353 + ln conftest.a conftest.b 2>/dev/null && hard_links=no
17355 + ln conftest.a conftest.b 2>&5 || hard_links=no
17356 + ln conftest.a conftest.b 2>/dev/null && hard_links=no
17357 + echo "$as_me:$LINENO: result: $hard_links" >&5
17358 +echo "${ECHO_T}$hard_links" >&6
17359 + if test "$hard_links" = no; then
17360 + { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17361 +echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17368 +echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17369 +echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
17372 + allow_undefined_flag=
17373 + enable_shared_with_static_runtimes=no
17375 + archive_expsym_cmds=
17376 + old_archive_From_new_cmds=
17377 + old_archive_from_expsyms_cmds=
17378 + export_dynamic_flag_spec=
17379 + whole_archive_flag_spec=
17380 + thread_safe_flag_spec=
17381 + hardcode_libdir_flag_spec=
17382 + hardcode_libdir_flag_spec_ld=
17383 + hardcode_libdir_separator=
17384 + hardcode_direct=no
17385 + hardcode_minus_L=no
17386 + hardcode_shlibpath_var=unsupported
17387 + link_all_deplibs=unknown
17388 + hardcode_automatic=no
17390 + module_expsym_cmds=
17391 + always_export_symbols=no
17392 + export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17393 + # include_expsyms should be a list of space-separated symbols to be *always*
17394 + # included in the symbol list
17396 + # exclude_expsyms can be an extended regexp of symbols to exclude
17397 + # it will be wrapped by ` (' and `)$', so one must not match beginning or
17398 + # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17399 + # as well as any symbol that contains `d'.
17400 + exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
17401 + # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17402 + # platforms (ab)use it in PIC code, but their linkers get confused if
17403 + # the symbol is explicitly referenced. Since portable code cannot
17404 + # rely on this symbol name, it's probably fine to never include it in
17405 + # preloaded symbol tables.
17406 + extract_expsyms_cmds=
17407 + # Just being paranoid about ensuring that cc_basename is set.
17408 + for cc_temp in $compiler""; do
17410 + compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17411 + distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17416 +cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17419 + cygwin* | mingw* | pw32*)
17420 + # FIXME: the MSVC++ port hasn't been tested in a loooong time
17421 + # When not using gcc, we currently assume that we are using
17422 + # Microsoft Visual C++.
17423 + if test "$GCC" != yes; then
17428 + # we just hope/assume this is gcc and not c89 (= MSVC++)
17437 + if test "$with_gnu_ld" = yes; then
17438 + # If archive_cmds runs LD, not CC, wlarc should be empty
17441 + # Set some defaults for GNU ld with shared library support. These
17442 + # are reset later if shared libraries are not supported. Putting them
17443 + # here allows them to be overridden if necessary.
17444 + runpath_var=LD_RUN_PATH
17445 + hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
17446 + export_dynamic_flag_spec='${wl}--export-dynamic'
17447 + # ancient GNU ld didn't support --whole-archive et. al.
17448 + if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17449 + whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17451 + whole_archive_flag_spec=
17453 + supports_anon_versioning=no
17454 + case `$LD -v 2>/dev/null` in
17455 + *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17456 + *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17457 + *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17458 + *\ 2.11.*) ;; # other 2.11 versions
17459 + *) supports_anon_versioning=yes ;;
17462 + # See if GNU ld supports shared libraries.
17464 + aix3* | aix4* | aix5*)
17465 + # On AIX/PPC, the GNU linker is very broken
17466 + if test "$host_cpu" != ia64; then
17470 +*** Warning: the GNU linker, at least up to release 2.9.1, is reported
17471 +*** to be unable to reliably create shared libraries on AIX.
17472 +*** Therefore, libtool is disabling shared libraries support. If you
17473 +*** really care for shared libraries, you may want to modify your PATH
17474 +*** so that a non-GNU linker is found, and then restart.
17481 + 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)'
17482 + hardcode_libdir_flag_spec='-L$libdir'
17483 + hardcode_minus_L=yes
17485 + # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17486 + # that the semantics of dynamic libraries on AmigaOS, at least up
17487 + # to version 4, is to share data among multiple programs linked
17488 + # with the same dynamic library. Since this doesn't match the
17489 + # behavior of shared libraries on other platforms, we can't use
17495 + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17496 + allow_undefined_flag=unsupported
17497 + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17498 + # support --undefined. This deserves some investigation. FIXME
17499 + archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17505 + cygwin* | mingw* | pw32*)
17506 + # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
17507 + # as there is no search path for DLLs.
17508 + hardcode_libdir_flag_spec='-L$libdir'
17509 + allow_undefined_flag=unsupported
17510 + always_export_symbols=no
17511 + enable_shared_with_static_runtimes=yes
17512 + export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17514 + if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17515 + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17516 + # If the export-symbols file already is a .def file (1st line
17517 + # is EXPORTS), use it as is; otherwise, prepend...
17518 + archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17519 + cp $export_symbols $output_objdir/$soname.def;
17521 + echo EXPORTS > $output_objdir/$soname.def;
17522 + cat $export_symbols >> $output_objdir/$soname.def;
17524 + $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17531 + hardcode_direct=no
17532 + hardcode_shlibpath_var=no
17533 + hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
17534 + export_dynamic_flag_spec='${wl}-E'
17535 + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17536 + # Instead, shared libraries are loaded at an image base (0x10000000 by
17537 + # default) and relocated if they conflict, which is a slow very memory
17538 + # consuming and fragmenting process. To avoid this, we pick a random,
17539 + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17540 + # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17541 + archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17542 + archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17546 + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17548 + case $cc_basename,$host_cpu in
17549 + pgcc*) # Portland Group C compiler
17550 + whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17551 + tmp_addflag=' $pic_flag'
17553 + pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17554 + whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17555 + tmp_addflag=' $pic_flag -Mnomain' ;;
17556 + ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17557 + tmp_addflag=' -i_dynamic' ;;
17558 + efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17559 + tmp_addflag=' -i_dynamic -nofor_main' ;;
17560 + ifc* | ifort*) # Intel Fortran compiler
17561 + tmp_addflag=' -nofor_main' ;;
17563 + archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17565 + if test $supports_anon_versioning = yes; then
17566 + archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
17567 + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17568 + $echo "local: *; };" >> $output_objdir/$libname.ver~
17569 + $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17577 + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17578 + archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17581 + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17582 + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17587 + if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17591 +*** Warning: The releases 2.8.* of the GNU linker cannot reliably
17592 +*** create shared libraries on Solaris systems. Therefore, libtool
17593 +*** is disabling shared libraries support. We urge you to upgrade GNU
17594 +*** binutils to release 2.9.1 or newer. Another option is to modify
17595 +*** your PATH or compiler configuration so that the native linker is
17596 +*** used, and then restart.
17599 + elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17600 + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17601 + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17607 + sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17608 + case `$LD -v 2>&1` in
17609 + *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17611 + cat <<_LT_EOF 1>&2
17613 +*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17614 +*** reliably create shared libraries on SCO systems. Therefore, libtool
17615 +*** is disabling shared libraries support. We urge you to upgrade GNU
17616 +*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17617 +*** your PATH or compiler configuration so that the native linker is
17618 +*** used, and then restart.
17623 + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17624 + hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17625 + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17626 + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17635 + archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17637 + hardcode_direct=yes
17638 + hardcode_shlibpath_var=no
17642 + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17643 + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17644 + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17651 + if test "$ld_shlibs" = no; then
17653 + hardcode_libdir_flag_spec=
17654 + export_dynamic_flag_spec=
17655 + whole_archive_flag_spec=
17658 + # PORTME fill in a description of your system's linker (not GNU ld)
17661 + allow_undefined_flag=unsupported
17662 + always_export_symbols=yes
17663 + 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'
17664 + # Note: this linker hardcodes the directories in LIBPATH if there
17665 + # are no directories specified by -L.
17666 + hardcode_minus_L=yes
17667 + if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17668 + # Neither direct hardcoding nor static linking is supported with a
17669 + # broken collect2.
17670 + hardcode_direct=unsupported
17675 + if test "$host_cpu" = ia64; then
17676 + # On IA64, the linker does run time linking by default, so we don't
17677 + # have to do anything special.
17678 + aix_use_runtimelinking=no
17679 + exp_sym_flag='-Bexport'
17682 + # If we're using GNU nm, then we don't want the "-C" option.
17683 + # -C means demangle to AIX nm, but means don't demangle with GNU nm
17684 + if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17685 + export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
17687 + export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
17689 + aix_use_runtimelinking=no
17691 + # Test if we are trying to use run time linking or normal
17692 + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17693 + # need to do runtime linking.
17694 + case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17695 + for ld_flag in $LDFLAGS; do
17696 + if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17697 + aix_use_runtimelinking=yes
17704 + exp_sym_flag='-bexport'
17705 + no_entry_flag='-bnoentry'
17708 + # When large executables or shared objects are built, AIX ld can
17709 + # have problems creating the table of contents. If linking a library
17710 + # or program results in "error TOC overflow" add -mminimal-toc to
17711 + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17712 + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17715 + hardcode_direct=yes
17716 + hardcode_libdir_separator=':'
17717 + link_all_deplibs=yes
17719 + if test "$GCC" = yes; then
17720 + case $host_os in aix4.[012]|aix4.[012].*)
17721 + # We only want to do this on AIX 4.2 and lower, the check
17722 + # below for broken collect2 doesn't work under 4.3+
17723 + collect2name=`${CC} -print-prog-name=collect2`
17724 + if test -f "$collect2name" && \
17725 + strings "$collect2name" | grep resolve_lib_name >/dev/null
17727 + # We have reworked collect2
17728 + hardcode_direct=yes
17730 + # We have old collect2
17731 + hardcode_direct=unsupported
17732 + # It fails to find uninstalled libraries when the uninstalled
17733 + # path is not listed in the libpath. Setting hardcode_minus_L
17734 + # to unsupported forces relinking
17735 + hardcode_minus_L=yes
17736 + hardcode_libdir_flag_spec='-L$libdir'
17737 + hardcode_libdir_separator=
17741 + shared_flag='-shared'
17742 + if test "$aix_use_runtimelinking" = yes; then
17743 + shared_flag="$shared_flag "'${wl}-G'
17747 + if test "$host_cpu" = ia64; then
17748 + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17749 + # chokes on -Wl,-G. The following line is correct:
17752 + if test "$aix_use_runtimelinking" = yes; then
17753 + shared_flag='${wl}-G'
17755 + shared_flag='${wl}-bM:SRE'
17760 + # It seems that -bexpall does not export symbols beginning with
17761 + # underscore (_), so it is better to generate a list of symbols to export.
17762 + always_export_symbols=yes
17763 + if test "$aix_use_runtimelinking" = yes; then
17764 + # Warning - without using the other runtime loading flags (-brtl),
17765 + # -berok will link without error, but may produce a broken library.
17766 + allow_undefined_flag='-berok'
17767 + # Determine the default libpath from the value encoded in an empty executable.
17768 + cat >conftest.$ac_ext <<_ACEOF
17771 +cat confdefs.h >>conftest.$ac_ext
17772 +cat >>conftest.$ac_ext <<_ACEOF
17773 +/* end confdefs.h. */
17783 +rm -f conftest.$ac_objext conftest$ac_exeext
17784 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17785 + (eval $ac_link) 2>conftest.er1
17787 + grep -v '^ *+' conftest.er1 >conftest.err
17788 + rm -f conftest.er1
17789 + cat conftest.err >&5
17790 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
17791 + (exit $ac_status); } &&
17792 + { ac_try='test -z "$ac_c_werror_flag"
17793 + || test ! -s conftest.err'
17794 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17795 + (eval $ac_try) 2>&5
17797 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
17798 + (exit $ac_status); }; } &&
17799 + { ac_try='test -s conftest$ac_exeext'
17800 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17801 + (eval $ac_try) 2>&5
17803 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
17804 + (exit $ac_status); }; }; then
17806 +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17808 +# Check for a 64-bit object if we didn't find anything.
17809 +if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17812 + echo "$as_me: failed program was:" >&5
17813 +sed 's/^/| /' conftest.$ac_ext >&5
17816 +rm -f conftest.err conftest.$ac_objext \
17817 + conftest$ac_exeext conftest.$ac_ext
17818 +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17820 + hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
17821 + archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
17823 + if test "$host_cpu" = ia64; then
17824 + hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
17825 + allow_undefined_flag="-z nodefs"
17826 + archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
17828 + # Determine the default libpath from the value encoded in an empty executable.
17829 + cat >conftest.$ac_ext <<_ACEOF
17832 +cat confdefs.h >>conftest.$ac_ext
17833 +cat >>conftest.$ac_ext <<_ACEOF
17834 +/* end confdefs.h. */
17844 +rm -f conftest.$ac_objext conftest$ac_exeext
17845 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17846 + (eval $ac_link) 2>conftest.er1
17848 + grep -v '^ *+' conftest.er1 >conftest.err
17849 + rm -f conftest.er1
17850 + cat conftest.err >&5
17851 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
17852 + (exit $ac_status); } &&
17853 + { ac_try='test -z "$ac_c_werror_flag"
17854 + || test ! -s conftest.err'
17855 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17856 + (eval $ac_try) 2>&5
17858 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
17859 + (exit $ac_status); }; } &&
17860 + { ac_try='test -s conftest$ac_exeext'
17861 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17862 + (eval $ac_try) 2>&5
17864 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
17865 + (exit $ac_status); }; }; then
17867 +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17869 +# Check for a 64-bit object if we didn't find anything.
17870 +if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17873 + echo "$as_me: failed program was:" >&5
17874 +sed 's/^/| /' conftest.$ac_ext >&5
17877 +rm -f conftest.err conftest.$ac_objext \
17878 + conftest$ac_exeext conftest.$ac_ext
17879 +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17881 + hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
17882 + # Warning - without using the other run time loading flags,
17883 + # -berok will link without error, but may produce a broken library.
17884 + no_undefined_flag=' ${wl}-bernotok'
17885 + allow_undefined_flag=' ${wl}-berok'
17886 + # Exported symbols can be pulled into shared objects from archives
17887 + whole_archive_flag_spec='$convenience'
17888 + archive_cmds_need_lc=yes
17889 + # This is similar to how AIX traditionally builds its shared libraries.
17890 + archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
17896 + 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)'
17897 + hardcode_libdir_flag_spec='-L$libdir'
17898 + hardcode_minus_L=yes
17899 + # see comment about different semantics on the GNU ld section
17904 + export_dynamic_flag_spec=-rdynamic
17907 + cygwin* | mingw* | pw32*)
17908 + # When not using gcc, we currently assume that we are using
17909 + # Microsoft Visual C++.
17910 + # hardcode_libdir_flag_spec is actually meaningless, as there is
17911 + # no search path for DLLs.
17912 + hardcode_libdir_flag_spec=' '
17913 + allow_undefined_flag=unsupported
17914 + # Tell ltmain to make .lib files, not .a files.
17916 + # Tell ltmain to make .dll files, not .so files.
17917 + shrext_cmds=".dll"
17918 + # FIXME: Setting linknames here is a bad hack.
17919 + archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17920 + # The linker will automatically build a .lib file if we build a DLL.
17921 + old_archive_From_new_cmds='true'
17922 + # FIXME: Should let the user specify the lib program.
17923 + old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
17924 + fix_srcfile_path='`cygpath -w "$srcfile"`'
17925 + enable_shared_with_static_runtimes=yes
17928 + darwin* | rhapsody*)
17930 + rhapsody* | darwin1.[012])
17931 + allow_undefined_flag='${wl}-undefined ${wl}suppress'
17933 + *) # Darwin 1.3 on
17934 + if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17935 + allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17937 + case ${MACOSX_DEPLOYMENT_TARGET} in
17939 + allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17942 + allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
17948 + archive_cmds_need_lc=no
17949 + hardcode_direct=no
17950 + hardcode_automatic=yes
17951 + hardcode_shlibpath_var=unsupported
17952 + whole_archive_flag_spec=''
17953 + link_all_deplibs=yes
17954 + if test "$GCC" = yes ; then
17955 + output_verbose_link_cmd='echo'
17956 + archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17957 + module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17958 + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17959 + archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17960 + module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17962 + case $cc_basename in
17964 + output_verbose_link_cmd='echo'
17965 + archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17966 + module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17967 + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17968 + archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17969 + module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17979 + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17980 + hardcode_libdir_flag_spec='-L$libdir'
17981 + hardcode_shlibpath_var=no
17988 + # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17989 + # support. Future versions do this automatically, but an explicit c++rt0.o
17990 + # does not break anything, and helps significantly (at the cost of a little
17993 + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17994 + hardcode_libdir_flag_spec='-R$libdir'
17995 + hardcode_direct=yes
17996 + hardcode_shlibpath_var=no
17999 + # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18001 + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18002 + hardcode_direct=yes
18003 + hardcode_minus_L=yes
18004 + hardcode_shlibpath_var=no
18007 + # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18008 + freebsd* | kfreebsd*-gnu | dragonfly*)
18009 + archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18010 + hardcode_libdir_flag_spec='-R$libdir'
18011 + hardcode_direct=yes
18012 + hardcode_shlibpath_var=no
18016 + if test "$GCC" = yes; then
18017 + archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
18019 + 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'
18021 + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
18022 + hardcode_libdir_separator=:
18023 + hardcode_direct=yes
18025 + # hardcode_minus_L: Not really in the search PATH,
18026 + # but as the default location of the library.
18027 + hardcode_minus_L=yes
18028 + export_dynamic_flag_spec='${wl}-E'
18032 + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18033 + archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18035 + archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18037 + if test "$with_gnu_ld" = no; then
18038 + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
18039 + hardcode_libdir_separator=:
18041 + hardcode_direct=yes
18042 + export_dynamic_flag_spec='${wl}-E'
18044 + # hardcode_minus_L: Not really in the search PATH,
18045 + # but as the default location of the library.
18046 + hardcode_minus_L=yes
18051 + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18052 + case $host_cpu in
18054 + archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18057 + archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18060 + archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18064 + case $host_cpu in
18066 + archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18069 + archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18072 + archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18076 + if test "$with_gnu_ld" = no; then
18077 + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
18078 + hardcode_libdir_separator=:
18080 + case $host_cpu in
18082 + hardcode_libdir_flag_spec_ld='+b $libdir'
18083 + hardcode_direct=no
18084 + hardcode_shlibpath_var=no
18087 + hardcode_direct=yes
18088 + export_dynamic_flag_spec='${wl}-E'
18090 + # hardcode_minus_L: Not really in the search PATH,
18091 + # but as the default location of the library.
18092 + hardcode_minus_L=yes
18098 + irix5* | irix6* | nonstopux*)
18099 + if test "$GCC" = yes; then
18100 + 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'
18102 + 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'
18103 + hardcode_libdir_flag_spec_ld='-rpath $libdir'
18105 + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
18106 + hardcode_libdir_separator=:
18107 + link_all_deplibs=yes
18111 + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18112 + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18114 + archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18116 + hardcode_libdir_flag_spec='-R$libdir'
18117 + hardcode_direct=yes
18118 + hardcode_shlibpath_var=no
18122 + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18123 + hardcode_direct=yes
18124 + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
18125 + hardcode_libdir_separator=:
18126 + hardcode_shlibpath_var=no
18130 + hardcode_direct=yes
18131 + hardcode_shlibpath_var=no
18132 + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18133 + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18134 + archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18135 + hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
18136 + export_dynamic_flag_spec='${wl}-E'
18139 + openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18140 + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18141 + hardcode_libdir_flag_spec='-R$libdir'
18144 + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18145 + hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
18152 + hardcode_libdir_flag_spec='-L$libdir'
18153 + hardcode_minus_L=yes
18154 + allow_undefined_flag=unsupported
18155 + 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'
18156 + old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18160 + if test "$GCC" = yes; then
18161 + allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
18162 + 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'
18164 + allow_undefined_flag=' -expect_unresolved \*'
18165 + 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'
18167 + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
18168 + hardcode_libdir_separator=:
18171 + osf4* | osf5*) # as osf3* with the addition of -msym flag
18172 + if test "$GCC" = yes; then
18173 + allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
18174 + 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'
18175 + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
18177 + allow_undefined_flag=' -expect_unresolved \*'
18178 + 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'
18179 + archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
18180 + $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
18182 + # Both c and cxx compiler support -rpath directly
18183 + hardcode_libdir_flag_spec='-rpath $libdir'
18185 + hardcode_libdir_separator=:
18189 + no_undefined_flag=' -z text'
18190 + if test "$GCC" = yes; then
18192 + archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18193 + archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18194 + $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18197 + archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18198 + archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18199 + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18201 + hardcode_libdir_flag_spec='-R$libdir'
18202 + hardcode_shlibpath_var=no
18204 + solaris2.[0-5] | solaris2.[0-5].*) ;;
18206 + # The compiler driver will combine linker options so we
18207 + # cannot just pass the convience library names through
18208 + # without $wl, iff we do not link with $LD.
18209 + # Luckily, gcc supports the same syntax we need for Sun Studio.
18210 + # Supported since Solaris 2.6 (maybe 2.5.1?)
18213 + whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
18215 + whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
18218 + link_all_deplibs=yes
18222 + if test "x$host_vendor" = xsequent; then
18223 + # Use $CC to link under sequent, because it throws in some extra .o
18224 + # files that make .init and .fini sections work.
18225 + archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18227 + archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18229 + hardcode_libdir_flag_spec='-L$libdir'
18230 + hardcode_direct=yes
18231 + hardcode_minus_L=yes
18232 + hardcode_shlibpath_var=no
18236 + case $host_vendor in
18238 + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18239 + hardcode_direct=yes # is this really true???
18242 + ## LD is ld it makes a PLAMLIB
18243 + ## CC just makes a GrossModule.
18244 + archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18245 + reload_cmds='$CC -r -o $output$reload_objs'
18246 + hardcode_direct=no
18249 + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18250 + hardcode_direct=no #Motorola manual says yes, but my tests say they lie
18253 + runpath_var='LD_RUN_PATH'
18254 + hardcode_shlibpath_var=no
18258 + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18259 + hardcode_shlibpath_var=no
18260 + export_dynamic_flag_spec='-Bexport'
18264 + if test -d /usr/nec; then
18265 + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18266 + hardcode_shlibpath_var=no
18267 + runpath_var=LD_RUN_PATH
18268 + hardcode_runpath_var=yes
18273 + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
18274 + no_undefined_flag='${wl}-z,text'
18275 + archive_cmds_need_lc=no
18276 + hardcode_shlibpath_var=no
18277 + runpath_var='LD_RUN_PATH'
18279 + if test "$GCC" = yes; then
18280 + archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18281 + archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18283 + archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18284 + archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18288 + sysv5* | sco3.2v5* | sco5v6*)
18289 + # Note: We can NOT use -z defs as we might desire, because we do not
18290 + # link with -lc, and that would cause any symbols used from libc to
18291 + # always be unresolved, which means just about no library would
18292 + # ever link correctly. If we're not using GNU ld we use -z text
18293 + # though, which does catch some bad symbols but isn't as heavy-handed
18295 + no_undefined_flag='${wl}-z,text'
18296 + allow_undefined_flag='${wl}-z,nodefs'
18297 + archive_cmds_need_lc=no
18298 + hardcode_shlibpath_var=no
18299 + hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18300 + hardcode_libdir_separator=':'
18301 + link_all_deplibs=yes
18302 + export_dynamic_flag_spec='${wl}-Bexport'
18303 + runpath_var='LD_RUN_PATH'
18305 + if test "$GCC" = yes; then
18306 + archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18307 + archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18309 + archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18310 + archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18315 + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18316 + hardcode_libdir_flag_spec='-L$libdir'
18317 + hardcode_shlibpath_var=no
18326 +echo "$as_me:$LINENO: result: $ld_shlibs" >&5
18327 +echo "${ECHO_T}$ld_shlibs" >&6
18328 +test "$ld_shlibs" = no && can_build_shared=no
18331 +# Do we need to explicitly link libc?
18333 +case "x$archive_cmds_need_lc" in
18335 + # Assume -lc should be added
18336 + archive_cmds_need_lc=yes
18338 + if test "$enable_shared" = yes && test "$GCC" = yes; then
18339 + case $archive_cmds in
18341 + # FIXME: we may have to deal with multi-command sequences.
18344 + # Test whether the compiler implicitly links with -lc since on some
18345 + # systems, -lgcc has to come before -lc. If gcc already passes -lc
18346 + # to ld, don't add -lc before -lgcc.
18347 + echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18348 +echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
18350 + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18352 + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18353 + (eval $ac_compile) 2>&5
18355 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
18356 + (exit $ac_status); } 2>conftest.err; then
18359 + libobjs=conftest.$ac_objext
18361 + wl=$lt_prog_compiler_wl
18362 + pic_flag=$lt_prog_compiler_pic
18363 + compiler_flags=-v
18368 + lt_save_allow_undefined_flag=$allow_undefined_flag
18369 + allow_undefined_flag=
18370 + if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18371 + (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18373 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
18374 + (exit $ac_status); }
18376 + archive_cmds_need_lc=no
18378 + archive_cmds_need_lc=yes
18380 + allow_undefined_flag=$lt_save_allow_undefined_flag
18382 + cat conftest.err 1>&5
18385 + echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
18386 +echo "${ECHO_T}$archive_cmds_need_lc" >&6
18393 +echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18394 +echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
18395 +library_names_spec=
18396 +libname_spec='lib$name'
18400 +postuninstall_cmds=
18404 +shlibpath_overrides_runpath=unknown
18406 +dynamic_linker="$host_os ld.so"
18407 +sys_lib_dlsearch_path_spec="/lib /usr/lib"
18408 +if test "$GCC" = yes; then
18409 + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18410 + if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18411 + # if the path contains ";" then we assume it to be the separator
18412 + # otherwise default to the standard path separator (i.e. ":") - it is
18413 + # assumed that no part of a normal pathname contains ";" but that should
18414 + # okay in the real world where ";" in dirpaths is itself problematic.
18415 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18417 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18420 + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18422 +need_lib_prefix=unknown
18423 +hardcode_into_libs=no
18425 +# when you set need_version to no, make sure it does not cause -set_version
18426 +# flags to be left without arguments
18427 +need_version=unknown
18431 + version_type=linux
18432 + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18433 + shlibpath_var=LIBPATH
18435 + # AIX 3 has no versioning support, so we append a major version to the name.
18436 + soname_spec='${libname}${release}${shared_ext}$major'
18440 + version_type=linux
18441 + need_lib_prefix=no
18443 + hardcode_into_libs=yes
18444 + if test "$host_cpu" = ia64; then
18445 + # AIX 5 supports IA64
18446 + library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18447 + shlibpath_var=LD_LIBRARY_PATH
18449 + # With GCC up to 2.95.x, collect2 would create an import file
18450 + # for dependence libraries. The import file would start with
18451 + # the line `#! .'. This would cause the generated library to
18452 + # depend on `.', always an invalid library. This was fixed in
18453 + # development snapshots of GCC prior to 3.0.
18455 + aix4 | aix4.[01] | aix4.[01].*)
18456 + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18458 + echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18461 + can_build_shared=no
18465 + # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18466 + # soname into executable. Probably we can add versioning support to
18467 + # collect2, so additional links can be useful in future.
18468 + if test "$aix_use_runtimelinking" = yes; then
18469 + # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18470 + # instead of lib<name>.a to let people know that these are not
18471 + # typical AIX shared libraries.
18472 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18474 + # We preserve .a as extension for shared libraries through AIX4.2
18475 + # and later when we are not doing run time linking.
18476 + library_names_spec='${libname}${release}.a $libname.a'
18477 + soname_spec='${libname}${release}${shared_ext}$major'
18479 + shlibpath_var=LIBPATH
18484 + library_names_spec='$libname.ixlibrary $libname.a'
18485 + # Create ${libname}_ixlibrary.a entries in /sys/libs.
18486 + finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
18490 + library_names_spec='${libname}${shared_ext}'
18491 + dynamic_linker="$host_os ld.so"
18492 + shlibpath_var=LIBRARY_PATH
18496 + version_type=linux
18498 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18499 + soname_spec='${libname}${release}${shared_ext}$major'
18500 + finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18501 + shlibpath_var=LD_LIBRARY_PATH
18502 + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18503 + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18504 + # the default ld.so.conf also contains /usr/contrib/lib and
18505 + # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18506 + # libtool to hard-code these into programs
18509 +cygwin* | mingw* | pw32*)
18510 + version_type=windows
18511 + shrext_cmds=".dll"
18513 + need_lib_prefix=no
18515 + case $GCC,$host_os in
18516 + yes,cygwin* | yes,mingw* | yes,pw32*)
18517 + library_names_spec='$libname.dll.a'
18518 + # DLL is installed to $(libdir)/../bin by postinstall_cmds
18519 + postinstall_cmds='base_file=`basename \${file}`~
18520 + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18521 + dldir=$destdir/`dirname \$dlpath`~
18522 + test -d \$dldir || mkdir -p \$dldir~
18523 + $install_prog $dir/$dlname \$dldir/$dlname~
18524 + chmod a+x \$dldir/$dlname'
18525 + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18526 + dlpath=$dir/\$dldll~
18528 + shlibpath_overrides_runpath=yes
18532 + # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18533 + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18534 + sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18537 + # MinGW DLLs use traditional 'lib' prefix
18538 + soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18539 + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18540 + if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18541 + # It is most probably a Windows format PATH printed by
18542 + # mingw gcc, but we are running on Cygwin. Gcc prints its search
18543 + # path with ; separators, and with drive letters. We can handle the
18544 + # drive letters (cygwin fileutils understands them), so leave them,
18545 + # especially as we might pass files found there to a mingw objdump,
18546 + # which wouldn't understand a cygwinified path. Ahh.
18547 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18549 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18553 + # pw32 DLLs use 'pw' prefix rather than 'lib'
18554 + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18560 + if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
18561 + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18562 + supports_anon_versioning=no
18563 + case `$LD -v 2>/dev/null` in
18564 + *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
18565 + *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
18566 + *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
18567 + *\ 2.11.*) ;; # other 2.11 versions
18568 + *) supports_anon_versioning=yes ;;
18570 + if test $supports_anon_versioning = yes; then
18571 + archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
18572 +cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18573 +$echo "local: *; };" >> $output_objdir/$libname.ver~
18574 + $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18576 + $archive_expsym_cmds="$archive_cmds"
18584 + library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18587 + dynamic_linker='Win32 ld.exe'
18588 + # FIXME: first we should search . and the directory the executable is in
18589 + shlibpath_var=PATH
18592 +darwin* | rhapsody*)
18593 + dynamic_linker="$host_os dyld"
18594 + version_type=darwin
18595 + need_lib_prefix=no
18597 + library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18598 + soname_spec='${libname}${release}${major}$shared_ext'
18599 + shlibpath_overrides_runpath=yes
18600 + shlibpath_var=DYLD_LIBRARY_PATH
18601 + shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18602 + # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18603 + if test "$GCC" = yes; then
18604 + sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
18606 + sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18608 + sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18612 + version_type=linux
18613 + need_lib_prefix=no
18615 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18616 + soname_spec='${libname}${release}${shared_ext}$major'
18617 + shlibpath_var=LD_LIBRARY_PATH
18621 + dynamic_linker=no
18625 + version_type=linux
18626 + need_lib_prefix=no
18628 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18629 + soname_spec='${libname}${release}${shared_ext}$major'
18630 + shlibpath_var=LD_LIBRARY_PATH
18631 + shlibpath_overrides_runpath=no
18632 + hardcode_into_libs=yes
18633 + dynamic_linker='GNU ld.so'
18636 +freebsd* | dragonfly*)
18637 + # DragonFly does not have aout. When/if they implement a new
18638 + # versioning mechanism, adjust this.
18639 + if test -x /usr/bin/objformat; then
18640 + objformat=`/usr/bin/objformat`
18643 + freebsd[123]*) objformat=aout ;;
18644 + *) objformat=elf ;;
18647 + # Handle Gentoo/FreeBSD as it was Linux
18648 + case $host_vendor in
18650 + version_type=linux ;;
18652 + version_type=freebsd-$objformat ;;
18655 + case $version_type in
18657 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18659 + need_lib_prefix=no
18662 + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18666 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18667 + soname_spec='${libname}${release}${shared_ext}$major'
18668 + need_lib_prefix=no
18672 + shlibpath_var=LD_LIBRARY_PATH
18675 + shlibpath_overrides_runpath=yes
18677 + freebsd3.[01]* | freebsdelf3.[01]*)
18678 + shlibpath_overrides_runpath=yes
18679 + hardcode_into_libs=yes
18681 + freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18682 + freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18683 + shlibpath_overrides_runpath=no
18684 + hardcode_into_libs=yes
18686 + freebsd*) # from 4.6 on
18687 + shlibpath_overrides_runpath=yes
18688 + hardcode_into_libs=yes
18694 + version_type=linux
18695 + need_lib_prefix=no
18697 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18698 + soname_spec='${libname}${release}${shared_ext}$major'
18699 + shlibpath_var=LD_LIBRARY_PATH
18700 + hardcode_into_libs=yes
18703 +hpux9* | hpux10* | hpux11*)
18704 + # Give a soname corresponding to the major version so that dld.sl refuses to
18705 + # link against other versions.
18706 + version_type=sunos
18707 + need_lib_prefix=no
18709 + case $host_cpu in
18711 + shrext_cmds='.so'
18712 + hardcode_into_libs=yes
18713 + dynamic_linker="$host_os dld.so"
18714 + shlibpath_var=LD_LIBRARY_PATH
18715 + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18716 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18717 + soname_spec='${libname}${release}${shared_ext}$major'
18718 + if test "X$HPUX_IA64_MODE" = X32; then
18719 + sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18721 + sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18723 + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18726 + shrext_cmds='.sl'
18727 + hardcode_into_libs=yes
18728 + dynamic_linker="$host_os dld.sl"
18729 + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18730 + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18731 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18732 + soname_spec='${libname}${release}${shared_ext}$major'
18733 + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18734 + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18737 + shrext_cmds='.sl'
18738 + dynamic_linker="$host_os dld.sl"
18739 + shlibpath_var=SHLIB_PATH
18740 + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18741 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18742 + soname_spec='${libname}${release}${shared_ext}$major'
18745 + # HP-UX runs *really* slowly unless shared libraries are mode 555.
18746 + postinstall_cmds='chmod 555 $lib'
18750 + version_type=linux
18751 + need_lib_prefix=no
18753 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18754 + soname_spec='${libname}${release}${shared_ext}$major'
18755 + dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18756 + shlibpath_var=LD_LIBRARY_PATH
18757 + shlibpath_overrides_runpath=no
18758 + hardcode_into_libs=yes
18761 +irix5* | irix6* | nonstopux*)
18763 + nonstopux*) version_type=nonstopux ;;
18765 + if test "$lt_cv_prog_gnu_ld" = yes; then
18766 + version_type=linux
18768 + version_type=irix
18771 + need_lib_prefix=no
18773 + soname_spec='${libname}${release}${shared_ext}$major'
18774 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18776 + irix5* | nonstopux*)
18777 + libsuff= shlibsuff=
18780 + case $LD in # libtool.m4 will add one of these switches to LD
18781 + *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18782 + libsuff= shlibsuff= libmagic=32-bit;;
18783 + *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18784 + libsuff=32 shlibsuff=N32 libmagic=N32;;
18785 + *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18786 + libsuff=64 shlibsuff=64 libmagic=64-bit;;
18787 + *) libsuff= shlibsuff= libmagic=never-match;;
18791 + shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18792 + shlibpath_overrides_runpath=no
18793 + sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18794 + sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18795 + hardcode_into_libs=yes
18798 +# No shared lib support for Linux oldld, aout, or coff.
18799 +linux*oldld* | linux*aout* | linux*coff*)
18800 + dynamic_linker=no
18803 +# This must be Linux ELF.
18805 + version_type=linux
18806 + need_lib_prefix=no
18808 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18809 + soname_spec='${libname}${release}${shared_ext}$major'
18810 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18811 + shlibpath_var=LD_LIBRARY_PATH
18812 + shlibpath_overrides_runpath=no
18813 + # This implies no fast_install, which is unacceptable.
18814 + # Some rework will be needed to allow for fast_install
18815 + # before this can be enabled.
18816 + hardcode_into_libs=yes
18818 + # Append ld.so.conf contents to the search path
18819 + if test -f /etc/ld.so.conf; then
18820 + lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18821 + sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18824 + # We used to test for /lib/ld.so.1 and disable shared libraries on
18825 + # powerpc, because MkLinux only supported shared libraries with the
18826 + # GNU dynamic linker. Since this was broken with cross compilers,
18827 + # most powerpc-linux boxes support dynamic linking these days and
18828 + # people can always --disable-shared, the test was removed, and we
18829 + # assume the GNU/Linux dynamic linker is in use.
18830 + dynamic_linker='GNU/Linux ld.so'
18834 + version_type=linux
18835 + need_lib_prefix=no
18837 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18838 + soname_spec='${libname}${release}${shared_ext}$major'
18839 + shlibpath_var=LD_LIBRARY_PATH
18840 + shlibpath_overrides_runpath=no
18841 + hardcode_into_libs=yes
18842 + dynamic_linker='GNU ld.so'
18846 + version_type=sunos
18847 + need_lib_prefix=no
18849 + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18850 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18851 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18852 + dynamic_linker='NetBSD (a.out) ld.so'
18854 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18855 + soname_spec='${libname}${release}${shared_ext}$major'
18856 + dynamic_linker='NetBSD ld.elf_so'
18858 + shlibpath_var=LD_LIBRARY_PATH
18859 + shlibpath_overrides_runpath=yes
18860 + hardcode_into_libs=yes
18864 + version_type=linux
18865 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18866 + shlibpath_var=LD_LIBRARY_PATH
18867 + shlibpath_overrides_runpath=yes
18871 + version_type=linux
18872 + need_lib_prefix=no
18874 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18875 + soname_spec='${libname}${release}${shared_ext}$major'
18876 + shlibpath_var=LD_LIBRARY_PATH
18877 + shlibpath_overrides_runpath=yes
18881 + version_type=sunos
18882 + sys_lib_dlsearch_path_spec="/usr/lib"
18883 + need_lib_prefix=no
18884 + # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18886 + openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18887 + *) need_version=no ;;
18889 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18890 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18891 + shlibpath_var=LD_LIBRARY_PATH
18892 + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18894 + openbsd2.[89] | openbsd2.[89].*)
18895 + shlibpath_overrides_runpath=no
18898 + shlibpath_overrides_runpath=yes
18902 + shlibpath_overrides_runpath=yes
18907 + libname_spec='$name'
18908 + shrext_cmds=".dll"
18909 + need_lib_prefix=no
18910 + library_names_spec='$libname${shared_ext} $libname.a'
18911 + dynamic_linker='OS/2 ld.exe'
18912 + shlibpath_var=LIBPATH
18915 +osf3* | osf4* | osf5*)
18917 + need_lib_prefix=no
18919 + soname_spec='${libname}${release}${shared_ext}$major'
18920 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18921 + shlibpath_var=LD_LIBRARY_PATH
18922 + sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18923 + sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18927 + version_type=linux
18928 + need_lib_prefix=no
18930 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18931 + soname_spec='${libname}${release}${shared_ext}$major'
18932 + shlibpath_var=LD_LIBRARY_PATH
18933 + shlibpath_overrides_runpath=yes
18934 + hardcode_into_libs=yes
18935 + # ldd complains unless libraries are executable
18936 + postinstall_cmds='chmod +x $lib'
18940 + version_type=sunos
18941 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18942 + finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18943 + shlibpath_var=LD_LIBRARY_PATH
18944 + shlibpath_overrides_runpath=yes
18945 + if test "$with_gnu_ld" = yes; then
18946 + need_lib_prefix=no
18952 + version_type=linux
18953 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18954 + soname_spec='${libname}${release}${shared_ext}$major'
18955 + shlibpath_var=LD_LIBRARY_PATH
18956 + case $host_vendor in
18958 + shlibpath_overrides_runpath=no
18959 + need_lib_prefix=no
18960 + export_dynamic_flag_spec='${wl}-Blargedynsym'
18961 + runpath_var=LD_RUN_PATH
18964 + need_lib_prefix=no
18967 + need_lib_prefix=no
18969 + shlibpath_overrides_runpath=no
18970 + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18976 + if test -d /usr/nec ;then
18977 + version_type=linux
18978 + library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18979 + soname_spec='$libname${shared_ext}.$major'
18980 + shlibpath_var=LD_LIBRARY_PATH
18984 +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18985 + version_type=freebsd-elf
18986 + need_lib_prefix=no
18988 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18989 + soname_spec='${libname}${release}${shared_ext}$major'
18990 + shlibpath_var=LD_LIBRARY_PATH
18991 + hardcode_into_libs=yes
18992 + if test "$with_gnu_ld" = yes; then
18993 + sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18994 + shlibpath_overrides_runpath=no
18996 + sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18997 + shlibpath_overrides_runpath=yes
19000 + sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19004 + sys_lib_dlsearch_path_spec='/usr/lib'
19008 + version_type=linux
19009 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19010 + soname_spec='${libname}${release}${shared_ext}$major'
19011 + shlibpath_var=LD_LIBRARY_PATH
19015 + dynamic_linker=no
19018 +echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19019 +echo "${ECHO_T}$dynamic_linker" >&6
19020 +test "$dynamic_linker" = no && can_build_shared=no
19022 +variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19023 +if test "$GCC" = yes; then
19024 + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19027 +echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19028 +echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
19030 +if test -n "$hardcode_libdir_flag_spec" || \
19031 + test -n "$runpath_var" || \
19032 + test "X$hardcode_automatic" = "Xyes" ; then
19034 + # We can hardcode non-existant directories.
19035 + if test "$hardcode_direct" != no &&
19036 + # If the only mechanism to avoid hardcoding is shlibpath_var, we
19037 + # have to relink, otherwise we might link with an installed library
19038 + # when we should be linking with a yet-to-be-installed one
19039 + ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
19040 + test "$hardcode_minus_L" != no; then
19041 + # Linking always hardcodes the temporary library directory.
19042 + hardcode_action=relink
19044 + # We can link without hardcoding, and we can hardcode nonexisting dirs.
19045 + hardcode_action=immediate
19048 + # We cannot hardcode anything, or else we can only hardcode existing
19050 + hardcode_action=unsupported
19052 +echo "$as_me:$LINENO: result: $hardcode_action" >&5
19053 +echo "${ECHO_T}$hardcode_action" >&6
19055 +if test "$hardcode_action" = relink; then
19056 + # Fast installation is not supported
19057 + enable_fast_install=no
19058 +elif test "$shlibpath_overrides_runpath" = yes ||
19059 + test "$enable_shared" = no; then
19060 + # Fast installation is not necessary
19061 + enable_fast_install=needless
19066 +echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
19067 +echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
19068 +if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
19069 + test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
19070 + test -z "$striplib" && striplib="$STRIP --strip-unneeded"
19071 + echo "$as_me:$LINENO: result: yes" >&5
19072 +echo "${ECHO_T}yes" >&6
19074 +# FIXME - insert some real tests, host_os isn't really good enough
19077 + if test -n "$STRIP" ; then
19078 + striplib="$STRIP -x"
19079 + echo "$as_me:$LINENO: result: yes" >&5
19080 +echo "${ECHO_T}yes" >&6
19082 + echo "$as_me:$LINENO: result: no" >&5
19083 +echo "${ECHO_T}no" >&6
19087 + echo "$as_me:$LINENO: result: no" >&5
19088 +echo "${ECHO_T}no" >&6
19093 +if test "x$enable_dlopen" != xyes; then
19094 + enable_dlopen=unknown
19095 + enable_dlopen_self=unknown
19096 + enable_dlopen_self_static=unknown
19099 + lt_cv_dlopen_libs=
19103 + lt_cv_dlopen="load_add_on"
19104 + lt_cv_dlopen_libs=
19105 + lt_cv_dlopen_self=yes
19109 + lt_cv_dlopen="LoadLibrary"
19110 + lt_cv_dlopen_libs=
19114 + lt_cv_dlopen="dlopen"
19115 + lt_cv_dlopen_libs=
19119 + # if libdl is installed we need to link against it
19120 + echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19121 +echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19122 +if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19123 + echo $ECHO_N "(cached) $ECHO_C" >&6
19125 + ac_check_lib_save_LIBS=$LIBS
19127 +cat >conftest.$ac_ext <<_ACEOF
19130 +cat confdefs.h >>conftest.$ac_ext
19131 +cat >>conftest.$ac_ext <<_ACEOF
19132 +/* end confdefs.h. */
19134 +/* Override any gcc2 internal prototype to avoid an error. */
19135 +#ifdef __cplusplus
19138 +/* We use char because int might match the return type of a gcc2
19139 + builtin and then its argument prototype would still apply. */
19149 +rm -f conftest.$ac_objext conftest$ac_exeext
19150 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19151 + (eval $ac_link) 2>conftest.er1
19153 + grep -v '^ *+' conftest.er1 >conftest.err
19154 + rm -f conftest.er1
19155 + cat conftest.err >&5
19156 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
19157 + (exit $ac_status); } &&
19158 + { ac_try='test -z "$ac_c_werror_flag"
19159 + || test ! -s conftest.err'
19160 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19161 + (eval $ac_try) 2>&5
19163 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
19164 + (exit $ac_status); }; } &&
19165 + { ac_try='test -s conftest$ac_exeext'
19166 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19167 + (eval $ac_try) 2>&5
19169 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
19170 + (exit $ac_status); }; }; then
19171 + ac_cv_lib_dl_dlopen=yes
19173 + echo "$as_me: failed program was:" >&5
19174 +sed 's/^/| /' conftest.$ac_ext >&5
19176 +ac_cv_lib_dl_dlopen=no
19178 +rm -f conftest.err conftest.$ac_objext \
19179 + conftest$ac_exeext conftest.$ac_ext
19180 +LIBS=$ac_check_lib_save_LIBS
19182 +echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19183 +echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
19184 +if test $ac_cv_lib_dl_dlopen = yes; then
19185 + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
19188 + lt_cv_dlopen="dyld"
19189 + lt_cv_dlopen_libs=
19190 + lt_cv_dlopen_self=yes
19197 + echo "$as_me:$LINENO: checking for shl_load" >&5
19198 +echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
19199 +if test "${ac_cv_func_shl_load+set}" = set; then
19200 + echo $ECHO_N "(cached) $ECHO_C" >&6
19202 + cat >conftest.$ac_ext <<_ACEOF
19205 +cat confdefs.h >>conftest.$ac_ext
19206 +cat >>conftest.$ac_ext <<_ACEOF
19207 +/* end confdefs.h. */
19208 +/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
19209 + For example, HP-UX 11i <limits.h> declares gettimeofday. */
19210 +#define shl_load innocuous_shl_load
19212 +/* System header to define __stub macros and hopefully few prototypes,
19213 + which can conflict with char shl_load (); below.
19214 + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19215 + <limits.h> exists even on freestanding compilers. */
19218 +# include <limits.h>
19220 +# include <assert.h>
19225 +/* Override any gcc2 internal prototype to avoid an error. */
19226 +#ifdef __cplusplus
19230 +/* We use char because int might match the return type of a gcc2
19231 + builtin and then its argument prototype would still apply. */
19233 +/* The GNU C library defines this for functions which it implements
19234 + to always fail with ENOSYS. Some functions are actually named
19235 + something starting with __ and the normal name is an alias. */
19236 +#if defined (__stub_shl_load) || defined (__stub___shl_load)
19239 +char (*f) () = shl_load;
19241 +#ifdef __cplusplus
19248 +return f != shl_load;
19253 +rm -f conftest.$ac_objext conftest$ac_exeext
19254 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19255 + (eval $ac_link) 2>conftest.er1
19257 + grep -v '^ *+' conftest.er1 >conftest.err
19258 + rm -f conftest.er1
19259 + cat conftest.err >&5
19260 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
19261 + (exit $ac_status); } &&
19262 + { ac_try='test -z "$ac_c_werror_flag"
19263 + || test ! -s conftest.err'
19264 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19265 + (eval $ac_try) 2>&5
19267 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
19268 + (exit $ac_status); }; } &&
19269 + { ac_try='test -s conftest$ac_exeext'
19270 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19271 + (eval $ac_try) 2>&5
19273 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
19274 + (exit $ac_status); }; }; then
19275 + ac_cv_func_shl_load=yes
19277 + echo "$as_me: failed program was:" >&5
19278 +sed 's/^/| /' conftest.$ac_ext >&5
19280 +ac_cv_func_shl_load=no
19282 +rm -f conftest.err conftest.$ac_objext \
19283 + conftest$ac_exeext conftest.$ac_ext
19285 +echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
19286 +echo "${ECHO_T}$ac_cv_func_shl_load" >&6
19287 +if test $ac_cv_func_shl_load = yes; then
19288 + lt_cv_dlopen="shl_load"
19290 + echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
19291 +echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
19292 +if test "${ac_cv_lib_dld_shl_load+set}" = set; then
19293 + echo $ECHO_N "(cached) $ECHO_C" >&6
19295 + ac_check_lib_save_LIBS=$LIBS
19296 +LIBS="-ldld $LIBS"
19297 +cat >conftest.$ac_ext <<_ACEOF
19300 +cat confdefs.h >>conftest.$ac_ext
19301 +cat >>conftest.$ac_ext <<_ACEOF
19302 +/* end confdefs.h. */
19304 +/* Override any gcc2 internal prototype to avoid an error. */
19305 +#ifdef __cplusplus
19308 +/* We use char because int might match the return type of a gcc2
19309 + builtin and then its argument prototype would still apply. */
19319 +rm -f conftest.$ac_objext conftest$ac_exeext
19320 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19321 + (eval $ac_link) 2>conftest.er1
19323 + grep -v '^ *+' conftest.er1 >conftest.err
19324 + rm -f conftest.er1
19325 + cat conftest.err >&5
19326 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
19327 + (exit $ac_status); } &&
19328 + { ac_try='test -z "$ac_c_werror_flag"
19329 + || test ! -s conftest.err'
19330 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19331 + (eval $ac_try) 2>&5
19333 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
19334 + (exit $ac_status); }; } &&
19335 + { ac_try='test -s conftest$ac_exeext'
19336 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19337 + (eval $ac_try) 2>&5
19339 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
19340 + (exit $ac_status); }; }; then
19341 + ac_cv_lib_dld_shl_load=yes
19343 + echo "$as_me: failed program was:" >&5
19344 +sed 's/^/| /' conftest.$ac_ext >&5
19346 +ac_cv_lib_dld_shl_load=no
19348 +rm -f conftest.err conftest.$ac_objext \
19349 + conftest$ac_exeext conftest.$ac_ext
19350 +LIBS=$ac_check_lib_save_LIBS
19352 +echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
19353 +echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
19354 +if test $ac_cv_lib_dld_shl_load = yes; then
19355 + lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
19357 + echo "$as_me:$LINENO: checking for dlopen" >&5
19358 +echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
19359 +if test "${ac_cv_func_dlopen+set}" = set; then
19360 + echo $ECHO_N "(cached) $ECHO_C" >&6
19362 + cat >conftest.$ac_ext <<_ACEOF
19365 +cat confdefs.h >>conftest.$ac_ext
19366 +cat >>conftest.$ac_ext <<_ACEOF
19367 +/* end confdefs.h. */
19368 +/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
19369 + For example, HP-UX 11i <limits.h> declares gettimeofday. */
19370 +#define dlopen innocuous_dlopen
19372 +/* System header to define __stub macros and hopefully few prototypes,
19373 + which can conflict with char dlopen (); below.
19374 + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19375 + <limits.h> exists even on freestanding compilers. */
19378 +# include <limits.h>
19380 +# include <assert.h>
19385 +/* Override any gcc2 internal prototype to avoid an error. */
19386 +#ifdef __cplusplus
19390 +/* We use char because int might match the return type of a gcc2
19391 + builtin and then its argument prototype would still apply. */
19393 +/* The GNU C library defines this for functions which it implements
19394 + to always fail with ENOSYS. Some functions are actually named
19395 + something starting with __ and the normal name is an alias. */
19396 +#if defined (__stub_dlopen) || defined (__stub___dlopen)
19399 +char (*f) () = dlopen;
19401 +#ifdef __cplusplus
19408 +return f != dlopen;
19413 +rm -f conftest.$ac_objext conftest$ac_exeext
19414 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19415 + (eval $ac_link) 2>conftest.er1
19417 + grep -v '^ *+' conftest.er1 >conftest.err
19418 + rm -f conftest.er1
19419 + cat conftest.err >&5
19420 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
19421 + (exit $ac_status); } &&
19422 + { ac_try='test -z "$ac_c_werror_flag"
19423 + || test ! -s conftest.err'
19424 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19425 + (eval $ac_try) 2>&5
19427 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
19428 + (exit $ac_status); }; } &&
19429 + { ac_try='test -s conftest$ac_exeext'
19430 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19431 + (eval $ac_try) 2>&5
19433 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
19434 + (exit $ac_status); }; }; then
19435 + ac_cv_func_dlopen=yes
19437 + echo "$as_me: failed program was:" >&5
19438 +sed 's/^/| /' conftest.$ac_ext >&5
19440 +ac_cv_func_dlopen=no
19442 +rm -f conftest.err conftest.$ac_objext \
19443 + conftest$ac_exeext conftest.$ac_ext
19445 +echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
19446 +echo "${ECHO_T}$ac_cv_func_dlopen" >&6
19447 +if test $ac_cv_func_dlopen = yes; then
19448 + lt_cv_dlopen="dlopen"
19450 + echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19451 +echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19452 +if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19453 + echo $ECHO_N "(cached) $ECHO_C" >&6
19455 + ac_check_lib_save_LIBS=$LIBS
19457 +cat >conftest.$ac_ext <<_ACEOF
19460 +cat confdefs.h >>conftest.$ac_ext
19461 +cat >>conftest.$ac_ext <<_ACEOF
19462 +/* end confdefs.h. */
19464 +/* Override any gcc2 internal prototype to avoid an error. */
19465 +#ifdef __cplusplus
19468 +/* We use char because int might match the return type of a gcc2
19469 + builtin and then its argument prototype would still apply. */
19479 +rm -f conftest.$ac_objext conftest$ac_exeext
19480 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19481 + (eval $ac_link) 2>conftest.er1
19483 + grep -v '^ *+' conftest.er1 >conftest.err
19484 + rm -f conftest.er1
19485 + cat conftest.err >&5
19486 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
19487 + (exit $ac_status); } &&
19488 + { ac_try='test -z "$ac_c_werror_flag"
19489 + || test ! -s conftest.err'
19490 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19491 + (eval $ac_try) 2>&5
19493 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
19494 + (exit $ac_status); }; } &&
19495 + { ac_try='test -s conftest$ac_exeext'
19496 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19497 + (eval $ac_try) 2>&5
19499 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
19500 + (exit $ac_status); }; }; then
19501 + ac_cv_lib_dl_dlopen=yes
19503 + echo "$as_me: failed program was:" >&5
19504 +sed 's/^/| /' conftest.$ac_ext >&5
19506 +ac_cv_lib_dl_dlopen=no
19508 +rm -f conftest.err conftest.$ac_objext \
19509 + conftest$ac_exeext conftest.$ac_ext
19510 +LIBS=$ac_check_lib_save_LIBS
19512 +echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19513 +echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
19514 +if test $ac_cv_lib_dl_dlopen = yes; then
19515 + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
19517 + echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
19518 +echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
19519 +if test "${ac_cv_lib_svld_dlopen+set}" = set; then
19520 + echo $ECHO_N "(cached) $ECHO_C" >&6
19522 + ac_check_lib_save_LIBS=$LIBS
19523 +LIBS="-lsvld $LIBS"
19524 +cat >conftest.$ac_ext <<_ACEOF
19527 +cat confdefs.h >>conftest.$ac_ext
19528 +cat >>conftest.$ac_ext <<_ACEOF
19529 +/* end confdefs.h. */
19531 +/* Override any gcc2 internal prototype to avoid an error. */
19532 +#ifdef __cplusplus
19535 +/* We use char because int might match the return type of a gcc2
19536 + builtin and then its argument prototype would still apply. */
19546 +rm -f conftest.$ac_objext conftest$ac_exeext
19547 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19548 + (eval $ac_link) 2>conftest.er1
19550 + grep -v '^ *+' conftest.er1 >conftest.err
19551 + rm -f conftest.er1
19552 + cat conftest.err >&5
19553 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
19554 + (exit $ac_status); } &&
19555 + { ac_try='test -z "$ac_c_werror_flag"
19556 + || test ! -s conftest.err'
19557 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19558 + (eval $ac_try) 2>&5
19560 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
19561 + (exit $ac_status); }; } &&
19562 + { ac_try='test -s conftest$ac_exeext'
19563 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19564 + (eval $ac_try) 2>&5
19566 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
19567 + (exit $ac_status); }; }; then
19568 + ac_cv_lib_svld_dlopen=yes
19570 + echo "$as_me: failed program was:" >&5
19571 +sed 's/^/| /' conftest.$ac_ext >&5
19573 +ac_cv_lib_svld_dlopen=no
19575 +rm -f conftest.err conftest.$ac_objext \
19576 + conftest$ac_exeext conftest.$ac_ext
19577 +LIBS=$ac_check_lib_save_LIBS
19579 +echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
19580 +echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
19581 +if test $ac_cv_lib_svld_dlopen = yes; then
19582 + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
19584 + echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
19585 +echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
19586 +if test "${ac_cv_lib_dld_dld_link+set}" = set; then
19587 + echo $ECHO_N "(cached) $ECHO_C" >&6
19589 + ac_check_lib_save_LIBS=$LIBS
19590 +LIBS="-ldld $LIBS"
19591 +cat >conftest.$ac_ext <<_ACEOF
19594 +cat confdefs.h >>conftest.$ac_ext
19595 +cat >>conftest.$ac_ext <<_ACEOF
19596 +/* end confdefs.h. */
19598 +/* Override any gcc2 internal prototype to avoid an error. */
19599 +#ifdef __cplusplus
19602 +/* We use char because int might match the return type of a gcc2
19603 + builtin and then its argument prototype would still apply. */
19613 +rm -f conftest.$ac_objext conftest$ac_exeext
19614 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19615 + (eval $ac_link) 2>conftest.er1
19617 + grep -v '^ *+' conftest.er1 >conftest.err
19618 + rm -f conftest.er1
19619 + cat conftest.err >&5
19620 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
19621 + (exit $ac_status); } &&
19622 + { ac_try='test -z "$ac_c_werror_flag"
19623 + || test ! -s conftest.err'
19624 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19625 + (eval $ac_try) 2>&5
19627 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
19628 + (exit $ac_status); }; } &&
19629 + { ac_try='test -s conftest$ac_exeext'
19630 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19631 + (eval $ac_try) 2>&5
19633 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
19634 + (exit $ac_status); }; }; then
19635 + ac_cv_lib_dld_dld_link=yes
19637 + echo "$as_me: failed program was:" >&5
19638 +sed 's/^/| /' conftest.$ac_ext >&5
19640 +ac_cv_lib_dld_dld_link=no
19642 +rm -f conftest.err conftest.$ac_objext \
19643 + conftest$ac_exeext conftest.$ac_ext
19644 +LIBS=$ac_check_lib_save_LIBS
19646 +echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
19647 +echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
19648 +if test $ac_cv_lib_dld_dld_link = yes; then
19649 + lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
19670 + if test "x$lt_cv_dlopen" != xno; then
19671 + enable_dlopen=yes
19676 + case $lt_cv_dlopen in
19678 + save_CPPFLAGS="$CPPFLAGS"
19679 + test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
19681 + save_LDFLAGS="$LDFLAGS"
19682 + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
19684 + save_LIBS="$LIBS"
19685 + LIBS="$lt_cv_dlopen_libs $LIBS"
19687 + echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
19688 +echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
19689 +if test "${lt_cv_dlopen_self+set}" = set; then
19690 + echo $ECHO_N "(cached) $ECHO_C" >&6
19692 + if test "$cross_compiling" = yes; then :
19693 + lt_cv_dlopen_self=cross
19695 + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19696 + lt_status=$lt_dlunknown
19697 + cat > conftest.$ac_ext <<EOF
19698 +#line 9154 "configure"
19699 +#include "confdefs.h"
19702 +#include <dlfcn.h>
19705 +#include <stdio.h>
19707 +#ifdef RTLD_GLOBAL
19708 +# define LT_DLGLOBAL RTLD_GLOBAL
19711 +# define LT_DLGLOBAL DL_GLOBAL
19713 +# define LT_DLGLOBAL 0
19717 +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19718 + find out it does not work in some platform. */
19719 +#ifndef LT_DLLAZY_OR_NOW
19721 +# define LT_DLLAZY_OR_NOW RTLD_LAZY
19724 +# define LT_DLLAZY_OR_NOW DL_LAZY
19727 +# define LT_DLLAZY_OR_NOW RTLD_NOW
19730 +# define LT_DLLAZY_OR_NOW DL_NOW
19732 +# define LT_DLLAZY_OR_NOW 0
19739 +#ifdef __cplusplus
19740 +extern "C" void exit (int);
19743 +void fnord() { int i=42;}
19746 + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19747 + int status = $lt_dlunknown;
19751 + if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19752 + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19753 + /* dlclose (self); */
19756 + puts (dlerror ());
19761 + if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19762 + (eval $ac_link) 2>&5
19764 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
19765 + (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
19766 + (./conftest; exit; ) >&5 2>/dev/null
19768 + case x$lt_status in
19769 + x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
19770 + x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
19771 + x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
19774 + # compilation failed
19775 + lt_cv_dlopen_self=no
19782 +echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
19783 +echo "${ECHO_T}$lt_cv_dlopen_self" >&6
19785 + if test "x$lt_cv_dlopen_self" = xyes; then
19786 + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
19787 + echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
19788 +echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
19789 +if test "${lt_cv_dlopen_self_static+set}" = set; then
19790 + echo $ECHO_N "(cached) $ECHO_C" >&6
19792 + if test "$cross_compiling" = yes; then :
19793 + lt_cv_dlopen_self_static=cross
19795 + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19796 + lt_status=$lt_dlunknown
19797 + cat > conftest.$ac_ext <<EOF
19798 +#line 9254 "configure"
19799 +#include "confdefs.h"
19802 +#include <dlfcn.h>
19805 +#include <stdio.h>
19807 +#ifdef RTLD_GLOBAL
19808 +# define LT_DLGLOBAL RTLD_GLOBAL
19811 +# define LT_DLGLOBAL DL_GLOBAL
19813 +# define LT_DLGLOBAL 0
19817 +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19818 + find out it does not work in some platform. */
19819 +#ifndef LT_DLLAZY_OR_NOW
19821 +# define LT_DLLAZY_OR_NOW RTLD_LAZY
19824 +# define LT_DLLAZY_OR_NOW DL_LAZY
19827 +# define LT_DLLAZY_OR_NOW RTLD_NOW
19830 +# define LT_DLLAZY_OR_NOW DL_NOW
19832 +# define LT_DLLAZY_OR_NOW 0
19839 +#ifdef __cplusplus
19840 +extern "C" void exit (int);
19843 +void fnord() { int i=42;}
19846 + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19847 + int status = $lt_dlunknown;
19851 + if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19852 + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19853 + /* dlclose (self); */
19856 + puts (dlerror ());
19861 + if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19862 + (eval $ac_link) 2>&5
19864 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
19865 + (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
19866 + (./conftest; exit; ) >&5 2>/dev/null
19868 + case x$lt_status in
19869 + x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
19870 + x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
19871 + x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
19874 + # compilation failed
19875 + lt_cv_dlopen_self_static=no
19882 +echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
19883 +echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
19886 + CPPFLAGS="$save_CPPFLAGS"
19887 + LDFLAGS="$save_LDFLAGS"
19888 + LIBS="$save_LIBS"
19892 + case $lt_cv_dlopen_self in
19893 + yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
19894 + *) enable_dlopen_self=unknown ;;
19897 + case $lt_cv_dlopen_self_static in
19898 + yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
19899 + *) enable_dlopen_self_static=unknown ;;
19904 +# Report which library types will actually be built
19905 +echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
19906 +echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
19907 +echo "$as_me:$LINENO: result: $can_build_shared" >&5
19908 +echo "${ECHO_T}$can_build_shared" >&6
19910 +echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
19911 +echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
19912 +test "$can_build_shared" = "no" && enable_shared=no
19914 +# On AIX, shared libraries and static libraries use the same namespace, and
19915 +# are all built from PIC.
19918 + test "$enable_shared" = yes && enable_static=no
19919 + if test -n "$RANLIB"; then
19920 + archive_cmds="$archive_cmds~\$RANLIB \$lib"
19921 + postinstall_cmds='$RANLIB $lib'
19926 + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
19927 + test "$enable_shared" = yes && enable_static=no
19931 +echo "$as_me:$LINENO: result: $enable_shared" >&5
19932 +echo "${ECHO_T}$enable_shared" >&6
19934 +echo "$as_me:$LINENO: checking whether to build static libraries" >&5
19935 +echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
19936 +# Make sure either enable_shared or enable_static is yes.
19937 +test "$enable_shared" = yes || enable_static=yes
19938 +echo "$as_me:$LINENO: result: $enable_static" >&5
19939 +echo "${ECHO_T}$enable_static" >&6
19941 +# The else clause should only fire when bootstrapping the
19942 +# libtool distribution, otherwise you forgot to ship ltmain.sh
19943 +# with your package, and you will get complaints that there are
19944 +# no rules to generate ltmain.sh.
19945 +if test -f "$ltmain"; then
19946 + # See if we are running on zsh, and set the options which allow our commands through
19947 + # without removal of \ escapes.
19948 + if test -n "${ZSH_VERSION+set}" ; then
19949 + setopt NO_GLOB_SUBST
19951 + # Now quote all the things that may contain metacharacters while being
19952 + # careful not to overquote the AC_SUBSTed values. We take copies of the
19953 + # variables and quote the copies for generation of the libtool script.
19954 + for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19955 + SED SHELL STRIP \
19956 + libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19957 + old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19958 + deplibs_check_method reload_flag reload_cmds need_locks \
19959 + lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19960 + lt_cv_sys_global_symbol_to_c_name_address \
19961 + sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19962 + old_postinstall_cmds old_postuninstall_cmds \
19966 + lt_prog_compiler_wl \
19967 + lt_prog_compiler_pic \
19968 + lt_prog_compiler_static \
19969 + lt_prog_compiler_no_builtin_flag \
19970 + export_dynamic_flag_spec \
19971 + thread_safe_flag_spec \
19972 + whole_archive_flag_spec \
19973 + enable_shared_with_static_runtimes \
19974 + old_archive_cmds \
19975 + old_archive_from_new_cmds \
19977 + postdep_objects \
19980 + compiler_lib_search_path \
19982 + archive_expsym_cmds \
19983 + postinstall_cmds \
19984 + postuninstall_cmds \
19985 + old_archive_from_expsyms_cmds \
19986 + allow_undefined_flag \
19987 + no_undefined_flag \
19988 + export_symbols_cmds \
19989 + hardcode_libdir_flag_spec \
19990 + hardcode_libdir_flag_spec_ld \
19991 + hardcode_libdir_separator \
19992 + hardcode_automatic \
19994 + module_expsym_cmds \
19995 + lt_cv_prog_compiler_c_o \
19996 + exclude_expsyms \
19997 + include_expsyms; do
20000 + old_archive_cmds | \
20001 + old_archive_from_new_cmds | \
20003 + archive_expsym_cmds | \
20005 + module_expsym_cmds | \
20006 + old_archive_from_expsyms_cmds | \
20007 + export_symbols_cmds | \
20008 + extract_expsyms_cmds | reload_cmds | finish_cmds | \
20009 + postinstall_cmds | postuninstall_cmds | \
20010 + old_postinstall_cmds | old_postuninstall_cmds | \
20011 + sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20012 + # Double-quote double-evaled strings.
20013 + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20016 + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20022 + *'\$0 --fallback-echo"')
20023 + lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20027 +cfgfile="${ofile}T"
20028 + trap "$rm \"$cfgfile\"; exit 1" 1 2 15
20029 + $rm -f "$cfgfile"
20030 + { echo "$as_me:$LINENO: creating $ofile" >&5
20031 +echo "$as_me: creating $ofile" >&6;}
20033 + cat <<__EOF__ >> "$cfgfile"
20036 +# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
20037 +# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
20038 +# NOTE: Changes made to this file will be lost: look at ltmain.sh.
20040 +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
20041 +# Free Software Foundation, Inc.
20043 +# This file is part of GNU Libtool:
20044 +# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
20046 +# This program is free software; you can redistribute it and/or modify
20047 +# it under the terms of the GNU General Public License as published by
20048 +# the Free Software Foundation; either version 2 of the License, or
20049 +# (at your option) any later version.
20051 +# This program is distributed in the hope that it will be useful, but
20052 +# WITHOUT ANY WARRANTY; without even the implied warranty of
20053 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
20054 +# General Public License for more details.
20056 +# You should have received a copy of the GNU General Public License
20057 +# along with this program; if not, write to the Free Software
20058 +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20060 +# As a special exception to the GNU General Public License, if you
20061 +# distribute this file as part of a program that contains a
20062 +# configuration script generated by Autoconf, you may include it under
20063 +# the same distribution terms that you use for the rest of that program.
20065 +# A sed program that does not truncate output.
20068 +# Sed that helps us avoid accidentally triggering echo(1) options like -n.
20069 +Xsed="$SED -e 1s/^X//"
20071 +# The HP-UX ksh and POSIX shell print the target directory to stdout
20072 +# if CDPATH is set.
20073 +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20075 +# The names of the tagged configurations supported by this script.
20078 +# ### BEGIN LIBTOOL CONFIG
20080 +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20082 +# Shell to use when invoking shell scripts.
20085 +# Whether or not to build shared libraries.
20086 +build_libtool_libs=$enable_shared
20088 +# Whether or not to build static libraries.
20089 +build_old_libs=$enable_static
20091 +# Whether or not to add -lc for building shared libraries.
20092 +build_libtool_need_lc=$archive_cmds_need_lc
20094 +# Whether or not to disallow shared libs when runtime libs are static
20095 +allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20097 +# Whether or not to optimize for fast installation.
20098 +fast_install=$enable_fast_install
20100 +# The host system.
20101 +host_alias=$host_alias
20105 +# The build system.
20106 +build_alias=$build_alias
20108 +build_os=$build_os
20110 +# An echo program that does not interpret backslashes.
20115 +AR_FLAGS=$lt_AR_FLAGS
20120 +# LTCC compiler flags.
20121 +LTCFLAGS=$lt_LTCFLAGS
20123 +# A language-specific compiler.
20126 +# Is the compiler the GNU C compiler?
20132 +# The linker used to build libraries.
20135 +# Whether we need hard or soft links.
20138 +# A BSD-compatible nm program.
20141 +# A symbol stripping program
20144 +# Used to examine libraries when file_magic_cmd begins "file"
20145 +MAGIC_CMD=$MAGIC_CMD
20147 +# Used on cygwin: DLL creation program.
20148 +DLLTOOL="$DLLTOOL"
20150 +# Used on cygwin: object dumper.
20151 +OBJDUMP="$OBJDUMP"
20153 +# Used on cygwin: assembler.
20156 +# The name of the directory that contains temporary libtool files.
20159 +# How to create reloadable object files.
20160 +reload_flag=$lt_reload_flag
20161 +reload_cmds=$lt_reload_cmds
20163 +# How to pass a linker flag through the compiler.
20164 +wl=$lt_lt_prog_compiler_wl
20166 +# Object file suffix (normally "o").
20167 +objext="$ac_objext"
20169 +# Old archive suffix (normally "a").
20172 +# Shared library suffix (normally ".so").
20173 +shrext_cmds='$shrext_cmds'
20175 +# Executable file suffix (normally "").
20178 +# Additional compiler flags for building library objects.
20179 +pic_flag=$lt_lt_prog_compiler_pic
20180 +pic_mode=$pic_mode
20182 +# What is the maximum length of a command?
20183 +max_cmd_len=$lt_cv_sys_max_cmd_len
20185 +# Does compiler simultaneously support -c and -o options?
20186 +compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20188 +# Must we lock files when doing compilation?
20189 +need_locks=$lt_need_locks
20191 +# Do we need the lib prefix for modules?
20192 +need_lib_prefix=$need_lib_prefix
20194 +# Do we need a version for libraries?
20195 +need_version=$need_version
20197 +# Whether dlopen is supported.
20198 +dlopen_support=$enable_dlopen
20200 +# Whether dlopen of programs is supported.
20201 +dlopen_self=$enable_dlopen_self
20203 +# Whether dlopen of statically linked programs is supported.
20204 +dlopen_self_static=$enable_dlopen_self_static
20206 +# Compiler flag to prevent dynamic linking.
20207 +link_static_flag=$lt_lt_prog_compiler_static
20209 +# Compiler flag to turn off builtin functions.
20210 +no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20212 +# Compiler flag to allow reflexive dlopens.
20213 +export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20215 +# Compiler flag to generate shared objects directly from archives.
20216 +whole_archive_flag_spec=$lt_whole_archive_flag_spec
20218 +# Compiler flag to generate thread-safe objects.
20219 +thread_safe_flag_spec=$lt_thread_safe_flag_spec
20221 +# Library versioning type.
20222 +version_type=$version_type
20224 +# Format of library name prefix.
20225 +libname_spec=$lt_libname_spec
20227 +# List of archive names. First name is the real one, the rest are links.
20228 +# The last name is the one that the linker finds with -lNAME.
20229 +library_names_spec=$lt_library_names_spec
20231 +# The coded name of the library, if different from the real name.
20232 +soname_spec=$lt_soname_spec
20234 +# Commands used to build and install an old-style archive.
20236 +old_archive_cmds=$lt_old_archive_cmds
20237 +old_postinstall_cmds=$lt_old_postinstall_cmds
20238 +old_postuninstall_cmds=$lt_old_postuninstall_cmds
20240 +# Create an old-style archive from a shared archive.
20241 +old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20243 +# Create a temporary old-style archive to link instead of a shared archive.
20244 +old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20246 +# Commands used to build and install a shared archive.
20247 +archive_cmds=$lt_archive_cmds
20248 +archive_expsym_cmds=$lt_archive_expsym_cmds
20249 +postinstall_cmds=$lt_postinstall_cmds
20250 +postuninstall_cmds=$lt_postuninstall_cmds
20252 +# Commands used to build a loadable module (assumed same as above if empty)
20253 +module_cmds=$lt_module_cmds
20254 +module_expsym_cmds=$lt_module_expsym_cmds
20256 +# Commands to strip libraries.
20257 +old_striplib=$lt_old_striplib
20258 +striplib=$lt_striplib
20260 +# Dependencies to place before the objects being linked to create a
20262 +predep_objects=$lt_predep_objects
20264 +# Dependencies to place after the objects being linked to create a
20266 +postdep_objects=$lt_postdep_objects
20268 +# Dependencies to place before the objects being linked to create a
20270 +predeps=$lt_predeps
20272 +# Dependencies to place after the objects being linked to create a
20274 +postdeps=$lt_postdeps
20276 +# The library search path used internally by the compiler when linking
20277 +# a shared library.
20278 +compiler_lib_search_path=$lt_compiler_lib_search_path
20280 +# Method to check whether dependent libraries are shared objects.
20281 +deplibs_check_method=$lt_deplibs_check_method
20283 +# Command to use when deplibs_check_method == file_magic.
20284 +file_magic_cmd=$lt_file_magic_cmd
20286 +# Flag that allows shared libraries with undefined symbols to be built.
20287 +allow_undefined_flag=$lt_allow_undefined_flag
20289 +# Flag that forces no undefined symbols.
20290 +no_undefined_flag=$lt_no_undefined_flag
20292 +# Commands used to finish a libtool library installation in a directory.
20293 +finish_cmds=$lt_finish_cmds
20295 +# Same as above, but a single script fragment to be evaled but not shown.
20296 +finish_eval=$lt_finish_eval
20298 +# Take the output of nm and produce a listing of raw symbols and C names.
20299 +global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20301 +# Transform the output of nm in a proper C declaration
20302 +global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20304 +# Transform the output of nm in a C name address pair
20305 +global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20307 +# This is the shared library runtime path variable.
20308 +runpath_var=$runpath_var
20310 +# This is the shared library path variable.
20311 +shlibpath_var=$shlibpath_var
20313 +# Is shlibpath searched before the hard-coded library search path?
20314 +shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20316 +# How to hardcode a shared library path into an executable.
20317 +hardcode_action=$hardcode_action
20319 +# Whether we should hardcode library paths into libraries.
20320 +hardcode_into_libs=$hardcode_into_libs
20322 +# Flag to hardcode \$libdir into a binary during linking.
20323 +# This must work even if \$libdir does not exist.
20324 +hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20326 +# If ld is used when linking, flag to hardcode \$libdir into
20327 +# a binary during linking. This must work even if \$libdir does
20329 +hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
20331 +# Whether we need a single -rpath flag with a separated argument.
20332 +hardcode_libdir_separator=$lt_hardcode_libdir_separator
20334 +# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20335 +# resulting binary.
20336 +hardcode_direct=$hardcode_direct
20338 +# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20339 +# resulting binary.
20340 +hardcode_minus_L=$hardcode_minus_L
20342 +# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20343 +# the resulting binary.
20344 +hardcode_shlibpath_var=$hardcode_shlibpath_var
20346 +# Set to yes if building a shared library automatically hardcodes DIR into the library
20347 +# and all subsequent libraries and executables linked against it.
20348 +hardcode_automatic=$hardcode_automatic
20350 +# Variables whose values should be saved in libtool wrapper scripts and
20351 +# restored at relink time.
20352 +variables_saved_for_relink="$variables_saved_for_relink"
20354 +# Whether libtool must link a program against all its dependency libraries.
20355 +link_all_deplibs=$link_all_deplibs
20357 +# Compile-time system search path for libraries
20358 +sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20360 +# Run-time system search path for libraries
20361 +sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20363 +# Fix the shell variable \$srcfile for the compiler.
20364 +fix_srcfile_path="$fix_srcfile_path"
20366 +# Set to yes if exported symbols are required.
20367 +always_export_symbols=$always_export_symbols
20369 +# The commands to list exported symbols.
20370 +export_symbols_cmds=$lt_export_symbols_cmds
20372 +# The commands to extract the exported symbol list from a shared archive.
20373 +extract_expsyms_cmds=$lt_extract_expsyms_cmds
20375 +# Symbols that should not be listed in the preloaded symbols.
20376 +exclude_expsyms=$lt_exclude_expsyms
20378 +# Symbols that must always be exported.
20379 +include_expsyms=$lt_include_expsyms
20381 +# ### END LIBTOOL CONFIG
20388 + cat <<\EOF >> "$cfgfile"
20390 +# AIX sometimes has problems with the GCC collect2 program. For some
20391 +# reason, if we set the COLLECT_NAMES environment variable, the problems
20392 +# vanish in a puff of smoke.
20393 +if test "X${COLLECT_NAMES+set}" != Xset; then
20395 + export COLLECT_NAMES
20401 + # We use sed instead of cat because bash on DJGPP gets confused if
20402 + # if finds mixed CR/LF and LF-only lines. Since sed operates in
20403 + # text mode, it properly converts lines to CR/LF. This bash problem
20404 + # is reportedly fixed, but why not run on old versions too?
20405 + sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
20407 + mv -f "$cfgfile" "$ofile" || \
20408 + (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20409 + chmod +x "$ofile"
20412 + # If there is no Makefile yet, we rely on a make rule to execute
20413 + # `config.status --recheck' to rerun these tests and create the
20414 + # libtool script then.
20415 + ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20416 + if test -f "$ltmain_in"; then
20417 + test -f Makefile && make "$ltmain"
20423 +ac_cpp='$CPP $CPPFLAGS'
20424 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20425 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20426 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
20431 +# Check whether --with-tags or --without-tags was given.
20432 +if test "${with_tags+set}" = set; then
20433 + withval="$with_tags"
20434 + tagnames="$withval"
20437 +if test -f "$ltmain" && test -n "$tagnames"; then
20438 + if test ! -f "${ofile}"; then
20439 + { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
20440 +echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
20443 + if test -z "$LTCC"; then
20444 + eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
20445 + if test -z "$LTCC"; then
20446 + { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
20447 +echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
20449 + { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
20450 +echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
20453 + if test -z "$LTCFLAGS"; then
20454 + eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
20457 + # Extract list of available tagged configurations in $ofile.
20458 + # Note that this assumes the entire list is on one line.
20459 + available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
20461 + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
20462 + for tagname in $tagnames; do
20463 + IFS="$lt_save_ifs"
20464 + # Check whether tagname contains only valid characters
20465 + case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
20467 + *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
20468 +echo "$as_me: error: invalid tag name: $tagname" >&2;}
20469 + { (exit 1); exit 1; }; }
20473 + if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
20475 + { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
20476 +echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
20477 + { (exit 1); exit 1; }; }
20480 + # Update the list of available tags.
20481 + if test -n "$tagname"; then
20482 + echo appending configuration tag \"$tagname\" to $ofile
20486 + if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
20487 + ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
20488 + (test "X$CXX" != "Xg++"))) ; then
20490 +ac_cpp='$CXXCPP $CPPFLAGS'
20491 +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20492 +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20493 +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20498 +archive_cmds_need_lc_CXX=no
20499 +allow_undefined_flag_CXX=
20500 +always_export_symbols_CXX=no
20501 +archive_expsym_cmds_CXX=
20502 +export_dynamic_flag_spec_CXX=
20503 +hardcode_direct_CXX=no
20504 +hardcode_libdir_flag_spec_CXX=
20505 +hardcode_libdir_flag_spec_ld_CXX=
20506 +hardcode_libdir_separator_CXX=
20507 +hardcode_minus_L_CXX=no
20508 +hardcode_shlibpath_var_CXX=unsupported
20509 +hardcode_automatic_CXX=no
20511 +module_expsym_cmds_CXX=
20512 +link_all_deplibs_CXX=unknown
20513 +old_archive_cmds_CXX=$old_archive_cmds
20514 +no_undefined_flag_CXX=
20515 +whole_archive_flag_spec_CXX=
20516 +enable_shared_with_static_runtimes_CXX=no
20518 +# Dependencies to place before and after the object being linked:
20519 +predep_objects_CXX=
20520 +postdep_objects_CXX=
20523 +compiler_lib_search_path_CXX=
20525 +# Source file extension for C++ test sources.
20528 +# Object file extension for compiled C++ test sources.
20530 +objext_CXX=$objext
20532 +# Code to be used in simple compile tests
20533 +lt_simple_compile_test_code="int some_variable = 0;\n"
20535 +# Code to be used in simple link tests
20536 +lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
20538 +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
20540 +# If no C compiler was specified, use CC.
20541 +LTCC=${LTCC-"$CC"}
20543 +# If no C compiler flags were specified, use CFLAGS.
20544 +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
20546 +# Allow CC to be a program name with arguments.
20550 +# save warnings/boilerplate of simple test code
20551 +ac_outfile=conftest.$ac_objext
20552 +printf "$lt_simple_compile_test_code" >conftest.$ac_ext
20553 +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20554 +_lt_compiler_boilerplate=`cat conftest.err`
20557 +ac_outfile=conftest.$ac_objext
20558 +printf "$lt_simple_link_test_code" >conftest.$ac_ext
20559 +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20560 +_lt_linker_boilerplate=`cat conftest.err`
20564 +# Allow CC to be a program name with arguments.
20569 +lt_save_with_gnu_ld=$with_gnu_ld
20570 +lt_save_path_LD=$lt_cv_path_LD
20571 +if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
20572 + lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
20574 + $as_unset lt_cv_prog_gnu_ld
20576 +if test -n "${lt_cv_path_LDCXX+set}"; then
20577 + lt_cv_path_LD=$lt_cv_path_LDCXX
20579 + $as_unset lt_cv_path_LD
20581 +test -z "${LDCXX+set}" || LD=$LDCXX
20585 +for cc_temp in $compiler""; do
20587 + compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20588 + distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20593 +cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
20596 +# We don't want -fno-exception wen compiling C++ code, so set the
20597 +# no_builtin_flag separately
20598 +if test "$GXX" = yes; then
20599 + lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
20601 + lt_prog_compiler_no_builtin_flag_CXX=
20604 +if test "$GXX" = yes; then
20605 + # Set up default GNU C++ configuration
20608 +# Check whether --with-gnu-ld or --without-gnu-ld was given.
20609 +if test "${with_gnu_ld+set}" = set; then
20610 + withval="$with_gnu_ld"
20611 + test "$withval" = no || with_gnu_ld=yes
20616 +if test "$GCC" = yes; then
20617 + # Check if gcc -print-prog-name=ld gives a path.
20618 + echo "$as_me:$LINENO: checking for ld used by $CC" >&5
20619 +echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
20622 + # gcc leaves a trailing carriage return which upsets mingw
20623 + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
20625 + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
20628 + # Accept absolute paths.
20629 + [\\/]* | ?:[\\/]*)
20630 + re_direlt='/[^/][^/]*/\.\./'
20631 + # Canonicalize the pathname of ld
20632 + ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
20633 + while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
20634 + ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
20636 + test -z "$LD" && LD="$ac_prog"
20639 + # If it fails, then pretend we aren't using GCC.
20643 + # If it is relative, then search for the first ld in PATH.
20644 + with_gnu_ld=unknown
20647 +elif test "$with_gnu_ld" = yes; then
20648 + echo "$as_me:$LINENO: checking for GNU ld" >&5
20649 +echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
20651 + echo "$as_me:$LINENO: checking for non-GNU ld" >&5
20652 +echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
20654 +if test "${lt_cv_path_LD+set}" = set; then
20655 + echo $ECHO_N "(cached) $ECHO_C" >&6
20657 + if test -z "$LD"; then
20658 + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
20659 + for ac_dir in $PATH; do
20660 + IFS="$lt_save_ifs"
20661 + test -z "$ac_dir" && ac_dir=.
20662 + if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
20663 + lt_cv_path_LD="$ac_dir/$ac_prog"
20664 + # Check to see if the program is GNU ld. I'd rather use --version,
20665 + # but apparently some variants of GNU ld only accept -v.
20666 + # Break only if it was the GNU/non-GNU ld that we prefer.
20667 + case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
20668 + *GNU* | *'with BFD'*)
20669 + test "$with_gnu_ld" != no && break
20672 + test "$with_gnu_ld" != yes && break
20677 + IFS="$lt_save_ifs"
20679 + lt_cv_path_LD="$LD" # Let the user override the test with a path.
20683 +LD="$lt_cv_path_LD"
20684 +if test -n "$LD"; then
20685 + echo "$as_me:$LINENO: result: $LD" >&5
20686 +echo "${ECHO_T}$LD" >&6
20688 + echo "$as_me:$LINENO: result: no" >&5
20689 +echo "${ECHO_T}no" >&6
20691 +test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
20692 +echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
20693 + { (exit 1); exit 1; }; }
20694 +echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
20695 +echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
20696 +if test "${lt_cv_prog_gnu_ld+set}" = set; then
20697 + echo $ECHO_N "(cached) $ECHO_C" >&6
20699 + # I'd rather use --version here, but apparently some GNU lds only accept -v.
20700 +case `$LD -v 2>&1 </dev/null` in
20701 +*GNU* | *'with BFD'*)
20702 + lt_cv_prog_gnu_ld=yes
20705 + lt_cv_prog_gnu_ld=no
20709 +echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
20710 +echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
20711 +with_gnu_ld=$lt_cv_prog_gnu_ld
20715 + # Check if GNU C++ uses GNU ld as the underlying linker, since the
20716 + # archiving commands below assume that GNU ld is being used.
20717 + if test "$with_gnu_ld" = yes; then
20718 + archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
20719 + archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
20721 + hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
20722 + export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
20724 + # If archive_cmds runs LD, not CC, wlarc should be empty
20725 + # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
20726 + # investigate it a little bit more. (MM)
20729 + # ancient GNU ld didn't support --whole-archive et. al.
20730 + if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
20731 + grep 'no-whole-archive' > /dev/null; then
20732 + whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
20734 + whole_archive_flag_spec_CXX=
20740 + # A generic and very simple default shared library creation
20741 + # command for GNU C++ for the case where it uses the native
20742 + # linker, instead of GNU ld. If possible, this setting should
20743 + # overridden to take advantage of the native linker features on
20744 + # the platform it is being used on.
20745 + archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
20748 + # Commands to make compiler produce verbose output that lists
20749 + # what "hidden" libraries, object files and flags are used when
20750 + # linking a shared library.
20751 + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
20759 +# PORTME: fill in a description of your system's C++ link characteristics
20760 +echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20761 +echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
20765 + # FIXME: insert proper C++ library support
20769 + if test "$host_cpu" = ia64; then
20770 + # On IA64, the linker does run time linking by default, so we don't
20771 + # have to do anything special.
20772 + aix_use_runtimelinking=no
20773 + exp_sym_flag='-Bexport'
20776 + aix_use_runtimelinking=no
20778 + # Test if we are trying to use run time linking or normal
20779 + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
20780 + # need to do runtime linking.
20781 + case $host_os in aix4.[23]|aix4.[23].*|aix5*)
20782 + for ld_flag in $LDFLAGS; do
20785 + aix_use_runtimelinking=yes
20793 + exp_sym_flag='-bexport'
20794 + no_entry_flag='-bnoentry'
20797 + # When large executables or shared objects are built, AIX ld can
20798 + # have problems creating the table of contents. If linking a library
20799 + # or program results in "error TOC overflow" add -mminimal-toc to
20800 + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
20801 + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
20803 + archive_cmds_CXX=''
20804 + hardcode_direct_CXX=yes
20805 + hardcode_libdir_separator_CXX=':'
20806 + link_all_deplibs_CXX=yes
20808 + if test "$GXX" = yes; then
20809 + case $host_os in aix4.[012]|aix4.[012].*)
20810 + # We only want to do this on AIX 4.2 and lower, the check
20811 + # below for broken collect2 doesn't work under 4.3+
20812 + collect2name=`${CC} -print-prog-name=collect2`
20813 + if test -f "$collect2name" && \
20814 + strings "$collect2name" | grep resolve_lib_name >/dev/null
20816 + # We have reworked collect2
20817 + hardcode_direct_CXX=yes
20819 + # We have old collect2
20820 + hardcode_direct_CXX=unsupported
20821 + # It fails to find uninstalled libraries when the uninstalled
20822 + # path is not listed in the libpath. Setting hardcode_minus_L
20823 + # to unsupported forces relinking
20824 + hardcode_minus_L_CXX=yes
20825 + hardcode_libdir_flag_spec_CXX='-L$libdir'
20826 + hardcode_libdir_separator_CXX=
20830 + shared_flag='-shared'
20831 + if test "$aix_use_runtimelinking" = yes; then
20832 + shared_flag="$shared_flag "'${wl}-G'
20836 + if test "$host_cpu" = ia64; then
20837 + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
20838 + # chokes on -Wl,-G. The following line is correct:
20841 + if test "$aix_use_runtimelinking" = yes; then
20842 + shared_flag='${wl}-G'
20844 + shared_flag='${wl}-bM:SRE'
20849 + # It seems that -bexpall does not export symbols beginning with
20850 + # underscore (_), so it is better to generate a list of symbols to export.
20851 + always_export_symbols_CXX=yes
20852 + if test "$aix_use_runtimelinking" = yes; then
20853 + # Warning - without using the other runtime loading flags (-brtl),
20854 + # -berok will link without error, but may produce a broken library.
20855 + allow_undefined_flag_CXX='-berok'
20856 + # Determine the default libpath from the value encoded in an empty executable.
20857 + cat >conftest.$ac_ext <<_ACEOF
20860 +cat confdefs.h >>conftest.$ac_ext
20861 +cat >>conftest.$ac_ext <<_ACEOF
20862 +/* end confdefs.h. */
20872 +rm -f conftest.$ac_objext conftest$ac_exeext
20873 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20874 + (eval $ac_link) 2>conftest.er1
20876 + grep -v '^ *+' conftest.er1 >conftest.err
20877 + rm -f conftest.er1
20878 + cat conftest.err >&5
20879 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
20880 + (exit $ac_status); } &&
20881 + { ac_try='test -z "$ac_cxx_werror_flag"
20882 + || test ! -s conftest.err'
20883 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20884 + (eval $ac_try) 2>&5
20886 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
20887 + (exit $ac_status); }; } &&
20888 + { ac_try='test -s conftest$ac_exeext'
20889 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20890 + (eval $ac_try) 2>&5
20892 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
20893 + (exit $ac_status); }; }; then
20895 +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
20897 +# Check for a 64-bit object if we didn't find anything.
20898 +if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
20901 + echo "$as_me: failed program was:" >&5
20902 +sed 's/^/| /' conftest.$ac_ext >&5
20905 +rm -f conftest.err conftest.$ac_objext \
20906 + conftest$ac_exeext conftest.$ac_ext
20907 +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20909 + hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
20911 + archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
20913 + if test "$host_cpu" = ia64; then
20914 + hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
20915 + allow_undefined_flag_CXX="-z nodefs"
20916 + archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
20918 + # Determine the default libpath from the value encoded in an empty executable.
20919 + cat >conftest.$ac_ext <<_ACEOF
20922 +cat confdefs.h >>conftest.$ac_ext
20923 +cat >>conftest.$ac_ext <<_ACEOF
20924 +/* end confdefs.h. */
20934 +rm -f conftest.$ac_objext conftest$ac_exeext
20935 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20936 + (eval $ac_link) 2>conftest.er1
20938 + grep -v '^ *+' conftest.er1 >conftest.err
20939 + rm -f conftest.er1
20940 + cat conftest.err >&5
20941 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
20942 + (exit $ac_status); } &&
20943 + { ac_try='test -z "$ac_cxx_werror_flag"
20944 + || test ! -s conftest.err'
20945 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20946 + (eval $ac_try) 2>&5
20948 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
20949 + (exit $ac_status); }; } &&
20950 + { ac_try='test -s conftest$ac_exeext'
20951 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20952 + (eval $ac_try) 2>&5
20954 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
20955 + (exit $ac_status); }; }; then
20957 +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
20959 +# Check for a 64-bit object if we didn't find anything.
20960 +if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
20963 + echo "$as_me: failed program was:" >&5
20964 +sed 's/^/| /' conftest.$ac_ext >&5
20967 +rm -f conftest.err conftest.$ac_objext \
20968 + conftest$ac_exeext conftest.$ac_ext
20969 +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20971 + hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
20972 + # Warning - without using the other run time loading flags,
20973 + # -berok will link without error, but may produce a broken library.
20974 + no_undefined_flag_CXX=' ${wl}-bernotok'
20975 + allow_undefined_flag_CXX=' ${wl}-berok'
20976 + # Exported symbols can be pulled into shared objects from archives
20977 + whole_archive_flag_spec_CXX='$convenience'
20978 + archive_cmds_need_lc_CXX=yes
20979 + # This is similar to how AIX traditionally builds its shared libraries.
20980 + archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
20986 + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20987 + allow_undefined_flag_CXX=unsupported
20988 + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
20989 + # support --undefined. This deserves some investigation. FIXME
20990 + archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20997 + case $cc_basename in
20999 + # FIXME: insert proper C++ library support
21005 + cygwin* | mingw* | pw32*)
21006 + # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
21007 + # as there is no search path for DLLs.
21008 + hardcode_libdir_flag_spec_CXX='-L$libdir'
21009 + allow_undefined_flag_CXX=unsupported
21010 + always_export_symbols_CXX=no
21011 + enable_shared_with_static_runtimes_CXX=yes
21013 + if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21014 + archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21015 + # If the export-symbols file already is a .def file (1st line
21016 + # is EXPORTS), use it as is; otherwise, prepend...
21017 + archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21018 + cp $export_symbols $output_objdir/$soname.def;
21020 + echo EXPORTS > $output_objdir/$soname.def;
21021 + cat $export_symbols >> $output_objdir/$soname.def;
21023 + $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21028 + darwin* | rhapsody*)
21030 + rhapsody* | darwin1.[012])
21031 + allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
21033 + *) # Darwin 1.3 on
21034 + if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
21035 + allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21037 + case ${MACOSX_DEPLOYMENT_TARGET} in
21039 + allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21042 + allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
21048 + archive_cmds_need_lc_CXX=no
21049 + hardcode_direct_CXX=no
21050 + hardcode_automatic_CXX=yes
21051 + hardcode_shlibpath_var_CXX=unsupported
21052 + whole_archive_flag_spec_CXX=''
21053 + link_all_deplibs_CXX=yes
21055 + if test "$GXX" = yes ; then
21056 + lt_int_apple_cc_single_mod=no
21057 + output_verbose_link_cmd='echo'
21058 + if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
21059 + lt_int_apple_cc_single_mod=yes
21061 + if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
21062 + archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
21064 + archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
21066 + module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21067 + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
21068 + if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
21069 + archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
21071 + archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
21073 + module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
21075 + case $cc_basename in
21077 + output_verbose_link_cmd='echo'
21078 + archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
21079 + module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21080 + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
21081 + archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
21082 + module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
21092 + case $cc_basename in
21094 + # FIXME: insert proper C++ library support
21098 + # Green Hills C++ Compiler
21099 + # FIXME: insert proper C++ library support
21103 + # FIXME: insert proper C++ library support
21109 + # C++ shared libraries reported to be fairly broken before switch to ELF
21113 + archive_cmds_need_lc_CXX=no
21115 + freebsd* | kfreebsd*-gnu | dragonfly*)
21116 + # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
21118 + ld_shlibs_CXX=yes
21123 + hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
21124 + hardcode_libdir_separator_CXX=:
21125 + export_dynamic_flag_spec_CXX='${wl}-E'
21126 + hardcode_direct_CXX=yes
21127 + hardcode_minus_L_CXX=yes # Not in the search PATH,
21128 + # but as the default
21129 + # location of the library.
21131 + case $cc_basename in
21133 + # FIXME: insert proper C++ library support
21137 + archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
21138 + # Commands to make compiler produce verbose output that lists
21139 + # what "hidden" libraries, object files and flags are used when
21140 + # linking a shared library.
21142 + # There doesn't appear to be a way to prevent this compiler from
21143 + # explicitly linking system object files so we need to strip them
21144 + # from the output so that they don't get included in the library
21146 + output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
21149 + if test "$GXX" = yes; then
21150 + archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
21152 + # FIXME: insert proper C++ library support
21159 + if test $with_gnu_ld = no; then
21160 + hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
21161 + hardcode_libdir_separator_CXX=:
21163 + case $host_cpu in
21165 + hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
21168 + export_dynamic_flag_spec_CXX='${wl}-E'
21172 + case $host_cpu in
21174 + hardcode_direct_CXX=no
21175 + hardcode_shlibpath_var_CXX=no
21178 + hardcode_direct_CXX=yes
21179 + hardcode_minus_L_CXX=yes # Not in the search PATH,
21180 + # but as the default
21181 + # location of the library.
21185 + case $cc_basename in
21187 + # FIXME: insert proper C++ library support
21191 + case $host_cpu in
21193 + archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
21196 + archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
21199 + archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
21202 + # Commands to make compiler produce verbose output that lists
21203 + # what "hidden" libraries, object files and flags are used when
21204 + # linking a shared library.
21206 + # There doesn't appear to be a way to prevent this compiler from
21207 + # explicitly linking system object files so we need to strip them
21208 + # from the output so that they don't get included in the library
21210 + output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
21213 + if test "$GXX" = yes; then
21214 + if test $with_gnu_ld = no; then
21215 + case $host_cpu in
21217 + archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
21220 + archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
21223 + archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
21228 + # FIXME: insert proper C++ library support
21235 + hardcode_direct_CXX=no
21236 + hardcode_shlibpath_var_CXX=no
21237 + hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
21238 + export_dynamic_flag_spec_CXX='${wl}-E'
21239 + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
21240 + # Instead, shared libraries are loaded at an image base (0x10000000 by
21241 + # default) and relocated if they conflict, which is a slow very memory
21242 + # consuming and fragmenting process. To avoid this, we pick a random,
21243 + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
21244 + # time. Moving up from 0x10000000 also allows more sbrk(2) space.
21245 + archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
21246 + archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
21249 + case $cc_basename in
21252 + archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
21254 + # Archives containing C++ object files must be created using
21255 + # "CC -ar", where "CC" is the IRIX C++ compiler. This is
21256 + # necessary to make sure instantiated templates are included
21257 + # in the archive.
21258 + old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
21261 + if test "$GXX" = yes; then
21262 + if test "$with_gnu_ld" = no; then
21263 + archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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'
21265 + archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
21268 + link_all_deplibs_CXX=yes
21271 + hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
21272 + hardcode_libdir_separator_CXX=:
21275 + case $cc_basename in
21277 + # Kuck and Associates, Inc. (KAI) C++ Compiler
21279 + # KCC will only create a shared library if the output file
21280 + # ends with ".so" (or ".sl" for HP-UX), so rename the library
21281 + # to its proper name (with version) after linking.
21282 + archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
21283 + archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
21284 + # Commands to make compiler produce verbose output that lists
21285 + # what "hidden" libraries, object files and flags are used when
21286 + # linking a shared library.
21288 + # There doesn't appear to be a way to prevent this compiler from
21289 + # explicitly linking system object files so we need to strip them
21290 + # from the output so that they don't get included in the library
21292 + output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
21294 + hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
21295 + export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
21297 + # Archives containing C++ object files must be created using
21298 + # "CC -Bstatic", where "CC" is the KAI C++ compiler.
21299 + old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
21304 + # version 8.0 and above of icpc choke on multiply defined symbols
21305 + # if we add $predep_objects and $postdep_objects, however 7.1 and
21306 + # earlier do not add the objects themselves.
21307 + case `$CC -V 2>&1` in
21309 + archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
21310 + archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21312 + *) # Version 8.0 or newer
21314 + case $host_cpu in
21315 + ia64*) tmp_idyn=' -i_dynamic';;
21317 + archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21318 + archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21321 + archive_cmds_need_lc_CXX=no
21322 + hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
21323 + export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
21324 + whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
21327 + # Portland Group C++ compiler
21328 + archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
21329 + archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
21331 + hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
21332 + export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
21333 + whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
21337 + archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
21338 + archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
21340 + runpath_var=LD_RUN_PATH
21341 + hardcode_libdir_flag_spec_CXX='-rpath $libdir'
21342 + hardcode_libdir_separator_CXX=:
21344 + # Commands to make compiler produce verbose output that lists
21345 + # what "hidden" libraries, object files and flags are used when
21346 + # linking a shared library.
21348 + # There doesn't appear to be a way to prevent this compiler from
21349 + # explicitly linking system object files so we need to strip them
21350 + # from the output so that they don't get included in the library
21352 + output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
21357 + # FIXME: insert proper C++ library support
21361 + # FIXME: insert proper C++ library support
21365 + case $cc_basename in
21367 + # FIXME: insert proper C++ library support
21371 + # FIXME: insert proper C++ library support
21377 + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21378 + archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
21380 + hardcode_libdir_flag_spec_CXX='-R$libdir'
21381 + hardcode_direct_CXX=yes
21382 + hardcode_shlibpath_var_CXX=no
21384 + # Workaround some broken pre-1.5 toolchains
21385 + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
21388 + # C++ shared libraries are fairly broken
21392 + hardcode_direct_CXX=yes
21393 + hardcode_shlibpath_var_CXX=no
21394 + archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
21395 + hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
21396 + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21397 + archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
21398 + export_dynamic_flag_spec_CXX='${wl}-E'
21399 + whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21401 + output_verbose_link_cmd='echo'
21404 + case $cc_basename in
21406 + # Kuck and Associates, Inc. (KAI) C++ Compiler
21408 + # KCC will only create a shared library if the output file
21409 + # ends with ".so" (or ".sl" for HP-UX), so rename the library
21410 + # to its proper name (with version) after linking.
21411 + archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
21413 + hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
21414 + hardcode_libdir_separator_CXX=:
21416 + # Archives containing C++ object files must be created using
21417 + # "CC -Bstatic", where "CC" is the KAI C++ compiler.
21418 + old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
21422 + # Rational C++ 2.4.1
21423 + # FIXME: insert proper C++ library support
21427 + allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
21428 + archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
21430 + hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
21431 + hardcode_libdir_separator_CXX=:
21433 + # Commands to make compiler produce verbose output that lists
21434 + # what "hidden" libraries, object files and flags are used when
21435 + # linking a shared library.
21437 + # There doesn't appear to be a way to prevent this compiler from
21438 + # explicitly linking system object files so we need to strip them
21439 + # from the output so that they don't get included in the library
21441 + output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
21444 + if test "$GXX" = yes && test "$with_gnu_ld" = no; then
21445 + allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
21446 + archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
21448 + hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
21449 + hardcode_libdir_separator_CXX=:
21451 + # Commands to make compiler produce verbose output that lists
21452 + # what "hidden" libraries, object files and flags are used when
21453 + # linking a shared library.
21454 + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
21457 + # FIXME: insert proper C++ library support
21464 + case $cc_basename in
21466 + # Kuck and Associates, Inc. (KAI) C++ Compiler
21468 + # KCC will only create a shared library if the output file
21469 + # ends with ".so" (or ".sl" for HP-UX), so rename the library
21470 + # to its proper name (with version) after linking.
21471 + archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
21473 + hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
21474 + hardcode_libdir_separator_CXX=:
21476 + # Archives containing C++ object files must be created using
21477 + # the KAI C++ compiler.
21478 + old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
21481 + # Rational C++ 2.4.1
21482 + # FIXME: insert proper C++ library support
21486 + allow_undefined_flag_CXX=' -expect_unresolved \*'
21487 + archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
21488 + archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
21489 + echo "-hidden">> $lib.exp~
21490 + $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
21493 + hardcode_libdir_flag_spec_CXX='-rpath $libdir'
21494 + hardcode_libdir_separator_CXX=:
21496 + # Commands to make compiler produce verbose output that lists
21497 + # what "hidden" libraries, object files and flags are used when
21498 + # linking a shared library.
21500 + # There doesn't appear to be a way to prevent this compiler from
21501 + # explicitly linking system object files so we need to strip them
21502 + # from the output so that they don't get included in the library
21504 + output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
21507 + if test "$GXX" = yes && test "$with_gnu_ld" = no; then
21508 + allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
21509 + archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
21511 + hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
21512 + hardcode_libdir_separator_CXX=:
21514 + # Commands to make compiler produce verbose output that lists
21515 + # what "hidden" libraries, object files and flags are used when
21516 + # linking a shared library.
21517 + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
21520 + # FIXME: insert proper C++ library support
21527 + # FIXME: insert proper C++ library support
21531 + case $cc_basename in
21534 + # FIXME: insert proper C++ library support
21539 + # FIXME: insert proper C++ library support
21543 + # FIXME: insert proper C++ library support
21549 + case $cc_basename in
21551 + # Sun C++ 4.2, 5.x and Centerline C++
21552 + archive_cmds_need_lc_CXX=yes
21553 + no_undefined_flag_CXX=' -zdefs'
21554 + archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
21555 + archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
21556 + $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
21558 + hardcode_libdir_flag_spec_CXX='-R$libdir'
21559 + hardcode_shlibpath_var_CXX=no
21561 + solaris2.[0-5] | solaris2.[0-5].*) ;;
21563 + # The C++ compiler is used as linker so we must use $wl
21564 + # flag to pass the commands to the underlying system
21565 + # linker. We must also pass each convience library through
21566 + # to the system linker between allextract/defaultextract.
21567 + # The C++ compiler will combine linker options so we
21568 + # cannot just pass the convience library names through
21570 + # Supported since Solaris 2.6 (maybe 2.5.1?)
21571 + whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
21574 + link_all_deplibs_CXX=yes
21576 + output_verbose_link_cmd='echo'
21578 + # Archives containing C++ object files must be created using
21579 + # "CC -xar", where "CC" is the Sun C++ compiler. This is
21580 + # necessary to make sure instantiated templates are included
21581 + # in the archive.
21582 + old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
21585 + # Green Hills C++ Compiler
21586 + archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
21588 + # The C++ compiler must be used to create the archive.
21589 + old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
21592 + # GNU C++ compiler with Solaris linker
21593 + if test "$GXX" = yes && test "$with_gnu_ld" = no; then
21594 + no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
21595 + if $CC --version | grep -v '^2\.7' > /dev/null; then
21596 + archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
21597 + archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
21598 + $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
21600 + # Commands to make compiler produce verbose output that lists
21601 + # what "hidden" libraries, object files and flags are used when
21602 + # linking a shared library.
21603 + output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
21605 + # g++ 2.7 appears to require `-G' NOT `-shared' on this
21607 + archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
21608 + archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
21609 + $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
21611 + # Commands to make compiler produce verbose output that lists
21612 + # what "hidden" libraries, object files and flags are used when
21613 + # linking a shared library.
21614 + output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
21617 + hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
21622 + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
21623 + no_undefined_flag_CXX='${wl}-z,text'
21624 + archive_cmds_need_lc_CXX=no
21625 + hardcode_shlibpath_var_CXX=no
21626 + runpath_var='LD_RUN_PATH'
21628 + case $cc_basename in
21630 + archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21631 + archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21634 + archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21635 + archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21639 + sysv5* | sco3.2v5* | sco5v6*)
21640 + # Note: We can NOT use -z defs as we might desire, because we do not
21641 + # link with -lc, and that would cause any symbols used from libc to
21642 + # always be unresolved, which means just about no library would
21643 + # ever link correctly. If we're not using GNU ld we use -z text
21644 + # though, which does catch some bad symbols but isn't as heavy-handed
21646 + # For security reasons, it is highly recommended that you always
21647 + # use absolute paths for naming shared libraries, and exclude the
21648 + # DT_RUNPATH tag from executables and libraries. But doing so
21649 + # requires that you compile everything twice, which is a pain.
21650 + # So that behaviour is only enabled if SCOABSPATH is set to a
21651 + # non-empty value in the environment. Most likely only useful for
21652 + # creating official distributions of packages.
21653 + # This is a hack until libtool officially supports absolute path
21654 + # names for shared libraries.
21655 + no_undefined_flag_CXX='${wl}-z,text'
21656 + allow_undefined_flag_CXX='${wl}-z,nodefs'
21657 + archive_cmds_need_lc_CXX=no
21658 + hardcode_shlibpath_var_CXX=no
21659 + hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
21660 + hardcode_libdir_separator_CXX=':'
21661 + link_all_deplibs_CXX=yes
21662 + export_dynamic_flag_spec_CXX='${wl}-Bexport'
21663 + runpath_var='LD_RUN_PATH'
21665 + case $cc_basename in
21667 + archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
21668 + archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
21671 + archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
21672 + archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
21677 + case $cc_basename in
21679 + # NonStop-UX NCC 3.20
21680 + # FIXME: insert proper C++ library support
21684 + # FIXME: insert proper C++ library support
21690 + # FIXME: insert proper C++ library support
21694 + # FIXME: insert proper C++ library support
21698 +echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
21699 +echo "${ECHO_T}$ld_shlibs_CXX" >&6
21700 +test "$ld_shlibs_CXX" = no && can_build_shared=no
21706 +cat > conftest.$ac_ext <<EOF
21710 + Foo (void) { a = 0; }
21716 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21717 + (eval $ac_compile) 2>&5
21719 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
21720 + (exit $ac_status); }; then
21721 + # Parse the compiler output and extract the necessary
21722 + # objects, libraries and library flags.
21724 + # Sentinel used to keep track of whether or not we are before
21725 + # the conftest object file.
21726 + pre_test_object_deps_done=no
21728 + # The `*' in the case matches for architectures that use `case' in
21729 + # $output_verbose_cmd can trigger glob expansion during the loop
21730 + # eval without this substitution.
21731 + output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
21733 + for p in `eval $output_verbose_link_cmd`; do
21737 + # Some compilers place space between "-{L,R}" and the path.
21738 + # Remove the space.
21739 + if test $p = "-L" \
21740 + || test $p = "-R"; then
21747 + if test "$pre_test_object_deps_done" = no; then
21750 + # Internal compiler library paths should come after those
21751 + # provided the user. The postdeps already come after the
21752 + # user supplied libs so there is no need to process them.
21753 + if test -z "$compiler_lib_search_path_CXX"; then
21754 + compiler_lib_search_path_CXX="${prev}${p}"
21756 + compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
21759 + # The "-l" case would never come before the object being
21760 + # linked, so don't bother handling this case.
21763 + if test -z "$postdeps_CXX"; then
21764 + postdeps_CXX="${prev}${p}"
21766 + postdeps_CXX="${postdeps_CXX} ${prev}${p}"
21772 + # This assumes that the test object file only shows up
21773 + # once in the compiler output.
21774 + if test "$p" = "conftest.$objext"; then
21775 + pre_test_object_deps_done=yes
21779 + if test "$pre_test_object_deps_done" = no; then
21780 + if test -z "$predep_objects_CXX"; then
21781 + predep_objects_CXX="$p"
21783 + predep_objects_CXX="$predep_objects_CXX $p"
21786 + if test -z "$postdep_objects_CXX"; then
21787 + postdep_objects_CXX="$p"
21789 + postdep_objects_CXX="$postdep_objects_CXX $p"
21794 + *) ;; # Ignore the rest.
21800 + rm -f a.out a.exe
21802 + echo "libtool.m4: error: problem compiling CXX test program"
21805 +$rm -f confest.$objext
21807 +# PORTME: override above test on systems where it is broken
21810 + # Interix 3.5 installs completely hosed .la files for C++, so rather than
21811 + # hack all around it, let's just trust "g++" to DTRT.
21812 + predep_objects_CXX=
21813 + postdep_objects_CXX=
21818 + case $cc_basename in
21820 + # Adding this requires a known-good setup of shared libraries for
21821 + # Sun compiler versions before 5.6, else PIC objects from an old
21822 + # archive will be linked into the output, leading to subtle bugs.
21823 + postdeps_CXX='-lCstd -lCrun'
21830 +case " $postdeps_CXX " in
21831 +*" -lc "*) archive_cmds_need_lc_CXX=no ;;
21834 +lt_prog_compiler_wl_CXX=
21835 +lt_prog_compiler_pic_CXX=
21836 +lt_prog_compiler_static_CXX=
21838 +echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21839 +echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
21841 + # C++ specific cases for pic, static, wl, etc.
21842 + if test "$GXX" = yes; then
21843 + lt_prog_compiler_wl_CXX='-Wl,'
21844 + lt_prog_compiler_static_CXX='-static'
21848 + # All AIX code is PIC.
21849 + if test "$host_cpu" = ia64; then
21850 + # AIX 5 now supports IA64 processor
21851 + lt_prog_compiler_static_CXX='-Bstatic'
21855 + # FIXME: we need at least 68020 code to build shared libraries, but
21856 + # adding the `-m68020' flag to GCC prevents building anything better,
21857 + # like `-m68040'.
21858 + lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
21860 + beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21861 + # PIC is the default for these OSes.
21863 + mingw* | os2* | pw32*)
21864 + # This hack is so that the source file can tell whether it is being
21865 + # built for inclusion in a dll (and should export symbols for example).
21866 + lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
21868 + darwin* | rhapsody*)
21869 + # PIC is the default on this platform
21870 + # Common symbols not allowed in MH_DYLIB files
21871 + lt_prog_compiler_pic_CXX='-fno-common'
21874 + # DJGPP does not support shared libraries at all
21875 + lt_prog_compiler_pic_CXX=
21878 + # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21879 + # Instead, we relocate shared libraries at runtime.
21882 + if test -d /usr/nec; then
21883 + lt_prog_compiler_pic_CXX=-Kconform_pic
21887 + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21888 + # not for PA HP-UX.
21889 + case $host_cpu in
21893 + lt_prog_compiler_pic_CXX='-fPIC'
21898 + lt_prog_compiler_pic_CXX='-fPIC'
21904 + # All AIX code is PIC.
21905 + if test "$host_cpu" = ia64; then
21906 + # AIX 5 now supports IA64 processor
21907 + lt_prog_compiler_static_CXX='-Bstatic'
21909 + lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
21913 + case $cc_basename in
21915 + # Green Hills C++ Compiler
21916 + # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
21921 + # PIC is the default on this platform
21922 + # Common symbols not allowed in MH_DYLIB files
21923 + case $cc_basename in
21925 + lt_prog_compiler_pic_CXX='-qnocommon'
21926 + lt_prog_compiler_wl_CXX='-Wl,'
21931 + case $cc_basename in
21933 + lt_prog_compiler_pic_CXX='-KPIC'
21936 + # Green Hills C++ Compiler
21937 + lt_prog_compiler_pic_CXX='-pic'
21943 + freebsd* | kfreebsd*-gnu | dragonfly*)
21944 + # FreeBSD uses GNU C++
21946 + hpux9* | hpux10* | hpux11*)
21947 + case $cc_basename in
21949 + lt_prog_compiler_wl_CXX='-Wl,'
21950 + lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
21951 + if test "$host_cpu" != ia64; then
21952 + lt_prog_compiler_pic_CXX='+Z'
21956 + lt_prog_compiler_wl_CXX='-Wl,'
21957 + lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
21958 + case $host_cpu in
21963 + lt_prog_compiler_pic_CXX='+Z'
21972 + # This is c89, which is MS Visual C++ (no shared libs)
21973 + # Anyone wants to do a port?
21975 + irix5* | irix6* | nonstopux*)
21976 + case $cc_basename in
21978 + lt_prog_compiler_wl_CXX='-Wl,'
21979 + lt_prog_compiler_static_CXX='-non_shared'
21980 + # CC pic flag -KPIC is the default.
21987 + case $cc_basename in
21989 + # KAI C++ Compiler
21990 + lt_prog_compiler_wl_CXX='--backend -Wl,'
21991 + lt_prog_compiler_pic_CXX='-fPIC'
21995 + lt_prog_compiler_wl_CXX='-Wl,'
21996 + lt_prog_compiler_pic_CXX='-KPIC'
21997 + lt_prog_compiler_static_CXX='-static'
22000 + # Portland Group C++ compiler.
22001 + lt_prog_compiler_wl_CXX='-Wl,'
22002 + lt_prog_compiler_pic_CXX='-fpic'
22003 + lt_prog_compiler_static_CXX='-Bstatic'
22007 + # Make sure the PIC flag is empty. It appears that all Alpha
22008 + # Linux and Compaq Tru64 Unix objects are PIC.
22009 + lt_prog_compiler_pic_CXX=
22010 + lt_prog_compiler_static_CXX='-non_shared'
22021 + case $cc_basename in
22023 + lt_prog_compiler_pic_CXX='-W c,exportall'
22031 + osf3* | osf4* | osf5*)
22032 + case $cc_basename in
22034 + lt_prog_compiler_wl_CXX='--backend -Wl,'
22037 + # Rational C++ 2.4.1
22038 + lt_prog_compiler_pic_CXX='-pic'
22041 + # Digital/Compaq C++
22042 + lt_prog_compiler_wl_CXX='-Wl,'
22043 + # Make sure the PIC flag is empty. It appears that all Alpha
22044 + # Linux and Compaq Tru64 Unix objects are PIC.
22045 + lt_prog_compiler_pic_CXX=
22046 + lt_prog_compiler_static_CXX='-non_shared'
22055 + case $cc_basename in
22057 + # Sun C++ 4.2, 5.x and Centerline C++
22058 + lt_prog_compiler_pic_CXX='-KPIC'
22059 + lt_prog_compiler_static_CXX='-Bstatic'
22060 + lt_prog_compiler_wl_CXX='-Qoption ld '
22063 + # Green Hills C++ Compiler
22064 + lt_prog_compiler_pic_CXX='-PIC'
22071 + case $cc_basename in
22074 + lt_prog_compiler_pic_CXX='-pic'
22075 + lt_prog_compiler_static_CXX='-Bstatic'
22079 + lt_prog_compiler_pic_CXX='-pic'
22086 + case $cc_basename in
22088 + # NonStop-UX NCC 3.20
22089 + lt_prog_compiler_pic_CXX='-KPIC'
22095 + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
22096 + case $cc_basename in
22098 + lt_prog_compiler_wl_CXX='-Wl,'
22099 + lt_prog_compiler_pic_CXX='-KPIC'
22100 + lt_prog_compiler_static_CXX='-Bstatic'
22107 + lt_prog_compiler_can_build_shared_CXX=no
22112 +echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
22113 +echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
22116 +# Check to make sure the PIC flag actually works.
22118 +if test -n "$lt_prog_compiler_pic_CXX"; then
22120 +echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
22121 +echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
22122 +if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
22123 + echo $ECHO_N "(cached) $ECHO_C" >&6
22125 + lt_prog_compiler_pic_works_CXX=no
22126 + ac_outfile=conftest.$ac_objext
22127 + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22128 + lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
22129 + # Insert the option either (1) after the last *FLAGS variable, or
22130 + # (2) before a word containing "conftest.", or (3) at the end.
22131 + # Note that $ac_compile itself does not contain backslashes and begins
22132 + # with a dollar sign (not a hyphen), so the echo should work correctly.
22133 + # The option is referenced via a variable to avoid confusing sed.
22134 + lt_compile=`echo "$ac_compile" | $SED \
22135 + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
22136 + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22137 + -e 's:$: $lt_compiler_flag:'`
22138 + (eval echo "\"\$as_me:11594: $lt_compile\"" >&5)
22139 + (eval "$lt_compile" 2>conftest.err)
22141 + cat conftest.err >&5
22142 + echo "$as_me:11598: \$? = $ac_status" >&5
22143 + if (exit $ac_status) && test -s "$ac_outfile"; then
22144 + # The compiler can only warn and ignore the option if not recognized
22145 + # So say no if there are warnings other than the usual output.
22146 + $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
22147 + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
22148 + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
22149 + lt_prog_compiler_pic_works_CXX=yes
22155 +echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
22156 +echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
22158 +if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
22159 + case $lt_prog_compiler_pic_CXX in
22161 + *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
22164 + lt_prog_compiler_pic_CXX=
22165 + lt_prog_compiler_can_build_shared_CXX=no
22170 + # For platforms which do not support PIC, -DPIC is meaningless:
22172 + lt_prog_compiler_pic_CXX=
22175 + lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
22180 +# Check to make sure the static flag actually works.
22182 +wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
22183 +echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
22184 +echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
22185 +if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
22186 + echo $ECHO_N "(cached) $ECHO_C" >&6
22188 + lt_prog_compiler_static_works_CXX=no
22189 + save_LDFLAGS="$LDFLAGS"
22190 + LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
22191 + printf "$lt_simple_link_test_code" > conftest.$ac_ext
22192 + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
22193 + # The linker can only warn and ignore the option if not recognized
22194 + # So say no if there are warnings
22195 + if test -s conftest.err; then
22196 + # Append any errors to the config.log.
22197 + cat conftest.err 1>&5
22198 + $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
22199 + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
22200 + if diff conftest.exp conftest.er2 >/dev/null; then
22201 + lt_prog_compiler_static_works_CXX=yes
22204 + lt_prog_compiler_static_works_CXX=yes
22208 + LDFLAGS="$save_LDFLAGS"
22211 +echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
22212 +echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
22214 +if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
22217 + lt_prog_compiler_static_CXX=
22221 +echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
22222 +echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
22223 +if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
22224 + echo $ECHO_N "(cached) $ECHO_C" >&6
22226 + lt_cv_prog_compiler_c_o_CXX=no
22227 + $rm -r conftest 2>/dev/null
22231 + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22233 + lt_compiler_flag="-o out/conftest2.$ac_objext"
22234 + # Insert the option either (1) after the last *FLAGS variable, or
22235 + # (2) before a word containing "conftest.", or (3) at the end.
22236 + # Note that $ac_compile itself does not contain backslashes and begins
22237 + # with a dollar sign (not a hyphen), so the echo should work correctly.
22238 + lt_compile=`echo "$ac_compile" | $SED \
22239 + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
22240 + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22241 + -e 's:$: $lt_compiler_flag:'`
22242 + (eval echo "\"\$as_me:11698: $lt_compile\"" >&5)
22243 + (eval "$lt_compile" 2>out/conftest.err)
22245 + cat out/conftest.err >&5
22246 + echo "$as_me:11702: \$? = $ac_status" >&5
22247 + if (exit $ac_status) && test -s out/conftest2.$ac_objext
22249 + # The compiler can only warn and ignore the option if not recognized
22250 + # So say no if there are warnings
22251 + $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
22252 + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
22253 + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
22254 + lt_cv_prog_compiler_c_o_CXX=yes
22259 + # SGI C++ compiler will create directory out/ii_files/ for
22260 + # template instantiation
22261 + test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
22262 + $rm out/* && rmdir out
22268 +echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
22269 +echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
22272 +hard_links="nottested"
22273 +if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
22274 + # do not overwrite the value of need_locks provided by the user
22275 + echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
22276 +echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
22279 + ln conftest.a conftest.b 2>/dev/null && hard_links=no
22281 + ln conftest.a conftest.b 2>&5 || hard_links=no
22282 + ln conftest.a conftest.b 2>/dev/null && hard_links=no
22283 + echo "$as_me:$LINENO: result: $hard_links" >&5
22284 +echo "${ECHO_T}$hard_links" >&6
22285 + if test "$hard_links" = no; then
22286 + { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
22287 +echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
22294 +echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
22295 +echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
22297 + export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
22300 + # If we're using GNU nm, then we don't want the "-C" option.
22301 + # -C means demangle to AIX nm, but means don't demangle with GNU nm
22302 + if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
22303 + export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
22305 + export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
22309 + export_symbols_cmds_CXX="$ltdll_cmds"
22311 + cygwin* | mingw*)
22312 + export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
22315 + export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
22319 +echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
22320 +echo "${ECHO_T}$ld_shlibs_CXX" >&6
22321 +test "$ld_shlibs_CXX" = no && can_build_shared=no
22324 +# Do we need to explicitly link libc?
22326 +case "x$archive_cmds_need_lc_CXX" in
22328 + # Assume -lc should be added
22329 + archive_cmds_need_lc_CXX=yes
22331 + if test "$enable_shared" = yes && test "$GCC" = yes; then
22332 + case $archive_cmds_CXX in
22334 + # FIXME: we may have to deal with multi-command sequences.
22337 + # Test whether the compiler implicitly links with -lc since on some
22338 + # systems, -lgcc has to come before -lc. If gcc already passes -lc
22339 + # to ld, don't add -lc before -lgcc.
22340 + echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22341 +echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
22343 + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22345 + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22346 + (eval $ac_compile) 2>&5
22348 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
22349 + (exit $ac_status); } 2>conftest.err; then
22352 + libobjs=conftest.$ac_objext
22354 + wl=$lt_prog_compiler_wl_CXX
22355 + pic_flag=$lt_prog_compiler_pic_CXX
22356 + compiler_flags=-v
22361 + lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
22362 + allow_undefined_flag_CXX=
22363 + if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22364 + (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22366 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
22367 + (exit $ac_status); }
22369 + archive_cmds_need_lc_CXX=no
22371 + archive_cmds_need_lc_CXX=yes
22373 + allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
22375 + cat conftest.err 1>&5
22378 + echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
22379 +echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
22386 +echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22387 +echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
22388 +library_names_spec=
22389 +libname_spec='lib$name'
22393 +postuninstall_cmds=
22397 +shlibpath_overrides_runpath=unknown
22399 +dynamic_linker="$host_os ld.so"
22400 +sys_lib_dlsearch_path_spec="/lib /usr/lib"
22401 +if test "$GCC" = yes; then
22402 + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22403 + if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22404 + # if the path contains ";" then we assume it to be the separator
22405 + # otherwise default to the standard path separator (i.e. ":") - it is
22406 + # assumed that no part of a normal pathname contains ";" but that should
22407 + # okay in the real world where ";" in dirpaths is itself problematic.
22408 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22410 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22413 + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22415 +need_lib_prefix=unknown
22416 +hardcode_into_libs=no
22418 +# when you set need_version to no, make sure it does not cause -set_version
22419 +# flags to be left without arguments
22420 +need_version=unknown
22424 + version_type=linux
22425 + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22426 + shlibpath_var=LIBPATH
22428 + # AIX 3 has no versioning support, so we append a major version to the name.
22429 + soname_spec='${libname}${release}${shared_ext}$major'
22433 + version_type=linux
22434 + need_lib_prefix=no
22436 + hardcode_into_libs=yes
22437 + if test "$host_cpu" = ia64; then
22438 + # AIX 5 supports IA64
22439 + library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22440 + shlibpath_var=LD_LIBRARY_PATH
22442 + # With GCC up to 2.95.x, collect2 would create an import file
22443 + # for dependence libraries. The import file would start with
22444 + # the line `#! .'. This would cause the generated library to
22445 + # depend on `.', always an invalid library. This was fixed in
22446 + # development snapshots of GCC prior to 3.0.
22448 + aix4 | aix4.[01] | aix4.[01].*)
22449 + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22451 + echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22454 + can_build_shared=no
22458 + # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22459 + # soname into executable. Probably we can add versioning support to
22460 + # collect2, so additional links can be useful in future.
22461 + if test "$aix_use_runtimelinking" = yes; then
22462 + # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22463 + # instead of lib<name>.a to let people know that these are not
22464 + # typical AIX shared libraries.
22465 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22467 + # We preserve .a as extension for shared libraries through AIX4.2
22468 + # and later when we are not doing run time linking.
22469 + library_names_spec='${libname}${release}.a $libname.a'
22470 + soname_spec='${libname}${release}${shared_ext}$major'
22472 + shlibpath_var=LIBPATH
22477 + library_names_spec='$libname.ixlibrary $libname.a'
22478 + # Create ${libname}_ixlibrary.a entries in /sys/libs.
22479 + finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
22483 + library_names_spec='${libname}${shared_ext}'
22484 + dynamic_linker="$host_os ld.so"
22485 + shlibpath_var=LIBRARY_PATH
22489 + version_type=linux
22491 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22492 + soname_spec='${libname}${release}${shared_ext}$major'
22493 + finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22494 + shlibpath_var=LD_LIBRARY_PATH
22495 + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22496 + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22497 + # the default ld.so.conf also contains /usr/contrib/lib and
22498 + # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22499 + # libtool to hard-code these into programs
22502 +cygwin* | mingw* | pw32*)
22503 + version_type=windows
22504 + shrext_cmds=".dll"
22506 + need_lib_prefix=no
22508 + case $GCC,$host_os in
22509 + yes,cygwin* | yes,mingw* | yes,pw32*)
22510 + library_names_spec='$libname.dll.a'
22511 + # DLL is installed to $(libdir)/../bin by postinstall_cmds
22512 + postinstall_cmds='base_file=`basename \${file}`~
22513 + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22514 + dldir=$destdir/`dirname \$dlpath`~
22515 + test -d \$dldir || mkdir -p \$dldir~
22516 + $install_prog $dir/$dlname \$dldir/$dlname~
22517 + chmod a+x \$dldir/$dlname'
22518 + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22519 + dlpath=$dir/\$dldll~
22521 + shlibpath_overrides_runpath=yes
22525 + # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22526 + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22527 + sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
22530 + # MinGW DLLs use traditional 'lib' prefix
22531 + soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22532 + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22533 + if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22534 + # It is most probably a Windows format PATH printed by
22535 + # mingw gcc, but we are running on Cygwin. Gcc prints its search
22536 + # path with ; separators, and with drive letters. We can handle the
22537 + # drive letters (cygwin fileutils understands them), so leave them,
22538 + # especially as we might pass files found there to a mingw objdump,
22539 + # which wouldn't understand a cygwinified path. Ahh.
22540 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22542 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22546 + # pw32 DLLs use 'pw' prefix rather than 'lib'
22547 + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22553 + if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
22554 + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22555 + supports_anon_versioning=no
22556 + case `$LD -v 2>/dev/null` in
22557 + *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
22558 + *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
22559 + *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
22560 + *\ 2.11.*) ;; # other 2.11 versions
22561 + *) supports_anon_versioning=yes ;;
22563 + if test $supports_anon_versioning = yes; then
22564 + archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
22565 +cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
22566 +$echo "local: *; };" >> $output_objdir/$libname.ver~
22567 + $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
22569 + $archive_expsym_cmds="$archive_cmds"
22577 + library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22580 + dynamic_linker='Win32 ld.exe'
22581 + # FIXME: first we should search . and the directory the executable is in
22582 + shlibpath_var=PATH
22585 +darwin* | rhapsody*)
22586 + dynamic_linker="$host_os dyld"
22587 + version_type=darwin
22588 + need_lib_prefix=no
22590 + library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22591 + soname_spec='${libname}${release}${major}$shared_ext'
22592 + shlibpath_overrides_runpath=yes
22593 + shlibpath_var=DYLD_LIBRARY_PATH
22594 + shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
22595 + # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
22596 + if test "$GCC" = yes; then
22597 + sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
22599 + sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
22601 + sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22605 + version_type=linux
22606 + need_lib_prefix=no
22608 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22609 + soname_spec='${libname}${release}${shared_ext}$major'
22610 + shlibpath_var=LD_LIBRARY_PATH
22614 + dynamic_linker=no
22618 + version_type=linux
22619 + need_lib_prefix=no
22621 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22622 + soname_spec='${libname}${release}${shared_ext}$major'
22623 + shlibpath_var=LD_LIBRARY_PATH
22624 + shlibpath_overrides_runpath=no
22625 + hardcode_into_libs=yes
22626 + dynamic_linker='GNU ld.so'
22629 +freebsd* | dragonfly*)
22630 + # DragonFly does not have aout. When/if they implement a new
22631 + # versioning mechanism, adjust this.
22632 + if test -x /usr/bin/objformat; then
22633 + objformat=`/usr/bin/objformat`
22636 + freebsd[123]*) objformat=aout ;;
22637 + *) objformat=elf ;;
22640 + # Handle Gentoo/FreeBSD as it was Linux
22641 + case $host_vendor in
22643 + version_type=linux ;;
22645 + version_type=freebsd-$objformat ;;
22648 + case $version_type in
22650 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22652 + need_lib_prefix=no
22655 + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22659 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22660 + soname_spec='${libname}${release}${shared_ext}$major'
22661 + need_lib_prefix=no
22665 + shlibpath_var=LD_LIBRARY_PATH
22668 + shlibpath_overrides_runpath=yes
22670 + freebsd3.[01]* | freebsdelf3.[01]*)
22671 + shlibpath_overrides_runpath=yes
22672 + hardcode_into_libs=yes
22674 + freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
22675 + freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
22676 + shlibpath_overrides_runpath=no
22677 + hardcode_into_libs=yes
22679 + freebsd*) # from 4.6 on
22680 + shlibpath_overrides_runpath=yes
22681 + hardcode_into_libs=yes
22687 + version_type=linux
22688 + need_lib_prefix=no
22690 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22691 + soname_spec='${libname}${release}${shared_ext}$major'
22692 + shlibpath_var=LD_LIBRARY_PATH
22693 + hardcode_into_libs=yes
22696 +hpux9* | hpux10* | hpux11*)
22697 + # Give a soname corresponding to the major version so that dld.sl refuses to
22698 + # link against other versions.
22699 + version_type=sunos
22700 + need_lib_prefix=no
22702 + case $host_cpu in
22704 + shrext_cmds='.so'
22705 + hardcode_into_libs=yes
22706 + dynamic_linker="$host_os dld.so"
22707 + shlibpath_var=LD_LIBRARY_PATH
22708 + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22709 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22710 + soname_spec='${libname}${release}${shared_ext}$major'
22711 + if test "X$HPUX_IA64_MODE" = X32; then
22712 + sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22714 + sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22716 + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22719 + shrext_cmds='.sl'
22720 + hardcode_into_libs=yes
22721 + dynamic_linker="$host_os dld.sl"
22722 + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22723 + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22724 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22725 + soname_spec='${libname}${release}${shared_ext}$major'
22726 + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22727 + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22730 + shrext_cmds='.sl'
22731 + dynamic_linker="$host_os dld.sl"
22732 + shlibpath_var=SHLIB_PATH
22733 + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22734 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22735 + soname_spec='${libname}${release}${shared_ext}$major'
22738 + # HP-UX runs *really* slowly unless shared libraries are mode 555.
22739 + postinstall_cmds='chmod 555 $lib'
22743 + version_type=linux
22744 + need_lib_prefix=no
22746 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22747 + soname_spec='${libname}${release}${shared_ext}$major'
22748 + dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
22749 + shlibpath_var=LD_LIBRARY_PATH
22750 + shlibpath_overrides_runpath=no
22751 + hardcode_into_libs=yes
22754 +irix5* | irix6* | nonstopux*)
22756 + nonstopux*) version_type=nonstopux ;;
22758 + if test "$lt_cv_prog_gnu_ld" = yes; then
22759 + version_type=linux
22761 + version_type=irix
22764 + need_lib_prefix=no
22766 + soname_spec='${libname}${release}${shared_ext}$major'
22767 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22769 + irix5* | nonstopux*)
22770 + libsuff= shlibsuff=
22773 + case $LD in # libtool.m4 will add one of these switches to LD
22774 + *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22775 + libsuff= shlibsuff= libmagic=32-bit;;
22776 + *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22777 + libsuff=32 shlibsuff=N32 libmagic=N32;;
22778 + *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22779 + libsuff=64 shlibsuff=64 libmagic=64-bit;;
22780 + *) libsuff= shlibsuff= libmagic=never-match;;
22784 + shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22785 + shlibpath_overrides_runpath=no
22786 + sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22787 + sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22788 + hardcode_into_libs=yes
22791 +# No shared lib support for Linux oldld, aout, or coff.
22792 +linux*oldld* | linux*aout* | linux*coff*)
22793 + dynamic_linker=no
22796 +# This must be Linux ELF.
22798 + version_type=linux
22799 + need_lib_prefix=no
22801 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22802 + soname_spec='${libname}${release}${shared_ext}$major'
22803 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22804 + shlibpath_var=LD_LIBRARY_PATH
22805 + shlibpath_overrides_runpath=no
22806 + # This implies no fast_install, which is unacceptable.
22807 + # Some rework will be needed to allow for fast_install
22808 + # before this can be enabled.
22809 + hardcode_into_libs=yes
22811 + # Append ld.so.conf contents to the search path
22812 + if test -f /etc/ld.so.conf; then
22813 + lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
22814 + sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22817 + # We used to test for /lib/ld.so.1 and disable shared libraries on
22818 + # powerpc, because MkLinux only supported shared libraries with the
22819 + # GNU dynamic linker. Since this was broken with cross compilers,
22820 + # most powerpc-linux boxes support dynamic linking these days and
22821 + # people can always --disable-shared, the test was removed, and we
22822 + # assume the GNU/Linux dynamic linker is in use.
22823 + dynamic_linker='GNU/Linux ld.so'
22827 + version_type=linux
22828 + need_lib_prefix=no
22830 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22831 + soname_spec='${libname}${release}${shared_ext}$major'
22832 + shlibpath_var=LD_LIBRARY_PATH
22833 + shlibpath_overrides_runpath=no
22834 + hardcode_into_libs=yes
22835 + dynamic_linker='GNU ld.so'
22839 + version_type=sunos
22840 + need_lib_prefix=no
22842 + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22843 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22844 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22845 + dynamic_linker='NetBSD (a.out) ld.so'
22847 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22848 + soname_spec='${libname}${release}${shared_ext}$major'
22849 + dynamic_linker='NetBSD ld.elf_so'
22851 + shlibpath_var=LD_LIBRARY_PATH
22852 + shlibpath_overrides_runpath=yes
22853 + hardcode_into_libs=yes
22857 + version_type=linux
22858 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22859 + shlibpath_var=LD_LIBRARY_PATH
22860 + shlibpath_overrides_runpath=yes
22864 + version_type=linux
22865 + need_lib_prefix=no
22867 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22868 + soname_spec='${libname}${release}${shared_ext}$major'
22869 + shlibpath_var=LD_LIBRARY_PATH
22870 + shlibpath_overrides_runpath=yes
22874 + version_type=sunos
22875 + sys_lib_dlsearch_path_spec="/usr/lib"
22876 + need_lib_prefix=no
22877 + # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
22879 + openbsd3.3 | openbsd3.3.*) need_version=yes ;;
22880 + *) need_version=no ;;
22882 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22883 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22884 + shlibpath_var=LD_LIBRARY_PATH
22885 + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22887 + openbsd2.[89] | openbsd2.[89].*)
22888 + shlibpath_overrides_runpath=no
22891 + shlibpath_overrides_runpath=yes
22895 + shlibpath_overrides_runpath=yes
22900 + libname_spec='$name'
22901 + shrext_cmds=".dll"
22902 + need_lib_prefix=no
22903 + library_names_spec='$libname${shared_ext} $libname.a'
22904 + dynamic_linker='OS/2 ld.exe'
22905 + shlibpath_var=LIBPATH
22908 +osf3* | osf4* | osf5*)
22910 + need_lib_prefix=no
22912 + soname_spec='${libname}${release}${shared_ext}$major'
22913 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22914 + shlibpath_var=LD_LIBRARY_PATH
22915 + sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22916 + sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22920 + version_type=linux
22921 + need_lib_prefix=no
22923 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22924 + soname_spec='${libname}${release}${shared_ext}$major'
22925 + shlibpath_var=LD_LIBRARY_PATH
22926 + shlibpath_overrides_runpath=yes
22927 + hardcode_into_libs=yes
22928 + # ldd complains unless libraries are executable
22929 + postinstall_cmds='chmod +x $lib'
22933 + version_type=sunos
22934 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22935 + finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22936 + shlibpath_var=LD_LIBRARY_PATH
22937 + shlibpath_overrides_runpath=yes
22938 + if test "$with_gnu_ld" = yes; then
22939 + need_lib_prefix=no
22945 + version_type=linux
22946 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22947 + soname_spec='${libname}${release}${shared_ext}$major'
22948 + shlibpath_var=LD_LIBRARY_PATH
22949 + case $host_vendor in
22951 + shlibpath_overrides_runpath=no
22952 + need_lib_prefix=no
22953 + export_dynamic_flag_spec='${wl}-Blargedynsym'
22954 + runpath_var=LD_RUN_PATH
22957 + need_lib_prefix=no
22960 + need_lib_prefix=no
22962 + shlibpath_overrides_runpath=no
22963 + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22969 + if test -d /usr/nec ;then
22970 + version_type=linux
22971 + library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22972 + soname_spec='$libname${shared_ext}.$major'
22973 + shlibpath_var=LD_LIBRARY_PATH
22977 +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
22978 + version_type=freebsd-elf
22979 + need_lib_prefix=no
22981 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22982 + soname_spec='${libname}${release}${shared_ext}$major'
22983 + shlibpath_var=LD_LIBRARY_PATH
22984 + hardcode_into_libs=yes
22985 + if test "$with_gnu_ld" = yes; then
22986 + sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
22987 + shlibpath_overrides_runpath=no
22989 + sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
22990 + shlibpath_overrides_runpath=yes
22993 + sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
22997 + sys_lib_dlsearch_path_spec='/usr/lib'
23001 + version_type=linux
23002 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23003 + soname_spec='${libname}${release}${shared_ext}$major'
23004 + shlibpath_var=LD_LIBRARY_PATH
23008 + dynamic_linker=no
23011 +echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23012 +echo "${ECHO_T}$dynamic_linker" >&6
23013 +test "$dynamic_linker" = no && can_build_shared=no
23015 +variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23016 +if test "$GCC" = yes; then
23017 + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23020 +echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23021 +echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
23022 +hardcode_action_CXX=
23023 +if test -n "$hardcode_libdir_flag_spec_CXX" || \
23024 + test -n "$runpath_var_CXX" || \
23025 + test "X$hardcode_automatic_CXX" = "Xyes" ; then
23027 + # We can hardcode non-existant directories.
23028 + if test "$hardcode_direct_CXX" != no &&
23029 + # If the only mechanism to avoid hardcoding is shlibpath_var, we
23030 + # have to relink, otherwise we might link with an installed library
23031 + # when we should be linking with a yet-to-be-installed one
23032 + ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
23033 + test "$hardcode_minus_L_CXX" != no; then
23034 + # Linking always hardcodes the temporary library directory.
23035 + hardcode_action_CXX=relink
23037 + # We can link without hardcoding, and we can hardcode nonexisting dirs.
23038 + hardcode_action_CXX=immediate
23041 + # We cannot hardcode anything, or else we can only hardcode existing
23043 + hardcode_action_CXX=unsupported
23045 +echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
23046 +echo "${ECHO_T}$hardcode_action_CXX" >&6
23048 +if test "$hardcode_action_CXX" = relink; then
23049 + # Fast installation is not supported
23050 + enable_fast_install=no
23051 +elif test "$shlibpath_overrides_runpath" = yes ||
23052 + test "$enable_shared" = no; then
23053 + # Fast installation is not necessary
23054 + enable_fast_install=needless
23058 +# The else clause should only fire when bootstrapping the
23059 +# libtool distribution, otherwise you forgot to ship ltmain.sh
23060 +# with your package, and you will get complaints that there are
23061 +# no rules to generate ltmain.sh.
23062 +if test -f "$ltmain"; then
23063 + # See if we are running on zsh, and set the options which allow our commands through
23064 + # without removal of \ escapes.
23065 + if test -n "${ZSH_VERSION+set}" ; then
23066 + setopt NO_GLOB_SUBST
23068 + # Now quote all the things that may contain metacharacters while being
23069 + # careful not to overquote the AC_SUBSTed values. We take copies of the
23070 + # variables and quote the copies for generation of the libtool script.
23071 + for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
23072 + SED SHELL STRIP \
23073 + libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23074 + old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23075 + deplibs_check_method reload_flag reload_cmds need_locks \
23076 + lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23077 + lt_cv_sys_global_symbol_to_c_name_address \
23078 + sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23079 + old_postinstall_cmds old_postuninstall_cmds \
23083 + lt_prog_compiler_wl_CXX \
23084 + lt_prog_compiler_pic_CXX \
23085 + lt_prog_compiler_static_CXX \
23086 + lt_prog_compiler_no_builtin_flag_CXX \
23087 + export_dynamic_flag_spec_CXX \
23088 + thread_safe_flag_spec_CXX \
23089 + whole_archive_flag_spec_CXX \
23090 + enable_shared_with_static_runtimes_CXX \
23091 + old_archive_cmds_CXX \
23092 + old_archive_from_new_cmds_CXX \
23093 + predep_objects_CXX \
23094 + postdep_objects_CXX \
23097 + compiler_lib_search_path_CXX \
23098 + archive_cmds_CXX \
23099 + archive_expsym_cmds_CXX \
23100 + postinstall_cmds_CXX \
23101 + postuninstall_cmds_CXX \
23102 + old_archive_from_expsyms_cmds_CXX \
23103 + allow_undefined_flag_CXX \
23104 + no_undefined_flag_CXX \
23105 + export_symbols_cmds_CXX \
23106 + hardcode_libdir_flag_spec_CXX \
23107 + hardcode_libdir_flag_spec_ld_CXX \
23108 + hardcode_libdir_separator_CXX \
23109 + hardcode_automatic_CXX \
23110 + module_cmds_CXX \
23111 + module_expsym_cmds_CXX \
23112 + lt_cv_prog_compiler_c_o_CXX \
23113 + exclude_expsyms_CXX \
23114 + include_expsyms_CXX; do
23117 + old_archive_cmds_CXX | \
23118 + old_archive_from_new_cmds_CXX | \
23119 + archive_cmds_CXX | \
23120 + archive_expsym_cmds_CXX | \
23121 + module_cmds_CXX | \
23122 + module_expsym_cmds_CXX | \
23123 + old_archive_from_expsyms_cmds_CXX | \
23124 + export_symbols_cmds_CXX | \
23125 + extract_expsyms_cmds | reload_cmds | finish_cmds | \
23126 + postinstall_cmds | postuninstall_cmds | \
23127 + old_postinstall_cmds | old_postuninstall_cmds | \
23128 + sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23129 + # Double-quote double-evaled strings.
23130 + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23133 + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23139 + *'\$0 --fallback-echo"')
23140 + lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23146 + cat <<__EOF__ >> "$cfgfile"
23147 +# ### BEGIN LIBTOOL TAG CONFIG: $tagname
23149 +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23151 +# Shell to use when invoking shell scripts.
23154 +# Whether or not to build shared libraries.
23155 +build_libtool_libs=$enable_shared
23157 +# Whether or not to build static libraries.
23158 +build_old_libs=$enable_static
23160 +# Whether or not to add -lc for building shared libraries.
23161 +build_libtool_need_lc=$archive_cmds_need_lc_CXX
23163 +# Whether or not to disallow shared libs when runtime libs are static
23164 +allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
23166 +# Whether or not to optimize for fast installation.
23167 +fast_install=$enable_fast_install
23169 +# The host system.
23170 +host_alias=$host_alias
23174 +# The build system.
23175 +build_alias=$build_alias
23177 +build_os=$build_os
23179 +# An echo program that does not interpret backslashes.
23184 +AR_FLAGS=$lt_AR_FLAGS
23189 +# LTCC compiler flags.
23190 +LTCFLAGS=$lt_LTCFLAGS
23192 +# A language-specific compiler.
23193 +CC=$lt_compiler_CXX
23195 +# Is the compiler the GNU C compiler?
23201 +# The linker used to build libraries.
23204 +# Whether we need hard or soft links.
23207 +# A BSD-compatible nm program.
23210 +# A symbol stripping program
23213 +# Used to examine libraries when file_magic_cmd begins "file"
23214 +MAGIC_CMD=$MAGIC_CMD
23216 +# Used on cygwin: DLL creation program.
23217 +DLLTOOL="$DLLTOOL"
23219 +# Used on cygwin: object dumper.
23220 +OBJDUMP="$OBJDUMP"
23222 +# Used on cygwin: assembler.
23225 +# The name of the directory that contains temporary libtool files.
23228 +# How to create reloadable object files.
23229 +reload_flag=$lt_reload_flag
23230 +reload_cmds=$lt_reload_cmds
23232 +# How to pass a linker flag through the compiler.
23233 +wl=$lt_lt_prog_compiler_wl_CXX
23235 +# Object file suffix (normally "o").
23236 +objext="$ac_objext"
23238 +# Old archive suffix (normally "a").
23241 +# Shared library suffix (normally ".so").
23242 +shrext_cmds='$shrext_cmds'
23244 +# Executable file suffix (normally "").
23247 +# Additional compiler flags for building library objects.
23248 +pic_flag=$lt_lt_prog_compiler_pic_CXX
23249 +pic_mode=$pic_mode
23251 +# What is the maximum length of a command?
23252 +max_cmd_len=$lt_cv_sys_max_cmd_len
23254 +# Does compiler simultaneously support -c and -o options?
23255 +compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
23257 +# Must we lock files when doing compilation?
23258 +need_locks=$lt_need_locks
23260 +# Do we need the lib prefix for modules?
23261 +need_lib_prefix=$need_lib_prefix
23263 +# Do we need a version for libraries?
23264 +need_version=$need_version
23266 +# Whether dlopen is supported.
23267 +dlopen_support=$enable_dlopen
23269 +# Whether dlopen of programs is supported.
23270 +dlopen_self=$enable_dlopen_self
23272 +# Whether dlopen of statically linked programs is supported.
23273 +dlopen_self_static=$enable_dlopen_self_static
23275 +# Compiler flag to prevent dynamic linking.
23276 +link_static_flag=$lt_lt_prog_compiler_static_CXX
23278 +# Compiler flag to turn off builtin functions.
23279 +no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
23281 +# Compiler flag to allow reflexive dlopens.
23282 +export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
23284 +# Compiler flag to generate shared objects directly from archives.
23285 +whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
23287 +# Compiler flag to generate thread-safe objects.
23288 +thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
23290 +# Library versioning type.
23291 +version_type=$version_type
23293 +# Format of library name prefix.
23294 +libname_spec=$lt_libname_spec
23296 +# List of archive names. First name is the real one, the rest are links.
23297 +# The last name is the one that the linker finds with -lNAME.
23298 +library_names_spec=$lt_library_names_spec
23300 +# The coded name of the library, if different from the real name.
23301 +soname_spec=$lt_soname_spec
23303 +# Commands used to build and install an old-style archive.
23305 +old_archive_cmds=$lt_old_archive_cmds_CXX
23306 +old_postinstall_cmds=$lt_old_postinstall_cmds
23307 +old_postuninstall_cmds=$lt_old_postuninstall_cmds
23309 +# Create an old-style archive from a shared archive.
23310 +old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
23312 +# Create a temporary old-style archive to link instead of a shared archive.
23313 +old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
23315 +# Commands used to build and install a shared archive.
23316 +archive_cmds=$lt_archive_cmds_CXX
23317 +archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
23318 +postinstall_cmds=$lt_postinstall_cmds
23319 +postuninstall_cmds=$lt_postuninstall_cmds
23321 +# Commands used to build a loadable module (assumed same as above if empty)
23322 +module_cmds=$lt_module_cmds_CXX
23323 +module_expsym_cmds=$lt_module_expsym_cmds_CXX
23325 +# Commands to strip libraries.
23326 +old_striplib=$lt_old_striplib
23327 +striplib=$lt_striplib
23329 +# Dependencies to place before the objects being linked to create a
23331 +predep_objects=$lt_predep_objects_CXX
23333 +# Dependencies to place after the objects being linked to create a
23335 +postdep_objects=$lt_postdep_objects_CXX
23337 +# Dependencies to place before the objects being linked to create a
23339 +predeps=$lt_predeps_CXX
23341 +# Dependencies to place after the objects being linked to create a
23343 +postdeps=$lt_postdeps_CXX
23345 +# The library search path used internally by the compiler when linking
23346 +# a shared library.
23347 +compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
23349 +# Method to check whether dependent libraries are shared objects.
23350 +deplibs_check_method=$lt_deplibs_check_method
23352 +# Command to use when deplibs_check_method == file_magic.
23353 +file_magic_cmd=$lt_file_magic_cmd
23355 +# Flag that allows shared libraries with undefined symbols to be built.
23356 +allow_undefined_flag=$lt_allow_undefined_flag_CXX
23358 +# Flag that forces no undefined symbols.
23359 +no_undefined_flag=$lt_no_undefined_flag_CXX
23361 +# Commands used to finish a libtool library installation in a directory.
23362 +finish_cmds=$lt_finish_cmds
23364 +# Same as above, but a single script fragment to be evaled but not shown.
23365 +finish_eval=$lt_finish_eval
23367 +# Take the output of nm and produce a listing of raw symbols and C names.
23368 +global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23370 +# Transform the output of nm in a proper C declaration
23371 +global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23373 +# Transform the output of nm in a C name address pair
23374 +global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23376 +# This is the shared library runtime path variable.
23377 +runpath_var=$runpath_var
23379 +# This is the shared library path variable.
23380 +shlibpath_var=$shlibpath_var
23382 +# Is shlibpath searched before the hard-coded library search path?
23383 +shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23385 +# How to hardcode a shared library path into an executable.
23386 +hardcode_action=$hardcode_action_CXX
23388 +# Whether we should hardcode library paths into libraries.
23389 +hardcode_into_libs=$hardcode_into_libs
23391 +# Flag to hardcode \$libdir into a binary during linking.
23392 +# This must work even if \$libdir does not exist.
23393 +hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
23395 +# If ld is used when linking, flag to hardcode \$libdir into
23396 +# a binary during linking. This must work even if \$libdir does
23398 +hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
23400 +# Whether we need a single -rpath flag with a separated argument.
23401 +hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
23403 +# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23404 +# resulting binary.
23405 +hardcode_direct=$hardcode_direct_CXX
23407 +# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23408 +# resulting binary.
23409 +hardcode_minus_L=$hardcode_minus_L_CXX
23411 +# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23412 +# the resulting binary.
23413 +hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
23415 +# Set to yes if building a shared library automatically hardcodes DIR into the library
23416 +# and all subsequent libraries and executables linked against it.
23417 +hardcode_automatic=$hardcode_automatic_CXX
23419 +# Variables whose values should be saved in libtool wrapper scripts and
23420 +# restored at relink time.
23421 +variables_saved_for_relink="$variables_saved_for_relink"
23423 +# Whether libtool must link a program against all its dependency libraries.
23424 +link_all_deplibs=$link_all_deplibs_CXX
23426 +# Compile-time system search path for libraries
23427 +sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23429 +# Run-time system search path for libraries
23430 +sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23432 +# Fix the shell variable \$srcfile for the compiler.
23433 +fix_srcfile_path="$fix_srcfile_path_CXX"
23435 +# Set to yes if exported symbols are required.
23436 +always_export_symbols=$always_export_symbols_CXX
23438 +# The commands to list exported symbols.
23439 +export_symbols_cmds=$lt_export_symbols_cmds_CXX
23441 +# The commands to extract the exported symbol list from a shared archive.
23442 +extract_expsyms_cmds=$lt_extract_expsyms_cmds
23444 +# Symbols that should not be listed in the preloaded symbols.
23445 +exclude_expsyms=$lt_exclude_expsyms_CXX
23447 +# Symbols that must always be exported.
23448 +include_expsyms=$lt_include_expsyms_CXX
23450 +# ### END LIBTOOL TAG CONFIG: $tagname
23456 + # If there is no Makefile yet, we rely on a make rule to execute
23457 + # `config.status --recheck' to rerun these tests and create the
23458 + # libtool script then.
23459 + ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23460 + if test -f "$ltmain_in"; then
23461 + test -f Makefile && make "$ltmain"
23467 +ac_cpp='$CPP $CPPFLAGS'
23468 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23469 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23470 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
23476 +with_gnu_ldcxx=$with_gnu_ld
23477 +with_gnu_ld=$lt_save_with_gnu_ld
23478 +lt_cv_path_LDCXX=$lt_cv_path_LD
23479 +lt_cv_path_LD=$lt_save_path_LD
23480 +lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
23481 +lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
23489 + if test -n "$F77" && test "X$F77" != "Xno"; then
23492 +ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
23493 +ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23494 +ac_compiler_gnu=$ac_cv_f77_compiler_gnu
23497 +archive_cmds_need_lc_F77=no
23498 +allow_undefined_flag_F77=
23499 +always_export_symbols_F77=no
23500 +archive_expsym_cmds_F77=
23501 +export_dynamic_flag_spec_F77=
23502 +hardcode_direct_F77=no
23503 +hardcode_libdir_flag_spec_F77=
23504 +hardcode_libdir_flag_spec_ld_F77=
23505 +hardcode_libdir_separator_F77=
23506 +hardcode_minus_L_F77=no
23507 +hardcode_automatic_F77=no
23509 +module_expsym_cmds_F77=
23510 +link_all_deplibs_F77=unknown
23511 +old_archive_cmds_F77=$old_archive_cmds
23512 +no_undefined_flag_F77=
23513 +whole_archive_flag_spec_F77=
23514 +enable_shared_with_static_runtimes_F77=no
23516 +# Source file extension for f77 test sources.
23519 +# Object file extension for compiled f77 test sources.
23521 +objext_F77=$objext
23523 +# Code to be used in simple compile tests
23524 +lt_simple_compile_test_code=" subroutine t\n return\n end\n"
23526 +# Code to be used in simple link tests
23527 +lt_simple_link_test_code=" program t\n end\n"
23529 +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
23531 +# If no C compiler was specified, use CC.
23532 +LTCC=${LTCC-"$CC"}
23534 +# If no C compiler flags were specified, use CFLAGS.
23535 +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
23537 +# Allow CC to be a program name with arguments.
23541 +# save warnings/boilerplate of simple test code
23542 +ac_outfile=conftest.$ac_objext
23543 +printf "$lt_simple_compile_test_code" >conftest.$ac_ext
23544 +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23545 +_lt_compiler_boilerplate=`cat conftest.err`
23548 +ac_outfile=conftest.$ac_objext
23549 +printf "$lt_simple_link_test_code" >conftest.$ac_ext
23550 +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23551 +_lt_linker_boilerplate=`cat conftest.err`
23555 +# Allow CC to be a program name with arguments.
23560 +for cc_temp in $compiler""; do
23562 + compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23563 + distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23568 +cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23571 +echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
23572 +echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
23573 +echo "$as_me:$LINENO: result: $can_build_shared" >&5
23574 +echo "${ECHO_T}$can_build_shared" >&6
23576 +echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
23577 +echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
23578 +test "$can_build_shared" = "no" && enable_shared=no
23580 +# On AIX, shared libraries and static libraries use the same namespace, and
23581 +# are all built from PIC.
23584 + test "$enable_shared" = yes && enable_static=no
23585 + if test -n "$RANLIB"; then
23586 + archive_cmds="$archive_cmds~\$RANLIB \$lib"
23587 + postinstall_cmds='$RANLIB $lib'
23591 + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
23592 + test "$enable_shared" = yes && enable_static=no
23596 +echo "$as_me:$LINENO: result: $enable_shared" >&5
23597 +echo "${ECHO_T}$enable_shared" >&6
23599 +echo "$as_me:$LINENO: checking whether to build static libraries" >&5
23600 +echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
23601 +# Make sure either enable_shared or enable_static is yes.
23602 +test "$enable_shared" = yes || enable_static=yes
23603 +echo "$as_me:$LINENO: result: $enable_static" >&5
23604 +echo "${ECHO_T}$enable_static" >&6
23609 +lt_prog_compiler_wl_F77=
23610 +lt_prog_compiler_pic_F77=
23611 +lt_prog_compiler_static_F77=
23613 +echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
23614 +echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
23616 + if test "$GCC" = yes; then
23617 + lt_prog_compiler_wl_F77='-Wl,'
23618 + lt_prog_compiler_static_F77='-static'
23622 + # All AIX code is PIC.
23623 + if test "$host_cpu" = ia64; then
23624 + # AIX 5 now supports IA64 processor
23625 + lt_prog_compiler_static_F77='-Bstatic'
23630 + # FIXME: we need at least 68020 code to build shared libraries, but
23631 + # adding the `-m68020' flag to GCC prevents building anything better,
23632 + # like `-m68040'.
23633 + lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
23636 + beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
23637 + # PIC is the default for these OSes.
23640 + mingw* | pw32* | os2*)
23641 + # This hack is so that the source file can tell whether it is being
23642 + # built for inclusion in a dll (and should export symbols for example).
23643 + lt_prog_compiler_pic_F77='-DDLL_EXPORT'
23646 + darwin* | rhapsody*)
23647 + # PIC is the default on this platform
23648 + # Common symbols not allowed in MH_DYLIB files
23649 + lt_prog_compiler_pic_F77='-fno-common'
23653 + # Interix 3.x gcc -fpic/-fPIC options generate broken code.
23654 + # Instead, we relocate shared libraries at runtime.
23658 + # Just because we use GCC doesn't mean we suddenly get shared libraries
23659 + # on systems that don't support them.
23660 + lt_prog_compiler_can_build_shared_F77=no
23665 + if test -d /usr/nec; then
23666 + lt_prog_compiler_pic_F77=-Kconform_pic
23671 + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23672 + # not for PA HP-UX.
23673 + case $host_cpu in
23678 + lt_prog_compiler_pic_F77='-fPIC'
23684 + lt_prog_compiler_pic_F77='-fPIC'
23688 + # PORTME Check for flag to pass linker flags through the system compiler.
23691 + lt_prog_compiler_wl_F77='-Wl,'
23692 + if test "$host_cpu" = ia64; then
23693 + # AIX 5 now supports IA64 processor
23694 + lt_prog_compiler_static_F77='-Bstatic'
23696 + lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
23700 + # PIC is the default on this platform
23701 + # Common symbols not allowed in MH_DYLIB files
23702 + case $cc_basename in
23704 + lt_prog_compiler_pic_F77='-qnocommon'
23705 + lt_prog_compiler_wl_F77='-Wl,'
23710 + mingw* | pw32* | os2*)
23711 + # This hack is so that the source file can tell whether it is being
23712 + # built for inclusion in a dll (and should export symbols for example).
23713 + lt_prog_compiler_pic_F77='-DDLL_EXPORT'
23716 + hpux9* | hpux10* | hpux11*)
23717 + lt_prog_compiler_wl_F77='-Wl,'
23718 + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23719 + # not for PA HP-UX.
23720 + case $host_cpu in
23725 + lt_prog_compiler_pic_F77='+Z'
23728 + # Is there a better lt_prog_compiler_static that works with the bundled CC?
23729 + lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
23732 + irix5* | irix6* | nonstopux*)
23733 + lt_prog_compiler_wl_F77='-Wl,'
23734 + # PIC (with -KPIC) is the default.
23735 + lt_prog_compiler_static_F77='-non_shared'
23739 + lt_prog_compiler_pic_F77='-KPIC'
23740 + lt_prog_compiler_static_F77='-Bstatic'
23744 + case $cc_basename in
23746 + lt_prog_compiler_wl_F77='-Wl,'
23747 + lt_prog_compiler_pic_F77='-KPIC'
23748 + lt_prog_compiler_static_F77='-static'
23750 + pgcc* | pgf77* | pgf90* | pgf95*)
23751 + # Portland Group compilers (*not* the Pentium gcc compiler,
23752 + # which looks to be a dead project)
23753 + lt_prog_compiler_wl_F77='-Wl,'
23754 + lt_prog_compiler_pic_F77='-fpic'
23755 + lt_prog_compiler_static_F77='-Bstatic'
23758 + lt_prog_compiler_wl_F77='-Wl,'
23759 + # All Alpha code is PIC.
23760 + lt_prog_compiler_static_F77='-non_shared'
23765 + osf3* | osf4* | osf5*)
23766 + lt_prog_compiler_wl_F77='-Wl,'
23767 + # All OSF/1 code is PIC.
23768 + lt_prog_compiler_static_F77='-non_shared'
23772 + lt_prog_compiler_pic_F77='-KPIC'
23773 + lt_prog_compiler_static_F77='-Bstatic'
23774 + case $cc_basename in
23775 + f77* | f90* | f95*)
23776 + lt_prog_compiler_wl_F77='-Qoption ld ';;
23778 + lt_prog_compiler_wl_F77='-Wl,';;
23783 + lt_prog_compiler_wl_F77='-Qoption ld '
23784 + lt_prog_compiler_pic_F77='-PIC'
23785 + lt_prog_compiler_static_F77='-Bstatic'
23788 + sysv4 | sysv4.2uw2* | sysv4.3*)
23789 + lt_prog_compiler_wl_F77='-Wl,'
23790 + lt_prog_compiler_pic_F77='-KPIC'
23791 + lt_prog_compiler_static_F77='-Bstatic'
23795 + if test -d /usr/nec ;then
23796 + lt_prog_compiler_pic_F77='-Kconform_pic'
23797 + lt_prog_compiler_static_F77='-Bstatic'
23801 + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
23802 + lt_prog_compiler_wl_F77='-Wl,'
23803 + lt_prog_compiler_pic_F77='-KPIC'
23804 + lt_prog_compiler_static_F77='-Bstatic'
23808 + lt_prog_compiler_wl_F77='-Wl,'
23809 + lt_prog_compiler_can_build_shared_F77=no
23813 + lt_prog_compiler_pic_F77='-pic'
23814 + lt_prog_compiler_static_F77='-Bstatic'
23818 + lt_prog_compiler_can_build_shared_F77=no
23823 +echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
23824 +echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
23827 +# Check to make sure the PIC flag actually works.
23829 +if test -n "$lt_prog_compiler_pic_F77"; then
23831 +echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
23832 +echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
23833 +if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
23834 + echo $ECHO_N "(cached) $ECHO_C" >&6
23836 + lt_prog_compiler_pic_works_F77=no
23837 + ac_outfile=conftest.$ac_objext
23838 + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23839 + lt_compiler_flag="$lt_prog_compiler_pic_F77"
23840 + # Insert the option either (1) after the last *FLAGS variable, or
23841 + # (2) before a word containing "conftest.", or (3) at the end.
23842 + # Note that $ac_compile itself does not contain backslashes and begins
23843 + # with a dollar sign (not a hyphen), so the echo should work correctly.
23844 + # The option is referenced via a variable to avoid confusing sed.
23845 + lt_compile=`echo "$ac_compile" | $SED \
23846 + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23847 + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23848 + -e 's:$: $lt_compiler_flag:'`
23849 + (eval echo "\"\$as_me:13305: $lt_compile\"" >&5)
23850 + (eval "$lt_compile" 2>conftest.err)
23852 + cat conftest.err >&5
23853 + echo "$as_me:13309: \$? = $ac_status" >&5
23854 + if (exit $ac_status) && test -s "$ac_outfile"; then
23855 + # The compiler can only warn and ignore the option if not recognized
23856 + # So say no if there are warnings other than the usual output.
23857 + $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23858 + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23859 + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
23860 + lt_prog_compiler_pic_works_F77=yes
23866 +echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
23867 +echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
23869 +if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
23870 + case $lt_prog_compiler_pic_F77 in
23872 + *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
23875 + lt_prog_compiler_pic_F77=
23876 + lt_prog_compiler_can_build_shared_F77=no
23881 + # For platforms which do not support PIC, -DPIC is meaningless:
23883 + lt_prog_compiler_pic_F77=
23886 + lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
23891 +# Check to make sure the static flag actually works.
23893 +wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
23894 +echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
23895 +echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
23896 +if test "${lt_prog_compiler_static_works_F77+set}" = set; then
23897 + echo $ECHO_N "(cached) $ECHO_C" >&6
23899 + lt_prog_compiler_static_works_F77=no
23900 + save_LDFLAGS="$LDFLAGS"
23901 + LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
23902 + printf "$lt_simple_link_test_code" > conftest.$ac_ext
23903 + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
23904 + # The linker can only warn and ignore the option if not recognized
23905 + # So say no if there are warnings
23906 + if test -s conftest.err; then
23907 + # Append any errors to the config.log.
23908 + cat conftest.err 1>&5
23909 + $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
23910 + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23911 + if diff conftest.exp conftest.er2 >/dev/null; then
23912 + lt_prog_compiler_static_works_F77=yes
23915 + lt_prog_compiler_static_works_F77=yes
23919 + LDFLAGS="$save_LDFLAGS"
23922 +echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
23923 +echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
23925 +if test x"$lt_prog_compiler_static_works_F77" = xyes; then
23928 + lt_prog_compiler_static_F77=
23932 +echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
23933 +echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
23934 +if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
23935 + echo $ECHO_N "(cached) $ECHO_C" >&6
23937 + lt_cv_prog_compiler_c_o_F77=no
23938 + $rm -r conftest 2>/dev/null
23942 + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23944 + lt_compiler_flag="-o out/conftest2.$ac_objext"
23945 + # Insert the option either (1) after the last *FLAGS variable, or
23946 + # (2) before a word containing "conftest.", or (3) at the end.
23947 + # Note that $ac_compile itself does not contain backslashes and begins
23948 + # with a dollar sign (not a hyphen), so the echo should work correctly.
23949 + lt_compile=`echo "$ac_compile" | $SED \
23950 + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23951 + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23952 + -e 's:$: $lt_compiler_flag:'`
23953 + (eval echo "\"\$as_me:13409: $lt_compile\"" >&5)
23954 + (eval "$lt_compile" 2>out/conftest.err)
23956 + cat out/conftest.err >&5
23957 + echo "$as_me:13413: \$? = $ac_status" >&5
23958 + if (exit $ac_status) && test -s out/conftest2.$ac_objext
23960 + # The compiler can only warn and ignore the option if not recognized
23961 + # So say no if there are warnings
23962 + $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
23963 + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
23964 + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
23965 + lt_cv_prog_compiler_c_o_F77=yes
23970 + # SGI C++ compiler will create directory out/ii_files/ for
23971 + # template instantiation
23972 + test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
23973 + $rm out/* && rmdir out
23979 +echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
23980 +echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
23983 +hard_links="nottested"
23984 +if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
23985 + # do not overwrite the value of need_locks provided by the user
23986 + echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
23987 +echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
23990 + ln conftest.a conftest.b 2>/dev/null && hard_links=no
23992 + ln conftest.a conftest.b 2>&5 || hard_links=no
23993 + ln conftest.a conftest.b 2>/dev/null && hard_links=no
23994 + echo "$as_me:$LINENO: result: $hard_links" >&5
23995 +echo "${ECHO_T}$hard_links" >&6
23996 + if test "$hard_links" = no; then
23997 + { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
23998 +echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
24005 +echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
24006 +echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
24009 + allow_undefined_flag_F77=
24010 + enable_shared_with_static_runtimes_F77=no
24011 + archive_cmds_F77=
24012 + archive_expsym_cmds_F77=
24013 + old_archive_From_new_cmds_F77=
24014 + old_archive_from_expsyms_cmds_F77=
24015 + export_dynamic_flag_spec_F77=
24016 + whole_archive_flag_spec_F77=
24017 + thread_safe_flag_spec_F77=
24018 + hardcode_libdir_flag_spec_F77=
24019 + hardcode_libdir_flag_spec_ld_F77=
24020 + hardcode_libdir_separator_F77=
24021 + hardcode_direct_F77=no
24022 + hardcode_minus_L_F77=no
24023 + hardcode_shlibpath_var_F77=unsupported
24024 + link_all_deplibs_F77=unknown
24025 + hardcode_automatic_F77=no
24027 + module_expsym_cmds_F77=
24028 + always_export_symbols_F77=no
24029 + export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24030 + # include_expsyms should be a list of space-separated symbols to be *always*
24031 + # included in the symbol list
24032 + include_expsyms_F77=
24033 + # exclude_expsyms can be an extended regexp of symbols to exclude
24034 + # it will be wrapped by ` (' and `)$', so one must not match beginning or
24035 + # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
24036 + # as well as any symbol that contains `d'.
24037 + exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
24038 + # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
24039 + # platforms (ab)use it in PIC code, but their linkers get confused if
24040 + # the symbol is explicitly referenced. Since portable code cannot
24041 + # rely on this symbol name, it's probably fine to never include it in
24042 + # preloaded symbol tables.
24043 + extract_expsyms_cmds=
24044 + # Just being paranoid about ensuring that cc_basename is set.
24045 + for cc_temp in $compiler""; do
24047 + compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24048 + distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24053 +cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24056 + cygwin* | mingw* | pw32*)
24057 + # FIXME: the MSVC++ port hasn't been tested in a loooong time
24058 + # When not using gcc, we currently assume that we are using
24059 + # Microsoft Visual C++.
24060 + if test "$GCC" != yes; then
24065 + # we just hope/assume this is gcc and not c89 (= MSVC++)
24073 + ld_shlibs_F77=yes
24074 + if test "$with_gnu_ld" = yes; then
24075 + # If archive_cmds runs LD, not CC, wlarc should be empty
24078 + # Set some defaults for GNU ld with shared library support. These
24079 + # are reset later if shared libraries are not supported. Putting them
24080 + # here allows them to be overridden if necessary.
24081 + runpath_var=LD_RUN_PATH
24082 + hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
24083 + export_dynamic_flag_spec_F77='${wl}--export-dynamic'
24084 + # ancient GNU ld didn't support --whole-archive et. al.
24085 + if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24086 + whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24088 + whole_archive_flag_spec_F77=
24090 + supports_anon_versioning=no
24091 + case `$LD -v 2>/dev/null` in
24092 + *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
24093 + *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24094 + *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24095 + *\ 2.11.*) ;; # other 2.11 versions
24096 + *) supports_anon_versioning=yes ;;
24099 + # See if GNU ld supports shared libraries.
24101 + aix3* | aix4* | aix5*)
24102 + # On AIX/PPC, the GNU linker is very broken
24103 + if test "$host_cpu" != ia64; then
24107 +*** Warning: the GNU linker, at least up to release 2.9.1, is reported
24108 +*** to be unable to reliably create shared libraries on AIX.
24109 +*** Therefore, libtool is disabling shared libraries support. If you
24110 +*** really care for shared libraries, you may want to modify your PATH
24111 +*** so that a non-GNU linker is found, and then restart.
24118 + archive_cmds_F77='$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)'
24119 + hardcode_libdir_flag_spec_F77='-L$libdir'
24120 + hardcode_minus_L_F77=yes
24122 + # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24123 + # that the semantics of dynamic libraries on AmigaOS, at least up
24124 + # to version 4, is to share data among multiple programs linked
24125 + # with the same dynamic library. Since this doesn't match the
24126 + # behavior of shared libraries on other platforms, we can't use
24132 + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24133 + allow_undefined_flag_F77=unsupported
24134 + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24135 + # support --undefined. This deserves some investigation. FIXME
24136 + archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24142 + cygwin* | mingw* | pw32*)
24143 + # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
24144 + # as there is no search path for DLLs.
24145 + hardcode_libdir_flag_spec_F77='-L$libdir'
24146 + allow_undefined_flag_F77=unsupported
24147 + always_export_symbols_F77=no
24148 + enable_shared_with_static_runtimes_F77=yes
24149 + export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
24151 + if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
24152 + archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24153 + # If the export-symbols file already is a .def file (1st line
24154 + # is EXPORTS), use it as is; otherwise, prepend...
24155 + archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24156 + cp $export_symbols $output_objdir/$soname.def;
24158 + echo EXPORTS > $output_objdir/$soname.def;
24159 + cat $export_symbols >> $output_objdir/$soname.def;
24161 + $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24168 + hardcode_direct_F77=no
24169 + hardcode_shlibpath_var_F77=no
24170 + hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
24171 + export_dynamic_flag_spec_F77='${wl}-E'
24172 + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24173 + # Instead, shared libraries are loaded at an image base (0x10000000 by
24174 + # default) and relocated if they conflict, which is a slow very memory
24175 + # consuming and fragmenting process. To avoid this, we pick a random,
24176 + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24177 + # time. Moving up from 0x10000000 also allows more sbrk(2) space.
24178 + archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
24179 + archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
24183 + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24185 + case $cc_basename,$host_cpu in
24186 + pgcc*) # Portland Group C compiler
24187 + whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
24188 + tmp_addflag=' $pic_flag'
24190 + pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
24191 + whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
24192 + tmp_addflag=' $pic_flag -Mnomain' ;;
24193 + ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
24194 + tmp_addflag=' -i_dynamic' ;;
24195 + efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
24196 + tmp_addflag=' -i_dynamic -nofor_main' ;;
24197 + ifc* | ifort*) # Intel Fortran compiler
24198 + tmp_addflag=' -nofor_main' ;;
24200 + archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24202 + if test $supports_anon_versioning = yes; then
24203 + archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
24204 + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24205 + $echo "local: *; };" >> $output_objdir/$libname.ver~
24206 + $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24214 + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24215 + archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24218 + archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24219 + archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24224 + if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24228 +*** Warning: The releases 2.8.* of the GNU linker cannot reliably
24229 +*** create shared libraries on Solaris systems. Therefore, libtool
24230 +*** is disabling shared libraries support. We urge you to upgrade GNU
24231 +*** binutils to release 2.9.1 or newer. Another option is to modify
24232 +*** your PATH or compiler configuration so that the native linker is
24233 +*** used, and then restart.
24236 + elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24237 + archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24238 + archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24244 + sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24245 + case `$LD -v 2>&1` in
24246 + *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24248 + cat <<_LT_EOF 1>&2
24250 +*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24251 +*** reliably create shared libraries on SCO systems. Therefore, libtool
24252 +*** is disabling shared libraries support. We urge you to upgrade GNU
24253 +*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
24254 +*** your PATH or compiler configuration so that the native linker is
24255 +*** used, and then restart.
24260 + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24261 + hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24262 + archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24263 + archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24272 + archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24274 + hardcode_direct_F77=yes
24275 + hardcode_shlibpath_var_F77=no
24279 + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24280 + archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24281 + archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24288 + if test "$ld_shlibs_F77" = no; then
24290 + hardcode_libdir_flag_spec_F77=
24291 + export_dynamic_flag_spec_F77=
24292 + whole_archive_flag_spec_F77=
24295 + # PORTME fill in a description of your system's linker (not GNU ld)
24298 + allow_undefined_flag_F77=unsupported
24299 + always_export_symbols_F77=yes
24300 + archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
24301 + # Note: this linker hardcodes the directories in LIBPATH if there
24302 + # are no directories specified by -L.
24303 + hardcode_minus_L_F77=yes
24304 + if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
24305 + # Neither direct hardcoding nor static linking is supported with a
24306 + # broken collect2.
24307 + hardcode_direct_F77=unsupported
24312 + if test "$host_cpu" = ia64; then
24313 + # On IA64, the linker does run time linking by default, so we don't
24314 + # have to do anything special.
24315 + aix_use_runtimelinking=no
24316 + exp_sym_flag='-Bexport'
24319 + # If we're using GNU nm, then we don't want the "-C" option.
24320 + # -C means demangle to AIX nm, but means don't demangle with GNU nm
24321 + if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24322 + export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
24324 + export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
24326 + aix_use_runtimelinking=no
24328 + # Test if we are trying to use run time linking or normal
24329 + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24330 + # need to do runtime linking.
24331 + case $host_os in aix4.[23]|aix4.[23].*|aix5*)
24332 + for ld_flag in $LDFLAGS; do
24333 + if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24334 + aix_use_runtimelinking=yes
24341 + exp_sym_flag='-bexport'
24342 + no_entry_flag='-bnoentry'
24345 + # When large executables or shared objects are built, AIX ld can
24346 + # have problems creating the table of contents. If linking a library
24347 + # or program results in "error TOC overflow" add -mminimal-toc to
24348 + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
24349 + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24351 + archive_cmds_F77=''
24352 + hardcode_direct_F77=yes
24353 + hardcode_libdir_separator_F77=':'
24354 + link_all_deplibs_F77=yes
24356 + if test "$GCC" = yes; then
24357 + case $host_os in aix4.[012]|aix4.[012].*)
24358 + # We only want to do this on AIX 4.2 and lower, the check
24359 + # below for broken collect2 doesn't work under 4.3+
24360 + collect2name=`${CC} -print-prog-name=collect2`
24361 + if test -f "$collect2name" && \
24362 + strings "$collect2name" | grep resolve_lib_name >/dev/null
24364 + # We have reworked collect2
24365 + hardcode_direct_F77=yes
24367 + # We have old collect2
24368 + hardcode_direct_F77=unsupported
24369 + # It fails to find uninstalled libraries when the uninstalled
24370 + # path is not listed in the libpath. Setting hardcode_minus_L
24371 + # to unsupported forces relinking
24372 + hardcode_minus_L_F77=yes
24373 + hardcode_libdir_flag_spec_F77='-L$libdir'
24374 + hardcode_libdir_separator_F77=
24378 + shared_flag='-shared'
24379 + if test "$aix_use_runtimelinking" = yes; then
24380 + shared_flag="$shared_flag "'${wl}-G'
24384 + if test "$host_cpu" = ia64; then
24385 + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24386 + # chokes on -Wl,-G. The following line is correct:
24389 + if test "$aix_use_runtimelinking" = yes; then
24390 + shared_flag='${wl}-G'
24392 + shared_flag='${wl}-bM:SRE'
24397 + # It seems that -bexpall does not export symbols beginning with
24398 + # underscore (_), so it is better to generate a list of symbols to export.
24399 + always_export_symbols_F77=yes
24400 + if test "$aix_use_runtimelinking" = yes; then
24401 + # Warning - without using the other runtime loading flags (-brtl),
24402 + # -berok will link without error, but may produce a broken library.
24403 + allow_undefined_flag_F77='-berok'
24404 + # Determine the default libpath from the value encoded in an empty executable.
24405 + cat >conftest.$ac_ext <<_ACEOF
24410 +rm -f conftest.$ac_objext conftest$ac_exeext
24411 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24412 + (eval $ac_link) 2>conftest.er1
24414 + grep -v '^ *+' conftest.er1 >conftest.err
24415 + rm -f conftest.er1
24416 + cat conftest.err >&5
24417 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
24418 + (exit $ac_status); } &&
24419 + { ac_try='test -z "$ac_f77_werror_flag"
24420 + || test ! -s conftest.err'
24421 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24422 + (eval $ac_try) 2>&5
24424 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
24425 + (exit $ac_status); }; } &&
24426 + { ac_try='test -s conftest$ac_exeext'
24427 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24428 + (eval $ac_try) 2>&5
24430 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
24431 + (exit $ac_status); }; }; then
24433 +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24435 +# Check for a 64-bit object if we didn't find anything.
24436 +if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24439 + echo "$as_me: failed program was:" >&5
24440 +sed 's/^/| /' conftest.$ac_ext >&5
24443 +rm -f conftest.err conftest.$ac_objext \
24444 + conftest$ac_exeext conftest.$ac_ext
24445 +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24447 + hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
24448 + archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
24450 + if test "$host_cpu" = ia64; then
24451 + hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
24452 + allow_undefined_flag_F77="-z nodefs"
24453 + archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
24455 + # Determine the default libpath from the value encoded in an empty executable.
24456 + cat >conftest.$ac_ext <<_ACEOF
24461 +rm -f conftest.$ac_objext conftest$ac_exeext
24462 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24463 + (eval $ac_link) 2>conftest.er1
24465 + grep -v '^ *+' conftest.er1 >conftest.err
24466 + rm -f conftest.er1
24467 + cat conftest.err >&5
24468 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
24469 + (exit $ac_status); } &&
24470 + { ac_try='test -z "$ac_f77_werror_flag"
24471 + || test ! -s conftest.err'
24472 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24473 + (eval $ac_try) 2>&5
24475 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
24476 + (exit $ac_status); }; } &&
24477 + { ac_try='test -s conftest$ac_exeext'
24478 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24479 + (eval $ac_try) 2>&5
24481 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
24482 + (exit $ac_status); }; }; then
24484 +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24486 +# Check for a 64-bit object if we didn't find anything.
24487 +if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24490 + echo "$as_me: failed program was:" >&5
24491 +sed 's/^/| /' conftest.$ac_ext >&5
24494 +rm -f conftest.err conftest.$ac_objext \
24495 + conftest$ac_exeext conftest.$ac_ext
24496 +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24498 + hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
24499 + # Warning - without using the other run time loading flags,
24500 + # -berok will link without error, but may produce a broken library.
24501 + no_undefined_flag_F77=' ${wl}-bernotok'
24502 + allow_undefined_flag_F77=' ${wl}-berok'
24503 + # Exported symbols can be pulled into shared objects from archives
24504 + whole_archive_flag_spec_F77='$convenience'
24505 + archive_cmds_need_lc_F77=yes
24506 + # This is similar to how AIX traditionally builds its shared libraries.
24507 + archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
24513 + archive_cmds_F77='$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)'
24514 + hardcode_libdir_flag_spec_F77='-L$libdir'
24515 + hardcode_minus_L_F77=yes
24516 + # see comment about different semantics on the GNU ld section
24521 + export_dynamic_flag_spec_F77=-rdynamic
24524 + cygwin* | mingw* | pw32*)
24525 + # When not using gcc, we currently assume that we are using
24526 + # Microsoft Visual C++.
24527 + # hardcode_libdir_flag_spec is actually meaningless, as there is
24528 + # no search path for DLLs.
24529 + hardcode_libdir_flag_spec_F77=' '
24530 + allow_undefined_flag_F77=unsupported
24531 + # Tell ltmain to make .lib files, not .a files.
24533 + # Tell ltmain to make .dll files, not .so files.
24534 + shrext_cmds=".dll"
24535 + # FIXME: Setting linknames here is a bad hack.
24536 + archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
24537 + # The linker will automatically build a .lib file if we build a DLL.
24538 + old_archive_From_new_cmds_F77='true'
24539 + # FIXME: Should let the user specify the lib program.
24540 + old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
24541 + fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
24542 + enable_shared_with_static_runtimes_F77=yes
24545 + darwin* | rhapsody*)
24547 + rhapsody* | darwin1.[012])
24548 + allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
24550 + *) # Darwin 1.3 on
24551 + if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
24552 + allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24554 + case ${MACOSX_DEPLOYMENT_TARGET} in
24556 + allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24559 + allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
24565 + archive_cmds_need_lc_F77=no
24566 + hardcode_direct_F77=no
24567 + hardcode_automatic_F77=yes
24568 + hardcode_shlibpath_var_F77=unsupported
24569 + whole_archive_flag_spec_F77=''
24570 + link_all_deplibs_F77=yes
24571 + if test "$GCC" = yes ; then
24572 + output_verbose_link_cmd='echo'
24573 + archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
24574 + module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24575 + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24576 + archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
24577 + module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
24579 + case $cc_basename in
24581 + output_verbose_link_cmd='echo'
24582 + archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
24583 + module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24584 + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24585 + archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
24586 + module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
24596 + archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24597 + hardcode_libdir_flag_spec_F77='-L$libdir'
24598 + hardcode_shlibpath_var_F77=no
24605 + # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
24606 + # support. Future versions do this automatically, but an explicit c++rt0.o
24607 + # does not break anything, and helps significantly (at the cost of a little
24610 + archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
24611 + hardcode_libdir_flag_spec_F77='-R$libdir'
24612 + hardcode_direct_F77=yes
24613 + hardcode_shlibpath_var_F77=no
24616 + # Unfortunately, older versions of FreeBSD 2 do not have this feature.
24618 + archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24619 + hardcode_direct_F77=yes
24620 + hardcode_minus_L_F77=yes
24621 + hardcode_shlibpath_var_F77=no
24624 + # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
24625 + freebsd* | kfreebsd*-gnu | dragonfly*)
24626 + archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
24627 + hardcode_libdir_flag_spec_F77='-R$libdir'
24628 + hardcode_direct_F77=yes
24629 + hardcode_shlibpath_var_F77=no
24633 + if test "$GCC" = yes; then
24634 + archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
24636 + archive_cmds_F77='$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'
24638 + hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
24639 + hardcode_libdir_separator_F77=:
24640 + hardcode_direct_F77=yes
24642 + # hardcode_minus_L: Not really in the search PATH,
24643 + # but as the default location of the library.
24644 + hardcode_minus_L_F77=yes
24645 + export_dynamic_flag_spec_F77='${wl}-E'
24649 + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24650 + archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24652 + archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
24654 + if test "$with_gnu_ld" = no; then
24655 + hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
24656 + hardcode_libdir_separator_F77=:
24658 + hardcode_direct_F77=yes
24659 + export_dynamic_flag_spec_F77='${wl}-E'
24661 + # hardcode_minus_L: Not really in the search PATH,
24662 + # but as the default location of the library.
24663 + hardcode_minus_L_F77=yes
24668 + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24669 + case $host_cpu in
24671 + archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24674 + archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24677 + archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24681 + case $host_cpu in
24683 + archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24686 + archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24689 + archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24693 + if test "$with_gnu_ld" = no; then
24694 + hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
24695 + hardcode_libdir_separator_F77=:
24697 + case $host_cpu in
24699 + hardcode_libdir_flag_spec_ld_F77='+b $libdir'
24700 + hardcode_direct_F77=no
24701 + hardcode_shlibpath_var_F77=no
24704 + hardcode_direct_F77=yes
24705 + export_dynamic_flag_spec_F77='${wl}-E'
24707 + # hardcode_minus_L: Not really in the search PATH,
24708 + # but as the default location of the library.
24709 + hardcode_minus_L_F77=yes
24715 + irix5* | irix6* | nonstopux*)
24716 + if test "$GCC" = yes; then
24717 + archive_cmds_F77='$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'
24719 + archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
24720 + hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
24722 + hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
24723 + hardcode_libdir_separator_F77=:
24724 + link_all_deplibs_F77=yes
24728 + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24729 + archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
24731 + archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
24733 + hardcode_libdir_flag_spec_F77='-R$libdir'
24734 + hardcode_direct_F77=yes
24735 + hardcode_shlibpath_var_F77=no
24739 + archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24740 + hardcode_direct_F77=yes
24741 + hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
24742 + hardcode_libdir_separator_F77=:
24743 + hardcode_shlibpath_var_F77=no
24747 + hardcode_direct_F77=yes
24748 + hardcode_shlibpath_var_F77=no
24749 + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
24750 + archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24751 + archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
24752 + hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
24753 + export_dynamic_flag_spec_F77='${wl}-E'
24756 + openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
24757 + archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24758 + hardcode_libdir_flag_spec_F77='-R$libdir'
24761 + archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24762 + hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
24769 + hardcode_libdir_flag_spec_F77='-L$libdir'
24770 + hardcode_minus_L_F77=yes
24771 + allow_undefined_flag_F77=unsupported
24772 + archive_cmds_F77='$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'
24773 + old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
24777 + if test "$GCC" = yes; then
24778 + allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
24779 + archive_cmds_F77='$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'
24781 + allow_undefined_flag_F77=' -expect_unresolved \*'
24782 + archive_cmds_F77='$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'
24784 + hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
24785 + hardcode_libdir_separator_F77=:
24788 + osf4* | osf5*) # as osf3* with the addition of -msym flag
24789 + if test "$GCC" = yes; then
24790 + allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
24791 + archive_cmds_F77='$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'
24792 + hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
24794 + allow_undefined_flag_F77=' -expect_unresolved \*'
24795 + archive_cmds_F77='$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'
24796 + archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
24797 + $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
24799 + # Both c and cxx compiler support -rpath directly
24800 + hardcode_libdir_flag_spec_F77='-rpath $libdir'
24802 + hardcode_libdir_separator_F77=:
24806 + no_undefined_flag_F77=' -z text'
24807 + if test "$GCC" = yes; then
24809 + archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24810 + archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
24811 + $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
24814 + archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
24815 + archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
24816 + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
24818 + hardcode_libdir_flag_spec_F77='-R$libdir'
24819 + hardcode_shlibpath_var_F77=no
24821 + solaris2.[0-5] | solaris2.[0-5].*) ;;
24823 + # The compiler driver will combine linker options so we
24824 + # cannot just pass the convience library names through
24825 + # without $wl, iff we do not link with $LD.
24826 + # Luckily, gcc supports the same syntax we need for Sun Studio.
24827 + # Supported since Solaris 2.6 (maybe 2.5.1?)
24830 + whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
24832 + whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
24835 + link_all_deplibs_F77=yes
24839 + if test "x$host_vendor" = xsequent; then
24840 + # Use $CC to link under sequent, because it throws in some extra .o
24841 + # files that make .init and .fini sections work.
24842 + archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
24844 + archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
24846 + hardcode_libdir_flag_spec_F77='-L$libdir'
24847 + hardcode_direct_F77=yes
24848 + hardcode_minus_L_F77=yes
24849 + hardcode_shlibpath_var_F77=no
24853 + case $host_vendor in
24855 + archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24856 + hardcode_direct_F77=yes # is this really true???
24859 + ## LD is ld it makes a PLAMLIB
24860 + ## CC just makes a GrossModule.
24861 + archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
24862 + reload_cmds_F77='$CC -r -o $output$reload_objs'
24863 + hardcode_direct_F77=no
24866 + archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24867 + hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
24870 + runpath_var='LD_RUN_PATH'
24871 + hardcode_shlibpath_var_F77=no
24875 + archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24876 + hardcode_shlibpath_var_F77=no
24877 + export_dynamic_flag_spec_F77='-Bexport'
24881 + if test -d /usr/nec; then
24882 + archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24883 + hardcode_shlibpath_var_F77=no
24884 + runpath_var=LD_RUN_PATH
24885 + hardcode_runpath_var=yes
24886 + ld_shlibs_F77=yes
24890 + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
24891 + no_undefined_flag_F77='${wl}-z,text'
24892 + archive_cmds_need_lc_F77=no
24893 + hardcode_shlibpath_var_F77=no
24894 + runpath_var='LD_RUN_PATH'
24896 + if test "$GCC" = yes; then
24897 + archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24898 + archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24900 + archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24901 + archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24905 + sysv5* | sco3.2v5* | sco5v6*)
24906 + # Note: We can NOT use -z defs as we might desire, because we do not
24907 + # link with -lc, and that would cause any symbols used from libc to
24908 + # always be unresolved, which means just about no library would
24909 + # ever link correctly. If we're not using GNU ld we use -z text
24910 + # though, which does catch some bad symbols but isn't as heavy-handed
24912 + no_undefined_flag_F77='${wl}-z,text'
24913 + allow_undefined_flag_F77='${wl}-z,nodefs'
24914 + archive_cmds_need_lc_F77=no
24915 + hardcode_shlibpath_var_F77=no
24916 + hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
24917 + hardcode_libdir_separator_F77=':'
24918 + link_all_deplibs_F77=yes
24919 + export_dynamic_flag_spec_F77='${wl}-Bexport'
24920 + runpath_var='LD_RUN_PATH'
24922 + if test "$GCC" = yes; then
24923 + archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24924 + archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24926 + archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24927 + archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24932 + archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24933 + hardcode_libdir_flag_spec_F77='-L$libdir'
24934 + hardcode_shlibpath_var_F77=no
24943 +echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
24944 +echo "${ECHO_T}$ld_shlibs_F77" >&6
24945 +test "$ld_shlibs_F77" = no && can_build_shared=no
24948 +# Do we need to explicitly link libc?
24950 +case "x$archive_cmds_need_lc_F77" in
24952 + # Assume -lc should be added
24953 + archive_cmds_need_lc_F77=yes
24955 + if test "$enable_shared" = yes && test "$GCC" = yes; then
24956 + case $archive_cmds_F77 in
24958 + # FIXME: we may have to deal with multi-command sequences.
24961 + # Test whether the compiler implicitly links with -lc since on some
24962 + # systems, -lgcc has to come before -lc. If gcc already passes -lc
24963 + # to ld, don't add -lc before -lgcc.
24964 + echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
24965 +echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
24967 + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24969 + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24970 + (eval $ac_compile) 2>&5
24972 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
24973 + (exit $ac_status); } 2>conftest.err; then
24976 + libobjs=conftest.$ac_objext
24978 + wl=$lt_prog_compiler_wl_F77
24979 + pic_flag=$lt_prog_compiler_pic_F77
24980 + compiler_flags=-v
24985 + lt_save_allow_undefined_flag=$allow_undefined_flag_F77
24986 + allow_undefined_flag_F77=
24987 + if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
24988 + (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
24990 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
24991 + (exit $ac_status); }
24993 + archive_cmds_need_lc_F77=no
24995 + archive_cmds_need_lc_F77=yes
24997 + allow_undefined_flag_F77=$lt_save_allow_undefined_flag
24999 + cat conftest.err 1>&5
25002 + echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
25003 +echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
25010 +echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
25011 +echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
25012 +library_names_spec=
25013 +libname_spec='lib$name'
25017 +postuninstall_cmds=
25021 +shlibpath_overrides_runpath=unknown
25023 +dynamic_linker="$host_os ld.so"
25024 +sys_lib_dlsearch_path_spec="/lib /usr/lib"
25025 +if test "$GCC" = yes; then
25026 + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25027 + if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
25028 + # if the path contains ";" then we assume it to be the separator
25029 + # otherwise default to the standard path separator (i.e. ":") - it is
25030 + # assumed that no part of a normal pathname contains ";" but that should
25031 + # okay in the real world where ";" in dirpaths is itself problematic.
25032 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25034 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25037 + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
25039 +need_lib_prefix=unknown
25040 +hardcode_into_libs=no
25042 +# when you set need_version to no, make sure it does not cause -set_version
25043 +# flags to be left without arguments
25044 +need_version=unknown
25048 + version_type=linux
25049 + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
25050 + shlibpath_var=LIBPATH
25052 + # AIX 3 has no versioning support, so we append a major version to the name.
25053 + soname_spec='${libname}${release}${shared_ext}$major'
25057 + version_type=linux
25058 + need_lib_prefix=no
25060 + hardcode_into_libs=yes
25061 + if test "$host_cpu" = ia64; then
25062 + # AIX 5 supports IA64
25063 + library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25064 + shlibpath_var=LD_LIBRARY_PATH
25066 + # With GCC up to 2.95.x, collect2 would create an import file
25067 + # for dependence libraries. The import file would start with
25068 + # the line `#! .'. This would cause the generated library to
25069 + # depend on `.', always an invalid library. This was fixed in
25070 + # development snapshots of GCC prior to 3.0.
25072 + aix4 | aix4.[01] | aix4.[01].*)
25073 + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25075 + echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25078 + can_build_shared=no
25082 + # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25083 + # soname into executable. Probably we can add versioning support to
25084 + # collect2, so additional links can be useful in future.
25085 + if test "$aix_use_runtimelinking" = yes; then
25086 + # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25087 + # instead of lib<name>.a to let people know that these are not
25088 + # typical AIX shared libraries.
25089 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25091 + # We preserve .a as extension for shared libraries through AIX4.2
25092 + # and later when we are not doing run time linking.
25093 + library_names_spec='${libname}${release}.a $libname.a'
25094 + soname_spec='${libname}${release}${shared_ext}$major'
25096 + shlibpath_var=LIBPATH
25101 + library_names_spec='$libname.ixlibrary $libname.a'
25102 + # Create ${libname}_ixlibrary.a entries in /sys/libs.
25103 + finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
25107 + library_names_spec='${libname}${shared_ext}'
25108 + dynamic_linker="$host_os ld.so"
25109 + shlibpath_var=LIBRARY_PATH
25113 + version_type=linux
25115 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25116 + soname_spec='${libname}${release}${shared_ext}$major'
25117 + finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25118 + shlibpath_var=LD_LIBRARY_PATH
25119 + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25120 + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25121 + # the default ld.so.conf also contains /usr/contrib/lib and
25122 + # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25123 + # libtool to hard-code these into programs
25126 +cygwin* | mingw* | pw32*)
25127 + version_type=windows
25128 + shrext_cmds=".dll"
25130 + need_lib_prefix=no
25132 + case $GCC,$host_os in
25133 + yes,cygwin* | yes,mingw* | yes,pw32*)
25134 + library_names_spec='$libname.dll.a'
25135 + # DLL is installed to $(libdir)/../bin by postinstall_cmds
25136 + postinstall_cmds='base_file=`basename \${file}`~
25137 + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25138 + dldir=$destdir/`dirname \$dlpath`~
25139 + test -d \$dldir || mkdir -p \$dldir~
25140 + $install_prog $dir/$dlname \$dldir/$dlname~
25141 + chmod a+x \$dldir/$dlname'
25142 + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25143 + dlpath=$dir/\$dldll~
25145 + shlibpath_overrides_runpath=yes
25149 + # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25150 + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25151 + sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
25154 + # MinGW DLLs use traditional 'lib' prefix
25155 + soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25156 + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25157 + if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25158 + # It is most probably a Windows format PATH printed by
25159 + # mingw gcc, but we are running on Cygwin. Gcc prints its search
25160 + # path with ; separators, and with drive letters. We can handle the
25161 + # drive letters (cygwin fileutils understands them), so leave them,
25162 + # especially as we might pass files found there to a mingw objdump,
25163 + # which wouldn't understand a cygwinified path. Ahh.
25164 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25166 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25170 + # pw32 DLLs use 'pw' prefix rather than 'lib'
25171 + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25177 + if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
25178 + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
25179 + supports_anon_versioning=no
25180 + case `$LD -v 2>/dev/null` in
25181 + *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
25182 + *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
25183 + *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
25184 + *\ 2.11.*) ;; # other 2.11 versions
25185 + *) supports_anon_versioning=yes ;;
25187 + if test $supports_anon_versioning = yes; then
25188 + archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
25189 +cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
25190 +$echo "local: *; };" >> $output_objdir/$libname.ver~
25191 + $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
25193 + $archive_expsym_cmds="$archive_cmds"
25201 + library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25204 + dynamic_linker='Win32 ld.exe'
25205 + # FIXME: first we should search . and the directory the executable is in
25206 + shlibpath_var=PATH
25209 +darwin* | rhapsody*)
25210 + dynamic_linker="$host_os dyld"
25211 + version_type=darwin
25212 + need_lib_prefix=no
25214 + library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
25215 + soname_spec='${libname}${release}${major}$shared_ext'
25216 + shlibpath_overrides_runpath=yes
25217 + shlibpath_var=DYLD_LIBRARY_PATH
25218 + shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
25219 + # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
25220 + if test "$GCC" = yes; then
25221 + sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
25223 + sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
25225 + sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25229 + version_type=linux
25230 + need_lib_prefix=no
25232 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25233 + soname_spec='${libname}${release}${shared_ext}$major'
25234 + shlibpath_var=LD_LIBRARY_PATH
25238 + dynamic_linker=no
25242 + version_type=linux
25243 + need_lib_prefix=no
25245 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25246 + soname_spec='${libname}${release}${shared_ext}$major'
25247 + shlibpath_var=LD_LIBRARY_PATH
25248 + shlibpath_overrides_runpath=no
25249 + hardcode_into_libs=yes
25250 + dynamic_linker='GNU ld.so'
25253 +freebsd* | dragonfly*)
25254 + # DragonFly does not have aout. When/if they implement a new
25255 + # versioning mechanism, adjust this.
25256 + if test -x /usr/bin/objformat; then
25257 + objformat=`/usr/bin/objformat`
25260 + freebsd[123]*) objformat=aout ;;
25261 + *) objformat=elf ;;
25264 + # Handle Gentoo/FreeBSD as it was Linux
25265 + case $host_vendor in
25267 + version_type=linux ;;
25269 + version_type=freebsd-$objformat ;;
25272 + case $version_type in
25274 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25276 + need_lib_prefix=no
25279 + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25283 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25284 + soname_spec='${libname}${release}${shared_ext}$major'
25285 + need_lib_prefix=no
25289 + shlibpath_var=LD_LIBRARY_PATH
25292 + shlibpath_overrides_runpath=yes
25294 + freebsd3.[01]* | freebsdelf3.[01]*)
25295 + shlibpath_overrides_runpath=yes
25296 + hardcode_into_libs=yes
25298 + freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25299 + freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
25300 + shlibpath_overrides_runpath=no
25301 + hardcode_into_libs=yes
25303 + freebsd*) # from 4.6 on
25304 + shlibpath_overrides_runpath=yes
25305 + hardcode_into_libs=yes
25311 + version_type=linux
25312 + need_lib_prefix=no
25314 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25315 + soname_spec='${libname}${release}${shared_ext}$major'
25316 + shlibpath_var=LD_LIBRARY_PATH
25317 + hardcode_into_libs=yes
25320 +hpux9* | hpux10* | hpux11*)
25321 + # Give a soname corresponding to the major version so that dld.sl refuses to
25322 + # link against other versions.
25323 + version_type=sunos
25324 + need_lib_prefix=no
25326 + case $host_cpu in
25328 + shrext_cmds='.so'
25329 + hardcode_into_libs=yes
25330 + dynamic_linker="$host_os dld.so"
25331 + shlibpath_var=LD_LIBRARY_PATH
25332 + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25333 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25334 + soname_spec='${libname}${release}${shared_ext}$major'
25335 + if test "X$HPUX_IA64_MODE" = X32; then
25336 + sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25338 + sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25340 + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25343 + shrext_cmds='.sl'
25344 + hardcode_into_libs=yes
25345 + dynamic_linker="$host_os dld.sl"
25346 + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25347 + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25348 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25349 + soname_spec='${libname}${release}${shared_ext}$major'
25350 + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25351 + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25354 + shrext_cmds='.sl'
25355 + dynamic_linker="$host_os dld.sl"
25356 + shlibpath_var=SHLIB_PATH
25357 + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25358 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25359 + soname_spec='${libname}${release}${shared_ext}$major'
25362 + # HP-UX runs *really* slowly unless shared libraries are mode 555.
25363 + postinstall_cmds='chmod 555 $lib'
25367 + version_type=linux
25368 + need_lib_prefix=no
25370 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25371 + soname_spec='${libname}${release}${shared_ext}$major'
25372 + dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
25373 + shlibpath_var=LD_LIBRARY_PATH
25374 + shlibpath_overrides_runpath=no
25375 + hardcode_into_libs=yes
25378 +irix5* | irix6* | nonstopux*)
25380 + nonstopux*) version_type=nonstopux ;;
25382 + if test "$lt_cv_prog_gnu_ld" = yes; then
25383 + version_type=linux
25385 + version_type=irix
25388 + need_lib_prefix=no
25390 + soname_spec='${libname}${release}${shared_ext}$major'
25391 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25393 + irix5* | nonstopux*)
25394 + libsuff= shlibsuff=
25397 + case $LD in # libtool.m4 will add one of these switches to LD
25398 + *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
25399 + libsuff= shlibsuff= libmagic=32-bit;;
25400 + *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
25401 + libsuff=32 shlibsuff=N32 libmagic=N32;;
25402 + *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
25403 + libsuff=64 shlibsuff=64 libmagic=64-bit;;
25404 + *) libsuff= shlibsuff= libmagic=never-match;;
25408 + shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
25409 + shlibpath_overrides_runpath=no
25410 + sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
25411 + sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
25412 + hardcode_into_libs=yes
25415 +# No shared lib support for Linux oldld, aout, or coff.
25416 +linux*oldld* | linux*aout* | linux*coff*)
25417 + dynamic_linker=no
25420 +# This must be Linux ELF.
25422 + version_type=linux
25423 + need_lib_prefix=no
25425 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25426 + soname_spec='${libname}${release}${shared_ext}$major'
25427 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
25428 + shlibpath_var=LD_LIBRARY_PATH
25429 + shlibpath_overrides_runpath=no
25430 + # This implies no fast_install, which is unacceptable.
25431 + # Some rework will be needed to allow for fast_install
25432 + # before this can be enabled.
25433 + hardcode_into_libs=yes
25435 + # Append ld.so.conf contents to the search path
25436 + if test -f /etc/ld.so.conf; then
25437 + lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
25438 + sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
25441 + # We used to test for /lib/ld.so.1 and disable shared libraries on
25442 + # powerpc, because MkLinux only supported shared libraries with the
25443 + # GNU dynamic linker. Since this was broken with cross compilers,
25444 + # most powerpc-linux boxes support dynamic linking these days and
25445 + # people can always --disable-shared, the test was removed, and we
25446 + # assume the GNU/Linux dynamic linker is in use.
25447 + dynamic_linker='GNU/Linux ld.so'
25451 + version_type=linux
25452 + need_lib_prefix=no
25454 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25455 + soname_spec='${libname}${release}${shared_ext}$major'
25456 + shlibpath_var=LD_LIBRARY_PATH
25457 + shlibpath_overrides_runpath=no
25458 + hardcode_into_libs=yes
25459 + dynamic_linker='GNU ld.so'
25463 + version_type=sunos
25464 + need_lib_prefix=no
25466 + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25467 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25468 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25469 + dynamic_linker='NetBSD (a.out) ld.so'
25471 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25472 + soname_spec='${libname}${release}${shared_ext}$major'
25473 + dynamic_linker='NetBSD ld.elf_so'
25475 + shlibpath_var=LD_LIBRARY_PATH
25476 + shlibpath_overrides_runpath=yes
25477 + hardcode_into_libs=yes
25481 + version_type=linux
25482 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25483 + shlibpath_var=LD_LIBRARY_PATH
25484 + shlibpath_overrides_runpath=yes
25488 + version_type=linux
25489 + need_lib_prefix=no
25491 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25492 + soname_spec='${libname}${release}${shared_ext}$major'
25493 + shlibpath_var=LD_LIBRARY_PATH
25494 + shlibpath_overrides_runpath=yes
25498 + version_type=sunos
25499 + sys_lib_dlsearch_path_spec="/usr/lib"
25500 + need_lib_prefix=no
25501 + # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
25503 + openbsd3.3 | openbsd3.3.*) need_version=yes ;;
25504 + *) need_version=no ;;
25506 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25507 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25508 + shlibpath_var=LD_LIBRARY_PATH
25509 + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25511 + openbsd2.[89] | openbsd2.[89].*)
25512 + shlibpath_overrides_runpath=no
25515 + shlibpath_overrides_runpath=yes
25519 + shlibpath_overrides_runpath=yes
25524 + libname_spec='$name'
25525 + shrext_cmds=".dll"
25526 + need_lib_prefix=no
25527 + library_names_spec='$libname${shared_ext} $libname.a'
25528 + dynamic_linker='OS/2 ld.exe'
25529 + shlibpath_var=LIBPATH
25532 +osf3* | osf4* | osf5*)
25534 + need_lib_prefix=no
25536 + soname_spec='${libname}${release}${shared_ext}$major'
25537 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25538 + shlibpath_var=LD_LIBRARY_PATH
25539 + sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
25540 + sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
25544 + version_type=linux
25545 + need_lib_prefix=no
25547 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25548 + soname_spec='${libname}${release}${shared_ext}$major'
25549 + shlibpath_var=LD_LIBRARY_PATH
25550 + shlibpath_overrides_runpath=yes
25551 + hardcode_into_libs=yes
25552 + # ldd complains unless libraries are executable
25553 + postinstall_cmds='chmod +x $lib'
25557 + version_type=sunos
25558 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25559 + finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
25560 + shlibpath_var=LD_LIBRARY_PATH
25561 + shlibpath_overrides_runpath=yes
25562 + if test "$with_gnu_ld" = yes; then
25563 + need_lib_prefix=no
25569 + version_type=linux
25570 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25571 + soname_spec='${libname}${release}${shared_ext}$major'
25572 + shlibpath_var=LD_LIBRARY_PATH
25573 + case $host_vendor in
25575 + shlibpath_overrides_runpath=no
25576 + need_lib_prefix=no
25577 + export_dynamic_flag_spec='${wl}-Blargedynsym'
25578 + runpath_var=LD_RUN_PATH
25581 + need_lib_prefix=no
25584 + need_lib_prefix=no
25586 + shlibpath_overrides_runpath=no
25587 + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
25593 + if test -d /usr/nec ;then
25594 + version_type=linux
25595 + library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
25596 + soname_spec='$libname${shared_ext}.$major'
25597 + shlibpath_var=LD_LIBRARY_PATH
25601 +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
25602 + version_type=freebsd-elf
25603 + need_lib_prefix=no
25605 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25606 + soname_spec='${libname}${release}${shared_ext}$major'
25607 + shlibpath_var=LD_LIBRARY_PATH
25608 + hardcode_into_libs=yes
25609 + if test "$with_gnu_ld" = yes; then
25610 + sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
25611 + shlibpath_overrides_runpath=no
25613 + sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
25614 + shlibpath_overrides_runpath=yes
25617 + sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
25621 + sys_lib_dlsearch_path_spec='/usr/lib'
25625 + version_type=linux
25626 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25627 + soname_spec='${libname}${release}${shared_ext}$major'
25628 + shlibpath_var=LD_LIBRARY_PATH
25632 + dynamic_linker=no
25635 +echo "$as_me:$LINENO: result: $dynamic_linker" >&5
25636 +echo "${ECHO_T}$dynamic_linker" >&6
25637 +test "$dynamic_linker" = no && can_build_shared=no
25639 +variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
25640 +if test "$GCC" = yes; then
25641 + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
25644 +echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
25645 +echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
25646 +hardcode_action_F77=
25647 +if test -n "$hardcode_libdir_flag_spec_F77" || \
25648 + test -n "$runpath_var_F77" || \
25649 + test "X$hardcode_automatic_F77" = "Xyes" ; then
25651 + # We can hardcode non-existant directories.
25652 + if test "$hardcode_direct_F77" != no &&
25653 + # If the only mechanism to avoid hardcoding is shlibpath_var, we
25654 + # have to relink, otherwise we might link with an installed library
25655 + # when we should be linking with a yet-to-be-installed one
25656 + ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
25657 + test "$hardcode_minus_L_F77" != no; then
25658 + # Linking always hardcodes the temporary library directory.
25659 + hardcode_action_F77=relink
25661 + # We can link without hardcoding, and we can hardcode nonexisting dirs.
25662 + hardcode_action_F77=immediate
25665 + # We cannot hardcode anything, or else we can only hardcode existing
25667 + hardcode_action_F77=unsupported
25669 +echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
25670 +echo "${ECHO_T}$hardcode_action_F77" >&6
25672 +if test "$hardcode_action_F77" = relink; then
25673 + # Fast installation is not supported
25674 + enable_fast_install=no
25675 +elif test "$shlibpath_overrides_runpath" = yes ||
25676 + test "$enable_shared" = no; then
25677 + # Fast installation is not necessary
25678 + enable_fast_install=needless
25682 +# The else clause should only fire when bootstrapping the
25683 +# libtool distribution, otherwise you forgot to ship ltmain.sh
25684 +# with your package, and you will get complaints that there are
25685 +# no rules to generate ltmain.sh.
25686 +if test -f "$ltmain"; then
25687 + # See if we are running on zsh, and set the options which allow our commands through
25688 + # without removal of \ escapes.
25689 + if test -n "${ZSH_VERSION+set}" ; then
25690 + setopt NO_GLOB_SUBST
25692 + # Now quote all the things that may contain metacharacters while being
25693 + # careful not to overquote the AC_SUBSTed values. We take copies of the
25694 + # variables and quote the copies for generation of the libtool script.
25695 + for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
25696 + SED SHELL STRIP \
25697 + libname_spec library_names_spec soname_spec extract_expsyms_cmds \
25698 + old_striplib striplib file_magic_cmd finish_cmds finish_eval \
25699 + deplibs_check_method reload_flag reload_cmds need_locks \
25700 + lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
25701 + lt_cv_sys_global_symbol_to_c_name_address \
25702 + sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
25703 + old_postinstall_cmds old_postuninstall_cmds \
25707 + lt_prog_compiler_wl_F77 \
25708 + lt_prog_compiler_pic_F77 \
25709 + lt_prog_compiler_static_F77 \
25710 + lt_prog_compiler_no_builtin_flag_F77 \
25711 + export_dynamic_flag_spec_F77 \
25712 + thread_safe_flag_spec_F77 \
25713 + whole_archive_flag_spec_F77 \
25714 + enable_shared_with_static_runtimes_F77 \
25715 + old_archive_cmds_F77 \
25716 + old_archive_from_new_cmds_F77 \
25717 + predep_objects_F77 \
25718 + postdep_objects_F77 \
25721 + compiler_lib_search_path_F77 \
25722 + archive_cmds_F77 \
25723 + archive_expsym_cmds_F77 \
25724 + postinstall_cmds_F77 \
25725 + postuninstall_cmds_F77 \
25726 + old_archive_from_expsyms_cmds_F77 \
25727 + allow_undefined_flag_F77 \
25728 + no_undefined_flag_F77 \
25729 + export_symbols_cmds_F77 \
25730 + hardcode_libdir_flag_spec_F77 \
25731 + hardcode_libdir_flag_spec_ld_F77 \
25732 + hardcode_libdir_separator_F77 \
25733 + hardcode_automatic_F77 \
25734 + module_cmds_F77 \
25735 + module_expsym_cmds_F77 \
25736 + lt_cv_prog_compiler_c_o_F77 \
25737 + exclude_expsyms_F77 \
25738 + include_expsyms_F77; do
25741 + old_archive_cmds_F77 | \
25742 + old_archive_from_new_cmds_F77 | \
25743 + archive_cmds_F77 | \
25744 + archive_expsym_cmds_F77 | \
25745 + module_cmds_F77 | \
25746 + module_expsym_cmds_F77 | \
25747 + old_archive_from_expsyms_cmds_F77 | \
25748 + export_symbols_cmds_F77 | \
25749 + extract_expsyms_cmds | reload_cmds | finish_cmds | \
25750 + postinstall_cmds | postuninstall_cmds | \
25751 + old_postinstall_cmds | old_postuninstall_cmds | \
25752 + sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
25753 + # Double-quote double-evaled strings.
25754 + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
25757 + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
25763 + *'\$0 --fallback-echo"')
25764 + lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
25770 + cat <<__EOF__ >> "$cfgfile"
25771 +# ### BEGIN LIBTOOL TAG CONFIG: $tagname
25773 +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
25775 +# Shell to use when invoking shell scripts.
25778 +# Whether or not to build shared libraries.
25779 +build_libtool_libs=$enable_shared
25781 +# Whether or not to build static libraries.
25782 +build_old_libs=$enable_static
25784 +# Whether or not to add -lc for building shared libraries.
25785 +build_libtool_need_lc=$archive_cmds_need_lc_F77
25787 +# Whether or not to disallow shared libs when runtime libs are static
25788 +allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
25790 +# Whether or not to optimize for fast installation.
25791 +fast_install=$enable_fast_install
25793 +# The host system.
25794 +host_alias=$host_alias
25798 +# The build system.
25799 +build_alias=$build_alias
25801 +build_os=$build_os
25803 +# An echo program that does not interpret backslashes.
25808 +AR_FLAGS=$lt_AR_FLAGS
25813 +# LTCC compiler flags.
25814 +LTCFLAGS=$lt_LTCFLAGS
25816 +# A language-specific compiler.
25817 +CC=$lt_compiler_F77
25819 +# Is the compiler the GNU C compiler?
25825 +# The linker used to build libraries.
25828 +# Whether we need hard or soft links.
25831 +# A BSD-compatible nm program.
25834 +# A symbol stripping program
25837 +# Used to examine libraries when file_magic_cmd begins "file"
25838 +MAGIC_CMD=$MAGIC_CMD
25840 +# Used on cygwin: DLL creation program.
25841 +DLLTOOL="$DLLTOOL"
25843 +# Used on cygwin: object dumper.
25844 +OBJDUMP="$OBJDUMP"
25846 +# Used on cygwin: assembler.
25849 +# The name of the directory that contains temporary libtool files.
25852 +# How to create reloadable object files.
25853 +reload_flag=$lt_reload_flag
25854 +reload_cmds=$lt_reload_cmds
25856 +# How to pass a linker flag through the compiler.
25857 +wl=$lt_lt_prog_compiler_wl_F77
25859 +# Object file suffix (normally "o").
25860 +objext="$ac_objext"
25862 +# Old archive suffix (normally "a").
25865 +# Shared library suffix (normally ".so").
25866 +shrext_cmds='$shrext_cmds'
25868 +# Executable file suffix (normally "").
25871 +# Additional compiler flags for building library objects.
25872 +pic_flag=$lt_lt_prog_compiler_pic_F77
25873 +pic_mode=$pic_mode
25875 +# What is the maximum length of a command?
25876 +max_cmd_len=$lt_cv_sys_max_cmd_len
25878 +# Does compiler simultaneously support -c and -o options?
25879 +compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
25881 +# Must we lock files when doing compilation?
25882 +need_locks=$lt_need_locks
25884 +# Do we need the lib prefix for modules?
25885 +need_lib_prefix=$need_lib_prefix
25887 +# Do we need a version for libraries?
25888 +need_version=$need_version
25890 +# Whether dlopen is supported.
25891 +dlopen_support=$enable_dlopen
25893 +# Whether dlopen of programs is supported.
25894 +dlopen_self=$enable_dlopen_self
25896 +# Whether dlopen of statically linked programs is supported.
25897 +dlopen_self_static=$enable_dlopen_self_static
25899 +# Compiler flag to prevent dynamic linking.
25900 +link_static_flag=$lt_lt_prog_compiler_static_F77
25902 +# Compiler flag to turn off builtin functions.
25903 +no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
25905 +# Compiler flag to allow reflexive dlopens.
25906 +export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
25908 +# Compiler flag to generate shared objects directly from archives.
25909 +whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
25911 +# Compiler flag to generate thread-safe objects.
25912 +thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
25914 +# Library versioning type.
25915 +version_type=$version_type
25917 +# Format of library name prefix.
25918 +libname_spec=$lt_libname_spec
25920 +# List of archive names. First name is the real one, the rest are links.
25921 +# The last name is the one that the linker finds with -lNAME.
25922 +library_names_spec=$lt_library_names_spec
25924 +# The coded name of the library, if different from the real name.
25925 +soname_spec=$lt_soname_spec
25927 +# Commands used to build and install an old-style archive.
25929 +old_archive_cmds=$lt_old_archive_cmds_F77
25930 +old_postinstall_cmds=$lt_old_postinstall_cmds
25931 +old_postuninstall_cmds=$lt_old_postuninstall_cmds
25933 +# Create an old-style archive from a shared archive.
25934 +old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
25936 +# Create a temporary old-style archive to link instead of a shared archive.
25937 +old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
25939 +# Commands used to build and install a shared archive.
25940 +archive_cmds=$lt_archive_cmds_F77
25941 +archive_expsym_cmds=$lt_archive_expsym_cmds_F77
25942 +postinstall_cmds=$lt_postinstall_cmds
25943 +postuninstall_cmds=$lt_postuninstall_cmds
25945 +# Commands used to build a loadable module (assumed same as above if empty)
25946 +module_cmds=$lt_module_cmds_F77
25947 +module_expsym_cmds=$lt_module_expsym_cmds_F77
25949 +# Commands to strip libraries.
25950 +old_striplib=$lt_old_striplib
25951 +striplib=$lt_striplib
25953 +# Dependencies to place before the objects being linked to create a
25955 +predep_objects=$lt_predep_objects_F77
25957 +# Dependencies to place after the objects being linked to create a
25959 +postdep_objects=$lt_postdep_objects_F77
25961 +# Dependencies to place before the objects being linked to create a
25963 +predeps=$lt_predeps_F77
25965 +# Dependencies to place after the objects being linked to create a
25967 +postdeps=$lt_postdeps_F77
25969 +# The library search path used internally by the compiler when linking
25970 +# a shared library.
25971 +compiler_lib_search_path=$lt_compiler_lib_search_path_F77
25973 +# Method to check whether dependent libraries are shared objects.
25974 +deplibs_check_method=$lt_deplibs_check_method
25976 +# Command to use when deplibs_check_method == file_magic.
25977 +file_magic_cmd=$lt_file_magic_cmd
25979 +# Flag that allows shared libraries with undefined symbols to be built.
25980 +allow_undefined_flag=$lt_allow_undefined_flag_F77
25982 +# Flag that forces no undefined symbols.
25983 +no_undefined_flag=$lt_no_undefined_flag_F77
25985 +# Commands used to finish a libtool library installation in a directory.
25986 +finish_cmds=$lt_finish_cmds
25988 +# Same as above, but a single script fragment to be evaled but not shown.
25989 +finish_eval=$lt_finish_eval
25991 +# Take the output of nm and produce a listing of raw symbols and C names.
25992 +global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
25994 +# Transform the output of nm in a proper C declaration
25995 +global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
25997 +# Transform the output of nm in a C name address pair
25998 +global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26000 +# This is the shared library runtime path variable.
26001 +runpath_var=$runpath_var
26003 +# This is the shared library path variable.
26004 +shlibpath_var=$shlibpath_var
26006 +# Is shlibpath searched before the hard-coded library search path?
26007 +shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26009 +# How to hardcode a shared library path into an executable.
26010 +hardcode_action=$hardcode_action_F77
26012 +# Whether we should hardcode library paths into libraries.
26013 +hardcode_into_libs=$hardcode_into_libs
26015 +# Flag to hardcode \$libdir into a binary during linking.
26016 +# This must work even if \$libdir does not exist.
26017 +hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
26019 +# If ld is used when linking, flag to hardcode \$libdir into
26020 +# a binary during linking. This must work even if \$libdir does
26022 +hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
26024 +# Whether we need a single -rpath flag with a separated argument.
26025 +hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
26027 +# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26028 +# resulting binary.
26029 +hardcode_direct=$hardcode_direct_F77
26031 +# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26032 +# resulting binary.
26033 +hardcode_minus_L=$hardcode_minus_L_F77
26035 +# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26036 +# the resulting binary.
26037 +hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
26039 +# Set to yes if building a shared library automatically hardcodes DIR into the library
26040 +# and all subsequent libraries and executables linked against it.
26041 +hardcode_automatic=$hardcode_automatic_F77
26043 +# Variables whose values should be saved in libtool wrapper scripts and
26044 +# restored at relink time.
26045 +variables_saved_for_relink="$variables_saved_for_relink"
26047 +# Whether libtool must link a program against all its dependency libraries.
26048 +link_all_deplibs=$link_all_deplibs_F77
26050 +# Compile-time system search path for libraries
26051 +sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26053 +# Run-time system search path for libraries
26054 +sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26056 +# Fix the shell variable \$srcfile for the compiler.
26057 +fix_srcfile_path="$fix_srcfile_path_F77"
26059 +# Set to yes if exported symbols are required.
26060 +always_export_symbols=$always_export_symbols_F77
26062 +# The commands to list exported symbols.
26063 +export_symbols_cmds=$lt_export_symbols_cmds_F77
26065 +# The commands to extract the exported symbol list from a shared archive.
26066 +extract_expsyms_cmds=$lt_extract_expsyms_cmds
26068 +# Symbols that should not be listed in the preloaded symbols.
26069 +exclude_expsyms=$lt_exclude_expsyms_F77
26071 +# Symbols that must always be exported.
26072 +include_expsyms=$lt_include_expsyms_F77
26074 +# ### END LIBTOOL TAG CONFIG: $tagname
26080 + # If there is no Makefile yet, we rely on a make rule to execute
26081 + # `config.status --recheck' to rerun these tests and create the
26082 + # libtool script then.
26083 + ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26084 + if test -f "$ltmain_in"; then
26085 + test -f Makefile && make "$ltmain"
26091 +ac_cpp='$CPP $CPPFLAGS'
26092 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26093 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26094 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
26104 + if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
26108 +# Source file extension for Java test sources.
26111 +# Object file extension for compiled Java test sources.
26113 +objext_GCJ=$objext
26115 +# Code to be used in simple compile tests
26116 +lt_simple_compile_test_code="class foo {}\n"
26118 +# Code to be used in simple link tests
26119 +lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
26121 +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
26123 +# If no C compiler was specified, use CC.
26124 +LTCC=${LTCC-"$CC"}
26126 +# If no C compiler flags were specified, use CFLAGS.
26127 +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26129 +# Allow CC to be a program name with arguments.
26133 +# save warnings/boilerplate of simple test code
26134 +ac_outfile=conftest.$ac_objext
26135 +printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26136 +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26137 +_lt_compiler_boilerplate=`cat conftest.err`
26140 +ac_outfile=conftest.$ac_objext
26141 +printf "$lt_simple_link_test_code" >conftest.$ac_ext
26142 +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26143 +_lt_linker_boilerplate=`cat conftest.err`
26147 +# Allow CC to be a program name with arguments.
26152 +for cc_temp in $compiler""; do
26154 + compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26155 + distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26160 +cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26163 +# GCJ did not exist at the time GCC didn't implicitly link libc in.
26164 +archive_cmds_need_lc_GCJ=no
26166 +old_archive_cmds_GCJ=$old_archive_cmds
26169 +lt_prog_compiler_no_builtin_flag_GCJ=
26171 +if test "$GCC" = yes; then
26172 + lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
26175 +echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
26176 +echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
26177 +if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
26178 + echo $ECHO_N "(cached) $ECHO_C" >&6
26180 + lt_cv_prog_compiler_rtti_exceptions=no
26181 + ac_outfile=conftest.$ac_objext
26182 + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
26183 + lt_compiler_flag="-fno-rtti -fno-exceptions"
26184 + # Insert the option either (1) after the last *FLAGS variable, or
26185 + # (2) before a word containing "conftest.", or (3) at the end.
26186 + # Note that $ac_compile itself does not contain backslashes and begins
26187 + # with a dollar sign (not a hyphen), so the echo should work correctly.
26188 + # The option is referenced via a variable to avoid confusing sed.
26189 + lt_compile=`echo "$ac_compile" | $SED \
26190 + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
26191 + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
26192 + -e 's:$: $lt_compiler_flag:'`
26193 + (eval echo "\"\$as_me:15649: $lt_compile\"" >&5)
26194 + (eval "$lt_compile" 2>conftest.err)
26196 + cat conftest.err >&5
26197 + echo "$as_me:15653: \$? = $ac_status" >&5
26198 + if (exit $ac_status) && test -s "$ac_outfile"; then
26199 + # The compiler can only warn and ignore the option if not recognized
26200 + # So say no if there are warnings other than the usual output.
26201 + $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
26202 + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
26203 + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
26204 + lt_cv_prog_compiler_rtti_exceptions=yes
26210 +echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
26211 +echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
26213 +if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
26214 + lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
26221 +lt_prog_compiler_wl_GCJ=
26222 +lt_prog_compiler_pic_GCJ=
26223 +lt_prog_compiler_static_GCJ=
26225 +echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
26226 +echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
26228 + if test "$GCC" = yes; then
26229 + lt_prog_compiler_wl_GCJ='-Wl,'
26230 + lt_prog_compiler_static_GCJ='-static'
26234 + # All AIX code is PIC.
26235 + if test "$host_cpu" = ia64; then
26236 + # AIX 5 now supports IA64 processor
26237 + lt_prog_compiler_static_GCJ='-Bstatic'
26242 + # FIXME: we need at least 68020 code to build shared libraries, but
26243 + # adding the `-m68020' flag to GCC prevents building anything better,
26244 + # like `-m68040'.
26245 + lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
26248 + beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
26249 + # PIC is the default for these OSes.
26252 + mingw* | pw32* | os2*)
26253 + # This hack is so that the source file can tell whether it is being
26254 + # built for inclusion in a dll (and should export symbols for example).
26255 + lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
26258 + darwin* | rhapsody*)
26259 + # PIC is the default on this platform
26260 + # Common symbols not allowed in MH_DYLIB files
26261 + lt_prog_compiler_pic_GCJ='-fno-common'
26265 + # Interix 3.x gcc -fpic/-fPIC options generate broken code.
26266 + # Instead, we relocate shared libraries at runtime.
26270 + # Just because we use GCC doesn't mean we suddenly get shared libraries
26271 + # on systems that don't support them.
26272 + lt_prog_compiler_can_build_shared_GCJ=no
26277 + if test -d /usr/nec; then
26278 + lt_prog_compiler_pic_GCJ=-Kconform_pic
26283 + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
26284 + # not for PA HP-UX.
26285 + case $host_cpu in
26290 + lt_prog_compiler_pic_GCJ='-fPIC'
26296 + lt_prog_compiler_pic_GCJ='-fPIC'
26300 + # PORTME Check for flag to pass linker flags through the system compiler.
26303 + lt_prog_compiler_wl_GCJ='-Wl,'
26304 + if test "$host_cpu" = ia64; then
26305 + # AIX 5 now supports IA64 processor
26306 + lt_prog_compiler_static_GCJ='-Bstatic'
26308 + lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
26312 + # PIC is the default on this platform
26313 + # Common symbols not allowed in MH_DYLIB files
26314 + case $cc_basename in
26316 + lt_prog_compiler_pic_GCJ='-qnocommon'
26317 + lt_prog_compiler_wl_GCJ='-Wl,'
26322 + mingw* | pw32* | os2*)
26323 + # This hack is so that the source file can tell whether it is being
26324 + # built for inclusion in a dll (and should export symbols for example).
26325 + lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
26328 + hpux9* | hpux10* | hpux11*)
26329 + lt_prog_compiler_wl_GCJ='-Wl,'
26330 + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
26331 + # not for PA HP-UX.
26332 + case $host_cpu in
26337 + lt_prog_compiler_pic_GCJ='+Z'
26340 + # Is there a better lt_prog_compiler_static that works with the bundled CC?
26341 + lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
26344 + irix5* | irix6* | nonstopux*)
26345 + lt_prog_compiler_wl_GCJ='-Wl,'
26346 + # PIC (with -KPIC) is the default.
26347 + lt_prog_compiler_static_GCJ='-non_shared'
26351 + lt_prog_compiler_pic_GCJ='-KPIC'
26352 + lt_prog_compiler_static_GCJ='-Bstatic'
26356 + case $cc_basename in
26358 + lt_prog_compiler_wl_GCJ='-Wl,'
26359 + lt_prog_compiler_pic_GCJ='-KPIC'
26360 + lt_prog_compiler_static_GCJ='-static'
26362 + pgcc* | pgf77* | pgf90* | pgf95*)
26363 + # Portland Group compilers (*not* the Pentium gcc compiler,
26364 + # which looks to be a dead project)
26365 + lt_prog_compiler_wl_GCJ='-Wl,'
26366 + lt_prog_compiler_pic_GCJ='-fpic'
26367 + lt_prog_compiler_static_GCJ='-Bstatic'
26370 + lt_prog_compiler_wl_GCJ='-Wl,'
26371 + # All Alpha code is PIC.
26372 + lt_prog_compiler_static_GCJ='-non_shared'
26377 + osf3* | osf4* | osf5*)
26378 + lt_prog_compiler_wl_GCJ='-Wl,'
26379 + # All OSF/1 code is PIC.
26380 + lt_prog_compiler_static_GCJ='-non_shared'
26384 + lt_prog_compiler_pic_GCJ='-KPIC'
26385 + lt_prog_compiler_static_GCJ='-Bstatic'
26386 + case $cc_basename in
26387 + f77* | f90* | f95*)
26388 + lt_prog_compiler_wl_GCJ='-Qoption ld ';;
26390 + lt_prog_compiler_wl_GCJ='-Wl,';;
26395 + lt_prog_compiler_wl_GCJ='-Qoption ld '
26396 + lt_prog_compiler_pic_GCJ='-PIC'
26397 + lt_prog_compiler_static_GCJ='-Bstatic'
26400 + sysv4 | sysv4.2uw2* | sysv4.3*)
26401 + lt_prog_compiler_wl_GCJ='-Wl,'
26402 + lt_prog_compiler_pic_GCJ='-KPIC'
26403 + lt_prog_compiler_static_GCJ='-Bstatic'
26407 + if test -d /usr/nec ;then
26408 + lt_prog_compiler_pic_GCJ='-Kconform_pic'
26409 + lt_prog_compiler_static_GCJ='-Bstatic'
26413 + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
26414 + lt_prog_compiler_wl_GCJ='-Wl,'
26415 + lt_prog_compiler_pic_GCJ='-KPIC'
26416 + lt_prog_compiler_static_GCJ='-Bstatic'
26420 + lt_prog_compiler_wl_GCJ='-Wl,'
26421 + lt_prog_compiler_can_build_shared_GCJ=no
26425 + lt_prog_compiler_pic_GCJ='-pic'
26426 + lt_prog_compiler_static_GCJ='-Bstatic'
26430 + lt_prog_compiler_can_build_shared_GCJ=no
26435 +echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
26436 +echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
26439 +# Check to make sure the PIC flag actually works.
26441 +if test -n "$lt_prog_compiler_pic_GCJ"; then
26443 +echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
26444 +echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
26445 +if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
26446 + echo $ECHO_N "(cached) $ECHO_C" >&6
26448 + lt_prog_compiler_pic_works_GCJ=no
26449 + ac_outfile=conftest.$ac_objext
26450 + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
26451 + lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
26452 + # Insert the option either (1) after the last *FLAGS variable, or
26453 + # (2) before a word containing "conftest.", or (3) at the end.
26454 + # Note that $ac_compile itself does not contain backslashes and begins
26455 + # with a dollar sign (not a hyphen), so the echo should work correctly.
26456 + # The option is referenced via a variable to avoid confusing sed.
26457 + lt_compile=`echo "$ac_compile" | $SED \
26458 + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
26459 + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
26460 + -e 's:$: $lt_compiler_flag:'`
26461 + (eval echo "\"\$as_me:15917: $lt_compile\"" >&5)
26462 + (eval "$lt_compile" 2>conftest.err)
26464 + cat conftest.err >&5
26465 + echo "$as_me:15921: \$? = $ac_status" >&5
26466 + if (exit $ac_status) && test -s "$ac_outfile"; then
26467 + # The compiler can only warn and ignore the option if not recognized
26468 + # So say no if there are warnings other than the usual output.
26469 + $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
26470 + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
26471 + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
26472 + lt_prog_compiler_pic_works_GCJ=yes
26478 +echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
26479 +echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
26481 +if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
26482 + case $lt_prog_compiler_pic_GCJ in
26484 + *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
26487 + lt_prog_compiler_pic_GCJ=
26488 + lt_prog_compiler_can_build_shared_GCJ=no
26493 + # For platforms which do not support PIC, -DPIC is meaningless:
26495 + lt_prog_compiler_pic_GCJ=
26498 + lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
26503 +# Check to make sure the static flag actually works.
26505 +wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
26506 +echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
26507 +echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
26508 +if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
26509 + echo $ECHO_N "(cached) $ECHO_C" >&6
26511 + lt_prog_compiler_static_works_GCJ=no
26512 + save_LDFLAGS="$LDFLAGS"
26513 + LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
26514 + printf "$lt_simple_link_test_code" > conftest.$ac_ext
26515 + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
26516 + # The linker can only warn and ignore the option if not recognized
26517 + # So say no if there are warnings
26518 + if test -s conftest.err; then
26519 + # Append any errors to the config.log.
26520 + cat conftest.err 1>&5
26521 + $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
26522 + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
26523 + if diff conftest.exp conftest.er2 >/dev/null; then
26524 + lt_prog_compiler_static_works_GCJ=yes
26527 + lt_prog_compiler_static_works_GCJ=yes
26531 + LDFLAGS="$save_LDFLAGS"
26534 +echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
26535 +echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
26537 +if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
26540 + lt_prog_compiler_static_GCJ=
26544 +echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
26545 +echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
26546 +if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
26547 + echo $ECHO_N "(cached) $ECHO_C" >&6
26549 + lt_cv_prog_compiler_c_o_GCJ=no
26550 + $rm -r conftest 2>/dev/null
26554 + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
26556 + lt_compiler_flag="-o out/conftest2.$ac_objext"
26557 + # Insert the option either (1) after the last *FLAGS variable, or
26558 + # (2) before a word containing "conftest.", or (3) at the end.
26559 + # Note that $ac_compile itself does not contain backslashes and begins
26560 + # with a dollar sign (not a hyphen), so the echo should work correctly.
26561 + lt_compile=`echo "$ac_compile" | $SED \
26562 + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
26563 + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
26564 + -e 's:$: $lt_compiler_flag:'`
26565 + (eval echo "\"\$as_me:16021: $lt_compile\"" >&5)
26566 + (eval "$lt_compile" 2>out/conftest.err)
26568 + cat out/conftest.err >&5
26569 + echo "$as_me:16025: \$? = $ac_status" >&5
26570 + if (exit $ac_status) && test -s out/conftest2.$ac_objext
26572 + # The compiler can only warn and ignore the option if not recognized
26573 + # So say no if there are warnings
26574 + $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
26575 + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
26576 + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
26577 + lt_cv_prog_compiler_c_o_GCJ=yes
26582 + # SGI C++ compiler will create directory out/ii_files/ for
26583 + # template instantiation
26584 + test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
26585 + $rm out/* && rmdir out
26591 +echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
26592 +echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
26595 +hard_links="nottested"
26596 +if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
26597 + # do not overwrite the value of need_locks provided by the user
26598 + echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
26599 +echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
26602 + ln conftest.a conftest.b 2>/dev/null && hard_links=no
26604 + ln conftest.a conftest.b 2>&5 || hard_links=no
26605 + ln conftest.a conftest.b 2>/dev/null && hard_links=no
26606 + echo "$as_me:$LINENO: result: $hard_links" >&5
26607 +echo "${ECHO_T}$hard_links" >&6
26608 + if test "$hard_links" = no; then
26609 + { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
26610 +echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
26617 +echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
26618 +echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
26621 + allow_undefined_flag_GCJ=
26622 + enable_shared_with_static_runtimes_GCJ=no
26623 + archive_cmds_GCJ=
26624 + archive_expsym_cmds_GCJ=
26625 + old_archive_From_new_cmds_GCJ=
26626 + old_archive_from_expsyms_cmds_GCJ=
26627 + export_dynamic_flag_spec_GCJ=
26628 + whole_archive_flag_spec_GCJ=
26629 + thread_safe_flag_spec_GCJ=
26630 + hardcode_libdir_flag_spec_GCJ=
26631 + hardcode_libdir_flag_spec_ld_GCJ=
26632 + hardcode_libdir_separator_GCJ=
26633 + hardcode_direct_GCJ=no
26634 + hardcode_minus_L_GCJ=no
26635 + hardcode_shlibpath_var_GCJ=unsupported
26636 + link_all_deplibs_GCJ=unknown
26637 + hardcode_automatic_GCJ=no
26639 + module_expsym_cmds_GCJ=
26640 + always_export_symbols_GCJ=no
26641 + export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
26642 + # include_expsyms should be a list of space-separated symbols to be *always*
26643 + # included in the symbol list
26644 + include_expsyms_GCJ=
26645 + # exclude_expsyms can be an extended regexp of symbols to exclude
26646 + # it will be wrapped by ` (' and `)$', so one must not match beginning or
26647 + # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
26648 + # as well as any symbol that contains `d'.
26649 + exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
26650 + # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
26651 + # platforms (ab)use it in PIC code, but their linkers get confused if
26652 + # the symbol is explicitly referenced. Since portable code cannot
26653 + # rely on this symbol name, it's probably fine to never include it in
26654 + # preloaded symbol tables.
26655 + extract_expsyms_cmds=
26656 + # Just being paranoid about ensuring that cc_basename is set.
26657 + for cc_temp in $compiler""; do
26659 + compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26660 + distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26665 +cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26668 + cygwin* | mingw* | pw32*)
26669 + # FIXME: the MSVC++ port hasn't been tested in a loooong time
26670 + # When not using gcc, we currently assume that we are using
26671 + # Microsoft Visual C++.
26672 + if test "$GCC" != yes; then
26677 + # we just hope/assume this is gcc and not c89 (= MSVC++)
26685 + ld_shlibs_GCJ=yes
26686 + if test "$with_gnu_ld" = yes; then
26687 + # If archive_cmds runs LD, not CC, wlarc should be empty
26690 + # Set some defaults for GNU ld with shared library support. These
26691 + # are reset later if shared libraries are not supported. Putting them
26692 + # here allows them to be overridden if necessary.
26693 + runpath_var=LD_RUN_PATH
26694 + hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
26695 + export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
26696 + # ancient GNU ld didn't support --whole-archive et. al.
26697 + if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
26698 + whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
26700 + whole_archive_flag_spec_GCJ=
26702 + supports_anon_versioning=no
26703 + case `$LD -v 2>/dev/null` in
26704 + *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
26705 + *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
26706 + *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
26707 + *\ 2.11.*) ;; # other 2.11 versions
26708 + *) supports_anon_versioning=yes ;;
26711 + # See if GNU ld supports shared libraries.
26713 + aix3* | aix4* | aix5*)
26714 + # On AIX/PPC, the GNU linker is very broken
26715 + if test "$host_cpu" != ia64; then
26719 +*** Warning: the GNU linker, at least up to release 2.9.1, is reported
26720 +*** to be unable to reliably create shared libraries on AIX.
26721 +*** Therefore, libtool is disabling shared libraries support. If you
26722 +*** really care for shared libraries, you may want to modify your PATH
26723 +*** so that a non-GNU linker is found, and then restart.
26730 + archive_cmds_GCJ='$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)'
26731 + hardcode_libdir_flag_spec_GCJ='-L$libdir'
26732 + hardcode_minus_L_GCJ=yes
26734 + # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
26735 + # that the semantics of dynamic libraries on AmigaOS, at least up
26736 + # to version 4, is to share data among multiple programs linked
26737 + # with the same dynamic library. Since this doesn't match the
26738 + # behavior of shared libraries on other platforms, we can't use
26744 + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
26745 + allow_undefined_flag_GCJ=unsupported
26746 + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
26747 + # support --undefined. This deserves some investigation. FIXME
26748 + archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
26754 + cygwin* | mingw* | pw32*)
26755 + # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
26756 + # as there is no search path for DLLs.
26757 + hardcode_libdir_flag_spec_GCJ='-L$libdir'
26758 + allow_undefined_flag_GCJ=unsupported
26759 + always_export_symbols_GCJ=no
26760 + enable_shared_with_static_runtimes_GCJ=yes
26761 + export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
26763 + if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
26764 + archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
26765 + # If the export-symbols file already is a .def file (1st line
26766 + # is EXPORTS), use it as is; otherwise, prepend...
26767 + archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
26768 + cp $export_symbols $output_objdir/$soname.def;
26770 + echo EXPORTS > $output_objdir/$soname.def;
26771 + cat $export_symbols >> $output_objdir/$soname.def;
26773 + $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
26780 + hardcode_direct_GCJ=no
26781 + hardcode_shlibpath_var_GCJ=no
26782 + hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
26783 + export_dynamic_flag_spec_GCJ='${wl}-E'
26784 + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
26785 + # Instead, shared libraries are loaded at an image base (0x10000000 by
26786 + # default) and relocated if they conflict, which is a slow very memory
26787 + # consuming and fragmenting process. To avoid this, we pick a random,
26788 + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
26789 + # time. Moving up from 0x10000000 also allows more sbrk(2) space.
26790 + archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
26791 + archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
26795 + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
26797 + case $cc_basename,$host_cpu in
26798 + pgcc*) # Portland Group C compiler
26799 + whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
26800 + tmp_addflag=' $pic_flag'
26802 + pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
26803 + whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
26804 + tmp_addflag=' $pic_flag -Mnomain' ;;
26805 + ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
26806 + tmp_addflag=' -i_dynamic' ;;
26807 + efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
26808 + tmp_addflag=' -i_dynamic -nofor_main' ;;
26809 + ifc* | ifort*) # Intel Fortran compiler
26810 + tmp_addflag=' -nofor_main' ;;
26812 + archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
26814 + if test $supports_anon_versioning = yes; then
26815 + archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
26816 + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
26817 + $echo "local: *; };" >> $output_objdir/$libname.ver~
26818 + $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
26826 + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
26827 + archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
26830 + archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
26831 + archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
26836 + if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
26840 +*** Warning: The releases 2.8.* of the GNU linker cannot reliably
26841 +*** create shared libraries on Solaris systems. Therefore, libtool
26842 +*** is disabling shared libraries support. We urge you to upgrade GNU
26843 +*** binutils to release 2.9.1 or newer. Another option is to modify
26844 +*** your PATH or compiler configuration so that the native linker is
26845 +*** used, and then restart.
26848 + elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
26849 + archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
26850 + archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
26856 + sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
26857 + case `$LD -v 2>&1` in
26858 + *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
26860 + cat <<_LT_EOF 1>&2
26862 +*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
26863 +*** reliably create shared libraries on SCO systems. Therefore, libtool
26864 +*** is disabling shared libraries support. We urge you to upgrade GNU
26865 +*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
26866 +*** your PATH or compiler configuration so that the native linker is
26867 +*** used, and then restart.
26872 + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
26873 + hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
26874 + archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
26875 + archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
26884 + archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
26886 + hardcode_direct_GCJ=yes
26887 + hardcode_shlibpath_var_GCJ=no
26891 + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
26892 + archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
26893 + archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
26900 + if test "$ld_shlibs_GCJ" = no; then
26902 + hardcode_libdir_flag_spec_GCJ=
26903 + export_dynamic_flag_spec_GCJ=
26904 + whole_archive_flag_spec_GCJ=
26907 + # PORTME fill in a description of your system's linker (not GNU ld)
26910 + allow_undefined_flag_GCJ=unsupported
26911 + always_export_symbols_GCJ=yes
26912 + archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
26913 + # Note: this linker hardcodes the directories in LIBPATH if there
26914 + # are no directories specified by -L.
26915 + hardcode_minus_L_GCJ=yes
26916 + if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
26917 + # Neither direct hardcoding nor static linking is supported with a
26918 + # broken collect2.
26919 + hardcode_direct_GCJ=unsupported
26924 + if test "$host_cpu" = ia64; then
26925 + # On IA64, the linker does run time linking by default, so we don't
26926 + # have to do anything special.
26927 + aix_use_runtimelinking=no
26928 + exp_sym_flag='-Bexport'
26931 + # If we're using GNU nm, then we don't want the "-C" option.
26932 + # -C means demangle to AIX nm, but means don't demangle with GNU nm
26933 + if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
26934 + export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
26936 + export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
26938 + aix_use_runtimelinking=no
26940 + # Test if we are trying to use run time linking or normal
26941 + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
26942 + # need to do runtime linking.
26943 + case $host_os in aix4.[23]|aix4.[23].*|aix5*)
26944 + for ld_flag in $LDFLAGS; do
26945 + if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
26946 + aix_use_runtimelinking=yes
26953 + exp_sym_flag='-bexport'
26954 + no_entry_flag='-bnoentry'
26957 + # When large executables or shared objects are built, AIX ld can
26958 + # have problems creating the table of contents. If linking a library
26959 + # or program results in "error TOC overflow" add -mminimal-toc to
26960 + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
26961 + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
26963 + archive_cmds_GCJ=''
26964 + hardcode_direct_GCJ=yes
26965 + hardcode_libdir_separator_GCJ=':'
26966 + link_all_deplibs_GCJ=yes
26968 + if test "$GCC" = yes; then
26969 + case $host_os in aix4.[012]|aix4.[012].*)
26970 + # We only want to do this on AIX 4.2 and lower, the check
26971 + # below for broken collect2 doesn't work under 4.3+
26972 + collect2name=`${CC} -print-prog-name=collect2`
26973 + if test -f "$collect2name" && \
26974 + strings "$collect2name" | grep resolve_lib_name >/dev/null
26976 + # We have reworked collect2
26977 + hardcode_direct_GCJ=yes
26979 + # We have old collect2
26980 + hardcode_direct_GCJ=unsupported
26981 + # It fails to find uninstalled libraries when the uninstalled
26982 + # path is not listed in the libpath. Setting hardcode_minus_L
26983 + # to unsupported forces relinking
26984 + hardcode_minus_L_GCJ=yes
26985 + hardcode_libdir_flag_spec_GCJ='-L$libdir'
26986 + hardcode_libdir_separator_GCJ=
26990 + shared_flag='-shared'
26991 + if test "$aix_use_runtimelinking" = yes; then
26992 + shared_flag="$shared_flag "'${wl}-G'
26996 + if test "$host_cpu" = ia64; then
26997 + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
26998 + # chokes on -Wl,-G. The following line is correct:
27001 + if test "$aix_use_runtimelinking" = yes; then
27002 + shared_flag='${wl}-G'
27004 + shared_flag='${wl}-bM:SRE'
27009 + # It seems that -bexpall does not export symbols beginning with
27010 + # underscore (_), so it is better to generate a list of symbols to export.
27011 + always_export_symbols_GCJ=yes
27012 + if test "$aix_use_runtimelinking" = yes; then
27013 + # Warning - without using the other runtime loading flags (-brtl),
27014 + # -berok will link without error, but may produce a broken library.
27015 + allow_undefined_flag_GCJ='-berok'
27016 + # Determine the default libpath from the value encoded in an empty executable.
27017 + cat >conftest.$ac_ext <<_ACEOF
27020 +cat confdefs.h >>conftest.$ac_ext
27021 +cat >>conftest.$ac_ext <<_ACEOF
27022 +/* end confdefs.h. */
27032 +rm -f conftest.$ac_objext conftest$ac_exeext
27033 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27034 + (eval $ac_link) 2>conftest.er1
27036 + grep -v '^ *+' conftest.er1 >conftest.err
27037 + rm -f conftest.er1
27038 + cat conftest.err >&5
27039 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
27040 + (exit $ac_status); } &&
27041 + { ac_try='test -z "$ac_c_werror_flag"
27042 + || test ! -s conftest.err'
27043 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27044 + (eval $ac_try) 2>&5
27046 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
27047 + (exit $ac_status); }; } &&
27048 + { ac_try='test -s conftest$ac_exeext'
27049 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27050 + (eval $ac_try) 2>&5
27052 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
27053 + (exit $ac_status); }; }; then
27055 +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
27057 +# Check for a 64-bit object if we didn't find anything.
27058 +if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
27061 + echo "$as_me: failed program was:" >&5
27062 +sed 's/^/| /' conftest.$ac_ext >&5
27065 +rm -f conftest.err conftest.$ac_objext \
27066 + conftest$ac_exeext conftest.$ac_ext
27067 +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
27069 + hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
27070 + archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
27072 + if test "$host_cpu" = ia64; then
27073 + hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
27074 + allow_undefined_flag_GCJ="-z nodefs"
27075 + archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
27077 + # Determine the default libpath from the value encoded in an empty executable.
27078 + cat >conftest.$ac_ext <<_ACEOF
27081 +cat confdefs.h >>conftest.$ac_ext
27082 +cat >>conftest.$ac_ext <<_ACEOF
27083 +/* end confdefs.h. */
27093 +rm -f conftest.$ac_objext conftest$ac_exeext
27094 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27095 + (eval $ac_link) 2>conftest.er1
27097 + grep -v '^ *+' conftest.er1 >conftest.err
27098 + rm -f conftest.er1
27099 + cat conftest.err >&5
27100 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
27101 + (exit $ac_status); } &&
27102 + { ac_try='test -z "$ac_c_werror_flag"
27103 + || test ! -s conftest.err'
27104 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27105 + (eval $ac_try) 2>&5
27107 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
27108 + (exit $ac_status); }; } &&
27109 + { ac_try='test -s conftest$ac_exeext'
27110 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27111 + (eval $ac_try) 2>&5
27113 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
27114 + (exit $ac_status); }; }; then
27116 +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
27118 +# Check for a 64-bit object if we didn't find anything.
27119 +if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
27122 + echo "$as_me: failed program was:" >&5
27123 +sed 's/^/| /' conftest.$ac_ext >&5
27126 +rm -f conftest.err conftest.$ac_objext \
27127 + conftest$ac_exeext conftest.$ac_ext
27128 +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
27130 + hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
27131 + # Warning - without using the other run time loading flags,
27132 + # -berok will link without error, but may produce a broken library.
27133 + no_undefined_flag_GCJ=' ${wl}-bernotok'
27134 + allow_undefined_flag_GCJ=' ${wl}-berok'
27135 + # Exported symbols can be pulled into shared objects from archives
27136 + whole_archive_flag_spec_GCJ='$convenience'
27137 + archive_cmds_need_lc_GCJ=yes
27138 + # This is similar to how AIX traditionally builds its shared libraries.
27139 + archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
27145 + archive_cmds_GCJ='$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)'
27146 + hardcode_libdir_flag_spec_GCJ='-L$libdir'
27147 + hardcode_minus_L_GCJ=yes
27148 + # see comment about different semantics on the GNU ld section
27153 + export_dynamic_flag_spec_GCJ=-rdynamic
27156 + cygwin* | mingw* | pw32*)
27157 + # When not using gcc, we currently assume that we are using
27158 + # Microsoft Visual C++.
27159 + # hardcode_libdir_flag_spec is actually meaningless, as there is
27160 + # no search path for DLLs.
27161 + hardcode_libdir_flag_spec_GCJ=' '
27162 + allow_undefined_flag_GCJ=unsupported
27163 + # Tell ltmain to make .lib files, not .a files.
27165 + # Tell ltmain to make .dll files, not .so files.
27166 + shrext_cmds=".dll"
27167 + # FIXME: Setting linknames here is a bad hack.
27168 + archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
27169 + # The linker will automatically build a .lib file if we build a DLL.
27170 + old_archive_From_new_cmds_GCJ='true'
27171 + # FIXME: Should let the user specify the lib program.
27172 + old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
27173 + fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
27174 + enable_shared_with_static_runtimes_GCJ=yes
27177 + darwin* | rhapsody*)
27179 + rhapsody* | darwin1.[012])
27180 + allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
27182 + *) # Darwin 1.3 on
27183 + if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
27184 + allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
27186 + case ${MACOSX_DEPLOYMENT_TARGET} in
27188 + allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
27191 + allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
27197 + archive_cmds_need_lc_GCJ=no
27198 + hardcode_direct_GCJ=no
27199 + hardcode_automatic_GCJ=yes
27200 + hardcode_shlibpath_var_GCJ=unsupported
27201 + whole_archive_flag_spec_GCJ=''
27202 + link_all_deplibs_GCJ=yes
27203 + if test "$GCC" = yes ; then
27204 + output_verbose_link_cmd='echo'
27205 + archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
27206 + module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
27207 + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
27208 + archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
27209 + module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
27211 + case $cc_basename in
27213 + output_verbose_link_cmd='echo'
27214 + archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
27215 + module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
27216 + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
27217 + archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
27218 + module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
27228 + archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
27229 + hardcode_libdir_flag_spec_GCJ='-L$libdir'
27230 + hardcode_shlibpath_var_GCJ=no
27237 + # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
27238 + # support. Future versions do this automatically, but an explicit c++rt0.o
27239 + # does not break anything, and helps significantly (at the cost of a little
27242 + archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
27243 + hardcode_libdir_flag_spec_GCJ='-R$libdir'
27244 + hardcode_direct_GCJ=yes
27245 + hardcode_shlibpath_var_GCJ=no
27248 + # Unfortunately, older versions of FreeBSD 2 do not have this feature.
27250 + archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
27251 + hardcode_direct_GCJ=yes
27252 + hardcode_minus_L_GCJ=yes
27253 + hardcode_shlibpath_var_GCJ=no
27256 + # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
27257 + freebsd* | kfreebsd*-gnu | dragonfly*)
27258 + archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
27259 + hardcode_libdir_flag_spec_GCJ='-R$libdir'
27260 + hardcode_direct_GCJ=yes
27261 + hardcode_shlibpath_var_GCJ=no
27265 + if test "$GCC" = yes; then
27266 + archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
27268 + archive_cmds_GCJ='$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'
27270 + hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
27271 + hardcode_libdir_separator_GCJ=:
27272 + hardcode_direct_GCJ=yes
27274 + # hardcode_minus_L: Not really in the search PATH,
27275 + # but as the default location of the library.
27276 + hardcode_minus_L_GCJ=yes
27277 + export_dynamic_flag_spec_GCJ='${wl}-E'
27281 + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
27282 + archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
27284 + archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
27286 + if test "$with_gnu_ld" = no; then
27287 + hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
27288 + hardcode_libdir_separator_GCJ=:
27290 + hardcode_direct_GCJ=yes
27291 + export_dynamic_flag_spec_GCJ='${wl}-E'
27293 + # hardcode_minus_L: Not really in the search PATH,
27294 + # but as the default location of the library.
27295 + hardcode_minus_L_GCJ=yes
27300 + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
27301 + case $host_cpu in
27303 + archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
27306 + archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
27309 + archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
27313 + case $host_cpu in
27315 + archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
27318 + archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
27321 + archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
27325 + if test "$with_gnu_ld" = no; then
27326 + hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
27327 + hardcode_libdir_separator_GCJ=:
27329 + case $host_cpu in
27331 + hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
27332 + hardcode_direct_GCJ=no
27333 + hardcode_shlibpath_var_GCJ=no
27336 + hardcode_direct_GCJ=yes
27337 + export_dynamic_flag_spec_GCJ='${wl}-E'
27339 + # hardcode_minus_L: Not really in the search PATH,
27340 + # but as the default location of the library.
27341 + hardcode_minus_L_GCJ=yes
27347 + irix5* | irix6* | nonstopux*)
27348 + if test "$GCC" = yes; then
27349 + archive_cmds_GCJ='$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'
27351 + archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
27352 + hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
27354 + hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
27355 + hardcode_libdir_separator_GCJ=:
27356 + link_all_deplibs_GCJ=yes
27360 + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
27361 + archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
27363 + archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
27365 + hardcode_libdir_flag_spec_GCJ='-R$libdir'
27366 + hardcode_direct_GCJ=yes
27367 + hardcode_shlibpath_var_GCJ=no
27371 + archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
27372 + hardcode_direct_GCJ=yes
27373 + hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
27374 + hardcode_libdir_separator_GCJ=:
27375 + hardcode_shlibpath_var_GCJ=no
27379 + hardcode_direct_GCJ=yes
27380 + hardcode_shlibpath_var_GCJ=no
27381 + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
27382 + archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
27383 + archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
27384 + hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
27385 + export_dynamic_flag_spec_GCJ='${wl}-E'
27388 + openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
27389 + archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
27390 + hardcode_libdir_flag_spec_GCJ='-R$libdir'
27393 + archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
27394 + hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
27401 + hardcode_libdir_flag_spec_GCJ='-L$libdir'
27402 + hardcode_minus_L_GCJ=yes
27403 + allow_undefined_flag_GCJ=unsupported
27404 + archive_cmds_GCJ='$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'
27405 + old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
27409 + if test "$GCC" = yes; then
27410 + allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
27411 + archive_cmds_GCJ='$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'
27413 + allow_undefined_flag_GCJ=' -expect_unresolved \*'
27414 + archive_cmds_GCJ='$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'
27416 + hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
27417 + hardcode_libdir_separator_GCJ=:
27420 + osf4* | osf5*) # as osf3* with the addition of -msym flag
27421 + if test "$GCC" = yes; then
27422 + allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
27423 + archive_cmds_GCJ='$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'
27424 + hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
27426 + allow_undefined_flag_GCJ=' -expect_unresolved \*'
27427 + archive_cmds_GCJ='$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'
27428 + archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
27429 + $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
27431 + # Both c and cxx compiler support -rpath directly
27432 + hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
27434 + hardcode_libdir_separator_GCJ=:
27438 + no_undefined_flag_GCJ=' -z text'
27439 + if test "$GCC" = yes; then
27441 + archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
27442 + archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
27443 + $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
27446 + archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
27447 + archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
27448 + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
27450 + hardcode_libdir_flag_spec_GCJ='-R$libdir'
27451 + hardcode_shlibpath_var_GCJ=no
27453 + solaris2.[0-5] | solaris2.[0-5].*) ;;
27455 + # The compiler driver will combine linker options so we
27456 + # cannot just pass the convience library names through
27457 + # without $wl, iff we do not link with $LD.
27458 + # Luckily, gcc supports the same syntax we need for Sun Studio.
27459 + # Supported since Solaris 2.6 (maybe 2.5.1?)
27462 + whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
27464 + whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
27467 + link_all_deplibs_GCJ=yes
27471 + if test "x$host_vendor" = xsequent; then
27472 + # Use $CC to link under sequent, because it throws in some extra .o
27473 + # files that make .init and .fini sections work.
27474 + archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
27476 + archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
27478 + hardcode_libdir_flag_spec_GCJ='-L$libdir'
27479 + hardcode_direct_GCJ=yes
27480 + hardcode_minus_L_GCJ=yes
27481 + hardcode_shlibpath_var_GCJ=no
27485 + case $host_vendor in
27487 + archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
27488 + hardcode_direct_GCJ=yes # is this really true???
27491 + ## LD is ld it makes a PLAMLIB
27492 + ## CC just makes a GrossModule.
27493 + archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
27494 + reload_cmds_GCJ='$CC -r -o $output$reload_objs'
27495 + hardcode_direct_GCJ=no
27498 + archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
27499 + hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
27502 + runpath_var='LD_RUN_PATH'
27503 + hardcode_shlibpath_var_GCJ=no
27507 + archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
27508 + hardcode_shlibpath_var_GCJ=no
27509 + export_dynamic_flag_spec_GCJ='-Bexport'
27513 + if test -d /usr/nec; then
27514 + archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
27515 + hardcode_shlibpath_var_GCJ=no
27516 + runpath_var=LD_RUN_PATH
27517 + hardcode_runpath_var=yes
27518 + ld_shlibs_GCJ=yes
27522 + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
27523 + no_undefined_flag_GCJ='${wl}-z,text'
27524 + archive_cmds_need_lc_GCJ=no
27525 + hardcode_shlibpath_var_GCJ=no
27526 + runpath_var='LD_RUN_PATH'
27528 + if test "$GCC" = yes; then
27529 + archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
27530 + archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
27532 + archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
27533 + archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
27537 + sysv5* | sco3.2v5* | sco5v6*)
27538 + # Note: We can NOT use -z defs as we might desire, because we do not
27539 + # link with -lc, and that would cause any symbols used from libc to
27540 + # always be unresolved, which means just about no library would
27541 + # ever link correctly. If we're not using GNU ld we use -z text
27542 + # though, which does catch some bad symbols but isn't as heavy-handed
27544 + no_undefined_flag_GCJ='${wl}-z,text'
27545 + allow_undefined_flag_GCJ='${wl}-z,nodefs'
27546 + archive_cmds_need_lc_GCJ=no
27547 + hardcode_shlibpath_var_GCJ=no
27548 + hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
27549 + hardcode_libdir_separator_GCJ=':'
27550 + link_all_deplibs_GCJ=yes
27551 + export_dynamic_flag_spec_GCJ='${wl}-Bexport'
27552 + runpath_var='LD_RUN_PATH'
27554 + if test "$GCC" = yes; then
27555 + archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
27556 + archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
27558 + archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
27559 + archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
27564 + archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
27565 + hardcode_libdir_flag_spec_GCJ='-L$libdir'
27566 + hardcode_shlibpath_var_GCJ=no
27575 +echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
27576 +echo "${ECHO_T}$ld_shlibs_GCJ" >&6
27577 +test "$ld_shlibs_GCJ" = no && can_build_shared=no
27580 +# Do we need to explicitly link libc?
27582 +case "x$archive_cmds_need_lc_GCJ" in
27584 + # Assume -lc should be added
27585 + archive_cmds_need_lc_GCJ=yes
27587 + if test "$enable_shared" = yes && test "$GCC" = yes; then
27588 + case $archive_cmds_GCJ in
27590 + # FIXME: we may have to deal with multi-command sequences.
27593 + # Test whether the compiler implicitly links with -lc since on some
27594 + # systems, -lgcc has to come before -lc. If gcc already passes -lc
27595 + # to ld, don't add -lc before -lgcc.
27596 + echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
27597 +echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
27599 + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
27601 + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27602 + (eval $ac_compile) 2>&5
27604 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
27605 + (exit $ac_status); } 2>conftest.err; then
27608 + libobjs=conftest.$ac_objext
27610 + wl=$lt_prog_compiler_wl_GCJ
27611 + pic_flag=$lt_prog_compiler_pic_GCJ
27612 + compiler_flags=-v
27617 + lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
27618 + allow_undefined_flag_GCJ=
27619 + if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
27620 + (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
27622 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
27623 + (exit $ac_status); }
27625 + archive_cmds_need_lc_GCJ=no
27627 + archive_cmds_need_lc_GCJ=yes
27629 + allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
27631 + cat conftest.err 1>&5
27634 + echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
27635 +echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
27642 +echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
27643 +echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
27644 +library_names_spec=
27645 +libname_spec='lib$name'
27649 +postuninstall_cmds=
27653 +shlibpath_overrides_runpath=unknown
27655 +dynamic_linker="$host_os ld.so"
27656 +sys_lib_dlsearch_path_spec="/lib /usr/lib"
27657 +if test "$GCC" = yes; then
27658 + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
27659 + if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
27660 + # if the path contains ";" then we assume it to be the separator
27661 + # otherwise default to the standard path separator (i.e. ":") - it is
27662 + # assumed that no part of a normal pathname contains ";" but that should
27663 + # okay in the real world where ";" in dirpaths is itself problematic.
27664 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
27666 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
27669 + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
27671 +need_lib_prefix=unknown
27672 +hardcode_into_libs=no
27674 +# when you set need_version to no, make sure it does not cause -set_version
27675 +# flags to be left without arguments
27676 +need_version=unknown
27680 + version_type=linux
27681 + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
27682 + shlibpath_var=LIBPATH
27684 + # AIX 3 has no versioning support, so we append a major version to the name.
27685 + soname_spec='${libname}${release}${shared_ext}$major'
27689 + version_type=linux
27690 + need_lib_prefix=no
27692 + hardcode_into_libs=yes
27693 + if test "$host_cpu" = ia64; then
27694 + # AIX 5 supports IA64
27695 + library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
27696 + shlibpath_var=LD_LIBRARY_PATH
27698 + # With GCC up to 2.95.x, collect2 would create an import file
27699 + # for dependence libraries. The import file would start with
27700 + # the line `#! .'. This would cause the generated library to
27701 + # depend on `.', always an invalid library. This was fixed in
27702 + # development snapshots of GCC prior to 3.0.
27704 + aix4 | aix4.[01] | aix4.[01].*)
27705 + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
27707 + echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
27710 + can_build_shared=no
27714 + # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
27715 + # soname into executable. Probably we can add versioning support to
27716 + # collect2, so additional links can be useful in future.
27717 + if test "$aix_use_runtimelinking" = yes; then
27718 + # If using run time linking (on AIX 4.2 or later) use lib<name>.so
27719 + # instead of lib<name>.a to let people know that these are not
27720 + # typical AIX shared libraries.
27721 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
27723 + # We preserve .a as extension for shared libraries through AIX4.2
27724 + # and later when we are not doing run time linking.
27725 + library_names_spec='${libname}${release}.a $libname.a'
27726 + soname_spec='${libname}${release}${shared_ext}$major'
27728 + shlibpath_var=LIBPATH
27733 + library_names_spec='$libname.ixlibrary $libname.a'
27734 + # Create ${libname}_ixlibrary.a entries in /sys/libs.
27735 + finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
27739 + library_names_spec='${libname}${shared_ext}'
27740 + dynamic_linker="$host_os ld.so"
27741 + shlibpath_var=LIBRARY_PATH
27745 + version_type=linux
27747 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
27748 + soname_spec='${libname}${release}${shared_ext}$major'
27749 + finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
27750 + shlibpath_var=LD_LIBRARY_PATH
27751 + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
27752 + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
27753 + # the default ld.so.conf also contains /usr/contrib/lib and
27754 + # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
27755 + # libtool to hard-code these into programs
27758 +cygwin* | mingw* | pw32*)
27759 + version_type=windows
27760 + shrext_cmds=".dll"
27762 + need_lib_prefix=no
27764 + case $GCC,$host_os in
27765 + yes,cygwin* | yes,mingw* | yes,pw32*)
27766 + library_names_spec='$libname.dll.a'
27767 + # DLL is installed to $(libdir)/../bin by postinstall_cmds
27768 + postinstall_cmds='base_file=`basename \${file}`~
27769 + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
27770 + dldir=$destdir/`dirname \$dlpath`~
27771 + test -d \$dldir || mkdir -p \$dldir~
27772 + $install_prog $dir/$dlname \$dldir/$dlname~
27773 + chmod a+x \$dldir/$dlname'
27774 + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
27775 + dlpath=$dir/\$dldll~
27777 + shlibpath_overrides_runpath=yes
27781 + # Cygwin DLLs use 'cyg' prefix rather than 'lib'
27782 + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
27783 + sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
27786 + # MinGW DLLs use traditional 'lib' prefix
27787 + soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
27788 + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
27789 + if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
27790 + # It is most probably a Windows format PATH printed by
27791 + # mingw gcc, but we are running on Cygwin. Gcc prints its search
27792 + # path with ; separators, and with drive letters. We can handle the
27793 + # drive letters (cygwin fileutils understands them), so leave them,
27794 + # especially as we might pass files found there to a mingw objdump,
27795 + # which wouldn't understand a cygwinified path. Ahh.
27796 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
27798 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
27802 + # pw32 DLLs use 'pw' prefix rather than 'lib'
27803 + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
27809 + if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
27810 + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
27811 + supports_anon_versioning=no
27812 + case `$LD -v 2>/dev/null` in
27813 + *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
27814 + *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
27815 + *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
27816 + *\ 2.11.*) ;; # other 2.11 versions
27817 + *) supports_anon_versioning=yes ;;
27819 + if test $supports_anon_versioning = yes; then
27820 + archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
27821 +cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
27822 +$echo "local: *; };" >> $output_objdir/$libname.ver~
27823 + $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
27825 + $archive_expsym_cmds="$archive_cmds"
27833 + library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
27836 + dynamic_linker='Win32 ld.exe'
27837 + # FIXME: first we should search . and the directory the executable is in
27838 + shlibpath_var=PATH
27841 +darwin* | rhapsody*)
27842 + dynamic_linker="$host_os dyld"
27843 + version_type=darwin
27844 + need_lib_prefix=no
27846 + library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
27847 + soname_spec='${libname}${release}${major}$shared_ext'
27848 + shlibpath_overrides_runpath=yes
27849 + shlibpath_var=DYLD_LIBRARY_PATH
27850 + shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
27851 + # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
27852 + if test "$GCC" = yes; then
27853 + sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
27855 + sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
27857 + sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
27861 + version_type=linux
27862 + need_lib_prefix=no
27864 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
27865 + soname_spec='${libname}${release}${shared_ext}$major'
27866 + shlibpath_var=LD_LIBRARY_PATH
27870 + dynamic_linker=no
27874 + version_type=linux
27875 + need_lib_prefix=no
27877 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
27878 + soname_spec='${libname}${release}${shared_ext}$major'
27879 + shlibpath_var=LD_LIBRARY_PATH
27880 + shlibpath_overrides_runpath=no
27881 + hardcode_into_libs=yes
27882 + dynamic_linker='GNU ld.so'
27885 +freebsd* | dragonfly*)
27886 + # DragonFly does not have aout. When/if they implement a new
27887 + # versioning mechanism, adjust this.
27888 + if test -x /usr/bin/objformat; then
27889 + objformat=`/usr/bin/objformat`
27892 + freebsd[123]*) objformat=aout ;;
27893 + *) objformat=elf ;;
27896 + # Handle Gentoo/FreeBSD as it was Linux
27897 + case $host_vendor in
27899 + version_type=linux ;;
27901 + version_type=freebsd-$objformat ;;
27904 + case $version_type in
27906 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
27908 + need_lib_prefix=no
27911 + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
27915 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
27916 + soname_spec='${libname}${release}${shared_ext}$major'
27917 + need_lib_prefix=no
27921 + shlibpath_var=LD_LIBRARY_PATH
27924 + shlibpath_overrides_runpath=yes
27926 + freebsd3.[01]* | freebsdelf3.[01]*)
27927 + shlibpath_overrides_runpath=yes
27928 + hardcode_into_libs=yes
27930 + freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
27931 + freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
27932 + shlibpath_overrides_runpath=no
27933 + hardcode_into_libs=yes
27935 + freebsd*) # from 4.6 on
27936 + shlibpath_overrides_runpath=yes
27937 + hardcode_into_libs=yes
27943 + version_type=linux
27944 + need_lib_prefix=no
27946 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
27947 + soname_spec='${libname}${release}${shared_ext}$major'
27948 + shlibpath_var=LD_LIBRARY_PATH
27949 + hardcode_into_libs=yes
27952 +hpux9* | hpux10* | hpux11*)
27953 + # Give a soname corresponding to the major version so that dld.sl refuses to
27954 + # link against other versions.
27955 + version_type=sunos
27956 + need_lib_prefix=no
27958 + case $host_cpu in
27960 + shrext_cmds='.so'
27961 + hardcode_into_libs=yes
27962 + dynamic_linker="$host_os dld.so"
27963 + shlibpath_var=LD_LIBRARY_PATH
27964 + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
27965 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
27966 + soname_spec='${libname}${release}${shared_ext}$major'
27967 + if test "X$HPUX_IA64_MODE" = X32; then
27968 + sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
27970 + sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
27972 + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
27975 + shrext_cmds='.sl'
27976 + hardcode_into_libs=yes
27977 + dynamic_linker="$host_os dld.sl"
27978 + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
27979 + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
27980 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
27981 + soname_spec='${libname}${release}${shared_ext}$major'
27982 + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
27983 + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
27986 + shrext_cmds='.sl'
27987 + dynamic_linker="$host_os dld.sl"
27988 + shlibpath_var=SHLIB_PATH
27989 + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
27990 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
27991 + soname_spec='${libname}${release}${shared_ext}$major'
27994 + # HP-UX runs *really* slowly unless shared libraries are mode 555.
27995 + postinstall_cmds='chmod 555 $lib'
27999 + version_type=linux
28000 + need_lib_prefix=no
28002 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
28003 + soname_spec='${libname}${release}${shared_ext}$major'
28004 + dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
28005 + shlibpath_var=LD_LIBRARY_PATH
28006 + shlibpath_overrides_runpath=no
28007 + hardcode_into_libs=yes
28010 +irix5* | irix6* | nonstopux*)
28012 + nonstopux*) version_type=nonstopux ;;
28014 + if test "$lt_cv_prog_gnu_ld" = yes; then
28015 + version_type=linux
28017 + version_type=irix
28020 + need_lib_prefix=no
28022 + soname_spec='${libname}${release}${shared_ext}$major'
28023 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
28025 + irix5* | nonstopux*)
28026 + libsuff= shlibsuff=
28029 + case $LD in # libtool.m4 will add one of these switches to LD
28030 + *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
28031 + libsuff= shlibsuff= libmagic=32-bit;;
28032 + *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
28033 + libsuff=32 shlibsuff=N32 libmagic=N32;;
28034 + *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
28035 + libsuff=64 shlibsuff=64 libmagic=64-bit;;
28036 + *) libsuff= shlibsuff= libmagic=never-match;;
28040 + shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
28041 + shlibpath_overrides_runpath=no
28042 + sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
28043 + sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
28044 + hardcode_into_libs=yes
28047 +# No shared lib support for Linux oldld, aout, or coff.
28048 +linux*oldld* | linux*aout* | linux*coff*)
28049 + dynamic_linker=no
28052 +# This must be Linux ELF.
28054 + version_type=linux
28055 + need_lib_prefix=no
28057 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
28058 + soname_spec='${libname}${release}${shared_ext}$major'
28059 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
28060 + shlibpath_var=LD_LIBRARY_PATH
28061 + shlibpath_overrides_runpath=no
28062 + # This implies no fast_install, which is unacceptable.
28063 + # Some rework will be needed to allow for fast_install
28064 + # before this can be enabled.
28065 + hardcode_into_libs=yes
28067 + # Append ld.so.conf contents to the search path
28068 + if test -f /etc/ld.so.conf; then
28069 + lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
28070 + sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
28073 + # We used to test for /lib/ld.so.1 and disable shared libraries on
28074 + # powerpc, because MkLinux only supported shared libraries with the
28075 + # GNU dynamic linker. Since this was broken with cross compilers,
28076 + # most powerpc-linux boxes support dynamic linking these days and
28077 + # people can always --disable-shared, the test was removed, and we
28078 + # assume the GNU/Linux dynamic linker is in use.
28079 + dynamic_linker='GNU/Linux ld.so'
28083 + version_type=linux
28084 + need_lib_prefix=no
28086 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
28087 + soname_spec='${libname}${release}${shared_ext}$major'
28088 + shlibpath_var=LD_LIBRARY_PATH
28089 + shlibpath_overrides_runpath=no
28090 + hardcode_into_libs=yes
28091 + dynamic_linker='GNU ld.so'
28095 + version_type=sunos
28096 + need_lib_prefix=no
28098 + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
28099 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
28100 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
28101 + dynamic_linker='NetBSD (a.out) ld.so'
28103 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
28104 + soname_spec='${libname}${release}${shared_ext}$major'
28105 + dynamic_linker='NetBSD ld.elf_so'
28107 + shlibpath_var=LD_LIBRARY_PATH
28108 + shlibpath_overrides_runpath=yes
28109 + hardcode_into_libs=yes
28113 + version_type=linux
28114 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
28115 + shlibpath_var=LD_LIBRARY_PATH
28116 + shlibpath_overrides_runpath=yes
28120 + version_type=linux
28121 + need_lib_prefix=no
28123 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
28124 + soname_spec='${libname}${release}${shared_ext}$major'
28125 + shlibpath_var=LD_LIBRARY_PATH
28126 + shlibpath_overrides_runpath=yes
28130 + version_type=sunos
28131 + sys_lib_dlsearch_path_spec="/usr/lib"
28132 + need_lib_prefix=no
28133 + # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
28135 + openbsd3.3 | openbsd3.3.*) need_version=yes ;;
28136 + *) need_version=no ;;
28138 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
28139 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
28140 + shlibpath_var=LD_LIBRARY_PATH
28141 + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
28143 + openbsd2.[89] | openbsd2.[89].*)
28144 + shlibpath_overrides_runpath=no
28147 + shlibpath_overrides_runpath=yes
28151 + shlibpath_overrides_runpath=yes
28156 + libname_spec='$name'
28157 + shrext_cmds=".dll"
28158 + need_lib_prefix=no
28159 + library_names_spec='$libname${shared_ext} $libname.a'
28160 + dynamic_linker='OS/2 ld.exe'
28161 + shlibpath_var=LIBPATH
28164 +osf3* | osf4* | osf5*)
28166 + need_lib_prefix=no
28168 + soname_spec='${libname}${release}${shared_ext}$major'
28169 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
28170 + shlibpath_var=LD_LIBRARY_PATH
28171 + sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
28172 + sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
28176 + version_type=linux
28177 + need_lib_prefix=no
28179 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
28180 + soname_spec='${libname}${release}${shared_ext}$major'
28181 + shlibpath_var=LD_LIBRARY_PATH
28182 + shlibpath_overrides_runpath=yes
28183 + hardcode_into_libs=yes
28184 + # ldd complains unless libraries are executable
28185 + postinstall_cmds='chmod +x $lib'
28189 + version_type=sunos
28190 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
28191 + finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
28192 + shlibpath_var=LD_LIBRARY_PATH
28193 + shlibpath_overrides_runpath=yes
28194 + if test "$with_gnu_ld" = yes; then
28195 + need_lib_prefix=no
28201 + version_type=linux
28202 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
28203 + soname_spec='${libname}${release}${shared_ext}$major'
28204 + shlibpath_var=LD_LIBRARY_PATH
28205 + case $host_vendor in
28207 + shlibpath_overrides_runpath=no
28208 + need_lib_prefix=no
28209 + export_dynamic_flag_spec='${wl}-Blargedynsym'
28210 + runpath_var=LD_RUN_PATH
28213 + need_lib_prefix=no
28216 + need_lib_prefix=no
28218 + shlibpath_overrides_runpath=no
28219 + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
28225 + if test -d /usr/nec ;then
28226 + version_type=linux
28227 + library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
28228 + soname_spec='$libname${shared_ext}.$major'
28229 + shlibpath_var=LD_LIBRARY_PATH
28233 +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
28234 + version_type=freebsd-elf
28235 + need_lib_prefix=no
28237 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
28238 + soname_spec='${libname}${release}${shared_ext}$major'
28239 + shlibpath_var=LD_LIBRARY_PATH
28240 + hardcode_into_libs=yes
28241 + if test "$with_gnu_ld" = yes; then
28242 + sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
28243 + shlibpath_overrides_runpath=no
28245 + sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
28246 + shlibpath_overrides_runpath=yes
28249 + sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
28253 + sys_lib_dlsearch_path_spec='/usr/lib'
28257 + version_type=linux
28258 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
28259 + soname_spec='${libname}${release}${shared_ext}$major'
28260 + shlibpath_var=LD_LIBRARY_PATH
28264 + dynamic_linker=no
28267 +echo "$as_me:$LINENO: result: $dynamic_linker" >&5
28268 +echo "${ECHO_T}$dynamic_linker" >&6
28269 +test "$dynamic_linker" = no && can_build_shared=no
28271 +variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
28272 +if test "$GCC" = yes; then
28273 + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
28276 +echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
28277 +echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
28278 +hardcode_action_GCJ=
28279 +if test -n "$hardcode_libdir_flag_spec_GCJ" || \
28280 + test -n "$runpath_var_GCJ" || \
28281 + test "X$hardcode_automatic_GCJ" = "Xyes" ; then
28283 + # We can hardcode non-existant directories.
28284 + if test "$hardcode_direct_GCJ" != no &&
28285 + # If the only mechanism to avoid hardcoding is shlibpath_var, we
28286 + # have to relink, otherwise we might link with an installed library
28287 + # when we should be linking with a yet-to-be-installed one
28288 + ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
28289 + test "$hardcode_minus_L_GCJ" != no; then
28290 + # Linking always hardcodes the temporary library directory.
28291 + hardcode_action_GCJ=relink
28293 + # We can link without hardcoding, and we can hardcode nonexisting dirs.
28294 + hardcode_action_GCJ=immediate
28297 + # We cannot hardcode anything, or else we can only hardcode existing
28299 + hardcode_action_GCJ=unsupported
28301 +echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
28302 +echo "${ECHO_T}$hardcode_action_GCJ" >&6
28304 +if test "$hardcode_action_GCJ" = relink; then
28305 + # Fast installation is not supported
28306 + enable_fast_install=no
28307 +elif test "$shlibpath_overrides_runpath" = yes ||
28308 + test "$enable_shared" = no; then
28309 + # Fast installation is not necessary
28310 + enable_fast_install=needless
28314 +# The else clause should only fire when bootstrapping the
28315 +# libtool distribution, otherwise you forgot to ship ltmain.sh
28316 +# with your package, and you will get complaints that there are
28317 +# no rules to generate ltmain.sh.
28318 +if test -f "$ltmain"; then
28319 + # See if we are running on zsh, and set the options which allow our commands through
28320 + # without removal of \ escapes.
28321 + if test -n "${ZSH_VERSION+set}" ; then
28322 + setopt NO_GLOB_SUBST
28324 + # Now quote all the things that may contain metacharacters while being
28325 + # careful not to overquote the AC_SUBSTed values. We take copies of the
28326 + # variables and quote the copies for generation of the libtool script.
28327 + for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
28328 + SED SHELL STRIP \
28329 + libname_spec library_names_spec soname_spec extract_expsyms_cmds \
28330 + old_striplib striplib file_magic_cmd finish_cmds finish_eval \
28331 + deplibs_check_method reload_flag reload_cmds need_locks \
28332 + lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
28333 + lt_cv_sys_global_symbol_to_c_name_address \
28334 + sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
28335 + old_postinstall_cmds old_postuninstall_cmds \
28339 + lt_prog_compiler_wl_GCJ \
28340 + lt_prog_compiler_pic_GCJ \
28341 + lt_prog_compiler_static_GCJ \
28342 + lt_prog_compiler_no_builtin_flag_GCJ \
28343 + export_dynamic_flag_spec_GCJ \
28344 + thread_safe_flag_spec_GCJ \
28345 + whole_archive_flag_spec_GCJ \
28346 + enable_shared_with_static_runtimes_GCJ \
28347 + old_archive_cmds_GCJ \
28348 + old_archive_from_new_cmds_GCJ \
28349 + predep_objects_GCJ \
28350 + postdep_objects_GCJ \
28353 + compiler_lib_search_path_GCJ \
28354 + archive_cmds_GCJ \
28355 + archive_expsym_cmds_GCJ \
28356 + postinstall_cmds_GCJ \
28357 + postuninstall_cmds_GCJ \
28358 + old_archive_from_expsyms_cmds_GCJ \
28359 + allow_undefined_flag_GCJ \
28360 + no_undefined_flag_GCJ \
28361 + export_symbols_cmds_GCJ \
28362 + hardcode_libdir_flag_spec_GCJ \
28363 + hardcode_libdir_flag_spec_ld_GCJ \
28364 + hardcode_libdir_separator_GCJ \
28365 + hardcode_automatic_GCJ \
28366 + module_cmds_GCJ \
28367 + module_expsym_cmds_GCJ \
28368 + lt_cv_prog_compiler_c_o_GCJ \
28369 + exclude_expsyms_GCJ \
28370 + include_expsyms_GCJ; do
28373 + old_archive_cmds_GCJ | \
28374 + old_archive_from_new_cmds_GCJ | \
28375 + archive_cmds_GCJ | \
28376 + archive_expsym_cmds_GCJ | \
28377 + module_cmds_GCJ | \
28378 + module_expsym_cmds_GCJ | \
28379 + old_archive_from_expsyms_cmds_GCJ | \
28380 + export_symbols_cmds_GCJ | \
28381 + extract_expsyms_cmds | reload_cmds | finish_cmds | \
28382 + postinstall_cmds | postuninstall_cmds | \
28383 + old_postinstall_cmds | old_postuninstall_cmds | \
28384 + sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
28385 + # Double-quote double-evaled strings.
28386 + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
28389 + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
28395 + *'\$0 --fallback-echo"')
28396 + lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
28402 + cat <<__EOF__ >> "$cfgfile"
28403 +# ### BEGIN LIBTOOL TAG CONFIG: $tagname
28405 +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
28407 +# Shell to use when invoking shell scripts.
28410 +# Whether or not to build shared libraries.
28411 +build_libtool_libs=$enable_shared
28413 +# Whether or not to build static libraries.
28414 +build_old_libs=$enable_static
28416 +# Whether or not to add -lc for building shared libraries.
28417 +build_libtool_need_lc=$archive_cmds_need_lc_GCJ
28419 +# Whether or not to disallow shared libs when runtime libs are static
28420 +allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
28422 +# Whether or not to optimize for fast installation.
28423 +fast_install=$enable_fast_install
28425 +# The host system.
28426 +host_alias=$host_alias
28430 +# The build system.
28431 +build_alias=$build_alias
28433 +build_os=$build_os
28435 +# An echo program that does not interpret backslashes.
28440 +AR_FLAGS=$lt_AR_FLAGS
28445 +# LTCC compiler flags.
28446 +LTCFLAGS=$lt_LTCFLAGS
28448 +# A language-specific compiler.
28449 +CC=$lt_compiler_GCJ
28451 +# Is the compiler the GNU C compiler?
28457 +# The linker used to build libraries.
28460 +# Whether we need hard or soft links.
28463 +# A BSD-compatible nm program.
28466 +# A symbol stripping program
28469 +# Used to examine libraries when file_magic_cmd begins "file"
28470 +MAGIC_CMD=$MAGIC_CMD
28472 +# Used on cygwin: DLL creation program.
28473 +DLLTOOL="$DLLTOOL"
28475 +# Used on cygwin: object dumper.
28476 +OBJDUMP="$OBJDUMP"
28478 +# Used on cygwin: assembler.
28481 +# The name of the directory that contains temporary libtool files.
28484 +# How to create reloadable object files.
28485 +reload_flag=$lt_reload_flag
28486 +reload_cmds=$lt_reload_cmds
28488 +# How to pass a linker flag through the compiler.
28489 +wl=$lt_lt_prog_compiler_wl_GCJ
28491 +# Object file suffix (normally "o").
28492 +objext="$ac_objext"
28494 +# Old archive suffix (normally "a").
28497 +# Shared library suffix (normally ".so").
28498 +shrext_cmds='$shrext_cmds'
28500 +# Executable file suffix (normally "").
28503 +# Additional compiler flags for building library objects.
28504 +pic_flag=$lt_lt_prog_compiler_pic_GCJ
28505 +pic_mode=$pic_mode
28507 +# What is the maximum length of a command?
28508 +max_cmd_len=$lt_cv_sys_max_cmd_len
28510 +# Does compiler simultaneously support -c and -o options?
28511 +compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
28513 +# Must we lock files when doing compilation?
28514 +need_locks=$lt_need_locks
28516 +# Do we need the lib prefix for modules?
28517 +need_lib_prefix=$need_lib_prefix
28519 +# Do we need a version for libraries?
28520 +need_version=$need_version
28522 +# Whether dlopen is supported.
28523 +dlopen_support=$enable_dlopen
28525 +# Whether dlopen of programs is supported.
28526 +dlopen_self=$enable_dlopen_self
28528 +# Whether dlopen of statically linked programs is supported.
28529 +dlopen_self_static=$enable_dlopen_self_static
28531 +# Compiler flag to prevent dynamic linking.
28532 +link_static_flag=$lt_lt_prog_compiler_static_GCJ
28534 +# Compiler flag to turn off builtin functions.
28535 +no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
28537 +# Compiler flag to allow reflexive dlopens.
28538 +export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
28540 +# Compiler flag to generate shared objects directly from archives.
28541 +whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
28543 +# Compiler flag to generate thread-safe objects.
28544 +thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
28546 +# Library versioning type.
28547 +version_type=$version_type
28549 +# Format of library name prefix.
28550 +libname_spec=$lt_libname_spec
28552 +# List of archive names. First name is the real one, the rest are links.
28553 +# The last name is the one that the linker finds with -lNAME.
28554 +library_names_spec=$lt_library_names_spec
28556 +# The coded name of the library, if different from the real name.
28557 +soname_spec=$lt_soname_spec
28559 +# Commands used to build and install an old-style archive.
28561 +old_archive_cmds=$lt_old_archive_cmds_GCJ
28562 +old_postinstall_cmds=$lt_old_postinstall_cmds
28563 +old_postuninstall_cmds=$lt_old_postuninstall_cmds
28565 +# Create an old-style archive from a shared archive.
28566 +old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
28568 +# Create a temporary old-style archive to link instead of a shared archive.
28569 +old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
28571 +# Commands used to build and install a shared archive.
28572 +archive_cmds=$lt_archive_cmds_GCJ
28573 +archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
28574 +postinstall_cmds=$lt_postinstall_cmds
28575 +postuninstall_cmds=$lt_postuninstall_cmds
28577 +# Commands used to build a loadable module (assumed same as above if empty)
28578 +module_cmds=$lt_module_cmds_GCJ
28579 +module_expsym_cmds=$lt_module_expsym_cmds_GCJ
28581 +# Commands to strip libraries.
28582 +old_striplib=$lt_old_striplib
28583 +striplib=$lt_striplib
28585 +# Dependencies to place before the objects being linked to create a
28587 +predep_objects=$lt_predep_objects_GCJ
28589 +# Dependencies to place after the objects being linked to create a
28591 +postdep_objects=$lt_postdep_objects_GCJ
28593 +# Dependencies to place before the objects being linked to create a
28595 +predeps=$lt_predeps_GCJ
28597 +# Dependencies to place after the objects being linked to create a
28599 +postdeps=$lt_postdeps_GCJ
28601 +# The library search path used internally by the compiler when linking
28602 +# a shared library.
28603 +compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
28605 +# Method to check whether dependent libraries are shared objects.
28606 +deplibs_check_method=$lt_deplibs_check_method
28608 +# Command to use when deplibs_check_method == file_magic.
28609 +file_magic_cmd=$lt_file_magic_cmd
28611 +# Flag that allows shared libraries with undefined symbols to be built.
28612 +allow_undefined_flag=$lt_allow_undefined_flag_GCJ
28614 +# Flag that forces no undefined symbols.
28615 +no_undefined_flag=$lt_no_undefined_flag_GCJ
28617 +# Commands used to finish a libtool library installation in a directory.
28618 +finish_cmds=$lt_finish_cmds
28620 +# Same as above, but a single script fragment to be evaled but not shown.
28621 +finish_eval=$lt_finish_eval
28623 +# Take the output of nm and produce a listing of raw symbols and C names.
28624 +global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
28626 +# Transform the output of nm in a proper C declaration
28627 +global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
28629 +# Transform the output of nm in a C name address pair
28630 +global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
28632 +# This is the shared library runtime path variable.
28633 +runpath_var=$runpath_var
28635 +# This is the shared library path variable.
28636 +shlibpath_var=$shlibpath_var
28638 +# Is shlibpath searched before the hard-coded library search path?
28639 +shlibpath_overrides_runpath=$shlibpath_overrides_runpath
28641 +# How to hardcode a shared library path into an executable.
28642 +hardcode_action=$hardcode_action_GCJ
28644 +# Whether we should hardcode library paths into libraries.
28645 +hardcode_into_libs=$hardcode_into_libs
28647 +# Flag to hardcode \$libdir into a binary during linking.
28648 +# This must work even if \$libdir does not exist.
28649 +hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
28651 +# If ld is used when linking, flag to hardcode \$libdir into
28652 +# a binary during linking. This must work even if \$libdir does
28654 +hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
28656 +# Whether we need a single -rpath flag with a separated argument.
28657 +hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
28659 +# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
28660 +# resulting binary.
28661 +hardcode_direct=$hardcode_direct_GCJ
28663 +# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
28664 +# resulting binary.
28665 +hardcode_minus_L=$hardcode_minus_L_GCJ
28667 +# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
28668 +# the resulting binary.
28669 +hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
28671 +# Set to yes if building a shared library automatically hardcodes DIR into the library
28672 +# and all subsequent libraries and executables linked against it.
28673 +hardcode_automatic=$hardcode_automatic_GCJ
28675 +# Variables whose values should be saved in libtool wrapper scripts and
28676 +# restored at relink time.
28677 +variables_saved_for_relink="$variables_saved_for_relink"
28679 +# Whether libtool must link a program against all its dependency libraries.
28680 +link_all_deplibs=$link_all_deplibs_GCJ
28682 +# Compile-time system search path for libraries
28683 +sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
28685 +# Run-time system search path for libraries
28686 +sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
28688 +# Fix the shell variable \$srcfile for the compiler.
28689 +fix_srcfile_path="$fix_srcfile_path_GCJ"
28691 +# Set to yes if exported symbols are required.
28692 +always_export_symbols=$always_export_symbols_GCJ
28694 +# The commands to list exported symbols.
28695 +export_symbols_cmds=$lt_export_symbols_cmds_GCJ
28697 +# The commands to extract the exported symbol list from a shared archive.
28698 +extract_expsyms_cmds=$lt_extract_expsyms_cmds
28700 +# Symbols that should not be listed in the preloaded symbols.
28701 +exclude_expsyms=$lt_exclude_expsyms_GCJ
28703 +# Symbols that must always be exported.
28704 +include_expsyms=$lt_include_expsyms_GCJ
28706 +# ### END LIBTOOL TAG CONFIG: $tagname
28712 + # If there is no Makefile yet, we rely on a make rule to execute
28713 + # `config.status --recheck' to rerun these tests and create the
28714 + # libtool script then.
28715 + ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
28716 + if test -f "$ltmain_in"; then
28717 + test -f Makefile && make "$ltmain"
28723 +ac_cpp='$CPP $CPPFLAGS'
28724 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28725 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28726 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
28739 +# Source file extension for RC test sources.
28742 +# Object file extension for compiled RC test sources.
28746 +# Code to be used in simple compile tests
28747 +lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
28749 +# Code to be used in simple link tests
28750 +lt_simple_link_test_code="$lt_simple_compile_test_code"
28752 +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
28754 +# If no C compiler was specified, use CC.
28755 +LTCC=${LTCC-"$CC"}
28757 +# If no C compiler flags were specified, use CFLAGS.
28758 +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
28760 +# Allow CC to be a program name with arguments.
28764 +# save warnings/boilerplate of simple test code
28765 +ac_outfile=conftest.$ac_objext
28766 +printf "$lt_simple_compile_test_code" >conftest.$ac_ext
28767 +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
28768 +_lt_compiler_boilerplate=`cat conftest.err`
28771 +ac_outfile=conftest.$ac_objext
28772 +printf "$lt_simple_link_test_code" >conftest.$ac_ext
28773 +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
28774 +_lt_linker_boilerplate=`cat conftest.err`
28778 +# Allow CC to be a program name with arguments.
28780 +CC=${RC-"windres"}
28783 +for cc_temp in $compiler""; do
28785 + compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
28786 + distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
28791 +cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
28793 +lt_cv_prog_compiler_c_o_RC=yes
28795 +# The else clause should only fire when bootstrapping the
28796 +# libtool distribution, otherwise you forgot to ship ltmain.sh
28797 +# with your package, and you will get complaints that there are
28798 +# no rules to generate ltmain.sh.
28799 +if test -f "$ltmain"; then
28800 + # See if we are running on zsh, and set the options which allow our commands through
28801 + # without removal of \ escapes.
28802 + if test -n "${ZSH_VERSION+set}" ; then
28803 + setopt NO_GLOB_SUBST
28805 + # Now quote all the things that may contain metacharacters while being
28806 + # careful not to overquote the AC_SUBSTed values. We take copies of the
28807 + # variables and quote the copies for generation of the libtool script.
28808 + for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
28809 + SED SHELL STRIP \
28810 + libname_spec library_names_spec soname_spec extract_expsyms_cmds \
28811 + old_striplib striplib file_magic_cmd finish_cmds finish_eval \
28812 + deplibs_check_method reload_flag reload_cmds need_locks \
28813 + lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
28814 + lt_cv_sys_global_symbol_to_c_name_address \
28815 + sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
28816 + old_postinstall_cmds old_postuninstall_cmds \
28820 + lt_prog_compiler_wl_RC \
28821 + lt_prog_compiler_pic_RC \
28822 + lt_prog_compiler_static_RC \
28823 + lt_prog_compiler_no_builtin_flag_RC \
28824 + export_dynamic_flag_spec_RC \
28825 + thread_safe_flag_spec_RC \
28826 + whole_archive_flag_spec_RC \
28827 + enable_shared_with_static_runtimes_RC \
28828 + old_archive_cmds_RC \
28829 + old_archive_from_new_cmds_RC \
28830 + predep_objects_RC \
28831 + postdep_objects_RC \
28834 + compiler_lib_search_path_RC \
28835 + archive_cmds_RC \
28836 + archive_expsym_cmds_RC \
28837 + postinstall_cmds_RC \
28838 + postuninstall_cmds_RC \
28839 + old_archive_from_expsyms_cmds_RC \
28840 + allow_undefined_flag_RC \
28841 + no_undefined_flag_RC \
28842 + export_symbols_cmds_RC \
28843 + hardcode_libdir_flag_spec_RC \
28844 + hardcode_libdir_flag_spec_ld_RC \
28845 + hardcode_libdir_separator_RC \
28846 + hardcode_automatic_RC \
28848 + module_expsym_cmds_RC \
28849 + lt_cv_prog_compiler_c_o_RC \
28850 + exclude_expsyms_RC \
28851 + include_expsyms_RC; do
28854 + old_archive_cmds_RC | \
28855 + old_archive_from_new_cmds_RC | \
28856 + archive_cmds_RC | \
28857 + archive_expsym_cmds_RC | \
28858 + module_cmds_RC | \
28859 + module_expsym_cmds_RC | \
28860 + old_archive_from_expsyms_cmds_RC | \
28861 + export_symbols_cmds_RC | \
28862 + extract_expsyms_cmds | reload_cmds | finish_cmds | \
28863 + postinstall_cmds | postuninstall_cmds | \
28864 + old_postinstall_cmds | old_postuninstall_cmds | \
28865 + sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
28866 + # Double-quote double-evaled strings.
28867 + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
28870 + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
28876 + *'\$0 --fallback-echo"')
28877 + lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
28883 + cat <<__EOF__ >> "$cfgfile"
28884 +# ### BEGIN LIBTOOL TAG CONFIG: $tagname
28886 +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
28888 +# Shell to use when invoking shell scripts.
28891 +# Whether or not to build shared libraries.
28892 +build_libtool_libs=$enable_shared
28894 +# Whether or not to build static libraries.
28895 +build_old_libs=$enable_static
28897 +# Whether or not to add -lc for building shared libraries.
28898 +build_libtool_need_lc=$archive_cmds_need_lc_RC
28900 +# Whether or not to disallow shared libs when runtime libs are static
28901 +allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
28903 +# Whether or not to optimize for fast installation.
28904 +fast_install=$enable_fast_install
28906 +# The host system.
28907 +host_alias=$host_alias
28911 +# The build system.
28912 +build_alias=$build_alias
28914 +build_os=$build_os
28916 +# An echo program that does not interpret backslashes.
28921 +AR_FLAGS=$lt_AR_FLAGS
28926 +# LTCC compiler flags.
28927 +LTCFLAGS=$lt_LTCFLAGS
28929 +# A language-specific compiler.
28930 +CC=$lt_compiler_RC
28932 +# Is the compiler the GNU C compiler?
28938 +# The linker used to build libraries.
28941 +# Whether we need hard or soft links.
28944 +# A BSD-compatible nm program.
28947 +# A symbol stripping program
28950 +# Used to examine libraries when file_magic_cmd begins "file"
28951 +MAGIC_CMD=$MAGIC_CMD
28953 +# Used on cygwin: DLL creation program.
28954 +DLLTOOL="$DLLTOOL"
28956 +# Used on cygwin: object dumper.
28957 +OBJDUMP="$OBJDUMP"
28959 +# Used on cygwin: assembler.
28962 +# The name of the directory that contains temporary libtool files.
28965 +# How to create reloadable object files.
28966 +reload_flag=$lt_reload_flag
28967 +reload_cmds=$lt_reload_cmds
28969 +# How to pass a linker flag through the compiler.
28970 +wl=$lt_lt_prog_compiler_wl_RC
28972 +# Object file suffix (normally "o").
28973 +objext="$ac_objext"
28975 +# Old archive suffix (normally "a").
28978 +# Shared library suffix (normally ".so").
28979 +shrext_cmds='$shrext_cmds'
28981 +# Executable file suffix (normally "").
28984 +# Additional compiler flags for building library objects.
28985 +pic_flag=$lt_lt_prog_compiler_pic_RC
28986 +pic_mode=$pic_mode
28988 +# What is the maximum length of a command?
28989 +max_cmd_len=$lt_cv_sys_max_cmd_len
28991 +# Does compiler simultaneously support -c and -o options?
28992 +compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
28994 +# Must we lock files when doing compilation?
28995 +need_locks=$lt_need_locks
28997 +# Do we need the lib prefix for modules?
28998 +need_lib_prefix=$need_lib_prefix
29000 +# Do we need a version for libraries?
29001 +need_version=$need_version
29003 +# Whether dlopen is supported.
29004 +dlopen_support=$enable_dlopen
29006 +# Whether dlopen of programs is supported.
29007 +dlopen_self=$enable_dlopen_self
29009 +# Whether dlopen of statically linked programs is supported.
29010 +dlopen_self_static=$enable_dlopen_self_static
29012 +# Compiler flag to prevent dynamic linking.
29013 +link_static_flag=$lt_lt_prog_compiler_static_RC
29015 +# Compiler flag to turn off builtin functions.
29016 +no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
29018 +# Compiler flag to allow reflexive dlopens.
29019 +export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
29021 +# Compiler flag to generate shared objects directly from archives.
29022 +whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
29024 +# Compiler flag to generate thread-safe objects.
29025 +thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
29027 +# Library versioning type.
29028 +version_type=$version_type
29030 +# Format of library name prefix.
29031 +libname_spec=$lt_libname_spec
29033 +# List of archive names. First name is the real one, the rest are links.
29034 +# The last name is the one that the linker finds with -lNAME.
29035 +library_names_spec=$lt_library_names_spec
29037 +# The coded name of the library, if different from the real name.
29038 +soname_spec=$lt_soname_spec
29040 +# Commands used to build and install an old-style archive.
29042 +old_archive_cmds=$lt_old_archive_cmds_RC
29043 +old_postinstall_cmds=$lt_old_postinstall_cmds
29044 +old_postuninstall_cmds=$lt_old_postuninstall_cmds
29046 +# Create an old-style archive from a shared archive.
29047 +old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
29049 +# Create a temporary old-style archive to link instead of a shared archive.
29050 +old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
29052 +# Commands used to build and install a shared archive.
29053 +archive_cmds=$lt_archive_cmds_RC
29054 +archive_expsym_cmds=$lt_archive_expsym_cmds_RC
29055 +postinstall_cmds=$lt_postinstall_cmds
29056 +postuninstall_cmds=$lt_postuninstall_cmds
29058 +# Commands used to build a loadable module (assumed same as above if empty)
29059 +module_cmds=$lt_module_cmds_RC
29060 +module_expsym_cmds=$lt_module_expsym_cmds_RC
29062 +# Commands to strip libraries.
29063 +old_striplib=$lt_old_striplib
29064 +striplib=$lt_striplib
29066 +# Dependencies to place before the objects being linked to create a
29068 +predep_objects=$lt_predep_objects_RC
29070 +# Dependencies to place after the objects being linked to create a
29072 +postdep_objects=$lt_postdep_objects_RC
29074 +# Dependencies to place before the objects being linked to create a
29076 +predeps=$lt_predeps_RC
29078 +# Dependencies to place after the objects being linked to create a
29080 +postdeps=$lt_postdeps_RC
29082 +# The library search path used internally by the compiler when linking
29083 +# a shared library.
29084 +compiler_lib_search_path=$lt_compiler_lib_search_path_RC
29086 +# Method to check whether dependent libraries are shared objects.
29087 +deplibs_check_method=$lt_deplibs_check_method
29089 +# Command to use when deplibs_check_method == file_magic.
29090 +file_magic_cmd=$lt_file_magic_cmd
29092 +# Flag that allows shared libraries with undefined symbols to be built.
29093 +allow_undefined_flag=$lt_allow_undefined_flag_RC
29095 +# Flag that forces no undefined symbols.
29096 +no_undefined_flag=$lt_no_undefined_flag_RC
29098 +# Commands used to finish a libtool library installation in a directory.
29099 +finish_cmds=$lt_finish_cmds
29101 +# Same as above, but a single script fragment to be evaled but not shown.
29102 +finish_eval=$lt_finish_eval
29104 +# Take the output of nm and produce a listing of raw symbols and C names.
29105 +global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
29107 +# Transform the output of nm in a proper C declaration
29108 +global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
29110 +# Transform the output of nm in a C name address pair
29111 +global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
29113 +# This is the shared library runtime path variable.
29114 +runpath_var=$runpath_var
29116 +# This is the shared library path variable.
29117 +shlibpath_var=$shlibpath_var
29119 +# Is shlibpath searched before the hard-coded library search path?
29120 +shlibpath_overrides_runpath=$shlibpath_overrides_runpath
29122 +# How to hardcode a shared library path into an executable.
29123 +hardcode_action=$hardcode_action_RC
29125 +# Whether we should hardcode library paths into libraries.
29126 +hardcode_into_libs=$hardcode_into_libs
29128 +# Flag to hardcode \$libdir into a binary during linking.
29129 +# This must work even if \$libdir does not exist.
29130 +hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
29132 +# If ld is used when linking, flag to hardcode \$libdir into
29133 +# a binary during linking. This must work even if \$libdir does
29135 +hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
29137 +# Whether we need a single -rpath flag with a separated argument.
29138 +hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
29140 +# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
29141 +# resulting binary.
29142 +hardcode_direct=$hardcode_direct_RC
29144 +# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
29145 +# resulting binary.
29146 +hardcode_minus_L=$hardcode_minus_L_RC
29148 +# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
29149 +# the resulting binary.
29150 +hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
29152 +# Set to yes if building a shared library automatically hardcodes DIR into the library
29153 +# and all subsequent libraries and executables linked against it.
29154 +hardcode_automatic=$hardcode_automatic_RC
29156 +# Variables whose values should be saved in libtool wrapper scripts and
29157 +# restored at relink time.
29158 +variables_saved_for_relink="$variables_saved_for_relink"
29160 +# Whether libtool must link a program against all its dependency libraries.
29161 +link_all_deplibs=$link_all_deplibs_RC
29163 +# Compile-time system search path for libraries
29164 +sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
29166 +# Run-time system search path for libraries
29167 +sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
29169 +# Fix the shell variable \$srcfile for the compiler.
29170 +fix_srcfile_path="$fix_srcfile_path_RC"
29172 +# Set to yes if exported symbols are required.
29173 +always_export_symbols=$always_export_symbols_RC
29175 +# The commands to list exported symbols.
29176 +export_symbols_cmds=$lt_export_symbols_cmds_RC
29178 +# The commands to extract the exported symbol list from a shared archive.
29179 +extract_expsyms_cmds=$lt_extract_expsyms_cmds
29181 +# Symbols that should not be listed in the preloaded symbols.
29182 +exclude_expsyms=$lt_exclude_expsyms_RC
29184 +# Symbols that must always be exported.
29185 +include_expsyms=$lt_include_expsyms_RC
29187 +# ### END LIBTOOL TAG CONFIG: $tagname
29193 + # If there is no Makefile yet, we rely on a make rule to execute
29194 + # `config.status --recheck' to rerun these tests and create the
29195 + # libtool script then.
29196 + ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
29197 + if test -f "$ltmain_in"; then
29198 + test -f Makefile && make "$ltmain"
29204 +ac_cpp='$CPP $CPPFLAGS'
29205 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29206 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29207 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
29214 + { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
29215 +echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
29216 + { (exit 1); exit 1; }; }
29220 + # Append the new tag name to the list of available tags.
29221 + if test -n "$tagname" ; then
29222 + available_tags="$available_tags $tagname"
29226 + IFS="$lt_save_ifs"
29228 + # Now substitute the updated list of available tags.
29229 + if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
29230 + mv "${ofile}T" "$ofile"
29231 + chmod +x "$ofile"
29233 + rm -f "${ofile}T"
29234 + { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
29235 +echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
29236 + { (exit 1); exit 1; }; }
29242 +# This can be used to rebuild libtool when needed
29243 +LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
29245 +# Always use our own libtool.
29246 +LIBTOOL='$(SHELL) $(top_builddir)/libtool'
29248 +# Prevent multiple expansion
29271 +# Check whether --with-readline or --without-readline was given.
29272 +if test "${with_readline+set}" = set; then
29273 + withval="$with_readline"
29274 + use_readline=$withval
29282 +# Check for readline
29283 +READLINE_DEFS="#undef LUA_USE_READLINE"
29284 +if test "x$use_readline" == "xyes"; then
29286 +echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
29287 +echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6
29288 +if test "${ac_cv_lib_readline_readline+set}" = set; then
29289 + echo $ECHO_N "(cached) $ECHO_C" >&6
29291 + ac_check_lib_save_LIBS=$LIBS
29292 +LIBS="-lreadline -lncurses $LIBS"
29293 +cat >conftest.$ac_ext <<_ACEOF
29296 +cat confdefs.h >>conftest.$ac_ext
29297 +cat >>conftest.$ac_ext <<_ACEOF
29298 +/* end confdefs.h. */
29300 +/* Override any gcc2 internal prototype to avoid an error. */
29301 +#ifdef __cplusplus
29304 +/* We use char because int might match the return type of a gcc2
29305 + builtin and then its argument prototype would still apply. */
29315 +rm -f conftest.$ac_objext conftest$ac_exeext
29316 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29317 + (eval $ac_link) 2>conftest.er1
29319 + grep -v '^ *+' conftest.er1 >conftest.err
29320 + rm -f conftest.er1
29321 + cat conftest.err >&5
29322 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
29323 + (exit $ac_status); } &&
29324 + { ac_try='test -z "$ac_c_werror_flag"
29325 + || test ! -s conftest.err'
29326 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29327 + (eval $ac_try) 2>&5
29329 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
29330 + (exit $ac_status); }; } &&
29331 + { ac_try='test -s conftest$ac_exeext'
29332 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29333 + (eval $ac_try) 2>&5
29335 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
29336 + (exit $ac_status); }; }; then
29337 + ac_cv_lib_readline_readline=yes
29339 + echo "$as_me: failed program was:" >&5
29340 +sed 's/^/| /' conftest.$ac_ext >&5
29342 +ac_cv_lib_readline_readline=no
29344 +rm -f conftest.err conftest.$ac_objext \
29345 + conftest$ac_exeext conftest.$ac_ext
29346 +LIBS=$ac_check_lib_save_LIBS
29348 +echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
29349 +echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6
29350 +if test $ac_cv_lib_readline_readline = yes; then
29351 + cat >>confdefs.h <<_ACEOF
29352 +#define HAVE_LIBREADLINE 1
29355 + LIBS="-lreadline -lncurses $LIBS"
29363 +for ac_header in readline/readline.h readline/history.h
29365 +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29366 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
29367 + echo "$as_me:$LINENO: checking for $ac_header" >&5
29368 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29369 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
29370 + echo $ECHO_N "(cached) $ECHO_C" >&6
29372 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29373 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29375 + # Is the header compilable?
29376 +echo "$as_me:$LINENO: checking $ac_header usability" >&5
29377 +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29378 +cat >conftest.$ac_ext <<_ACEOF
29381 +cat confdefs.h >>conftest.$ac_ext
29382 +cat >>conftest.$ac_ext <<_ACEOF
29383 +/* end confdefs.h. */
29384 +$ac_includes_default
29385 +#include <$ac_header>
29387 +rm -f conftest.$ac_objext
29388 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29389 + (eval $ac_compile) 2>conftest.er1
29391 + grep -v '^ *+' conftest.er1 >conftest.err
29392 + rm -f conftest.er1
29393 + cat conftest.err >&5
29394 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
29395 + (exit $ac_status); } &&
29396 + { ac_try='test -z "$ac_c_werror_flag"
29397 + || test ! -s conftest.err'
29398 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29399 + (eval $ac_try) 2>&5
29401 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
29402 + (exit $ac_status); }; } &&
29403 + { ac_try='test -s conftest.$ac_objext'
29404 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29405 + (eval $ac_try) 2>&5
29407 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
29408 + (exit $ac_status); }; }; then
29409 + ac_header_compiler=yes
29411 + echo "$as_me: failed program was:" >&5
29412 +sed 's/^/| /' conftest.$ac_ext >&5
29414 +ac_header_compiler=no
29416 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29417 +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29418 +echo "${ECHO_T}$ac_header_compiler" >&6
29420 +# Is the header present?
29421 +echo "$as_me:$LINENO: checking $ac_header presence" >&5
29422 +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29423 +cat >conftest.$ac_ext <<_ACEOF
29426 +cat confdefs.h >>conftest.$ac_ext
29427 +cat >>conftest.$ac_ext <<_ACEOF
29428 +/* end confdefs.h. */
29429 +#include <$ac_header>
29431 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29432 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29434 + grep -v '^ *+' conftest.er1 >conftest.err
29435 + rm -f conftest.er1
29436 + cat conftest.err >&5
29437 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
29438 + (exit $ac_status); } >/dev/null; then
29439 + if test -s conftest.err; then
29440 + ac_cpp_err=$ac_c_preproc_warn_flag
29441 + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29448 +if test -z "$ac_cpp_err"; then
29449 + ac_header_preproc=yes
29451 + echo "$as_me: failed program was:" >&5
29452 +sed 's/^/| /' conftest.$ac_ext >&5
29454 + ac_header_preproc=no
29456 +rm -f conftest.err conftest.$ac_ext
29457 +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29458 +echo "${ECHO_T}$ac_header_preproc" >&6
29460 +# So? What about this header?
29461 +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29463 + { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29464 +echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29465 + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29466 +echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29467 + ac_header_preproc=yes
29470 + { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29471 +echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29472 + { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29473 +echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29474 + { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29475 +echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29476 + { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29477 +echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29478 + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29479 +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29480 + { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29481 +echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29484 +## ------------------------------------------- ##
29485 +## Report this to the Autotoolized Lua lists. ##
29486 +## ------------------------------------------- ##
29489 + sed "s/^/$as_me: WARNING: /" >&2
29492 +echo "$as_me:$LINENO: checking for $ac_header" >&5
29493 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29494 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
29495 + echo $ECHO_N "(cached) $ECHO_C" >&6
29497 + eval "$as_ac_Header=\$ac_header_preproc"
29499 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29500 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29503 +if test `eval echo '${'$as_ac_Header'}'` = yes; then
29504 + cat >>confdefs.h <<_ACEOF
29505 +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29514 + if test "x$use_readline" == "xno"; then
29515 + { echo "$as_me:$LINENO: WARNING: readline headers could not be found, disabling readline support" >&5
29516 +echo "$as_me: WARNING: readline headers could not be found, disabling readline support" >&2;}
29518 + READLINE_DEFS="#define LUA_USE_READLINE"
29519 + LUA_LIBS="$LUA_LIBS -lreadline -lncurses"
29525 + *-mingw*) use_os=win32 ;;
29526 + *-darwin*) use_os=macosx ;;
29527 + *) use_os=posix ;;
29530 +POSIX_DEFS="#undef LUA_USE_POSIX"
29531 +LUA_DL_DEFS="#undef LUA_USE_DLOPEN"
29532 +LUA_BUILD_AS_DLL_DEFS="#undef LUA_BUILD_AS_DLL"
29534 +if test "x$use_os" == "xwin32"; then
29535 + LUA_BUILD_AS_DLL_DEFS="#define LUA_BUILD_AS_DLL"
29536 +elif test "x$use_os" == "xmacosx"; then
29537 + POSIX_DEFS="#define LUA_USE_POSIX"
29538 + LUA_DL_DEFS="#define LUA_DL_DYLD"
29539 +elif test "x$use_os" == "xposix"; then
29540 + POSIX_DEFS="#define LUA_USE_POSIX"
29541 + LUA_DL_DEFS="#define LUA_DL_DLOPEN"
29542 + LUA_LIBS="$LUA_LIBS -ldl"
29550 + ac_config_files="$ac_config_files Makefile src/Makefile src/luaconf.h.template etc/Makefile etc/lua.pc doc/Makefile test/Makefile"
29552 +cat >confcache <<\_ACEOF
29553 +# This file is a shell script that caches the results of configure
29554 +# tests run on this system so they can be shared between configure
29555 +# scripts and configure runs, see configure's option --config-cache.
29556 +# It is not useful on other systems. If it contains results you don't
29557 +# want to keep, you may remove or edit it.
29559 +# config.status only pays attention to the cache file if you give it
29560 +# the --recheck option to rerun configure.
29562 +# `ac_cv_env_foo' variables (set or unset) will be overridden when
29563 +# loading this file, other *unset* `ac_cv_foo' will be assigned the
29564 +# following values.
29568 +# The following way of writing the cache mishandles newlines in values,
29569 +# but we know of no workaround that is simple, portable, and efficient.
29570 +# So, don't put newlines in cache variables' values.
29571 +# Ultrix sh set writes to stderr and can't be redirected directly,
29572 +# and sets the high bit in the cache file unless we assign to the vars.
29575 + case `(ac_space=' '; set | grep ac_space) 2>&1` in
29577 + # `set' does not quote correctly, so add quotes (double-quote
29578 + # substitution turns \\\\ into \\, and sed turns \\ into \).
29581 + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29584 + # `set' quotes correctly as required by POSIX, so do not add quotes.
29586 + "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
29593 + s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29595 + /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29596 + : end' >>confcache
29597 +if diff $cache_file confcache >/dev/null 2>&1; then :; else
29598 + if test -w $cache_file; then
29599 + test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
29600 + cat confcache >$cache_file
29602 + echo "not updating unwritable cache $cache_file"
29607 +test "x$prefix" = xNONE && prefix=$ac_default_prefix
29608 +# Let make expand exec_prefix.
29609 +test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
29611 +# VPATH may cause trouble with some makes, so we remove $(srcdir),
29612 +# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
29613 +# trailing colons and then remove the whole line if VPATH becomes empty
29614 +# (actually we leave an empty line to preserve line numbers).
29615 +if test "x$srcdir" = x.; then
29616 + ac_vpsub='/^[ ]*VPATH[ ]*=/{
29617 +s/:*\$(srcdir):*/:/;
29618 +s/:*\${srcdir}:*/:/;
29619 +s/:*@srcdir@:*/:/;
29620 +s/^\([^=]*=[ ]*\):*/\1/;
29626 +DEFS=-DHAVE_CONFIG_H
29630 +for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
29631 + # 1. Remove the extension, and $U if already installed.
29632 + ac_i=`echo "$ac_i" |
29633 + sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
29635 + ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
29636 + ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
29638 +LIBOBJS=$ac_libobjs
29640 +LTLIBOBJS=$ac_ltlibobjs
29643 +if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
29644 + { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
29645 +Usually this means the macro was only invoked conditionally." >&5
29646 +echo "$as_me: error: conditional \"AMDEP\" was never defined.
29647 +Usually this means the macro was only invoked conditionally." >&2;}
29648 + { (exit 1); exit 1; }; }
29650 +if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
29651 + { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
29652 +Usually this means the macro was only invoked conditionally." >&5
29653 +echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
29654 +Usually this means the macro was only invoked conditionally." >&2;}
29655 + { (exit 1); exit 1; }; }
29657 +if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
29658 + { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
29659 +Usually this means the macro was only invoked conditionally." >&5
29660 +echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
29661 +Usually this means the macro was only invoked conditionally." >&2;}
29662 + { (exit 1); exit 1; }; }
29665 +: ${CONFIG_STATUS=./config.status}
29666 +ac_clean_files_save=$ac_clean_files
29667 +ac_clean_files="$ac_clean_files $CONFIG_STATUS"
29668 +{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
29669 +echo "$as_me: creating $CONFIG_STATUS" >&6;}
29670 +cat >$CONFIG_STATUS <<_ACEOF
29672 +# Generated by $as_me.
29673 +# Run this file to recreate the current configuration.
29674 +# Compiler output produced by configure, useful for debugging
29675 +# configure, is in config.log if it exists.
29678 +ac_cs_recheck=false
29679 +ac_cs_silent=false
29680 +SHELL=\${CONFIG_SHELL-$SHELL}
29683 +cat >>$CONFIG_STATUS <<\_ACEOF
29684 +## --------------------- ##
29685 +## M4sh Initialization. ##
29686 +## --------------------- ##
29688 +# Be Bourne compatible
29689 +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
29692 + # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
29693 + # is contrary to our usage. Disable this feature.
29694 + alias -g '${1+"$@"}'='"$@"'
29695 +elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
29698 +DUALCASE=1; export DUALCASE # for MKS sh
29700 +# Support unset when possible.
29701 +if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
29708 +# Work around bugs in pre-3.0 UWIN ksh.
29709 +$as_unset ENV MAIL MAILPATH
29716 + LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
29717 + LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
29718 + LC_TELEPHONE LC_TIME
29720 + if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
29721 + eval $as_var=C; export $as_var
29723 + $as_unset $as_var
29727 +# Required to use basename.
29728 +if expr a : '\(a\)' >/dev/null 2>&1; then
29734 +if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
29735 + as_basename=basename
29737 + as_basename=false
29741 +# Name of the executable.
29742 +as_me=`$as_basename "$0" ||
29743 +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
29744 + X"$0" : 'X\(//\)$' \| \
29745 + X"$0" : 'X\(/\)$' \| \
29746 + . : '\(.\)' 2>/dev/null ||
29748 + sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
29749 + /^X\/\(\/\/\)$/{ s//\1/; q; }
29750 + /^X\/\(\/\).*/{ s//\1/; q; }
29754 +# PATH needs CR, and LINENO needs CR and PATH.
29755 +# Avoid depending upon Character Ranges.
29756 +as_cr_letters='abcdefghijklmnopqrstuvwxyz'
29757 +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
29758 +as_cr_Letters=$as_cr_letters$as_cr_LETTERS
29759 +as_cr_digits='0123456789'
29760 +as_cr_alnum=$as_cr_Letters$as_cr_digits
29762 +# The user is always right.
29763 +if test "${PATH_SEPARATOR+set}" != set; then
29764 + echo "#! /bin/sh" >conf$$.sh
29765 + echo "exit 0" >>conf$$.sh
29766 + chmod +x conf$$.sh
29767 + if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
29768 + PATH_SEPARATOR=';'
29776 + as_lineno_1=$LINENO
29777 + as_lineno_2=$LINENO
29778 + as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
29779 + test "x$as_lineno_1" != "x$as_lineno_2" &&
29780 + test "x$as_lineno_3" = "x$as_lineno_2" || {
29781 + # Find who we are. Look in the path if we contain no path at all
29782 + # relative or not.
29784 + *[\\/]* ) as_myself=$0 ;;
29785 + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29786 +for as_dir in $PATH
29789 + test -z "$as_dir" && as_dir=.
29790 + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
29795 + # We did not find ourselves, most probably we were run as `sh COMMAND'
29796 + # in which case we are not to be found in the path.
29797 + if test "x$as_myself" = x; then
29800 + if test ! -f "$as_myself"; then
29801 + { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
29802 +echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
29803 + { (exit 1); exit 1; }; }
29805 + case $CONFIG_SHELL in
29807 + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29808 +for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
29811 + test -z "$as_dir" && as_dir=.
29812 + for as_base in sh bash ksh sh5; do
29815 + if ("$as_dir/$as_base" -c '
29816 + as_lineno_1=$LINENO
29817 + as_lineno_2=$LINENO
29818 + as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
29819 + test "x$as_lineno_1" != "x$as_lineno_2" &&
29820 + test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
29821 + $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
29822 + $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
29823 + CONFIG_SHELL=$as_dir/$as_base
29824 + export CONFIG_SHELL
29825 + exec "$CONFIG_SHELL" "$0" ${1+"$@"}
29833 + # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
29834 + # uniformly replaced by the line number. The first 'sed' inserts a
29835 + # line-number line before each line; the second 'sed' does the real
29836 + # work. The second script uses 'N' to pair each line-number line
29837 + # with the numbered line, and appends trailing '-' during
29838 + # substitution so that $LINENO is not a special case at line end.
29839 + # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
29840 + # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
29841 + sed '=' <$as_myself |
29846 + s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
29849 + s,^['$as_cr_digits']*\n,,
29850 + ' >$as_me.lineno &&
29851 + chmod +x $as_me.lineno ||
29852 + { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
29853 +echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
29854 + { (exit 1); exit 1; }; }
29856 + # Don't try to exec as it changes $[0], causing all sort of problems
29857 + # (the dirname of $[0] is not the place where we might find the
29858 + # original and so on. Autoconf is especially sensible to this).
29859 + . ./$as_me.lineno
29860 + # Exit status is that of the last command.
29865 +case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
29866 + *c*,-n*) ECHO_N= ECHO_C='
29868 + *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
29869 + *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
29872 +if expr a : '\(a\)' >/dev/null 2>&1; then
29878 +rm -f conf$$ conf$$.exe conf$$.file
29880 +if ln -s conf$$.file conf$$ 2>/dev/null; then
29881 + # We could just check for DJGPP; but this test a) works b) is more generic
29882 + # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
29883 + if test -f conf$$.exe; then
29884 + # Don't use ln at all; we don't have any links
29889 +elif ln conf$$.file conf$$ 2>/dev/null; then
29894 +rm -f conf$$ conf$$.exe conf$$.file
29896 +if mkdir -p . 2>/dev/null; then
29899 + test -d ./-p && rmdir ./-p
29903 +as_executable_p="test -f"
29905 +# Sed expression to map a string onto a valid CPP name.
29906 +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
29908 +# Sed expression to map a string onto a valid variable name.
29909 +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
29913 +# We need space, tab and new line, in precisely that order.
29923 +# Open the log real soon, to keep \$[0] and so on meaningful, and to
29924 +# report actual input values of CONFIG_FILES etc. instead of their
29925 +# values after options handling. Logging --version etc. is OK.
29926 +exec 5>>config.log
29929 + sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
29930 +## Running $as_me. ##
29935 +This file was extended by Autotoolized Lua $as_me 5.1.3, which was
29936 +generated by GNU Autoconf 2.59. Invocation command line was
29938 + CONFIG_FILES = $CONFIG_FILES
29939 + CONFIG_HEADERS = $CONFIG_HEADERS
29940 + CONFIG_LINKS = $CONFIG_LINKS
29941 + CONFIG_COMMANDS = $CONFIG_COMMANDS
29945 +echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
29949 +# Files that config.status was made for.
29950 +if test -n "$ac_config_files"; then
29951 + echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
29954 +if test -n "$ac_config_headers"; then
29955 + echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
29958 +if test -n "$ac_config_links"; then
29959 + echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
29962 +if test -n "$ac_config_commands"; then
29963 + echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
29966 +cat >>$CONFIG_STATUS <<\_ACEOF
29969 +\`$as_me' instantiates files from templates according to the
29970 +current configuration.
29972 +Usage: $0 [OPTIONS] [FILE]...
29974 + -h, --help print this help, then exit
29975 + -V, --version print version number, then exit
29976 + -q, --quiet do not print progress messages
29977 + -d, --debug don't remove temporary files
29978 + --recheck update $as_me by reconfiguring in the same conditions
29979 + --file=FILE[:TEMPLATE]
29980 + instantiate the configuration file FILE
29981 + --header=FILE[:TEMPLATE]
29982 + instantiate the configuration header FILE
29984 +Configuration files:
29987 +Configuration headers:
29990 +Configuration commands:
29993 +Report bugs to <bug-autoconf@gnu.org>."
29996 +cat >>$CONFIG_STATUS <<_ACEOF
29998 +Autotoolized Lua config.status 5.1.3
29999 +configured by $0, generated by GNU Autoconf 2.59,
30000 + with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
30002 +Copyright (C) 2003 Free Software Foundation, Inc.
30003 +This config.status script is free software; the Free Software Foundation
30004 +gives unlimited permission to copy, distribute and modify it."
30006 +INSTALL="$INSTALL"
30009 +cat >>$CONFIG_STATUS <<\_ACEOF
30010 +# If no file are specified by the user, then we need to provide default
30011 +# value. By we need to know if files were specified by the user.
30012 +ac_need_defaults=:
30013 +while test $# != 0
30017 + ac_option=`expr "x$1" : 'x\([^=]*\)='`
30018 + ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
30026 + *) # This is not an option, so the user has probably given explicit
30029 + ac_need_defaults=false;;
30032 + case $ac_option in
30033 + # Handling of the options.
30035 +cat >>$CONFIG_STATUS <<\_ACEOF
30036 + -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30037 + ac_cs_recheck=: ;;
30038 + --version | --vers* | -V )
30039 + echo "$ac_cs_version"; exit 0 ;;
30041 + # Conflict between --help and --header
30042 + { { echo "$as_me:$LINENO: error: ambiguous option: $1
30043 +Try \`$0 --help' for more information." >&5
30044 +echo "$as_me: error: ambiguous option: $1
30045 +Try \`$0 --help' for more information." >&2;}
30046 + { (exit 1); exit 1; }; };;
30047 + --help | --hel | -h )
30048 + echo "$ac_cs_usage"; exit 0 ;;
30049 + --debug | --d* | -d )
30051 + --file | --fil | --fi | --f )
30053 + CONFIG_FILES="$CONFIG_FILES $ac_optarg"
30054 + ac_need_defaults=false;;
30055 + --header | --heade | --head | --hea )
30057 + CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
30058 + ac_need_defaults=false;;
30059 + -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30060 + | -silent | --silent | --silen | --sile | --sil | --si | --s)
30061 + ac_cs_silent=: ;;
30063 + # This is an error.
30064 + -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
30065 +Try \`$0 --help' for more information." >&5
30066 +echo "$as_me: error: unrecognized option: $1
30067 +Try \`$0 --help' for more information." >&2;}
30068 + { (exit 1); exit 1; }; } ;;
30070 + *) ac_config_targets="$ac_config_targets $1" ;;
30076 +ac_configure_extra_args=
30078 +if $ac_cs_silent; then
30080 + ac_configure_extra_args="$ac_configure_extra_args --silent"
30084 +cat >>$CONFIG_STATUS <<_ACEOF
30085 +if \$ac_cs_recheck; then
30086 + echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
30087 + exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30092 +cat >>$CONFIG_STATUS <<_ACEOF
30094 +# INIT-COMMANDS section.
30097 +AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
30103 +cat >>$CONFIG_STATUS <<\_ACEOF
30104 +for ac_config_target in $ac_config_targets
30106 + case "$ac_config_target" in
30107 + # Handling of arguments.
30108 + "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
30109 + "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
30110 + "src/luaconf.h.template" ) CONFIG_FILES="$CONFIG_FILES src/luaconf.h.template" ;;
30111 + "etc/Makefile" ) CONFIG_FILES="$CONFIG_FILES etc/Makefile" ;;
30112 + "etc/lua.pc" ) CONFIG_FILES="$CONFIG_FILES etc/lua.pc" ;;
30113 + "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
30114 + "test/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
30115 + "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
30116 + "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
30117 + *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
30118 +echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
30119 + { (exit 1); exit 1; }; };;
30123 +# If the user did not use the arguments to specify the items to instantiate,
30124 +# then the envvar interface is used. Set only those that are not.
30125 +# We use the long form for the default assignment because of an extremely
30126 +# bizarre bug on SunOS 4.1.3.
30127 +if $ac_need_defaults; then
30128 + test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30129 + test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30130 + test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
30133 +# Have a temporary directory for convenience. Make it in the build tree
30134 +# simply because there is no reason to put it here, and in addition,
30135 +# creating and moving files from /tmp can sometimes cause problems.
30136 +# Create a temporary directory, and hook for its removal unless debugging.
30139 + trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
30140 + trap '{ (exit 1); exit 1; }' 1 2 13 15
30143 +# Create a (secure) tmp directory for tmp files.
30146 + tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
30147 + test -n "$tmp" && test -d "$tmp"
30150 + tmp=./confstat$$-$RANDOM
30151 + (umask 077 && mkdir $tmp)
30154 + echo "$me: cannot create a temporary directory in ." >&2
30155 + { (exit 1); exit 1; }
30160 +cat >>$CONFIG_STATUS <<_ACEOF
30163 +# CONFIG_FILES section.
30166 +# No need to generate the scripts if there are no CONFIG_FILES.
30167 +# This happens for instance when ./config.status config.h
30168 +if test -n "\$CONFIG_FILES"; then
30169 + # Protect against being on the right side of a sed subst in config.status.
30170 + sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
30171 + s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
30172 +s,@SHELL@,$SHELL,;t t
30173 +s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
30174 +s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
30175 +s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
30176 +s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
30177 +s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
30178 +s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
30179 +s,@exec_prefix@,$exec_prefix,;t t
30180 +s,@prefix@,$prefix,;t t
30181 +s,@program_transform_name@,$program_transform_name,;t t
30182 +s,@bindir@,$bindir,;t t
30183 +s,@sbindir@,$sbindir,;t t
30184 +s,@libexecdir@,$libexecdir,;t t
30185 +s,@datadir@,$datadir,;t t
30186 +s,@sysconfdir@,$sysconfdir,;t t
30187 +s,@sharedstatedir@,$sharedstatedir,;t t
30188 +s,@localstatedir@,$localstatedir,;t t
30189 +s,@libdir@,$libdir,;t t
30190 +s,@includedir@,$includedir,;t t
30191 +s,@oldincludedir@,$oldincludedir,;t t
30192 +s,@infodir@,$infodir,;t t
30193 +s,@mandir@,$mandir,;t t
30194 +s,@build_alias@,$build_alias,;t t
30195 +s,@host_alias@,$host_alias,;t t
30196 +s,@target_alias@,$target_alias,;t t
30197 +s,@DEFS@,$DEFS,;t t
30198 +s,@ECHO_C@,$ECHO_C,;t t
30199 +s,@ECHO_N@,$ECHO_N,;t t
30200 +s,@ECHO_T@,$ECHO_T,;t t
30201 +s,@LIBS@,$LIBS,;t t
30202 +s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
30203 +s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
30204 +s,@INSTALL_DATA@,$INSTALL_DATA,;t t
30205 +s,@CYGPATH_W@,$CYGPATH_W,;t t
30206 +s,@PACKAGE@,$PACKAGE,;t t
30207 +s,@VERSION@,$VERSION,;t t
30208 +s,@ACLOCAL@,$ACLOCAL,;t t
30209 +s,@AUTOCONF@,$AUTOCONF,;t t
30210 +s,@AUTOMAKE@,$AUTOMAKE,;t t
30211 +s,@AUTOHEADER@,$AUTOHEADER,;t t
30212 +s,@MAKEINFO@,$MAKEINFO,;t t
30213 +s,@install_sh@,$install_sh,;t t
30214 +s,@STRIP@,$STRIP,;t t
30215 +s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
30216 +s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
30217 +s,@mkdir_p@,$mkdir_p,;t t
30219 +s,@SET_MAKE@,$SET_MAKE,;t t
30220 +s,@am__leading_dot@,$am__leading_dot,;t t
30221 +s,@AMTAR@,$AMTAR,;t t
30222 +s,@am__tar@,$am__tar,;t t
30223 +s,@am__untar@,$am__untar,;t t
30225 +s,@CFLAGS@,$CFLAGS,;t t
30226 +s,@LDFLAGS@,$LDFLAGS,;t t
30227 +s,@CPPFLAGS@,$CPPFLAGS,;t t
30228 +s,@ac_ct_CC@,$ac_ct_CC,;t t
30229 +s,@EXEEXT@,$EXEEXT,;t t
30230 +s,@OBJEXT@,$OBJEXT,;t t
30231 +s,@DEPDIR@,$DEPDIR,;t t
30232 +s,@am__include@,$am__include,;t t
30233 +s,@am__quote@,$am__quote,;t t
30234 +s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
30235 +s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
30236 +s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
30237 +s,@CCDEPMODE@,$CCDEPMODE,;t t
30238 +s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
30239 +s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
30240 +s,@build@,$build,;t t
30241 +s,@build_cpu@,$build_cpu,;t t
30242 +s,@build_vendor@,$build_vendor,;t t
30243 +s,@build_os@,$build_os,;t t
30244 +s,@host@,$host,;t t
30245 +s,@host_cpu@,$host_cpu,;t t
30246 +s,@host_vendor@,$host_vendor,;t t
30247 +s,@host_os@,$host_os,;t t
30248 +s,@EGREP@,$EGREP,;t t
30249 +s,@LN_S@,$LN_S,;t t
30250 +s,@ECHO@,$ECHO,;t t
30252 +s,@ac_ct_AR@,$ac_ct_AR,;t t
30253 +s,@RANLIB@,$RANLIB,;t t
30254 +s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
30257 +s,@CXXFLAGS@,$CXXFLAGS,;t t
30258 +s,@ac_ct_CXX@,$ac_ct_CXX,;t t
30259 +s,@CXXDEPMODE@,$CXXDEPMODE,;t t
30260 +s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
30261 +s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
30262 +s,@CXXCPP@,$CXXCPP,;t t
30264 +s,@FFLAGS@,$FFLAGS,;t t
30265 +s,@ac_ct_F77@,$ac_ct_F77,;t t
30266 +s,@LIBTOOL@,$LIBTOOL,;t t
30267 +s,@READLINE_DEFS@,$READLINE_DEFS,;t t
30268 +s,@POSIX_DEFS@,$POSIX_DEFS,;t t
30269 +s,@LUA_DL_DEFS@,$LUA_DL_DEFS,;t t
30270 +s,@LUA_BUILD_AS_DLL_DEFS@,$LUA_BUILD_AS_DLL_DEFS,;t t
30271 +s,@LUA_LIBS@,$LUA_LIBS,;t t
30272 +s,@LIBOBJS@,$LIBOBJS,;t t
30273 +s,@LTLIBOBJS@,$LTLIBOBJS,;t t
30278 + cat >>$CONFIG_STATUS <<\_ACEOF
30279 + # Split the substitutions into bite-sized pieces for seds with
30280 + # small command number limits, like on Digital OSF/1 and HP-UX.
30281 + ac_max_sed_lines=48
30282 + ac_sed_frag=1 # Number of current file.
30283 + ac_beg=1 # First line for current file.
30284 + ac_end=$ac_max_sed_lines # Line after last line for current file.
30287 + while $ac_more_lines; do
30288 + if test $ac_beg -gt 1; then
30289 + sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
30291 + sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
30293 + if test ! -s $tmp/subs.frag; then
30294 + ac_more_lines=false
30296 + # The purpose of the label and of the branching condition is to
30297 + # speed up the sed processing (if there are no `@' at all, there
30298 + # is no need to browse any of the substitutions).
30299 + # These are the two extra sed commands mentioned above.
30301 + /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
30302 + if test -z "$ac_sed_cmds"; then
30303 + ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
30305 + ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
30307 + ac_sed_frag=`expr $ac_sed_frag + 1`
30309 + ac_end=`expr $ac_end + $ac_max_sed_lines`
30312 + if test -z "$ac_sed_cmds"; then
30315 +fi # test -n "$CONFIG_FILES"
30318 +cat >>$CONFIG_STATUS <<\_ACEOF
30319 +for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
30320 + # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
30322 + - | *:- | *:-:* ) # input from stdin
30324 + ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30325 + ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
30326 + *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30327 + ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
30328 + * ) ac_file_in=$ac_file.in ;;
30331 + # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
30332 + ac_dir=`(dirname "$ac_file") 2>/dev/null ||
30333 +$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30334 + X"$ac_file" : 'X\(//\)[^/]' \| \
30335 + X"$ac_file" : 'X\(//\)$' \| \
30336 + X"$ac_file" : 'X\(/\)' \| \
30337 + . : '\(.\)' 2>/dev/null ||
30338 +echo X"$ac_file" |
30339 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30340 + /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30341 + /^X\(\/\/\)$/{ s//\1/; q; }
30342 + /^X\(\/\).*/{ s//\1/; q; }
30344 + { if $as_mkdir_p; then
30345 + mkdir -p "$ac_dir"
30349 + while test ! -d "$as_dir"; do
30350 + as_dirs="$as_dir $as_dirs"
30351 + as_dir=`(dirname "$as_dir") 2>/dev/null ||
30352 +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30353 + X"$as_dir" : 'X\(//\)[^/]' \| \
30354 + X"$as_dir" : 'X\(//\)$' \| \
30355 + X"$as_dir" : 'X\(/\)' \| \
30356 + . : '\(.\)' 2>/dev/null ||
30358 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30359 + /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30360 + /^X\(\/\/\)$/{ s//\1/; q; }
30361 + /^X\(\/\).*/{ s//\1/; q; }
30364 + test ! -n "$as_dirs" || mkdir $as_dirs
30365 + fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
30366 +echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
30367 + { (exit 1); exit 1; }; }; }
30371 +if test "$ac_dir" != .; then
30372 + ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
30373 + # A "../" for each directory in $ac_dir_suffix.
30374 + ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
30376 + ac_dir_suffix= ac_top_builddir=
30380 + .) # No --srcdir option. We are building in place.
30382 + if test -z "$ac_top_builddir"; then
30385 + ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
30387 + [\\/]* | ?:[\\/]* ) # Absolute path.
30388 + ac_srcdir=$srcdir$ac_dir_suffix;
30389 + ac_top_srcdir=$srcdir ;;
30390 + *) # Relative path.
30391 + ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
30392 + ac_top_srcdir=$ac_top_builddir$srcdir ;;
30395 +# Do not use `cd foo && pwd` to compute absolute paths, because
30396 +# the directories may not exist.
30398 +.) ac_abs_builddir="$ac_dir";;
30400 + case "$ac_dir" in
30401 + .) ac_abs_builddir=`pwd`;;
30402 + [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
30403 + *) ac_abs_builddir=`pwd`/"$ac_dir";;
30406 +case $ac_abs_builddir in
30407 +.) ac_abs_top_builddir=${ac_top_builddir}.;;
30409 + case ${ac_top_builddir}. in
30410 + .) ac_abs_top_builddir=$ac_abs_builddir;;
30411 + [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
30412 + *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
30415 +case $ac_abs_builddir in
30416 +.) ac_abs_srcdir=$ac_srcdir;;
30418 + case $ac_srcdir in
30419 + .) ac_abs_srcdir=$ac_abs_builddir;;
30420 + [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
30421 + *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
30424 +case $ac_abs_builddir in
30425 +.) ac_abs_top_srcdir=$ac_top_srcdir;;
30427 + case $ac_top_srcdir in
30428 + .) ac_abs_top_srcdir=$ac_abs_builddir;;
30429 + [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
30430 + *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
30436 + [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
30437 + *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
30440 + if test x"$ac_file" != x-; then
30441 + { echo "$as_me:$LINENO: creating $ac_file" >&5
30442 +echo "$as_me: creating $ac_file" >&6;}
30445 + # Let's still pretend it is `configure' which instantiates (i.e., don't
30446 + # use $as_me), people would be surprised to read:
30447 + # /* config.h. Generated by config.status. */
30448 + if test x"$ac_file" = x-; then
30451 + configure_input="$ac_file. "
30453 + configure_input=$configure_input"Generated from `echo $ac_file_in |
30454 + sed 's,.*/,,'` by configure."
30456 + # First look for the input files in the build tree, otherwise in the
30458 + ac_file_inputs=`IFS=:
30459 + for f in $ac_file_in; do
30461 + -) echo $tmp/stdin ;;
30463 + # Absolute (can't be DOS-style, as IFS=:)
30464 + test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
30465 +echo "$as_me: error: cannot find input file: $f" >&2;}
30466 + { (exit 1); exit 1; }; }
30469 + if test -f "$f"; then
30472 + elif test -f "$srcdir/$f"; then
30474 + echo "$srcdir/$f"
30477 + { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
30478 +echo "$as_me: error: cannot find input file: $f" >&2;}
30479 + { (exit 1); exit 1; }; }
30482 + done` || { (exit 1); exit 1; }
30484 +cat >>$CONFIG_STATUS <<_ACEOF
30488 +cat >>$CONFIG_STATUS <<\_ACEOF
30490 +/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30491 +s,@configure_input@,$configure_input,;t t
30492 +s,@srcdir@,$ac_srcdir,;t t
30493 +s,@abs_srcdir@,$ac_abs_srcdir,;t t
30494 +s,@top_srcdir@,$ac_top_srcdir,;t t
30495 +s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
30496 +s,@builddir@,$ac_builddir,;t t
30497 +s,@abs_builddir@,$ac_abs_builddir,;t t
30498 +s,@top_builddir@,$ac_top_builddir,;t t
30499 +s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
30500 +s,@INSTALL@,$ac_INSTALL,;t t
30501 +" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
30503 + if test x"$ac_file" != x-; then
30504 + mv $tmp/out $ac_file
30512 +cat >>$CONFIG_STATUS <<\_ACEOF
30515 +# CONFIG_HEADER section.
30518 +# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
30519 +# NAME is the cpp macro being defined and VALUE is the value it is being given.
30521 +# ac_d sets the value in "#define NAME VALUE" lines.
30522 +ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
30523 +ac_dB='[ ].*$,\1#\2'
30526 +# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
30527 +ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
30528 +ac_uB='$,\1#\2define\3'
30532 +for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
30533 + # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
30535 + - | *:- | *:-:* ) # input from stdin
30537 + ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30538 + ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
30539 + *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30540 + ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
30541 + * ) ac_file_in=$ac_file.in ;;
30544 + test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
30545 +echo "$as_me: creating $ac_file" >&6;}
30547 + # First look for the input files in the build tree, otherwise in the
30549 + ac_file_inputs=`IFS=:
30550 + for f in $ac_file_in; do
30552 + -) echo $tmp/stdin ;;
30554 + # Absolute (can't be DOS-style, as IFS=:)
30555 + test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
30556 +echo "$as_me: error: cannot find input file: $f" >&2;}
30557 + { (exit 1); exit 1; }; }
30558 + # Do quote $f, to prevent DOS paths from being IFS'd.
30561 + if test -f "$f"; then
30564 + elif test -f "$srcdir/$f"; then
30566 + echo "$srcdir/$f"
30569 + { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
30570 +echo "$as_me: error: cannot find input file: $f" >&2;}
30571 + { (exit 1); exit 1; }; }
30574 + done` || { (exit 1); exit 1; }
30575 + # Remove the trailing spaces.
30576 + sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
30580 +# Transform confdefs.h into two sed scripts, `conftest.defines' and
30581 +# `conftest.undefs', that substitutes the proper values into
30582 +# config.h.in to produce config.h. The first handles `#define'
30583 +# templates, and the second `#undef' templates.
30584 +# And first: Protect against being on the right side of a sed subst in
30585 +# config.status. Protect against being in an unquoted here document
30586 +# in config.status.
30587 +rm -f conftest.defines conftest.undefs
30588 +# Using a here document instead of a string reduces the quoting nightmare.
30589 +# Putting comments in sed scripts is not portable.
30591 +# `end' is used to avoid that the second main sed command (meant for
30592 +# 0-ary CPP macros) applies to n-ary macro definitions.
30593 +# See the Autoconf documentation for `clear'.
30594 +cat >confdef2sed.sed <<\_ACEOF
30599 +s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
30601 +s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
30604 +# If some macros were called several times there might be several times
30605 +# the same #defines, which is useless. Nevertheless, we may not want to
30606 +# sort them, since we want the *last* AC-DEFINE to be honored.
30607 +uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
30608 +sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
30609 +rm -f confdef2sed.sed
30611 +# This sed command replaces #undef with comments. This is necessary, for
30612 +# example, in the case of _POSIX_SOURCE, which is predefined and required
30613 +# on some systems where configure will not decide to define it.
30614 +cat >>conftest.undefs <<\_ACEOF
30615 +s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
30618 +# Break up conftest.defines because some shells have a limit on the size
30619 +# of here documents, and old seds have small limits too (100 cmds).
30620 +echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
30621 +echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
30622 +echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
30623 +echo ' :' >>$CONFIG_STATUS
30624 +rm -f conftest.tail
30625 +while grep . conftest.defines >/dev/null
30627 + # Write a limited-size here document to $tmp/defines.sed.
30628 + echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
30629 + # Speed up: don't consider the non `#define' lines.
30630 + echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
30631 + # Work around the forget-to-reset-the-flag bug.
30632 + echo 't clr' >>$CONFIG_STATUS
30633 + echo ': clr' >>$CONFIG_STATUS
30634 + sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
30636 + sed -f $tmp/defines.sed $tmp/in >$tmp/out
30638 + mv $tmp/out $tmp/in
30639 +' >>$CONFIG_STATUS
30640 + sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
30641 + rm -f conftest.defines
30642 + mv conftest.tail conftest.defines
30644 +rm -f conftest.defines
30645 +echo ' fi # grep' >>$CONFIG_STATUS
30646 +echo >>$CONFIG_STATUS
30648 +# Break up conftest.undefs because some shells have a limit on the size
30649 +# of here documents, and old seds have small limits too (100 cmds).
30650 +echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
30651 +rm -f conftest.tail
30652 +while grep . conftest.undefs >/dev/null
30654 + # Write a limited-size here document to $tmp/undefs.sed.
30655 + echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
30656 + # Speed up: don't consider the non `#undef'
30657 + echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
30658 + # Work around the forget-to-reset-the-flag bug.
30659 + echo 't clr' >>$CONFIG_STATUS
30660 + echo ': clr' >>$CONFIG_STATUS
30661 + sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
30663 + sed -f $tmp/undefs.sed $tmp/in >$tmp/out
30665 + mv $tmp/out $tmp/in
30666 +' >>$CONFIG_STATUS
30667 + sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
30668 + rm -f conftest.undefs
30669 + mv conftest.tail conftest.undefs
30671 +rm -f conftest.undefs
30673 +cat >>$CONFIG_STATUS <<\_ACEOF
30674 + # Let's still pretend it is `configure' which instantiates (i.e., don't
30675 + # use $as_me), people would be surprised to read:
30676 + # /* config.h. Generated by config.status. */
30677 + if test x"$ac_file" = x-; then
30678 + echo "/* Generated by configure. */" >$tmp/config.h
30680 + echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
30682 + cat $tmp/in >>$tmp/config.h
30684 + if test x"$ac_file" != x-; then
30685 + if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
30686 + { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
30687 +echo "$as_me: $ac_file is unchanged" >&6;}
30689 + ac_dir=`(dirname "$ac_file") 2>/dev/null ||
30690 +$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30691 + X"$ac_file" : 'X\(//\)[^/]' \| \
30692 + X"$ac_file" : 'X\(//\)$' \| \
30693 + X"$ac_file" : 'X\(/\)' \| \
30694 + . : '\(.\)' 2>/dev/null ||
30695 +echo X"$ac_file" |
30696 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30697 + /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30698 + /^X\(\/\/\)$/{ s//\1/; q; }
30699 + /^X\(\/\).*/{ s//\1/; q; }
30701 + { if $as_mkdir_p; then
30702 + mkdir -p "$ac_dir"
30706 + while test ! -d "$as_dir"; do
30707 + as_dirs="$as_dir $as_dirs"
30708 + as_dir=`(dirname "$as_dir") 2>/dev/null ||
30709 +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30710 + X"$as_dir" : 'X\(//\)[^/]' \| \
30711 + X"$as_dir" : 'X\(//\)$' \| \
30712 + X"$as_dir" : 'X\(/\)' \| \
30713 + . : '\(.\)' 2>/dev/null ||
30715 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30716 + /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30717 + /^X\(\/\/\)$/{ s//\1/; q; }
30718 + /^X\(\/\).*/{ s//\1/; q; }
30721 + test ! -n "$as_dirs" || mkdir $as_dirs
30722 + fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
30723 +echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
30724 + { (exit 1); exit 1; }; }; }
30727 + mv $tmp/config.h $ac_file
30730 + cat $tmp/config.h
30731 + rm -f $tmp/config.h
30733 +# Compute $ac_file's index in $config_headers.
30735 +for _am_header in $config_headers :; do
30736 + case $_am_header in
30737 + $ac_file | $ac_file:* )
30740 + _am_stamp_count=`expr $_am_stamp_count + 1` ;;
30743 +echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
30744 +$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30745 + X$ac_file : 'X\(//\)[^/]' \| \
30746 + X$ac_file : 'X\(//\)$' \| \
30747 + X$ac_file : 'X\(/\)' \| \
30748 + . : '\(.\)' 2>/dev/null ||
30750 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30751 + /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30752 + /^X\(\/\/\)$/{ s//\1/; q; }
30753 + /^X\(\/\).*/{ s//\1/; q; }
30754 + s/.*/./; q'`/stamp-h$_am_stamp_count
30757 +cat >>$CONFIG_STATUS <<\_ACEOF
30760 +# CONFIG_COMMANDS section.
30762 +for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
30763 + ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
30764 + ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
30765 + ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
30766 +$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30767 + X"$ac_dest" : 'X\(//\)[^/]' \| \
30768 + X"$ac_dest" : 'X\(//\)$' \| \
30769 + X"$ac_dest" : 'X\(/\)' \| \
30770 + . : '\(.\)' 2>/dev/null ||
30771 +echo X"$ac_dest" |
30772 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30773 + /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30774 + /^X\(\/\/\)$/{ s//\1/; q; }
30775 + /^X\(\/\).*/{ s//\1/; q; }
30777 + { if $as_mkdir_p; then
30778 + mkdir -p "$ac_dir"
30782 + while test ! -d "$as_dir"; do
30783 + as_dirs="$as_dir $as_dirs"
30784 + as_dir=`(dirname "$as_dir") 2>/dev/null ||
30785 +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30786 + X"$as_dir" : 'X\(//\)[^/]' \| \
30787 + X"$as_dir" : 'X\(//\)$' \| \
30788 + X"$as_dir" : 'X\(/\)' \| \
30789 + . : '\(.\)' 2>/dev/null ||
30791 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30792 + /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30793 + /^X\(\/\/\)$/{ s//\1/; q; }
30794 + /^X\(\/\).*/{ s//\1/; q; }
30797 + test ! -n "$as_dirs" || mkdir $as_dirs
30798 + fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
30799 +echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
30800 + { (exit 1); exit 1; }; }; }
30804 +if test "$ac_dir" != .; then
30805 + ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
30806 + # A "../" for each directory in $ac_dir_suffix.
30807 + ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
30809 + ac_dir_suffix= ac_top_builddir=
30813 + .) # No --srcdir option. We are building in place.
30815 + if test -z "$ac_top_builddir"; then
30818 + ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
30820 + [\\/]* | ?:[\\/]* ) # Absolute path.
30821 + ac_srcdir=$srcdir$ac_dir_suffix;
30822 + ac_top_srcdir=$srcdir ;;
30823 + *) # Relative path.
30824 + ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
30825 + ac_top_srcdir=$ac_top_builddir$srcdir ;;
30828 +# Do not use `cd foo && pwd` to compute absolute paths, because
30829 +# the directories may not exist.
30831 +.) ac_abs_builddir="$ac_dir";;
30833 + case "$ac_dir" in
30834 + .) ac_abs_builddir=`pwd`;;
30835 + [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
30836 + *) ac_abs_builddir=`pwd`/"$ac_dir";;
30839 +case $ac_abs_builddir in
30840 +.) ac_abs_top_builddir=${ac_top_builddir}.;;
30842 + case ${ac_top_builddir}. in
30843 + .) ac_abs_top_builddir=$ac_abs_builddir;;
30844 + [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
30845 + *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
30848 +case $ac_abs_builddir in
30849 +.) ac_abs_srcdir=$ac_srcdir;;
30851 + case $ac_srcdir in
30852 + .) ac_abs_srcdir=$ac_abs_builddir;;
30853 + [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
30854 + *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
30857 +case $ac_abs_builddir in
30858 +.) ac_abs_top_srcdir=$ac_top_srcdir;;
30860 + case $ac_top_srcdir in
30861 + .) ac_abs_top_srcdir=$ac_abs_builddir;;
30862 + [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
30863 + *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
30868 + { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
30869 +echo "$as_me: executing $ac_dest commands" >&6;}
30871 + depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
30872 + # Strip MF so we end up with the name of the file.
30873 + mf=`echo "$mf" | sed -e 's/:.*$//'`
30874 + # Check whether this is an Automake generated Makefile or not.
30875 + # We used to match only the files named `Makefile.in', but
30876 + # some people rename them; so instead we look at the file content.
30877 + # Grep'ing the first line is not enough: some people post-process
30878 + # each Makefile.in and add a new line on top of each file to say so.
30879 + # So let's grep whole file.
30880 + if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
30881 + dirpart=`(dirname "$mf") 2>/dev/null ||
30882 +$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30883 + X"$mf" : 'X\(//\)[^/]' \| \
30884 + X"$mf" : 'X\(//\)$' \| \
30885 + X"$mf" : 'X\(/\)' \| \
30886 + . : '\(.\)' 2>/dev/null ||
30888 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30889 + /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30890 + /^X\(\/\/\)$/{ s//\1/; q; }
30891 + /^X\(\/\).*/{ s//\1/; q; }
30896 + # Extract the definition of DEPDIR, am__include, and am__quote
30897 + # from the Makefile without running `make'.
30898 + DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
30899 + test -z "$DEPDIR" && continue
30900 + am__include=`sed -n 's/^am__include = //p' < "$mf"`
30901 + test -z "am__include" && continue
30902 + am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
30903 + # When using ansi2knr, U may be empty or an underscore; expand it
30904 + U=`sed -n 's/^U = //p' < "$mf"`
30905 + # Find all dependency output files, they are included files with
30906 + # $(DEPDIR) in their names. We invoke sed twice because it is the
30907 + # simplest approach to changing $(DEPDIR) to its actual value in the
30909 + for file in `sed -n "
30910 + s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
30911 + sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
30912 + # Make sure the directory exists.
30913 + test -f "$dirpart/$file" && continue
30914 + fdir=`(dirname "$file") 2>/dev/null ||
30915 +$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30916 + X"$file" : 'X\(//\)[^/]' \| \
30917 + X"$file" : 'X\(//\)$' \| \
30918 + X"$file" : 'X\(/\)' \| \
30919 + . : '\(.\)' 2>/dev/null ||
30921 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30922 + /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30923 + /^X\(\/\/\)$/{ s//\1/; q; }
30924 + /^X\(\/\).*/{ s//\1/; q; }
30926 + { if $as_mkdir_p; then
30927 + mkdir -p $dirpart/$fdir
30929 + as_dir=$dirpart/$fdir
30931 + while test ! -d "$as_dir"; do
30932 + as_dirs="$as_dir $as_dirs"
30933 + as_dir=`(dirname "$as_dir") 2>/dev/null ||
30934 +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30935 + X"$as_dir" : 'X\(//\)[^/]' \| \
30936 + X"$as_dir" : 'X\(//\)$' \| \
30937 + X"$as_dir" : 'X\(/\)' \| \
30938 + . : '\(.\)' 2>/dev/null ||
30940 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30941 + /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30942 + /^X\(\/\/\)$/{ s//\1/; q; }
30943 + /^X\(\/\).*/{ s//\1/; q; }
30946 + test ! -n "$as_dirs" || mkdir $as_dirs
30947 + fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
30948 +echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
30949 + { (exit 1); exit 1; }; }; }
30951 + # echo "creating $dirpart/$file"
30952 + echo '# dummy' > "$dirpart/$file"
30960 +cat >>$CONFIG_STATUS <<\_ACEOF
30962 +{ (exit 0); exit 0; }
30964 +chmod +x $CONFIG_STATUS
30965 +ac_clean_files=$ac_clean_files_save
30968 +# configure is writing to config.log, and then calls config.status.
30969 +# config.status does its own redirection, appending to config.log.
30970 +# Unfortunately, on DOS this fails, as config.log is still kept open
30971 +# by configure, so config.status won't be able to write to it; its
30972 +# output is simply discarded. So we exec the FD to /dev/null,
30973 +# effectively closing config.log, so it can be properly (re)opened and
30974 +# appended to by config.status. When coming back to configure, we
30975 +# need to make the FD available again.
30976 +if test "$no_create" != yes; then
30978 + ac_config_status_args=
30979 + test "$silent" = yes &&
30980 + ac_config_status_args="$ac_config_status_args --quiet"
30982 + $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
30983 + exec 5>>config.log
30984 + # Use ||, not &&, to avoid exiting from the if with $? = 1, which
30985 + # would make configure fail if this is the last instruction.
30986 + $ac_cs_success || { (exit 1); exit 1; }
30989 diff -urN lua-5.1.4/configure.ac lua-5.1.4-autotoolize/configure.ac
30990 --- lua-5.1.4/configure.ac 1970-01-01 01:00:00.000000000 +0100
30991 +++ lua-5.1.4-autotoolize/configure.ac 2008-09-03 13:18:37.000000000 +0200
30994 +AC_INIT([Autotoolized Lua], [5.1.3], [], [lua-at])
30996 +AC_CONFIG_HEADERS([config.h])
30997 +AC_CONFIG_SRCDIR([src/lapi.c])
30999 +AM_INIT_AUTOMAKE([1.9 foreign])
31006 + [AC_HELP_STRING([--with-readline], [Use readline for interpreter input [default=yes]])],
31007 + [use_readline=$withval],
31008 + [use_readline=yes]
31013 +# Check for readline
31014 +READLINE_DEFS="#undef LUA_USE_READLINE"
31015 +if test "x$use_readline" == "xyes"; then
31016 + AC_CHECK_LIB([readline], [readline], [], [use_readline=no], [-lncurses])
31017 + AC_CHECK_HEADERS([readline/readline.h readline/history.h], [], [use_readline=no])
31018 + if test "x$use_readline" == "xno"; then
31019 + AC_MSG_WARN([readline headers could not be found, disabling readline support])
31021 + READLINE_DEFS="#define LUA_USE_READLINE"
31022 + LUA_LIBS="$LUA_LIBS -lreadline -lncurses"
31025 +AC_SUBST(READLINE_DEFS)
31028 + *-mingw*) use_os=win32 ;;
31029 + *-darwin*) use_os=macosx ;;
31030 + *) use_os=posix ;;
31033 +POSIX_DEFS="#undef LUA_USE_POSIX"
31034 +LUA_DL_DEFS="#undef LUA_USE_DLOPEN"
31035 +LUA_BUILD_AS_DLL_DEFS="#undef LUA_BUILD_AS_DLL"
31037 +if test "x$use_os" == "xwin32"; then
31038 + LUA_BUILD_AS_DLL_DEFS="#define LUA_BUILD_AS_DLL"
31039 +elif test "x$use_os" == "xmacosx"; then
31040 + POSIX_DEFS="#define LUA_USE_POSIX"
31041 + LUA_DL_DEFS="#define LUA_DL_DYLD"
31042 +elif test "x$use_os" == "xposix"; then
31043 + POSIX_DEFS="#define LUA_USE_POSIX"
31044 + LUA_DL_DEFS="#define LUA_DL_DLOPEN"
31045 + LUA_LIBS="$LUA_LIBS -ldl"
31047 +AC_SUBST(POSIX_DEFS)
31048 +AC_SUBST(LUA_DL_DEFS)
31049 +AC_SUBST(LUA_BUILD_AS_DLL_DEFS)
31051 +AC_SUBST(LUA_LIBS)
31053 +AC_CONFIG_FILES([Makefile
31055 + src/luaconf.h.template
31061 diff -urN lua-5.1.4/depcomp lua-5.1.4-autotoolize/depcomp
31062 --- lua-5.1.4/depcomp 1970-01-01 01:00:00.000000000 +0100
31063 +++ lua-5.1.4-autotoolize/depcomp 2008-09-03 13:18:23.000000000 +0200
31066 +# depcomp - compile a program generating dependencies as side-effects
31068 +scriptversion=2005-07-09.11
31070 +# Copyright (C) 1999, 2000, 2003, 2004, 2005 Free Software Foundation, Inc.
31072 +# This program is free software; you can redistribute it and/or modify
31073 +# it under the terms of the GNU General Public License as published by
31074 +# the Free Software Foundation; either version 2, or (at your option)
31075 +# any later version.
31077 +# This program is distributed in the hope that it will be useful,
31078 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
31079 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
31080 +# GNU General Public License for more details.
31082 +# You should have received a copy of the GNU General Public License
31083 +# along with this program; if not, write to the Free Software
31084 +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
31085 +# 02110-1301, USA.
31087 +# As a special exception to the GNU General Public License, if you
31088 +# distribute this file as part of a program that contains a
31089 +# configuration script generated by Autoconf, you may include it under
31090 +# the same distribution terms that you use for the rest of that program.
31092 +# Originally written by Alexandre Oliva <oliva@dcc.unicamp.br>.
31096 + echo "$0: No command. Try \`$0 --help' for more information." 1>&2
31101 +Usage: depcomp [--help] [--version] PROGRAM [ARGS]
31103 +Run PROGRAMS ARGS to compile a file, generating dependencies
31106 +Environment variables:
31107 + depmode Dependency tracking mode.
31108 + source Source file read by `PROGRAMS ARGS'.
31109 + object Object file output by `PROGRAMS ARGS'.
31110 + DEPDIR directory where to store dependencies.
31111 + depfile Dependency file to output.
31112 + tmpdepfile Temporary file to use when outputing dependencies.
31113 + libtool Whether libtool is used (yes/no).
31115 +Report bugs to <bug-automake@gnu.org>.
31120 + echo "depcomp $scriptversion"
31125 +if test -z "$depmode" || test -z "$source" || test -z "$object"; then
31126 + echo "depcomp: Variables source, object and depmode must be set" 1>&2
31130 +# Dependencies for sub/bar.o or sub/bar.obj go into sub/.deps/bar.Po.
31131 +depfile=${depfile-`echo "$object" |
31132 + sed 's|[^\\/]*$|'${DEPDIR-.deps}'/&|;s|\.\([^.]*\)$|.P\1|;s|Pobj$|Po|'`}
31133 +tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`}
31135 +rm -f "$tmpdepfile"
31137 +# Some modes work just like other modes, but use different flags. We
31138 +# parameterize here, but still list the modes in the big case below,
31139 +# to make depend.m4 easier to write. Note that we *cannot* use a case
31140 +# here, because this file can only contain one case statement.
31141 +if test "$depmode" = hp; then
31142 + # HP compiler uses -M and no extra arg.
31147 +if test "$depmode" = dashXmstdout; then
31148 + # This is just like dashmstdout with a different argument.
31150 + depmode=dashmstdout
31153 +case "$depmode" in
31155 +## gcc 3 implements dependency tracking that does exactly what
31156 +## we want. Yay! Note: for some reason libtool 1.4 doesn't like
31157 +## it if -MD -MP comes after the -MF stuff. Hmm.
31158 + "$@" -MT "$object" -MD -MP -MF "$tmpdepfile"
31160 + if test $stat -eq 0; then :
31162 + rm -f "$tmpdepfile"
31165 + mv "$tmpdepfile" "$depfile"
31169 +## There are various ways to get dependency output from gcc. Here's
31170 +## why we pick this rather obscure method:
31171 +## - Don't want to use -MD because we'd like the dependencies to end
31172 +## up in a subdir. Having to rename by hand is ugly.
31173 +## (We might end up doing this anyway to support other compilers.)
31174 +## - The DEPENDENCIES_OUTPUT environment variable makes gcc act like
31175 +## -MM, not -M (despite what the docs say).
31176 +## - Using -M directly means running the compiler twice (even worse
31177 +## than renaming).
31178 + if test -z "$gccflag"; then
31181 + "$@" -Wp,"$gccflag$tmpdepfile"
31183 + if test $stat -eq 0; then :
31185 + rm -f "$tmpdepfile"
31189 + echo "$object : \\" > "$depfile"
31190 + alpha=ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz
31191 +## The second -e expression handles DOS-style file names with drive letters.
31192 + sed -e 's/^[^:]*: / /' \
31193 + -e 's/^['$alpha']:\/[^:]*: / /' < "$tmpdepfile" >> "$depfile"
31194 +## This next piece of magic avoids the `deleted header file' problem.
31195 +## The problem is that when a header file which appears in a .P file
31196 +## is deleted, the dependency causes make to die (because there is
31197 +## typically no way to rebuild the header). We avoid this by adding
31198 +## dummy dependencies for each header file. Too bad gcc doesn't do
31199 +## this for us directly.
31201 +' < "$tmpdepfile" |
31202 +## Some versions of gcc put a space before the `:'. On the theory
31203 +## that the space means something, we add a space to the output as
31205 +## Some versions of the HPUX 10.20 sed can't process this invocation
31206 +## correctly. Breaking it into two sed invocations is a workaround.
31207 + sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
31208 + rm -f "$tmpdepfile"
31212 + # This case exists only to let depend.m4 do its work. It works by
31213 + # looking at the text of this script. This case will never be run,
31214 + # since it is checked for above.
31219 + if test "$libtool" = yes; then
31220 + "$@" "-Wp,-MDupdate,$tmpdepfile"
31222 + "$@" -MDupdate "$tmpdepfile"
31225 + if test $stat -eq 0; then :
31227 + rm -f "$tmpdepfile"
31232 + if test -f "$tmpdepfile"; then # yes, the sourcefile depend on other files
31233 + echo "$object : \\" > "$depfile"
31235 + # Clip off the initial element (the dependent). Don't try to be
31236 + # clever and replace this with sed code, as IRIX sed won't handle
31237 + # lines with more than a fixed number of characters (4096 in
31238 + # IRIX 6.2 sed, 8192 in IRIX 6.5). We also remove comment lines;
31239 + # the IRIX cc adds comments like `#:fec' to the end of the
31240 + # dependency line.
31242 +' < "$tmpdepfile" \
31243 + | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' | \
31248 + # The second pass generates a dummy entry for each header file.
31250 +' < "$tmpdepfile" \
31251 + | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \
31254 + # The sourcefile does not contain any dependencies, so just
31255 + # store a dummy comment line, to avoid errors with the Makefile
31256 + # "include basename.Plo" scheme.
31257 + echo "#dummy" > "$depfile"
31259 + rm -f "$tmpdepfile"
31263 + # The C for AIX Compiler uses -M and outputs the dependencies
31264 + # in a .u file. In older versions, this file always lives in the
31265 + # current directory. Also, the AIX compiler puts `$object:' at the
31266 + # start of each line; $object doesn't have directory information.
31267 + # Version 6 uses the directory in both cases.
31268 + stripped=`echo "$object" | sed 's/\(.*\)\..*$/\1/'`
31269 + tmpdepfile="$stripped.u"
31270 + if test "$libtool" = yes; then
31277 + if test -f "$tmpdepfile"; then :
31279 + stripped=`echo "$stripped" | sed 's,^.*/,,'`
31280 + tmpdepfile="$stripped.u"
31283 + if test $stat -eq 0; then :
31285 + rm -f "$tmpdepfile"
31289 + if test -f "$tmpdepfile"; then
31290 + outname="$stripped.o"
31291 + # Each line is of the form `foo.o: dependent.h'.
31292 + # Do two passes, one to just change these to
31293 + # `$object: dependent.h' and one to simply `dependent.h:'.
31294 + sed -e "s,^$outname:,$object :," < "$tmpdepfile" > "$depfile"
31295 + sed -e "s,^$outname: \(.*\)$,\1:," < "$tmpdepfile" >> "$depfile"
31297 + # The sourcefile does not contain any dependencies, so just
31298 + # store a dummy comment line, to avoid errors with the Makefile
31299 + # "include basename.Plo" scheme.
31300 + echo "#dummy" > "$depfile"
31302 + rm -f "$tmpdepfile"
31306 + # Intel's C compiler understands `-MD -MF file'. However on
31307 + # icc -MD -MF foo.d -c -o sub/foo.o sub/foo.c
31308 + # ICC 7.0 will fill foo.d with something like
31309 + # foo.o: sub/foo.c
31310 + # foo.o: sub/foo.h
31311 + # which is wrong. We want:
31312 + # sub/foo.o: sub/foo.c
31313 + # sub/foo.o: sub/foo.h
31316 + # ICC 7.1 will output
31317 + # foo.o: sub/foo.c sub/foo.h
31318 + # and will wrap long lines using \ :
31319 + # foo.o: sub/foo.c ... \
31320 + # sub/foo.h ... \
31323 + "$@" -MD -MF "$tmpdepfile"
31325 + if test $stat -eq 0; then :
31327 + rm -f "$tmpdepfile"
31331 + # Each line is of the form `foo.o: dependent.h',
31332 + # or `foo.o: dep1.h dep2.h \', or ` dep3.h dep4.h \'.
31333 + # Do two passes, one to just change these to
31334 + # `$object: dependent.h' and one to simply `dependent.h:'.
31335 + sed "s,^[^:]*:,$object :," < "$tmpdepfile" > "$depfile"
31336 + # Some versions of the HPUX 10.20 sed can't process this invocation
31337 + # correctly. Breaking it into two sed invocations is a workaround.
31338 + sed 's,^[^:]*: \(.*\)$,\1,;s/^\\$//;/^$/d;/:$/d' < "$tmpdepfile" |
31339 + sed -e 's/$/ :/' >> "$depfile"
31340 + rm -f "$tmpdepfile"
31344 + # The Tru64 compiler uses -MD to generate dependencies as a side
31345 + # effect. `cc -MD -o foo.o ...' puts the dependencies into `foo.o.d'.
31346 + # At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put
31347 + # dependencies in `foo.d' instead, so we check for that too.
31348 + # Subdirectories are respected.
31349 + dir=`echo "$object" | sed -e 's|/[^/]*$|/|'`
31350 + test "x$dir" = "x$object" && dir=
31351 + base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'`
31353 + if test "$libtool" = yes; then
31354 + # With Tru64 cc, shared objects can also be used to make a
31355 + # static library. This mecanism is used in libtool 1.4 series to
31356 + # handle both shared and static libraries in a single compilation.
31357 + # With libtool 1.4, dependencies were output in $dir.libs/$base.lo.d.
31359 + # With libtool 1.5 this exception was removed, and libtool now
31360 + # generates 2 separate objects for the 2 libraries. These two
31361 + # compilations output dependencies in in $dir.libs/$base.o.d and
31362 + # in $dir$base.o.d. We have to check for both files, because
31363 + # one of the two compilations can be disabled. We should prefer
31364 + # $dir$base.o.d over $dir.libs/$base.o.d because the latter is
31365 + # automatically cleaned when .libs/ is deleted, while ignoring
31366 + # the former would cause a distcleancheck panic.
31367 + tmpdepfile1=$dir.libs/$base.lo.d # libtool 1.4
31368 + tmpdepfile2=$dir$base.o.d # libtool 1.5
31369 + tmpdepfile3=$dir.libs/$base.o.d # libtool 1.5
31370 + tmpdepfile4=$dir.libs/$base.d # Compaq CCC V6.2-504
31373 + tmpdepfile1=$dir$base.o.d
31374 + tmpdepfile2=$dir$base.d
31375 + tmpdepfile3=$dir$base.d
31376 + tmpdepfile4=$dir$base.d
31381 + if test $stat -eq 0; then :
31383 + rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4"
31387 + for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4"
31389 + test -f "$tmpdepfile" && break
31391 + if test -f "$tmpdepfile"; then
31392 + sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile"
31393 + # That's a tab and a space in the [].
31394 + sed -e 's,^.*\.[a-z]*:[ ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile"
31396 + echo "#dummy" > "$depfile"
31398 + rm -f "$tmpdepfile"
31402 + # This comment above is used by automake to tell side-effect
31403 + # dependency tracking mechanisms from slower ones.
31406 + # Important note: in order to support this mode, a compiler *must*
31407 + # always write the preprocessed file to stdout, regardless of -o.
31410 + # Remove the call to Libtool.
31411 + if test "$libtool" = yes; then
31412 + while test $1 != '--mode=compile'; do
31418 + # Remove `-o $object'.
31430 + set fnord "$@" "$arg"
31437 + test -z "$dashmflag" && dashmflag=-M
31438 + # Require at least two characters before searching for `:'
31439 + # in the target name. This is to cope with DOS-style filenames:
31440 + # a dependency such as `c:/foo/bar' could be seen as target `c' otherwise.
31441 + "$@" $dashmflag |
31442 + sed 's:^[ ]*[^: ][^:][^:]*\:[ ]*:'"$object"'\: :' > "$tmpdepfile"
31444 + cat < "$tmpdepfile" > "$depfile"
31446 +' < "$tmpdepfile" | \
31447 +## Some versions of the HPUX 10.20 sed can't process this invocation
31448 +## correctly. Breaking it into two sed invocations is a workaround.
31449 + sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
31450 + rm -f "$tmpdepfile"
31454 + # This case only exists to satisfy depend.m4. It is never actually
31455 + # run, as this mode is specially recognized in the preamble.
31461 + # Remove any Libtool call
31462 + if test "$libtool" = yes; then
31463 + while test $1 != '--mode=compile'; do
31471 + for arg in "$@"; do
31479 + set fnord "$@" "$arg"; shift ;;
31480 + # Strip any option that makedepend may not understand. Remove
31481 + # the object too, otherwise makedepend will parse it as a source file.
31485 + set fnord "$@" "$arg"; shift ;;
31488 + obj_suffix="`echo $object | sed 's/^.*\././'`"
31489 + touch "$tmpdepfile"
31490 + ${MAKEDEPEND-makedepend} -o"$obj_suffix" -f"$tmpdepfile" "$@"
31492 + cat < "$tmpdepfile" > "$depfile"
31493 + sed '1,2d' "$tmpdepfile" | tr ' ' '
31495 +## Some versions of the HPUX 10.20 sed can't process this invocation
31496 +## correctly. Breaking it into two sed invocations is a workaround.
31497 + sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
31498 + rm -f "$tmpdepfile" "$tmpdepfile".bak
31502 + # Important note: in order to support this mode, a compiler *must*
31503 + # always write the preprocessed file to stdout.
31506 + # Remove the call to Libtool.
31507 + if test "$libtool" = yes; then
31508 + while test $1 != '--mode=compile'; do
31514 + # Remove `-o $object'.
31526 + set fnord "$@" "$arg"
31534 + sed -n -e '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \
31535 + -e '/^#line [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' |
31536 + sed '$ s: \\$::' > "$tmpdepfile"
31538 + echo "$object : \\" > "$depfile"
31539 + cat < "$tmpdepfile" >> "$depfile"
31540 + sed < "$tmpdepfile" '/^$/d;s/^ //;s/ \\$//;s/$/ :/' >> "$depfile"
31541 + rm -f "$tmpdepfile"
31545 + # Important note: in order to support this mode, a compiler *must*
31546 + # always write the preprocessed file to stdout, regardless of -o,
31547 + # because we must use -o when running libtool.
31553 + "-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI")
31559 + set fnord "$@" "$arg"
31566 + sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::echo "`cygpath -u \\"\1\\"`":p' | sort | uniq > "$tmpdepfile"
31568 + echo "$object : \\" > "$depfile"
31569 + . "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s:: \1 \\:p' >> "$depfile"
31570 + echo " " >> "$depfile"
31571 + . "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s::\1\::p' >> "$depfile"
31572 + rm -f "$tmpdepfile"
31580 + echo "Unknown depmode $depmode" 1>&2
31587 +# Local Variables:
31588 +# mode: shell-script
31589 +# sh-indentation: 2
31590 +# eval: (add-hook 'write-file-hooks 'time-stamp)
31591 +# time-stamp-start: "scriptversion="
31592 +# time-stamp-format: "%:y-%02m-%02d.%02H"
31593 +# time-stamp-end: "$"
31595 diff -urN lua-5.1.4/doc/Makefile.am lua-5.1.4-autotoolize/doc/Makefile.am
31596 --- lua-5.1.4/doc/Makefile.am 1970-01-01 01:00:00.000000000 +0100
31597 +++ lua-5.1.4-autotoolize/doc/Makefile.am 2008-09-03 13:18:23.000000000 +0200
31599 +man1_MANS = lua.1 luac.1
31602 + contents.html lua.1 luac.html lua.html manual.html \
31603 + logo.gif luac.1 lua.css readme.html
31604 \ Kein Zeilenumbruch am Dateiende.
31605 diff -urN lua-5.1.4/doc/Makefile.in lua-5.1.4-autotoolize/doc/Makefile.in
31606 --- lua-5.1.4/doc/Makefile.in 1970-01-01 01:00:00.000000000 +0100
31607 +++ lua-5.1.4-autotoolize/doc/Makefile.in 2008-09-03 13:18:23.000000000 +0200
31609 +# Makefile.in generated by automake 1.9.6 from Makefile.am.
31610 +# @configure_input@
31612 +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
31613 +# 2003, 2004, 2005 Free Software Foundation, Inc.
31614 +# This Makefile.in is free software; the Free Software Foundation
31615 +# gives unlimited permission to copy and/or distribute it,
31616 +# with or without modifications, as long as this notice is preserved.
31618 +# This program is distributed in the hope that it will be useful,
31619 +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
31620 +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
31621 +# PARTICULAR PURPOSE.
31625 +top_srcdir = @top_srcdir@
31627 +pkgdatadir = $(datadir)/@PACKAGE@
31628 +pkglibdir = $(libdir)/@PACKAGE@
31629 +pkgincludedir = $(includedir)/@PACKAGE@
31631 +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
31632 +INSTALL = @INSTALL@
31633 +install_sh_DATA = $(install_sh) -c -m 644
31634 +install_sh_PROGRAM = $(install_sh) -c
31635 +install_sh_SCRIPT = $(install_sh) -c
31636 +INSTALL_HEADER = $(INSTALL_DATA)
31637 +transform = $(program_transform_name)
31638 +NORMAL_INSTALL = :
31641 +NORMAL_UNINSTALL = :
31643 +POST_UNINSTALL = :
31644 +build_triplet = @build@
31645 +host_triplet = @host@
31647 +DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
31648 +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
31649 +am__aclocal_m4_deps = $(top_srcdir)/configure.ac
31650 +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
31652 +mkinstalldirs = $(install_sh) -d
31653 +CONFIG_HEADER = $(top_builddir)/config.h
31654 +CONFIG_CLEAN_FILES =
31657 +man1dir = $(mandir)/man1
31658 +am__installdirs = "$(DESTDIR)$(man1dir)"
31660 +MANS = $(man1_MANS)
31661 +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
31662 +ACLOCAL = @ACLOCAL@
31663 +AMDEP_FALSE = @AMDEP_FALSE@
31664 +AMDEP_TRUE = @AMDEP_TRUE@
31667 +AUTOCONF = @AUTOCONF@
31668 +AUTOHEADER = @AUTOHEADER@
31669 +AUTOMAKE = @AUTOMAKE@
31672 +CCDEPMODE = @CCDEPMODE@
31675 +CPPFLAGS = @CPPFLAGS@
31678 +CXXDEPMODE = @CXXDEPMODE@
31679 +CXXFLAGS = @CXXFLAGS@
31680 +CYGPATH_W = @CYGPATH_W@
31691 +INSTALL_DATA = @INSTALL_DATA@
31692 +INSTALL_PROGRAM = @INSTALL_PROGRAM@
31693 +INSTALL_SCRIPT = @INSTALL_SCRIPT@
31694 +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
31695 +LDFLAGS = @LDFLAGS@
31696 +LIBOBJS = @LIBOBJS@
31698 +LIBTOOL = @LIBTOOL@
31700 +LTLIBOBJS = @LTLIBOBJS@
31701 +LUA_BUILD_AS_DLL_DEFS = @LUA_BUILD_AS_DLL_DEFS@
31702 +LUA_DL_DEFS = @LUA_DL_DEFS@
31703 +LUA_LIBS = @LUA_LIBS@
31704 +MAKEINFO = @MAKEINFO@
31706 +PACKAGE = @PACKAGE@
31707 +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
31708 +PACKAGE_NAME = @PACKAGE_NAME@
31709 +PACKAGE_STRING = @PACKAGE_STRING@
31710 +PACKAGE_TARNAME = @PACKAGE_TARNAME@
31711 +PACKAGE_VERSION = @PACKAGE_VERSION@
31712 +PATH_SEPARATOR = @PATH_SEPARATOR@
31713 +POSIX_DEFS = @POSIX_DEFS@
31715 +READLINE_DEFS = @READLINE_DEFS@
31716 +SET_MAKE = @SET_MAKE@
31719 +VERSION = @VERSION@
31720 +ac_ct_AR = @ac_ct_AR@
31721 +ac_ct_CC = @ac_ct_CC@
31722 +ac_ct_CXX = @ac_ct_CXX@
31723 +ac_ct_F77 = @ac_ct_F77@
31724 +ac_ct_RANLIB = @ac_ct_RANLIB@
31725 +ac_ct_STRIP = @ac_ct_STRIP@
31726 +am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
31727 +am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
31728 +am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
31729 +am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
31730 +am__include = @am__include@
31731 +am__leading_dot = @am__leading_dot@
31732 +am__quote = @am__quote@
31733 +am__tar = @am__tar@
31734 +am__untar = @am__untar@
31737 +build_alias = @build_alias@
31738 +build_cpu = @build_cpu@
31739 +build_os = @build_os@
31740 +build_vendor = @build_vendor@
31741 +datadir = @datadir@
31742 +exec_prefix = @exec_prefix@
31744 +host_alias = @host_alias@
31745 +host_cpu = @host_cpu@
31746 +host_os = @host_os@
31747 +host_vendor = @host_vendor@
31748 +includedir = @includedir@
31749 +infodir = @infodir@
31750 +install_sh = @install_sh@
31752 +libexecdir = @libexecdir@
31753 +localstatedir = @localstatedir@
31755 +mkdir_p = @mkdir_p@
31756 +oldincludedir = @oldincludedir@
31758 +program_transform_name = @program_transform_name@
31759 +sbindir = @sbindir@
31760 +sharedstatedir = @sharedstatedir@
31761 +sysconfdir = @sysconfdir@
31762 +target_alias = @target_alias@
31763 +man1_MANS = lua.1 luac.1
31765 + contents.html lua.1 luac.html lua.html manual.html \
31766 + logo.gif luac.1 lua.css readme.html
31771 +$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
31772 + @for dep in $?; do \
31773 + case '$(am__configure_deps)' in \
31775 + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
31780 + echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign doc/Makefile'; \
31781 + cd $(top_srcdir) && \
31782 + $(AUTOMAKE) --foreign doc/Makefile
31783 +.PRECIOUS: Makefile
31784 +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
31786 + *config.status*) \
31787 + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
31789 + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
31790 + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
31793 +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
31794 + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
31796 +$(top_srcdir)/configure: $(am__configure_deps)
31797 + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
31798 +$(ACLOCAL_M4): $(am__aclocal_m4_deps)
31799 + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
31801 +mostlyclean-libtool:
31805 + -rm -rf .libs _libs
31807 +distclean-libtool:
31809 +uninstall-info-am:
31810 +install-man1: $(man1_MANS) $(man_MANS)
31811 + @$(NORMAL_INSTALL)
31812 + test -z "$(man1dir)" || $(mkdir_p) "$(DESTDIR)$(man1dir)"
31813 + @list='$(man1_MANS) $(dist_man1_MANS) $(nodist_man1_MANS)'; \
31814 + l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \
31815 + for i in $$l2; do \
31817 + *.1*) list="$$list $$i" ;; \
31820 + for i in $$list; do \
31821 + if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \
31822 + else file=$$i; fi; \
31823 + ext=`echo $$i | sed -e 's/^.*\\.//'`; \
31824 + case "$$ext" in \
31828 + inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
31829 + inst=`echo $$inst | sed -e 's/^.*\///'`; \
31830 + inst=`echo $$inst | sed '$(transform)'`.$$ext; \
31831 + echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man1dir)/$$inst'"; \
31832 + $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man1dir)/$$inst"; \
31835 + @$(NORMAL_UNINSTALL)
31836 + @list='$(man1_MANS) $(dist_man1_MANS) $(nodist_man1_MANS)'; \
31837 + l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \
31838 + for i in $$l2; do \
31840 + *.1*) list="$$list $$i" ;; \
31843 + for i in $$list; do \
31844 + ext=`echo $$i | sed -e 's/^.*\\.//'`; \
31845 + case "$$ext" in \
31849 + inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
31850 + inst=`echo $$inst | sed -e 's/^.*\///'`; \
31851 + inst=`echo $$inst | sed '$(transform)'`.$$ext; \
31852 + echo " rm -f '$(DESTDIR)$(man1dir)/$$inst'"; \
31853 + rm -f "$(DESTDIR)$(man1dir)/$$inst"; \
31862 +distdir: $(DISTFILES)
31863 + @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
31864 + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
31865 + list='$(DISTFILES)'; for file in $$list; do \
31867 + $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
31868 + $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
31870 + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
31871 + dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
31872 + if test "$$dir" != "$$file" && test "$$dir" != "."; then \
31874 + $(mkdir_p) "$(distdir)$$dir"; \
31878 + if test -d $$d/$$file; then \
31879 + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
31880 + cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
31882 + cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
31884 + test -f $(distdir)/$$file \
31885 + || cp -p $$d/$$file $(distdir)/$$file \
31891 +all-am: Makefile $(MANS)
31893 + for dir in "$(DESTDIR)$(man1dir)"; do \
31894 + test -z "$$dir" || $(mkdir_p) "$$dir"; \
31896 +install: install-am
31897 +install-exec: install-exec-am
31898 +install-data: install-data-am
31899 +uninstall: uninstall-am
31901 +install-am: all-am
31902 + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
31904 +installcheck: installcheck-am
31906 + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
31907 + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
31908 + `test -z '$(STRIP)' || \
31909 + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
31910 +mostlyclean-generic:
31914 +distclean-generic:
31915 + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
31917 +maintainer-clean-generic:
31918 + @echo "This command is intended for maintainers to use"
31919 + @echo "it deletes files that may require special tools to rebuild."
31922 +clean-am: clean-generic clean-libtool mostlyclean-am
31924 +distclean: distclean-am
31926 +distclean-am: clean-am distclean-generic distclean-libtool
31938 +install-data-am: install-man
31942 +install-info: install-info-am
31944 +install-man: install-man1
31948 +maintainer-clean: maintainer-clean-am
31950 +maintainer-clean-am: distclean-am maintainer-clean-generic
31952 +mostlyclean: mostlyclean-am
31954 +mostlyclean-am: mostlyclean-generic mostlyclean-libtool
31964 +uninstall-am: uninstall-info-am uninstall-man
31966 +uninstall-man: uninstall-man1
31968 +.PHONY: all all-am check check-am clean clean-generic clean-libtool \
31969 + distclean distclean-generic distclean-libtool distdir dvi \
31970 + dvi-am html html-am info info-am install install-am \
31971 + install-data install-data-am install-exec install-exec-am \
31972 + install-info install-info-am install-man install-man1 \
31973 + install-strip installcheck installcheck-am installdirs \
31974 + maintainer-clean maintainer-clean-generic mostlyclean \
31975 + mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
31976 + uninstall uninstall-am uninstall-info-am uninstall-man \
31979 +# Tell versions [3.59,3.63) of GNU make to not export all variables.
31980 +# Otherwise a system limit (for SysV at least) may be exceeded.
31982 diff -urN lua-5.1.4/etc/lua.pc lua-5.1.4-autotoolize/etc/lua.pc
31983 --- lua-5.1.4/etc/lua.pc 2008-08-08 14:46:11.000000000 +0200
31984 +++ lua-5.1.4-autotoolize/etc/lua.pc 2008-09-03 13:24:07.000000000 +0200
31986 -# lua.pc -- pkg-config data for Lua
31988 -# vars from install Makefile
31990 -# grep '^V=' ../Makefile
31992 -# grep '^R=' ../Makefile
31995 -# grep '^INSTALL_.*=' ../Makefile | sed 's/INSTALL_TOP/prefix/'
31996 -prefix= /usr/local
31997 -INSTALL_BIN= ${prefix}/bin
31998 -INSTALL_INC= ${prefix}/include
31999 -INSTALL_LIB= ${prefix}/lib
32000 -INSTALL_MAN= ${prefix}/man/man1
32001 -INSTALL_LMOD= ${prefix}/share/lua/${V}
32002 -INSTALL_CMOD= ${prefix}/lib/lua/${V}
32005 -exec_prefix=${prefix}
32006 -libdir=${exec_prefix}/lib
32007 -includedir=${prefix}/include
32010 -Description: An Extensible Extension Language
32013 -Libs: -L${libdir} -llua -lm
32014 -Cflags: -I${includedir}
32017 diff -urN lua-5.1.4/etc/lua.pc.in lua-5.1.4-autotoolize/etc/lua.pc.in
32018 --- lua-5.1.4/etc/lua.pc.in 1970-01-01 01:00:00.000000000 +0100
32019 +++ lua-5.1.4-autotoolize/etc/lua.pc.in 2008-09-03 13:18:23.000000000 +0200
32024 +exec_prefix=${prefix}
32026 +includedir=${prefix}/include
32029 +Description: An Extensible Extension Language
32032 +Libs: -llua @LUA_LIBS@
32033 +Cflags: -I${includedir}
32034 diff -urN lua-5.1.4/etc/Makefile lua-5.1.4-autotoolize/etc/Makefile
32035 --- lua-5.1.4/etc/Makefile 2006-02-07 20:09:30.000000000 +0100
32036 +++ lua-5.1.4-autotoolize/etc/Makefile 2008-09-03 13:18:23.000000000 +0200
32038 -# makefile for Lua etc
32048 -CFLAGS= -O2 -Wall -I$(INC) $(MYCFLAGS)
32052 -#MYLIBS= -lm -Wl,-E -ldl -lreadline -lhistory -lncurses
32056 - @echo 'Please choose a target: min noparser one strict clean'
32059 - $(CC) $(CFLAGS) $@.c -L$(LIB) -llua $(MYLIBS)
32060 - echo 'print"Hello there!"' | ./a.out
32062 -noparser: noparser.o
32063 - $(CC) noparser.o $(SRC)/lua.o -L$(LIB) -llua $(MYLIBS)
32064 - $(BIN)/luac $(TST)/hello.lua
32065 - -./a.out luac.out
32069 - $(CC) $(CFLAGS) all.c $(MYLIBS)
32070 - ./a.out $(TST)/hello.lua
32073 - -$(BIN)/lua -e 'print(a);b=2'
32074 - -$(BIN)/lua -lstrict -e 'print(a)'
32075 - -$(BIN)/lua -e 'function f() b=2 end f()'
32076 - -$(BIN)/lua -lstrict -e 'function f() b=2 end f()'
32079 - $(RM) a.out core core.* *.o luac.out
32081 -.PHONY: default min noparser one strict clean
32082 diff -urN lua-5.1.4/etc/Makefile.am lua-5.1.4-autotoolize/etc/Makefile.am
32083 --- lua-5.1.4/etc/Makefile.am 1970-01-01 01:00:00.000000000 +0100
32084 +++ lua-5.1.4-autotoolize/etc/Makefile.am 2008-09-03 13:18:23.000000000 +0200
32086 +include_HEADERS = lua.hpp
32088 +pkgconfigdir = $(libdir)/pkgconfig
32089 +pkgconfig_DATA = lua.pc
32092 + all.c lua.ico lua.pc.in noparser.c strict.lua \
32093 + luavs.bat min.c README
32094 diff -urN lua-5.1.4/etc/Makefile.in lua-5.1.4-autotoolize/etc/Makefile.in
32095 --- lua-5.1.4/etc/Makefile.in 1970-01-01 01:00:00.000000000 +0100
32096 +++ lua-5.1.4-autotoolize/etc/Makefile.in 2008-09-03 13:18:23.000000000 +0200
32098 +# Makefile.in generated by automake 1.9.6 from Makefile.am.
32099 +# @configure_input@
32101 +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
32102 +# 2003, 2004, 2005 Free Software Foundation, Inc.
32103 +# This Makefile.in is free software; the Free Software Foundation
32104 +# gives unlimited permission to copy and/or distribute it,
32105 +# with or without modifications, as long as this notice is preserved.
32107 +# This program is distributed in the hope that it will be useful,
32108 +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
32109 +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
32110 +# PARTICULAR PURPOSE.
32116 +top_srcdir = @top_srcdir@
32118 +pkgdatadir = $(datadir)/@PACKAGE@
32119 +pkglibdir = $(libdir)/@PACKAGE@
32120 +pkgincludedir = $(includedir)/@PACKAGE@
32122 +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
32123 +INSTALL = @INSTALL@
32124 +install_sh_DATA = $(install_sh) -c -m 644
32125 +install_sh_PROGRAM = $(install_sh) -c
32126 +install_sh_SCRIPT = $(install_sh) -c
32127 +INSTALL_HEADER = $(INSTALL_DATA)
32128 +transform = $(program_transform_name)
32129 +NORMAL_INSTALL = :
32132 +NORMAL_UNINSTALL = :
32134 +POST_UNINSTALL = :
32135 +build_triplet = @build@
32136 +host_triplet = @host@
32138 +DIST_COMMON = README $(include_HEADERS) $(srcdir)/Makefile.am \
32139 + $(srcdir)/Makefile.in $(srcdir)/lua.pc.in
32140 +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
32141 +am__aclocal_m4_deps = $(top_srcdir)/configure.ac
32142 +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
32144 +mkinstalldirs = $(install_sh) -d
32145 +CONFIG_HEADER = $(top_builddir)/config.h
32146 +CONFIG_CLEAN_FILES = lua.pc
32149 +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
32150 +am__vpath_adj = case $$p in \
32151 + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
32154 +am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
32155 +am__installdirs = "$(DESTDIR)$(pkgconfigdir)" \
32156 + "$(DESTDIR)$(includedir)"
32157 +pkgconfigDATA_INSTALL = $(INSTALL_DATA)
32158 +DATA = $(pkgconfig_DATA)
32159 +includeHEADERS_INSTALL = $(INSTALL_HEADER)
32160 +HEADERS = $(include_HEADERS)
32163 +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
32164 +ACLOCAL = @ACLOCAL@
32165 +AMDEP_FALSE = @AMDEP_FALSE@
32166 +AMDEP_TRUE = @AMDEP_TRUE@
32169 +AUTOCONF = @AUTOCONF@
32170 +AUTOHEADER = @AUTOHEADER@
32171 +AUTOMAKE = @AUTOMAKE@
32174 +CCDEPMODE = @CCDEPMODE@
32177 +CPPFLAGS = @CPPFLAGS@
32180 +CXXDEPMODE = @CXXDEPMODE@
32181 +CXXFLAGS = @CXXFLAGS@
32182 +CYGPATH_W = @CYGPATH_W@
32193 +INSTALL_DATA = @INSTALL_DATA@
32194 +INSTALL_PROGRAM = @INSTALL_PROGRAM@
32195 +INSTALL_SCRIPT = @INSTALL_SCRIPT@
32196 +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
32197 +LDFLAGS = @LDFLAGS@
32198 +LIBOBJS = @LIBOBJS@
32200 +LIBTOOL = @LIBTOOL@
32202 +LTLIBOBJS = @LTLIBOBJS@
32203 +LUA_BUILD_AS_DLL_DEFS = @LUA_BUILD_AS_DLL_DEFS@
32204 +LUA_DL_DEFS = @LUA_DL_DEFS@
32205 +LUA_LIBS = @LUA_LIBS@
32206 +MAKEINFO = @MAKEINFO@
32208 +PACKAGE = @PACKAGE@
32209 +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
32210 +PACKAGE_NAME = @PACKAGE_NAME@
32211 +PACKAGE_STRING = @PACKAGE_STRING@
32212 +PACKAGE_TARNAME = @PACKAGE_TARNAME@
32213 +PACKAGE_VERSION = @PACKAGE_VERSION@
32214 +PATH_SEPARATOR = @PATH_SEPARATOR@
32215 +POSIX_DEFS = @POSIX_DEFS@
32217 +READLINE_DEFS = @READLINE_DEFS@
32218 +SET_MAKE = @SET_MAKE@
32221 +VERSION = @VERSION@
32222 +ac_ct_AR = @ac_ct_AR@
32223 +ac_ct_CC = @ac_ct_CC@
32224 +ac_ct_CXX = @ac_ct_CXX@
32225 +ac_ct_F77 = @ac_ct_F77@
32226 +ac_ct_RANLIB = @ac_ct_RANLIB@
32227 +ac_ct_STRIP = @ac_ct_STRIP@
32228 +am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
32229 +am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
32230 +am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
32231 +am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
32232 +am__include = @am__include@
32233 +am__leading_dot = @am__leading_dot@
32234 +am__quote = @am__quote@
32235 +am__tar = @am__tar@
32236 +am__untar = @am__untar@
32239 +build_alias = @build_alias@
32240 +build_cpu = @build_cpu@
32241 +build_os = @build_os@
32242 +build_vendor = @build_vendor@
32243 +datadir = @datadir@
32244 +exec_prefix = @exec_prefix@
32246 +host_alias = @host_alias@
32247 +host_cpu = @host_cpu@
32248 +host_os = @host_os@
32249 +host_vendor = @host_vendor@
32250 +includedir = @includedir@
32251 +infodir = @infodir@
32252 +install_sh = @install_sh@
32254 +libexecdir = @libexecdir@
32255 +localstatedir = @localstatedir@
32257 +mkdir_p = @mkdir_p@
32258 +oldincludedir = @oldincludedir@
32260 +program_transform_name = @program_transform_name@
32261 +sbindir = @sbindir@
32262 +sharedstatedir = @sharedstatedir@
32263 +sysconfdir = @sysconfdir@
32264 +target_alias = @target_alias@
32265 +include_HEADERS = lua.hpp
32266 +pkgconfigdir = $(libdir)/pkgconfig
32267 +pkgconfig_DATA = lua.pc
32269 + all.c lua.ico lua.pc.in noparser.c strict.lua \
32270 + luavs.bat min.c README
32275 +$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
32276 + @for dep in $?; do \
32277 + case '$(am__configure_deps)' in \
32279 + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
32284 + echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign etc/Makefile'; \
32285 + cd $(top_srcdir) && \
32286 + $(AUTOMAKE) --foreign etc/Makefile
32287 +.PRECIOUS: Makefile
32288 +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
32290 + *config.status*) \
32291 + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
32293 + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
32294 + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
32297 +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
32298 + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
32300 +$(top_srcdir)/configure: $(am__configure_deps)
32301 + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
32302 +$(ACLOCAL_M4): $(am__aclocal_m4_deps)
32303 + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
32304 +lua.pc: $(top_builddir)/config.status $(srcdir)/lua.pc.in
32305 + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@
32307 +mostlyclean-libtool:
32311 + -rm -rf .libs _libs
32313 +distclean-libtool:
32315 +uninstall-info-am:
32316 +install-pkgconfigDATA: $(pkgconfig_DATA)
32317 + @$(NORMAL_INSTALL)
32318 + test -z "$(pkgconfigdir)" || $(mkdir_p) "$(DESTDIR)$(pkgconfigdir)"
32319 + @list='$(pkgconfig_DATA)'; for p in $$list; do \
32320 + if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
32321 + f=$(am__strip_dir) \
32322 + echo " $(pkgconfigDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(pkgconfigdir)/$$f'"; \
32323 + $(pkgconfigDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(pkgconfigdir)/$$f"; \
32326 +uninstall-pkgconfigDATA:
32327 + @$(NORMAL_UNINSTALL)
32328 + @list='$(pkgconfig_DATA)'; for p in $$list; do \
32329 + f=$(am__strip_dir) \
32330 + echo " rm -f '$(DESTDIR)$(pkgconfigdir)/$$f'"; \
32331 + rm -f "$(DESTDIR)$(pkgconfigdir)/$$f"; \
32333 +install-includeHEADERS: $(include_HEADERS)
32334 + @$(NORMAL_INSTALL)
32335 + test -z "$(includedir)" || $(mkdir_p) "$(DESTDIR)$(includedir)"
32336 + @list='$(include_HEADERS)'; for p in $$list; do \
32337 + if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
32338 + f=$(am__strip_dir) \
32339 + echo " $(includeHEADERS_INSTALL) '$$d$$p' '$(DESTDIR)$(includedir)/$$f'"; \
32340 + $(includeHEADERS_INSTALL) "$$d$$p" "$(DESTDIR)$(includedir)/$$f"; \
32343 +uninstall-includeHEADERS:
32344 + @$(NORMAL_UNINSTALL)
32345 + @list='$(include_HEADERS)'; for p in $$list; do \
32346 + f=$(am__strip_dir) \
32347 + echo " rm -f '$(DESTDIR)$(includedir)/$$f'"; \
32348 + rm -f "$(DESTDIR)$(includedir)/$$f"; \
32351 +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
32352 + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
32353 + unique=`for i in $$list; do \
32354 + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
32356 + $(AWK) ' { files[$$0] = 1; } \
32357 + END { for (i in files) print i; }'`; \
32358 + mkid -fID $$unique
32361 +TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
32362 + $(TAGS_FILES) $(LISP)
32365 + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
32366 + unique=`for i in $$list; do \
32367 + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
32369 + $(AWK) ' { files[$$0] = 1; } \
32370 + END { for (i in files) print i; }'`; \
32371 + if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
32372 + test -n "$$unique" || unique=$$empty_fix; \
32373 + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
32374 + $$tags $$unique; \
32377 +CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
32378 + $(TAGS_FILES) $(LISP)
32381 + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
32382 + unique=`for i in $$list; do \
32383 + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
32385 + $(AWK) ' { files[$$0] = 1; } \
32386 + END { for (i in files) print i; }'`; \
32387 + test -z "$(CTAGS_ARGS)$$tags$$unique" \
32388 + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
32392 + here=`$(am__cd) $(top_builddir) && pwd` \
32393 + && cd $(top_srcdir) \
32394 + && gtags -i $(GTAGS_ARGS) $$here
32397 + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
32399 +distdir: $(DISTFILES)
32400 + @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
32401 + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
32402 + list='$(DISTFILES)'; for file in $$list; do \
32404 + $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
32405 + $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
32407 + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
32408 + dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
32409 + if test "$$dir" != "$$file" && test "$$dir" != "."; then \
32411 + $(mkdir_p) "$(distdir)$$dir"; \
32415 + if test -d $$d/$$file; then \
32416 + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
32417 + cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
32419 + cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
32421 + test -f $(distdir)/$$file \
32422 + || cp -p $$d/$$file $(distdir)/$$file \
32428 +all-am: Makefile $(DATA) $(HEADERS)
32430 + for dir in "$(DESTDIR)$(pkgconfigdir)" "$(DESTDIR)$(includedir)"; do \
32431 + test -z "$$dir" || $(mkdir_p) "$$dir"; \
32433 +install: install-am
32434 +install-exec: install-exec-am
32435 +install-data: install-data-am
32436 +uninstall: uninstall-am
32438 +install-am: all-am
32439 + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
32441 +installcheck: installcheck-am
32443 + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
32444 + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
32445 + `test -z '$(STRIP)' || \
32446 + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
32447 +mostlyclean-generic:
32451 +distclean-generic:
32452 + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
32454 +maintainer-clean-generic:
32455 + @echo "This command is intended for maintainers to use"
32456 + @echo "it deletes files that may require special tools to rebuild."
32459 +clean-am: clean-generic clean-libtool mostlyclean-am
32461 +distclean: distclean-am
32463 +distclean-am: clean-am distclean-generic distclean-libtool \
32476 +install-data-am: install-includeHEADERS install-pkgconfigDATA
32480 +install-info: install-info-am
32486 +maintainer-clean: maintainer-clean-am
32488 +maintainer-clean-am: distclean-am maintainer-clean-generic
32490 +mostlyclean: mostlyclean-am
32492 +mostlyclean-am: mostlyclean-generic mostlyclean-libtool
32502 +uninstall-am: uninstall-includeHEADERS uninstall-info-am \
32503 + uninstall-pkgconfigDATA
32505 +.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
32506 + clean-libtool ctags distclean distclean-generic \
32507 + distclean-libtool distclean-tags distdir dvi dvi-am html \
32508 + html-am info info-am install install-am install-data \
32509 + install-data-am install-exec install-exec-am \
32510 + install-includeHEADERS install-info install-info-am \
32511 + install-man install-pkgconfigDATA install-strip installcheck \
32512 + installcheck-am installdirs maintainer-clean \
32513 + maintainer-clean-generic mostlyclean mostlyclean-generic \
32514 + mostlyclean-libtool pdf pdf-am ps ps-am tags uninstall \
32515 + uninstall-am uninstall-includeHEADERS uninstall-info-am \
32516 + uninstall-pkgconfigDATA
32518 +# Tell versions [3.59,3.63) of GNU make to not export all variables.
32519 +# Otherwise a system limit (for SysV at least) may be exceeded.
32521 diff -urN lua-5.1.4/install-sh lua-5.1.4-autotoolize/install-sh
32522 --- lua-5.1.4/install-sh 1970-01-01 01:00:00.000000000 +0100
32523 +++ lua-5.1.4-autotoolize/install-sh 2008-09-03 13:18:23.000000000 +0200
32526 +# install - install a program, script, or datafile
32528 +scriptversion=2005-05-14.22
32530 +# This originates from X11R5 (mit/util/scripts/install.sh), which was
32531 +# later released in X11R6 (xc/config/util/install.sh) with the
32532 +# following copyright and license.
32534 +# Copyright (C) 1994 X Consortium
32536 +# Permission is hereby granted, free of charge, to any person obtaining a copy
32537 +# of this software and associated documentation files (the "Software"), to
32538 +# deal in the Software without restriction, including without limitation the
32539 +# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
32540 +# sell copies of the Software, and to permit persons to whom the Software is
32541 +# furnished to do so, subject to the following conditions:
32543 +# The above copyright notice and this permission notice shall be included in
32544 +# all copies or substantial portions of the Software.
32546 +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
32547 +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
32548 +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
32549 +# X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
32550 +# AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC-
32551 +# TION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
32553 +# Except as contained in this notice, the name of the X Consortium shall not
32554 +# be used in advertising or otherwise to promote the sale, use or other deal-
32555 +# ings in this Software without prior written authorization from the X Consor-
32559 +# FSF changes to this file are in the public domain.
32561 +# Calling this script install-sh is preferred over install.sh, to prevent
32562 +# `make' implicit rules from creating a file called install from it
32563 +# when there is no Makefile.
32565 +# This script is compatible with the BSD install script, but was written
32566 +# from scratch. It can only install one file at a time, a restriction
32567 +# shared with many OS's install programs.
32569 +# set DOITPROG to echo to test this script
32571 +# Don't use :- since 4.3BSD and earlier shells don't like it.
32572 +doit="${DOITPROG-}"
32574 +# put in absolute paths if you don't have them in your path; or use env. vars.
32576 +mvprog="${MVPROG-mv}"
32577 +cpprog="${CPPROG-cp}"
32578 +chmodprog="${CHMODPROG-chmod}"
32579 +chownprog="${CHOWNPROG-chown}"
32580 +chgrpprog="${CHGRPPROG-chgrp}"
32581 +stripprog="${STRIPPROG-strip}"
32582 +rmprog="${RMPROG-rm}"
32583 +mkdirprog="${MKDIRPROG-mkdir}"
32585 +chmodcmd="$chmodprog 0755"
32589 +rmcmd="$rmprog -f"
32595 +no_target_directory=
32597 +usage="Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE
32598 + or: $0 [OPTION]... SRCFILES... DIRECTORY
32599 + or: $0 [OPTION]... -t DIRECTORY SRCFILES...
32600 + or: $0 [OPTION]... -d DIRECTORIES...
32602 +In the 1st form, copy SRCFILE to DSTFILE.
32603 +In the 2nd and 3rd, copy all SRCFILES to DIRECTORY.
32604 +In the 4th, create DIRECTORIES.
32608 +-d create directories instead of installing files.
32609 +-g GROUP $chgrpprog installed files to GROUP.
32610 +-m MODE $chmodprog installed files to MODE.
32611 +-o USER $chownprog installed files to USER.
32612 +-s $stripprog installed files.
32613 +-t DIRECTORY install into DIRECTORY.
32614 +-T report an error if DSTFILE is a directory.
32615 +--help display this help and exit.
32616 +--version display version info and exit.
32618 +Environment variables override the default commands:
32619 + CHGRPPROG CHMODPROG CHOWNPROG CPPROG MKDIRPROG MVPROG RMPROG STRIPPROG
32622 +while test -n "$1"; do
32631 + -g) chgrpcmd="$chgrpprog $2"
32636 + --help) echo "$usage"; exit $?;;
32638 + -m) chmodcmd="$chmodprog $2"
32643 + -o) chowncmd="$chownprog $2"
32648 + -s) stripcmd=$stripprog
32657 + -T) no_target_directory=true
32661 + --version) echo "$0 $scriptversion"; exit $?;;
32663 + *) # When -d is used, all remaining arguments are directories to create.
32664 + # When -t is used, the destination is already specified.
32665 + test -n "$dir_arg$dstarg" && break
32666 + # Otherwise, the last argument is the destination. Remove it from $@.
32669 + if test -n "$dstarg"; then
32670 + # $@ is not empty: it contains at least $arg.
32671 + set fnord "$@" "$dstarg"
32681 +if test -z "$1"; then
32682 + if test -z "$dir_arg"; then
32683 + echo "$0: no input file specified." >&2
32686 + # It's OK to call `install-sh -d' without argument.
32687 + # This can happen when creating conditional directories.
32693 + # Protect names starting with `-'.
32695 + -*) src=./$src ;;
32698 + if test -n "$dir_arg"; then
32702 + if test -d "$dst"; then
32706 + mkdircmd=$mkdirprog
32709 + # Waiting for this to be detected by the "$cpprog $src $dsttmp" command
32710 + # might cause directories to be created, which would be especially bad
32711 + # if $src (and thus $dsttmp) contains '*'.
32712 + if test ! -f "$src" && test ! -d "$src"; then
32713 + echo "$0: $src does not exist." >&2
32717 + if test -z "$dstarg"; then
32718 + echo "$0: no destination specified." >&2
32723 + # Protect names starting with `-'.
32725 + -*) dst=./$dst ;;
32728 + # If destination is a directory, append the input filename; won't work
32729 + # if double slashes aren't ignored.
32730 + if test -d "$dst"; then
32731 + if test -n "$no_target_directory"; then
32732 + echo "$0: $dstarg: Is a directory" >&2
32735 + dst=$dst/`basename "$src"`
32739 + # This sed command emulates the dirname command.
32740 + dstdir=`echo "$dst" | sed -e 's,/*$,,;s,[^/]*$,,;s,/*$,,;s,^$,.,'`
32742 + # Make sure that the destination directory exists.
32744 + # Skip lots of stat calls in the usual case.
32745 + if test ! -d "$dstdir"; then
32748 + IFS="${IFS-$defaultIFS}"
32751 + # Some sh's can't handle IFS=/ for some reason.
32753 + set x `echo "$dstdir" | sed -e 's@/@%@g' -e 's@^%@/@'`
32759 + while test $# -ne 0 ; do
32760 + pathcomp=$pathcomp$1
32762 + if test ! -d "$pathcomp"; then
32763 + $mkdirprog "$pathcomp"
32764 + # mkdir can fail with a `File exist' error in case several
32765 + # install-sh are creating the directory concurrently. This
32767 + test -d "$pathcomp" || exit
32769 + pathcomp=$pathcomp/
32773 + if test -n "$dir_arg"; then
32774 + $doit $mkdircmd "$dst" \
32775 + && { test -z "$chowncmd" || $doit $chowncmd "$dst"; } \
32776 + && { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } \
32777 + && { test -z "$stripcmd" || $doit $stripcmd "$dst"; } \
32778 + && { test -z "$chmodcmd" || $doit $chmodcmd "$dst"; }
32781 + dstfile=`basename "$dst"`
32783 + # Make a couple of temp file names in the proper directory.
32784 + dsttmp=$dstdir/_inst.$$_
32785 + rmtmp=$dstdir/_rm.$$_
32787 + # Trap to clean up those temp files at exit.
32788 + trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0
32789 + trap '(exit $?); exit' 1 2 13 15
32791 + # Copy the file name to the temp name.
32792 + $doit $cpprog "$src" "$dsttmp" &&
32794 + # and set any options; do chmod last to preserve setuid bits.
32796 + # If any of these fail, we abort the whole thing. If we want to
32797 + # ignore errors from any of these, just make sure not to ignore
32798 + # errors from the above "$doit $cpprog $src $dsttmp" command.
32800 + { test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } \
32801 + && { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } \
32802 + && { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } \
32803 + && { test -z "$chmodcmd" || $doit $chmodcmd "$dsttmp"; } &&
32805 + # Now rename the file to the real destination.
32806 + { $doit $mvcmd -f "$dsttmp" "$dstdir/$dstfile" 2>/dev/null \
32808 + # The rename failed, perhaps because mv can't rename something else
32809 + # to itself, or perhaps because mv is so ancient that it does not
32812 + # Now remove or move aside any old file at destination location.
32813 + # We try this two ways since rm can't unlink itself on some
32814 + # systems and the destination file might be busy for other
32815 + # reasons. In this case, the final cleanup might fail but the new
32816 + # file should still install successfully.
32818 + if test -f "$dstdir/$dstfile"; then
32819 + $doit $rmcmd -f "$dstdir/$dstfile" 2>/dev/null \
32820 + || $doit $mvcmd -f "$dstdir/$dstfile" "$rmtmp" 2>/dev/null \
32822 + echo "$0: cannot unlink or rename $dstdir/$dstfile" >&2
32830 + # Now rename the file to the real destination.
32831 + $doit $mvcmd "$dsttmp" "$dstdir/$dstfile"
32834 + fi || { (exit 1); exit 1; }
32837 +# The final little trick to "correctly" pass the exit status to the exit trap.
32842 +# Local variables:
32843 +# eval: (add-hook 'write-file-hooks 'time-stamp)
32844 +# time-stamp-start: "scriptversion="
32845 +# time-stamp-format: "%:y-%02m-%02d.%02H"
32846 +# time-stamp-end: "$"
32848 diff -urN lua-5.1.4/ltmain.sh lua-5.1.4-autotoolize/ltmain.sh
32849 --- lua-5.1.4/ltmain.sh 1970-01-01 01:00:00.000000000 +0100
32850 +++ lua-5.1.4-autotoolize/ltmain.sh 2008-09-03 13:18:23.000000000 +0200
32852 +# ltmain.sh - Provide generalized library-building support services.
32853 +# NOTE: Changing this file will not affect anything until you rerun configure.
32855 +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005
32856 +# Free Software Foundation, Inc.
32857 +# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
32859 +# This program is free software; you can redistribute it and/or modify
32860 +# it under the terms of the GNU General Public License as published by
32861 +# the Free Software Foundation; either version 2 of the License, or
32862 +# (at your option) any later version.
32864 +# This program is distributed in the hope that it will be useful, but
32865 +# WITHOUT ANY WARRANTY; without even the implied warranty of
32866 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
32867 +# General Public License for more details.
32869 +# You should have received a copy of the GNU General Public License
32870 +# along with this program; if not, write to the Free Software
32871 +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
32873 +# As a special exception to the GNU General Public License, if you
32874 +# distribute this file as part of a program that contains a
32875 +# configuration script generated by Autoconf, you may include it under
32876 +# the same distribution terms that you use for the rest of that program.
32878 +basename="s,^.*/,,g"
32880 +# Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh
32881 +# is ksh but when the shell is invoked as "sh" and the current value of
32882 +# the _XPG environment variable is not equal to 1 (one), the special
32883 +# positional parameter $0, within a function call, is the name of the
32887 +# define SED for historic ltconfig's generated by Libtool 1.3
32888 +test -z "$SED" && SED=sed
32890 +# The name of this program:
32891 +progname=`echo "$progpath" | $SED $basename`
32892 +modename="$progname"
32894 +# Global variables:
32901 +TIMESTAMP=" (1.1220.2.365 2005/12/18 22:14:06)"
32903 +# See if we are running on zsh, and set the options which allow our
32904 +# commands through without removal of \ escapes.
32905 +if test -n "${ZSH_VERSION+set}" ; then
32906 + setopt NO_GLOB_SUBST
32908 +# Same for EGREP, and just to be sure, do LTCC as well
32909 +if test "X$EGREP" = X ; then
32912 +if test "X$LTCC" = X ; then
32916 +# Check that we have a working $echo.
32917 +if test "X$1" = X--no-reexec; then
32918 + # Discard the --no-reexec flag, and continue.
32920 +elif test "X$1" = X--fallback-echo; then
32921 + # Avoid inline document here, it may be left over
32923 +elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
32924 + # Yippee, $echo works!
32927 + # Restart under the correct shell, and then maybe $echo will work.
32928 + exec $SHELL "$progpath" --no-reexec ${1+"$@"}
32931 +if test "X$1" = X--fallback-echo; then
32932 + # used as fallback echo
32937 + exit $EXIT_SUCCESS
32941 +help="Try \`$progname --help' for more information."
32942 +magic="%%%MAGIC variable%%%"
32947 +# Sed substitution that helps us do robust quoting. It backslashifies
32948 +# metacharacters that are still active within double-quoted strings.
32949 +Xsed="${SED}"' -e 1s/^X//'
32950 +sed_quote_subst='s/\([\\`\\"$\\\\]\)/\\\1/g'
32951 +# test EBCDIC or ASCII
32952 +case `echo X|tr X '\101'` in
32953 + A) # ASCII based system
32954 + # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
32955 + SP2NL='tr \040 \012'
32956 + NL2SP='tr \015\012 \040\040'
32958 + *) # EBCDIC based system
32959 + SP2NL='tr \100 \n'
32960 + NL2SP='tr \r\n \100\100'
32965 +# Only set LANG and LC_ALL to C if already set.
32966 +# These must not be set unconditionally because not all systems understand
32967 +# e.g. LANG=C (notably SCO).
32968 +# We save the old values to restore during execute mode.
32969 +if test "${LC_ALL+set}" = set; then
32970 + save_LC_ALL="$LC_ALL"; LC_ALL=C; export LC_ALL
32972 +if test "${LANG+set}" = set; then
32973 + save_LANG="$LANG"; LANG=C; export LANG
32976 +# Make sure IFS has a sensible default
32981 +if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then
32982 + $echo "$modename: not configured to build any kind of library" 1>&2
32983 + $echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2
32984 + exit $EXIT_FAILURE
32987 +# Global variables.
32988 +mode=$default_mode
32998 +lo2o="s/\\.lo\$/.${objext}/"
32999 +o2lo="s/\\.${objext}\$/.lo/"
33001 +if test -z "$max_cmd_len"; then
33006 + # If test is not a shell built-in, we'll probably end up computing a
33007 + # maximum length that is only half of the actual maximum length, but
33009 + while (test "X"`$SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
33010 + = "XX$testring") >/dev/null 2>&1 &&
33011 + new_result=`expr "X$testring" : ".*" 2>&1` &&
33012 + max_cmd_len="$new_result" &&
33013 + test "$i" != 17 # 1/2 MB should be enough
33016 + testring="$testring$testring"
33019 + # Add a significant safety factor because C++ compilers can tack on massive
33020 + # amounts of additional arguments before passing them to the linker.
33021 + # It appears as though 1/2 is a usable value.
33022 + max_cmd_len=`expr $max_cmd_len \/ 2`
33025 +#####################################
33026 +# Shell function definitions:
33027 +# This seems to be the best place for them
33029 +# func_mktempdir [string]
33030 +# Make a temporary directory that won't clash with other running
33031 +# libtool processes, and avoids race conditions if possible. If
33032 +# given, STRING is the basename for that directory.
33035 + my_template="${TMPDIR-/tmp}/${1-$progname}"
33037 + if test "$run" = ":"; then
33038 + # Return a directory name, but don't create it in dry-run mode
33039 + my_tmpdir="${my_template}-$$"
33042 + # If mktemp works, use that first and foremost
33043 + my_tmpdir=`mktemp -d "${my_template}-XXXXXXXX" 2>/dev/null`
33045 + if test ! -d "$my_tmpdir"; then
33046 + # Failing that, at least try and use $RANDOM to avoid a race
33047 + my_tmpdir="${my_template}-${RANDOM-0}$$"
33049 + save_mktempdir_umask=`umask`
33051 + $mkdir "$my_tmpdir"
33052 + umask $save_mktempdir_umask
33055 + # If we're not in dry-run mode, bomb out on failure
33056 + test -d "$my_tmpdir" || {
33057 + $echo "cannot create temporary directory \`$my_tmpdir'" 1>&2
33058 + exit $EXIT_FAILURE
33062 + $echo "X$my_tmpdir" | $Xsed
33066 +# func_win32_libid arg
33067 +# return the library type of file 'arg'
33069 +# Need a lot of goo to handle *both* DLLs and import libs
33070 +# Has to be a shell function in order to 'eat' the argument
33071 +# that is supplied when $file_magic_command is called.
33072 +func_win32_libid ()
33074 + win32_libid_type="unknown"
33075 + win32_fileres=`file -L $1 2>/dev/null`
33076 + case $win32_fileres in
33077 + *ar\ archive\ import\ library*) # definitely import
33078 + win32_libid_type="x86 archive import"
33080 + *ar\ archive*) # could be an import, or static
33081 + if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null | \
33082 + $EGREP -e 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then
33083 + win32_nmres=`eval $NM -f posix -A $1 | \
33084 + $SED -n -e '1,100{/ I /{s,.*,import,;p;q;};}'`
33085 + case $win32_nmres in
33086 + import*) win32_libid_type="x86 archive import";;
33087 + *) win32_libid_type="x86 archive static";;
33092 + win32_libid_type="x86 DLL"
33094 + *executable*) # but shell scripts are "executable" too...
33095 + case $win32_fileres in
33096 + *MS\ Windows\ PE\ Intel*)
33097 + win32_libid_type="x86 DLL"
33102 + $echo $win32_libid_type
33106 +# func_infer_tag arg
33107 +# Infer tagged configuration to use if any are available and
33108 +# if one wasn't chosen via the "--tag" command line option.
33109 +# Only attempt this if the compiler in the base compile
33110 +# command doesn't match the default compiler.
33111 +# arg is usually of the form 'gcc ...'
33114 + if test -n "$available_tags" && test -z "$tagname"; then
33116 + for arg in $CC; do
33118 + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
33122 + CC_quoted="$CC_quoted $arg"
33125 + # Blanks in the command may have been stripped by the calling shell,
33126 + # but not from the CC environment variable when configure was run.
33127 + " $CC "* | "$CC "* | " `$echo $CC` "* | "`$echo $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$echo $CC_quoted` "* | "`$echo $CC_quoted` "*) ;;
33128 + # Blanks at the start of $base_compile will cause this to fail
33129 + # if we don't check for them as well.
33131 + for z in $available_tags; do
33132 + if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$progpath" > /dev/null; then
33133 + # Evaluate the configuration.
33134 + eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $progpath`"
33136 + for arg in $CC; do
33137 + # Double-quote args containing other shell metacharacters.
33139 + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
33143 + CC_quoted="$CC_quoted $arg"
33145 + # user sometimes does CC=<HOST>-gcc so we need to match that to 'gcc'
33146 + trimedcc=`echo ${CC} | $SED -e "s/${host}-//g"`
33147 + # and sometimes libtool has CC=<HOST>-gcc but user does CC=gcc
33148 + extendcc=${host}-${CC}
33149 + # and sometimes libtool has CC=<OLDHOST>-gcc but user has CC=<NEWHOST>-gcc
33150 + # (Gentoo-specific hack because we always export $CHOST)
33151 + mungedcc=${CHOST-${host}}-${trimedcc}
33153 + "cc "* | " cc "* | "${host}-cc "* | " ${host}-cc "*|\
33154 + "gcc "* | " gcc "* | "${host}-gcc "* | " ${host}-gcc "*)
33157 + "$trimedcc "* | " $trimedcc "* | "`$echo $trimedcc` "* | " `$echo $trimedcc` "*|\
33158 + "$extendcc "* | " $extendcc "* | "`$echo $extendcc` "* | " `$echo $extendcc` "*|\
33159 + "$mungedcc "* | " $mungedcc "* | "`$echo $mungedcc` "* | " `$echo $mungedcc` "*|\
33160 + " $CC "* | "$CC "* | " `$echo $CC` "* | "`$echo $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$echo $CC_quoted` "* | "`$echo $CC_quoted` "*)
33161 + # The compiler in the base compile command matches
33162 + # the one in the tagged configuration.
33163 + # Assume this is the tagged configuration we want.
33170 + # If $tagname still isn't set, then no tagged configuration
33171 + # was found and let the user know that the "--tag" command
33172 + # line option must be used.
33173 + if test -z "$tagname"; then
33174 + $echo "$modename: unable to infer tagged configuration"
33175 + $echo "$modename: specify a tag with \`--tag'" 1>&2
33176 + exit $EXIT_FAILURE
33178 +# $echo "$modename: using $tagname tagged configuration"
33186 +# func_extract_an_archive dir oldlib
33187 +func_extract_an_archive ()
33189 + f_ex_an_ar_dir="$1"; shift
33190 + f_ex_an_ar_oldlib="$1"
33192 + $show "(cd $f_ex_an_ar_dir && $AR x $f_ex_an_ar_oldlib)"
33193 + $run eval "(cd \$f_ex_an_ar_dir && $AR x \$f_ex_an_ar_oldlib)" || exit $?
33194 + if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then
33197 + $echo "$modename: ERROR: object name conflicts: $f_ex_an_ar_dir/$f_ex_an_ar_oldlib" 1>&2
33198 + exit $EXIT_FAILURE
33202 +# func_extract_archives gentop oldlib ...
33203 +func_extract_archives ()
33205 + my_gentop="$1"; shift
33206 + my_oldlibs=${1+"$@"}
33213 + $show "${rm}r $my_gentop"
33214 + $run ${rm}r "$my_gentop"
33215 + $show "$mkdir $my_gentop"
33216 + $run $mkdir "$my_gentop"
33218 + if test "$my_status" -ne 0 && test ! -d "$my_gentop"; then
33222 + for my_xlib in $my_oldlibs; do
33223 + # Extract the objects.
33225 + [\\/]* | [A-Za-z]:[\\/]*) my_xabs="$my_xlib" ;;
33226 + *) my_xabs=`pwd`"/$my_xlib" ;;
33228 + my_xlib=`$echo "X$my_xlib" | $Xsed -e 's%^.*/%%'`
33229 + my_xdir="$my_gentop/$my_xlib"
33231 + $show "${rm}r $my_xdir"
33232 + $run ${rm}r "$my_xdir"
33233 + $show "$mkdir $my_xdir"
33234 + $run $mkdir "$my_xdir"
33236 + if test "$exit_status" -ne 0 && test ! -d "$my_xdir"; then
33237 + exit $exit_status
33241 + $show "Extracting $my_xabs"
33242 + # Do not bother doing anything if just a dry run
33243 + if test -z "$run"; then
33244 + darwin_orig_dir=`pwd`
33245 + cd $my_xdir || exit $?
33246 + darwin_archive=$my_xabs
33247 + darwin_curdir=`pwd`
33248 + darwin_base_archive=`$echo "X$darwin_archive" | $Xsed -e 's%^.*/%%'`
33249 + darwin_arches=`lipo -info "$darwin_archive" 2>/dev/null | $EGREP Architectures 2>/dev/null`
33250 + if test -n "$darwin_arches"; then
33251 + darwin_arches=`echo "$darwin_arches" | $SED -e 's/.*are://'`
33253 + $show "$darwin_base_archive has multiple architectures $darwin_arches"
33254 + for darwin_arch in $darwin_arches ; do
33255 + mkdir -p "unfat-$$/${darwin_base_archive}-${darwin_arch}"
33256 + lipo -thin $darwin_arch -output "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" "${darwin_archive}"
33257 + cd "unfat-$$/${darwin_base_archive}-${darwin_arch}"
33258 + func_extract_an_archive "`pwd`" "${darwin_base_archive}"
33259 + cd "$darwin_curdir"
33260 + $rm "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}"
33261 + done # $darwin_arches
33262 + ## Okay now we have a bunch of thin objects, gotta fatten them up :)
33263 + darwin_filelist=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print| xargs basename | sort -u | $NL2SP`
33266 + for darwin_file in $darwin_filelist; do
33267 + darwin_files=`find unfat-$$ -name $darwin_file -print | $NL2SP`
33268 + lipo -create -output "$darwin_file" $darwin_files
33269 + done # $darwin_filelist
33271 + cd "$darwin_orig_dir"
33273 + cd "$darwin_orig_dir"
33274 + func_extract_an_archive "$my_xdir" "$my_xabs"
33275 + fi # $darwin_arches
33279 + func_extract_an_archive "$my_xdir" "$my_xabs"
33282 + my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP`
33284 + func_extract_archives_result="$my_oldobjs"
33286 +# End of Shell function definitions
33287 +#####################################
33290 +eval std_shrext=\"$shrext_cmds\"
33294 +# Parse our command line options once, thoroughly.
33295 +while test "$#" -gt 0
33301 + -*=*) optarg=`$echo "X$arg" | $Xsed -e 's/[-_a-zA-Z0-9]*=//'` ;;
33305 + # If the previous option needs an argument, assign it.
33306 + if test -n "$prev"; then
33309 + execute_dlfiles="$execute_dlfiles $arg"
33313 + preserve_args="${preserve_args}=$arg"
33315 + # Check whether tagname contains only valid characters
33317 + *[!-_A-Za-z0-9,/]*)
33318 + $echo "$progname: invalid tag name: $tagname" 1>&2
33319 + exit $EXIT_FAILURE
33325 + # Don't test for the "default" C tag, as we know, it's there, but
33326 + # not specially marked.
33329 + if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "$progpath" > /dev/null; then
33330 + taglist="$taglist $tagname"
33331 + # Evaluate the configuration.
33332 + eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$tagname'$/,/^# ### END LIBTOOL TAG CONFIG: '$tagname'$/p' < $progpath`"
33334 + $echo "$progname: ignoring unknown tag $tagname" 1>&2
33340 + eval "$prev=\$arg"
33349 + # Have we seen a non-optional argument yet?
33356 + $echo "$PROGRAM (GNU $PACKAGE) $VERSION$TIMESTAMP"
33358 + $echo "Copyright (C) 2005 Free Software Foundation, Inc."
33359 + $echo "This is free software; see the source for copying conditions. There is NO"
33360 + $echo "warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
33365 + ${SED} -e '1,/^# ### BEGIN LIBTOOL CONFIG/d' -e '/^# ### END LIBTOOL CONFIG/,$d' $progpath
33366 + # Now print the configurations for the tags.
33367 + for tagname in $taglist; do
33368 + ${SED} -n -e "/^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$/,/^# ### END LIBTOOL TAG CONFIG: $tagname$/p" < "$progpath"
33374 + $echo "$progname: enabling shell trace mode"
33376 + preserve_args="$preserve_args $arg"
33384 + $echo "host: $host"
33385 + if test "$build_libtool_libs" = yes; then
33386 + $echo "enable shared libraries"
33388 + $echo "disable shared libraries"
33390 + if test "$build_old_libs" = yes; then
33391 + $echo "enable static libraries"
33393 + $echo "disable static libraries"
33398 + --finish) mode="finish" ;;
33400 + --mode) prevopt="--mode" prev=mode ;;
33401 + --mode=*) mode="$optarg" ;;
33403 + --preserve-dup-deps) duplicate_deps="yes" ;;
33405 + --quiet | --silent)
33407 + preserve_args="$preserve_args $arg"
33413 + preserve_args="$preserve_args --tag"
33416 + set tag "$optarg" ${1+"$@"}
33419 + preserve_args="$preserve_args --tag"
33423 + prevopt="-dlopen"
33424 + prev=execute_dlfiles
33428 + $echo "$modename: unrecognized option \`$arg'" 1>&2
33429 + $echo "$help" 1>&2
33430 + exit $EXIT_FAILURE
33440 +if test -n "$prevopt"; then
33441 + $echo "$modename: option \`$prevopt' requires an argument" 1>&2
33442 + $echo "$help" 1>&2
33443 + exit $EXIT_FAILURE
33446 +case $disable_libs in
33450 + build_libtool_libs=no
33451 + build_old_libs=yes
33454 + build_old_libs=`case $build_libtool_libs in yes) echo no;; *) echo yes;; esac`
33458 +# If this variable is set in any of the actions, the command in it
33459 +# will be execed at the end. This prevents here-documents from being
33460 +# left over by shells.
33463 +if test -z "$show_help"; then
33465 + # Infer the operation mode.
33466 + if test -z "$mode"; then
33467 + $echo "*** Warning: inferring the mode of operation is deprecated." 1>&2
33468 + $echo "*** Future versions of Libtool will require --mode=MODE be specified." 1>&2
33470 + *cc | cc* | *++ | gcc* | *-gcc* | g++* | xlc*)
33482 + *db | *dbx | *strace | *truss)
33492 + # If we have no mode, but dlfiles were specified, then do execute mode.
33493 + test -n "$execute_dlfiles" && mode=execute
33495 + # Just use the default operation mode.
33496 + if test -z "$mode"; then
33497 + if test -n "$nonopt"; then
33498 + $echo "$modename: warning: cannot infer operation mode from \`$nonopt'" 1>&2
33500 + $echo "$modename: warning: cannot infer operation mode without MODE-ARGS" 1>&2
33507 + # Only execute mode is allowed to have -dlopen flags.
33508 + if test -n "$execute_dlfiles" && test "$mode" != execute; then
33509 + $echo "$modename: unrecognized option \`-dlopen'" 1>&2
33510 + $echo "$help" 1>&2
33511 + exit $EXIT_FAILURE
33514 + # Change the help message to a mode-specific one.
33515 + generic_help="$help"
33516 + help="Try \`$modename --help --mode=$mode' for more information."
33518 + # These modes are in order of execution frequency so that they run quickly.
33520 + # libtool compile mode
33522 + modename="$modename: compile"
33523 + # Get the compilation command and the source file.
33525 + srcfile="$nonopt" # always keep a non-empty value in "srcfile"
33534 + case $arg_mode in
33536 + # do not "continue". Instead, add this to base_compile
33548 + # Accept any command-line options.
33551 + if test -n "$libobj" ; then
33552 + $echo "$modename: you cannot specify \`-o' more than once" 1>&2
33553 + exit $EXIT_FAILURE
33559 + -static | -prefer-pic | -prefer-non-pic)
33560 + later="$later $arg"
33570 + arg_mode=arg # the next one goes into the "base_compile" arg list
33571 + continue # The current "srcfile" will either be retained or
33572 + ;; # replaced later. I would guess that would be a bug.
33575 + args=`$echo "X$arg" | $Xsed -e "s/^-Wc,//"`
33577 + save_ifs="$IFS"; IFS=','
33578 + for arg in $args; do
33581 + # Double-quote args containing other shell metacharacters.
33582 + # Many Bourne shells cannot handle close brackets correctly
33583 + # in scan sets, so we specify it separately.
33585 + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
33589 + lastarg="$lastarg $arg"
33592 + lastarg=`$echo "X$lastarg" | $Xsed -e "s/^ //"`
33594 + # Add the arguments to base_compile.
33595 + base_compile="$base_compile $lastarg"
33600 + # Accept the current argument as the source file.
33601 + # The previous "srcfile" becomes the current argument.
33603 + lastarg="$srcfile"
33608 + esac # case $arg_mode
33610 + # Aesthetically quote the previous argument.
33611 + lastarg=`$echo "X$lastarg" | $Xsed -e "$sed_quote_subst"`
33614 + # Double-quote args containing other shell metacharacters.
33615 + # Many Bourne shells cannot handle close brackets correctly
33616 + # in scan sets, and some SunOS ksh mistreat backslash-escaping
33617 + # in scan sets (worked around with variable expansion),
33618 + # and furthermore cannot handle '|' '&' '(' ')' in scan sets
33619 + # at all, so we specify them separately.
33620 + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
33621 + lastarg="\"$lastarg\""
33625 + base_compile="$base_compile $lastarg"
33628 + case $arg_mode in
33630 + $echo "$modename: you must specify an argument for -Xcompile"
33631 + exit $EXIT_FAILURE
33634 + $echo "$modename: you must specify a target with \`-o'" 1>&2
33635 + exit $EXIT_FAILURE
33638 + # Get the name of the library object.
33639 + [ -z "$libobj" ] && libobj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%'`
33643 + # Recognize several different file suffixes.
33644 + # If the user specifies -o file.o, it is replaced with file.lo
33645 + xform='[cCFSifmso]'
33647 + *.ada) xform=ada ;;
33648 + *.adb) xform=adb ;;
33649 + *.ads) xform=ads ;;
33650 + *.asm) xform=asm ;;
33651 + *.c++) xform=c++ ;;
33652 + *.cc) xform=cc ;;
33653 + *.ii) xform=ii ;;
33654 + *.class) xform=class ;;
33655 + *.cpp) xform=cpp ;;
33656 + *.cxx) xform=cxx ;;
33657 + *.f90) xform=f90 ;;
33658 + *.for) xform=for ;;
33659 + *.java) xform=java ;;
33662 + libobj=`$echo "X$libobj" | $Xsed -e "s/\.$xform$/.lo/"`
33665 + *.lo) obj=`$echo "X$libobj" | $Xsed -e "$lo2o"` ;;
33667 + $echo "$modename: cannot determine name of library object from \`$libobj'" 1>&2
33668 + exit $EXIT_FAILURE
33672 + func_infer_tag $base_compile
33674 + for arg in $later; do
33677 + build_old_libs=yes
33693 + qlibobj=`$echo "X$libobj" | $Xsed -e "$sed_quote_subst"`
33695 + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
33696 + qlibobj="\"$qlibobj\"" ;;
33698 + test "X$libobj" != "X$qlibobj" \
33699 + && $echo "X$libobj" | grep '[]~#^*{};<>?"'"'"' &()|`$[]' \
33700 + && $echo "$modename: libobj name \`$libobj' may not contain shell special characters."
33701 + objname=`$echo "X$obj" | $Xsed -e 's%^.*/%%'`
33702 + xdir=`$echo "X$obj" | $Xsed -e 's%/[^/]*$%%'`
33703 + if test "X$xdir" = "X$obj"; then
33708 + lobj=${xdir}$objdir/$objname
33710 + if test -z "$base_compile"; then
33711 + $echo "$modename: you must specify a compilation command" 1>&2
33712 + $echo "$help" 1>&2
33713 + exit $EXIT_FAILURE
33716 + # Delete any leftover library objects.
33717 + if test "$build_old_libs" = yes; then
33718 + removelist="$obj $lobj $libobj ${libobj}T"
33720 + removelist="$lobj $libobj ${libobj}T"
33723 + $run $rm $removelist
33724 + trap "$run $rm $removelist; exit $EXIT_FAILURE" 1 2 15
33726 + # On Cygwin there's no "real" PIC flag so we must build both object types
33728 + cygwin* | mingw* | pw32* | os2*)
33732 + if test "$pic_mode" = no && test "$deplibs_check_method" != pass_all; then
33733 + # non-PIC code in shared libraries is not supported
33737 + # Calculate the filename of the output object if compiler does
33738 + # not support -o with -c
33739 + if test "$compiler_c_o" = no; then
33740 + output_obj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%' -e 's%\.[^.]*$%%'`.${objext}
33741 + lockfile="$output_obj.lock"
33742 + removelist="$removelist $output_obj $lockfile"
33743 + trap "$run $rm $removelist; exit $EXIT_FAILURE" 1 2 15
33750 + # Lock this critical section if it is needed
33751 + # We use this script file to make the link, it avoids creating a new file
33752 + if test "$need_locks" = yes; then
33753 + until $run ln "$srcfile" "$lockfile" 2>/dev/null; do
33754 + $show "Waiting for $lockfile to be removed"
33757 + elif test "$need_locks" = warn; then
33758 + if test -f "$lockfile"; then
33760 +*** ERROR, $lockfile exists and contains:
33761 +`cat $lockfile 2>/dev/null`
33763 +This indicates that another process is trying to use the same
33764 +temporary object file, and libtool could not work around it because
33765 +your compiler does not support \`-c' and \`-o' together. If you
33766 +repeat this compilation, it may succeed, by chance, but you had better
33767 +avoid parallel builds (make -j) in this platform, or get a better
33770 + $run $rm $removelist
33771 + exit $EXIT_FAILURE
33773 + $echo "$srcfile" > "$lockfile"
33776 + if test -n "$fix_srcfile_path"; then
33777 + eval srcfile=\"$fix_srcfile_path\"
33779 + qsrcfile=`$echo "X$srcfile" | $Xsed -e "$sed_quote_subst"`
33780 + case $qsrcfile in
33781 + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
33782 + qsrcfile="\"$qsrcfile\"" ;;
33785 + $run $rm "$libobj" "${libobj}T"
33787 + # Create a libtool object file (analogous to a ".la" file),
33788 + # but don't create it if we're doing a dry run.
33789 + test -z "$run" && cat > ${libobj}T <<EOF
33790 +# $libobj - a libtool object file
33791 +# Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
33793 +# Please DO NOT delete this file!
33794 +# It is necessary for linking the library.
33796 +# Name of the PIC object.
33799 + # Only build a PIC object if we are building libtool libraries.
33800 + if test "$build_libtool_libs" = yes; then
33801 + # Without this assignment, base_compile gets emptied.
33802 + fbsd_hideous_sh_bug=$base_compile
33804 + if test "$pic_mode" != no; then
33805 + command="$base_compile $qsrcfile $pic_flag"
33807 + # Don't build PIC code
33808 + command="$base_compile $qsrcfile"
33811 + if test ! -d "${xdir}$objdir"; then
33812 + $show "$mkdir ${xdir}$objdir"
33813 + $run $mkdir ${xdir}$objdir
33815 + if test "$exit_status" -ne 0 && test ! -d "${xdir}$objdir"; then
33816 + exit $exit_status
33820 + if test -z "$output_obj"; then
33821 + # Place PIC objects in $objdir
33822 + command="$command -o $lobj"
33825 + $run $rm "$lobj" "$output_obj"
33828 + if $run eval "$command"; then :
33830 + test -n "$output_obj" && $run $rm $removelist
33831 + exit $EXIT_FAILURE
33834 + if test "$need_locks" = warn &&
33835 + test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
33837 +*** ERROR, $lockfile contains:
33838 +`cat $lockfile 2>/dev/null`
33840 +but it should contain:
33843 +This indicates that another process is trying to use the same
33844 +temporary object file, and libtool could not work around it because
33845 +your compiler does not support \`-c' and \`-o' together. If you
33846 +repeat this compilation, it may succeed, by chance, but you had better
33847 +avoid parallel builds (make -j) in this platform, or get a better
33850 + $run $rm $removelist
33851 + exit $EXIT_FAILURE
33854 + # Just move the object if needed, then go on to compile the next one
33855 + if test -n "$output_obj" && test "X$output_obj" != "X$lobj"; then
33856 + $show "$mv $output_obj $lobj"
33857 + if $run $mv $output_obj $lobj; then :
33860 + $run $rm $removelist
33865 + # Append the name of the PIC object to the libtool object file.
33866 + test -z "$run" && cat >> ${libobj}T <<EOF
33867 +pic_object='$objdir/$objname'
33871 + # Allow error messages only from the first compilation.
33872 + if test "$suppress_opt" = yes; then
33873 + suppress_output=' >/dev/null 2>&1'
33876 + # No PIC object so indicate it doesn't exist in the libtool
33878 + test -z "$run" && cat >> ${libobj}T <<EOF
33884 + # Only build a position-dependent object if we build old libraries.
33885 + if test "$build_old_libs" = yes; then
33886 + if test "$pic_mode" != yes; then
33887 + # Don't build PIC code
33888 + command="$base_compile $qsrcfile"
33890 + command="$base_compile $qsrcfile $pic_flag"
33892 + if test "$compiler_c_o" = yes; then
33893 + command="$command -o $obj"
33896 + # Suppress compiler output if we already did a PIC compilation.
33897 + command="$command$suppress_output"
33898 + $run $rm "$obj" "$output_obj"
33900 + if $run eval "$command"; then :
33902 + $run $rm $removelist
33903 + exit $EXIT_FAILURE
33906 + if test "$need_locks" = warn &&
33907 + test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
33909 +*** ERROR, $lockfile contains:
33910 +`cat $lockfile 2>/dev/null`
33912 +but it should contain:
33915 +This indicates that another process is trying to use the same
33916 +temporary object file, and libtool could not work around it because
33917 +your compiler does not support \`-c' and \`-o' together. If you
33918 +repeat this compilation, it may succeed, by chance, but you had better
33919 +avoid parallel builds (make -j) in this platform, or get a better
33922 + $run $rm $removelist
33923 + exit $EXIT_FAILURE
33926 + # Just move the object if needed
33927 + if test -n "$output_obj" && test "X$output_obj" != "X$obj"; then
33928 + $show "$mv $output_obj $obj"
33929 + if $run $mv $output_obj $obj; then :
33932 + $run $rm $removelist
33937 + # Append the name of the non-PIC object the libtool object file.
33938 + # Only append if the libtool object file exists.
33939 + test -z "$run" && cat >> ${libobj}T <<EOF
33940 +# Name of the non-PIC object.
33941 +non_pic_object='$objname'
33945 + # Append the name of the non-PIC object the libtool object file.
33946 + # Only append if the libtool object file exists.
33947 + test -z "$run" && cat >> ${libobj}T <<EOF
33948 +# Name of the non-PIC object.
33949 +non_pic_object=none
33954 + $run $mv "${libobj}T" "${libobj}"
33956 + # Unlock the critical section if it was locked
33957 + if test "$need_locks" != no; then
33958 + $run $rm "$lockfile"
33961 + exit $EXIT_SUCCESS
33964 + # libtool link mode
33966 + modename="$modename: link"
33968 + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
33969 + # It is impossible to link a dll without this setting, and
33970 + # we shouldn't force the makefile maintainer to figure out
33971 + # which system we are compiling for in order to pass an extra
33972 + # flag for every libtool invocation.
33973 + # allow_undefined=no
33975 + # FIXME: Unfortunately, there are problems with the above when trying
33976 + # to make a dll which has undefined symbols, in which case not
33977 + # even a static library is built. For now, we need to specify
33978 + # -no-undefined on the libtool link line when we can be certain
33979 + # that all symbols are satisfied, otherwise we get a static library.
33980 + allow_undefined=yes
33983 + allow_undefined=yes
33986 + libtool_args="$nonopt"
33987 + base_compile="$nonopt $@"
33988 + compile_command="$nonopt"
33989 + finalize_command="$nonopt"
33993 + compile_shlibpath=
33994 + finalize_shlibpath=
34002 + lib_search_path=`pwd`
34009 + export_dynamic=no
34011 + export_symbols_regex=
34019 + notinst_path= # paths that contain not-installed libtool libraries
34020 + precious_files_regex=
34021 + prefer_static_libs=no
34034 + func_infer_tag $base_compile
34036 + # We need to know -static, to get the right output filenames.
34040 + -all-static | -static)
34041 + if test "X$arg" = "X-all-static"; then
34042 + if test "$build_libtool_libs" = yes && test -z "$link_static_flag"; then
34043 + $echo "$modename: warning: complete static linking is impossible in this configuration" 1>&2
34045 + if test -n "$link_static_flag"; then
34046 + dlopen_self=$dlopen_self_static
34048 + prefer_static_libs=yes
34050 + if test -z "$pic_flag" && test -n "$link_static_flag"; then
34051 + dlopen_self=$dlopen_self_static
34053 + prefer_static_libs=built
34055 + build_libtool_libs=no
34056 + build_old_libs=yes
34062 + # See if our shared archives depend on static archives.
34063 + test -n "$old_archive_from_new_cmds" && build_old_libs=yes
34065 + # Go through the arguments, transforming them on the way.
34066 + while test "$#" -gt 0; do
34070 + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
34071 + qarg=\"`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`\" ### testsuite: skip nested quoting test
34075 + libtool_args="$libtool_args $qarg"
34077 + # If the previous option needs an argument, assign it.
34078 + if test -n "$prev"; then
34081 + compile_command="$compile_command @OUTPUT@"
34082 + finalize_command="$finalize_command @OUTPUT@"
34087 + dlfiles|dlprefiles)
34088 + if test "$preload" = no; then
34089 + # Add the symbol object into the linking commands.
34090 + compile_command="$compile_command @SYMFILE@"
34091 + finalize_command="$finalize_command @SYMFILE@"
34095 + *.la | *.lo) ;; # We handle these cases below.
34097 + if test "$dlself" = no; then
34099 + export_dynamic=yes
34105 + if test "$prev" = dlprefiles; then
34107 + elif test "$prev" = dlfiles && test "$dlopen_self" != yes; then
34111 + export_dynamic=yes
34117 + if test "$prev" = dlfiles; then
34118 + dlfiles="$dlfiles $arg"
34120 + dlprefiles="$dlprefiles $arg"
34128 + export_symbols="$arg"
34129 + if test ! -f "$arg"; then
34130 + $echo "$modename: symbol file \`$arg' does not exist"
34131 + exit $EXIT_FAILURE
34137 + export_symbols_regex="$arg"
34142 + inst_prefix_dir="$arg"
34147 + precious_files_regex="$arg"
34157 + if test -f "$arg"; then
34160 + for fil in `cat $save_arg`
34162 +# moreargs="$moreargs $fil"
34164 + # A libtool-controlled object.
34166 + # Check to see that this really is a libtool object.
34167 + if (${SED} -e '2q' $arg | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
34171 + # Read the .lo file
34172 + # If there is no directory component, then add one.
34174 + */* | *\\*) . $arg ;;
34178 + if test -z "$pic_object" || \
34179 + test -z "$non_pic_object" ||
34180 + test "$pic_object" = none && \
34181 + test "$non_pic_object" = none; then
34182 + $echo "$modename: cannot find name of object for \`$arg'" 1>&2
34183 + exit $EXIT_FAILURE
34186 + # Extract subdirectory from the argument.
34187 + xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
34188 + if test "X$xdir" = "X$arg"; then
34194 + if test "$pic_object" != none; then
34195 + # Prepend the subdirectory the object is found in.
34196 + pic_object="$xdir$pic_object"
34198 + if test "$prev" = dlfiles; then
34199 + if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
34200 + dlfiles="$dlfiles $pic_object"
34204 + # If libtool objects are unsupported, then we need to preload.
34209 + # CHECK ME: I think I busted this. -Ossama
34210 + if test "$prev" = dlprefiles; then
34211 + # Preload the old-style object.
34212 + dlprefiles="$dlprefiles $pic_object"
34217 + libobjs="$libobjs $pic_object"
34218 + arg="$pic_object"
34221 + # Non-PIC object.
34222 + if test "$non_pic_object" != none; then
34223 + # Prepend the subdirectory the object is found in.
34224 + non_pic_object="$xdir$non_pic_object"
34226 + # A standard non-PIC object
34227 + non_pic_objects="$non_pic_objects $non_pic_object"
34228 + if test -z "$pic_object" || test "$pic_object" = none ; then
34229 + arg="$non_pic_object"
34232 + # If the PIC object exists, use it instead.
34233 + # $xdir was prepended to $pic_object above.
34234 + non_pic_object="$pic_object"
34235 + non_pic_objects="$non_pic_objects $non_pic_object"
34238 + # Only an error if not doing a dry-run.
34239 + if test -z "$run"; then
34240 + $echo "$modename: \`$arg' is not a valid libtool object" 1>&2
34241 + exit $EXIT_FAILURE
34245 + # Extract subdirectory from the argument.
34246 + xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
34247 + if test "X$xdir" = "X$arg"; then
34253 + pic_object=`$echo "X${xdir}${objdir}/${arg}" | $Xsed -e "$lo2o"`
34254 + non_pic_object=`$echo "X${xdir}${arg}" | $Xsed -e "$lo2o"`
34255 + libobjs="$libobjs $pic_object"
34256 + non_pic_objects="$non_pic_objects $non_pic_object"
34261 + $echo "$modename: link input file \`$save_arg' does not exist"
34262 + exit $EXIT_FAILURE
34269 + # We need an absolute path.
34271 + [\\/]* | [A-Za-z]:[\\/]*) ;;
34273 + $echo "$modename: only absolute run-paths are allowed" 1>&2
34274 + exit $EXIT_FAILURE
34277 + if test "$prev" = rpath; then
34278 + case "$rpath " in
34280 + *) rpath="$rpath $arg" ;;
34283 + case "$xrpath " in
34285 + *) xrpath="$xrpath $arg" ;;
34292 + compiler_flags="$compiler_flags $qarg"
34294 + compile_command="$compile_command $qarg"
34295 + finalize_command="$finalize_command $qarg"
34299 + linker_flags="$linker_flags $qarg"
34300 + compiler_flags="$compiler_flags $wl$qarg"
34302 + compile_command="$compile_command $wl$qarg"
34303 + finalize_command="$finalize_command $wl$qarg"
34307 + linker_flags="$linker_flags $qarg"
34308 + compiler_flags="$compiler_flags $qarg"
34310 + compile_command="$compile_command $qarg"
34311 + finalize_command="$finalize_command $qarg"
34315 + shrext_cmds="$arg"
34319 + darwin_framework|darwin_framework_skip)
34320 + test "$prev" = "darwin_framework" && compiler_flags="$compiler_flags $arg"
34321 + compile_command="$compile_command $arg"
34322 + finalize_command="$finalize_command $arg"
34327 + eval "$prev=\"\$arg\""
34332 + fi # test -n "$prev"
34338 + if test -n "$link_static_flag"; then
34339 + compile_command="$compile_command $link_static_flag"
34340 + finalize_command="$finalize_command $link_static_flag"
34345 + -allow-undefined)
34346 + # FIXME: remove this flag sometime in the future.
34347 + $echo "$modename: \`-allow-undefined' is deprecated because it is the default" 1>&2
34352 + avoid_version=yes
34367 + export_dynamic=yes
34371 + -export-symbols | -export-symbols-regex)
34372 + if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
34373 + $echo "$modename: more than one -exported-symbols argument is not allowed"
34374 + exit $EXIT_FAILURE
34376 + if test "X$arg" = "X-export-symbols"; then
34379 + prev=expsyms_regex
34384 + -framework|-arch|-isysroot)
34386 + *" ${arg} ${1} "* | *" ${arg} ${1} "*)
34387 + prev=darwin_framework_skip ;;
34388 + *) compiler_flags="$compiler_flags $arg"
34389 + prev=darwin_framework ;;
34391 + compile_command="$compile_command $arg"
34392 + finalize_command="$finalize_command $arg"
34396 + -inst-prefix-dir)
34401 + # The native IRIX linker understands -LANG:*, -LIST:* and -LNO:*
34402 + # so, if we see these flags be careful not to treat them like -L
34404 + case $with_gcc/$host in
34405 + no/*-*-irix* | /*-*-irix*)
34406 + compile_command="$compile_command $arg"
34407 + finalize_command="$finalize_command $arg"
34414 + dir=`$echo "X$arg" | $Xsed -e 's/^-L//'`
34415 + # We need an absolute path.
34417 + [\\/]* | [A-Za-z]:[\\/]*) ;;
34419 + absdir=`cd "$dir" && pwd`
34420 + if test -z "$absdir"; then
34421 + $echo "$modename: cannot determine absolute directory name of \`$dir'" 1>&2
34423 + notinst_path="$notinst_path $dir"
34428 + case "$deplibs " in
34431 + deplibs="$deplibs -L$dir"
34432 + lib_search_path="$lib_search_path $dir"
34436 + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
34437 + testbindir=`$echo "X$dir" | $Xsed -e 's*/lib$*/bin*'`
34438 + case :$dllsearchpath: in
34440 + *) dllsearchpath="$dllsearchpath:$dir";;
34442 + case :$dllsearchpath: in
34443 + *":$testbindir:"*) ;;
34444 + *) dllsearchpath="$dllsearchpath:$testbindir";;
34452 + if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then
34454 + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos*)
34455 + # These systems don't actually have a C or math library (as such)
34459 + # These systems don't actually have a C library (as such)
34460 + test "X$arg" = "X-lc" && continue
34462 + *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
34463 + # Do not include libc due to us having libc/libc_r.
34464 + test "X$arg" = "X-lc" && continue
34466 + *-*-rhapsody* | *-*-darwin1.[012])
34467 + # Rhapsody C and math libraries are in the System framework
34468 + deplibs="$deplibs -framework System"
34471 + *-*-sco3.2v5* | *-*-sco5v6*)
34472 + # Causes problems with __ctype
34473 + test "X$arg" = "X-lc" && continue
34475 + *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
34476 + # Compiler inserts libc in the correct place for threads to work
34477 + test "X$arg" = "X-lc" && continue
34480 + elif test "X$arg" = "X-lc_r"; then
34482 + *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
34483 + # Do not include libc_r directly, use -pthread flag.
34488 + deplibs="$deplibs $arg"
34492 + # Tru64 UNIX uses -model [arg] to determine the layout of C++
34493 + # classes, name mangling, and exception handling.
34495 + compile_command="$compile_command $arg"
34496 + compiler_flags="$compiler_flags $arg"
34497 + finalize_command="$finalize_command $arg"
34502 + -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe)
34503 + compiler_flags="$compiler_flags $arg"
34504 + compile_command="$compile_command $arg"
34505 + finalize_command="$finalize_command $arg"
34514 + # -64, -mips[0-9] enable 64-bit mode on the SGI compiler
34515 + # -r[0-9][0-9]* specifies the processor on the SGI compiler
34516 + # -xarch=*, -xtarget=* enable 64-bit mode on the Sun compiler
34517 + # +DA*, +DD* enable 64-bit mode on the HP compiler
34518 + # -q* pass through compiler args for the IBM compiler
34519 + # -m* pass through architecture-specific compiler args for GCC
34520 + # -m*, -t[45]*, -txscale* pass through architecture-specific
34521 + # compiler args for GCC
34522 + # -pg pass through profiling flag for GCC
34523 + # @file GCC response files
34524 + -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*|-pg| \
34525 + -t[45]*|-txscale*|@*)
34527 + # Unknown arguments in both finalize_command and compile_command need
34528 + # to be aesthetically quoted because they are evaled later.
34529 + arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
34531 + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
34535 + compile_command="$compile_command $arg"
34536 + finalize_command="$finalize_command $arg"
34537 + compiler_flags="$compiler_flags $arg"
34546 + -no-fast-install)
34553 + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
34554 + # The PATH hackery in wrapper scripts is required on Windows
34555 + # in order for the loader to find any dlls it needs.
34556 + $echo "$modename: warning: \`-no-install' is ignored for $host" 1>&2
34557 + $echo "$modename: warning: assuming \`-no-fast-install' instead" 1>&2
34560 + *) no_install=yes ;;
34566 + allow_undefined=no
34575 + -o) prev=output ;;
34577 + -precious-files-regex)
34578 + prev=precious_regex
34598 + dir=`$echo "X$arg" | $Xsed -e 's/^-R//'`
34599 + # We need an absolute path.
34601 + [\\/]* | [A-Za-z]:[\\/]*) ;;
34603 + $echo "$modename: only absolute run-paths are allowed" 1>&2
34604 + exit $EXIT_FAILURE
34607 + case "$xrpath " in
34609 + *) xrpath="$xrpath $dir" ;;
34615 + # The effects of -static are defined in a previous loop.
34616 + # We used to do the same as -all-static on platforms that
34617 + # didn't have a PIC flag, but the assumption that the effects
34618 + # would be equivalent was wrong. It would break on at least
34619 + # Digital Unix and AIX.
34639 + args=`$echo "X$arg" | $Xsed -e "$sed_quote_subst" -e 's/^-Wc,//'`
34641 + save_ifs="$IFS"; IFS=','
34642 + for flag in $args; do
34645 + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
34649 + arg="$arg $wl$flag"
34650 + compiler_flags="$compiler_flags $flag"
34653 + arg=`$echo "X$arg" | $Xsed -e "s/^ //"`
34657 + args=`$echo "X$arg" | $Xsed -e "$sed_quote_subst" -e 's/^-Wl,//'`
34659 + save_ifs="$IFS"; IFS=','
34660 + for flag in $args; do
34663 + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
34667 + arg="$arg $wl$flag"
34668 + compiler_flags="$compiler_flags $wl$flag"
34669 + linker_flags="$linker_flags $flag"
34672 + arg=`$echo "X$arg" | $Xsed -e "s/^ //"`
34690 + # Some other compiler flag.
34692 + # Unknown arguments in both finalize_command and compile_command need
34693 + # to be aesthetically quoted because they are evaled later.
34694 + arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
34696 + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
34703 + # A standard object.
34704 + objs="$objs $arg"
34708 + # A libtool-controlled object.
34710 + # Check to see that this really is a libtool object.
34711 + if (${SED} -e '2q' $arg | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
34715 + # Read the .lo file
34716 + # If there is no directory component, then add one.
34718 + */* | *\\*) . $arg ;;
34722 + if test -z "$pic_object" || \
34723 + test -z "$non_pic_object" ||
34724 + test "$pic_object" = none && \
34725 + test "$non_pic_object" = none; then
34726 + $echo "$modename: cannot find name of object for \`$arg'" 1>&2
34727 + exit $EXIT_FAILURE
34730 + # Extract subdirectory from the argument.
34731 + xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
34732 + if test "X$xdir" = "X$arg"; then
34738 + if test "$pic_object" != none; then
34739 + # Prepend the subdirectory the object is found in.
34740 + pic_object="$xdir$pic_object"
34742 + if test "$prev" = dlfiles; then
34743 + if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
34744 + dlfiles="$dlfiles $pic_object"
34748 + # If libtool objects are unsupported, then we need to preload.
34753 + # CHECK ME: I think I busted this. -Ossama
34754 + if test "$prev" = dlprefiles; then
34755 + # Preload the old-style object.
34756 + dlprefiles="$dlprefiles $pic_object"
34761 + libobjs="$libobjs $pic_object"
34762 + arg="$pic_object"
34765 + # Non-PIC object.
34766 + if test "$non_pic_object" != none; then
34767 + # Prepend the subdirectory the object is found in.
34768 + non_pic_object="$xdir$non_pic_object"
34770 + # A standard non-PIC object
34771 + non_pic_objects="$non_pic_objects $non_pic_object"
34772 + if test -z "$pic_object" || test "$pic_object" = none ; then
34773 + arg="$non_pic_object"
34776 + # If the PIC object exists, use it instead.
34777 + # $xdir was prepended to $pic_object above.
34778 + non_pic_object="$pic_object"
34779 + non_pic_objects="$non_pic_objects $non_pic_object"
34782 + # Only an error if not doing a dry-run.
34783 + if test -z "$run"; then
34784 + $echo "$modename: \`$arg' is not a valid libtool object" 1>&2
34785 + exit $EXIT_FAILURE
34789 + # Extract subdirectory from the argument.
34790 + xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
34791 + if test "X$xdir" = "X$arg"; then
34797 + pic_object=`$echo "X${xdir}${objdir}/${arg}" | $Xsed -e "$lo2o"`
34798 + non_pic_object=`$echo "X${xdir}${arg}" | $Xsed -e "$lo2o"`
34799 + libobjs="$libobjs $pic_object"
34800 + non_pic_objects="$non_pic_objects $non_pic_object"
34807 + deplibs="$deplibs $arg"
34808 + old_deplibs="$old_deplibs $arg"
34813 + # A libtool-controlled library.
34815 + if test "$prev" = dlfiles; then
34816 + # This library was specified with -dlopen.
34817 + dlfiles="$dlfiles $arg"
34819 + elif test "$prev" = dlprefiles; then
34820 + # The library was specified with -dlpreopen.
34821 + dlprefiles="$dlprefiles $arg"
34824 + deplibs="$deplibs $arg"
34829 + # Some other compiler argument.
34831 + # Unknown arguments in both finalize_command and compile_command need
34832 + # to be aesthetically quoted because they are evaled later.
34833 + arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
34835 + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
34842 + # Now actually substitute the argument into the commands.
34843 + if test -n "$arg"; then
34844 + compile_command="$compile_command $arg"
34845 + finalize_command="$finalize_command $arg"
34847 + done # argument parsing loop
34849 + if test -n "$prev"; then
34850 + $echo "$modename: the \`$prevarg' option requires an argument" 1>&2
34851 + $echo "$help" 1>&2
34852 + exit $EXIT_FAILURE
34855 + if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then
34856 + eval arg=\"$export_dynamic_flag_spec\"
34857 + compile_command="$compile_command $arg"
34858 + finalize_command="$finalize_command $arg"
34862 + # calculate the name of the file, without its directory
34863 + outputname=`$echo "X$output" | $Xsed -e 's%^.*/%%'`
34864 + libobjs_save="$libobjs"
34866 + if test -n "$shlibpath_var"; then
34867 + # get the directories listed in $shlibpath_var
34868 + eval shlib_search_path=\`\$echo \"X\${$shlibpath_var}\" \| \$Xsed -e \'s/:/ /g\'\`
34870 + shlib_search_path=
34872 + eval sys_lib_search_path=\"$sys_lib_search_path_spec\"
34873 + eval sys_lib_dlsearch_path=\"$sys_lib_dlsearch_path_spec\"
34875 + output_objdir=`$echo "X$output" | $Xsed -e 's%/[^/]*$%%'`
34876 + if test "X$output_objdir" = "X$output"; then
34877 + output_objdir="$objdir"
34879 + output_objdir="$output_objdir/$objdir"
34881 + # Create the object directory.
34882 + if test ! -d "$output_objdir"; then
34883 + $show "$mkdir $output_objdir"
34884 + $run $mkdir $output_objdir
34886 + if test "$exit_status" -ne 0 && test ! -d "$output_objdir"; then
34887 + exit $exit_status
34891 + # Determine the type of output
34894 + $echo "$modename: you must specify an output file" 1>&2
34895 + $echo "$help" 1>&2
34896 + exit $EXIT_FAILURE
34898 + *.$libext) linkmode=oldlib ;;
34899 + *.lo | *.$objext) linkmode=obj ;;
34900 + *.la) linkmode=lib ;;
34901 + *) linkmode=prog ;; # Anything else should be a program.
34905 + *cygwin* | *mingw* | *pw32*)
34906 + # don't eliminate duplications in $postdeps and $predeps
34907 + duplicate_compiler_generated_deps=yes
34910 + duplicate_compiler_generated_deps=$duplicate_deps
34916 + # Find all interdependent deplibs by searching for libraries
34917 + # that are linked more than once (e.g. -la -lb -la)
34918 + for deplib in $deplibs; do
34919 + if test "X$duplicate_deps" = "Xyes" ; then
34921 + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
34924 + libs="$libs $deplib"
34927 + if test "$linkmode" = lib; then
34928 + libs="$predeps $libs $compiler_lib_search_path $postdeps"
34930 + # Compute libraries that are listed more than once in $predeps
34931 + # $postdeps and mark them as special (i.e., whose duplicates are
34932 + # not to be eliminated).
34934 + if test "X$duplicate_compiler_generated_deps" = "Xyes" ; then
34935 + for pre_post_dep in $predeps $postdeps; do
34936 + case "$pre_post_deps " in
34937 + *" $pre_post_dep "*) specialdeplibs="$specialdeplibs $pre_post_deps" ;;
34939 + pre_post_deps="$pre_post_deps $pre_post_dep"
34946 + newdependency_libs=
34947 + newlib_search_path=
34948 + need_relink=no # whether we're linking any uninstalled libtool libraries
34949 + notinst_deplibs= # not-installed libtool libraries
34950 + case $linkmode in
34952 + passes="conv link"
34953 + for file in $dlfiles $dlprefiles; do
34957 + $echo "$modename: libraries can \`-dlopen' only libtool libraries: $file" 1>&2
34958 + exit $EXIT_FAILURE
34965 + finalize_deplibs=
34969 + passes="conv scan dlopen dlpreopen link"
34974 + for pass in $passes; do
34975 + if test "$linkmode,$pass" = "lib,link" ||
34976 + test "$linkmode,$pass" = "prog,scan"; then
34980 + if test "$linkmode" = prog; then
34982 + dlopen) libs="$dlfiles" ;;
34983 + dlpreopen) libs="$dlprefiles" ;;
34984 + link) libs="$deplibs %DEPLIBS% $dependency_libs" ;;
34987 + if test "$pass" = dlopen; then
34988 + # Collect dlpreopened libraries
34989 + save_deplibs="$deplibs"
34992 + for deplib in $libs; do
34996 + -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe)
34997 + if test "$linkmode,$pass" = "prog,link"; then
34998 + compile_deplibs="$deplib $compile_deplibs"
34999 + finalize_deplibs="$deplib $finalize_deplibs"
35001 + compiler_flags="$compiler_flags $deplib"
35006 + if test "$linkmode" != lib && test "$linkmode" != prog; then
35007 + $echo "$modename: warning: \`-l' is ignored for archives/objects" 1>&2
35010 + name=`$echo "X$deplib" | $Xsed -e 's/^-l//'`
35011 + for searchdir in $newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path; do
35012 + for search_ext in .la $std_shrext .so .a; do
35013 + # Search the libtool library
35014 + lib="$searchdir/lib${name}${search_ext}"
35015 + if test -f "$lib"; then
35016 + if test "$search_ext" = ".la"; then
35025 + if test "$found" != yes; then
35026 + # deplib doesn't seem to be a libtool library
35027 + if test "$linkmode,$pass" = "prog,link"; then
35028 + compile_deplibs="$deplib $compile_deplibs"
35029 + finalize_deplibs="$deplib $finalize_deplibs"
35031 + deplibs="$deplib $deplibs"
35032 + test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
35035 + else # deplib is a libtool library
35036 + # If $allow_libtool_libs_with_static_runtimes && $deplib is a stdlib,
35037 + # We need to do some special things here, and not later.
35038 + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
35039 + case " $predeps $postdeps " in
35041 + if (${SED} -e '2q' $lib |
35042 + grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
35046 + */* | *\\*) . $lib ;;
35049 + for l in $old_library $library_names; do
35052 + if test "X$ll" = "X$old_library" ; then # only static version available
35054 + ladir=`$echo "X$lib" | $Xsed -e 's%/[^/]*$%%'`
35055 + test "X$ladir" = "X$lib" && ladir="."
35056 + lib=$ladir/$old_library
35057 + if test "$linkmode,$pass" = "prog,link"; then
35058 + compile_deplibs="$deplib $compile_deplibs"
35059 + finalize_deplibs="$deplib $finalize_deplibs"
35061 + deplibs="$deplib $deplibs"
35062 + test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
35074 + case $linkmode in
35076 + deplibs="$deplib $deplibs"
35077 + test "$pass" = conv && continue
35078 + newdependency_libs="$deplib $newdependency_libs"
35079 + newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`
35082 + if test "$pass" = conv; then
35083 + deplibs="$deplib $deplibs"
35086 + if test "$pass" = scan; then
35087 + deplibs="$deplib $deplibs"
35089 + compile_deplibs="$deplib $compile_deplibs"
35090 + finalize_deplibs="$deplib $finalize_deplibs"
35092 + newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`
35095 + $echo "$modename: warning: \`-L' is ignored for archives/objects" 1>&2
35101 + if test "$pass" = link; then
35102 + dir=`$echo "X$deplib" | $Xsed -e 's/^-R//'`
35103 + # Make sure the xrpath contains only unique directories.
35104 + case "$xrpath " in
35106 + *) xrpath="$xrpath $dir" ;;
35109 + deplibs="$deplib $deplibs"
35112 + *.la) lib="$deplib" ;;
35114 + if test "$pass" = conv; then
35115 + deplibs="$deplib $deplibs"
35118 + case $linkmode in
35121 + case $deplibs_check_method in
35123 + set dummy $deplibs_check_method
35124 + match_pattern_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
35125 + if eval $echo \"$deplib\" 2>/dev/null \
35127 + | $EGREP "$match_pattern_regex" > /dev/null; then
35135 + if test "$valid_a_lib" != yes; then
35137 + $echo "*** Warning: Trying to link with static lib archive $deplib."
35138 + $echo "*** I have the capability to make that library automatically link in when"
35139 + $echo "*** you link to this library. But I can only do this if you have a"
35140 + $echo "*** shared version of the library, which you do not appear to have"
35141 + $echo "*** because the file extensions .$libext of this argument makes me believe"
35142 + $echo "*** that it is just a static archive that I should not used here."
35145 + $echo "*** Warning: Linking the shared library $output against the"
35146 + $echo "*** static library $deplib is not portable!"
35147 + deplibs="$deplib $deplibs"
35152 + if test "$pass" != link; then
35153 + deplibs="$deplib $deplibs"
35155 + compile_deplibs="$deplib $compile_deplibs"
35156 + finalize_deplibs="$deplib $finalize_deplibs"
35162 + *.lo | *.$objext)
35163 + if test "$pass" = conv; then
35164 + deplibs="$deplib $deplibs"
35165 + elif test "$linkmode" = prog; then
35166 + if test "$pass" = dlpreopen || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then
35167 + # If there is no dlopen support or we're linking statically,
35168 + # we need to preload.
35169 + newdlprefiles="$newdlprefiles $deplib"
35170 + compile_deplibs="$deplib $compile_deplibs"
35171 + finalize_deplibs="$deplib $finalize_deplibs"
35173 + newdlfiles="$newdlfiles $deplib"
35182 + esac # case $deplib
35183 + if test "$found" = yes || test -f "$lib"; then :
35185 + $echo "$modename: cannot find the library \`$lib' or unhandled argument \`$deplib'" 1>&2
35186 + exit $EXIT_FAILURE
35189 + # Check to see that this really is a libtool archive.
35190 + if (${SED} -e '2q' $lib | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
35192 + $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
35193 + exit $EXIT_FAILURE
35196 + ladir=`$echo "X$lib" | $Xsed -e 's%/[^/]*$%%'`
35197 + test "X$ladir" = "X$lib" && ladir="."
35205 + # If the library was installed with an old release of libtool,
35206 + # it will not redefine variables installed, or shouldnotlink
35212 + # Read the .la file
35214 + */* | *\\*) . $lib ;;
35218 + if test "$linkmode,$pass" = "lib,link" ||
35219 + test "$linkmode,$pass" = "prog,scan" ||
35220 + { test "$linkmode" != prog && test "$linkmode" != lib; }; then
35221 + test -n "$dlopen" && dlfiles="$dlfiles $dlopen"
35222 + test -n "$dlpreopen" && dlprefiles="$dlprefiles $dlpreopen"
35225 + if test "$pass" = conv; then
35226 + # Only check for convenience libraries
35227 + deplibs="$lib $deplibs"
35228 + if test -z "$libdir"; then
35229 + if test -z "$old_library"; then
35230 + $echo "$modename: cannot find name of link library for \`$lib'" 1>&2
35231 + exit $EXIT_FAILURE
35233 + # It is a libtool convenience library, so add in its objects.
35234 + convenience="$convenience $ladir/$objdir/$old_library"
35235 + old_convenience="$old_convenience $ladir/$objdir/$old_library"
35237 + for deplib in $dependency_libs; do
35238 + deplibs="$deplib $deplibs"
35239 + if test "X$duplicate_deps" = "Xyes" ; then
35240 + case "$tmp_libs " in
35241 + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
35244 + tmp_libs="$tmp_libs $deplib"
35246 + elif test "$linkmode" != prog && test "$linkmode" != lib; then
35247 + $echo "$modename: \`$lib' is not a convenience library" 1>&2
35248 + exit $EXIT_FAILURE
35251 + fi # $pass = conv
35254 + # Get the name of the library we link against.
35256 + for l in $old_library $library_names; do
35259 + if test -z "$linklib"; then
35260 + $echo "$modename: cannot find name of link library for \`$lib'" 1>&2
35261 + exit $EXIT_FAILURE
35264 + # This library was specified with -dlopen.
35265 + if test "$pass" = dlopen; then
35266 + if test -z "$libdir"; then
35267 + $echo "$modename: cannot -dlopen a convenience library: \`$lib'" 1>&2
35268 + exit $EXIT_FAILURE
35270 + if test -z "$dlname" ||
35271 + test "$dlopen_support" != yes ||
35272 + test "$build_libtool_libs" = no; then
35273 + # If there is no dlname, no dlopen support or we're linking
35274 + # statically, we need to preload. We also need to preload any
35275 + # dependent libraries so libltdl's deplib preloader doesn't
35276 + # bomb out in the load deplibs phase.
35277 + dlprefiles="$dlprefiles $lib $dependency_libs"
35279 + newdlfiles="$newdlfiles $lib"
35282 + fi # $pass = dlopen
35284 + # We need an absolute path.
35286 + [\\/]* | [A-Za-z]:[\\/]*) abs_ladir="$ladir" ;;
35288 + abs_ladir=`cd "$ladir" && pwd`
35289 + if test -z "$abs_ladir"; then
35290 + $echo "$modename: warning: cannot determine absolute directory name of \`$ladir'" 1>&2
35291 + $echo "$modename: passing it literally to the linker, although it might fail" 1>&2
35292 + abs_ladir="$ladir"
35296 + laname=`$echo "X$lib" | $Xsed -e 's%^.*/%%'`
35298 + # Find the relevant object directory and library name.
35299 + if test "X$installed" = Xyes; then
35300 + if test ! -f "$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then
35301 + $echo "$modename: warning: library \`$lib' was moved." 1>&2
35303 + absdir="$abs_ladir"
35304 + libdir="$abs_ladir"
35309 + test "X$hardcode_automatic" = Xyes && avoidtemprpath=yes
35311 + if test ! -f "$ladir/$objdir/$linklib" && test -f "$abs_ladir/$linklib"; then
35313 + absdir="$abs_ladir"
35314 + # Remove this search path later
35315 + notinst_path="$notinst_path $abs_ladir"
35317 + dir="$ladir/$objdir"
35318 + absdir="$abs_ladir/$objdir"
35319 + # Remove this search path later
35320 + notinst_path="$notinst_path $abs_ladir"
35322 + fi # $installed = yes
35323 + name=`$echo "X$laname" | $Xsed -e 's/\.la$//' -e 's/^lib//'`
35325 + # This library was specified with -dlpreopen.
35326 + if test "$pass" = dlpreopen; then
35327 + if test -z "$libdir"; then
35328 + $echo "$modename: cannot -dlpreopen a convenience library: \`$lib'" 1>&2
35329 + exit $EXIT_FAILURE
35331 + # Prefer using a static library (so that no silly _DYNAMIC symbols
35332 + # are required to link).
35333 + if test -n "$old_library"; then
35334 + newdlprefiles="$newdlprefiles $dir/$old_library"
35335 + # Otherwise, use the dlname, so that lt_dlopen finds it.
35336 + elif test -n "$dlname"; then
35337 + newdlprefiles="$newdlprefiles $dir/$dlname"
35339 + newdlprefiles="$newdlprefiles $dir/$linklib"
35341 + fi # $pass = dlpreopen
35343 + if test -z "$libdir"; then
35344 + # Link the convenience library
35345 + if test "$linkmode" = lib; then
35346 + deplibs="$dir/$old_library $deplibs"
35347 + elif test "$linkmode,$pass" = "prog,link"; then
35348 + compile_deplibs="$dir/$old_library $compile_deplibs"
35349 + finalize_deplibs="$dir/$old_library $finalize_deplibs"
35351 + deplibs="$lib $deplibs" # used for prog,scan pass
35357 + if test "$linkmode" = prog && test "$pass" != link; then
35358 + newlib_search_path="$newlib_search_path $ladir"
35359 + deplibs="$lib $deplibs"
35361 + linkalldeplibs=no
35362 + if test "$link_all_deplibs" != no || test -z "$library_names" ||
35363 + test "$build_libtool_libs" = no; then
35364 + linkalldeplibs=yes
35368 + for deplib in $dependency_libs; do
35370 + -L*) newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`;; ### testsuite: skip nested quoting test
35372 + # Need to link against all dependency_libs?
35373 + if test "$linkalldeplibs" = yes; then
35374 + deplibs="$deplib $deplibs"
35376 + # Need to hardcode shared library paths
35377 + # or/and link against static libraries
35378 + newdependency_libs="$deplib $newdependency_libs"
35380 + if test "X$duplicate_deps" = "Xyes" ; then
35381 + case "$tmp_libs " in
35382 + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
35385 + tmp_libs="$tmp_libs $deplib"
35386 + done # for deplib
35388 + fi # $linkmode = prog...
35390 + if test "$linkmode,$pass" = "prog,link"; then
35391 + if test -n "$library_names" &&
35392 + { test "$prefer_static_libs" = no || test -z "$old_library"; }; then
35393 + # We need to hardcode the library path
35394 + if test -n "$shlibpath_var" && test -z "$avoidtemprpath" ; then
35395 + # Make sure the rpath contains only unique directories.
35396 + case "$temp_rpath " in
35398 + *" $absdir "*) ;;
35399 + *) temp_rpath="$temp_rpath $absdir" ;;
35403 + # Hardcode the library path.
35404 + # Skip directories that are in the system default run-time
35406 + case " $sys_lib_dlsearch_path " in
35407 + *" $absdir "*) ;;
35409 + case "$compile_rpath " in
35410 + *" $absdir "*) ;;
35411 + *) compile_rpath="$compile_rpath $absdir"
35415 + case " $sys_lib_dlsearch_path " in
35416 + *" $libdir "*) ;;
35418 + case "$finalize_rpath " in
35419 + *" $libdir "*) ;;
35420 + *) finalize_rpath="$finalize_rpath $libdir"
35424 + fi # $linkmode,$pass = prog,link...
35426 + if test "$alldeplibs" = yes &&
35427 + { test "$deplibs_check_method" = pass_all ||
35428 + { test "$build_libtool_libs" = yes &&
35429 + test -n "$library_names"; }; }; then
35430 + # We only need to search for static libraries
35435 + link_static=no # Whether the deplib will be linked statically
35436 + use_static_libs=$prefer_static_libs
35437 + if test "$use_static_libs" = built && test "$installed" = yes ; then
35438 + use_static_libs=no
35440 + if test -n "$library_names" &&
35441 + { test "$use_static_libs" = no || test -z "$old_library"; }; then
35442 + if test "$installed" = no; then
35443 + notinst_deplibs="$notinst_deplibs $lib"
35446 + # This is a shared library
35448 + # Warn about portability, can't link against -module's on
35449 + # some systems (darwin)
35450 + if test "$shouldnotlink" = yes && test "$pass" = link ; then
35452 + if test "$linkmode" = prog; then
35453 + $echo "*** Warning: Linking the executable $output against the loadable module"
35455 + $echo "*** Warning: Linking the shared library $output against the loadable module"
35457 + $echo "*** $linklib is not portable!"
35459 + if test "$linkmode" = lib &&
35460 + test "$hardcode_into_libs" = yes; then
35461 + # Hardcode the library path.
35462 + # Skip directories that are in the system default run-time
35464 + case " $sys_lib_dlsearch_path " in
35465 + *" $absdir "*) ;;
35467 + case "$compile_rpath " in
35468 + *" $absdir "*) ;;
35469 + *) compile_rpath="$compile_rpath $absdir"
35473 + case " $sys_lib_dlsearch_path " in
35474 + *" $libdir "*) ;;
35476 + case "$finalize_rpath " in
35477 + *" $libdir "*) ;;
35478 + *) finalize_rpath="$finalize_rpath $libdir"
35484 + if test -n "$old_archive_from_expsyms_cmds"; then
35485 + # figure out the soname
35486 + set dummy $library_names
35489 + libname=`eval \\$echo \"$libname_spec\"`
35490 + # use dlname if we got it. it's perfectly good, no?
35491 + if test -n "$dlname"; then
35493 + elif test -n "$soname_spec"; then
35496 + *cygwin* | mingw*)
35497 + major=`expr $current - $age`
35498 + versuffix="-$major"
35501 + eval soname=\"$soname_spec\"
35503 + soname="$realname"
35506 + # Make a new name for the extract_expsyms_cmds to use
35508 + soname=`$echo $soroot | ${SED} -e 's/^.*\///'`
35509 + newlib="libimp-`$echo $soname | ${SED} 's/^lib//;s/\.dll$//'`.a"
35511 + # If the library has no export list, then create one now
35512 + if test -f "$output_objdir/$soname-def"; then :
35514 + $show "extracting exported symbol list from \`$soname'"
35515 + save_ifs="$IFS"; IFS='~'
35516 + cmds=$extract_expsyms_cmds
35517 + for cmd in $cmds; do
35519 + eval cmd=\"$cmd\"
35521 + $run eval "$cmd" || exit $?
35527 + if test -f "$output_objdir/$newlib"; then :; else
35528 + $show "generating import library for \`$soname'"
35529 + save_ifs="$IFS"; IFS='~'
35530 + cmds=$old_archive_from_expsyms_cmds
35531 + for cmd in $cmds; do
35533 + eval cmd=\"$cmd\"
35535 + $run eval "$cmd" || exit $?
35539 + # make sure the library variables are pointing to the new library
35540 + dir=$output_objdir
35542 + fi # test -n "$old_archive_from_expsyms_cmds"
35544 + if test "$linkmode" = prog || test "$mode" != relink; then
35549 + case $hardcode_action in
35550 + immediate | unsupported)
35551 + if test "$hardcode_direct" = no; then
35552 + add="$dir/$linklib"
35554 + *-*-sco3.2v5.0.[024]*) add_dir="-L$dir" ;;
35555 + *-*-sysv4*uw2*) add_dir="-L$dir" ;;
35556 + *-*-sysv5OpenUNIX* | *-*-sysv5UnixWare7.[01].[10]* | \
35557 + *-*-unixware7*) add_dir="-L$dir" ;;
35559 + # if the lib is a module then we can not link against
35560 + # it, someone is ignoring the new warnings I added
35561 + if /usr/bin/file -L $add 2> /dev/null |
35562 + $EGREP ": [^:]* bundle" >/dev/null ; then
35563 + $echo "** Warning, lib $linklib is a module, not a shared library"
35564 + if test -z "$old_library" ; then
35566 + $echo "** And there doesn't seem to be a static archive available"
35567 + $echo "** The link will probably fail, sorry"
35569 + add="$dir/$old_library"
35573 + elif test "$hardcode_minus_L" = no; then
35575 + *-*-sunos*) add_shlibpath="$dir" ;;
35579 + elif test "$hardcode_shlibpath_var" = no; then
35580 + add_shlibpath="$dir"
35587 + if test "$hardcode_direct" = yes; then
35588 + add="$dir/$linklib"
35589 + elif test "$hardcode_minus_L" = yes; then
35591 + # Try looking first in the location we're being installed to.
35592 + if test -n "$inst_prefix_dir"; then
35595 + add_dir="$add_dir -L$inst_prefix_dir$libdir"
35600 + elif test "$hardcode_shlibpath_var" = yes; then
35601 + add_shlibpath="$dir"
35607 + *) lib_linked=no ;;
35610 + if test "$lib_linked" != yes; then
35611 + $echo "$modename: configuration error: unsupported hardcode properties"
35612 + exit $EXIT_FAILURE
35615 + if test -n "$add_shlibpath"; then
35616 + case :$compile_shlibpath: in
35617 + *":$add_shlibpath:"*) ;;
35618 + *) compile_shlibpath="$compile_shlibpath$add_shlibpath:" ;;
35621 + if test "$linkmode" = prog; then
35622 + test -n "$add_dir" && compile_deplibs="$add_dir $compile_deplibs"
35623 + test -n "$add" && compile_deplibs="$add $compile_deplibs"
35625 + test -n "$add_dir" && deplibs="$add_dir $deplibs"
35626 + test -n "$add" && deplibs="$add $deplibs"
35627 + if test "$hardcode_direct" != yes && \
35628 + test "$hardcode_minus_L" != yes && \
35629 + test "$hardcode_shlibpath_var" = yes; then
35630 + case :$finalize_shlibpath: in
35631 + *":$libdir:"*) ;;
35632 + *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
35638 + if test "$linkmode" = prog || test "$mode" = relink; then
35642 + # Finalize command for both is simple: just hardcode it.
35643 + if test "$hardcode_direct" = yes; then
35644 + add="$libdir/$linklib"
35645 + elif test "$hardcode_minus_L" = yes; then
35646 + add_dir="-L$libdir"
35648 + elif test "$hardcode_shlibpath_var" = yes; then
35649 + case :$finalize_shlibpath: in
35650 + *":$libdir:"*) ;;
35651 + *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
35654 + elif test "$hardcode_automatic" = yes; then
35655 + if test -n "$inst_prefix_dir" &&
35656 + test -f "$inst_prefix_dir$libdir/$linklib" ; then
35657 + add="$inst_prefix_dir$libdir/$linklib"
35659 + add="$libdir/$linklib"
35662 + # We cannot seem to hardcode it, guess we'll fake it.
35663 + add_dir="-L$libdir"
35664 + # Try looking first in the location we're being installed to.
35665 + if test -n "$inst_prefix_dir"; then
35668 + add_dir="$add_dir -L$inst_prefix_dir$libdir"
35675 + if test "$linkmode" = prog; then
35676 + test -n "$add_dir" && finalize_deplibs="$add_dir $finalize_deplibs"
35677 + test -n "$add" && finalize_deplibs="$add $finalize_deplibs"
35679 + test -n "$add_dir" && deplibs="$add_dir $deplibs"
35680 + test -n "$add" && deplibs="$add $deplibs"
35683 + elif test "$linkmode" = prog; then
35684 + # Here we assume that one of hardcode_direct or hardcode_minus_L
35685 + # is not unsupported. This is valid on all known static and
35686 + # shared platforms.
35687 + if test "$hardcode_direct" != unsupported; then
35688 + test -n "$old_library" && linklib="$old_library"
35689 + compile_deplibs="$dir/$linklib $compile_deplibs"
35690 + finalize_deplibs="$dir/$linklib $finalize_deplibs"
35692 + compile_deplibs="-l$name -L$dir $compile_deplibs"
35693 + finalize_deplibs="-l$name -L$dir $finalize_deplibs"
35695 + elif test "$build_libtool_libs" = yes; then
35696 + # Not a shared library
35697 + if test "$deplibs_check_method" != pass_all; then
35698 + # We're trying link a shared library against a static one
35699 + # but the system doesn't support it.
35701 + # Just print a warning and add the library to dependency_libs so
35702 + # that the program can be linked against the static library.
35704 + $echo "*** Warning: This system can not link to static lib archive $lib."
35705 + $echo "*** I have the capability to make that library automatically link in when"
35706 + $echo "*** you link to this library. But I can only do this if you have a"
35707 + $echo "*** shared version of the library, which you do not appear to have."
35708 + if test "$module" = yes; then
35709 + $echo "*** But as you try to build a module library, libtool will still create "
35710 + $echo "*** a static module, that should work as long as the dlopening application"
35711 + $echo "*** is linked with the -dlopen flag to resolve symbols at runtime."
35712 + if test -z "$global_symbol_pipe"; then
35714 + $echo "*** However, this would only work if libtool was able to extract symbol"
35715 + $echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
35716 + $echo "*** not find such a program. So, this module is probably useless."
35717 + $echo "*** \`nm' from GNU binutils and a full rebuild may help."
35719 + if test "$build_old_libs" = no; then
35720 + build_libtool_libs=module
35721 + build_old_libs=yes
35723 + build_libtool_libs=no
35727 + deplibs="$dir/$old_library $deplibs"
35730 + fi # link shared/static library?
35732 + if test "$linkmode" = lib; then
35733 + if test -n "$dependency_libs" &&
35734 + { test "$hardcode_into_libs" != yes ||
35735 + test "$build_old_libs" = yes ||
35736 + test "$link_static" = yes; }; then
35737 + # Extract -R from dependency_libs
35739 + for libdir in $dependency_libs; do
35741 + -R*) temp_xrpath=`$echo "X$libdir" | $Xsed -e 's/^-R//'`
35742 + case " $xrpath " in
35743 + *" $temp_xrpath "*) ;;
35744 + *) xrpath="$xrpath $temp_xrpath";;
35746 + *) temp_deplibs="$temp_deplibs $libdir";;
35749 + dependency_libs="$temp_deplibs"
35752 + newlib_search_path="$newlib_search_path $absdir"
35753 + # Link against this library
35754 + test "$link_static" = no && newdependency_libs="$abs_ladir/$laname $newdependency_libs"
35755 + # ... and its dependency_libs
35757 + for deplib in $dependency_libs; do
35758 + newdependency_libs="$deplib $newdependency_libs"
35759 + if test "X$duplicate_deps" = "Xyes" ; then
35760 + case "$tmp_libs " in
35761 + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
35764 + tmp_libs="$tmp_libs $deplib"
35767 + if test "$link_all_deplibs" != no; then
35768 + # Add the search paths of all dependency libraries
35769 + for deplib in $dependency_libs; do
35771 + -L*) path="$deplib" ;;
35773 + dir=`$echo "X$deplib" | $Xsed -e 's%/[^/]*$%%'`
35774 + test "X$dir" = "X$deplib" && dir="."
35775 + # We need an absolute path.
35777 + [\\/]* | [A-Za-z]:[\\/]*) absdir="$dir" ;;
35779 + absdir=`cd "$dir" && pwd`
35780 + if test -z "$absdir"; then
35781 + $echo "$modename: warning: cannot determine absolute directory name of \`$dir'" 1>&2
35786 + if grep "^installed=no" $deplib > /dev/null; then
35787 + path="$absdir/$objdir"
35789 + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
35790 + if test -z "$libdir"; then
35791 + $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2
35792 + exit $EXIT_FAILURE
35794 + if test "$absdir" != "$libdir"; then
35795 + $echo "$modename: warning: \`$deplib' seems to be moved" 1>&2
35802 + # we do not want to link against static libs,
35803 + # but need to link against shared
35804 + eval deplibrary_names=`${SED} -n -e 's/^library_names=\(.*\)$/\1/p' $deplib`
35805 + if test -n "$deplibrary_names" ; then
35806 + for tmp in $deplibrary_names ; do
35809 + if test -f "$path/$depdepl" ; then
35810 + depdepl="$path/$depdepl"
35812 + # do not add paths which are already there
35813 + case " $newlib_search_path " in
35815 + *) newlib_search_path="$newlib_search_path $path";;
35828 + # Again, we only want to link against shared libraries
35829 + eval tmp_libs=`$echo "X$deplib" | $Xsed -e "s,^\-l,,"`
35830 + for tmp in $newlib_search_path ; do
35831 + if test -f "$tmp/lib$tmp_libs.dylib" ; then
35832 + eval depdepl="$tmp/lib$tmp_libs.dylib"
35843 + case " $deplibs " in
35845 + *) deplibs="$path $deplibs" ;;
35847 + case " $deplibs " in
35848 + *" $depdepl "*) ;;
35849 + *) deplibs="$depdepl $deplibs" ;;
35852 + fi # link_all_deplibs != no
35853 + fi # linkmode = lib
35854 + done # for deplib in $libs
35855 + dependency_libs="$newdependency_libs"
35856 + if test "$pass" = dlpreopen; then
35857 + # Link the dlpreopened libraries before other libraries
35858 + for deplib in $save_deplibs; do
35859 + deplibs="$deplib $deplibs"
35862 + if test "$pass" != dlopen; then
35863 + if test "$pass" != conv; then
35864 + # Make sure lib_search_path contains only unique directories.
35866 + for dir in $newlib_search_path; do
35867 + case "$lib_search_path " in
35869 + *) lib_search_path="$lib_search_path $dir" ;;
35872 + newlib_search_path=
35875 + if test "$linkmode,$pass" != "prog,link"; then
35878 + vars="compile_deplibs finalize_deplibs"
35880 + for var in $vars dependency_libs; do
35881 + # Add libraries to $var in reverse order
35882 + eval tmp_libs=\"\$$var\"
35884 + for deplib in $tmp_libs; do
35885 + # FIXME: Pedantically, this is the right thing to do, so
35886 + # that some nasty dependency loop isn't accidentally
35888 + #new_libs="$deplib $new_libs"
35889 + # Pragmatically, this seems to cause very few problems in
35892 + -L*) new_libs="$deplib $new_libs" ;;
35895 + # And here is the reason: when a library appears more
35896 + # than once as an explicit dependence of a library, or
35897 + # is implicitly linked in more than once by the
35898 + # compiler, it is considered special, and multiple
35899 + # occurrences thereof are not removed. Compare this
35900 + # with having the same library being listed as a
35901 + # dependency of multiple other libraries: in this case,
35902 + # we know (pedantically, we assume) the library does not
35903 + # need to be listed more than once, so we keep only the
35904 + # last copy. This is not always right, but it is rare
35905 + # enough that we require users that really mean to play
35906 + # such unportable linking tricks to link the library
35907 + # using -Wl,-lname, so that libtool does not consider it
35908 + # for duplicate removal.
35909 + case " $specialdeplibs " in
35910 + *" $deplib "*) new_libs="$deplib $new_libs" ;;
35912 + case " $new_libs " in
35913 + *" $deplib "*) ;;
35914 + *) new_libs="$deplib $new_libs" ;;
35922 + for deplib in $new_libs; do
35925 + case " $tmp_libs " in
35926 + *" $deplib "*) ;;
35927 + *) tmp_libs="$tmp_libs $deplib" ;;
35930 + *) tmp_libs="$tmp_libs $deplib" ;;
35933 + eval $var=\"$tmp_libs\"
35936 + # Last step: remove runtime libs from dependency_libs
35937 + # (they stay in deplibs)
35939 + for i in $dependency_libs ; do
35940 + case " $predeps $postdeps $compiler_lib_search_path " in
35945 + if test -n "$i" ; then
35946 + tmp_libs="$tmp_libs $i"
35949 + dependency_libs=$tmp_libs
35951 + if test "$linkmode" = prog; then
35952 + dlfiles="$newdlfiles"
35953 + dlprefiles="$newdlprefiles"
35956 + case $linkmode in
35958 + if test -n "$deplibs"; then
35959 + $echo "$modename: warning: \`-l' and \`-L' are ignored for archives" 1>&2
35962 + if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
35963 + $echo "$modename: warning: \`-dlopen' is ignored for archives" 1>&2
35966 + if test -n "$rpath"; then
35967 + $echo "$modename: warning: \`-rpath' is ignored for archives" 1>&2
35970 + if test -n "$xrpath"; then
35971 + $echo "$modename: warning: \`-R' is ignored for archives" 1>&2
35974 + if test -n "$vinfo"; then
35975 + $echo "$modename: warning: \`-version-info/-version-number' is ignored for archives" 1>&2
35978 + if test -n "$release"; then
35979 + $echo "$modename: warning: \`-release' is ignored for archives" 1>&2
35982 + if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
35983 + $echo "$modename: warning: \`-export-symbols' is ignored for archives" 1>&2
35986 + # Now set the variables for building old libraries.
35987 + build_libtool_libs=no
35988 + oldlibs="$output"
35989 + objs="$objs$old_deplibs"
35993 + # Make sure we only generate libraries of the form `libNAME.la'.
35994 + case $outputname in
35996 + name=`$echo "X$outputname" | $Xsed -e 's/\.la$//' -e 's/^lib//'`
35997 + eval shared_ext=\"$shrext_cmds\"
35998 + eval libname=\"$libname_spec\"
36001 + if test "$module" = no; then
36002 + $echo "$modename: libtool library \`$output' must begin with \`lib'" 1>&2
36003 + $echo "$help" 1>&2
36004 + exit $EXIT_FAILURE
36006 + if test "$need_lib_prefix" != no; then
36007 + # Add the "lib" prefix for modules if required
36008 + name=`$echo "X$outputname" | $Xsed -e 's/\.la$//'`
36009 + eval shared_ext=\"$shrext_cmds\"
36010 + eval libname=\"$libname_spec\"
36012 + libname=`$echo "X$outputname" | $Xsed -e 's/\.la$//'`
36017 + if test -n "$objs"; then
36018 + if test "$deplibs_check_method" != pass_all; then
36019 + $echo "$modename: cannot build libtool library \`$output' from non-libtool objects on this host:$objs" 2>&1
36020 + exit $EXIT_FAILURE
36023 + $echo "*** Warning: Linking the shared library $output against the non-libtool"
36024 + $echo "*** objects $objs is not portable!"
36025 + libobjs="$libobjs $objs"
36029 + if test "$dlself" != no; then
36030 + $echo "$modename: warning: \`-dlopen self' is ignored for libtool libraries" 1>&2
36034 + if test "$#" -gt 2; then
36035 + $echo "$modename: warning: ignoring multiple \`-rpath's for a libtool library" 1>&2
36037 + install_libdir="$2"
36040 + if test -z "$rpath"; then
36041 + if test "$build_libtool_libs" = yes; then
36042 + # Building a libtool convenience library.
36043 + # Some compilers have problems with a `.al' extension so
36044 + # convenience libraries should have the same extension an
36045 + # archive normally would.
36046 + oldlibs="$output_objdir/$libname.$libext $oldlibs"
36047 + build_libtool_libs=convenience
36048 + build_old_libs=yes
36051 + if test -n "$vinfo"; then
36052 + $echo "$modename: warning: \`-version-info/-version-number' is ignored for convenience libraries" 1>&2
36055 + if test -n "$release"; then
36056 + $echo "$modename: warning: \`-release' is ignored for convenience libraries" 1>&2
36060 + # Parse the version information argument.
36061 + save_ifs="$IFS"; IFS=':'
36062 + set dummy $vinfo 0 0 0
36065 + if test -n "$8"; then
36066 + $echo "$modename: too many parameters to \`-version-info'" 1>&2
36067 + $echo "$help" 1>&2
36068 + exit $EXIT_FAILURE
36071 + # convert absolute version numbers to libtool ages
36072 + # this retains compatibility with .la files and attempts
36073 + # to make the code below a bit more comprehensible
36075 + case $vinfo_number in
36077 + number_major="$2"
36078 + number_minor="$3"
36079 + number_revision="$4"
36081 + # There are really only two kinds -- those that
36082 + # use the current revision as the major version
36083 + # and those that subtract age and use age as
36084 + # a minor version. But, then there is irix
36085 + # which has an extra 1 added just for fun
36087 + case $version_type in
36088 + darwin|linux|osf|windows)
36089 + current=`expr $number_major + $number_minor`
36090 + age="$number_minor"
36091 + revision="$number_revision"
36093 + freebsd-aout|freebsd-elf|sunos)
36094 + current="$number_major"
36095 + revision="$number_minor"
36099 + current=`expr $number_major + $number_minor - 1`
36100 + age="$number_minor"
36101 + revision="$number_minor"
36112 + # Check that each of the things are valid numbers.
36114 + 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
36116 + $echo "$modename: CURRENT \`$current' must be a nonnegative integer" 1>&2
36117 + $echo "$modename: \`$vinfo' is not valid version information" 1>&2
36118 + exit $EXIT_FAILURE
36122 + case $revision in
36123 + 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
36125 + $echo "$modename: REVISION \`$revision' must be a nonnegative integer" 1>&2
36126 + $echo "$modename: \`$vinfo' is not valid version information" 1>&2
36127 + exit $EXIT_FAILURE
36132 + 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
36134 + $echo "$modename: AGE \`$age' must be a nonnegative integer" 1>&2
36135 + $echo "$modename: \`$vinfo' is not valid version information" 1>&2
36136 + exit $EXIT_FAILURE
36140 + if test "$age" -gt "$current"; then
36141 + $echo "$modename: AGE \`$age' is greater than the current interface number \`$current'" 1>&2
36142 + $echo "$modename: \`$vinfo' is not valid version information" 1>&2
36143 + exit $EXIT_FAILURE
36146 + # Calculate the version variables.
36150 + case $version_type in
36154 + # Like Linux, but with the current version available in
36155 + # verstring for coding it into the library header
36156 + major=.`expr $current - $age`
36157 + versuffix="$major.$age.$revision"
36158 + # Darwin ld doesn't like 0 for these options...
36159 + minor_current=`expr $current + 1`
36160 + verstring="${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_current.$revision"
36164 + major=".$current"
36165 + versuffix=".$current.$revision";
36169 + major=".$current"
36170 + versuffix=".$current";
36173 + irix | nonstopux)
36174 + major=`expr $current - $age + 1`
36176 + case $version_type in
36177 + nonstopux) verstring_prefix=nonstopux ;;
36178 + *) verstring_prefix=sgi ;;
36180 + verstring="$verstring_prefix$major.$revision"
36182 + # Add in all the interfaces that we are compatible with.
36184 + while test "$loop" -ne 0; do
36185 + iface=`expr $revision - $loop`
36186 + loop=`expr $loop - 1`
36187 + verstring="$verstring_prefix$major.$iface:$verstring"
36190 + # Before this point, $major must not contain `.'.
36192 + versuffix="$major.$revision"
36196 + major=.`expr $current - $age`
36197 + versuffix="$major.$age.$revision"
36201 + major=.`expr $current - $age`
36202 + versuffix=".$current.$age.$revision"
36203 + verstring="$current.$age.$revision"
36205 + # Add in all the interfaces that we are compatible with.
36207 + while test "$loop" -ne 0; do
36208 + iface=`expr $current - $loop`
36209 + loop=`expr $loop - 1`
36210 + verstring="$verstring:${iface}.0"
36213 + # Make executables depend on our current version.
36214 + verstring="$verstring:${current}.0"
36218 + major=".$current"
36219 + versuffix=".$current.$revision"
36223 + # Use '-' rather than '.', since we only want one
36224 + # extension on DOS 8.3 filesystems.
36225 + major=`expr $current - $age`
36226 + versuffix="-$major"
36230 + $echo "$modename: unknown library version type \`$version_type'" 1>&2
36231 + $echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2
36232 + exit $EXIT_FAILURE
36236 + # Clear the version info if we defaulted, and they specified a release.
36237 + if test -z "$vinfo" && test -n "$release"; then
36239 + case $version_type in
36241 + # we can't check for "0.0" in archive_cmds due to quoting
36242 + # problems, so we reset it completely
36249 + if test "$need_version" = no; then
36256 + # Remove version info from name if versioning should be avoided
36257 + if test "$avoid_version" = yes && test "$need_version" = no; then
36263 + # Check to see if the archive will have undefined symbols.
36264 + if test "$allow_undefined" = yes; then
36265 + if test "$allow_undefined_flag" = unsupported; then
36266 + $echo "$modename: warning: undefined symbols not allowed in $host shared libraries" 1>&2
36267 + build_libtool_libs=no
36268 + build_old_libs=yes
36271 + # Don't allow undefined symbols.
36272 + allow_undefined_flag="$no_undefined_flag"
36276 + if test "$mode" != relink; then
36277 + # Remove our outputs, but don't remove object files since they
36278 + # may have been created when compiling PIC objects.
36280 + tempremovelist=`$echo "$output_objdir/*"`
36281 + for p in $tempremovelist; do
36285 + $output_objdir/$outputname | $output_objdir/$libname.* | $output_objdir/${libname}${release}.*)
36286 + if test "X$precious_files_regex" != "X"; then
36287 + if echo $p | $EGREP -e "$precious_files_regex" >/dev/null 2>&1
36292 + removelist="$removelist $p"
36297 + if test -n "$removelist"; then
36298 + $show "${rm}r $removelist"
36299 + $run ${rm}r $removelist
36303 + # Now set the variables for building old libraries.
36304 + if test "$build_old_libs" = yes && test "$build_libtool_libs" != convenience ; then
36305 + oldlibs="$oldlibs $output_objdir/$libname.$libext"
36307 + # Transform .lo files to .o files.
36308 + oldobjs="$objs "`$echo "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}'$/d' -e "$lo2o" | $NL2SP`
36311 + # Eliminate all temporary directories.
36312 + for path in $notinst_path; do
36313 + lib_search_path=`$echo "$lib_search_path " | ${SED} -e "s% $path % %g"`
36314 + deplibs=`$echo "$deplibs " | ${SED} -e "s% -L$path % %g"`
36315 + dependency_libs=`$echo "$dependency_libs " | ${SED} -e "s% -L$path % %g"`
36318 + if test -n "$xrpath"; then
36319 + # If the user specified any rpath flags, then add them.
36321 + for libdir in $xrpath; do
36322 + temp_xrpath="$temp_xrpath -R$libdir"
36323 + case "$finalize_rpath " in
36324 + *" $libdir "*) ;;
36325 + *) finalize_rpath="$finalize_rpath $libdir" ;;
36328 + if test "$hardcode_into_libs" != yes || test "$build_old_libs" = yes; then
36329 + dependency_libs="$temp_xrpath $dependency_libs"
36333 + # Make sure dlfiles contains only unique files that won't be dlpreopened
36334 + old_dlfiles="$dlfiles"
36336 + for lib in $old_dlfiles; do
36337 + case " $dlprefiles $dlfiles " in
36339 + *) dlfiles="$dlfiles $lib" ;;
36343 + # Make sure dlprefiles contains only unique files
36344 + old_dlprefiles="$dlprefiles"
36346 + for lib in $old_dlprefiles; do
36347 + case "$dlprefiles " in
36349 + *) dlprefiles="$dlprefiles $lib" ;;
36353 + if test "$build_libtool_libs" = yes; then
36354 + if test -n "$rpath"; then
36356 + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos*)
36357 + # these systems don't actually have a c library (as such)!
36359 + *-*-rhapsody* | *-*-darwin1.[012])
36360 + # Rhapsody C library is in the System framework
36361 + deplibs="$deplibs -framework System"
36364 + # Don't link with libc until the a.out ld.so is fixed.
36366 + *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
36367 + # Do not include libc due to us having libc/libc_r.
36369 + *-*-sco3.2v5* | *-*-sco5v6*)
36370 + # Causes problems with __ctype
36372 + *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
36373 + # Compiler inserts libc in the correct place for threads to work
36376 + # Add libc to deplibs on all other systems if necessary.
36377 + if test "$build_libtool_need_lc" = "yes"; then
36378 + deplibs="$deplibs -lc"
36384 + # Transform deplibs into only deplibs that can be linked in shared.
36386 + libname_save=$libname
36387 + release_save=$release
36388 + versuffix_save=$versuffix
36389 + major_save=$major
36390 + # I'm not sure if I'm treating the release correctly. I think
36391 + # release should show up in the -l (ie -lgmp5) so we don't want to
36392 + # add it in twice. Is that correct?
36398 + case $deplibs_check_method in
36400 + # Don't check for shared/static. Everything works.
36401 + # This might be a little naive. We might want to check
36402 + # whether the library exists or not. But this is on
36403 + # osf3 & osf4 and I'm not really sure... Just
36404 + # implementing what was already the behavior.
36405 + newdeplibs=$deplibs
36408 + # This code stresses the "libraries are programs" paradigm to its
36409 + # limits. Maybe even breaks it. We compile a program, linking it
36410 + # against the deplibs as a proxy for the library. Then we can check
36411 + # whether they linked in statically or dynamically with ldd.
36413 + cat > conftest.c <<EOF
36414 + int main() { return 0; }
36417 + $LTCC $LTCFLAGS -o conftest conftest.c $deplibs
36418 + if test "$?" -eq 0 ; then
36419 + ldd_output=`ldd conftest`
36420 + for i in $deplibs; do
36421 + name=`expr $i : '-l\(.*\)'`
36422 + # If $name is empty we are operating on a -L argument.
36423 + if test "$name" != "" && test "$name" -ne "0"; then
36424 + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
36425 + case " $predeps $postdeps " in
36427 + newdeplibs="$newdeplibs $i"
36432 + if test -n "$i" ; then
36433 + libname=`eval \\$echo \"$libname_spec\"`
36434 + deplib_matches=`eval \\$echo \"$library_names_spec\"`
36435 + set dummy $deplib_matches
36437 + if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
36438 + newdeplibs="$newdeplibs $i"
36442 + $echo "*** Warning: dynamic linker does not accept needed library $i."
36443 + $echo "*** I have the capability to make that library automatically link in when"
36444 + $echo "*** you link to this library. But I can only do this if you have a"
36445 + $echo "*** shared version of the library, which I believe you do not have"
36446 + $echo "*** because a test_compile did reveal that the linker did not use it for"
36447 + $echo "*** its dynamic dependency list that programs get resolved with at runtime."
36451 + newdeplibs="$newdeplibs $i"
36455 + # Error occurred in the first compile. Let's try to salvage
36456 + # the situation: Compile a separate program for each library.
36457 + for i in $deplibs; do
36458 + name=`expr $i : '-l\(.*\)'`
36459 + # If $name is empty we are operating on a -L argument.
36460 + if test "$name" != "" && test "$name" != "0"; then
36462 + $LTCC $LTCFLAGS -o conftest conftest.c $i
36464 + if test "$?" -eq 0 ; then
36465 + ldd_output=`ldd conftest`
36466 + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
36467 + case " $predeps $postdeps " in
36469 + newdeplibs="$newdeplibs $i"
36474 + if test -n "$i" ; then
36475 + libname=`eval \\$echo \"$libname_spec\"`
36476 + deplib_matches=`eval \\$echo \"$library_names_spec\"`
36477 + set dummy $deplib_matches
36479 + if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
36480 + newdeplibs="$newdeplibs $i"
36484 + $echo "*** Warning: dynamic linker does not accept needed library $i."
36485 + $echo "*** I have the capability to make that library automatically link in when"
36486 + $echo "*** you link to this library. But I can only do this if you have a"
36487 + $echo "*** shared version of the library, which you do not appear to have"
36488 + $echo "*** because a test_compile did reveal that the linker did not use this one"
36489 + $echo "*** as a dynamic dependency that programs can get resolved with at runtime."
36495 + $echo "*** Warning! Library $i is needed by this library but I was not able to"
36496 + $echo "*** make it link in! You will probably need to install it or some"
36497 + $echo "*** library that it depends on before this library will be fully"
36498 + $echo "*** functional. Installing it before continuing would be even better."
36501 + newdeplibs="$newdeplibs $i"
36507 + set dummy $deplibs_check_method
36508 + file_magic_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
36509 + for a_deplib in $deplibs; do
36510 + name=`expr $a_deplib : '-l\(.*\)'`
36511 + # If $name is empty we are operating on a -L argument.
36512 + if test "$name" != "" && test "$name" != "0"; then
36513 + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
36514 + case " $predeps $postdeps " in
36516 + newdeplibs="$newdeplibs $a_deplib"
36521 + if test -n "$a_deplib" ; then
36522 + libname=`eval \\$echo \"$libname_spec\"`
36523 + for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
36524 + potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
36525 + for potent_lib in $potential_libs; do
36526 + # Follow soft links.
36527 + if ls -lLd "$potent_lib" 2>/dev/null \
36528 + | grep " -> " >/dev/null; then
36531 + # The statement above tries to avoid entering an
36532 + # endless loop below, in case of cyclic links.
36533 + # We might still enter an endless loop, since a link
36534 + # loop can be closed while we follow links,
36536 + potlib="$potent_lib"
36537 + while test -h "$potlib" 2>/dev/null; do
36538 + potliblink=`ls -ld $potlib | ${SED} 's/.* -> //'`
36539 + case $potliblink in
36540 + [\\/]* | [A-Za-z]:[\\/]*) potlib="$potliblink";;
36541 + *) potlib=`$echo "X$potlib" | $Xsed -e 's,[^/]*$,,'`"$potliblink";;
36544 + # It is ok to link against an archive when
36545 + # building a shared library.
36546 + if $AR -t $potlib > /dev/null 2>&1; then
36547 + newdeplibs="$newdeplibs $a_deplib"
36551 + if eval $file_magic_cmd \"\$potlib\" 2>/dev/null \
36553 + | $EGREP "$file_magic_regex" > /dev/null; then
36554 + newdeplibs="$newdeplibs $a_deplib"
36561 + if test -n "$a_deplib" ; then
36564 + $echo "*** Warning: linker path does not have real file for library $a_deplib."
36565 + $echo "*** I have the capability to make that library automatically link in when"
36566 + $echo "*** you link to this library. But I can only do this if you have a"
36567 + $echo "*** shared version of the library, which you do not appear to have"
36568 + $echo "*** because I did check the linker path looking for a file starting"
36569 + if test -z "$potlib" ; then
36570 + $echo "*** with $libname but no candidates were found. (...for file magic test)"
36572 + $echo "*** with $libname and none of the candidates passed a file format test"
36573 + $echo "*** using a file magic. Last file checked: $potlib"
36577 + # Add a -L argument.
36578 + newdeplibs="$newdeplibs $a_deplib"
36580 + done # Gone through all deplibs.
36583 + set dummy $deplibs_check_method
36584 + match_pattern_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
36585 + for a_deplib in $deplibs; do
36586 + name=`expr $a_deplib : '-l\(.*\)'`
36587 + # If $name is empty we are operating on a -L argument.
36588 + if test -n "$name" && test "$name" != "0"; then
36589 + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
36590 + case " $predeps $postdeps " in
36592 + newdeplibs="$newdeplibs $a_deplib"
36597 + if test -n "$a_deplib" ; then
36598 + libname=`eval \\$echo \"$libname_spec\"`
36599 + for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
36600 + potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
36601 + for potent_lib in $potential_libs; do
36602 + potlib="$potent_lib" # see symlink-check above in file_magic test
36603 + if eval $echo \"$potent_lib\" 2>/dev/null \
36605 + | $EGREP "$match_pattern_regex" > /dev/null; then
36606 + newdeplibs="$newdeplibs $a_deplib"
36613 + if test -n "$a_deplib" ; then
36616 + $echo "*** Warning: linker path does not have real file for library $a_deplib."
36617 + $echo "*** I have the capability to make that library automatically link in when"
36618 + $echo "*** you link to this library. But I can only do this if you have a"
36619 + $echo "*** shared version of the library, which you do not appear to have"
36620 + $echo "*** because I did check the linker path looking for a file starting"
36621 + if test -z "$potlib" ; then
36622 + $echo "*** with $libname but no candidates were found. (...for regex pattern test)"
36624 + $echo "*** with $libname and none of the candidates passed a file format test"
36625 + $echo "*** using a regex pattern. Last file checked: $potlib"
36629 + # Add a -L argument.
36630 + newdeplibs="$newdeplibs $a_deplib"
36632 + done # Gone through all deplibs.
36634 + none | unknown | *)
36636 + tmp_deplibs=`$echo "X $deplibs" | $Xsed -e 's/ -lc$//' \
36637 + -e 's/ -[LR][^ ]*//g'`
36638 + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
36639 + for i in $predeps $postdeps ; do
36640 + # can't use Xsed below, because $i might contain '/'
36641 + tmp_deplibs=`$echo "X $tmp_deplibs" | ${SED} -e "1s,^X,," -e "s,$i,,"`
36644 + if $echo "X $tmp_deplibs" | $Xsed -e 's/[ ]//g' \
36645 + | grep . >/dev/null; then
36647 + if test "X$deplibs_check_method" = "Xnone"; then
36648 + $echo "*** Warning: inter-library dependencies are not supported in this platform."
36650 + $echo "*** Warning: inter-library dependencies are not known to be supported."
36652 + $echo "*** All declared inter-library dependencies are being dropped."
36657 + versuffix=$versuffix_save
36658 + major=$major_save
36659 + release=$release_save
36660 + libname=$libname_save
36664 + *-*-rhapsody* | *-*-darwin1.[012])
36665 + # On Rhapsody replace the C library is the System framework
36666 + newdeplibs=`$echo "X $newdeplibs" | $Xsed -e 's/ -lc / -framework System /'`
36670 + if test "$droppeddeps" = yes; then
36671 + if test "$module" = yes; then
36673 + $echo "*** Warning: libtool could not satisfy all declared inter-library"
36674 + $echo "*** dependencies of module $libname. Therefore, libtool will create"
36675 + $echo "*** a static module, that should work as long as the dlopening"
36676 + $echo "*** application is linked with the -dlopen flag."
36677 + if test -z "$global_symbol_pipe"; then
36679 + $echo "*** However, this would only work if libtool was able to extract symbol"
36680 + $echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
36681 + $echo "*** not find such a program. So, this module is probably useless."
36682 + $echo "*** \`nm' from GNU binutils and a full rebuild may help."
36684 + if test "$build_old_libs" = no; then
36685 + oldlibs="$output_objdir/$libname.$libext"
36686 + build_libtool_libs=module
36687 + build_old_libs=yes
36689 + build_libtool_libs=no
36692 + $echo "*** The inter-library dependencies that have been dropped here will be"
36693 + $echo "*** automatically added whenever a program is linked with this library"
36694 + $echo "*** or is declared to -dlopen it."
36696 + if test "$allow_undefined" = no; then
36698 + $echo "*** Since this library must not contain undefined symbols,"
36699 + $echo "*** because either the platform does not support them or"
36700 + $echo "*** it was explicitly requested with -no-undefined,"
36701 + $echo "*** libtool will only create a static version of it."
36702 + if test "$build_old_libs" = no; then
36703 + oldlibs="$output_objdir/$libname.$libext"
36704 + build_libtool_libs=module
36705 + build_old_libs=yes
36707 + build_libtool_libs=no
36712 + # Done checking deplibs!
36713 + deplibs=$newdeplibs
36717 + # move library search paths that coincide with paths to not yet
36718 + # installed libraries to the beginning of the library search list
36720 + for path in $notinst_path; do
36721 + case " $new_libs " in
36722 + *" -L$path/$objdir "*) ;;
36724 + case " $deplibs " in
36725 + *" -L$path/$objdir "*)
36726 + new_libs="$new_libs -L$path/$objdir" ;;
36731 + for deplib in $deplibs; do
36734 + case " $new_libs " in
36735 + *" $deplib "*) ;;
36736 + *) new_libs="$new_libs $deplib" ;;
36739 + *) new_libs="$new_libs $deplib" ;;
36742 + deplibs="$new_libs"
36745 + # All the library-specific variables (install_libdir is set above).
36750 + # Test again, we may have decided not to build it any more
36751 + if test "$build_libtool_libs" = yes; then
36752 + if test "$hardcode_into_libs" = yes; then
36753 + # Hardcode the library paths
36754 + hardcode_libdirs=
36756 + rpath="$finalize_rpath"
36757 + test "$mode" != relink && rpath="$compile_rpath$rpath"
36758 + for libdir in $rpath; do
36759 + if test -n "$hardcode_libdir_flag_spec"; then
36760 + if test -n "$hardcode_libdir_separator"; then
36761 + if test -z "$hardcode_libdirs"; then
36762 + hardcode_libdirs="$libdir"
36764 + # Just accumulate the unique libdirs.
36765 + case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
36766 + *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
36769 + hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
36774 + eval flag=\"$hardcode_libdir_flag_spec\"
36775 + dep_rpath="$dep_rpath $flag"
36777 + elif test -n "$runpath_var"; then
36778 + case "$perm_rpath " in
36779 + *" $libdir "*) ;;
36780 + *) perm_rpath="$perm_rpath $libdir" ;;
36784 + # Substitute the hardcoded libdirs into the rpath.
36785 + if test -n "$hardcode_libdir_separator" &&
36786 + test -n "$hardcode_libdirs"; then
36787 + libdir="$hardcode_libdirs"
36788 + if test -n "$hardcode_libdir_flag_spec_ld"; then
36789 + eval dep_rpath=\"$hardcode_libdir_flag_spec_ld\"
36791 + eval dep_rpath=\"$hardcode_libdir_flag_spec\"
36794 + if test -n "$runpath_var" && test -n "$perm_rpath"; then
36795 + # We should set the runpath_var.
36797 + for dir in $perm_rpath; do
36798 + rpath="$rpath$dir:"
36800 + eval "$runpath_var='$rpath\$$runpath_var'; export $runpath_var"
36802 + test -n "$dep_rpath" && deplibs="$dep_rpath $deplibs"
36805 + shlibpath="$finalize_shlibpath"
36806 + test "$mode" != relink && shlibpath="$compile_shlibpath$shlibpath"
36807 + if test -n "$shlibpath"; then
36808 + eval "$shlibpath_var='$shlibpath\$$shlibpath_var'; export $shlibpath_var"
36811 + # Get the real and link names of the library.
36812 + eval shared_ext=\"$shrext_cmds\"
36813 + eval library_names=\"$library_names_spec\"
36814 + set dummy $library_names
36818 + if test -n "$soname_spec"; then
36819 + eval soname=\"$soname_spec\"
36821 + soname="$realname"
36823 + if test -z "$dlname"; then
36827 + lib="$output_objdir/$realname"
36831 + linknames="$linknames $link"
36834 + # Use standard objects if they are pic
36835 + test -z "$pic_flag" && libobjs=`$echo "X$libobjs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
36837 + # Prepare the list of exported symbols
36838 + if test -z "$export_symbols"; then
36839 + if test "$always_export_symbols" = yes || test -n "$export_symbols_regex"; then
36840 + $show "generating symbol list for \`$libname.la'"
36841 + export_symbols="$output_objdir/$libname.exp"
36842 + $run $rm $export_symbols
36843 + cmds=$export_symbols_cmds
36844 + save_ifs="$IFS"; IFS='~'
36845 + for cmd in $cmds; do
36847 + eval cmd=\"$cmd\"
36848 + if len=`expr "X$cmd" : ".*"` &&
36849 + test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
36851 + $run eval "$cmd" || exit $?
36852 + skipped_export=false
36854 + # The command line is too long to execute in one step.
36855 + $show "using reloadable object file for export list..."
36857 + # Break out early, otherwise skipped_export may be
36858 + # set to false by a later but shorter cmd.
36863 + if test -n "$export_symbols_regex"; then
36864 + $show "$EGREP -e \"$export_symbols_regex\" \"$export_symbols\" > \"${export_symbols}T\""
36865 + $run eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
36866 + $show "$mv \"${export_symbols}T\" \"$export_symbols\""
36867 + $run eval '$mv "${export_symbols}T" "$export_symbols"'
36872 + if test -n "$export_symbols" && test -n "$include_expsyms"; then
36873 + $run eval '$echo "X$include_expsyms" | $SP2NL >> "$export_symbols"'
36877 + for test_deplib in $deplibs; do
36878 + case " $convenience " in
36879 + *" $test_deplib "*) ;;
36881 + tmp_deplibs="$tmp_deplibs $test_deplib"
36885 + deplibs="$tmp_deplibs"
36887 + if test -n "$convenience"; then
36888 + if test -n "$whole_archive_flag_spec"; then
36889 + save_libobjs=$libobjs
36890 + eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
36892 + gentop="$output_objdir/${outputname}x"
36893 + generated="$generated $gentop"
36895 + func_extract_archives $gentop $convenience
36896 + libobjs="$libobjs $func_extract_archives_result"
36900 + if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then
36901 + eval flag=\"$thread_safe_flag_spec\"
36902 + linker_flags="$linker_flags $flag"
36905 + # Make a backup of the uninstalled library when relinking
36906 + if test "$mode" = relink; then
36907 + $run eval '(cd $output_objdir && $rm ${realname}U && $mv $realname ${realname}U)' || exit $?
36910 + # Do each of the archive commands.
36911 + if test "$module" = yes && test -n "$module_cmds" ; then
36912 + if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
36913 + eval test_cmds=\"$module_expsym_cmds\"
36914 + cmds=$module_expsym_cmds
36916 + eval test_cmds=\"$module_cmds\"
36917 + cmds=$module_cmds
36920 + if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
36921 + eval test_cmds=\"$archive_expsym_cmds\"
36922 + cmds=$archive_expsym_cmds
36924 + eval test_cmds=\"$archive_cmds\"
36925 + cmds=$archive_cmds
36929 + if test "X$skipped_export" != "X:" &&
36930 + len=`expr "X$test_cmds" : ".*" 2>/dev/null` &&
36931 + test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
36934 + # The command line is too long to link in one step, link piecewise.
36935 + $echo "creating reloadable object files..."
36937 + # Save the value of $output and $libobjs because we want to
36938 + # use them later. If we have whole_archive_flag_spec, we
36939 + # want to use save_libobjs as it was before
36940 + # whole_archive_flag_spec was expanded, because we can't
36941 + # assume the linker understands whole_archive_flag_spec.
36942 + # This may have to be revisited, in case too many
36943 + # convenience libraries get linked in and end up exceeding
36945 + if test -z "$convenience" || test -z "$whole_archive_flag_spec"; then
36946 + save_libobjs=$libobjs
36948 + save_output=$output
36949 + output_la=`$echo "X$output" | $Xsed -e "$basename"`
36951 + # Clear the reloadable object creation command queue and
36952 + # initialize k to one.
36959 + output=$output_objdir/$output_la-${k}.$objext
36960 + # Loop over the list of objects to be linked.
36961 + for obj in $save_libobjs
36963 + eval test_cmds=\"$reload_cmds $objlist $last_robj\"
36964 + if test "X$objlist" = X ||
36965 + { len=`expr "X$test_cmds" : ".*" 2>/dev/null` &&
36966 + test "$len" -le "$max_cmd_len"; }; then
36967 + objlist="$objlist $obj"
36969 + # The command $test_cmds is almost too long, add a
36970 + # command to the queue.
36971 + if test "$k" -eq 1 ; then
36972 + # The first file doesn't have a previous command to add.
36973 + eval concat_cmds=\"$reload_cmds $objlist $last_robj\"
36975 + # All subsequent reloadable object files will link in
36976 + # the last one created.
36977 + eval concat_cmds=\"\$concat_cmds~$reload_cmds $objlist $last_robj\"
36979 + last_robj=$output_objdir/$output_la-${k}.$objext
36981 + output=$output_objdir/$output_la-${k}.$objext
36986 + # Handle the remaining objects by creating one last
36987 + # reloadable object file. All subsequent reloadable object
36988 + # files will link in the last one created.
36989 + test -z "$concat_cmds" || concat_cmds=$concat_cmds~
36990 + eval concat_cmds=\"\${concat_cmds}$reload_cmds $objlist $last_robj\"
36992 + if ${skipped_export-false}; then
36993 + $show "generating symbol list for \`$libname.la'"
36994 + export_symbols="$output_objdir/$libname.exp"
36995 + $run $rm $export_symbols
36997 + # Append the command to create the export file.
36998 + eval concat_cmds=\"\$concat_cmds~$export_symbols_cmds\"
37001 + # Set up a command to remove the reloadable object files
37002 + # after they are used.
37004 + while test "$i" -lt "$k"
37007 + delfiles="$delfiles $output_objdir/$output_la-${i}.$objext"
37010 + $echo "creating a temporary reloadable object file: $output"
37012 + # Loop through the commands generated above and execute them.
37013 + save_ifs="$IFS"; IFS='~'
37014 + for cmd in $concat_cmds; do
37017 + $run eval "$cmd" || exit $?
37022 + # Restore the value of output.
37023 + output=$save_output
37025 + if test -n "$convenience" && test -n "$whole_archive_flag_spec"; then
37026 + eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
37028 + # Expand the library linking commands again to reset the
37029 + # value of $libobjs for piecewise linking.
37031 + # Do each of the archive commands.
37032 + if test "$module" = yes && test -n "$module_cmds" ; then
37033 + if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
37034 + cmds=$module_expsym_cmds
37036 + cmds=$module_cmds
37039 + if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
37040 + cmds=$archive_expsym_cmds
37042 + cmds=$archive_cmds
37046 + # Append the command to remove the reloadable object files
37047 + # to the just-reset $cmds.
37048 + eval cmds=\"\$cmds~\$rm $delfiles\"
37050 + save_ifs="$IFS"; IFS='~'
37051 + for cmd in $cmds; do
37053 + eval cmd=\"$cmd\"
37055 + $run eval "$cmd" || {
37058 + # Restore the uninstalled library and exit
37059 + if test "$mode" = relink; then
37060 + $run eval '(cd $output_objdir && $rm ${realname}T && $mv ${realname}U $realname)'
37068 + # Restore the uninstalled library and exit
37069 + if test "$mode" = relink; then
37070 + $run eval '(cd $output_objdir && $rm ${realname}T && $mv $realname ${realname}T && $mv "$realname"U $realname)' || exit $?
37072 + if test -n "$convenience"; then
37073 + if test -z "$whole_archive_flag_spec"; then
37074 + $show "${rm}r $gentop"
37075 + $run ${rm}r "$gentop"
37079 + exit $EXIT_SUCCESS
37082 + # Create links to the real library.
37083 + for linkname in $linknames; do
37084 + if test "$realname" != "$linkname"; then
37085 + $show "(cd $output_objdir && $rm $linkname && $LN_S $realname $linkname)"
37086 + $run eval '(cd $output_objdir && $rm $linkname && $LN_S $realname $linkname)' || exit $?
37090 + # If -module or -export-dynamic was specified, set the dlname.
37091 + if test "$module" = yes || test "$export_dynamic" = yes; then
37092 + # On all known operating systems, these are identical.
37099 + if test -n "$deplibs"; then
37100 + $echo "$modename: warning: \`-l' and \`-L' are ignored for objects" 1>&2
37103 + if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
37104 + $echo "$modename: warning: \`-dlopen' is ignored for objects" 1>&2
37107 + if test -n "$rpath"; then
37108 + $echo "$modename: warning: \`-rpath' is ignored for objects" 1>&2
37111 + if test -n "$xrpath"; then
37112 + $echo "$modename: warning: \`-R' is ignored for objects" 1>&2
37115 + if test -n "$vinfo"; then
37116 + $echo "$modename: warning: \`-version-info' is ignored for objects" 1>&2
37119 + if test -n "$release"; then
37120 + $echo "$modename: warning: \`-release' is ignored for objects" 1>&2
37125 + if test -n "$objs$old_deplibs"; then
37126 + $echo "$modename: cannot build library object \`$output' from non-libtool objects" 1>&2
37127 + exit $EXIT_FAILURE
37130 + obj=`$echo "X$output" | $Xsed -e "$lo2o"`
37138 + # Delete the old objects.
37139 + $run $rm $obj $libobj
37141 + # Objects from convenience libraries. This assumes
37142 + # single-version convenience libraries. Whenever we create
37143 + # different ones for PIC/non-PIC, this we'll have to duplicate
37144 + # the extraction.
37145 + reload_conv_objs=
37147 + # reload_cmds runs $LD directly, so let us get rid of
37148 + # -Wl from whole_archive_flag_spec
37151 + if test -n "$convenience"; then
37152 + if test -n "$whole_archive_flag_spec"; then
37153 + eval reload_conv_objs=\"\$reload_objs $whole_archive_flag_spec\"
37155 + gentop="$output_objdir/${obj}x"
37156 + generated="$generated $gentop"
37158 + func_extract_archives $gentop $convenience
37159 + reload_conv_objs="$reload_objs $func_extract_archives_result"
37163 + # Create the old-style object.
37164 + reload_objs="$objs$old_deplibs "`$echo "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}$'/d' -e '/\.lib$/d' -e "$lo2o" | $NL2SP`" $reload_conv_objs" ### testsuite: skip nested quoting test
37167 + cmds=$reload_cmds
37168 + save_ifs="$IFS"; IFS='~'
37169 + for cmd in $cmds; do
37171 + eval cmd=\"$cmd\"
37173 + $run eval "$cmd" || exit $?
37177 + # Exit if we aren't doing a library object file.
37178 + if test -z "$libobj"; then
37179 + if test -n "$gentop"; then
37180 + $show "${rm}r $gentop"
37181 + $run ${rm}r $gentop
37184 + exit $EXIT_SUCCESS
37187 + if test "$build_libtool_libs" != yes; then
37188 + if test -n "$gentop"; then
37189 + $show "${rm}r $gentop"
37190 + $run ${rm}r $gentop
37193 + # Create an invalid libtool object if no PIC, so that we don't
37194 + # accidentally link it into a program.
37195 + # $show "echo timestamp > $libobj"
37196 + # $run eval "echo timestamp > $libobj" || exit $?
37197 + exit $EXIT_SUCCESS
37200 + if test -n "$pic_flag" || test "$pic_mode" != default; then
37201 + # Only do commands if we really have different PIC objects.
37202 + reload_objs="$libobjs $reload_conv_objs"
37204 + cmds=$reload_cmds
37205 + save_ifs="$IFS"; IFS='~'
37206 + for cmd in $cmds; do
37208 + eval cmd=\"$cmd\"
37210 + $run eval "$cmd" || exit $?
37215 + if test -n "$gentop"; then
37216 + $show "${rm}r $gentop"
37217 + $run ${rm}r $gentop
37220 + exit $EXIT_SUCCESS
37225 + *cygwin*) output=`$echo $output | ${SED} -e 's,.exe$,,;s,$,.exe,'` ;;
37227 + if test -n "$vinfo"; then
37228 + $echo "$modename: warning: \`-version-info' is ignored for programs" 1>&2
37231 + if test -n "$release"; then
37232 + $echo "$modename: warning: \`-release' is ignored for programs" 1>&2
37235 + if test "$preload" = yes; then
37236 + if test "$dlopen_support" = unknown && test "$dlopen_self" = unknown &&
37237 + test "$dlopen_self_static" = unknown; then
37238 + $echo "$modename: warning: \`AC_LIBTOOL_DLOPEN' not used. Assuming no dlopen support."
37243 + *-*-rhapsody* | *-*-darwin1.[012])
37244 + # On Rhapsody replace the C library is the System framework
37245 + compile_deplibs=`$echo "X $compile_deplibs" | $Xsed -e 's/ -lc / -framework System /'`
37246 + finalize_deplibs=`$echo "X $finalize_deplibs" | $Xsed -e 's/ -lc / -framework System /'`
37252 + # Don't allow lazy linking, it breaks C++ global constructors
37253 + if test "$tagname" = CXX ; then
37254 + compile_command="$compile_command ${wl}-bind_at_load"
37255 + finalize_command="$finalize_command ${wl}-bind_at_load"
37261 + # move library search paths that coincide with paths to not yet
37262 + # installed libraries to the beginning of the library search list
37264 + for path in $notinst_path; do
37265 + case " $new_libs " in
37266 + *" -L$path/$objdir "*) ;;
37268 + case " $compile_deplibs " in
37269 + *" -L$path/$objdir "*)
37270 + new_libs="$new_libs -L$path/$objdir" ;;
37275 + for deplib in $compile_deplibs; do
37278 + case " $new_libs " in
37279 + *" $deplib "*) ;;
37280 + *) new_libs="$new_libs $deplib" ;;
37283 + *) new_libs="$new_libs $deplib" ;;
37286 + compile_deplibs="$new_libs"
37289 + compile_command="$compile_command $compile_deplibs"
37290 + finalize_command="$finalize_command $finalize_deplibs"
37292 + if test -n "$rpath$xrpath"; then
37293 + # If the user specified any rpath flags, then add them.
37294 + for libdir in $rpath $xrpath; do
37295 + # This is the magic to use -rpath.
37296 + case "$finalize_rpath " in
37297 + *" $libdir "*) ;;
37298 + *) finalize_rpath="$finalize_rpath $libdir" ;;
37303 + # Now hardcode the library paths
37305 + hardcode_libdirs=
37306 + for libdir in $compile_rpath $finalize_rpath; do
37307 + if test -n "$hardcode_libdir_flag_spec"; then
37308 + if test -n "$hardcode_libdir_separator"; then
37309 + if test -z "$hardcode_libdirs"; then
37310 + hardcode_libdirs="$libdir"
37312 + # Just accumulate the unique libdirs.
37313 + case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
37314 + *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
37317 + hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
37322 + eval flag=\"$hardcode_libdir_flag_spec\"
37323 + rpath="$rpath $flag"
37325 + elif test -n "$runpath_var"; then
37326 + case "$perm_rpath " in
37327 + *" $libdir "*) ;;
37328 + *) perm_rpath="$perm_rpath $libdir" ;;
37332 + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
37333 + testbindir=`$echo "X$libdir" | $Xsed -e 's*/lib$*/bin*'`
37334 + case :$dllsearchpath: in
37335 + *":$libdir:"*) ;;
37336 + *) dllsearchpath="$dllsearchpath:$libdir";;
37338 + case :$dllsearchpath: in
37339 + *":$testbindir:"*) ;;
37340 + *) dllsearchpath="$dllsearchpath:$testbindir";;
37345 + # Substitute the hardcoded libdirs into the rpath.
37346 + if test -n "$hardcode_libdir_separator" &&
37347 + test -n "$hardcode_libdirs"; then
37348 + libdir="$hardcode_libdirs"
37349 + eval rpath=\" $hardcode_libdir_flag_spec\"
37351 + compile_rpath="$rpath"
37354 + hardcode_libdirs=
37355 + for libdir in $finalize_rpath; do
37356 + if test -n "$hardcode_libdir_flag_spec"; then
37357 + if test -n "$hardcode_libdir_separator"; then
37358 + if test -z "$hardcode_libdirs"; then
37359 + hardcode_libdirs="$libdir"
37361 + # Just accumulate the unique libdirs.
37362 + case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
37363 + *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
37366 + hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
37371 + eval flag=\"$hardcode_libdir_flag_spec\"
37372 + rpath="$rpath $flag"
37374 + elif test -n "$runpath_var"; then
37375 + case "$finalize_perm_rpath " in
37376 + *" $libdir "*) ;;
37377 + *) finalize_perm_rpath="$finalize_perm_rpath $libdir" ;;
37381 + # Substitute the hardcoded libdirs into the rpath.
37382 + if test -n "$hardcode_libdir_separator" &&
37383 + test -n "$hardcode_libdirs"; then
37384 + libdir="$hardcode_libdirs"
37385 + eval rpath=\" $hardcode_libdir_flag_spec\"
37387 + finalize_rpath="$rpath"
37389 + if test -n "$libobjs" && test "$build_old_libs" = yes; then
37390 + # Transform all the library objects into standard objects.
37391 + compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
37392 + finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
37396 + if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
37397 + if test -n "$NM" && test -n "$global_symbol_pipe"; then
37398 + dlsyms="${outputname}S.c"
37400 + $echo "$modename: not configured to extract global symbols from dlpreopened files" 1>&2
37404 + if test -n "$dlsyms"; then
37408 + # Discover the nlist of each of the dlfiles.
37409 + nlist="$output_objdir/${outputname}.nm"
37411 + $show "$rm $nlist ${nlist}S ${nlist}T"
37412 + $run $rm "$nlist" "${nlist}S" "${nlist}T"
37414 + # Parse the name list into a source file.
37415 + $show "creating $output_objdir/$dlsyms"
37417 + test -z "$run" && $echo > "$output_objdir/$dlsyms" "\
37418 +/* $dlsyms - symbol resolution table for \`$outputname' dlsym emulation. */
37419 +/* Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP */
37421 +#ifdef __cplusplus
37425 +/* Prevent the only kind of declaration conflicts we can make. */
37426 +#define lt_preloaded_symbols some_other_symbol
37428 +/* External symbol declarations for the compiler. */\
37431 + if test "$dlself" = yes; then
37432 + $show "generating symbol list for \`$output'"
37434 + test -z "$run" && $echo ': @PROGRAM@ ' > "$nlist"
37436 + # Add our own program objects to the symbol list.
37437 + progfiles=`$echo "X$objs$old_deplibs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
37438 + for arg in $progfiles; do
37439 + $show "extracting global C symbols from \`$arg'"
37440 + $run eval "$NM $arg | $global_symbol_pipe >> '$nlist'"
37443 + if test -n "$exclude_expsyms"; then
37444 + $run eval '$EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T'
37445 + $run eval '$mv "$nlist"T "$nlist"'
37448 + if test -n "$export_symbols_regex"; then
37449 + $run eval '$EGREP -e "$export_symbols_regex" "$nlist" > "$nlist"T'
37450 + $run eval '$mv "$nlist"T "$nlist"'
37453 + # Prepare the list of exported symbols
37454 + if test -z "$export_symbols"; then
37455 + export_symbols="$output_objdir/$outputname.exp"
37456 + $run $rm $export_symbols
37457 + $run eval "${SED} -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
37459 + *cygwin* | *mingw* )
37460 + $run eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
37461 + $run eval 'cat "$export_symbols" >> "$output_objdir/$outputname.def"'
37465 + $run eval "${SED} -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"'
37466 + $run eval 'grep -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T'
37467 + $run eval 'mv "$nlist"T "$nlist"'
37469 + *cygwin* | *mingw* )
37470 + $run eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
37471 + $run eval 'cat "$nlist" >> "$output_objdir/$outputname.def"'
37477 + for arg in $dlprefiles; do
37478 + $show "extracting global C symbols from \`$arg'"
37479 + name=`$echo "$arg" | ${SED} -e 's%^.*/%%'`
37480 + $run eval '$echo ": $name " >> "$nlist"'
37481 + $run eval "$NM $arg | $global_symbol_pipe >> '$nlist'"
37484 + if test -z "$run"; then
37485 + # Make sure we have at least an empty file.
37486 + test -f "$nlist" || : > "$nlist"
37488 + if test -n "$exclude_expsyms"; then
37489 + $EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T
37490 + $mv "$nlist"T "$nlist"
37493 + # Try sorting and uniquifying the output.
37494 + if grep -v "^: " < "$nlist" |
37495 + if sort -k 3 </dev/null >/dev/null 2>&1; then
37500 + uniq > "$nlist"S; then
37503 + grep -v "^: " < "$nlist" > "$nlist"S
37506 + if test -f "$nlist"S; then
37507 + eval "$global_symbol_to_cdecl"' < "$nlist"S >> "$output_objdir/$dlsyms"'
37509 + $echo '/* NONE */' >> "$output_objdir/$dlsyms"
37512 + $echo >> "$output_objdir/$dlsyms" "\
37514 +#undef lt_preloaded_symbols
37516 +#if defined (__STDC__) && __STDC__
37517 +# define lt_ptr void *
37519 +# define lt_ptr char *
37523 +/* The mapping between symbol names and symbols. */
37527 + *cygwin* | *mingw* )
37528 + $echo >> "$output_objdir/$dlsyms" "\
37529 +/* DATA imports from DLLs on WIN32 can't be const, because
37530 + runtime relocations are performed -- see ld's documentation
37531 + on pseudo-relocs */
37536 + $echo >> "$output_objdir/$dlsyms" "\
37543 + $echo >> "$output_objdir/$dlsyms" "\
37544 + const char *name;
37547 +lt_preloaded_symbols[] =
37551 + eval "$global_symbol_to_c_name_address" < "$nlist" >> "$output_objdir/$dlsyms"
37553 + $echo >> "$output_objdir/$dlsyms" "\
37557 +/* This works around a problem in FreeBSD linker */
37558 +#ifdef FREEBSD_WORKAROUND
37559 +static const void *lt_preloaded_setup() {
37560 + return lt_preloaded_symbols;
37564 +#ifdef __cplusplus
37570 + pic_flag_for_symtable=
37572 + # compiling the symbol table file with pic_flag works around
37573 + # a FreeBSD bug that causes programs to crash when -lm is
37574 + # linked before any other PIC object. But we must not use
37575 + # pic_flag when linking with -static. The problem exists in
37576 + # FreeBSD 2.2.6 and is fixed in FreeBSD 3.1.
37577 + *-*-freebsd2*|*-*-freebsd3.0*|*-*-freebsdelf3.0*)
37578 + case "$compile_command " in
37579 + *" -static "*) ;;
37580 + *) pic_flag_for_symtable=" $pic_flag -DFREEBSD_WORKAROUND";;
37583 + case "$compile_command " in
37584 + *" -static "*) ;;
37585 + *) pic_flag_for_symtable=" $pic_flag";;
37589 + # Now compile the dynamic symbol file.
37590 + $show "(cd $output_objdir && $LTCC $LTCFLAGS -c$no_builtin_flag$pic_flag_for_symtable \"$dlsyms\")"
37591 + $run eval '(cd $output_objdir && $LTCC $LTCFLAGS -c$no_builtin_flag$pic_flag_for_symtable "$dlsyms")' || exit $?
37593 + # Clean up the generated files.
37594 + $show "$rm $output_objdir/$dlsyms $nlist ${nlist}S ${nlist}T"
37595 + $run $rm "$output_objdir/$dlsyms" "$nlist" "${nlist}S" "${nlist}T"
37597 + # Transform the symbol file into the correct name.
37599 + *cygwin* | *mingw* )
37600 + if test -f "$output_objdir/${outputname}.def" ; then
37601 + compile_command=`$echo "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}.def $output_objdir/${outputname}S.${objext}%"`
37602 + finalize_command=`$echo "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}.def $output_objdir/${outputname}S.${objext}%"`
37604 + compile_command=`$echo "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
37605 + finalize_command=`$echo "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
37609 + compile_command=`$echo "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
37610 + finalize_command=`$echo "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
37615 + $echo "$modename: unknown suffix for \`$dlsyms'" 1>&2
37616 + exit $EXIT_FAILURE
37620 + # We keep going just in case the user didn't refer to
37621 + # lt_preloaded_symbols. The linker will fail if global_symbol_pipe
37622 + # really was required.
37624 + # Nullify the symbol file.
37625 + compile_command=`$echo "X$compile_command" | $Xsed -e "s% @SYMFILE@%%"`
37626 + finalize_command=`$echo "X$finalize_command" | $Xsed -e "s% @SYMFILE@%%"`
37629 + if test "$need_relink" = no || test "$build_libtool_libs" != yes; then
37630 + # Replace the output file specification.
37631 + compile_command=`$echo "X$compile_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
37632 + link_command="$compile_command$compile_rpath"
37634 + # We have no uninstalled library dependencies, so finalize right now.
37635 + $show "$link_command"
37636 + $run eval "$link_command"
37639 + # Delete the generated files.
37640 + if test -n "$dlsyms"; then
37641 + $show "$rm $output_objdir/${outputname}S.${objext}"
37642 + $run $rm "$output_objdir/${outputname}S.${objext}"
37645 + exit $exit_status
37648 + if test -n "$shlibpath_var"; then
37649 + # We should set the shlibpath_var
37651 + for dir in $temp_rpath; do
37653 + [\\/]* | [A-Za-z]:[\\/]*)
37655 + rpath="$rpath$dir:"
37658 + # Relative path: add a thisdir entry.
37659 + rpath="$rpath\$thisdir/$dir:"
37663 + temp_rpath="$rpath"
37666 + if test -n "$compile_shlibpath$finalize_shlibpath"; then
37667 + compile_command="$shlibpath_var=\"$compile_shlibpath$finalize_shlibpath\$$shlibpath_var\" $compile_command"
37669 + if test -n "$finalize_shlibpath"; then
37670 + finalize_command="$shlibpath_var=\"$finalize_shlibpath\$$shlibpath_var\" $finalize_command"
37675 + if test -n "$runpath_var"; then
37676 + if test -n "$perm_rpath"; then
37677 + # We should set the runpath_var.
37679 + for dir in $perm_rpath; do
37680 + rpath="$rpath$dir:"
37682 + compile_var="$runpath_var=\"$rpath\$$runpath_var\" "
37684 + if test -n "$finalize_perm_rpath"; then
37685 + # We should set the runpath_var.
37687 + for dir in $finalize_perm_rpath; do
37688 + rpath="$rpath$dir:"
37690 + finalize_var="$runpath_var=\"$rpath\$$runpath_var\" "
37694 + if test "$no_install" = yes; then
37695 + # We don't need to create a wrapper script.
37696 + link_command="$compile_var$compile_command$compile_rpath"
37697 + # Replace the output file specification.
37698 + link_command=`$echo "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
37699 + # Delete the old output file.
37701 + # Link the executable and exit
37702 + $show "$link_command"
37703 + $run eval "$link_command" || exit $?
37704 + exit $EXIT_SUCCESS
37707 + if test "$hardcode_action" = relink; then
37708 + # Fast installation is not supported
37709 + link_command="$compile_var$compile_command$compile_rpath"
37710 + relink_command="$finalize_var$finalize_command$finalize_rpath"
37712 + $echo "$modename: warning: this platform does not like uninstalled shared libraries" 1>&2
37713 + $echo "$modename: \`$output' will be relinked during installation" 1>&2
37715 + if test "$fast_install" != no; then
37716 + link_command="$finalize_var$compile_command$finalize_rpath"
37717 + if test "$fast_install" = yes; then
37718 + relink_command=`$echo "X$compile_var$compile_command$compile_rpath" | $Xsed -e 's%@OUTPUT@%\$progdir/\$file%g'`
37720 + # fast_install is set to needless
37724 + link_command="$compile_var$compile_command$compile_rpath"
37725 + relink_command="$finalize_var$finalize_command$finalize_rpath"
37729 + # Replace the output file specification.
37730 + link_command=`$echo "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'`
37732 + # Delete the old output files.
37733 + $run $rm $output $output_objdir/$outputname $output_objdir/lt-$outputname
37735 + $show "$link_command"
37736 + $run eval "$link_command" || exit $?
37738 + # Now create the wrapper script.
37739 + $show "creating $output"
37741 + # Quote the relink command for shipping.
37742 + if test -n "$relink_command"; then
37743 + # Preserve any variables that may affect compiler behavior
37744 + for var in $variables_saved_for_relink; do
37745 + if eval test -z \"\${$var+set}\"; then
37746 + relink_command="{ test -z \"\${$var+set}\" || unset $var || { $var=; export $var; }; }; $relink_command"
37747 + elif eval var_value=\$$var; test -z "$var_value"; then
37748 + relink_command="$var=; export $var; $relink_command"
37750 + var_value=`$echo "X$var_value" | $Xsed -e "$sed_quote_subst"`
37751 + relink_command="$var=\"$var_value\"; export $var; $relink_command"
37754 + relink_command="(cd `pwd`; $relink_command)"
37755 + relink_command=`$echo "X$relink_command" | $Xsed -e "$sed_quote_subst"`
37758 + # Quote $echo for shipping.
37759 + if test "X$echo" = "X$SHELL $progpath --fallback-echo"; then
37760 + case $progpath in
37761 + [\\/]* | [A-Za-z]:[\\/]*) qecho="$SHELL $progpath --fallback-echo";;
37762 + *) qecho="$SHELL `pwd`/$progpath --fallback-echo";;
37764 + qecho=`$echo "X$qecho" | $Xsed -e "$sed_quote_subst"`
37766 + qecho=`$echo "X$echo" | $Xsed -e "$sed_quote_subst"`
37769 + # Only actually do things if our run command is non-null.
37770 + if test -z "$run"; then
37771 + # win32 will think the script is a binary if it has
37772 + # a .exe suffix, so we strip it off here.
37774 + *.exe) output=`$echo $output|${SED} 's,.exe$,,'` ;;
37776 + # test for cygwin because mv fails w/o .exe extensions
37780 + outputname=`$echo $outputname|${SED} 's,.exe$,,'` ;;
37784 + *cygwin* | *mingw* )
37785 + output_name=`basename $output`
37786 + output_path=`dirname $output`
37787 + cwrappersource="$output_path/$objdir/lt-$output_name.c"
37788 + cwrapper="$output_path/$output_name.exe"
37789 + $rm $cwrappersource $cwrapper
37790 + trap "$rm $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15
37792 + cat > $cwrappersource <<EOF
37794 +/* $cwrappersource - temporary wrapper executable for $objdir/$outputname
37795 + Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
37797 + The $output program cannot be directly executed until all the libtool
37798 + libraries that it depends on are installed.
37800 + This wrapper executable should never be moved out of the build directory.
37801 + If it is, it will not operate correctly.
37803 + Currently, it simply execs the wrapper *script* "/bin/sh $output",
37804 + but could eventually absorb all of the scripts functionality and
37805 + exec $objdir/$outputname directly.
37808 + cat >> $cwrappersource<<"EOF"
37809 +#include <stdio.h>
37810 +#include <stdlib.h>
37811 +#include <unistd.h>
37812 +#include <malloc.h>
37813 +#include <stdarg.h>
37814 +#include <assert.h>
37815 +#include <string.h>
37816 +#include <ctype.h>
37817 +#include <sys/stat.h>
37819 +#if defined(PATH_MAX)
37820 +# define LT_PATHMAX PATH_MAX
37821 +#elif defined(MAXPATHLEN)
37822 +# define LT_PATHMAX MAXPATHLEN
37824 +# define LT_PATHMAX 1024
37827 +#ifndef DIR_SEPARATOR
37828 +# define DIR_SEPARATOR '/'
37829 +# define PATH_SEPARATOR ':'
37832 +#if defined (_WIN32) || defined (__MSDOS__) || defined (__DJGPP__) || \
37833 + defined (__OS2__)
37834 +# define HAVE_DOS_BASED_FILE_SYSTEM
37835 +# ifndef DIR_SEPARATOR_2
37836 +# define DIR_SEPARATOR_2 '\\'
37838 +# ifndef PATH_SEPARATOR_2
37839 +# define PATH_SEPARATOR_2 ';'
37843 +#ifndef DIR_SEPARATOR_2
37844 +# define IS_DIR_SEPARATOR(ch) ((ch) == DIR_SEPARATOR)
37845 +#else /* DIR_SEPARATOR_2 */
37846 +# define IS_DIR_SEPARATOR(ch) \
37847 + (((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2))
37848 +#endif /* DIR_SEPARATOR_2 */
37850 +#ifndef PATH_SEPARATOR_2
37851 +# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR)
37852 +#else /* PATH_SEPARATOR_2 */
37853 +# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR_2)
37854 +#endif /* PATH_SEPARATOR_2 */
37856 +#define XMALLOC(type, num) ((type *) xmalloc ((num) * sizeof(type)))
37857 +#define XFREE(stale) do { \
37858 + if (stale) { free ((void *) stale); stale = 0; } \
37861 +/* -DDEBUG is fairly common in CFLAGS. */
37863 +#if defined DEBUGWRAPPER
37864 +# define DEBUG(format, ...) fprintf(stderr, format, __VA_ARGS__)
37866 +# define DEBUG(format, ...)
37869 +const char *program_name = NULL;
37871 +void * xmalloc (size_t num);
37872 +char * xstrdup (const char *string);
37873 +const char * base_name (const char *name);
37874 +char * find_executable(const char *wrapper);
37875 +int check_executable(const char *path);
37876 +char * strendzap(char *str, const char *pat);
37877 +void lt_fatal (const char *message, ...);
37880 +main (int argc, char *argv[])
37885 + program_name = (char *) xstrdup (base_name (argv[0]));
37886 + DEBUG("(main) argv[0] : %s\n",argv[0]);
37887 + DEBUG("(main) program_name : %s\n",program_name);
37888 + newargz = XMALLOC(char *, argc+2);
37891 + cat >> $cwrappersource <<EOF
37892 + newargz[0] = (char *) xstrdup("$SHELL");
37895 + cat >> $cwrappersource <<"EOF"
37896 + newargz[1] = find_executable(argv[0]);
37897 + if (newargz[1] == NULL)
37898 + lt_fatal("Couldn't find %s", argv[0]);
37899 + DEBUG("(main) found exe at : %s\n",newargz[1]);
37900 + /* we know the script has the same name, without the .exe */
37901 + /* so make sure newargz[1] doesn't end in .exe */
37902 + strendzap(newargz[1],".exe");
37903 + for (i = 1; i < argc; i++)
37904 + newargz[i+1] = xstrdup(argv[i]);
37905 + newargz[argc+1] = NULL;
37907 + for (i=0; i<argc+1; i++)
37909 + DEBUG("(main) newargz[%d] : %s\n",i,newargz[i]);
37917 + cat >> $cwrappersource <<EOF
37918 + execv("$SHELL",(char const **)newargz);
37922 + cat >> $cwrappersource <<EOF
37923 + execv("$SHELL",newargz);
37928 + cat >> $cwrappersource <<"EOF"
37933 +xmalloc (size_t num)
37935 + void * p = (void *) malloc (num);
37937 + lt_fatal ("Memory exhausted");
37943 +xstrdup (const char *string)
37945 + return string ? strcpy ((char *) xmalloc (strlen (string) + 1), string) : NULL
37950 +base_name (const char *name)
37952 + const char *base;
37954 +#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
37955 + /* Skip over the disk name in MSDOS pathnames. */
37956 + if (isalpha ((unsigned char)name[0]) && name[1] == ':')
37960 + for (base = name; *name; name++)
37961 + if (IS_DIR_SEPARATOR (*name))
37967 +check_executable(const char * path)
37971 + DEBUG("(check_executable) : %s\n", path ? (*path ? path : "EMPTY!") : "NULL!");
37972 + if ((!path) || (!*path))
37975 + if ((stat (path, &st) >= 0) &&
37977 + /* MinGW & native WIN32 do not support S_IXOTH or S_IXGRP */
37978 +#if defined (S_IXOTH)
37979 + ((st.st_mode & S_IXOTH) == S_IXOTH) ||
37981 +#if defined (S_IXGRP)
37982 + ((st.st_mode & S_IXGRP) == S_IXGRP) ||
37984 + ((st.st_mode & S_IXUSR) == S_IXUSR))
37991 +/* Searches for the full path of the wrapper. Returns
37992 + newly allocated full path name if found, NULL otherwise */
37994 +find_executable (const char* wrapper)
37996 + int has_slash = 0;
37998 + const char* p_next;
37999 + /* static buffer for getcwd */
38000 + char tmp[LT_PATHMAX + 1];
38002 + char* concat_name;
38004 + DEBUG("(find_executable) : %s\n", wrapper ? (*wrapper ? wrapper : "EMPTY!") : "NULL!");
38006 + if ((wrapper == NULL) || (*wrapper == '\0'))
38009 + /* Absolute path? */
38010 +#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
38011 + if (isalpha ((unsigned char)wrapper[0]) && wrapper[1] == ':')
38013 + concat_name = xstrdup (wrapper);
38014 + if (check_executable(concat_name))
38015 + return concat_name;
38016 + XFREE(concat_name);
38021 + if (IS_DIR_SEPARATOR (wrapper[0]))
38023 + concat_name = xstrdup (wrapper);
38024 + if (check_executable(concat_name))
38025 + return concat_name;
38026 + XFREE(concat_name);
38028 +#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
38032 + for (p = wrapper; *p; p++)
38040 + /* no slashes; search PATH */
38041 + const char* path = getenv ("PATH");
38042 + if (path != NULL)
38044 + for (p = path; *p; p = p_next)
38048 + for (q = p; *q; q++)
38049 + if (IS_PATH_SEPARATOR(*q))
38052 + p_next = (*q == '\0' ? q : q + 1);
38055 + /* empty path: current directory */
38056 + if (getcwd (tmp, LT_PATHMAX) == NULL)
38057 + lt_fatal ("getcwd failed");
38058 + tmp_len = strlen(tmp);
38059 + concat_name = XMALLOC(char, tmp_len + 1 + strlen(wrapper) + 1);
38060 + memcpy (concat_name, tmp, tmp_len);
38061 + concat_name[tmp_len] = '/';
38062 + strcpy (concat_name + tmp_len + 1, wrapper);
38066 + concat_name = XMALLOC(char, p_len + 1 + strlen(wrapper) + 1);
38067 + memcpy (concat_name, p, p_len);
38068 + concat_name[p_len] = '/';
38069 + strcpy (concat_name + p_len + 1, wrapper);
38071 + if (check_executable(concat_name))
38072 + return concat_name;
38073 + XFREE(concat_name);
38076 + /* not found in PATH; assume curdir */
38078 + /* Relative path | not found in path: prepend cwd */
38079 + if (getcwd (tmp, LT_PATHMAX) == NULL)
38080 + lt_fatal ("getcwd failed");
38081 + tmp_len = strlen(tmp);
38082 + concat_name = XMALLOC(char, tmp_len + 1 + strlen(wrapper) + 1);
38083 + memcpy (concat_name, tmp, tmp_len);
38084 + concat_name[tmp_len] = '/';
38085 + strcpy (concat_name + tmp_len + 1, wrapper);
38087 + if (check_executable(concat_name))
38088 + return concat_name;
38089 + XFREE(concat_name);
38094 +strendzap(char *str, const char *pat)
38096 + size_t len, patlen;
38098 + assert(str != NULL);
38099 + assert(pat != NULL);
38101 + len = strlen(str);
38102 + patlen = strlen(pat);
38104 + if (patlen <= len)
38106 + str += len - patlen;
38107 + if (strcmp(str, pat) == 0)
38114 +lt_error_core (int exit_status, const char * mode,
38115 + const char * message, va_list ap)
38117 + fprintf (stderr, "%s: %s: ", program_name, mode);
38118 + vfprintf (stderr, message, ap);
38119 + fprintf (stderr, ".\n");
38121 + if (exit_status >= 0)
38122 + exit (exit_status);
38126 +lt_fatal (const char *message, ...)
38129 + va_start (ap, message);
38130 + lt_error_core (EXIT_FAILURE, "FATAL", message, ap);
38134 + # we should really use a build-platform specific compiler
38135 + # here, but OTOH, the wrappers (shell script and this C one)
38136 + # are only useful if you want to execute the "real" binary.
38137 + # Since the "real" binary is built for $host, then this
38138 + # wrapper might as well be built for $host, too.
38139 + $run $LTCC $LTCFLAGS -s -o $cwrapper $cwrappersource
38143 + trap "$rm $output; exit $EXIT_FAILURE" 1 2 15
38145 + $echo > $output "\
38148 +# $output - temporary wrapper script for $objdir/$outputname
38149 +# Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
38151 +# The $output program cannot be directly executed until all the libtool
38152 +# libraries that it depends on are installed.
38154 +# This wrapper script should never be moved out of the build directory.
38155 +# If it is, it will not operate correctly.
38157 +# Sed substitution that helps us do robust quoting. It backslashifies
38158 +# metacharacters that are still active within double-quoted strings.
38159 +Xsed='${SED} -e 1s/^X//'
38160 +sed_quote_subst='$sed_quote_subst'
38162 +# The HP-UX ksh and POSIX shell print the target directory to stdout
38163 +# if CDPATH is set.
38164 +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
38166 +relink_command=\"$relink_command\"
38168 +# This environment variable determines our operation mode.
38169 +if test \"\$libtool_install_magic\" = \"$magic\"; then
38170 + # install mode needs the following variable:
38171 + notinst_deplibs='$notinst_deplibs'
38173 + # When we are sourced in execute mode, \$file and \$echo are already set.
38174 + if test \"\$libtool_execute_magic\" != \"$magic\"; then
38177 + # Make sure echo works.
38178 + if test \"X\$1\" = X--no-reexec; then
38179 + # Discard the --no-reexec flag, and continue.
38181 + elif test \"X\`(\$echo '\t') 2>/dev/null\`\" = 'X\t'; then
38182 + # Yippee, \$echo works!
38185 + # Restart under the correct shell, and then maybe \$echo will work.
38186 + exec $SHELL \"\$0\" --no-reexec \${1+\"\$@\"}
38190 + $echo >> $output "\
38192 + # Find the directory that this script lives in.
38193 + thisdir=\`\$echo \"X\$file\" | \$Xsed -e 's%/[^/]*$%%'\`
38194 + test \"x\$thisdir\" = \"x\$file\" && thisdir=.
38196 + # Follow symbolic links until we get to the real thisdir.
38197 + file=\`ls -ld \"\$file\" | ${SED} -n 's/.*-> //p'\`
38198 + while test -n \"\$file\"; do
38199 + destdir=\`\$echo \"X\$file\" | \$Xsed -e 's%/[^/]*\$%%'\`
38201 + # If there was a directory component, then change thisdir.
38202 + if test \"x\$destdir\" != \"x\$file\"; then
38203 + case \"\$destdir\" in
38204 + [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;;
38205 + *) thisdir=\"\$thisdir/\$destdir\" ;;
38209 + file=\`\$echo \"X\$file\" | \$Xsed -e 's%^.*/%%'\`
38210 + file=\`ls -ld \"\$thisdir/\$file\" | ${SED} -n 's/.*-> //p'\`
38213 + # Try to get the absolute directory name.
38214 + absdir=\`cd \"\$thisdir\" && pwd\`
38215 + test -n \"\$absdir\" && thisdir=\"\$absdir\"
38218 + if test "$fast_install" = yes; then
38219 + $echo >> $output "\
38220 + program=lt-'$outputname'$exeext
38221 + progdir=\"\$thisdir/$objdir\"
38223 + if test ! -f \"\$progdir/\$program\" || \\
38224 + { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | ${SED} 1q\`; \\
38225 + test \"X\$file\" != \"X\$progdir/\$program\"; }; then
38227 + file=\"\$\$-\$program\"
38229 + if test ! -d \"\$progdir\"; then
38230 + $mkdir \"\$progdir\"
38232 + $rm \"\$progdir/\$file\"
38235 + $echo >> $output "\
38237 + # relink executable if necessary
38238 + if test -n \"\$relink_command\"; then
38239 + if relink_command_output=\`eval \$relink_command 2>&1\`; then :
38241 + $echo \"\$relink_command_output\" >&2
38242 + $rm \"\$progdir/\$file\"
38243 + exit $EXIT_FAILURE
38247 + $mv \"\$progdir/\$file\" \"\$progdir/\$program\" 2>/dev/null ||
38248 + { $rm \"\$progdir/\$program\";
38249 + $mv \"\$progdir/\$file\" \"\$progdir/\$program\"; }
38250 + $rm \"\$progdir/\$file\"
38253 + $echo >> $output "\
38254 + program='$outputname'
38255 + progdir=\"\$thisdir/$objdir\"
38259 + $echo >> $output "\
38261 + if test -f \"\$progdir/\$program\"; then"
38263 + # Export our shlibpath_var if we have one.
38264 + if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
38265 + $echo >> $output "\
38266 + # Add our own library path to $shlibpath_var
38267 + $shlibpath_var=\"$temp_rpath\$$shlibpath_var\"
38269 + # Some systems cannot cope with colon-terminated $shlibpath_var
38270 + # The second colon is a workaround for a bug in BeOS R4 sed
38271 + $shlibpath_var=\`\$echo \"X\$$shlibpath_var\" | \$Xsed -e 's/::*\$//'\`
38273 + export $shlibpath_var
38277 + # fixup the dll searchpath if we need to.
38278 + if test -n "$dllsearchpath"; then
38279 + $echo >> $output "\
38280 + # Add the dll search path components to the executable PATH
38281 + PATH=$dllsearchpath:\$PATH
38285 + $echo >> $output "\
38286 + if test \"\$libtool_execute_magic\" != \"$magic\"; then
38287 + # Run the actual program with our arguments.
38289 + # Make sure env LD_LIBRARY_PATH does not mess us up
38290 + if test -n \"\${LD_LIBRARY_PATH+set}\"; then
38291 + export LD_LIBRARY_PATH=\$progdir:\$LD_LIBRARY_PATH
38295 + # Backslashes separate directories on plain windows
38296 + *-*-mingw | *-*-os2*)
38297 + $echo >> $output "\
38298 + exec \"\$progdir\\\\\$program\" \${1+\"\$@\"}
38303 + $echo >> $output "\
38304 + exec \"\$progdir/\$program\" \${1+\"\$@\"}
38308 + $echo >> $output "\
38309 + \$echo \"\$0: cannot exec \$program \${1+\"\$@\"}\"
38310 + exit $EXIT_FAILURE
38313 + # The program doesn't exist.
38314 + \$echo \"\$0: error: \\\`\$progdir/\$program' does not exist\" 1>&2
38315 + \$echo \"This script is just a wrapper for \$program.\" 1>&2
38316 + $echo \"See the $PACKAGE documentation for more information.\" 1>&2
38317 + exit $EXIT_FAILURE
38323 + exit $EXIT_SUCCESS
38327 + # See if we need to build an old-fashioned archive.
38328 + for oldlib in $oldlibs; do
38330 + if test "$build_libtool_libs" = convenience; then
38331 + oldobjs="$libobjs_save"
38332 + addlibs="$convenience"
38333 + build_libtool_libs=no
38335 + if test "$build_libtool_libs" = module; then
38336 + oldobjs="$libobjs_save"
38337 + build_libtool_libs=no
38339 + oldobjs="$old_deplibs $non_pic_objects"
38341 + addlibs="$old_convenience"
38344 + if test -n "$addlibs"; then
38345 + gentop="$output_objdir/${outputname}x"
38346 + generated="$generated $gentop"
38348 + func_extract_archives $gentop $addlibs
38349 + oldobjs="$oldobjs $func_extract_archives_result"
38352 + # Do each command in the archive commands.
38353 + if test -n "$old_archive_from_new_cmds" && test "$build_libtool_libs" = yes; then
38354 + cmds=$old_archive_from_new_cmds
38356 + # POSIX demands no paths to be encoded in archives. We have
38357 + # to avoid creating archives with duplicate basenames if we
38358 + # might have to extract them afterwards, e.g., when creating a
38359 + # static archive out of a convenience library, or when linking
38360 + # the entirety of a libtool archive into another (currently
38361 + # not supported by libtool).
38362 + if (for obj in $oldobjs
38364 + $echo "X$obj" | $Xsed -e 's%^.*/%%'
38365 + done | sort | sort -uc >/dev/null 2>&1); then
38368 + $echo "copying selected object files to avoid basename conflicts..."
38370 + if test -z "$gentop"; then
38371 + gentop="$output_objdir/${outputname}x"
38372 + generated="$generated $gentop"
38374 + $show "${rm}r $gentop"
38375 + $run ${rm}r "$gentop"
38376 + $show "$mkdir $gentop"
38377 + $run $mkdir "$gentop"
38379 + if test "$exit_status" -ne 0 && test ! -d "$gentop"; then
38380 + exit $exit_status
38384 + save_oldobjs=$oldobjs
38387 + for obj in $save_oldobjs
38389 + objbase=`$echo "X$obj" | $Xsed -e 's%^.*/%%'`
38390 + case " $oldobjs " in
38391 + " ") oldobjs=$obj ;;
38392 + *[\ /]"$objbase "*)
38394 + # Make sure we don't pick an alternate name that also
38396 + newobj=lt$counter-$objbase
38397 + counter=`expr $counter + 1`
38398 + case " $oldobjs " in
38399 + *[\ /]"$newobj "*) ;;
38400 + *) if test ! -f "$gentop/$newobj"; then break; fi ;;
38403 + $show "ln $obj $gentop/$newobj || cp $obj $gentop/$newobj"
38404 + $run ln "$obj" "$gentop/$newobj" ||
38405 + $run cp "$obj" "$gentop/$newobj"
38406 + oldobjs="$oldobjs $gentop/$newobj"
38408 + *) oldobjs="$oldobjs $obj" ;;
38413 + eval cmds=\"$old_archive_cmds\"
38415 + if len=`expr "X$cmds" : ".*"` &&
38416 + test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
38417 + cmds=$old_archive_cmds
38419 + # the command line is too long to link in one step, link in parts
38420 + $echo "using piecewise archive linking..."
38421 + save_RANLIB=$RANLIB
38425 + save_oldobjs=$oldobjs
38427 + # Is there a better way of finding the last object in the list?
38428 + for obj in $save_oldobjs
38432 + for obj in $save_oldobjs
38434 + oldobjs="$objlist $obj"
38435 + objlist="$objlist $obj"
38436 + eval test_cmds=\"$old_archive_cmds\"
38437 + if len=`expr "X$test_cmds" : ".*" 2>/dev/null` &&
38438 + test "$len" -le "$max_cmd_len"; then
38441 + # the above command should be used before it gets too long
38443 + if test "$obj" = "$last_oldobj" ; then
38444 + RANLIB=$save_RANLIB
38446 + test -z "$concat_cmds" || concat_cmds=$concat_cmds~
38447 + eval concat_cmds=\"\${concat_cmds}$old_archive_cmds\"
38451 + RANLIB=$save_RANLIB
38453 + if test "X$oldobjs" = "X" ; then
38454 + eval cmds=\"\$concat_cmds\"
38456 + eval cmds=\"\$concat_cmds~\$old_archive_cmds\"
38460 + save_ifs="$IFS"; IFS='~'
38461 + for cmd in $cmds; do
38462 + eval cmd=\"$cmd\"
38465 + $run eval "$cmd" || exit $?
38470 + if test -n "$generated"; then
38471 + $show "${rm}r$generated"
38472 + $run ${rm}r$generated
38475 + # Now create the libtool archive.
38479 + test "$build_old_libs" = yes && old_library="$libname.$libext"
38480 + $show "creating $output"
38482 + # Preserve any variables that may affect compiler behavior
38483 + for var in $variables_saved_for_relink; do
38484 + if eval test -z \"\${$var+set}\"; then
38485 + relink_command="{ test -z \"\${$var+set}\" || unset $var || { $var=; export $var; }; }; $relink_command"
38486 + elif eval var_value=\$$var; test -z "$var_value"; then
38487 + relink_command="$var=; export $var; $relink_command"
38489 + var_value=`$echo "X$var_value" | $Xsed -e "$sed_quote_subst"`
38490 + relink_command="$var=\"$var_value\"; export $var; $relink_command"
38493 + # Quote the link command for shipping.
38494 + relink_command="(cd `pwd`; $SHELL $progpath $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)"
38495 + relink_command=`$echo "X$relink_command" | $Xsed -e "$sed_quote_subst"`
38496 + if test "$hardcode_automatic" = yes ; then
38501 + # Only create the output if not a dry run.
38502 + if test -z "$run"; then
38503 + for installed in no yes; do
38504 + if test "$installed" = yes; then
38505 + if test -z "$install_libdir"; then
38508 + output="$output_objdir/$outputname"i
38509 + # Replace all uninstalled libtool libraries with the installed ones
38510 + newdependency_libs=
38511 + for deplib in $dependency_libs; do
38514 + name=`$echo "X$deplib" | $Xsed -e 's%^.*/%%'`
38515 + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
38516 + if test -z "$libdir"; then
38517 + $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2
38518 + exit $EXIT_FAILURE
38520 + if test "X$EGREP" = X ; then
38523 + # We do not want portage's install root ($D) present. Check only for
38524 + # this if the .la is being installed.
38525 + if test "$installed" = yes && test "$D"; then
38526 + eval mynewdependency_lib=`echo "$libdir/$name" |sed -e "s:$D:/:g" -e 's:/\+:/:g'`
38528 + mynewdependency_lib="$libdir/$name"
38530 + # Do not add duplicates
38531 + if test "$mynewdependency_lib"; then
38532 + my_little_ninja_foo_1=`echo $newdependency_libs |$EGREP -e "$mynewdependency_lib"`
38533 + if test -z "$my_little_ninja_foo_1"; then
38534 + newdependency_libs="$newdependency_libs $mynewdependency_lib"
38539 + if test "$installed" = yes; then
38540 + # Rather use S=WORKDIR if our version of portage supports it.
38541 + # This is because some ebuild (gcc) do not use $S as buildroot.
38542 + if test "$PWORKDIR"; then
38545 + # We do not want portage's build root ($S) present.
38546 + my_little_ninja_foo_2=`echo $deplib |$EGREP -e "$S"`
38547 + # We do not want portage's install root ($D) present.
38548 + my_little_ninja_foo_3=`echo $deplib |$EGREP -e "$D"`
38549 + if test -n "$my_little_ninja_foo_2" && test "$S"; then
38550 + mynewdependency_lib=""
38551 + elif test -n "$my_little_ninja_foo_3" && test "$D"; then
38552 + eval mynewdependency_lib=`echo "$deplib" |sed -e "s:$D:/:g" -e 's:/\+:/:g'`
38554 + mynewdependency_lib="$deplib"
38557 + mynewdependency_lib="$deplib"
38559 + # Do not add duplicates
38560 + if test "$mynewdependency_lib"; then
38561 + my_little_ninja_foo_4=`echo $newdependency_libs |$EGREP -e "$mynewdependency_lib"`
38562 + if test -z "$my_little_ninja_foo_4"; then
38563 + newdependency_libs="$newdependency_libs $mynewdependency_lib"
38569 + dependency_libs="$newdependency_libs"
38571 + for lib in $dlfiles; do
38572 + name=`$echo "X$lib" | $Xsed -e 's%^.*/%%'`
38573 + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
38574 + if test -z "$libdir"; then
38575 + $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
38576 + exit $EXIT_FAILURE
38578 + newdlfiles="$newdlfiles $libdir/$name"
38580 + dlfiles="$newdlfiles"
38582 + for lib in $dlprefiles; do
38583 + name=`$echo "X$lib" | $Xsed -e 's%^.*/%%'`
38584 + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
38585 + if test -z "$libdir"; then
38586 + $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
38587 + exit $EXIT_FAILURE
38589 + newdlprefiles="$newdlprefiles $libdir/$name"
38591 + dlprefiles="$newdlprefiles"
38594 + for lib in $dlfiles; do
38596 + [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
38597 + *) abs=`pwd`"/$lib" ;;
38599 + newdlfiles="$newdlfiles $abs"
38601 + dlfiles="$newdlfiles"
38603 + for lib in $dlprefiles; do
38605 + [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
38606 + *) abs=`pwd`"/$lib" ;;
38608 + newdlprefiles="$newdlprefiles $abs"
38610 + dlprefiles="$newdlprefiles"
38613 + # place dlname in correct position for cygwin
38615 + case $host,$output,$installed,$module,$dlname in
38616 + *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll) tdlname=../bin/$dlname ;;
38618 + # Do not add duplicates
38619 + if test "$installed" = yes && test "$D"; then
38620 + install_libdir=`echo "$install_libdir" |sed -e "s:$D:/:g" -e 's:/\+:/:g'`
38622 + $echo > $output "\
38623 +# $outputname - a libtool library file
38624 +# Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
38626 +# Please DO NOT delete this file!
38627 +# It is necessary for linking the library.
38629 +# The name that we can dlopen(3).
38632 +# Names of this library.
38633 +library_names='$library_names'
38635 +# The name of the static archive.
38636 +old_library='$old_library'
38638 +# Libraries that this one depends upon.
38639 +dependency_libs='$dependency_libs'
38641 +# Version information for $libname.
38644 +revision=$revision
38646 +# Is this an already installed library?
38647 +installed=$installed
38649 +# Should we warn about portability when linking against -modules?
38650 +shouldnotlink=$module
38652 +# Files to dlopen/dlpreopen
38654 +dlpreopen='$dlprefiles'
38656 +# Directory that this library needs to be installed in:
38657 +libdir='$install_libdir'"
38658 + if test "$installed" = no && test "$need_relink" = yes; then
38659 + $echo >> $output "\
38660 +relink_command=\"$relink_command\""
38665 + # Do a symbolic link so that the libtool archive can be found in
38666 + # LD_LIBRARY_PATH before the program is installed.
38667 + $show "(cd $output_objdir && $rm $outputname && $LN_S ../$outputname $outputname)"
38668 + $run eval '(cd $output_objdir && $rm $outputname && $LN_S ../$outputname $outputname)' || exit $?
38671 + exit $EXIT_SUCCESS
38674 + # libtool install mode
38676 + modename="$modename: install"
38678 + # There may be an optional sh(1) argument at the beginning of
38679 + # install_prog (especially on Windows NT).
38680 + if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh ||
38681 + # Allow the use of GNU shtool's install command.
38682 + $echo "X$nonopt" | grep shtool > /dev/null; then
38683 + # Aesthetically quote it.
38684 + arg=`$echo "X$nonopt" | $Xsed -e "$sed_quote_subst"`
38686 + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
38690 + install_prog="$arg "
38698 + # The real first argument should be the name of the installation program.
38699 + # Aesthetically quote it.
38700 + arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
38702 + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
38706 + install_prog="$install_prog$arg"
38708 + # We need to accept at least all the BSD install flags.
38718 + if test -n "$dest"; then
38719 + files="$files $dest"
38727 + case " $install_prog " in
38728 + *[\\\ /]cp\ *) ;;
38732 + -g | -m | -o) prev=$arg ;;
38740 + # If the previous option needed an argument, then skip it.
38741 + if test -n "$prev"; then
38750 + # Aesthetically quote the argument.
38751 + arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
38753 + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
38757 + install_prog="$install_prog $arg"
38760 + if test -z "$install_prog"; then
38761 + $echo "$modename: you must specify an install program" 1>&2
38762 + $echo "$help" 1>&2
38763 + exit $EXIT_FAILURE
38766 + if test -n "$prev"; then
38767 + $echo "$modename: the \`$prev' option requires an argument" 1>&2
38768 + $echo "$help" 1>&2
38769 + exit $EXIT_FAILURE
38772 + if test -z "$files"; then
38773 + if test -z "$dest"; then
38774 + $echo "$modename: no file or destination specified" 1>&2
38776 + $echo "$modename: you must specify a destination" 1>&2
38778 + $echo "$help" 1>&2
38779 + exit $EXIT_FAILURE
38782 + # Strip any trailing slash from the destination.
38783 + dest=`$echo "X$dest" | $Xsed -e 's%/$%%'`
38785 + # Check to see that the destination is a directory.
38786 + test -d "$dest" && isdir=yes
38787 + if test "$isdir" = yes; then
38791 + destdir=`$echo "X$dest" | $Xsed -e 's%/[^/]*$%%'`
38792 + test "X$destdir" = "X$dest" && destdir=.
38793 + destname=`$echo "X$dest" | $Xsed -e 's%^.*/%%'`
38795 + # Not a directory, so check to see that there is only one file specified.
38797 + if test "$#" -gt 2; then
38798 + $echo "$modename: \`$dest' is not a directory" 1>&2
38799 + $echo "$help" 1>&2
38800 + exit $EXIT_FAILURE
38804 + [\\/]* | [A-Za-z]:[\\/]*) ;;
38806 + for file in $files; do
38810 + $echo "$modename: \`$destdir' must be an absolute directory name" 1>&2
38811 + $echo "$help" 1>&2
38812 + exit $EXIT_FAILURE
38819 + # This variable tells wrapper scripts just to set variables rather
38820 + # than running their programs.
38821 + libtool_install_magic="$magic"
38826 + for file in $files; do
38828 + # Do each installation.
38831 + # Do the static libraries later.
38832 + staticlibs="$staticlibs $file"
38836 + # Check to see that this really is a libtool archive.
38837 + if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
38839 + $echo "$modename: \`$file' is not a valid libtool archive" 1>&2
38840 + $echo "$help" 1>&2
38841 + exit $EXIT_FAILURE
38847 + # If there is no directory component, then add one.
38849 + */* | *\\*) . $file ;;
38853 + # Add the libdir to current_libdirs if it is the destination.
38854 + if test "X$destdir" = "X$libdir"; then
38855 + case "$current_libdirs " in
38856 + *" $libdir "*) ;;
38857 + *) current_libdirs="$current_libdirs $libdir" ;;
38860 + # Note the libdir as a future libdir.
38861 + case "$future_libdirs " in
38862 + *" $libdir "*) ;;
38863 + *) future_libdirs="$future_libdirs $libdir" ;;
38867 + dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`/
38868 + test "X$dir" = "X$file/" && dir=
38869 + dir="$dir$objdir"
38871 + if test -n "$relink_command"; then
38872 + # Determine the prefix the user has applied to our future dir.
38873 + inst_prefix_dir=`$echo "$destdir" | $SED "s%$libdir\$%%"`
38875 + # Don't allow the user to place us outside of our expected
38876 + # location b/c this prevents finding dependent libraries that
38877 + # are installed to the same prefix.
38878 + # At present, this check doesn't affect windows .dll's that
38879 + # are installed into $libdir/../bin (currently, that works fine)
38880 + # but it's something to keep an eye on.
38881 + if test "$inst_prefix_dir" = "$destdir"; then
38882 + $echo "$modename: error: cannot install \`$file' to a directory not ending in $libdir" 1>&2
38883 + exit $EXIT_FAILURE
38886 + if test -n "$inst_prefix_dir"; then
38887 + # Stick the inst_prefix_dir data into the link command.
38888 + relink_command=`$echo "$relink_command" | $SED "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%"`
38890 + relink_command=`$echo "$relink_command" | $SED "s%@inst_prefix_dir@%%"`
38893 + $echo "$modename: warning: relinking \`$file'" 1>&2
38894 + $show "$relink_command"
38895 + if $run eval "$relink_command"; then :
38897 + $echo "$modename: error: relink \`$file' with the above command before installing it" 1>&2
38898 + exit $EXIT_FAILURE
38902 + # See the names of the shared library.
38903 + set dummy $library_names
38904 + if test -n "$2"; then
38909 + srcname="$realname"
38910 + test -n "$relink_command" && srcname="$realname"T
38912 + # Install the shared library and build the symlinks.
38913 + $show "$install_prog $dir/$srcname $destdir/$realname"
38914 + $run eval "$install_prog $dir/$srcname $destdir/$realname" || exit $?
38915 + if test -n "$stripme" && test -n "$striplib"; then
38916 + $show "$striplib $destdir/$realname"
38917 + $run eval "$striplib $destdir/$realname" || exit $?
38920 + if test "$#" -gt 0; then
38921 + # Delete the old symlinks, and create new ones.
38922 + # Try `ln -sf' first, because the `ln' binary might depend on
38923 + # the symlink we replace! Solaris /bin/ln does not understand -f,
38924 + # so we also need to try rm && ln -s.
38927 + if test "$linkname" != "$realname"; then
38928 + $show "(cd $destdir && { $LN_S -f $realname $linkname || { $rm $linkname && $LN_S $realname $linkname; }; })"
38929 + $run eval "(cd $destdir && { $LN_S -f $realname $linkname || { $rm $linkname && $LN_S $realname $linkname; }; })"
38934 + # Do each command in the postinstall commands.
38935 + lib="$destdir/$realname"
38936 + cmds=$postinstall_cmds
38937 + save_ifs="$IFS"; IFS='~'
38938 + for cmd in $cmds; do
38940 + eval cmd=\"$cmd\"
38942 + $run eval "$cmd" || {
38945 + # Restore the uninstalled library and exit
38946 + if test "$mode" = relink; then
38947 + $run eval '(cd $output_objdir && $rm ${realname}T && $mv ${realname}U $realname)'
38956 + # Install the pseudo-library for information purposes.
38957 + name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
38958 + instname="$dir/$name"i
38959 + $show "$install_prog $instname $destdir/$name"
38960 + $run eval "$install_prog $instname $destdir/$name" || exit $?
38962 + # Maybe install the static library, too.
38963 + test -n "$old_library" && staticlibs="$staticlibs $dir/$old_library"
38967 + # Install (i.e. copy) a libtool object.
38969 + # Figure out destination file name, if it wasn't already specified.
38970 + if test -n "$destname"; then
38971 + destfile="$destdir/$destname"
38973 + destfile=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
38974 + destfile="$destdir/$destfile"
38977 + # Deduce the name of the destination old-style object file.
38978 + case $destfile in
38980 + staticdest=`$echo "X$destfile" | $Xsed -e "$lo2o"`
38983 + staticdest="$destfile"
38987 + $echo "$modename: cannot copy a libtool object to \`$destfile'" 1>&2
38988 + $echo "$help" 1>&2
38989 + exit $EXIT_FAILURE
38993 + # Install the libtool object if requested.
38994 + if test -n "$destfile"; then
38995 + $show "$install_prog $file $destfile"
38996 + $run eval "$install_prog $file $destfile" || exit $?
38999 + # Install the old object if enabled.
39000 + if test "$build_old_libs" = yes; then
39001 + # Deduce the name of the old-style object file.
39002 + staticobj=`$echo "X$file" | $Xsed -e "$lo2o"`
39004 + $show "$install_prog $staticobj $staticdest"
39005 + $run eval "$install_prog \$staticobj \$staticdest" || exit $?
39007 + exit $EXIT_SUCCESS
39011 + # Figure out destination file name, if it wasn't already specified.
39012 + if test -n "$destname"; then
39013 + destfile="$destdir/$destname"
39015 + destfile=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
39016 + destfile="$destdir/$destfile"
39019 + # If the file is missing, and there is a .exe on the end, strip it
39020 + # because it is most likely a libtool script we actually want to
39025 + if test ! -f "$file"; then
39026 + file=`$echo $file|${SED} 's,.exe$,,'`
39027 + stripped_ext=".exe"
39032 + # Do a test to see if this is really a libtool program.
39034 + *cygwin*|*mingw*)
39035 + wrapper=`$echo $file | ${SED} -e 's,.exe$,,'`
39041 + if (${SED} -e '4q' $wrapper | grep "^# Generated by .*$PACKAGE")>/dev/null 2>&1; then
39045 + # Note that it is not necessary on cygwin/mingw to append a dot to
39046 + # foo even if both foo and FILE.exe exist: automatic-append-.exe
39047 + # behavior happens only for exec(3), not for open(2)! Also, sourcing
39048 + # `FILE.' does not work on cygwin managed mounts.
39050 + # If there is no directory component, then add one.
39052 + */* | *\\*) . ${wrapper} ;;
39053 + *) . ./${wrapper} ;;
39056 + # Check the variables that should have been set.
39057 + if test -z "$notinst_deplibs"; then
39058 + $echo "$modename: invalid libtool wrapper script \`$wrapper'" 1>&2
39059 + exit $EXIT_FAILURE
39063 + for lib in $notinst_deplibs; do
39064 + # Check to see that each library is installed.
39066 + if test -f "$lib"; then
39067 + # If there is no directory component, then add one.
39069 + */* | *\\*) . $lib ;;
39073 + libfile="$libdir/"`$echo "X$lib" | $Xsed -e 's%^.*/%%g'` ### testsuite: skip nested quoting test
39074 + if test -n "$libdir" && test ! -f "$libfile"; then
39075 + $echo "$modename: warning: \`$lib' has not been installed in \`$libdir'" 1>&2
39081 + # Note that it is not necessary on cygwin/mingw to append a dot to
39082 + # foo even if both foo and FILE.exe exist: automatic-append-.exe
39083 + # behavior happens only for exec(3), not for open(2)! Also, sourcing
39084 + # `FILE.' does not work on cygwin managed mounts.
39086 + # If there is no directory component, then add one.
39088 + */* | *\\*) . ${wrapper} ;;
39089 + *) . ./${wrapper} ;;
39093 + if test "$fast_install" = no && test -n "$relink_command"; then
39094 + if test "$finalize" = yes && test -z "$run"; then
39095 + tmpdir=`func_mktempdir`
39096 + file=`$echo "X$file$stripped_ext" | $Xsed -e 's%^.*/%%'`
39097 + outputname="$tmpdir/$file"
39098 + # Replace the output file specification.
39099 + relink_command=`$echo "X$relink_command" | $Xsed -e 's%@OUTPUT@%'"$outputname"'%g'`
39101 + $show "$relink_command"
39102 + if $run eval "$relink_command"; then :
39104 + $echo "$modename: error: relink \`$file' with the above command before installing it" 1>&2
39108 + file="$outputname"
39110 + $echo "$modename: warning: cannot relink \`$file'" 1>&2
39113 + # Install the binary that we compiled earlier.
39114 + file=`$echo "X$file$stripped_ext" | $Xsed -e "s%\([^/]*\)$%$objdir/\1%"`
39118 + # remove .exe since cygwin /usr/bin/install will append another
39120 + case $install_prog,$host in
39121 + */usr/bin/install*,*cygwin*)
39122 + case $file:$destfile in
39127 + destfile=$destfile.exe
39130 + destfile=`$echo $destfile | ${SED} -e 's,.exe$,,'`
39135 + $show "$install_prog$stripme $file $destfile"
39136 + $run eval "$install_prog\$stripme \$file \$destfile" || exit $?
39137 + test -n "$outputname" && ${rm}r "$tmpdir"
39142 + for file in $staticlibs; do
39143 + name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
39145 + # Set up the ranlib parameters.
39146 + oldlib="$destdir/$name"
39148 + $show "$install_prog $file $oldlib"
39149 + $run eval "$install_prog \$file \$oldlib" || exit $?
39151 + if test -n "$stripme" && test -n "$old_striplib"; then
39152 + $show "$old_striplib $oldlib"
39153 + $run eval "$old_striplib $oldlib" || exit $?
39156 + # Do each command in the postinstall commands.
39157 + cmds=$old_postinstall_cmds
39158 + save_ifs="$IFS"; IFS='~'
39159 + for cmd in $cmds; do
39161 + eval cmd=\"$cmd\"
39163 + $run eval "$cmd" || exit $?
39168 + if test -n "$future_libdirs"; then
39169 + $echo "$modename: warning: remember to run \`$progname --finish$future_libdirs'" 1>&2
39172 + if test -n "$current_libdirs"; then
39173 + # Maybe just do a dry run.
39174 + test -n "$run" && current_libdirs=" -n$current_libdirs"
39175 + exec_cmd='$SHELL $progpath $preserve_args --finish$current_libdirs'
39177 + exit $EXIT_SUCCESS
39181 + # libtool finish mode
39183 + modename="$modename: finish"
39184 + libdirs="$nonopt"
39187 + if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then
39190 + libdirs="$libdirs $dir"
39193 + for libdir in $libdirs; do
39194 + if test -n "$finish_cmds"; then
39195 + # Do each command in the finish commands.
39196 + cmds=$finish_cmds
39197 + save_ifs="$IFS"; IFS='~'
39198 + for cmd in $cmds; do
39200 + eval cmd=\"$cmd\"
39202 + $run eval "$cmd" || admincmds="$admincmds
39207 + if test -n "$finish_eval"; then
39208 + # Do the single finish_eval.
39209 + eval cmds=\"$finish_eval\"
39210 + $run eval "$cmds" || admincmds="$admincmds
39216 + # Exit here if they wanted silent mode.
39217 + test "$show" = : && exit $EXIT_SUCCESS
39219 + $echo "X----------------------------------------------------------------------" | $Xsed
39220 + $echo "Libraries have been installed in:"
39221 + for libdir in $libdirs; do
39225 + $echo "If you ever happen to want to link against installed libraries"
39226 + $echo "in a given directory, LIBDIR, you must either use libtool, and"
39227 + $echo "specify the full pathname of the library, or use the \`-LLIBDIR'"
39228 + $echo "flag during linking and do at least one of the following:"
39229 + if test -n "$shlibpath_var"; then
39230 + $echo " - add LIBDIR to the \`$shlibpath_var' environment variable"
39231 + $echo " during execution"
39233 + if test -n "$runpath_var"; then
39234 + $echo " - add LIBDIR to the \`$runpath_var' environment variable"
39235 + $echo " during linking"
39237 + if test -n "$hardcode_libdir_flag_spec"; then
39239 + eval flag=\"$hardcode_libdir_flag_spec\"
39241 + $echo " - use the \`$flag' linker flag"
39243 + if test -n "$admincmds"; then
39244 + $echo " - have your system administrator run these commands:$admincmds"
39246 + if test -f /etc/ld.so.conf; then
39247 + $echo " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'"
39250 + $echo "See any operating system documentation about shared libraries for"
39251 + $echo "more information, such as the ld(1) and ld.so(8) manual pages."
39252 + $echo "X----------------------------------------------------------------------" | $Xsed
39253 + exit $EXIT_SUCCESS
39256 + # libtool execute mode
39258 + modename="$modename: execute"
39260 + # The first argument is the command name.
39262 + if test -z "$cmd"; then
39263 + $echo "$modename: you must specify a COMMAND" 1>&2
39265 + exit $EXIT_FAILURE
39268 + # Handle -dlopen flags immediately.
39269 + for file in $execute_dlfiles; do
39270 + if test ! -f "$file"; then
39271 + $echo "$modename: \`$file' is not a file" 1>&2
39272 + $echo "$help" 1>&2
39273 + exit $EXIT_FAILURE
39279 + # Check to see that this really is a libtool archive.
39280 + if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
39282 + $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
39283 + $echo "$help" 1>&2
39284 + exit $EXIT_FAILURE
39287 + # Read the libtool library.
39291 + # If there is no directory component, then add one.
39293 + */* | *\\*) . $file ;;
39297 + # Skip this library if it cannot be dlopened.
39298 + if test -z "$dlname"; then
39299 + # Warn if it was a shared library.
39300 + test -n "$library_names" && $echo "$modename: warning: \`$file' was not linked with \`-export-dynamic'"
39304 + dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
39305 + test "X$dir" = "X$file" && dir=.
39307 + if test -f "$dir/$objdir/$dlname"; then
39308 + dir="$dir/$objdir"
39310 + $echo "$modename: cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'" 1>&2
39311 + exit $EXIT_FAILURE
39316 + # Just add the directory containing the .lo file.
39317 + dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
39318 + test "X$dir" = "X$file" && dir=.
39322 + $echo "$modename: warning \`-dlopen' is ignored for non-libtool libraries and objects" 1>&2
39327 + # Get the absolute pathname.
39328 + absdir=`cd "$dir" && pwd`
39329 + test -n "$absdir" && dir="$absdir"
39331 + # Now add the directory to shlibpath_var.
39332 + if eval "test -z \"\$$shlibpath_var\""; then
39333 + eval "$shlibpath_var=\"\$dir\""
39335 + eval "$shlibpath_var=\"\$dir:\$$shlibpath_var\""
39339 + # This variable tells wrapper scripts just to set shlibpath_var
39340 + # rather than running their programs.
39341 + libtool_execute_magic="$magic"
39343 + # Check if any of the arguments is a wrapper script.
39350 + # Do a test to see if this is really a libtool program.
39351 + if (${SED} -e '4q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
39352 + # If there is no directory component, then add one.
39354 + */* | *\\*) . $file ;;
39358 + # Transform arg to wrapped name.
39359 + file="$progdir/$program"
39363 + # Quote arguments (to preserve shell metacharacters).
39364 + file=`$echo "X$file" | $Xsed -e "$sed_quote_subst"`
39365 + args="$args \"$file\""
39368 + if test -z "$run"; then
39369 + if test -n "$shlibpath_var"; then
39370 + # Export the shlibpath_var.
39371 + eval "export $shlibpath_var"
39374 + # Restore saved environment variables
39375 + if test "${save_LC_ALL+set}" = set; then
39376 + LC_ALL="$save_LC_ALL"; export LC_ALL
39378 + if test "${save_LANG+set}" = set; then
39379 + LANG="$save_LANG"; export LANG
39382 + # Now prepare to actually exec the command.
39383 + exec_cmd="\$cmd$args"
39385 + # Display what would be done.
39386 + if test -n "$shlibpath_var"; then
39387 + eval "\$echo \"\$shlibpath_var=\$$shlibpath_var\""
39388 + $echo "export $shlibpath_var"
39390 + $echo "$cmd$args"
39391 + exit $EXIT_SUCCESS
39395 + # libtool clean and uninstall mode
39396 + clean | uninstall)
39397 + modename="$modename: $mode"
39403 + # This variable tells wrapper scripts just to set variables rather
39404 + # than running their programs.
39405 + libtool_install_magic="$magic"
39410 + -f) rm="$rm $arg"; rmforce=yes ;;
39411 + -*) rm="$rm $arg" ;;
39412 + *) files="$files $arg" ;;
39416 + if test -z "$rm"; then
39417 + $echo "$modename: you must specify an RM program" 1>&2
39418 + $echo "$help" 1>&2
39419 + exit $EXIT_FAILURE
39424 + origobjdir="$objdir"
39425 + for file in $files; do
39426 + dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
39427 + if test "X$dir" = "X$file"; then
39429 + objdir="$origobjdir"
39431 + objdir="$dir/$origobjdir"
39433 + name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
39434 + test "$mode" = uninstall && objdir="$dir"
39436 + # Remember objdir for removal later, being careful to avoid duplicates
39437 + if test "$mode" = clean; then
39438 + case " $rmdirs " in
39439 + *" $objdir "*) ;;
39440 + *) rmdirs="$rmdirs $objdir" ;;
39444 + # Don't error if the file doesn't exist and rm -f was used.
39445 + if (test -L "$file") >/dev/null 2>&1 \
39446 + || (test -h "$file") >/dev/null 2>&1 \
39447 + || test -f "$file"; then
39449 + elif test -d "$file"; then
39452 + elif test "$rmforce" = yes; then
39460 + # Possibly a libtool archive, so verify it.
39461 + if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
39464 + # Delete the libtool libraries and symlinks.
39465 + for n in $library_names; do
39466 + rmfiles="$rmfiles $objdir/$n"
39468 + test -n "$old_library" && rmfiles="$rmfiles $objdir/$old_library"
39472 + case " $library_names " in
39473 + # " " in the beginning catches empty $dlname
39474 + *" $dlname "*) ;;
39475 + *) rmfiles="$rmfiles $objdir/$dlname" ;;
39477 + test -n "$libdir" && rmfiles="$rmfiles $objdir/$name $objdir/${name}i"
39480 + if test -n "$library_names"; then
39481 + # Do each command in the postuninstall commands.
39482 + cmds=$postuninstall_cmds
39483 + save_ifs="$IFS"; IFS='~'
39484 + for cmd in $cmds; do
39486 + eval cmd=\"$cmd\"
39489 + if test "$?" -ne 0 && test "$rmforce" != yes; then
39496 + if test -n "$old_library"; then
39497 + # Do each command in the old_postuninstall commands.
39498 + cmds=$old_postuninstall_cmds
39499 + save_ifs="$IFS"; IFS='~'
39500 + for cmd in $cmds; do
39502 + eval cmd=\"$cmd\"
39505 + if test "$?" -ne 0 && test "$rmforce" != yes; then
39511 + # FIXME: should reinstall the best remaining shared library.
39518 + # Possibly a libtool object, so verify it.
39519 + if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
39521 + # Read the .lo file
39524 + # Add PIC object to the list of files to remove.
39525 + if test -n "$pic_object" \
39526 + && test "$pic_object" != none; then
39527 + rmfiles="$rmfiles $dir/$pic_object"
39530 + # Add non-PIC object to the list of files to remove.
39531 + if test -n "$non_pic_object" \
39532 + && test "$non_pic_object" != none; then
39533 + rmfiles="$rmfiles $dir/$non_pic_object"
39539 + if test "$mode" = clean ; then
39543 + file=`$echo $file|${SED} 's,.exe$,,'`
39544 + noexename=`$echo $name|${SED} 's,.exe$,,'`
39545 + # $file with .exe has already been added to rmfiles,
39546 + # add $file without .exe
39547 + rmfiles="$rmfiles $file"
39550 + # Do a test to see if this is a libtool program.
39551 + if (${SED} -e '4q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
39553 + . $dir/$noexename
39555 + # note $name still contains .exe if it was in $file originally
39556 + # as does the version of $file that was added into $rmfiles
39557 + rmfiles="$rmfiles $objdir/$name $objdir/${name}S.${objext}"
39558 + if test "$fast_install" = yes && test -n "$relink_command"; then
39559 + rmfiles="$rmfiles $objdir/lt-$name"
39561 + if test "X$noexename" != "X$name" ; then
39562 + rmfiles="$rmfiles $objdir/lt-${noexename}.c"
39568 + $show "$rm $rmfiles"
39569 + $run $rm $rmfiles || exit_status=1
39571 + objdir="$origobjdir"
39573 + # Try to remove the ${objdir}s in the directories where we deleted files
39574 + for dir in $rmdirs; do
39575 + if test -d "$dir"; then
39576 + $show "rmdir $dir"
39577 + $run rmdir $dir >/dev/null 2>&1
39581 + exit $exit_status
39585 + $echo "$modename: you must specify a MODE" 1>&2
39586 + $echo "$generic_help" 1>&2
39587 + exit $EXIT_FAILURE
39591 + if test -z "$exec_cmd"; then
39592 + $echo "$modename: invalid operation mode \`$mode'" 1>&2
39593 + $echo "$generic_help" 1>&2
39594 + exit $EXIT_FAILURE
39596 +fi # test -z "$show_help"
39598 +if test -n "$exec_cmd"; then
39599 + eval exec $exec_cmd
39600 + exit $EXIT_FAILURE
39603 +# We need to display help for each of the modes.
39606 +"Usage: $modename [OPTION]... [MODE-ARG]...
39608 +Provide generalized library-building support services.
39610 + --config show all configuration variables
39611 + --debug enable verbose shell tracing
39612 +-n, --dry-run display commands without modifying any files
39613 + --features display basic configuration information and exit
39614 + --finish same as \`--mode=finish'
39615 + --help display this help message and exit
39616 + --mode=MODE use operation mode MODE [default=inferred from MODE-ARGS]
39617 + --quiet same as \`--silent'
39618 + --silent don't print informational messages
39619 + --tag=TAG use configuration variables from tag TAG
39620 + --version print version information
39622 +MODE must be one of the following:
39624 + clean remove files from the build directory
39625 + compile compile a source file into a libtool object
39626 + execute automatically set library path, then run a program
39627 + finish complete the installation of libtool libraries
39628 + install install libraries or executables
39629 + link create a library or an executable
39630 + uninstall remove libraries from an installed directory
39632 +MODE-ARGS vary depending on the MODE. Try \`$modename --help --mode=MODE' for
39633 +a more detailed description of MODE.
39635 +Report bugs to <bug-libtool@gnu.org>."
39636 + exit $EXIT_SUCCESS
39641 +"Usage: $modename [OPTION]... --mode=clean RM [RM-OPTION]... FILE...
39643 +Remove files from the build directory.
39645 +RM is the name of the program to use to delete files associated with each FILE
39646 +(typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
39649 +If FILE is a libtool library, object or program, all the files associated
39650 +with it are deleted. Otherwise, only FILE itself is deleted using RM."
39655 +"Usage: $modename [OPTION]... --mode=compile COMPILE-COMMAND... SOURCEFILE
39657 +Compile a source file into a libtool library object.
39659 +This mode accepts the following additional options:
39661 + -o OUTPUT-FILE set the output file name to OUTPUT-FILE
39662 + -prefer-pic try to building PIC objects only
39663 + -prefer-non-pic try to building non-PIC objects only
39664 + -static always build a \`.o' file suitable for static linking
39666 +COMPILE-COMMAND is a command to be used in creating a \`standard' object file
39667 +from the given SOURCEFILE.
39669 +The output file name is determined by removing the directory component from
39670 +SOURCEFILE, then substituting the C source code suffix \`.c' with the
39671 +library object suffix, \`.lo'."
39676 +"Usage: $modename [OPTION]... --mode=execute COMMAND [ARGS]...
39678 +Automatically set library path, then run a program.
39680 +This mode accepts the following additional options:
39682 + -dlopen FILE add the directory containing FILE to the library path
39684 +This mode sets the library path environment variable according to \`-dlopen'
39687 +If any of the ARGS are libtool executable wrappers, then they are translated
39688 +into their corresponding uninstalled binary, and any of their required library
39689 +directories are added to the library path.
39691 +Then, COMMAND is executed, with ARGS as arguments."
39696 +"Usage: $modename [OPTION]... --mode=finish [LIBDIR]...
39698 +Complete the installation of libtool libraries.
39700 +Each LIBDIR is a directory that contains libtool libraries.
39702 +The commands that this mode executes may require superuser privileges. Use
39703 +the \`--dry-run' option if you just want to see what would be executed."
39708 +"Usage: $modename [OPTION]... --mode=install INSTALL-COMMAND...
39710 +Install executables or libraries.
39712 +INSTALL-COMMAND is the installation command. The first component should be
39713 +either the \`install' or \`cp' program.
39715 +The rest of the components are interpreted as arguments to that command (only
39716 +BSD-compatible install options are recognized)."
39721 +"Usage: $modename [OPTION]... --mode=link LINK-COMMAND...
39723 +Link object files or libraries together to form another library, or to
39724 +create an executable program.
39726 +LINK-COMMAND is a command using the C compiler that you would use to create
39727 +a program from several object files.
39729 +The following components of LINK-COMMAND are treated specially:
39731 + -all-static do not do any dynamic linking at all
39732 + -avoid-version do not add a version suffix if possible
39733 + -dlopen FILE \`-dlpreopen' FILE if it cannot be dlopened at runtime
39734 + -dlpreopen FILE link in FILE and add its symbols to lt_preloaded_symbols
39735 + -export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3)
39736 + -export-symbols SYMFILE
39737 + try to export only the symbols listed in SYMFILE
39738 + -export-symbols-regex REGEX
39739 + try to export only the symbols matching REGEX
39740 + -LLIBDIR search LIBDIR for required installed libraries
39741 + -lNAME OUTPUT-FILE requires the installed library libNAME
39742 + -module build a library that can dlopened
39743 + -no-fast-install disable the fast-install mode
39744 + -no-install link a not-installable executable
39745 + -no-undefined declare that a library does not refer to external symbols
39746 + -o OUTPUT-FILE create OUTPUT-FILE from the specified objects
39747 + -objectlist FILE Use a list of object files found in FILE to specify objects
39748 + -precious-files-regex REGEX
39749 + don't remove output files matching REGEX
39750 + -release RELEASE specify package release information
39751 + -rpath LIBDIR the created library will eventually be installed in LIBDIR
39752 + -R[ ]LIBDIR add LIBDIR to the runtime path of programs and libraries
39753 + -static do not do any dynamic linking of libtool libraries
39754 + -version-info CURRENT[:REVISION[:AGE]]
39755 + specify library version info [each variable defaults to 0]
39757 +All other options (arguments beginning with \`-') are ignored.
39759 +Every other argument is treated as a filename. Files ending in \`.la' are
39760 +treated as uninstalled libtool libraries, other files are standard or library
39763 +If the OUTPUT-FILE ends in \`.la', then a libtool library is created,
39764 +only library objects (\`.lo' files) may be specified, and \`-rpath' is
39765 +required, except when creating a convenience library.
39767 +If OUTPUT-FILE ends in \`.a' or \`.lib', then a standard library is created
39768 +using \`ar' and \`ranlib', or on Windows using \`lib'.
39770 +If OUTPUT-FILE ends in \`.lo' or \`.${objext}', then a reloadable object file
39771 +is created, otherwise an executable program is created."
39776 +"Usage: $modename [OPTION]... --mode=uninstall RM [RM-OPTION]... FILE...
39778 +Remove libraries from an installation directory.
39780 +RM is the name of the program to use to delete files associated with each FILE
39781 +(typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
39784 +If FILE is a libtool library, all the files associated with it are deleted.
39785 +Otherwise, only FILE itself is deleted using RM."
39789 + $echo "$modename: invalid operation mode \`$mode'" 1>&2
39790 + $echo "$help" 1>&2
39791 + exit $EXIT_FAILURE
39796 +$echo "Try \`$modename --help' for more information about other modes."
39800 +# The TAGs below are defined such that we never get into a situation
39801 +# in which we disable both kinds of libraries. Given conflicting
39802 +# choices, we go for a static library, that is the most portable,
39803 +# since we can't tell whether shared libraries were disabled because
39804 +# the user asked for that or because the platform doesn't support
39805 +# them. This is particularly important on AIX, because we don't
39806 +# support having both static and shared libraries enabled at the same
39807 +# time on that platform, so we default to a shared-only configuration.
39808 +# If a disable-shared tag is given, we'll fallback to a static-only
39809 +# configuration. But we'll never go from static-only to shared-only.
39811 +# ### BEGIN LIBTOOL TAG CONFIG: disable-shared
39812 +disable_libs=shared
39813 +# ### END LIBTOOL TAG CONFIG: disable-shared
39815 +# ### BEGIN LIBTOOL TAG CONFIG: disable-static
39816 +disable_libs=static
39817 +# ### END LIBTOOL TAG CONFIG: disable-static
39819 +# Local Variables:
39820 +# mode:shell-script
39821 +# sh-indentation:2
39823 diff -urN lua-5.1.4/Makefile lua-5.1.4-autotoolize/Makefile
39824 --- lua-5.1.4/Makefile 2008-08-12 02:40:48.000000000 +0200
39825 +++ lua-5.1.4-autotoolize/Makefile 2008-09-03 13:24:40.000000000 +0200
39827 -# makefile for installing Lua
39828 -# see INSTALL for installation instructions
39829 -# see src/Makefile and src/luaconf.h for further customization
39831 -# == CHANGE THE SETTINGS BELOW TO SUIT YOUR ENVIRONMENT =======================
39833 -# Your platform. See PLATS for possible values.
39836 -# Where to install. The installation starts in the src and doc directories,
39837 -# so take care if INSTALL_TOP is not an absolute path.
39838 -INSTALL_TOP= /usr/local
39839 -INSTALL_BIN= $(INSTALL_TOP)/bin
39840 -INSTALL_INC= $(INSTALL_TOP)/include
39841 -INSTALL_LIB= $(INSTALL_TOP)/lib
39842 -INSTALL_MAN= $(INSTALL_TOP)/man/man1
39844 -# You probably want to make INSTALL_LMOD and INSTALL_CMOD consistent with
39845 -# LUA_ROOT, LUA_LDIR, and LUA_CDIR in luaconf.h (and also with etc/lua.pc).
39846 -INSTALL_LMOD= $(INSTALL_TOP)/share/lua/$V
39847 -INSTALL_CMOD= $(INSTALL_TOP)/lib/lua/$V
39849 -# How to install. If your install program does not support "-p", then you
39850 -# may have to run ranlib on the installed liblua.a (do "make ranlib").
39851 -INSTALL= install -p
39852 -INSTALL_EXEC= $(INSTALL) -m 0755
39853 -INSTALL_DATA= $(INSTALL) -m 0644
39855 -# If you don't have install you can use cp instead.
39857 -# INSTALL_EXEC= $(INSTALL)
39858 -# INSTALL_DATA= $(INSTALL)
39864 -# == END OF USER SETTINGS. NO NEED TO CHANGE ANYTHING BELOW THIS LINE =========
39866 -# Convenience platforms targets.
39867 -PLATS= aix ansi bsd freebsd generic linux macosx mingw posix solaris
39869 -# What to install.
39871 -TO_INC= lua.h luaconf.h lualib.h lauxlib.h ../etc/lua.hpp
39873 -TO_MAN= lua.1 luac.1
39875 -# Lua version and release.
39882 - cd src && $(MAKE) $@
39885 - src/lua test/hello.lua
39888 - cd src && $(MKDIR) $(INSTALL_BIN) $(INSTALL_INC) $(INSTALL_LIB) $(INSTALL_MAN) $(INSTALL_LMOD) $(INSTALL_CMOD)
39889 - cd src && $(INSTALL_EXEC) $(TO_BIN) $(INSTALL_BIN)
39890 - cd src && $(INSTALL_DATA) $(TO_INC) $(INSTALL_INC)
39891 - cd src && $(INSTALL_DATA) $(TO_LIB) $(INSTALL_LIB)
39892 - cd doc && $(INSTALL_DATA) $(TO_MAN) $(INSTALL_MAN)
39895 - cd src && cd $(INSTALL_LIB) && $(RANLIB) $(TO_LIB)
39898 - $(MAKE) install INSTALL_TOP=..
39901 - @echo "Please do"
39902 - @echo " make PLATFORM"
39903 - @echo "where PLATFORM is one of these:"
39904 - @echo " $(PLATS)"
39905 - @echo "See INSTALL for complete instructions."
39907 -# make may get confused with test/ and INSTALL in a case-insensitive OS
39910 -# echo config parameters
39913 - @echo "These are the parameters currently set in src/Makefile to build Lua $R:"
39915 - @cd src && $(MAKE) -s echo
39917 - @echo "These are the parameters currently set in Makefile to install Lua $R:"
39919 - @echo "PLAT = $(PLAT)"
39920 - @echo "INSTALL_TOP = $(INSTALL_TOP)"
39921 - @echo "INSTALL_BIN = $(INSTALL_BIN)"
39922 - @echo "INSTALL_INC = $(INSTALL_INC)"
39923 - @echo "INSTALL_LIB = $(INSTALL_LIB)"
39924 - @echo "INSTALL_MAN = $(INSTALL_MAN)"
39925 - @echo "INSTALL_LMOD = $(INSTALL_LMOD)"
39926 - @echo "INSTALL_CMOD = $(INSTALL_CMOD)"
39927 - @echo "INSTALL_EXEC = $(INSTALL_EXEC)"
39928 - @echo "INSTALL_DATA = $(INSTALL_DATA)"
39930 - @echo "See also src/luaconf.h ."
39933 -# echo private config parameters
39937 - @echo "TO_BIN = $(TO_BIN)"
39938 - @echo "TO_INC = $(TO_INC)"
39939 - @echo "TO_LIB = $(TO_LIB)"
39940 - @echo "TO_MAN = $(TO_MAN)"
39942 -# echo config parameters as Lua code
39943 -# uncomment the last sed expression if you want nil instead of empty strings
39945 - @echo "-- installation parameters for Lua $R"
39946 - @echo "VERSION = '$V'"
39947 - @echo "RELEASE = '$R'"
39948 - @$(MAKE) echo | grep = | sed -e 's/= /= "/' -e 's/$$/"/' #-e 's/""/nil/'
39951 -# list targets that do not create files (but not all makes understand .PHONY)
39952 -.PHONY: all $(PLATS) clean test install local none dummy echo pecho lecho
39954 -# (end of Makefile)
39955 diff -urN lua-5.1.4/Makefile.am lua-5.1.4-autotoolize/Makefile.am
39956 --- lua-5.1.4/Makefile.am 1970-01-01 01:00:00.000000000 +0100
39957 +++ lua-5.1.4-autotoolize/Makefile.am 2008-09-03 13:18:37.000000000 +0200
39959 +SUBDIRS = src doc etc test
39961 +EXTRA_DIST = autogen.sh COPYRIGHT HISTORY INSTALL MANIFEST README
39962 diff -urN lua-5.1.4/Makefile.in lua-5.1.4-autotoolize/Makefile.in
39963 --- lua-5.1.4/Makefile.in 1970-01-01 01:00:00.000000000 +0100
39964 +++ lua-5.1.4-autotoolize/Makefile.in 2008-09-03 13:18:37.000000000 +0200
39966 +# Makefile.in generated by automake 1.9.6 from Makefile.am.
39967 +# @configure_input@
39969 +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
39970 +# 2003, 2004, 2005 Free Software Foundation, Inc.
39971 +# This Makefile.in is free software; the Free Software Foundation
39972 +# gives unlimited permission to copy and/or distribute it,
39973 +# with or without modifications, as long as this notice is preserved.
39975 +# This program is distributed in the hope that it will be useful,
39976 +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
39977 +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
39978 +# PARTICULAR PURPOSE.
39982 +top_srcdir = @top_srcdir@
39984 +pkgdatadir = $(datadir)/@PACKAGE@
39985 +pkglibdir = $(libdir)/@PACKAGE@
39986 +pkgincludedir = $(includedir)/@PACKAGE@
39988 +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
39989 +INSTALL = @INSTALL@
39990 +install_sh_DATA = $(install_sh) -c -m 644
39991 +install_sh_PROGRAM = $(install_sh) -c
39992 +install_sh_SCRIPT = $(install_sh) -c
39993 +INSTALL_HEADER = $(INSTALL_DATA)
39994 +transform = $(program_transform_name)
39995 +NORMAL_INSTALL = :
39998 +NORMAL_UNINSTALL = :
40000 +POST_UNINSTALL = :
40001 +build_triplet = @build@
40002 +host_triplet = @host@
40003 +DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \
40004 + $(srcdir)/Makefile.in $(srcdir)/config.h.in \
40005 + $(top_srcdir)/configure INSTALL config.guess config.sub \
40006 + depcomp install-sh ltmain.sh missing
40008 +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
40009 +am__aclocal_m4_deps = $(top_srcdir)/configure.ac
40010 +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
40012 +am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
40013 + configure.lineno configure.status.lineno
40014 +mkinstalldirs = $(install_sh) -d
40015 +CONFIG_HEADER = config.h
40016 +CONFIG_CLEAN_FILES =
40019 +RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
40020 + html-recursive info-recursive install-data-recursive \
40021 + install-exec-recursive install-info-recursive \
40022 + install-recursive installcheck-recursive installdirs-recursive \
40023 + pdf-recursive ps-recursive uninstall-info-recursive \
40024 + uninstall-recursive
40027 +DIST_SUBDIRS = $(SUBDIRS)
40028 +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
40029 +distdir = $(PACKAGE)-$(VERSION)
40030 +top_distdir = $(distdir)
40031 +am__remove_distdir = \
40032 + { test ! -d $(distdir) \
40033 + || { find $(distdir) -type d ! -perm -200 -exec chmod u+w {} ';' \
40034 + && rm -fr $(distdir); }; }
40035 +DIST_ARCHIVES = $(distdir).tar.gz
40037 +distuninstallcheck_listfiles = find . -type f -print
40038 +distcleancheck_listfiles = find . -type f -print
40039 +ACLOCAL = @ACLOCAL@
40040 +AMDEP_FALSE = @AMDEP_FALSE@
40041 +AMDEP_TRUE = @AMDEP_TRUE@
40044 +AUTOCONF = @AUTOCONF@
40045 +AUTOHEADER = @AUTOHEADER@
40046 +AUTOMAKE = @AUTOMAKE@
40049 +CCDEPMODE = @CCDEPMODE@
40052 +CPPFLAGS = @CPPFLAGS@
40055 +CXXDEPMODE = @CXXDEPMODE@
40056 +CXXFLAGS = @CXXFLAGS@
40057 +CYGPATH_W = @CYGPATH_W@
40068 +INSTALL_DATA = @INSTALL_DATA@
40069 +INSTALL_PROGRAM = @INSTALL_PROGRAM@
40070 +INSTALL_SCRIPT = @INSTALL_SCRIPT@
40071 +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
40072 +LDFLAGS = @LDFLAGS@
40073 +LIBOBJS = @LIBOBJS@
40075 +LIBTOOL = @LIBTOOL@
40077 +LTLIBOBJS = @LTLIBOBJS@
40078 +LUA_BUILD_AS_DLL_DEFS = @LUA_BUILD_AS_DLL_DEFS@
40079 +LUA_DL_DEFS = @LUA_DL_DEFS@
40080 +LUA_LIBS = @LUA_LIBS@
40081 +MAKEINFO = @MAKEINFO@
40083 +PACKAGE = @PACKAGE@
40084 +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
40085 +PACKAGE_NAME = @PACKAGE_NAME@
40086 +PACKAGE_STRING = @PACKAGE_STRING@
40087 +PACKAGE_TARNAME = @PACKAGE_TARNAME@
40088 +PACKAGE_VERSION = @PACKAGE_VERSION@
40089 +PATH_SEPARATOR = @PATH_SEPARATOR@
40090 +POSIX_DEFS = @POSIX_DEFS@
40092 +READLINE_DEFS = @READLINE_DEFS@
40093 +SET_MAKE = @SET_MAKE@
40096 +VERSION = @VERSION@
40097 +ac_ct_AR = @ac_ct_AR@
40098 +ac_ct_CC = @ac_ct_CC@
40099 +ac_ct_CXX = @ac_ct_CXX@
40100 +ac_ct_F77 = @ac_ct_F77@
40101 +ac_ct_RANLIB = @ac_ct_RANLIB@
40102 +ac_ct_STRIP = @ac_ct_STRIP@
40103 +am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
40104 +am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
40105 +am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
40106 +am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
40107 +am__include = @am__include@
40108 +am__leading_dot = @am__leading_dot@
40109 +am__quote = @am__quote@
40110 +am__tar = @am__tar@
40111 +am__untar = @am__untar@
40114 +build_alias = @build_alias@
40115 +build_cpu = @build_cpu@
40116 +build_os = @build_os@
40117 +build_vendor = @build_vendor@
40118 +datadir = @datadir@
40119 +exec_prefix = @exec_prefix@
40121 +host_alias = @host_alias@
40122 +host_cpu = @host_cpu@
40123 +host_os = @host_os@
40124 +host_vendor = @host_vendor@
40125 +includedir = @includedir@
40126 +infodir = @infodir@
40127 +install_sh = @install_sh@
40129 +libexecdir = @libexecdir@
40130 +localstatedir = @localstatedir@
40132 +mkdir_p = @mkdir_p@
40133 +oldincludedir = @oldincludedir@
40135 +program_transform_name = @program_transform_name@
40136 +sbindir = @sbindir@
40137 +sharedstatedir = @sharedstatedir@
40138 +sysconfdir = @sysconfdir@
40139 +target_alias = @target_alias@
40140 +SUBDIRS = src doc etc test
40141 +EXTRA_DIST = autogen.sh COPYRIGHT HISTORY INSTALL MANIFEST README
40143 + $(MAKE) $(AM_MAKEFLAGS) all-recursive
40148 +$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
40149 + @for dep in $?; do \
40150 + case '$(am__configure_deps)' in \
40152 + echo ' cd $(srcdir) && $(AUTOMAKE) --foreign '; \
40153 + cd $(srcdir) && $(AUTOMAKE) --foreign \
40158 + echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile'; \
40159 + cd $(top_srcdir) && \
40160 + $(AUTOMAKE) --foreign Makefile
40161 +.PRECIOUS: Makefile
40162 +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
40164 + *config.status*) \
40165 + echo ' $(SHELL) ./config.status'; \
40166 + $(SHELL) ./config.status;; \
40168 + echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \
40169 + cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \
40172 +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
40173 + $(SHELL) ./config.status --recheck
40175 +$(top_srcdir)/configure: $(am__configure_deps)
40176 + cd $(srcdir) && $(AUTOCONF)
40177 +$(ACLOCAL_M4): $(am__aclocal_m4_deps)
40178 + cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
40180 +config.h: stamp-h1
40181 + @if test ! -f $@; then \
40182 + rm -f stamp-h1; \
40183 + $(MAKE) stamp-h1; \
40186 +stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status
40188 + cd $(top_builddir) && $(SHELL) ./config.status config.h
40189 +$(srcdir)/config.h.in: $(am__configure_deps)
40190 + cd $(top_srcdir) && $(AUTOHEADER)
40195 + -rm -f config.h stamp-h1
40197 +mostlyclean-libtool:
40201 + -rm -rf .libs _libs
40203 +distclean-libtool:
40205 +uninstall-info-am:
40207 +# This directory's subdirectories are mostly independent; you can cd
40208 +# into them and run `make' without going through this Makefile.
40209 +# To change the values of `make' variables: instead of editing Makefiles,
40210 +# (1) if the variable is set in `config.status', edit `config.status'
40211 +# (which will cause the Makefiles to be regenerated when you run `make');
40212 +# (2) otherwise, pass the desired values on the `make' command line.
40213 +$(RECURSIVE_TARGETS):
40214 + @failcom='exit 1'; \
40215 + for f in x $$MAKEFLAGS; do \
40217 + *=* | --[!k]*);; \
40218 + *k*) failcom='fail=yes';; \
40222 + target=`echo $@ | sed s/-recursive//`; \
40223 + list='$(SUBDIRS)'; for subdir in $$list; do \
40224 + echo "Making $$target in $$subdir"; \
40225 + if test "$$subdir" = "."; then \
40227 + local_target="$$target-am"; \
40229 + local_target="$$target"; \
40231 + (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
40232 + || eval $$failcom; \
40234 + if test "$$dot_seen" = "no"; then \
40235 + $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
40236 + fi; test -z "$$fail"
40238 +mostlyclean-recursive clean-recursive distclean-recursive \
40239 +maintainer-clean-recursive:
40240 + @failcom='exit 1'; \
40241 + for f in x $$MAKEFLAGS; do \
40243 + *=* | --[!k]*);; \
40244 + *k*) failcom='fail=yes';; \
40249 + distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
40250 + *) list='$(SUBDIRS)' ;; \
40252 + rev=''; for subdir in $$list; do \
40253 + if test "$$subdir" = "."; then :; else \
40254 + rev="$$subdir $$rev"; \
40258 + target=`echo $@ | sed s/-recursive//`; \
40259 + for subdir in $$rev; do \
40260 + echo "Making $$target in $$subdir"; \
40261 + if test "$$subdir" = "."; then \
40262 + local_target="$$target-am"; \
40264 + local_target="$$target"; \
40266 + (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
40267 + || eval $$failcom; \
40268 + done && test -z "$$fail"
40270 + list='$(SUBDIRS)'; for subdir in $$list; do \
40271 + test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
40274 + list='$(SUBDIRS)'; for subdir in $$list; do \
40275 + test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
40278 +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
40279 + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
40280 + unique=`for i in $$list; do \
40281 + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
40283 + $(AWK) ' { files[$$0] = 1; } \
40284 + END { for (i in files) print i; }'`; \
40285 + mkid -fID $$unique
40288 +TAGS: tags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
40289 + $(TAGS_FILES) $(LISP)
40292 + if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
40293 + include_option=--etags-include; \
40296 + include_option=--include; \
40299 + list='$(SUBDIRS)'; for subdir in $$list; do \
40300 + if test "$$subdir" = .; then :; else \
40301 + test ! -f $$subdir/TAGS || \
40302 + tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \
40305 + list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
40306 + unique=`for i in $$list; do \
40307 + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
40309 + $(AWK) ' { files[$$0] = 1; } \
40310 + END { for (i in files) print i; }'`; \
40311 + if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
40312 + test -n "$$unique" || unique=$$empty_fix; \
40313 + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
40314 + $$tags $$unique; \
40317 +CTAGS: ctags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
40318 + $(TAGS_FILES) $(LISP)
40321 + list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
40322 + unique=`for i in $$list; do \
40323 + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
40325 + $(AWK) ' { files[$$0] = 1; } \
40326 + END { for (i in files) print i; }'`; \
40327 + test -z "$(CTAGS_ARGS)$$tags$$unique" \
40328 + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
40332 + here=`$(am__cd) $(top_builddir) && pwd` \
40333 + && cd $(top_srcdir) \
40334 + && gtags -i $(GTAGS_ARGS) $$here
40337 + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
40339 +distdir: $(DISTFILES)
40340 + $(am__remove_distdir)
40342 + $(mkdir_p) $(distdir)/etc $(distdir)/src
40343 + @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
40344 + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
40345 + list='$(DISTFILES)'; for file in $$list; do \
40347 + $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
40348 + $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
40350 + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
40351 + dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
40352 + if test "$$dir" != "$$file" && test "$$dir" != "."; then \
40354 + $(mkdir_p) "$(distdir)$$dir"; \
40358 + if test -d $$d/$$file; then \
40359 + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
40360 + cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
40362 + cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
40364 + test -f $(distdir)/$$file \
40365 + || cp -p $$d/$$file $(distdir)/$$file \
40369 + list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
40370 + if test "$$subdir" = .; then :; else \
40371 + test -d "$(distdir)/$$subdir" \
40372 + || $(mkdir_p) "$(distdir)/$$subdir" \
40374 + distdir=`$(am__cd) $(distdir) && pwd`; \
40375 + top_distdir=`$(am__cd) $(top_distdir) && pwd`; \
40376 + (cd $$subdir && \
40377 + $(MAKE) $(AM_MAKEFLAGS) \
40378 + top_distdir="$$top_distdir" \
40379 + distdir="$$distdir/$$subdir" \
40384 + -find $(distdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \
40385 + ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
40386 + ! -type d ! -perm -400 -exec chmod a+r {} \; -o \
40387 + ! -type d ! -perm -444 -exec $(SHELL) $(install_sh) -c -m a+r {} {} \; \
40388 + || chmod -R a+r $(distdir)
40389 +dist-gzip: distdir
40390 + tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
40391 + $(am__remove_distdir)
40393 +dist-bzip2: distdir
40394 + tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2
40395 + $(am__remove_distdir)
40397 +dist-tarZ: distdir
40398 + tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z
40399 + $(am__remove_distdir)
40401 +dist-shar: distdir
40402 + shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz
40403 + $(am__remove_distdir)
40406 + -rm -f $(distdir).zip
40407 + zip -rq $(distdir).zip $(distdir)
40408 + $(am__remove_distdir)
40410 +dist dist-all: distdir
40411 + tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
40412 + $(am__remove_distdir)
40414 +# This target untars the dist file and tries a VPATH configuration. Then
40415 +# it guarantees that the distribution is self-contained by making another
40418 + case '$(DIST_ARCHIVES)' in \
40420 + GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(am__untar) ;;\
40422 + bunzip2 -c $(distdir).tar.bz2 | $(am__untar) ;;\
40424 + uncompress -c $(distdir).tar.Z | $(am__untar) ;;\
40426 + GZIP=$(GZIP_ENV) gunzip -c $(distdir).shar.gz | unshar ;;\
40428 + unzip $(distdir).zip ;;\
40430 + chmod -R a-w $(distdir); chmod a+w $(distdir)
40431 + mkdir $(distdir)/_build
40432 + mkdir $(distdir)/_inst
40433 + chmod a-w $(distdir)
40434 + dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \
40435 + && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \
40436 + && cd $(distdir)/_build \
40437 + && ../configure --srcdir=.. --prefix="$$dc_install_base" \
40438 + $(DISTCHECK_CONFIGURE_FLAGS) \
40439 + && $(MAKE) $(AM_MAKEFLAGS) \
40440 + && $(MAKE) $(AM_MAKEFLAGS) dvi \
40441 + && $(MAKE) $(AM_MAKEFLAGS) check \
40442 + && $(MAKE) $(AM_MAKEFLAGS) install \
40443 + && $(MAKE) $(AM_MAKEFLAGS) installcheck \
40444 + && $(MAKE) $(AM_MAKEFLAGS) uninstall \
40445 + && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \
40446 + distuninstallcheck \
40447 + && chmod -R a-w "$$dc_install_base" \
40449 + (cd ../.. && umask 077 && mkdir "$$dc_destdir") \
40450 + && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \
40451 + && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \
40452 + && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \
40453 + distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \
40454 + } || { rm -rf "$$dc_destdir"; exit 1; }) \
40455 + && rm -rf "$$dc_destdir" \
40456 + && $(MAKE) $(AM_MAKEFLAGS) dist \
40457 + && rm -rf $(DIST_ARCHIVES) \
40458 + && $(MAKE) $(AM_MAKEFLAGS) distcleancheck
40459 + $(am__remove_distdir)
40460 + @(echo "$(distdir) archives ready for distribution: "; \
40461 + list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \
40462 + sed -e '1{h;s/./=/g;p;x;}' -e '$${p;x;}'
40463 +distuninstallcheck:
40464 + @cd $(distuninstallcheck_dir) \
40465 + && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \
40466 + || { echo "ERROR: files left after uninstall:" ; \
40467 + if test -n "$(DESTDIR)"; then \
40468 + echo " (check DESTDIR support)"; \
40470 + $(distuninstallcheck_listfiles) ; \
40472 +distcleancheck: distclean
40473 + @if test '$(srcdir)' = . ; then \
40474 + echo "ERROR: distcleancheck can only run from a VPATH build" ; \
40477 + @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \
40478 + || { echo "ERROR: files left in build directory after distclean:" ; \
40479 + $(distcleancheck_listfiles) ; \
40482 +check: check-recursive
40483 +all-am: Makefile config.h
40484 +installdirs: installdirs-recursive
40486 +install: install-recursive
40487 +install-exec: install-exec-recursive
40488 +install-data: install-data-recursive
40489 +uninstall: uninstall-recursive
40491 +install-am: all-am
40492 + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
40494 +installcheck: installcheck-recursive
40496 + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
40497 + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
40498 + `test -z '$(STRIP)' || \
40499 + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
40500 +mostlyclean-generic:
40504 +distclean-generic:
40505 + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
40507 +maintainer-clean-generic:
40508 + @echo "This command is intended for maintainers to use"
40509 + @echo "it deletes files that may require special tools to rebuild."
40510 +clean: clean-recursive
40512 +clean-am: clean-generic clean-libtool mostlyclean-am
40514 +distclean: distclean-recursive
40515 + -rm -f $(am__CONFIG_DISTCLEAN_FILES)
40517 +distclean-am: clean-am distclean-generic distclean-hdr \
40518 + distclean-libtool distclean-tags
40520 +dvi: dvi-recursive
40524 +html: html-recursive
40526 +info: info-recursive
40534 +install-info: install-info-recursive
40540 +maintainer-clean: maintainer-clean-recursive
40541 + -rm -f $(am__CONFIG_DISTCLEAN_FILES)
40542 + -rm -rf $(top_srcdir)/autom4te.cache
40544 +maintainer-clean-am: distclean-am maintainer-clean-generic
40546 +mostlyclean: mostlyclean-recursive
40548 +mostlyclean-am: mostlyclean-generic mostlyclean-libtool
40550 +pdf: pdf-recursive
40558 +uninstall-am: uninstall-info-am
40560 +uninstall-info: uninstall-info-recursive
40562 +.PHONY: $(RECURSIVE_TARGETS) CTAGS GTAGS all all-am am--refresh check \
40563 + check-am clean clean-generic clean-libtool clean-recursive \
40564 + ctags ctags-recursive dist dist-all dist-bzip2 dist-gzip \
40565 + dist-shar dist-tarZ dist-zip distcheck distclean \
40566 + distclean-generic distclean-hdr distclean-libtool \
40567 + distclean-recursive distclean-tags distcleancheck distdir \
40568 + distuninstallcheck dvi dvi-am html html-am info info-am \
40569 + install install-am install-data install-data-am install-exec \
40570 + install-exec-am install-info install-info-am install-man \
40571 + install-strip installcheck installcheck-am installdirs \
40572 + installdirs-am maintainer-clean maintainer-clean-generic \
40573 + maintainer-clean-recursive mostlyclean mostlyclean-generic \
40574 + mostlyclean-libtool mostlyclean-recursive pdf pdf-am ps ps-am \
40575 + tags tags-recursive uninstall uninstall-am uninstall-info-am
40577 +# Tell versions [3.59,3.63) of GNU make to not export all variables.
40578 +# Otherwise a system limit (for SysV at least) may be exceeded.
40580 diff -urN lua-5.1.4/missing lua-5.1.4-autotoolize/missing
40581 --- lua-5.1.4/missing 1970-01-01 01:00:00.000000000 +0100
40582 +++ lua-5.1.4-autotoolize/missing 2008-09-03 13:18:32.000000000 +0200
40585 +# Common stub for a few missing GNU programs while installing.
40587 +scriptversion=2005-06-08.21
40589 +# Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005
40590 +# Free Software Foundation, Inc.
40591 +# Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
40593 +# This program is free software; you can redistribute it and/or modify
40594 +# it under the terms of the GNU General Public License as published by
40595 +# the Free Software Foundation; either version 2, or (at your option)
40596 +# any later version.
40598 +# This program is distributed in the hope that it will be useful,
40599 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
40600 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
40601 +# GNU General Public License for more details.
40603 +# You should have received a copy of the GNU General Public License
40604 +# along with this program; if not, write to the Free Software
40605 +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
40606 +# 02110-1301, USA.
40608 +# As a special exception to the GNU General Public License, if you
40609 +# distribute this file as part of a program that contains a
40610 +# configuration script generated by Autoconf, you may include it under
40611 +# the same distribution terms that you use for the rest of that program.
40613 +if test $# -eq 0; then
40614 + echo 1>&2 "Try \`$0 --help' for more information"
40620 +# In the cases where this matters, `missing' is being run in the
40622 +if test -f configure.ac; then
40623 + configure_ac=configure.ac
40625 + configure_ac=configure.in
40628 +msg="missing on your system"
40632 + # Try to run requested program, and just exit if it succeeds.
40636 + # Exit code 63 means version mismatch. This often happens
40637 + # when the user try to use an ancient version of a tool on
40638 + # a file that requires a minimum version. In this case we
40639 + # we should proceed has if the program had been absent, or
40640 + # if --run hadn't been passed.
40641 + if test $? = 63; then
40643 + msg="probably too old"
40647 + -h|--h|--he|--hel|--help)
40649 +$0 [OPTION]... PROGRAM [ARGUMENT]...
40651 +Handle \`PROGRAM [ARGUMENT]...' for when PROGRAM is missing, or return an
40652 +error status if there is no known handling for PROGRAM.
40655 + -h, --help display this help and exit
40656 + -v, --version output version information and exit
40657 + --run try to run the given command, and emulate it if it fails
40659 +Supported PROGRAM values:
40660 + aclocal touch file \`aclocal.m4'
40661 + autoconf touch file \`configure'
40662 + autoheader touch file \`config.h.in'
40663 + automake touch all \`Makefile.in' files
40664 + bison create \`y.tab.[ch]', if possible, from existing .[ch]
40665 + flex create \`lex.yy.c', if possible, from existing .c
40666 + help2man touch the output file
40667 + lex create \`lex.yy.c', if possible, from existing .c
40668 + makeinfo touch the output file
40669 + tar try tar, gnutar, gtar, then tar without non-portable flags
40670 + yacc create \`y.tab.[ch]', if possible, from existing .[ch]
40672 +Send bug reports to <bug-automake@gnu.org>."
40676 + -v|--v|--ve|--ver|--vers|--versi|--versio|--version)
40677 + echo "missing $scriptversion (GNU Automake)"
40682 + echo 1>&2 "$0: Unknown \`$1' option"
40683 + echo 1>&2 "Try \`$0 --help' for more information"
40689 +# Now exit if we have it, but it failed. Also exit now if we
40690 +# don't have it and --version was passed (most likely to detect
40694 + # Not GNU programs, they don't have --version.
40698 + if test -n "$run"; then
40699 + echo 1>&2 "ERROR: \`tar' requires --run"
40701 + elif test "x$2" = "x--version" || test "x$2" = "x--help"; then
40707 + if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
40708 + # We have it, but it failed.
40710 + elif test "x$2" = "x--version" || test "x$2" = "x--help"; then
40711 + # Could not run --version or --help. This is probably someone
40712 + # running `$TOOL --version' or `$TOOL --help' to check whether
40713 + # $TOOL exists and not knowing $TOOL uses missing.
40719 +# If it does not exist, or fails to run (possibly an outdated version),
40720 +# try to emulate it.
40724 +WARNING: \`$1' is $msg. You should only need it if
40725 + you modified \`acinclude.m4' or \`${configure_ac}'. You might want
40726 + to install the \`Automake' and \`Perl' packages. Grab them from
40727 + any GNU archive site."
40733 +WARNING: \`$1' is $msg. You should only need it if
40734 + you modified \`${configure_ac}'. You might want to install the
40735 + \`Autoconf' and \`GNU m4' packages. Grab them from any GNU
40742 +WARNING: \`$1' is $msg. You should only need it if
40743 + you modified \`acconfig.h' or \`${configure_ac}'. You might want
40744 + to install the \`Autoconf' and \`GNU m4' packages. Grab them
40745 + from any GNU archive site."
40746 + files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^)]*\)).*/\1/p' ${configure_ac}`
40747 + test -z "$files" && files="config.h"
40749 + for f in $files; do
40751 + *:*) touch_files="$touch_files "`echo "$f" |
40752 + sed -e 's/^[^:]*://' -e 's/:.*//'`;;
40753 + *) touch_files="$touch_files $f.in";;
40756 + touch $touch_files
40761 +WARNING: \`$1' is $msg. You should only need it if
40762 + you modified \`Makefile.am', \`acinclude.m4' or \`${configure_ac}'.
40763 + You might want to install the \`Automake' and \`Perl' packages.
40764 + Grab them from any GNU archive site."
40765 + find . -type f -name Makefile.am -print |
40766 + sed 's/\.am$/.in/' |
40767 + while read f; do touch "$f"; done
40772 +WARNING: \`$1' is needed, but is $msg.
40773 + You might have modified some files without having the
40774 + proper tools for further handling them.
40775 + You can get \`$1' as part of \`Autoconf' from any GNU
40778 + file=`echo "$*" | sed -n 's/.*--output[ =]*\([^ ]*\).*/\1/p'`
40779 + test -z "$file" && file=`echo "$*" | sed -n 's/.*-o[ ]*\([^ ]*\).*/\1/p'`
40780 + if test -f "$file"; then
40783 + test -z "$file" || exec >$file
40784 + echo "#! /bin/sh"
40785 + echo "# Created by GNU Automake missing as a replacement of"
40795 +WARNING: \`$1' $msg. You should only need it if
40796 + you modified a \`.y' file. You may need the \`Bison' package
40797 + in order for those modifications to take effect. You can get
40798 + \`Bison' from any GNU archive site."
40799 + rm -f y.tab.c y.tab.h
40800 + if [ $# -ne 1 ]; then
40801 + eval LASTARG="\${$#}"
40802 + case "$LASTARG" in
40804 + SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'`
40805 + if [ -f "$SRCFILE" ]; then
40806 + cp "$SRCFILE" y.tab.c
40808 + SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'`
40809 + if [ -f "$SRCFILE" ]; then
40810 + cp "$SRCFILE" y.tab.h
40815 + if [ ! -f y.tab.h ]; then
40818 + if [ ! -f y.tab.c ]; then
40819 + echo 'main() { return 0; }' >y.tab.c
40825 +WARNING: \`$1' is $msg. You should only need it if
40826 + you modified a \`.l' file. You may need the \`Flex' package
40827 + in order for those modifications to take effect. You can get
40828 + \`Flex' from any GNU archive site."
40830 + if [ $# -ne 1 ]; then
40831 + eval LASTARG="\${$#}"
40832 + case "$LASTARG" in
40834 + SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'`
40835 + if [ -f "$SRCFILE" ]; then
40836 + cp "$SRCFILE" lex.yy.c
40841 + if [ ! -f lex.yy.c ]; then
40842 + echo 'main() { return 0; }' >lex.yy.c
40848 +WARNING: \`$1' is $msg. You should only need it if
40849 + you modified a dependency of a manual page. You may need the
40850 + \`Help2man' package in order for those modifications to take
40851 + effect. You can get \`Help2man' from any GNU archive site."
40853 + file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'`
40854 + if test -z "$file"; then
40855 + file=`echo "$*" | sed -n 's/.*--output=\([^ ]*\).*/\1/p'`
40857 + if [ -f "$file" ]; then
40860 + test -z "$file" || exec >$file
40861 + echo ".ab help2man is required to generate this page"
40868 +WARNING: \`$1' is $msg. You should only need it if
40869 + you modified a \`.texi' or \`.texinfo' file, or any other file
40870 + indirectly affecting the aspect of the manual. The spurious
40871 + call might also be the consequence of using a buggy \`make' (AIX,
40872 + DU, IRIX). You might want to install the \`Texinfo' package or
40873 + the \`GNU make' package. Grab either from any GNU archive site."
40874 + # The file to touch is that specified with -o ...
40875 + file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'`
40876 + if test -z "$file"; then
40877 + # ... or it is the one specified with @setfilename ...
40878 + infile=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'`
40879 + file=`sed -n '/^@setfilename/ { s/.* \([^ ]*\) *$/\1/; p; q; }' $infile`
40880 + # ... or it is derived from the source name (dir/f.texi becomes f.info)
40881 + test -z "$file" && file=`echo "$infile" | sed 's,.*/,,;s,.[^.]*$,,'`.info
40883 + # If the file does not exist, the user really needs makeinfo;
40884 + # let's fail without touching anything.
40885 + test -f $file || exit 1
40892 + # We have already tried tar in the generic part.
40893 + # Look for gnutar/gtar before invocation to avoid ugly error
40895 + if (gnutar --version > /dev/null 2>&1); then
40896 + gnutar "$@" && exit 0
40898 + if (gtar --version > /dev/null 2>&1); then
40899 + gtar "$@" && exit 0
40903 + case "$firstarg" in
40905 + firstarg=`echo "$firstarg" | sed s/o//`
40906 + tar "$firstarg" "$@" && exit 0
40909 + case "$firstarg" in
40911 + firstarg=`echo "$firstarg" | sed s/h//`
40912 + tar "$firstarg" "$@" && exit 0
40918 +WARNING: I can't seem to be able to run \`tar' with the given arguments.
40919 + You may want to install GNU tar or Free paxutils, or check the
40920 + command line arguments."
40926 +WARNING: \`$1' is needed, and is $msg.
40927 + You might have modified some files without having the
40928 + proper tools for further handling them. Check the \`README' file,
40929 + it often tells you about the needed prerequisites for installing
40930 + this package. You may also peek at any GNU archive site, in case
40931 + some other package would contain this missing \`$1' program."
40938 +# Local variables:
40939 +# eval: (add-hook 'write-file-hooks 'time-stamp)
40940 +# time-stamp-start: "scriptversion="
40941 +# time-stamp-format: "%:y-%02m-%02d.%02H"
40942 +# time-stamp-end: "$"
40944 diff -urN lua-5.1.4/src/luaconf.h lua-5.1.4-autotoolize/src/luaconf.h
40945 --- lua-5.1.4/src/luaconf.h 2008-02-11 17:25:08.000000000 +0100
40946 +++ lua-5.1.4-autotoolize/src/luaconf.h 2008-09-03 13:25:45.000000000 +0200
40949 -** $Id: luaconf.h,v 1.82.1.7 2008/02/11 16:25:08 roberto Exp $
40950 -** Configuration file for Lua
40951 -** See Copyright Notice in lua.h
40958 -#include <limits.h>
40959 -#include <stddef.h>
40963 -** ==================================================================
40964 -** Search for "@@" to find all configurable definitions.
40965 -** ===================================================================
40970 -@@ LUA_ANSI controls the use of non-ansi features.
40971 -** CHANGE it (define it) if you want Lua to avoid the use of any
40972 -** non-ansi feature or library.
40974 -#if defined(__STRICT_ANSI__)
40979 -#if !defined(LUA_ANSI) && defined(_WIN32)
40983 -#if defined(LUA_USE_LINUX)
40984 -#define LUA_USE_POSIX
40985 -#define LUA_USE_DLOPEN /* needs an extra library: -ldl */
40986 -#define LUA_USE_READLINE /* needs some extra libraries */
40989 -#if defined(LUA_USE_MACOSX)
40990 -#define LUA_USE_POSIX
40991 -#define LUA_DL_DYLD /* does not need extra library */
40997 -@@ LUA_USE_POSIX includes all functionallity listed as X/Open System
40998 -@* Interfaces Extension (XSI).
40999 -** CHANGE it (define it) if your system is XSI compatible.
41001 -#if defined(LUA_USE_POSIX)
41002 -#define LUA_USE_MKSTEMP
41003 -#define LUA_USE_ISATTY
41004 -#define LUA_USE_POPEN
41005 -#define LUA_USE_ULONGJMP
41010 -@@ LUA_PATH and LUA_CPATH are the names of the environment variables that
41011 -@* Lua check to set its paths.
41012 -@@ LUA_INIT is the name of the environment variable that Lua
41013 -@* checks for initialization code.
41014 -** CHANGE them if you want different names.
41016 -#define LUA_PATH "LUA_PATH"
41017 -#define LUA_CPATH "LUA_CPATH"
41018 -#define LUA_INIT "LUA_INIT"
41022 -@@ LUA_PATH_DEFAULT is the default path that Lua uses to look for
41024 -@@ LUA_CPATH_DEFAULT is the default path that Lua uses to look for
41026 -** CHANGE them if your machine has a non-conventional directory
41027 -** hierarchy or if you want to install your libraries in
41028 -** non-conventional directories.
41030 -#if defined(_WIN32)
41032 -** In Windows, any exclamation mark ('!') in the path is replaced by the
41033 -** path of the directory of the executable file of the current process.
41035 -#define LUA_LDIR "!\\lua\\"
41036 -#define LUA_CDIR "!\\"
41037 -#define LUA_PATH_DEFAULT \
41038 - ".\\?.lua;" LUA_LDIR"?.lua;" LUA_LDIR"?\\init.lua;" \
41039 - LUA_CDIR"?.lua;" LUA_CDIR"?\\init.lua"
41040 -#define LUA_CPATH_DEFAULT \
41041 - ".\\?.dll;" LUA_CDIR"?.dll;" LUA_CDIR"loadall.dll"
41044 -#define LUA_ROOT "/usr/local/"
41045 -#define LUA_LDIR LUA_ROOT "share/lua/5.1/"
41046 -#define LUA_CDIR LUA_ROOT "lib/lua/5.1/"
41047 -#define LUA_PATH_DEFAULT \
41048 - "./?.lua;" LUA_LDIR"?.lua;" LUA_LDIR"?/init.lua;" \
41049 - LUA_CDIR"?.lua;" LUA_CDIR"?/init.lua"
41050 -#define LUA_CPATH_DEFAULT \
41051 - "./?.so;" LUA_CDIR"?.so;" LUA_CDIR"loadall.so"
41056 -@@ LUA_DIRSEP is the directory separator (for submodules).
41057 -** CHANGE it if your machine does not use "/" as the directory separator
41058 -** and is not Windows. (On Windows Lua automatically uses "\".)
41060 -#if defined(_WIN32)
41061 -#define LUA_DIRSEP "\\"
41063 -#define LUA_DIRSEP "/"
41068 -@@ LUA_PATHSEP is the character that separates templates in a path.
41069 -@@ LUA_PATH_MARK is the string that marks the substitution points in a
41071 -@@ LUA_EXECDIR in a Windows path is replaced by the executable's
41073 -@@ LUA_IGMARK is a mark to ignore all before it when bulding the
41074 -@* luaopen_ function name.
41075 -** CHANGE them if for some reason your system cannot use those
41076 -** characters. (E.g., if one of those characters is a common character
41077 -** in file/directory names.) Probably you do not need to change them.
41079 -#define LUA_PATHSEP ";"
41080 -#define LUA_PATH_MARK "?"
41081 -#define LUA_EXECDIR "!"
41082 -#define LUA_IGMARK "-"
41086 -@@ LUA_INTEGER is the integral type used by lua_pushinteger/lua_tointeger.
41087 -** CHANGE that if ptrdiff_t is not adequate on your machine. (On most
41088 -** machines, ptrdiff_t gives a good choice between int or long.)
41090 -#define LUA_INTEGER ptrdiff_t
41094 -@@ LUA_API is a mark for all core API functions.
41095 -@@ LUALIB_API is a mark for all standard library functions.
41096 -** CHANGE them if you need to define those functions in some special way.
41097 -** For instance, if you want to create one Windows DLL with the core and
41098 -** the libraries, you may want to use the following definition (define
41099 -** LUA_BUILD_AS_DLL to get it).
41101 -#if defined(LUA_BUILD_AS_DLL)
41103 -#if defined(LUA_CORE) || defined(LUA_LIB)
41104 -#define LUA_API __declspec(dllexport)
41106 -#define LUA_API __declspec(dllimport)
41111 -#define LUA_API extern
41115 -/* more often than not the libs go together with the core */
41116 -#define LUALIB_API LUA_API
41120 -@@ LUAI_FUNC is a mark for all extern functions that are not to be
41121 -@* exported to outside modules.
41122 -@@ LUAI_DATA is a mark for all extern (const) variables that are not to
41123 -@* be exported to outside modules.
41124 -** CHANGE them if you need to mark them in some special way. Elf/gcc
41125 -** (versions 3.2 and later) mark them as "hidden" to optimize access
41126 -** when Lua is compiled as a shared library.
41128 -#if defined(luaall_c)
41129 -#define LUAI_FUNC static
41130 -#define LUAI_DATA /* empty */
41132 -#elif defined(__GNUC__) && ((__GNUC__*100 + __GNUC_MINOR__) >= 302) && \
41134 -#define LUAI_FUNC __attribute__((visibility("hidden"))) extern
41135 -#define LUAI_DATA LUAI_FUNC
41138 -#define LUAI_FUNC extern
41139 -#define LUAI_DATA extern
41145 -@@ LUA_QL describes how error messages quote program elements.
41146 -** CHANGE it if you want a different appearance.
41148 -#define LUA_QL(x) "'" x "'"
41149 -#define LUA_QS LUA_QL("%s")
41153 -@@ LUA_IDSIZE gives the maximum size for the description of the source
41154 -@* of a function in debug information.
41155 -** CHANGE it if you want a different size.
41157 -#define LUA_IDSIZE 60
41161 -** {==================================================================
41162 -** Stand-alone configuration
41163 -** ===================================================================
41166 -#if defined(lua_c) || defined(luaall_c)
41169 -@@ lua_stdin_is_tty detects whether the standard input is a 'tty' (that
41170 -@* is, whether we're running lua interactively).
41171 -** CHANGE it if you have a better definition for non-POSIX/non-Windows
41174 -#if defined(LUA_USE_ISATTY)
41175 -#include <unistd.h>
41176 -#define lua_stdin_is_tty() isatty(0)
41177 -#elif defined(LUA_WIN)
41179 -#include <stdio.h>
41180 -#define lua_stdin_is_tty() _isatty(_fileno(stdin))
41182 -#define lua_stdin_is_tty() 1 /* assume stdin is a tty */
41187 -@@ LUA_PROMPT is the default prompt used by stand-alone Lua.
41188 -@@ LUA_PROMPT2 is the default continuation prompt used by stand-alone Lua.
41189 -** CHANGE them if you want different prompts. (You can also change the
41190 -** prompts dynamically, assigning to globals _PROMPT/_PROMPT2.)
41192 -#define LUA_PROMPT "> "
41193 -#define LUA_PROMPT2 ">> "
41197 -@@ LUA_PROGNAME is the default name for the stand-alone Lua program.
41198 -** CHANGE it if your stand-alone interpreter has a different name and
41199 -** your system is not able to detect that name automatically.
41201 -#define LUA_PROGNAME "lua"
41205 -@@ LUA_MAXINPUT is the maximum length for an input line in the
41206 -@* stand-alone interpreter.
41207 -** CHANGE it if you need longer lines.
41209 -#define LUA_MAXINPUT 512
41213 -@@ lua_readline defines how to show a prompt and then read a line from
41214 -@* the standard input.
41215 -@@ lua_saveline defines how to "save" a read line in a "history".
41216 -@@ lua_freeline defines how to free a line read by lua_readline.
41217 -** CHANGE them if you want to improve this functionality (e.g., by using
41218 -** GNU readline and history facilities).
41220 -#if defined(LUA_USE_READLINE)
41221 -#include <stdio.h>
41222 -#include <readline/readline.h>
41223 -#include <readline/history.h>
41224 -#define lua_readline(L,b,p) ((void)L, ((b)=readline(p)) != NULL)
41225 -#define lua_saveline(L,idx) \
41226 - if (lua_strlen(L,idx) > 0) /* non-empty line? */ \
41227 - add_history(lua_tostring(L, idx)); /* add it to history */
41228 -#define lua_freeline(L,b) ((void)L, free(b))
41230 -#define lua_readline(L,b,p) \
41231 - ((void)L, fputs(p, stdout), fflush(stdout), /* show prompt */ \
41232 - fgets(b, LUA_MAXINPUT, stdin) != NULL) /* get line */
41233 -#define lua_saveline(L,idx) { (void)L; (void)idx; }
41234 -#define lua_freeline(L,b) { (void)L; (void)b; }
41239 -/* }================================================================== */
41243 -@@ LUAI_GCPAUSE defines the default pause between garbage-collector cycles
41244 -@* as a percentage.
41245 -** CHANGE it if you want the GC to run faster or slower (higher values
41246 -** mean larger pauses which mean slower collection.) You can also change
41247 -** this value dynamically.
41249 -#define LUAI_GCPAUSE 200 /* 200% (wait memory to double before next GC) */
41253 -@@ LUAI_GCMUL defines the default speed of garbage collection relative to
41254 -@* memory allocation as a percentage.
41255 -** CHANGE it if you want to change the granularity of the garbage
41256 -** collection. (Higher values mean coarser collections. 0 represents
41257 -** infinity, where each step performs a full collection.) You can also
41258 -** change this value dynamically.
41260 -#define LUAI_GCMUL 200 /* GC runs 'twice the speed' of memory allocation */
41265 -@@ LUA_COMPAT_GETN controls compatibility with old getn behavior.
41266 -** CHANGE it (define it) if you want exact compatibility with the
41267 -** behavior of setn/getn in Lua 5.0.
41269 -#undef LUA_COMPAT_GETN
41272 -@@ LUA_COMPAT_LOADLIB controls compatibility about global loadlib.
41273 -** CHANGE it to undefined as soon as you do not need a global 'loadlib'
41274 -** function (the function is still available as 'package.loadlib').
41276 -#undef LUA_COMPAT_LOADLIB
41279 -@@ LUA_COMPAT_VARARG controls compatibility with old vararg feature.
41280 -** CHANGE it to undefined as soon as your programs use only '...' to
41281 -** access vararg parameters (instead of the old 'arg' table).
41283 -#define LUA_COMPAT_VARARG
41286 -@@ LUA_COMPAT_MOD controls compatibility with old math.mod function.
41287 -** CHANGE it to undefined as soon as your programs use 'math.fmod' or
41288 -** the new '%' operator instead of 'math.mod'.
41290 -#define LUA_COMPAT_MOD
41293 -@@ LUA_COMPAT_LSTR controls compatibility with old long string nesting
41295 -** CHANGE it to 2 if you want the old behaviour, or undefine it to turn
41296 -** off the advisory error when nesting [[...]].
41298 -#define LUA_COMPAT_LSTR 1
41301 -@@ LUA_COMPAT_GFIND controls compatibility with old 'string.gfind' name.
41302 -** CHANGE it to undefined as soon as you rename 'string.gfind' to
41303 -** 'string.gmatch'.
41305 -#define LUA_COMPAT_GFIND
41308 -@@ LUA_COMPAT_OPENLIB controls compatibility with old 'luaL_openlib'
41310 -** CHANGE it to undefined as soon as you replace to 'luaL_register'
41311 -** your uses of 'luaL_openlib'
41313 -#define LUA_COMPAT_OPENLIB
41318 -@@ luai_apicheck is the assert macro used by the Lua-C API.
41319 -** CHANGE luai_apicheck if you want Lua to perform some checks in the
41320 -** parameters it gets from API calls. This may slow down the interpreter
41321 -** a bit, but may be quite useful when debugging C code that interfaces
41322 -** with Lua. A useful redefinition is to use assert.h.
41324 -#if defined(LUA_USE_APICHECK)
41325 -#include <assert.h>
41326 -#define luai_apicheck(L,o) { (void)L; assert(o); }
41328 -#define luai_apicheck(L,o) { (void)L; }
41333 -@@ LUAI_BITSINT defines the number of bits in an int.
41334 -** CHANGE here if Lua cannot automatically detect the number of bits of
41335 -** your machine. Probably you do not need to change this.
41337 -/* avoid overflows in comparison */
41338 -#if INT_MAX-20 < 32760
41339 -#define LUAI_BITSINT 16
41340 -#elif INT_MAX > 2147483640L
41341 -/* int has at least 32 bits */
41342 -#define LUAI_BITSINT 32
41344 -#error "you must define LUA_BITSINT with number of bits in an integer"
41349 -@@ LUAI_UINT32 is an unsigned integer with at least 32 bits.
41350 -@@ LUAI_INT32 is an signed integer with at least 32 bits.
41351 -@@ LUAI_UMEM is an unsigned integer big enough to count the total
41352 -@* memory used by Lua.
41353 -@@ LUAI_MEM is a signed integer big enough to count the total memory
41355 -** CHANGE here if for some weird reason the default definitions are not
41356 -** good enough for your machine. (The definitions in the 'else'
41357 -** part always works, but may waste space on machines with 64-bit
41358 -** longs.) Probably you do not need to change this.
41360 -#if LUAI_BITSINT >= 32
41361 -#define LUAI_UINT32 unsigned int
41362 -#define LUAI_INT32 int
41363 -#define LUAI_MAXINT32 INT_MAX
41364 -#define LUAI_UMEM size_t
41365 -#define LUAI_MEM ptrdiff_t
41368 -#define LUAI_UINT32 unsigned long
41369 -#define LUAI_INT32 long
41370 -#define LUAI_MAXINT32 LONG_MAX
41371 -#define LUAI_UMEM unsigned long
41372 -#define LUAI_MEM long
41377 -@@ LUAI_MAXCALLS limits the number of nested calls.
41378 -** CHANGE it if you need really deep recursive calls. This limit is
41379 -** arbitrary; its only purpose is to stop infinite recursion before
41380 -** exhausting memory.
41382 -#define LUAI_MAXCALLS 20000
41386 -@@ LUAI_MAXCSTACK limits the number of Lua stack slots that a C function
41388 -** CHANGE it if you need lots of (Lua) stack space for your C
41389 -** functions. This limit is arbitrary; its only purpose is to stop C
41390 -** functions to consume unlimited stack space. (must be smaller than
41391 -** -LUA_REGISTRYINDEX)
41393 -#define LUAI_MAXCSTACK 8000
41398 -** {==================================================================
41399 -** CHANGE (to smaller values) the following definitions if your system
41400 -** has a small C stack. (Or you may want to change them to larger
41401 -** values if your system has a large C stack and these limits are
41402 -** too rigid for you.) Some of these constants control the size of
41403 -** stack-allocated arrays used by the compiler or the interpreter, while
41404 -** others limit the maximum number of recursive calls that the compiler
41405 -** or the interpreter can perform. Values too large may cause a C stack
41406 -** overflow for some forms of deep constructs.
41407 -** ===================================================================
41412 -@@ LUAI_MAXCCALLS is the maximum depth for nested C calls (short) and
41413 -@* syntactical nested non-terminals in a program.
41415 -#define LUAI_MAXCCALLS 200
41419 -@@ LUAI_MAXVARS is the maximum number of local variables per function
41420 -@* (must be smaller than 250).
41422 -#define LUAI_MAXVARS 200
41426 -@@ LUAI_MAXUPVALUES is the maximum number of upvalues per function
41427 -@* (must be smaller than 250).
41429 -#define LUAI_MAXUPVALUES 60
41433 -@@ LUAL_BUFFERSIZE is the buffer size used by the lauxlib buffer system.
41435 -#define LUAL_BUFFERSIZE BUFSIZ
41437 -/* }================================================================== */
41443 -** {==================================================================
41444 -@@ LUA_NUMBER is the type of numbers in Lua.
41445 -** CHANGE the following definitions only if you want to build Lua
41446 -** with a number type different from double. You may also need to
41447 -** change lua_number2int & lua_number2integer.
41448 -** ===================================================================
41451 -#define LUA_NUMBER_DOUBLE
41452 -#define LUA_NUMBER double
41455 -@@ LUAI_UACNUMBER is the result of an 'usual argument conversion'
41458 -#define LUAI_UACNUMBER double
41462 -@@ LUA_NUMBER_SCAN is the format for reading numbers.
41463 -@@ LUA_NUMBER_FMT is the format for writing numbers.
41464 -@@ lua_number2str converts a number to a string.
41465 -@@ LUAI_MAXNUMBER2STR is maximum size of previous conversion.
41466 -@@ lua_str2number converts a string to a number.
41468 -#define LUA_NUMBER_SCAN "%lf"
41469 -#define LUA_NUMBER_FMT "%.14g"
41470 -#define lua_number2str(s,n) sprintf((s), LUA_NUMBER_FMT, (n))
41471 -#define LUAI_MAXNUMBER2STR 32 /* 16 digits, sign, point, and \0 */
41472 -#define lua_str2number(s,p) strtod((s), (p))
41476 -@@ The luai_num* macros define the primitive operations over numbers.
41478 -#if defined(LUA_CORE)
41480 -#define luai_numadd(a,b) ((a)+(b))
41481 -#define luai_numsub(a,b) ((a)-(b))
41482 -#define luai_nummul(a,b) ((a)*(b))
41483 -#define luai_numdiv(a,b) ((a)/(b))
41484 -#define luai_nummod(a,b) ((a) - floor((a)/(b))*(b))
41485 -#define luai_numpow(a,b) (pow(a,b))
41486 -#define luai_numunm(a) (-(a))
41487 -#define luai_numeq(a,b) ((a)==(b))
41488 -#define luai_numlt(a,b) ((a)<(b))
41489 -#define luai_numle(a,b) ((a)<=(b))
41490 -#define luai_numisnan(a) (!luai_numeq((a), (a)))
41495 -@@ lua_number2int is a macro to convert lua_Number to int.
41496 -@@ lua_number2integer is a macro to convert lua_Number to lua_Integer.
41497 -** CHANGE them if you know a faster way to convert a lua_Number to
41498 -** int (with any rounding method and without throwing errors) in your
41499 -** system. In Pentium machines, a naive typecast from double to int
41500 -** in C is extremely slow, so any alternative is worth trying.
41503 -/* On a Pentium, resort to a trick */
41504 -#if defined(LUA_NUMBER_DOUBLE) && !defined(LUA_ANSI) && !defined(__SSE2__) && \
41505 - (defined(__i386) || defined (_M_IX86) || defined(__i386__))
41507 -/* On a Microsoft compiler, use assembler */
41508 -#if defined(_MSC_VER)
41510 -#define lua_number2int(i,d) __asm fld d __asm fistp i
41511 -#define lua_number2integer(i,n) lua_number2int(i, n)
41513 -/* the next trick should work on any Pentium, but sometimes clashes
41514 - with a DirectX idiosyncrasy */
41517 -union luai_Cast { double l_d; long l_l; };
41518 -#define lua_number2int(i,d) \
41519 - { volatile union luai_Cast u; u.l_d = (d) + 6755399441055744.0; (i) = u.l_l; }
41520 -#define lua_number2integer(i,n) lua_number2int(i, n)
41525 -/* this option always works, but may be slow */
41527 -#define lua_number2int(i,d) ((i)=(int)(d))
41528 -#define lua_number2integer(i,d) ((i)=(lua_Integer)(d))
41532 -/* }================================================================== */
41536 -@@ LUAI_USER_ALIGNMENT_T is a type that requires maximum alignment.
41537 -** CHANGE it if your system requires alignments larger than double. (For
41538 -** instance, if your system supports long doubles and they must be
41539 -** aligned in 16-byte boundaries, then you should add long double in the
41540 -** union.) Probably you do not need to change this.
41542 -#define LUAI_USER_ALIGNMENT_T union { double u; void *s; long l; }
41546 -@@ LUAI_THROW/LUAI_TRY define how Lua does exception handling.
41547 -** CHANGE them if you prefer to use longjmp/setjmp even with C++
41548 -** or if want/don't to use _longjmp/_setjmp instead of regular
41549 -** longjmp/setjmp. By default, Lua handles errors with exceptions when
41550 -** compiling as C++ code, with _longjmp/_setjmp when asked to use them,
41551 -** and with longjmp/setjmp otherwise.
41553 -#if defined(__cplusplus)
41554 -/* C++ exceptions */
41555 -#define LUAI_THROW(L,c) throw(c)
41556 -#define LUAI_TRY(L,c,a) try { a } catch(...) \
41557 - { if ((c)->status == 0) (c)->status = -1; }
41558 -#define luai_jmpbuf int /* dummy variable */
41560 -#elif defined(LUA_USE_ULONGJMP)
41561 -/* in Unix, try _longjmp/_setjmp (more efficient) */
41562 -#define LUAI_THROW(L,c) _longjmp((c)->b, 1)
41563 -#define LUAI_TRY(L,c,a) if (_setjmp((c)->b) == 0) { a }
41564 -#define luai_jmpbuf jmp_buf
41567 -/* default handling with long jumps */
41568 -#define LUAI_THROW(L,c) longjmp((c)->b, 1)
41569 -#define LUAI_TRY(L,c,a) if (setjmp((c)->b) == 0) { a }
41570 -#define luai_jmpbuf jmp_buf
41576 -@@ LUA_MAXCAPTURES is the maximum number of captures that a pattern
41577 -@* can do during pattern-matching.
41578 -** CHANGE it if you need more captures. This limit is arbitrary.
41580 -#define LUA_MAXCAPTURES 32
41584 -@@ lua_tmpnam is the function that the OS library uses to create a
41585 -@* temporary name.
41586 -@@ LUA_TMPNAMBUFSIZE is the maximum size of a name created by lua_tmpnam.
41587 -** CHANGE them if you have an alternative to tmpnam (which is considered
41588 -** insecure) or if you want the original tmpnam anyway. By default, Lua
41589 -** uses tmpnam except when POSIX is available, where it uses mkstemp.
41591 -#if defined(loslib_c) || defined(luaall_c)
41593 -#if defined(LUA_USE_MKSTEMP)
41594 -#include <unistd.h>
41595 -#define LUA_TMPNAMBUFSIZE 32
41596 -#define lua_tmpnam(b,e) { \
41597 - strcpy(b, "/tmp/lua_XXXXXX"); \
41598 - e = mkstemp(b); \
41599 - if (e != -1) close(e); \
41603 -#define LUA_TMPNAMBUFSIZE L_tmpnam
41604 -#define lua_tmpnam(b,e) { e = (tmpnam(b) == NULL); }
41611 -@@ lua_popen spawns a new process connected to the current one through
41612 -@* the file streams.
41613 -** CHANGE it if you have a way to implement it in your system.
41615 -#if defined(LUA_USE_POPEN)
41617 -#define lua_popen(L,c,m) ((void)L, fflush(NULL), popen(c,m))
41618 -#define lua_pclose(L,file) ((void)L, (pclose(file) != -1))
41620 -#elif defined(LUA_WIN)
41622 -#define lua_popen(L,c,m) ((void)L, _popen(c,m))
41623 -#define lua_pclose(L,file) ((void)L, (_pclose(file) != -1))
41627 -#define lua_popen(L,c,m) ((void)((void)c, m), \
41628 - luaL_error(L, LUA_QL("popen") " not supported"), (FILE*)0)
41629 -#define lua_pclose(L,file) ((void)((void)L, file), 0)
41634 -@@ LUA_DL_* define which dynamic-library system Lua should use.
41635 -** CHANGE here if Lua has problems choosing the appropriate
41636 -** dynamic-library system for your platform (either Windows' DLL, Mac's
41637 -** dyld, or Unix's dlopen). If your system is some kind of Unix, there
41638 -** is a good chance that it has dlopen, so LUA_DL_DLOPEN will work for
41639 -** it. To use dlopen you also need to adapt the src/Makefile (probably
41640 -** adding -ldl to the linker options), so Lua does not select it
41641 -** automatically. (When you change the makefile to add -ldl, you must
41642 -** also add -DLUA_USE_DLOPEN.)
41643 -** If you do not want any kind of dynamic library, undefine all these
41645 -** By default, _WIN32 gets LUA_DL_DLL and MAC OS X gets LUA_DL_DYLD.
41647 -#if defined(LUA_USE_DLOPEN)
41648 -#define LUA_DL_DLOPEN
41651 -#if defined(LUA_WIN)
41652 -#define LUA_DL_DLL
41657 -@@ LUAI_EXTRASPACE allows you to add user-specific data in a lua_State
41658 -@* (the data goes just *before* the lua_State pointer).
41659 -** CHANGE (define) this if you really need that. This value must be
41660 -** a multiple of the maximum alignment required for your machine.
41662 -#define LUAI_EXTRASPACE 0
41666 -@@ luai_userstate* allow user-specific actions on threads.
41667 -** CHANGE them if you defined LUAI_EXTRASPACE and need to do something
41668 -** extra when a thread is created/deleted/resumed/yielded.
41670 -#define luai_userstateopen(L) ((void)L)
41671 -#define luai_userstateclose(L) ((void)L)
41672 -#define luai_userstatethread(L,L1) ((void)L)
41673 -#define luai_userstatefree(L) ((void)L)
41674 -#define luai_userstateresume(L,n) ((void)L)
41675 -#define luai_userstateyield(L,n) ((void)L)
41679 -@@ LUA_INTFRMLEN is the length modifier for integer conversions
41680 -@* in 'string.format'.
41681 -@@ LUA_INTFRM_T is the integer type correspoding to the previous length
41683 -** CHANGE them if your system supports long long or does not support long.
41686 -#if defined(LUA_USELONGLONG)
41688 -#define LUA_INTFRMLEN "ll"
41689 -#define LUA_INTFRM_T long long
41693 -#define LUA_INTFRMLEN "l"
41694 -#define LUA_INTFRM_T long
41700 -/* =================================================================== */
41703 -** Local configuration. You can use this space to add your redefinitions
41704 -** without modifying the main part of the file.
41711 diff -urN lua-5.1.4/src/luaconf.h.template.in lua-5.1.4-autotoolize/src/luaconf.h.template.in
41712 --- lua-5.1.4/src/luaconf.h.template.in 1970-01-01 01:00:00.000000000 +0100
41713 +++ lua-5.1.4-autotoolize/src/luaconf.h.template.in 2008-09-03 13:18:37.000000000 +0200
41716 +** $Id: luaconf.h,v 1.81 2006/02/10 17:44:06 roberto Exp $
41717 +** Configuration file for Lua
41718 +** See Copyright Notice in lua.h
41725 +#include <limits.h>
41726 +#include <stddef.h>
41729 +** =================
41730 +** Autotoolification
41731 +** =================
41734 +/** autotools-patch **/
41737 +@LUA_BUILD_AS_DLL_DEFS@
41739 +/** autotools-patch **/
41743 +** ==================================================================
41744 +** Search for "@@" to find all configurable definitions.
41745 +** ===================================================================
41750 +@@ LUA_ANSI controls the use of non-ansi features.
41751 +** CHANGE it (define it) if you want Lua to avoid the use of any
41752 +** non-ansi feature or library.
41754 +#if defined(__STRICT_ANSI__)
41759 +#if !defined(LUA_ANSI) && defined(_WIN32)
41765 +@@ LUA_USE_POSIX includes all functionallity listed as X/Open System
41766 +@* Interfaces Extension (XSI).
41767 +** CHANGE it (define it) if your system is XSI compatible.
41769 +#if defined(LUA_USE_POSIX)
41770 +#define LUA_USE_MKSTEMP
41771 +#define LUA_USE_ISATTY
41772 +#define LUA_USE_POPEN
41773 +#define LUA_USE_ULONGJMP
41778 +@@ LUA_PATH and LUA_CPATH are the names of the environment variables that
41779 +@* Lua check to set its paths.
41780 +@@ LUA_INIT is the name of the environment variable that Lua
41781 +@* checks for initialization code.
41782 +** CHANGE them if you want different names.
41784 +#define LUA_PATH "LUA_PATH"
41785 +#define LUA_CPATH "LUA_CPATH"
41786 +#define LUA_INIT "LUA_INIT"
41790 +@@ LUA_PATH_DEFAULT is the default path that Lua uses to look for
41792 +@@ LUA_CPATH_DEFAULT is the default path that Lua uses to look for
41794 +** CHANGE them if your machine has a non-conventional directory
41795 +** hierarchy or if you want to install your libraries in
41796 +** non-conventional directories.
41798 +#if defined(_WIN32)
41800 +** In Windows, any exclamation mark ('!') in the path is replaced by the
41801 +** path of the directory of the executable file of the current process.
41803 +#define LUA_LDIR "!\\lua\\"
41804 +#define LUA_CDIR "!\\"
41805 +#define LUA_PATH_DEFAULT \
41806 + ".\\?.lua;" LUA_LDIR"?.lua;" LUA_LDIR"?\\init.lua;" \
41807 + LUA_CDIR"?.lua;" LUA_CDIR"?\\init.lua"
41808 +#define LUA_CPATH_DEFAULT \
41809 + ".\\?.dll;" LUA_CDIR"?.dll;" LUA_CDIR"loadall.dll"
41813 +/** autotools-patch **/
41814 +#define LUA_LDIR "%lua_datadir%/lua/5.1/"
41815 +#if defined __alpha__ || defined __ia64__ || defined __powerpc64__ || \
41816 + defined __s390x__ || defined __sparc64__ || defined __x86_64__
41817 +#define LUA_CDIR "/usr/lib64/lua/5.1/"
41819 +#define LUA_CDIR "/usr/lib/lua/5.1/"
41821 +/** autotools-patch **/
41823 +#define LUA_PATH_DEFAULT \
41824 + "./?.lua;" LUA_LDIR"?.lua;" LUA_LDIR"?/init.lua;" \
41825 + LUA_CDIR"?.lua;" LUA_CDIR"?/init.lua"
41826 +#define LUA_CPATH_DEFAULT \
41827 + "./?.so;" LUA_CDIR"?.so;" LUA_CDIR"loadall.so"
41832 +@@ LUA_DIRSEP is the directory separator (for submodules).
41833 +** CHANGE it if your machine does not use "/" as the directory separator
41834 +** and is not Windows. (On Windows Lua automatically uses "\".)
41836 +#if defined(_WIN32)
41837 +#define LUA_DIRSEP "\\"
41839 +#define LUA_DIRSEP "/"
41844 +@@ LUA_PATHSEP is the character that separates templates in a path.
41845 +@@ LUA_PATH_MARK is the string that marks the substitution points in a
41847 +@@ LUA_EXECDIR in a Windows path is replaced by the executable's
41849 +@@ LUA_IGMARK is a mark to ignore all before it when bulding the
41850 +@* luaopen_ function name.
41851 +** CHANGE them if for some reason your system cannot use those
41852 +** characters. (E.g., if one of those characters is a common character
41853 +** in file/directory names.) Probably you do not need to change them.
41855 +#define LUA_PATHSEP ";"
41856 +#define LUA_PATH_MARK "?"
41857 +#define LUA_EXECDIR "!"
41858 +#define LUA_IGMARK "-"
41862 +@@ LUA_INTEGER is the integral type used by lua_pushinteger/lua_tointeger.
41863 +** CHANGE that if ptrdiff_t is not adequate on your machine. (On most
41864 +** machines, ptrdiff_t gives a good choice between int or long.)
41866 +#define LUA_INTEGER ptrdiff_t
41870 +@@ LUA_API is a mark for all core API functions.
41871 +@@ LUALIB_API is a mark for all standard library functions.
41872 +** CHANGE them if you need to define those functions in some special way.
41873 +** For instance, if you want to create one Windows DLL with the core and
41874 +** the libraries, you may want to use the following definition (define
41875 +** LUA_BUILD_AS_DLL to get it).
41877 +#if defined(LUA_BUILD_AS_DLL)
41879 +#if defined(LUA_CORE) || defined(LUA_LIB)
41880 +#define LUA_API __declspec(dllexport)
41882 +#define LUA_API __declspec(dllimport)
41887 +#define LUA_API extern
41891 +/* more often than not the libs go together with the core */
41892 +#define LUALIB_API LUA_API
41896 +@@ LUAI_FUNC is a mark for all extern functions that are not to be
41897 +@* exported to outside modules.
41898 +@@ LUAI_DATA is a mark for all extern (const) variables that are not to
41899 +@* be exported to outside modules.
41900 +** CHANGE them if you need to mark them in some special way. Elf/gcc
41901 +** (versions 3.2 and later) mark them as "hidden" to optimize access
41902 +** when Lua is compiled as a shared library.
41904 +#if defined(luaall_c)
41905 +#define LUAI_FUNC static
41906 +#define LUAI_DATA /* empty */
41908 +#elif defined(__GNUC__) && ((__GNUC__*100 + __GNUC_MINOR__) >= 302) && \
41910 +#define LUAI_FUNC __attribute__((visibility("hidden"))) extern
41911 +#define LUAI_DATA LUAI_FUNC
41914 +#define LUAI_FUNC extern
41915 +#define LUAI_DATA extern
41921 +@@ LUA_QL describes how error messages quote program elements.
41922 +** CHANGE it if you want a different appearance.
41924 +#define LUA_QL(x) "'" x "'"
41925 +#define LUA_QS LUA_QL("%s")
41929 +@@ LUA_IDSIZE gives the maximum size for the description of the source
41930 +@* of a function in debug information.
41931 +** CHANGE it if you want a different size.
41933 +#define LUA_IDSIZE 60
41937 +** {==================================================================
41938 +** Stand-alone configuration
41939 +** ===================================================================
41942 +#if defined(lua_c) || defined(luaall_c)
41945 +@@ lua_stdin_is_tty detects whether the standard input is a 'tty' (that
41946 +@* is, whether we're running lua interactively).
41947 +** CHANGE it if you have a better definition for non-POSIX/non-Windows
41950 +#if defined(LUA_USE_ISATTY)
41951 +#include <unistd.h>
41952 +#define lua_stdin_is_tty() isatty(0)
41953 +#elif defined(LUA_WIN)
41955 +#include <stdio.h>
41956 +#define lua_stdin_is_tty() _isatty(_fileno(stdin))
41958 +#define lua_stdin_is_tty() 1 /* assume stdin is a tty */
41963 +@@ LUA_PROMPT is the default prompt used by stand-alone Lua.
41964 +@@ LUA_PROMPT2 is the default continuation prompt used by stand-alone Lua.
41965 +** CHANGE them if you want different prompts. (You can also change the
41966 +** prompts dynamically, assigning to globals _PROMPT/_PROMPT2.)
41968 +#define LUA_PROMPT "> "
41969 +#define LUA_PROMPT2 ">> "
41973 +@@ LUA_PROGNAME is the default name for the stand-alone Lua program.
41974 +** CHANGE it if your stand-alone interpreter has a different name and
41975 +** your system is not able to detect that name automatically.
41977 +#define LUA_PROGNAME "lua"
41981 +@@ LUA_MAXINPUT is the maximum length for an input line in the
41982 +@* stand-alone interpreter.
41983 +** CHANGE it if you need longer lines.
41985 +#define LUA_MAXINPUT 512
41989 +@@ lua_readline defines how to show a prompt and then read a line from
41990 +@* the standard input.
41991 +@@ lua_saveline defines how to "save" a read line in a "history".
41992 +@@ lua_freeline defines how to free a line read by lua_readline.
41993 +** CHANGE them if you want to improve this functionality (e.g., by using
41994 +** GNU readline and history facilities).
41996 +#if defined(LUA_USE_READLINE)
41997 +#include <stdio.h>
41998 +#include <readline/readline.h>
41999 +#include <readline/history.h>
42000 +#define lua_readline(L,b,p) ((void)L, ((b)=readline(p)) != NULL)
42001 +#define lua_saveline(L,idx) \
42002 + if (lua_strlen(L,idx) > 0) /* non-empty line? */ \
42003 + add_history(lua_tostring(L, idx)); /* add it to history */
42004 +#define lua_freeline(L,b) ((void)L, free(b))
42006 +#define lua_readline(L,b,p) \
42007 + ((void)L, fputs(p, stdout), fflush(stdout), /* show prompt */ \
42008 + fgets(b, LUA_MAXINPUT, stdin) != NULL) /* get line */
42009 +#define lua_saveline(L,idx) { (void)L; (void)idx; }
42010 +#define lua_freeline(L,b) { (void)L; (void)b; }
42015 +/* }================================================================== */
42019 +@@ LUAI_GCPAUSE defines the default pause between garbage-collector cycles
42020 +@* as a percentage.
42021 +** CHANGE it if you want the GC to run faster or slower (higher values
42022 +** mean larger pauses which mean slower collection.) You can also change
42023 +** this value dynamically.
42025 +#define LUAI_GCPAUSE 200 /* 200% (wait memory to double before next GC) */
42029 +@@ LUAI_GCMUL defines the default speed of garbage collection relative to
42030 +@* memory allocation as a percentage.
42031 +** CHANGE it if you want to change the granularity of the garbage
42032 +** collection. (Higher values mean coarser collections. 0 represents
42033 +** infinity, where each step performs a full collection.) You can also
42034 +** change this value dynamically.
42036 +#define LUAI_GCMUL 200 /* GC runs 'twice the speed' of memory allocation */
42041 +@@ LUA_COMPAT_GETN controls compatibility with old getn behavior.
42042 +** CHANGE it (define it) if you want exact compatibility with the
42043 +** behavior of setn/getn in Lua 5.0.
42045 +#undef LUA_COMPAT_GETN
42048 +@@ LUA_COMPAT_LOADLIB controls compatibility about global loadlib.
42049 +** CHANGE it to undefined as soon as you do not need a global 'loadlib'
42050 +** function (the function is still available as 'package.loadlib').
42052 +#undef LUA_COMPAT_LOADLIB
42055 +@@ LUA_COMPAT_VARARG controls compatibility with old vararg feature.
42056 +** CHANGE it to undefined as soon as your programs use only '...' to
42057 +** access vararg parameters (instead of the old 'arg' table).
42059 +#define LUA_COMPAT_VARARG
42062 +@@ LUA_COMPAT_MOD controls compatibility with old math.mod function.
42063 +** CHANGE it to undefined as soon as your programs use 'math.fmod' or
42064 +** the new '%' operator instead of 'math.mod'.
42066 +#define LUA_COMPAT_MOD
42069 +@@ LUA_COMPAT_LSTR controls compatibility with old long string nesting
42071 +** CHANGE it to 2 if you want the old behaviour, or undefine it to turn
42072 +** off the advisory error when nesting [[...]].
42074 +#define LUA_COMPAT_LSTR 1
42077 +@@ LUA_COMPAT_GFIND controls compatibility with old 'string.gfind' name.
42078 +** CHANGE it to undefined as soon as you rename 'string.gfind' to
42079 +** 'string.gmatch'.
42081 +#define LUA_COMPAT_GFIND
42084 +@@ LUA_COMPAT_OPENLIB controls compatibility with old 'luaL_openlib'
42086 +** CHANGE it to undefined as soon as you replace to 'luaL_registry'
42087 +** your uses of 'luaL_openlib'
42089 +#define LUA_COMPAT_OPENLIB
42094 +@@ luai_apicheck is the assert macro used by the Lua-C API.
42095 +** CHANGE luai_apicheck if you want Lua to perform some checks in the
42096 +** parameters it gets from API calls. This may slow down the interpreter
42097 +** a bit, but may be quite useful when debugging C code that interfaces
42098 +** with Lua. A useful redefinition is to use assert.h.
42100 +#if defined(LUA_USE_APICHECK)
42101 +#include <assert.h>
42102 +#define luai_apicheck(L,o) { (void)L; assert(o); }
42104 +#define luai_apicheck(L,o) { (void)L; }
42109 +@@ LUAI_BITSINT defines the number of bits in an int.
42110 +** CHANGE here if Lua cannot automatically detect the number of bits of
42111 +** your machine. Probably you do not need to change this.
42113 +/* avoid overflows in comparison */
42114 +#if INT_MAX-20 < 32760
42115 +#define LUAI_BITSINT 16
42116 +#elif INT_MAX > 2147483640L
42117 +/* int has at least 32 bits */
42118 +#define LUAI_BITSINT 32
42120 +#error "you must define LUA_BITSINT with number of bits in an integer"
42125 +@@ LUAI_UINT32 is an unsigned integer with at least 32 bits.
42126 +@@ LUAI_INT32 is an signed integer with at least 32 bits.
42127 +@@ LUAI_UMEM is an unsigned integer big enough to count the total
42128 +@* memory used by Lua.
42129 +@@ LUAI_MEM is a signed integer big enough to count the total memory
42131 +** CHANGE here if for some weird reason the default definitions are not
42132 +** good enough for your machine. (The definitions in the 'else'
42133 +** part always works, but may waste space on machines with 64-bit
42134 +** longs.) Probably you do not need to change this.
42136 +#if LUAI_BITSINT >= 32
42137 +#define LUAI_UINT32 unsigned int
42138 +#define LUAI_INT32 int
42139 +#define LUAI_MAXINT32 INT_MAX
42140 +#define LUAI_UMEM size_t
42141 +#define LUAI_MEM ptrdiff_t
42144 +#define LUAI_UINT32 unsigned long
42145 +#define LUAI_INT32 long
42146 +#define LUAI_MAXINT32 LONG_MAX
42147 +#define LUAI_UMEM unsigned long
42148 +#define LUAI_MEM long
42153 +@@ LUAI_MAXCALLS limits the number of nested calls.
42154 +** CHANGE it if you need really deep recursive calls. This limit is
42155 +** arbitrary; its only purpose is to stop infinite recursion before
42156 +** exhausting memory.
42158 +#define LUAI_MAXCALLS 20000
42162 +@@ LUAI_MAXCSTACK limits the number of Lua stack slots that a C function
42164 +** CHANGE it if you need lots of (Lua) stack space for your C
42165 +** functions. This limit is arbitrary; its only purpose is to stop C
42166 +** functions to consume unlimited stack space.
42168 +#define LUAI_MCS_AUX ((int)(INT_MAX / (4*sizeof(LUA_NUMBER))))
42169 +#define LUAI_MAXCSTACK (LUAI_MCS_AUX > SHRT_MAX ? SHRT_MAX : LUAI_MCS_AUX)
42174 +** {==================================================================
42175 +** CHANGE (to smaller values) the following definitions if your system
42176 +** has a small C stack. (Or you may want to change them to larger
42177 +** values if your system has a large C stack and these limits are
42178 +** too rigid for you.) Some of these constants control the size of
42179 +** stack-allocated arrays used by the compiler or the interpreter, while
42180 +** others limit the maximum number of recursive calls that the compiler
42181 +** or the interpreter can perform. Values too large may cause a C stack
42182 +** overflow for some forms of deep constructs.
42183 +** ===================================================================
42188 +@@ LUAI_MAXCCALLS is the maximum depth for nested C calls (short) and
42189 +@* syntactical nested non-terminals in a program.
42191 +#define LUAI_MAXCCALLS 200
42195 +@@ LUAI_MAXVARS is the maximum number of local variables per function
42196 +@* (must be smaller than 250).
42198 +#define LUAI_MAXVARS 200
42202 +@@ LUAI_MAXUPVALUES is the maximum number of upvalues per function
42203 +@* (must be smaller than 250).
42205 +#define LUAI_MAXUPVALUES 60
42209 +@@ LUAL_BUFFERSIZE is the buffer size used by the lauxlib buffer system.
42211 +#define LUAL_BUFFERSIZE BUFSIZ
42213 +/* }================================================================== */
42219 +** {==================================================================
42220 +@@ LUA_NUMBER is the type of numbers in Lua.
42221 +** CHANGE the following definitions only if you want to build Lua
42222 +** with a number type different from double. You may also need to
42223 +** change lua_number2int & lua_number2integer.
42224 +** ===================================================================
42227 +#define LUA_NUMBER_DOUBLE
42228 +#define LUA_NUMBER double
42231 +@@ LUAI_UACNUMBER is the result of an 'usual argument conversion'
42234 +#define LUAI_UACNUMBER double
42238 +@@ LUA_NUMBER_SCAN is the format for reading numbers.
42239 +@@ LUA_NUMBER_FMT is the format for writing numbers.
42240 +@@ lua_number2str converts a number to a string.
42241 +@@ LUAI_MAXNUMBER2STR is maximum size of previous conversion.
42242 +@@ lua_str2number converts a string to a number.
42244 +#define LUA_NUMBER_SCAN "%lf"
42245 +#define LUA_NUMBER_FMT "%.14g"
42246 +#define lua_number2str(s,n) sprintf((s), LUA_NUMBER_FMT, (n))
42247 +#define LUAI_MAXNUMBER2STR 32 /* 16 digits, sign, point, and \0 */
42248 +#define lua_str2number(s,p) strtod((s), (p))
42252 +@@ The luai_num* macros define the primitive operations over numbers.
42254 +#if defined(LUA_CORE)
42256 +#define luai_numadd(a,b) ((a)+(b))
42257 +#define luai_numsub(a,b) ((a)-(b))
42258 +#define luai_nummul(a,b) ((a)*(b))
42259 +#define luai_numdiv(a,b) ((a)/(b))
42260 +#define luai_nummod(a,b) ((a) - floor((a)/(b))*(b))
42261 +#define luai_numpow(a,b) (pow(a,b))
42262 +#define luai_numunm(a) (-(a))
42263 +#define luai_numeq(a,b) ((a)==(b))
42264 +#define luai_numlt(a,b) ((a)<(b))
42265 +#define luai_numle(a,b) ((a)<=(b))
42266 +#define luai_numisnan(a) (!luai_numeq((a), (a)))
42271 +@@ lua_number2int is a macro to convert lua_Number to int.
42272 +@@ lua_number2integer is a macro to convert lua_Number to lua_Integer.
42273 +** CHANGE them if you know a faster way to convert a lua_Number to
42274 +** int (with any rounding method and without throwing errors) in your
42275 +** system. In Pentium machines, a naive typecast from double to int
42276 +** in C is extremely slow, so any alternative is worth trying.
42279 +/* On a Pentium, resort to a trick */
42280 +#if defined(LUA_NUMBER_DOUBLE) && !defined(LUA_ANSI) && !defined(__SSE2__) && \
42281 + (defined(__i386) || defined (_M_IX86) || defined(__i386__))
42282 +union luai_Cast { double l_d; long l_l; };
42283 +#define lua_number2int(i,d) \
42284 + { volatile union luai_Cast u; u.l_d = (d) + 6755399441055744.0; (i) = u.l_l; }
42285 +#define lua_number2integer(i,n) lua_number2int(i, n)
42287 +/* this option always works, but may be slow */
42289 +#define lua_number2int(i,d) ((i)=(int)(d))
42290 +#define lua_number2integer(i,d) ((i)=(lua_Integer)(d))
42294 +/* }================================================================== */
42298 +@@ LUAI_USER_ALIGNMENT_T is a type that requires maximum alignment.
42299 +** CHANGE it if your system requires alignments larger than double. (For
42300 +** instance, if your system supports long doubles and they must be
42301 +** aligned in 16-byte boundaries, then you should add long double in the
42302 +** union.) Probably you do not need to change this.
42304 +#define LUAI_USER_ALIGNMENT_T union { double u; void *s; long l; }
42308 +@@ LUAI_THROW/LUAI_TRY define how Lua does exception handling.
42309 +** CHANGE them if you prefer to use longjmp/setjmp even with C++
42310 +** or if want/don't to use _longjmp/_setjmp instead of regular
42311 +** longjmp/setjmp. By default, Lua handles errors with exceptions when
42312 +** compiling as C++ code, with _longjmp/_setjmp when asked to use them,
42313 +** and with longjmp/setjmp otherwise.
42315 +#if defined(__cplusplus)
42316 +/* C++ exceptions */
42317 +#define LUAI_THROW(L,c) throw(c)
42318 +#define LUAI_TRY(L,c,a) try { a } catch(...) \
42319 + { if ((c)->status == 0) (c)->status = -1; }
42320 +#define luai_jmpbuf int /* dummy variable */
42322 +#elif defined(LUA_USE_ULONGJMP)
42323 +/* in Unix, try _longjmp/_setjmp (more efficient) */
42324 +#define LUAI_THROW(L,c) _longjmp((c)->b, 1)
42325 +#define LUAI_TRY(L,c,a) if (_setjmp((c)->b) == 0) { a }
42326 +#define luai_jmpbuf jmp_buf
42329 +/* default handling with long jumps */
42330 +#define LUAI_THROW(L,c) longjmp((c)->b, 1)
42331 +#define LUAI_TRY(L,c,a) if (setjmp((c)->b) == 0) { a }
42332 +#define luai_jmpbuf jmp_buf
42338 +@@ LUA_MAXCAPTURES is the maximum number of captures that a pattern
42339 +@* can do during pattern-matching.
42340 +** CHANGE it if you need more captures. This limit is arbitrary.
42342 +#define LUA_MAXCAPTURES 32
42346 +@@ lua_tmpnam is the function that the OS library uses to create a
42347 +@* temporary name.
42348 +@@ LUA_TMPNAMBUFSIZE is the maximum size of a name created by lua_tmpnam.
42349 +** CHANGE them if you have an alternative to tmpnam (which is considered
42350 +** insecure) or if you want the original tmpnam anyway. By default, Lua
42351 +** uses tmpnam except when POSIX is available, where it uses mkstemp.
42353 +#if defined(loslib_c) || defined(luaall_c)
42355 +#if defined(LUA_USE_MKSTEMP)
42356 +#include <unistd.h>
42357 +#define LUA_TMPNAMBUFSIZE 32
42358 +#define lua_tmpnam(b,e) { \
42359 + strcpy(b, "/tmp/lua_XXXXXX"); \
42360 + e = mkstemp(b); \
42361 + if (e != -1) close(e); \
42365 +#define LUA_TMPNAMBUFSIZE L_tmpnam
42366 +#define lua_tmpnam(b,e) { e = (tmpnam(b) == NULL); }
42373 +@@ lua_popen spawns a new process connected to the current one through
42374 +@* the file streams.
42375 +** CHANGE it if you have a way to implement it in your system.
42377 +#if defined(LUA_USE_POPEN)
42379 +#define lua_popen(L,c,m) ((void)L, fflush(NULL), popen(c,m))
42380 +#define lua_pclose(L,file) ((void)L, (pclose(file) != -1))
42382 +#elif defined(LUA_WIN)
42384 +#define lua_popen(L,c,m) ((void)L, _popen(c,m))
42385 +#define lua_pclose(L,file) ((void)L, (_pclose(file) != -1))
42389 +#define lua_popen(L,c,m) ((void)((void)c, m), \
42390 + luaL_error(L, LUA_QL("popen") " not supported"), (FILE*)0)
42391 +#define lua_pclose(L,file) ((void)((void)L, file), 0)
42396 +@@ LUA_DL_* define which dynamic-library system Lua should use.
42397 +** CHANGE here if Lua has problems choosing the appropriate
42398 +** dynamic-library system for your platform (either Windows' DLL, Mac's
42399 +** dyld, or Unix's dlopen). If your system is some kind of Unix, there
42400 +** is a good chance that it has dlopen, so LUA_DL_DLOPEN will work for
42401 +** it. To use dlopen you also need to adapt the src/Makefile (probably
42402 +** adding -ldl to the linker options), so Lua does not select it
42403 +** automatically. (When you change the makefile to add -ldl, you must
42404 +** also add -DLUA_USE_DLOPEN.)
42405 +** If you do not want any kind of dynamic library, undefine all these
42407 +** By default, _WIN32 gets LUA_DL_DLL and MAC OS X gets LUA_DL_DYLD.
42409 +#if defined(LUA_WIN)
42410 +#define LUA_DL_DLL
42415 +@@ LUAI_EXTRASPACE allows you to add user-specific data in a lua_State
42416 +@* (the data goes just *before* the lua_State pointer).
42417 +** CHANGE (define) this if you really need that. This value must be
42418 +** a multiple of the maximum alignment required for your machine.
42420 +#define LUAI_EXTRASPACE 0
42424 +@@ luai_userstate* allow user-specific actions on threads.
42425 +** CHANGE them if you defined LUAI_EXTRASPACE and need to do something
42426 +** extra when a thread is created/deleted/resumed/yielded.
42428 +#define luai_userstateopen(L) ((void)L)
42429 +#define luai_userstateclose(L) ((void)L)
42430 +#define luai_userstatethread(L,L1) ((void)L)
42431 +#define luai_userstatefree(L) ((void)L)
42432 +#define luai_userstateresume(L,n) ((void)L)
42433 +#define luai_userstateyield(L,n) ((void)L)
42437 +@@ LUA_INTFRMLEN is the length modifier for integer conversions
42438 +@* in 'string.format'.
42439 +@@ LUA_INTFRM_T is the integer type correspoding to the previous length
42441 +** CHANGE them if your system supports long long or does not support long.
42444 +#if defined(LUA_USELONGLONG)
42446 +#define LUA_INTFRMLEN "ll"
42447 +#define LUA_INTFRM_T long long
42451 +#define LUA_INTFRMLEN "l"
42452 +#define LUA_INTFRM_T long
42458 +/* =================================================================== */
42461 +** Local configuration. You can use this space to add your redefinitions
42462 +** without modifying the main part of the file.
42469 diff -urN lua-5.1.4/src/Makefile lua-5.1.4-autotoolize/src/Makefile
42470 --- lua-5.1.4/src/Makefile 2008-01-19 20:37:58.000000000 +0100
42471 +++ lua-5.1.4-autotoolize/src/Makefile 2008-09-03 13:18:32.000000000 +0200
42473 -# makefile for building Lua
42474 -# see ../INSTALL for installation instructions
42475 -# see ../Makefile and luaconf.h for further customization
42477 -# == CHANGE THE SETTINGS BELOW TO SUIT YOUR ENVIRONMENT =======================
42479 -# Your platform. See PLATS for possible values.
42483 -CFLAGS= -O2 -Wall $(MYCFLAGS)
42487 -LIBS= -lm $(MYLIBS)
42493 -# == END OF USER SETTINGS. NO NEED TO CHANGE ANYTHING BELOW THIS LINE =========
42495 -PLATS= aix ansi bsd freebsd generic linux macosx mingw posix solaris
42498 -CORE_O= lapi.o lcode.o ldebug.o ldo.o ldump.o lfunc.o lgc.o llex.o lmem.o \
42499 - lobject.o lopcodes.o lparser.o lstate.o lstring.o ltable.o ltm.o \
42500 - lundump.o lvm.o lzio.o
42501 -LIB_O= lauxlib.o lbaselib.o ldblib.o liolib.o lmathlib.o loslib.o ltablib.o \
42502 - lstrlib.o loadlib.o linit.o
42508 -LUAC_O= luac.o print.o
42510 -ALL_O= $(CORE_O) $(LIB_O) $(LUA_O) $(LUAC_O)
42511 -ALL_T= $(LUA_A) $(LUA_T) $(LUAC_T)
42522 -$(LUA_A): $(CORE_O) $(LIB_O)
42526 -$(LUA_T): $(LUA_O) $(LUA_A)
42527 - $(CC) -o $@ $(MYLDFLAGS) $(LUA_O) $(LUA_A) $(LIBS)
42529 -$(LUAC_T): $(LUAC_O) $(LUA_A)
42530 - $(CC) -o $@ $(MYLDFLAGS) $(LUAC_O) $(LUA_A) $(LIBS)
42533 - $(RM) $(ALL_T) $(ALL_O)
42536 - @$(CC) $(CFLAGS) -MM l*.c print.c
42539 - @echo "PLAT = $(PLAT)"
42540 - @echo "CC = $(CC)"
42541 - @echo "CFLAGS = $(CFLAGS)"
42542 - @echo "AR = $(AR)"
42543 - @echo "RANLIB = $(RANLIB)"
42544 - @echo "RM = $(RM)"
42545 - @echo "MYCFLAGS = $(MYCFLAGS)"
42546 - @echo "MYLDFLAGS = $(MYLDFLAGS)"
42547 - @echo "MYLIBS = $(MYLIBS)"
42549 -# convenience targets for popular platforms
42552 - @echo "Please choose a platform:"
42553 - @echo " $(PLATS)"
42556 - $(MAKE) all CC="xlc" CFLAGS="-O2 -DLUA_USE_POSIX -DLUA_USE_DLOPEN" MYLIBS="-ldl" MYLDFLAGS="-brtl -bexpall"
42559 - $(MAKE) all MYCFLAGS=-DLUA_ANSI
42562 - $(MAKE) all MYCFLAGS="-DLUA_USE_POSIX -DLUA_USE_DLOPEN" MYLIBS="-Wl,-E"
42565 - $(MAKE) all MYCFLAGS="-DLUA_USE_LINUX" MYLIBS="-Wl,-E -lreadline"
42568 - $(MAKE) all MYCFLAGS=
42571 - $(MAKE) all MYCFLAGS=-DLUA_USE_LINUX MYLIBS="-Wl,-E -ldl -lreadline -lhistory -lncurses"
42574 - $(MAKE) all MYCFLAGS=-DLUA_USE_LINUX MYLIBS="-lreadline"
42575 -# use this on Mac OS X 10.3-
42576 -# $(MAKE) all MYCFLAGS=-DLUA_USE_MACOSX
42579 - $(MAKE) "LUA_A=lua51.dll" "LUA_T=lua.exe" \
42580 - "AR=$(CC) -shared -o" "RANLIB=strip --strip-unneeded" \
42581 - "MYCFLAGS=-DLUA_BUILD_AS_DLL" "MYLIBS=" "MYLDFLAGS=-s" lua.exe
42582 - $(MAKE) "LUAC_T=luac.exe" luac.exe
42585 - $(MAKE) all MYCFLAGS=-DLUA_USE_POSIX
42588 - $(MAKE) all MYCFLAGS="-DLUA_USE_POSIX -DLUA_USE_DLOPEN" MYLIBS="-ldl"
42590 -# list targets that do not create files (but not all makes understand .PHONY)
42591 -.PHONY: all $(PLATS) default o a clean depend echo none
42595 -lapi.o: lapi.c lua.h luaconf.h lapi.h lobject.h llimits.h ldebug.h \
42596 - lstate.h ltm.h lzio.h lmem.h ldo.h lfunc.h lgc.h lstring.h ltable.h \
42598 -lauxlib.o: lauxlib.c lua.h luaconf.h lauxlib.h
42599 -lbaselib.o: lbaselib.c lua.h luaconf.h lauxlib.h lualib.h
42600 -lcode.o: lcode.c lua.h luaconf.h lcode.h llex.h lobject.h llimits.h \
42601 - lzio.h lmem.h lopcodes.h lparser.h ldebug.h lstate.h ltm.h ldo.h lgc.h \
42603 -ldblib.o: ldblib.c lua.h luaconf.h lauxlib.h lualib.h
42604 -ldebug.o: ldebug.c lua.h luaconf.h lapi.h lobject.h llimits.h lcode.h \
42605 - llex.h lzio.h lmem.h lopcodes.h lparser.h ldebug.h lstate.h ltm.h ldo.h \
42606 - lfunc.h lstring.h lgc.h ltable.h lvm.h
42607 -ldo.o: ldo.c lua.h luaconf.h ldebug.h lstate.h lobject.h llimits.h ltm.h \
42608 - lzio.h lmem.h ldo.h lfunc.h lgc.h lopcodes.h lparser.h lstring.h \
42609 - ltable.h lundump.h lvm.h
42610 -ldump.o: ldump.c lua.h luaconf.h lobject.h llimits.h lstate.h ltm.h \
42611 - lzio.h lmem.h lundump.h
42612 -lfunc.o: lfunc.c lua.h luaconf.h lfunc.h lobject.h llimits.h lgc.h lmem.h \
42613 - lstate.h ltm.h lzio.h
42614 -lgc.o: lgc.c lua.h luaconf.h ldebug.h lstate.h lobject.h llimits.h ltm.h \
42615 - lzio.h lmem.h ldo.h lfunc.h lgc.h lstring.h ltable.h
42616 -linit.o: linit.c lua.h luaconf.h lualib.h lauxlib.h
42617 -liolib.o: liolib.c lua.h luaconf.h lauxlib.h lualib.h
42618 -llex.o: llex.c lua.h luaconf.h ldo.h lobject.h llimits.h lstate.h ltm.h \
42619 - lzio.h lmem.h llex.h lparser.h lstring.h lgc.h ltable.h
42620 -lmathlib.o: lmathlib.c lua.h luaconf.h lauxlib.h lualib.h
42621 -lmem.o: lmem.c lua.h luaconf.h ldebug.h lstate.h lobject.h llimits.h \
42622 - ltm.h lzio.h lmem.h ldo.h
42623 -loadlib.o: loadlib.c lua.h luaconf.h lauxlib.h lualib.h
42624 -lobject.o: lobject.c lua.h luaconf.h ldo.h lobject.h llimits.h lstate.h \
42625 - ltm.h lzio.h lmem.h lstring.h lgc.h lvm.h
42626 -lopcodes.o: lopcodes.c lopcodes.h llimits.h lua.h luaconf.h
42627 -loslib.o: loslib.c lua.h luaconf.h lauxlib.h lualib.h
42628 -lparser.o: lparser.c lua.h luaconf.h lcode.h llex.h lobject.h llimits.h \
42629 - lzio.h lmem.h lopcodes.h lparser.h ldebug.h lstate.h ltm.h ldo.h \
42630 - lfunc.h lstring.h lgc.h ltable.h
42631 -lstate.o: lstate.c lua.h luaconf.h ldebug.h lstate.h lobject.h llimits.h \
42632 - ltm.h lzio.h lmem.h ldo.h lfunc.h lgc.h llex.h lstring.h ltable.h
42633 -lstring.o: lstring.c lua.h luaconf.h lmem.h llimits.h lobject.h lstate.h \
42634 - ltm.h lzio.h lstring.h lgc.h
42635 -lstrlib.o: lstrlib.c lua.h luaconf.h lauxlib.h lualib.h
42636 -ltable.o: ltable.c lua.h luaconf.h ldebug.h lstate.h lobject.h llimits.h \
42637 - ltm.h lzio.h lmem.h ldo.h lgc.h ltable.h
42638 -ltablib.o: ltablib.c lua.h luaconf.h lauxlib.h lualib.h
42639 -ltm.o: ltm.c lua.h luaconf.h lobject.h llimits.h lstate.h ltm.h lzio.h \
42640 - lmem.h lstring.h lgc.h ltable.h
42641 -lua.o: lua.c lua.h luaconf.h lauxlib.h lualib.h
42642 -luac.o: luac.c lua.h luaconf.h lauxlib.h ldo.h lobject.h llimits.h \
42643 - lstate.h ltm.h lzio.h lmem.h lfunc.h lopcodes.h lstring.h lgc.h \
42645 -lundump.o: lundump.c lua.h luaconf.h ldebug.h lstate.h lobject.h \
42646 - llimits.h ltm.h lzio.h lmem.h ldo.h lfunc.h lstring.h lgc.h lundump.h
42647 -lvm.o: lvm.c lua.h luaconf.h ldebug.h lstate.h lobject.h llimits.h ltm.h \
42648 - lzio.h lmem.h ldo.h lfunc.h lgc.h lopcodes.h lstring.h ltable.h lvm.h
42649 -lzio.o: lzio.c lua.h luaconf.h llimits.h lmem.h lstate.h lobject.h ltm.h \
42651 -print.o: print.c ldebug.h lstate.h lua.h luaconf.h lobject.h llimits.h \
42652 - ltm.h lzio.h lmem.h lopcodes.h lundump.h
42654 -# (end of Makefile)
42655 diff -urN lua-5.1.4/src/Makefile.am lua-5.1.4-autotoolize/src/Makefile.am
42656 --- lua-5.1.4/src/Makefile.am 1970-01-01 01:00:00.000000000 +0100
42657 +++ lua-5.1.4-autotoolize/src/Makefile.am 2008-09-03 13:18:37.000000000 +0200
42661 +include_HEADERS = lua.h lualib.h lauxlib.h
42662 +nodist_include_HEADERS = luaconf.h
42664 +lib_LTLIBRARIES = liblua.la
42665 +liblua_la_LDFLAGS = -release 5.1
42666 +liblua_la_SOURCES = \
42667 + lapi.c lcode.c ldebug.c ldo.c ldump.c lfunc.c lgc.c llex.c lmem.c \
42668 + lobject.c lopcodes.c lparser.c lstate.c lstring.c ltable.c ltm.c \
42669 + lundump.c lvm.c lzio.c \
42670 + lauxlib.c lbaselib.c ldblib.c liolib.c lmathlib.c loslib.c ltablib.c \
42671 + lstrlib.c loadlib.c linit.c \
42672 + lapi.h ldebug.h lgc.h lmem.h lparser.h ltable.h lzio.h ldo.h llex.h \
42673 + lobject.h lstate.h ltm.h lundump.h lcode.h lfunc.h llimits.h lopcodes.h \
42676 +bin_PROGRAMS = lua luac
42678 +lua_SOURCES = lua.c
42679 +lua_LDADD = liblua.la @LUA_LIBS@
42680 +lua_DEPENDENCIES = liblua.la
42682 +luac_SOURCES = luac.c print.c
42683 +luac_LDADD = liblua.la @LUA_LIBS@
42684 +luac_DEPENDENCIES = liblua.la
42686 +# luac must be linked statically because it uses functions that
42687 +# don't get exported to the shared object
42688 +luac_LDFLAGS = -static
42690 +EXTRA_DIST = luaconf.h.template.in
42691 +BUILT_SOURCES = luaconf.h
42692 +CLEANFILES = luaconf.h
42694 +readline_defs = @READLINE_DEFS@
42697 + -e 's,%lua_datadir%,$(datadir),g' \
42698 + -e 's,%lua_libdir%,$(libdir),g'
42700 +luaconf.h : $(srcdir)/luaconf.h.template
42701 + rm -f luaconf.h luaconf.h.tmp
42702 + $(edit) $(srcdir)/luaconf.h.template > luaconf.h.tmp
42703 + mv luaconf.h.tmp luaconf.h
42704 diff -urN lua-5.1.4/src/Makefile.in lua-5.1.4-autotoolize/src/Makefile.in
42705 --- lua-5.1.4/src/Makefile.in 1970-01-01 01:00:00.000000000 +0100
42706 +++ lua-5.1.4-autotoolize/src/Makefile.in 2008-09-03 13:18:37.000000000 +0200
42708 +# Makefile.in generated by automake 1.9.6 from Makefile.am.
42709 +# @configure_input@
42711 +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
42712 +# 2003, 2004, 2005 Free Software Foundation, Inc.
42713 +# This Makefile.in is free software; the Free Software Foundation
42714 +# gives unlimited permission to copy and/or distribute it,
42715 +# with or without modifications, as long as this notice is preserved.
42717 +# This program is distributed in the hope that it will be useful,
42718 +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
42719 +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
42720 +# PARTICULAR PURPOSE.
42727 +top_srcdir = @top_srcdir@
42729 +pkgdatadir = $(datadir)/@PACKAGE@
42730 +pkglibdir = $(libdir)/@PACKAGE@
42731 +pkgincludedir = $(includedir)/@PACKAGE@
42733 +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
42734 +INSTALL = @INSTALL@
42735 +install_sh_DATA = $(install_sh) -c -m 644
42736 +install_sh_PROGRAM = $(install_sh) -c
42737 +install_sh_SCRIPT = $(install_sh) -c
42738 +INSTALL_HEADER = $(INSTALL_DATA)
42739 +transform = $(program_transform_name)
42740 +NORMAL_INSTALL = :
42743 +NORMAL_UNINSTALL = :
42745 +POST_UNINSTALL = :
42746 +build_triplet = @build@
42747 +host_triplet = @host@
42748 +bin_PROGRAMS = lua$(EXEEXT) luac$(EXEEXT)
42750 +DIST_COMMON = $(include_HEADERS) $(srcdir)/Makefile.am \
42751 + $(srcdir)/Makefile.in $(srcdir)/luaconf.h.template.in
42752 +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
42753 +am__aclocal_m4_deps = $(top_srcdir)/configure.ac
42754 +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
42756 +mkinstalldirs = $(install_sh) -d
42757 +CONFIG_HEADER = $(top_builddir)/config.h
42758 +CONFIG_CLEAN_FILES = luaconf.h.template
42759 +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
42760 +am__vpath_adj = case $$p in \
42761 + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
42764 +am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
42765 +am__installdirs = "$(DESTDIR)$(libdir)" "$(DESTDIR)$(bindir)" \
42766 + "$(DESTDIR)$(includedir)" "$(DESTDIR)$(includedir)"
42767 +libLTLIBRARIES_INSTALL = $(INSTALL)
42768 +LTLIBRARIES = $(lib_LTLIBRARIES)
42769 +liblua_la_LIBADD =
42770 +am_liblua_la_OBJECTS = lapi.lo lcode.lo ldebug.lo ldo.lo ldump.lo \
42771 + lfunc.lo lgc.lo llex.lo lmem.lo lobject.lo lopcodes.lo \
42772 + lparser.lo lstate.lo lstring.lo ltable.lo ltm.lo lundump.lo \
42773 + lvm.lo lzio.lo lauxlib.lo lbaselib.lo ldblib.lo liolib.lo \
42774 + lmathlib.lo loslib.lo ltablib.lo lstrlib.lo loadlib.lo \
42776 +liblua_la_OBJECTS = $(am_liblua_la_OBJECTS)
42777 +binPROGRAMS_INSTALL = $(INSTALL_PROGRAM)
42778 +PROGRAMS = $(bin_PROGRAMS)
42779 +am_lua_OBJECTS = lua.$(OBJEXT)
42780 +lua_OBJECTS = $(am_lua_OBJECTS)
42781 +am_luac_OBJECTS = luac.$(OBJEXT) print.$(OBJEXT)
42782 +luac_OBJECTS = $(am_luac_OBJECTS)
42783 +DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)
42784 +depcomp = $(SHELL) $(top_srcdir)/depcomp
42785 +am__depfiles_maybe = depfiles
42786 +COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
42787 + $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
42788 +LTCOMPILE = $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) \
42789 + $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
42790 + $(AM_CFLAGS) $(CFLAGS)
42792 +LINK = $(LIBTOOL) --tag=CC --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
42793 + $(AM_LDFLAGS) $(LDFLAGS) -o $@
42794 +SOURCES = $(liblua_la_SOURCES) $(lua_SOURCES) $(luac_SOURCES)
42795 +DIST_SOURCES = $(liblua_la_SOURCES) $(lua_SOURCES) $(luac_SOURCES)
42796 +includeHEADERS_INSTALL = $(INSTALL_HEADER)
42797 +nodist_includeHEADERS_INSTALL = $(INSTALL_HEADER)
42798 +HEADERS = $(include_HEADERS) $(nodist_include_HEADERS)
42801 +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
42802 +ACLOCAL = @ACLOCAL@
42803 +AMDEP_FALSE = @AMDEP_FALSE@
42804 +AMDEP_TRUE = @AMDEP_TRUE@
42807 +AUTOCONF = @AUTOCONF@
42808 +AUTOHEADER = @AUTOHEADER@
42809 +AUTOMAKE = @AUTOMAKE@
42812 +CCDEPMODE = @CCDEPMODE@
42815 +CPPFLAGS = @CPPFLAGS@
42818 +CXXDEPMODE = @CXXDEPMODE@
42819 +CXXFLAGS = @CXXFLAGS@
42820 +CYGPATH_W = @CYGPATH_W@
42831 +INSTALL_DATA = @INSTALL_DATA@
42832 +INSTALL_PROGRAM = @INSTALL_PROGRAM@
42833 +INSTALL_SCRIPT = @INSTALL_SCRIPT@
42834 +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
42835 +LDFLAGS = @LDFLAGS@
42836 +LIBOBJS = @LIBOBJS@
42838 +LIBTOOL = @LIBTOOL@
42840 +LTLIBOBJS = @LTLIBOBJS@
42841 +LUA_BUILD_AS_DLL_DEFS = @LUA_BUILD_AS_DLL_DEFS@
42842 +LUA_DL_DEFS = @LUA_DL_DEFS@
42843 +LUA_LIBS = @LUA_LIBS@
42844 +MAKEINFO = @MAKEINFO@
42846 +PACKAGE = @PACKAGE@
42847 +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
42848 +PACKAGE_NAME = @PACKAGE_NAME@
42849 +PACKAGE_STRING = @PACKAGE_STRING@
42850 +PACKAGE_TARNAME = @PACKAGE_TARNAME@
42851 +PACKAGE_VERSION = @PACKAGE_VERSION@
42852 +PATH_SEPARATOR = @PATH_SEPARATOR@
42853 +POSIX_DEFS = @POSIX_DEFS@
42855 +READLINE_DEFS = @READLINE_DEFS@
42856 +SET_MAKE = @SET_MAKE@
42859 +VERSION = @VERSION@
42860 +ac_ct_AR = @ac_ct_AR@
42861 +ac_ct_CC = @ac_ct_CC@
42862 +ac_ct_CXX = @ac_ct_CXX@
42863 +ac_ct_F77 = @ac_ct_F77@
42864 +ac_ct_RANLIB = @ac_ct_RANLIB@
42865 +ac_ct_STRIP = @ac_ct_STRIP@
42866 +am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
42867 +am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
42868 +am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
42869 +am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
42870 +am__include = @am__include@
42871 +am__leading_dot = @am__leading_dot@
42872 +am__quote = @am__quote@
42873 +am__tar = @am__tar@
42874 +am__untar = @am__untar@
42877 +build_alias = @build_alias@
42878 +build_cpu = @build_cpu@
42879 +build_os = @build_os@
42880 +build_vendor = @build_vendor@
42881 +datadir = @datadir@
42882 +exec_prefix = @exec_prefix@
42884 +host_alias = @host_alias@
42885 +host_cpu = @host_cpu@
42886 +host_os = @host_os@
42887 +host_vendor = @host_vendor@
42888 +includedir = @includedir@
42889 +infodir = @infodir@
42890 +install_sh = @install_sh@
42892 +libexecdir = @libexecdir@
42893 +localstatedir = @localstatedir@
42895 +mkdir_p = @mkdir_p@
42896 +oldincludedir = @oldincludedir@
42898 +program_transform_name = @program_transform_name@
42899 +sbindir = @sbindir@
42900 +sharedstatedir = @sharedstatedir@
42901 +sysconfdir = @sysconfdir@
42902 +target_alias = @target_alias@
42904 +include_HEADERS = lua.h lualib.h lauxlib.h
42905 +nodist_include_HEADERS = luaconf.h
42906 +lib_LTLIBRARIES = liblua.la
42907 +liblua_la_LDFLAGS = -release 5.1
42908 +liblua_la_SOURCES = \
42909 + lapi.c lcode.c ldebug.c ldo.c ldump.c lfunc.c lgc.c llex.c lmem.c \
42910 + lobject.c lopcodes.c lparser.c lstate.c lstring.c ltable.c ltm.c \
42911 + lundump.c lvm.c lzio.c \
42912 + lauxlib.c lbaselib.c ldblib.c liolib.c lmathlib.c loslib.c ltablib.c \
42913 + lstrlib.c loadlib.c linit.c \
42914 + lapi.h ldebug.h lgc.h lmem.h lparser.h ltable.h lzio.h ldo.h llex.h \
42915 + lobject.h lstate.h ltm.h lundump.h lcode.h lfunc.h llimits.h lopcodes.h \
42918 +lua_SOURCES = lua.c
42919 +lua_LDADD = liblua.la @LUA_LIBS@
42920 +lua_DEPENDENCIES = liblua.la
42921 +luac_SOURCES = luac.c print.c
42922 +luac_LDADD = liblua.la @LUA_LIBS@
42923 +luac_DEPENDENCIES = liblua.la
42925 +# luac must be linked statically because it uses functions that
42926 +# don't get exported to the shared object
42927 +luac_LDFLAGS = -static
42928 +EXTRA_DIST = luaconf.h.template.in
42929 +BUILT_SOURCES = luaconf.h
42930 +CLEANFILES = luaconf.h
42931 +readline_defs = @READLINE_DEFS@
42933 + -e 's,%lua_datadir%,$(datadir),g' \
42934 + -e 's,%lua_libdir%,$(libdir),g'
42936 +all: $(BUILT_SOURCES)
42937 + $(MAKE) $(AM_MAKEFLAGS) all-am
42940 +.SUFFIXES: .c .lo .o .obj
42941 +$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
42942 + @for dep in $?; do \
42943 + case '$(am__configure_deps)' in \
42945 + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
42950 + echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign src/Makefile'; \
42951 + cd $(top_srcdir) && \
42952 + $(AUTOMAKE) --foreign src/Makefile
42953 +.PRECIOUS: Makefile
42954 +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
42956 + *config.status*) \
42957 + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
42959 + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
42960 + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
42963 +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
42964 + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
42966 +$(top_srcdir)/configure: $(am__configure_deps)
42967 + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
42968 +$(ACLOCAL_M4): $(am__aclocal_m4_deps)
42969 + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
42970 +luaconf.h.template: $(top_builddir)/config.status $(srcdir)/luaconf.h.template.in
42971 + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@
42972 +install-libLTLIBRARIES: $(lib_LTLIBRARIES)
42973 + @$(NORMAL_INSTALL)
42974 + test -z "$(libdir)" || $(mkdir_p) "$(DESTDIR)$(libdir)"
42975 + @list='$(lib_LTLIBRARIES)'; for p in $$list; do \
42976 + if test -f $$p; then \
42977 + f=$(am__strip_dir) \
42978 + echo " $(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(libdir)/$$f'"; \
42979 + $(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(libdir)/$$f"; \
42983 +uninstall-libLTLIBRARIES:
42984 + @$(NORMAL_UNINSTALL)
42985 + @set -x; list='$(lib_LTLIBRARIES)'; for p in $$list; do \
42986 + p=$(am__strip_dir) \
42987 + echo " $(LIBTOOL) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$p'"; \
42988 + $(LIBTOOL) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$p"; \
42991 +clean-libLTLIBRARIES:
42992 + -test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES)
42993 + @list='$(lib_LTLIBRARIES)'; for p in $$list; do \
42994 + dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
42995 + test "$$dir" != "$$p" || dir=.; \
42996 + echo "rm -f \"$${dir}/so_locations\""; \
42997 + rm -f "$${dir}/so_locations"; \
42999 +liblua.la: $(liblua_la_OBJECTS) $(liblua_la_DEPENDENCIES)
43000 + $(LINK) -rpath $(libdir) $(liblua_la_LDFLAGS) $(liblua_la_OBJECTS) $(liblua_la_LIBADD) $(LIBS)
43001 +install-binPROGRAMS: $(bin_PROGRAMS)
43002 + @$(NORMAL_INSTALL)
43003 + test -z "$(bindir)" || $(mkdir_p) "$(DESTDIR)$(bindir)"
43004 + @list='$(bin_PROGRAMS)'; for p in $$list; do \
43005 + p1=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
43007 + || test -f $$p1 \
43009 + f=`echo "$$p1" | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'`; \
43010 + echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(binPROGRAMS_INSTALL) '$$p' '$(DESTDIR)$(bindir)/$$f'"; \
43011 + $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(binPROGRAMS_INSTALL) "$$p" "$(DESTDIR)$(bindir)/$$f" || exit 1; \
43015 +uninstall-binPROGRAMS:
43016 + @$(NORMAL_UNINSTALL)
43017 + @list='$(bin_PROGRAMS)'; for p in $$list; do \
43018 + f=`echo "$$p" | sed 's,^.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/'`; \
43019 + echo " rm -f '$(DESTDIR)$(bindir)/$$f'"; \
43020 + rm -f "$(DESTDIR)$(bindir)/$$f"; \
43023 +clean-binPROGRAMS:
43024 + @list='$(bin_PROGRAMS)'; for p in $$list; do \
43025 + f=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
43026 + echo " rm -f $$p $$f"; \
43027 + rm -f $$p $$f ; \
43029 +lua$(EXEEXT): $(lua_OBJECTS) $(lua_DEPENDENCIES)
43030 + @rm -f lua$(EXEEXT)
43031 + $(LINK) $(lua_LDFLAGS) $(lua_OBJECTS) $(lua_LDADD) $(LIBS)
43032 +luac$(EXEEXT): $(luac_OBJECTS) $(luac_DEPENDENCIES)
43033 + @rm -f luac$(EXEEXT)
43034 + $(LINK) $(luac_LDFLAGS) $(luac_OBJECTS) $(luac_LDADD) $(LIBS)
43036 +mostlyclean-compile:
43037 + -rm -f *.$(OBJEXT)
43039 +distclean-compile:
43042 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/lapi.Plo@am__quote@
43043 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/lauxlib.Plo@am__quote@
43044 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/lbaselib.Plo@am__quote@
43045 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/lcode.Plo@am__quote@
43046 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ldblib.Plo@am__quote@
43047 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ldebug.Plo@am__quote@
43048 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ldo.Plo@am__quote@
43049 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ldump.Plo@am__quote@
43050 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/lfunc.Plo@am__quote@
43051 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/lgc.Plo@am__quote@
43052 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/linit.Plo@am__quote@
43053 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/liolib.Plo@am__quote@
43054 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/llex.Plo@am__quote@
43055 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/lmathlib.Plo@am__quote@
43056 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/lmem.Plo@am__quote@
43057 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/loadlib.Plo@am__quote@
43058 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/lobject.Plo@am__quote@
43059 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/lopcodes.Plo@am__quote@
43060 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/loslib.Plo@am__quote@
43061 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/lparser.Plo@am__quote@
43062 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/lstate.Plo@am__quote@
43063 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/lstring.Plo@am__quote@
43064 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/lstrlib.Plo@am__quote@
43065 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ltable.Plo@am__quote@
43066 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ltablib.Plo@am__quote@
43067 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ltm.Plo@am__quote@
43068 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/lua.Po@am__quote@
43069 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/luac.Po@am__quote@
43070 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/lundump.Plo@am__quote@
43071 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/lvm.Plo@am__quote@
43072 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/lzio.Plo@am__quote@
43073 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/print.Po@am__quote@
43076 +@am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
43077 +@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
43078 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
43079 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
43080 +@am__fastdepCC_FALSE@ $(COMPILE) -c $<
43083 +@am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \
43084 +@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
43085 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
43086 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
43087 +@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
43090 +@am__fastdepCC_TRUE@ if $(LTCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
43091 +@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Plo"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
43092 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
43093 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
43094 +@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
43096 +mostlyclean-libtool:
43100 + -rm -rf .libs _libs
43102 +distclean-libtool:
43104 +uninstall-info-am:
43105 +install-includeHEADERS: $(include_HEADERS)
43106 + @$(NORMAL_INSTALL)
43107 + test -z "$(includedir)" || $(mkdir_p) "$(DESTDIR)$(includedir)"
43108 + @list='$(include_HEADERS)'; for p in $$list; do \
43109 + if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
43110 + f=$(am__strip_dir) \
43111 + echo " $(includeHEADERS_INSTALL) '$$d$$p' '$(DESTDIR)$(includedir)/$$f'"; \
43112 + $(includeHEADERS_INSTALL) "$$d$$p" "$(DESTDIR)$(includedir)/$$f"; \
43115 +uninstall-includeHEADERS:
43116 + @$(NORMAL_UNINSTALL)
43117 + @list='$(include_HEADERS)'; for p in $$list; do \
43118 + f=$(am__strip_dir) \
43119 + echo " rm -f '$(DESTDIR)$(includedir)/$$f'"; \
43120 + rm -f "$(DESTDIR)$(includedir)/$$f"; \
43122 +install-nodist_includeHEADERS: $(nodist_include_HEADERS)
43123 + @$(NORMAL_INSTALL)
43124 + test -z "$(includedir)" || $(mkdir_p) "$(DESTDIR)$(includedir)"
43125 + @list='$(nodist_include_HEADERS)'; for p in $$list; do \
43126 + if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
43127 + f=$(am__strip_dir) \
43128 + echo " $(nodist_includeHEADERS_INSTALL) '$$d$$p' '$(DESTDIR)$(includedir)/$$f'"; \
43129 + $(nodist_includeHEADERS_INSTALL) "$$d$$p" "$(DESTDIR)$(includedir)/$$f"; \
43132 +uninstall-nodist_includeHEADERS:
43133 + @$(NORMAL_UNINSTALL)
43134 + @list='$(nodist_include_HEADERS)'; for p in $$list; do \
43135 + f=$(am__strip_dir) \
43136 + echo " rm -f '$(DESTDIR)$(includedir)/$$f'"; \
43137 + rm -f "$(DESTDIR)$(includedir)/$$f"; \
43140 +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
43141 + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
43142 + unique=`for i in $$list; do \
43143 + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
43145 + $(AWK) ' { files[$$0] = 1; } \
43146 + END { for (i in files) print i; }'`; \
43147 + mkid -fID $$unique
43150 +TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
43151 + $(TAGS_FILES) $(LISP)
43154 + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
43155 + unique=`for i in $$list; do \
43156 + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
43158 + $(AWK) ' { files[$$0] = 1; } \
43159 + END { for (i in files) print i; }'`; \
43160 + if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
43161 + test -n "$$unique" || unique=$$empty_fix; \
43162 + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
43163 + $$tags $$unique; \
43166 +CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
43167 + $(TAGS_FILES) $(LISP)
43170 + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
43171 + unique=`for i in $$list; do \
43172 + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
43174 + $(AWK) ' { files[$$0] = 1; } \
43175 + END { for (i in files) print i; }'`; \
43176 + test -z "$(CTAGS_ARGS)$$tags$$unique" \
43177 + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
43181 + here=`$(am__cd) $(top_builddir) && pwd` \
43182 + && cd $(top_srcdir) \
43183 + && gtags -i $(GTAGS_ARGS) $$here
43186 + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
43188 +distdir: $(DISTFILES)
43189 + @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
43190 + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
43191 + list='$(DISTFILES)'; for file in $$list; do \
43193 + $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
43194 + $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
43196 + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
43197 + dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
43198 + if test "$$dir" != "$$file" && test "$$dir" != "."; then \
43200 + $(mkdir_p) "$(distdir)$$dir"; \
43204 + if test -d $$d/$$file; then \
43205 + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
43206 + cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
43208 + cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
43210 + test -f $(distdir)/$$file \
43211 + || cp -p $$d/$$file $(distdir)/$$file \
43216 +check: $(BUILT_SOURCES)
43217 + $(MAKE) $(AM_MAKEFLAGS) check-am
43218 +all-am: Makefile $(LTLIBRARIES) $(PROGRAMS) $(HEADERS)
43219 +install-binPROGRAMS: install-libLTLIBRARIES
43222 + for dir in "$(DESTDIR)$(libdir)" "$(DESTDIR)$(bindir)" "$(DESTDIR)$(includedir)" "$(DESTDIR)$(includedir)"; do \
43223 + test -z "$$dir" || $(mkdir_p) "$$dir"; \
43225 +install: $(BUILT_SOURCES)
43226 + $(MAKE) $(AM_MAKEFLAGS) install-am
43227 +install-exec: install-exec-am
43228 +install-data: install-data-am
43229 +uninstall: uninstall-am
43231 +install-am: all-am
43232 + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
43234 +installcheck: installcheck-am
43236 + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
43237 + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
43238 + `test -z '$(STRIP)' || \
43239 + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
43240 +mostlyclean-generic:
43243 + -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
43245 +distclean-generic:
43246 + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
43248 +maintainer-clean-generic:
43249 + @echo "This command is intended for maintainers to use"
43250 + @echo "it deletes files that may require special tools to rebuild."
43251 + -test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES)
43254 +clean-am: clean-binPROGRAMS clean-generic clean-libLTLIBRARIES \
43255 + clean-libtool mostlyclean-am
43257 +distclean: distclean-am
43258 + -rm -rf ./$(DEPDIR)
43260 +distclean-am: clean-am distclean-compile distclean-generic \
43261 + distclean-libtool distclean-tags
43273 +install-data-am: install-includeHEADERS install-nodist_includeHEADERS
43275 +install-exec-am: install-binPROGRAMS install-libLTLIBRARIES
43277 +install-info: install-info-am
43283 +maintainer-clean: maintainer-clean-am
43284 + -rm -rf ./$(DEPDIR)
43286 +maintainer-clean-am: distclean-am maintainer-clean-generic
43288 +mostlyclean: mostlyclean-am
43290 +mostlyclean-am: mostlyclean-compile mostlyclean-generic \
43291 + mostlyclean-libtool
43301 +uninstall-am: uninstall-binPROGRAMS uninstall-includeHEADERS \
43302 + uninstall-info-am uninstall-libLTLIBRARIES \
43303 + uninstall-nodist_includeHEADERS
43305 +.PHONY: CTAGS GTAGS all all-am check check-am clean clean-binPROGRAMS \
43306 + clean-generic clean-libLTLIBRARIES clean-libtool ctags \
43307 + distclean distclean-compile distclean-generic \
43308 + distclean-libtool distclean-tags distdir dvi dvi-am html \
43309 + html-am info info-am install install-am install-binPROGRAMS \
43310 + install-data install-data-am install-exec install-exec-am \
43311 + install-includeHEADERS install-info install-info-am \
43312 + install-libLTLIBRARIES install-man \
43313 + install-nodist_includeHEADERS install-strip installcheck \
43314 + installcheck-am installdirs maintainer-clean \
43315 + maintainer-clean-generic mostlyclean mostlyclean-compile \
43316 + mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
43317 + tags uninstall uninstall-am uninstall-binPROGRAMS \
43318 + uninstall-includeHEADERS uninstall-info-am \
43319 + uninstall-libLTLIBRARIES uninstall-nodist_includeHEADERS
43322 +luaconf.h : $(srcdir)/luaconf.h.template
43323 + rm -f luaconf.h luaconf.h.tmp
43324 + $(edit) $(srcdir)/luaconf.h.template > luaconf.h.tmp
43325 + mv luaconf.h.tmp luaconf.h
43326 +# Tell versions [3.59,3.63) of GNU make to not export all variables.
43327 +# Otherwise a system limit (for SysV at least) may be exceeded.
43329 diff -urN lua-5.1.4/test/Makefile.am lua-5.1.4-autotoolize/test/Makefile.am
43330 --- lua-5.1.4/test/Makefile.am 1970-01-01 01:00:00.000000000 +0100
43331 +++ lua-5.1.4-autotoolize/test/Makefile.am 2008-09-03 13:18:37.000000000 +0200
43334 + bisect.lua env.lua fib.lua life.lua printf.lua \
43335 + sieve.lua trace-calls.lua cf.lua factorial.lua globals.lua \
43336 + luac.lua README sort.lua trace-globals.lua echo.lua \
43337 + fibfor.lua hello.lua readonly.lua table.lua xd.lua
43338 diff -urN lua-5.1.4/test/Makefile.in lua-5.1.4-autotoolize/test/Makefile.in
43339 --- lua-5.1.4/test/Makefile.in 1970-01-01 01:00:00.000000000 +0100
43340 +++ lua-5.1.4-autotoolize/test/Makefile.in 2008-09-03 13:18:37.000000000 +0200
43342 +# Makefile.in generated by automake 1.9.6 from Makefile.am.
43343 +# @configure_input@
43345 +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
43346 +# 2003, 2004, 2005 Free Software Foundation, Inc.
43347 +# This Makefile.in is free software; the Free Software Foundation
43348 +# gives unlimited permission to copy and/or distribute it,
43349 +# with or without modifications, as long as this notice is preserved.
43351 +# This program is distributed in the hope that it will be useful,
43352 +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
43353 +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
43354 +# PARTICULAR PURPOSE.
43358 +top_srcdir = @top_srcdir@
43360 +pkgdatadir = $(datadir)/@PACKAGE@
43361 +pkglibdir = $(libdir)/@PACKAGE@
43362 +pkgincludedir = $(includedir)/@PACKAGE@
43364 +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
43365 +INSTALL = @INSTALL@
43366 +install_sh_DATA = $(install_sh) -c -m 644
43367 +install_sh_PROGRAM = $(install_sh) -c
43368 +install_sh_SCRIPT = $(install_sh) -c
43369 +INSTALL_HEADER = $(INSTALL_DATA)
43370 +transform = $(program_transform_name)
43371 +NORMAL_INSTALL = :
43374 +NORMAL_UNINSTALL = :
43376 +POST_UNINSTALL = :
43377 +build_triplet = @build@
43378 +host_triplet = @host@
43380 +DIST_COMMON = README $(srcdir)/Makefile.am $(srcdir)/Makefile.in
43381 +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
43382 +am__aclocal_m4_deps = $(top_srcdir)/configure.ac
43383 +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
43385 +mkinstalldirs = $(install_sh) -d
43386 +CONFIG_HEADER = $(top_builddir)/config.h
43387 +CONFIG_CLEAN_FILES =
43390 +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
43391 +ACLOCAL = @ACLOCAL@
43392 +AMDEP_FALSE = @AMDEP_FALSE@
43393 +AMDEP_TRUE = @AMDEP_TRUE@
43396 +AUTOCONF = @AUTOCONF@
43397 +AUTOHEADER = @AUTOHEADER@
43398 +AUTOMAKE = @AUTOMAKE@
43401 +CCDEPMODE = @CCDEPMODE@
43404 +CPPFLAGS = @CPPFLAGS@
43407 +CXXDEPMODE = @CXXDEPMODE@
43408 +CXXFLAGS = @CXXFLAGS@
43409 +CYGPATH_W = @CYGPATH_W@
43420 +INSTALL_DATA = @INSTALL_DATA@
43421 +INSTALL_PROGRAM = @INSTALL_PROGRAM@
43422 +INSTALL_SCRIPT = @INSTALL_SCRIPT@
43423 +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
43424 +LDFLAGS = @LDFLAGS@
43425 +LIBOBJS = @LIBOBJS@
43427 +LIBTOOL = @LIBTOOL@
43429 +LTLIBOBJS = @LTLIBOBJS@
43430 +LUA_BUILD_AS_DLL_DEFS = @LUA_BUILD_AS_DLL_DEFS@
43431 +LUA_DL_DEFS = @LUA_DL_DEFS@
43432 +LUA_LIBS = @LUA_LIBS@
43433 +MAKEINFO = @MAKEINFO@
43435 +PACKAGE = @PACKAGE@
43436 +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
43437 +PACKAGE_NAME = @PACKAGE_NAME@
43438 +PACKAGE_STRING = @PACKAGE_STRING@
43439 +PACKAGE_TARNAME = @PACKAGE_TARNAME@
43440 +PACKAGE_VERSION = @PACKAGE_VERSION@
43441 +PATH_SEPARATOR = @PATH_SEPARATOR@
43442 +POSIX_DEFS = @POSIX_DEFS@
43444 +READLINE_DEFS = @READLINE_DEFS@
43445 +SET_MAKE = @SET_MAKE@
43448 +VERSION = @VERSION@
43449 +ac_ct_AR = @ac_ct_AR@
43450 +ac_ct_CC = @ac_ct_CC@
43451 +ac_ct_CXX = @ac_ct_CXX@
43452 +ac_ct_F77 = @ac_ct_F77@
43453 +ac_ct_RANLIB = @ac_ct_RANLIB@
43454 +ac_ct_STRIP = @ac_ct_STRIP@
43455 +am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
43456 +am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
43457 +am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
43458 +am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
43459 +am__include = @am__include@
43460 +am__leading_dot = @am__leading_dot@
43461 +am__quote = @am__quote@
43462 +am__tar = @am__tar@
43463 +am__untar = @am__untar@
43466 +build_alias = @build_alias@
43467 +build_cpu = @build_cpu@
43468 +build_os = @build_os@
43469 +build_vendor = @build_vendor@
43470 +datadir = @datadir@
43471 +exec_prefix = @exec_prefix@
43473 +host_alias = @host_alias@
43474 +host_cpu = @host_cpu@
43475 +host_os = @host_os@
43476 +host_vendor = @host_vendor@
43477 +includedir = @includedir@
43478 +infodir = @infodir@
43479 +install_sh = @install_sh@
43481 +libexecdir = @libexecdir@
43482 +localstatedir = @localstatedir@
43484 +mkdir_p = @mkdir_p@
43485 +oldincludedir = @oldincludedir@
43487 +program_transform_name = @program_transform_name@
43488 +sbindir = @sbindir@
43489 +sharedstatedir = @sharedstatedir@
43490 +sysconfdir = @sysconfdir@
43491 +target_alias = @target_alias@
43493 + bisect.lua env.lua fib.lua life.lua printf.lua \
43494 + sieve.lua trace-calls.lua cf.lua factorial.lua globals.lua \
43495 + luac.lua README sort.lua trace-globals.lua echo.lua \
43496 + fibfor.lua hello.lua readonly.lua table.lua xd.lua
43501 +$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
43502 + @for dep in $?; do \
43503 + case '$(am__configure_deps)' in \
43505 + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
43510 + echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign test/Makefile'; \
43511 + cd $(top_srcdir) && \
43512 + $(AUTOMAKE) --foreign test/Makefile
43513 +.PRECIOUS: Makefile
43514 +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
43516 + *config.status*) \
43517 + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
43519 + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
43520 + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
43523 +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
43524 + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
43526 +$(top_srcdir)/configure: $(am__configure_deps)
43527 + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
43528 +$(ACLOCAL_M4): $(am__aclocal_m4_deps)
43529 + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
43531 +mostlyclean-libtool:
43535 + -rm -rf .libs _libs
43537 +distclean-libtool:
43539 +uninstall-info-am:
43547 +distdir: $(DISTFILES)
43548 + @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
43549 + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
43550 + list='$(DISTFILES)'; for file in $$list; do \
43552 + $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
43553 + $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
43555 + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
43556 + dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
43557 + if test "$$dir" != "$$file" && test "$$dir" != "."; then \
43559 + $(mkdir_p) "$(distdir)$$dir"; \
43563 + if test -d $$d/$$file; then \
43564 + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
43565 + cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
43567 + cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
43569 + test -f $(distdir)/$$file \
43570 + || cp -p $$d/$$file $(distdir)/$$file \
43578 +install: install-am
43579 +install-exec: install-exec-am
43580 +install-data: install-data-am
43581 +uninstall: uninstall-am
43583 +install-am: all-am
43584 + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
43586 +installcheck: installcheck-am
43588 + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
43589 + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
43590 + `test -z '$(STRIP)' || \
43591 + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
43592 +mostlyclean-generic:
43596 +distclean-generic:
43597 + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
43599 +maintainer-clean-generic:
43600 + @echo "This command is intended for maintainers to use"
43601 + @echo "it deletes files that may require special tools to rebuild."
43604 +clean-am: clean-generic clean-libtool mostlyclean-am
43606 +distclean: distclean-am
43608 +distclean-am: clean-am distclean-generic distclean-libtool
43624 +install-info: install-info-am
43630 +maintainer-clean: maintainer-clean-am
43632 +maintainer-clean-am: distclean-am maintainer-clean-generic
43634 +mostlyclean: mostlyclean-am
43636 +mostlyclean-am: mostlyclean-generic mostlyclean-libtool
43646 +uninstall-am: uninstall-info-am
43648 +.PHONY: all all-am check check-am clean clean-generic clean-libtool \
43649 + distclean distclean-generic distclean-libtool distdir dvi \
43650 + dvi-am html html-am info info-am install install-am \
43651 + install-data install-data-am install-exec install-exec-am \
43652 + install-info install-info-am install-man install-strip \
43653 + installcheck installcheck-am installdirs maintainer-clean \
43654 + maintainer-clean-generic mostlyclean mostlyclean-generic \
43655 + mostlyclean-libtool pdf pdf-am ps ps-am uninstall uninstall-am \
43656 + uninstall-info-am
43658 +# Tell versions [3.59,3.63) of GNU make to not export all variables.
43659 +# Otherwise a system limit (for SysV at least) may be exceeded.