Merge lp:~fginther/ginn/oneiric-0.2.4.1-libgeis-rename into lp:ginn/oneiric

Proposed by Francis Ginther
Status: Merged
Merged at revision: 13
Proposed branch: lp:~fginther/ginn/oneiric-0.2.4.1-libgeis-rename
Merge into: lp:ginn/oneiric
Diff against target: 16270 lines (+5988/-3340)
13 files modified
ChangeLog (+23/-0)
Makefile.in (+3/-1)
aclocal.m4 (+1286/-803)
config-aux/config.guess (+120/-105)
config-aux/config.sub (+101/-55)
config-aux/ltmain.sh (+2619/-1390)
configure (+1813/-977)
configure.ac (+2/-2)
debian/changelog (+10/-0)
debian/control (+4/-4)
debian/watch (+1/-1)
etc/Makefile.in (+3/-1)
src/Makefile.in (+3/-1)
To merge this branch: bzr merge lp:~fginther/ginn/oneiric-0.2.4.1-libgeis-rename
Reviewer Review Type Date Requested Status
Chase Douglas (community) Approve
Daniel d'Andrada Pending
Review via email: mp+121088@code.launchpad.net

Commit message

  * New upstream microrelease, bug fixes only
    - Depend on renamed libgeis package (LP: #1040871)
  * Updated debian/watch file for series change
  * Rename dependency on libgeis-dev
  * Updated Standards-Version to 3.9.2 in debian/control

Description of the change

Renamed the dependency on libgeis (from libutouch-geis). Incorporated upstream source which was also updated to rename the libgeis dependency.

To post a comment you must log in.
Revision history for this message
Chase Douglas (chasedouglas) wrote :

* The version will need to be ginn_0.2.4.1-0ubuntu1~oneiric1 since we will upload the same sources to precise as well.

Everything else looks good. Please fix the version and then push.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'ChangeLog'
--- ChangeLog 2011-02-03 13:54:56 +0000
+++ ChangeLog 2012-08-23 20:59:19 +0000
@@ -1,4 +1,27 @@
1------------------------------------------------------------1------------------------------------------------------------
2revno: 84
3tags: 0.2.4.1
4committer: Francis Ginther <francis.ginther@canonical.com>
5branch nick: 0.2.4
6timestamp: Sat 2012-08-18 09:20:56 -0500
7message:
8 Release version 0.2.4.1
9------------------------------------------------------------
10revno: 83
11committer: Francis Ginther <francis.ginther@canonical.com>
12branch nick: 0.2.4
13timestamp: Sat 2012-08-18 09:19:36 -0500
14message:
15 Update to build against renamed geis package
16------------------------------------------------------------
17revno: 82 [merge]
18committer: Mohamed-ikbel Boulabiar <boulabiar@gmail.com>
19branch nick: ginn
20timestamp: Fri 2011-02-04 15:32:32 +0100
21message:
22 Merge Stephen license Fix,
23 Version 0.2.4
24------------------------------------------------------------
2revno: 8125revno: 81
3committer: Mohamed-ikbel Boulabiar <boulabiar@gmail.com>26committer: Mohamed-ikbel Boulabiar <boulabiar@gmail.com>
4branch nick: ginn27branch nick: ginn
528
=== modified file 'Makefile.in'
--- Makefile.in 2010-12-10 16:59:27 +0000
+++ Makefile.in 2012-08-23 20:59:19 +0000
@@ -144,6 +144,7 @@
144CYGPATH_W = @CYGPATH_W@144CYGPATH_W = @CYGPATH_W@
145DEFS = @DEFS@145DEFS = @DEFS@
146DEPDIR = @DEPDIR@146DEPDIR = @DEPDIR@
147DLLTOOL = @DLLTOOL@
147DSYMUTIL = @DSYMUTIL@148DSYMUTIL = @DSYMUTIL@
148DUMPBIN = @DUMPBIN@149DUMPBIN = @DUMPBIN@
149ECHO_C = @ECHO_C@150ECHO_C = @ECHO_C@
@@ -171,6 +172,7 @@
171LTLIBOBJS = @LTLIBOBJS@172LTLIBOBJS = @LTLIBOBJS@
172MAINT = @MAINT@173MAINT = @MAINT@
173MAKEINFO = @MAKEINFO@174MAKEINFO = @MAKEINFO@
175MANIFEST_TOOL = @MANIFEST_TOOL@
174MKDIR_P = @MKDIR_P@176MKDIR_P = @MKDIR_P@
175NM = @NM@177NM = @NM@
176NMEDIT = @NMEDIT@178NMEDIT = @NMEDIT@
@@ -205,6 +207,7 @@
205abs_srcdir = @abs_srcdir@207abs_srcdir = @abs_srcdir@
206abs_top_builddir = @abs_top_builddir@208abs_top_builddir = @abs_top_builddir@
207abs_top_srcdir = @abs_top_srcdir@209abs_top_srcdir = @abs_top_srcdir@
210ac_ct_AR = @ac_ct_AR@
208ac_ct_CC = @ac_ct_CC@211ac_ct_CC = @ac_ct_CC@
209ac_ct_DUMPBIN = @ac_ct_DUMPBIN@212ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
210am__include = @am__include@213am__include = @am__include@
@@ -237,7 +240,6 @@
237libexecdir = @libexecdir@240libexecdir = @libexecdir@
238localedir = @localedir@241localedir = @localedir@
239localstatedir = @localstatedir@242localstatedir = @localstatedir@
240lt_ECHO = @lt_ECHO@
241mandir = @mandir@243mandir = @mandir@
242mkdir_p = @mkdir_p@244mkdir_p = @mkdir_p@
243oldincludedir = @oldincludedir@245oldincludedir = @oldincludedir@
244246
=== modified file 'aclocal.m4'
--- aclocal.m4 2011-02-03 13:54:56 +0000
+++ aclocal.m4 2012-08-23 20:59:19 +0000
@@ -13,8 +13,8 @@
1313
14m4_ifndef([AC_AUTOCONF_VERSION],14m4_ifndef([AC_AUTOCONF_VERSION],
15 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl15 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
16m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.67],,16m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.68],,
17[m4_warning([this file was generated for autoconf 2.67.17[m4_warning([this file was generated for autoconf 2.68.
18You have another version of autoconf. It may work, but is not guaranteed to.18You have another version of autoconf. It may work, but is not guaranteed to.
19If you have problems, you may need to regenerate the build system entirely.19If you have problems, you may need to regenerate the build system entirely.
20To do so, use the procedure documented by the package, typically `autoreconf'.])])20To do so, use the procedure documented by the package, typically `autoreconf'.])])
@@ -22,7 +22,8 @@
22# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-22# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
23#23#
24# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,24# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
25# 2006, 2007, 2008 Free Software Foundation, Inc.25# 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
26# Inc.
26# Written by Gordon Matzigkeit, 199627# Written by Gordon Matzigkeit, 1996
27#28#
28# This file is free software; the Free Software Foundation gives29# This file is free software; the Free Software Foundation gives
@@ -31,7 +32,8 @@
3132
32m4_define([_LT_COPYING], [dnl33m4_define([_LT_COPYING], [dnl
33# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,34# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
34# 2006, 2007, 2008 Free Software Foundation, Inc.35# 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
36# Inc.
35# Written by Gordon Matzigkeit, 199637# Written by Gordon Matzigkeit, 1996
36#38#
37# This file is part of GNU Libtool.39# This file is part of GNU Libtool.
@@ -58,7 +60,7 @@
58# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.60# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
59])61])
6062
61# serial 56 LT_INIT63# serial 57 LT_INIT
6264
6365
64# LT_PREREQ(VERSION)66# LT_PREREQ(VERSION)
@@ -87,6 +89,7 @@
87# ------------------89# ------------------
88AC_DEFUN([LT_INIT],90AC_DEFUN([LT_INIT],
89[AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT91[AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
92AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
90AC_BEFORE([$0], [LT_LANG])dnl93AC_BEFORE([$0], [LT_LANG])dnl
91AC_BEFORE([$0], [LT_OUTPUT])dnl94AC_BEFORE([$0], [LT_OUTPUT])dnl
92AC_BEFORE([$0], [LTDL_INIT])dnl95AC_BEFORE([$0], [LTDL_INIT])dnl
@@ -103,6 +106,8 @@
103AC_REQUIRE([LTOBSOLETE_VERSION])dnl106AC_REQUIRE([LTOBSOLETE_VERSION])dnl
104m4_require([_LT_PROG_LTMAIN])dnl107m4_require([_LT_PROG_LTMAIN])dnl
105108
109_LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}])
110
106dnl Parse OPTIONS111dnl Parse OPTIONS
107_LT_SET_OPTIONS([$0], [$1])112_LT_SET_OPTIONS([$0], [$1])
108113
@@ -139,7 +144,7 @@
139 *) break;;144 *) break;;
140 esac145 esac
141done146done
142cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`147cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
143])148])
144149
145150
@@ -159,6 +164,9 @@
159m4_defun([_LT_SETUP],164m4_defun([_LT_SETUP],
160[AC_REQUIRE([AC_CANONICAL_HOST])dnl165[AC_REQUIRE([AC_CANONICAL_HOST])dnl
161AC_REQUIRE([AC_CANONICAL_BUILD])dnl166AC_REQUIRE([AC_CANONICAL_BUILD])dnl
167AC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl
168AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl
169
162_LT_DECL([], [host_alias], [0], [The host system])dnl170_LT_DECL([], [host_alias], [0], [The host system])dnl
163_LT_DECL([], [host], [0])dnl171_LT_DECL([], [host], [0])dnl
164_LT_DECL([], [host_os], [0])dnl172_LT_DECL([], [host_os], [0])dnl
@@ -181,10 +189,13 @@
181dnl189dnl
182m4_require([_LT_FILEUTILS_DEFAULTS])dnl190m4_require([_LT_FILEUTILS_DEFAULTS])dnl
183m4_require([_LT_CHECK_SHELL_FEATURES])dnl191m4_require([_LT_CHECK_SHELL_FEATURES])dnl
192m4_require([_LT_PATH_CONVERSION_FUNCTIONS])dnl
184m4_require([_LT_CMD_RELOAD])dnl193m4_require([_LT_CMD_RELOAD])dnl
185m4_require([_LT_CHECK_MAGIC_METHOD])dnl194m4_require([_LT_CHECK_MAGIC_METHOD])dnl
195m4_require([_LT_CHECK_SHAREDLIB_FROM_LINKLIB])dnl
186m4_require([_LT_CMD_OLD_ARCHIVE])dnl196m4_require([_LT_CMD_OLD_ARCHIVE])dnl
187m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl197m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
198m4_require([_LT_WITH_SYSROOT])dnl
188199
189_LT_CONFIG_LIBTOOL_INIT([200_LT_CONFIG_LIBTOOL_INIT([
190# See if we are running on zsh, and set the options which allow our201# See if we are running on zsh, and set the options which allow our
@@ -200,7 +211,6 @@
200_LT_CHECK_OBJDIR211_LT_CHECK_OBJDIR
201212
202m4_require([_LT_TAG_COMPILER])dnl213m4_require([_LT_TAG_COMPILER])dnl
203_LT_PROG_ECHO_BACKSLASH
204214
205case $host_os in215case $host_os in
206aix3*)216aix3*)
@@ -214,23 +224,6 @@
214 ;;224 ;;
215esac225esac
216226
217# Sed substitution that helps us do robust quoting. It backslashifies
218# metacharacters that are still active within double-quoted strings.
219sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
220
221# Same as above, but do not quote variable references.
222double_quote_subst='s/\([["`\\]]\)/\\\1/g'
223
224# Sed substitution to delay expansion of an escaped shell variable in a
225# double_quote_subst'ed string.
226delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
227
228# Sed substitution to delay expansion of an escaped single quote.
229delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
230
231# Sed substitution to avoid accidental globbing in evaled expressions
232no_glob_subst='s/\*/\\\*/g'
233
234# Global variables:227# Global variables:
235ofile=libtool228ofile=libtool
236can_build_shared=yes229can_build_shared=yes
@@ -271,6 +264,28 @@
271])# _LT_SETUP264])# _LT_SETUP
272265
273266
267# _LT_PREPARE_SED_QUOTE_VARS
268# --------------------------
269# Define a few sed substitution that help us do robust quoting.
270m4_defun([_LT_PREPARE_SED_QUOTE_VARS],
271[# Backslashify metacharacters that are still active within
272# double-quoted strings.
273sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
274
275# Same as above, but do not quote variable references.
276double_quote_subst='s/\([["`\\]]\)/\\\1/g'
277
278# Sed substitution to delay expansion of an escaped shell variable in a
279# double_quote_subst'ed string.
280delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
281
282# Sed substitution to delay expansion of an escaped single quote.
283delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
284
285# Sed substitution to avoid accidental globbing in evaled expressions
286no_glob_subst='s/\*/\\\*/g'
287])
288
274# _LT_PROG_LTMAIN289# _LT_PROG_LTMAIN
275# ---------------290# ---------------
276# Note that this code is called both from `configure', and `config.status'291# Note that this code is called both from `configure', and `config.status'
@@ -423,7 +438,7 @@
423# declaration there will have the same value as in `configure'. VARNAME438# declaration there will have the same value as in `configure'. VARNAME
424# must have a single quote delimited value for this to work.439# must have a single quote delimited value for this to work.
425m4_define([_LT_CONFIG_STATUS_DECLARE],440m4_define([_LT_CONFIG_STATUS_DECLARE],
426[$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`'])441[$1='`$ECHO "$][$1" | $SED "$delay_single_quote_subst"`'])
427442
428443
429# _LT_CONFIG_STATUS_DECLARATIONS444# _LT_CONFIG_STATUS_DECLARATIONS
@@ -433,7 +448,7 @@
433# embedded single quotes properly. In configure, this macro expands448# embedded single quotes properly. In configure, this macro expands
434# each variable declared with _LT_DECL (and _LT_TAGDECL) into:449# each variable declared with _LT_DECL (and _LT_TAGDECL) into:
435#450#
436# <var>='`$ECHO "X$<var>" | $Xsed -e "$delay_single_quote_subst"`'451# <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`'
437m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],452m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
438[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),453[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
439 [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])454 [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
@@ -532,12 +547,20 @@
532LTCFLAGS='$LTCFLAGS'547LTCFLAGS='$LTCFLAGS'
533compiler='$compiler_DEFAULT'548compiler='$compiler_DEFAULT'
534549
550# A function that is used when there is no print builtin or printf.
551func_fallback_echo ()
552{
553 eval 'cat <<_LTECHO_EOF
554\$[]1
555_LTECHO_EOF'
556}
557
535# Quote evaled strings.558# Quote evaled strings.
536for var in lt_decl_all_varnames([[ \559for var in lt_decl_all_varnames([[ \
537]], lt_decl_quote_varnames); do560]], lt_decl_quote_varnames); do
538 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in561 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
539 *[[\\\\\\\`\\"\\\$]]*)562 *[[\\\\\\\`\\"\\\$]]*)
540 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""563 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
541 ;;564 ;;
542 *)565 *)
543 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""566 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
@@ -548,9 +571,9 @@
548# Double-quote double-evaled strings.571# Double-quote double-evaled strings.
549for var in lt_decl_all_varnames([[ \572for var in lt_decl_all_varnames([[ \
550]], lt_decl_dquote_varnames); do573]], lt_decl_dquote_varnames); do
551 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in574 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
552 *[[\\\\\\\`\\"\\\$]]*)575 *[[\\\\\\\`\\"\\\$]]*)
553 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""576 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
554 ;;577 ;;
555 *)578 *)
556 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""579 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
@@ -558,16 +581,38 @@
558 esac581 esac
559done582done
560583
561# Fix-up fallback echo if it was mangled by the above quoting rules.
562case \$lt_ECHO in
563*'\\\[$]0 --fallback-echo"')dnl "
564 lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\`
565 ;;
566esac
567
568_LT_OUTPUT_LIBTOOL_INIT584_LT_OUTPUT_LIBTOOL_INIT
569])585])
570586
587# _LT_GENERATED_FILE_INIT(FILE, [COMMENT])
588# ------------------------------------
589# Generate a child script FILE with all initialization necessary to
590# reuse the environment learned by the parent script, and make the
591# file executable. If COMMENT is supplied, it is inserted after the
592# `#!' sequence but before initialization text begins. After this
593# macro, additional text can be appended to FILE to form the body of
594# the child script. The macro ends with non-zero status if the
595# file could not be fully written (such as if the disk is full).
596m4_ifdef([AS_INIT_GENERATED],
597[m4_defun([_LT_GENERATED_FILE_INIT],[AS_INIT_GENERATED($@)])],
598[m4_defun([_LT_GENERATED_FILE_INIT],
599[m4_require([AS_PREPARE])]dnl
600[m4_pushdef([AS_MESSAGE_LOG_FD])]dnl
601[lt_write_fail=0
602cat >$1 <<_ASEOF || lt_write_fail=1
603#! $SHELL
604# Generated by $as_me.
605$2
606SHELL=\${CONFIG_SHELL-$SHELL}
607export SHELL
608_ASEOF
609cat >>$1 <<\_ASEOF || lt_write_fail=1
610AS_SHELL_SANITIZE
611_AS_PREPARE
612exec AS_MESSAGE_FD>&1
613_ASEOF
614test $lt_write_fail = 0 && chmod +x $1[]dnl
615m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT
571616
572# LT_OUTPUT617# LT_OUTPUT
573# ---------618# ---------
@@ -577,20 +622,11 @@
577AC_DEFUN([LT_OUTPUT],622AC_DEFUN([LT_OUTPUT],
578[: ${CONFIG_LT=./config.lt}623[: ${CONFIG_LT=./config.lt}
579AC_MSG_NOTICE([creating $CONFIG_LT])624AC_MSG_NOTICE([creating $CONFIG_LT])
580cat >"$CONFIG_LT" <<_LTEOF625_LT_GENERATED_FILE_INIT(["$CONFIG_LT"],
581#! $SHELL626[# Run this file to recreate a libtool stub with the current configuration.])
582# Generated by $as_me.
583# Run this file to recreate a libtool stub with the current configuration.
584627
628cat >>"$CONFIG_LT" <<\_LTEOF
585lt_cl_silent=false629lt_cl_silent=false
586SHELL=\${CONFIG_SHELL-$SHELL}
587_LTEOF
588
589cat >>"$CONFIG_LT" <<\_LTEOF
590AS_SHELL_SANITIZE
591_AS_PREPARE
592
593exec AS_MESSAGE_FD>&1
594exec AS_MESSAGE_LOG_FD>>config.log630exec AS_MESSAGE_LOG_FD>>config.log
595{631{
596 echo632 echo
@@ -616,7 +652,7 @@
616m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])652m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
617configured by $[0], generated by m4_PACKAGE_STRING.653configured by $[0], generated by m4_PACKAGE_STRING.
618654
619Copyright (C) 2008 Free Software Foundation, Inc.655Copyright (C) 2010 Free Software Foundation, Inc.
620This config.lt script is free software; the Free Software Foundation656This config.lt script is free software; the Free Software Foundation
621gives unlimited permision to copy, distribute and modify it."657gives unlimited permision to copy, distribute and modify it."
622658
@@ -661,15 +697,13 @@
661# appending to config.log, which fails on DOS, as config.log is still kept697# appending to config.log, which fails on DOS, as config.log is still kept
662# open by configure. Here we exec the FD to /dev/null, effectively closing698# open by configure. Here we exec the FD to /dev/null, effectively closing
663# config.log, so it can be properly (re)opened and appended to by config.lt.699# config.log, so it can be properly (re)opened and appended to by config.lt.
664if test "$no_create" != yes; then700lt_cl_success=:
665 lt_cl_success=:701test "$silent" = yes &&
666 test "$silent" = yes &&702 lt_config_lt_args="$lt_config_lt_args --quiet"
667 lt_config_lt_args="$lt_config_lt_args --quiet"703exec AS_MESSAGE_LOG_FD>/dev/null
668 exec AS_MESSAGE_LOG_FD>/dev/null704$SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
669 $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false705exec AS_MESSAGE_LOG_FD>>config.log
670 exec AS_MESSAGE_LOG_FD>>config.log706$lt_cl_success || AS_EXIT(1)
671 $lt_cl_success || AS_EXIT(1)
672fi
673])# LT_OUTPUT707])# LT_OUTPUT
674708
675709
@@ -732,15 +766,12 @@
732 # if finds mixed CR/LF and LF-only lines. Since sed operates in766 # if finds mixed CR/LF and LF-only lines. Since sed operates in
733 # text mode, it properly converts lines to CR/LF. This bash problem767 # text mode, it properly converts lines to CR/LF. This bash problem
734 # is reportedly fixed, but why not run on old versions too?768 # is reportedly fixed, but why not run on old versions too?
735 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \769 sed '$q' "$ltmain" >> "$cfgfile" \
736 || (rm -f "$cfgfile"; exit 1)770 || (rm -f "$cfgfile"; exit 1)
737771
738 _LT_PROG_XSI_SHELLFNS772 _LT_PROG_REPLACE_SHELLFNS
739773
740 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \774 mv -f "$cfgfile" "$ofile" ||
741 || (rm -f "$cfgfile"; exit 1)
742
743 mv -f "$cfgfile" "$ofile" ||
744 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")775 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
745 chmod +x "$ofile"776 chmod +x "$ofile"
746],777],
@@ -846,11 +877,13 @@
846AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])877AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
847AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])878AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
848AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])879AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
880AU_DEFUN([AC_LIBTOOL_RC], [LT_LANG(Windows Resource)])
849dnl aclocal-1.4 backwards compatibility:881dnl aclocal-1.4 backwards compatibility:
850dnl AC_DEFUN([AC_LIBTOOL_CXX], [])882dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
851dnl AC_DEFUN([AC_LIBTOOL_F77], [])883dnl AC_DEFUN([AC_LIBTOOL_F77], [])
852dnl AC_DEFUN([AC_LIBTOOL_FC], [])884dnl AC_DEFUN([AC_LIBTOOL_FC], [])
853dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])885dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
886dnl AC_DEFUN([AC_LIBTOOL_RC], [])
854887
855888
856# _LT_TAG_COMPILER889# _LT_TAG_COMPILER
@@ -955,6 +988,31 @@
955 [lt_cv_ld_exported_symbols_list=no])988 [lt_cv_ld_exported_symbols_list=no])
956 LDFLAGS="$save_LDFLAGS"989 LDFLAGS="$save_LDFLAGS"
957 ])990 ])
991 AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load],
992 [lt_cv_ld_force_load=no
993 cat > conftest.c << _LT_EOF
994int forced_loaded() { return 2;}
995_LT_EOF
996 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD
997 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD
998 echo "$AR cru libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD
999 $AR cru libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD
1000 echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD
1001 $RANLIB libconftest.a 2>&AS_MESSAGE_LOG_FD
1002 cat > conftest.c << _LT_EOF
1003int main() { return 0;}
1004_LT_EOF
1005 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD
1006 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
1007 _lt_result=$?
1008 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
1009 lt_cv_ld_force_load=yes
1010 else
1011 cat conftest.err >&AS_MESSAGE_LOG_FD
1012 fi
1013 rm -f conftest.err libconftest.a conftest conftest.c
1014 rm -rf conftest.dSYM
1015 ])
958 case $host_os in1016 case $host_os in
959 rhapsody* | darwin1.[[012]])1017 rhapsody* | darwin1.[[012]])
960 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;1018 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
@@ -982,7 +1040,7 @@
982 else1040 else
983 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'1041 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
984 fi1042 fi
985 if test "$DSYMUTIL" != ":"; then1043 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
986 _lt_dsymutil='~$DSYMUTIL $lib || :'1044 _lt_dsymutil='~$DSYMUTIL $lib || :'
987 else1045 else
988 _lt_dsymutil=1046 _lt_dsymutil=
@@ -1002,7 +1060,11 @@
1002 _LT_TAGVAR(hardcode_direct, $1)=no1060 _LT_TAGVAR(hardcode_direct, $1)=no
1003 _LT_TAGVAR(hardcode_automatic, $1)=yes1061 _LT_TAGVAR(hardcode_automatic, $1)=yes
1004 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported1062 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
1005 _LT_TAGVAR(whole_archive_flag_spec, $1)=''1063 if test "$lt_cv_ld_force_load" = "yes"; then
1064 _LT_TAGVAR(whole_archive_flag_spec, $1)='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
1065 else
1066 _LT_TAGVAR(whole_archive_flag_spec, $1)=''
1067 fi
1006 _LT_TAGVAR(link_all_deplibs, $1)=yes1068 _LT_TAGVAR(link_all_deplibs, $1)=yes
1007 _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"1069 _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
1008 case $cc_basename in1070 case $cc_basename in
@@ -1010,7 +1072,7 @@
1010 *) _lt_dar_can_shared=$GCC ;;1072 *) _lt_dar_can_shared=$GCC ;;
1011 esac1073 esac
1012 if test "$_lt_dar_can_shared" = "yes"; then1074 if test "$_lt_dar_can_shared" = "yes"; then
1013 output_verbose_link_cmd=echo1075 output_verbose_link_cmd=func_echo_all
1014 _LT_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"1076 _LT_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
1015 _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"1077 _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
1016 _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"1078 _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
@@ -1026,203 +1088,142 @@
1026 fi1088 fi
1027])1089])
10281090
1029# _LT_SYS_MODULE_PATH_AIX1091# _LT_SYS_MODULE_PATH_AIX([TAGNAME])
1030# -----------------------1092# ----------------------------------
1031# Links a minimal program and checks the executable1093# Links a minimal program and checks the executable
1032# for the system default hardcoded library path. In most cases,1094# for the system default hardcoded library path. In most cases,
1033# this is /usr/lib:/lib, but when the MPI compilers are used1095# this is /usr/lib:/lib, but when the MPI compilers are used
1034# the location of the communication and MPI libs are included too.1096# the location of the communication and MPI libs are included too.
1035# If we don't find anything, use the default library path according1097# If we don't find anything, use the default library path according
1036# to the aix ld manual.1098# to the aix ld manual.
1099# Store the results from the different compilers for each TAGNAME.
1100# Allow to override them for all tags through lt_cv_aix_libpath.
1037m4_defun([_LT_SYS_MODULE_PATH_AIX],1101m4_defun([_LT_SYS_MODULE_PATH_AIX],
1038[m4_require([_LT_DECL_SED])dnl1102[m4_require([_LT_DECL_SED])dnl
1039AC_LINK_IFELSE(AC_LANG_PROGRAM,[1103if test "${lt_cv_aix_libpath+set}" = set; then
1040lt_aix_libpath_sed='1104 aix_libpath=$lt_cv_aix_libpath
1041 /Import File Strings/,/^$/ {1105else
1042 /^0/ {1106 AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])],
1043 s/^0 *\(.*\)$/\1/1107 [AC_LINK_IFELSE([AC_LANG_PROGRAM],[
1044 p1108 lt_aix_libpath_sed='[
1045 }1109 /Import File Strings/,/^$/ {
1046 }'1110 /^0/ {
1047aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`1111 s/^0 *\([^ ]*\) *$/\1/
1048# Check for a 64-bit object if we didn't find anything.1112 p
1049if test -z "$aix_libpath"; then1113 }
1050 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`1114 }]'
1051fi],[])1115 _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1052if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi1116 # Check for a 64-bit object if we didn't find anything.
1117 if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
1118 _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1119 fi],[])
1120 if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
1121 _LT_TAGVAR([lt_cv_aix_libpath_], [$1])="/usr/lib:/lib"
1122 fi
1123 ])
1124 aix_libpath=$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])
1125fi
1053])# _LT_SYS_MODULE_PATH_AIX1126])# _LT_SYS_MODULE_PATH_AIX
10541127
10551128
1056# _LT_SHELL_INIT(ARG)1129# _LT_SHELL_INIT(ARG)
1057# -------------------1130# -------------------
1058m4_define([_LT_SHELL_INIT],1131m4_define([_LT_SHELL_INIT],
1059[ifdef([AC_DIVERSION_NOTICE],1132[m4_divert_text([M4SH-INIT], [$1
1060 [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],1133])])# _LT_SHELL_INIT
1061 [AC_DIVERT_PUSH(NOTICE)])1134
1062$1
1063AC_DIVERT_POP
1064])# _LT_SHELL_INIT
10651135
10661136
1067# _LT_PROG_ECHO_BACKSLASH1137# _LT_PROG_ECHO_BACKSLASH
1068# -----------------------1138# -----------------------
1069# Add some code to the start of the generated configure script which1139# Find how we can fake an echo command that does not interpret backslash.
1070# will find an echo command which doesn't interpret backslashes.1140# In particular, with Autoconf 2.60 or later we add some code to the start
1141# of the generated configure script which will find a shell with a builtin
1142# printf (which we can use as an echo command).
1071m4_defun([_LT_PROG_ECHO_BACKSLASH],1143m4_defun([_LT_PROG_ECHO_BACKSLASH],
1072[_LT_SHELL_INIT([1144[ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
1073# Check that we are running under the correct shell.1145ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
1074SHELL=${CONFIG_SHELL-/bin/sh}1146ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
10751147
1076case X$lt_ECHO in1148AC_MSG_CHECKING([how to print strings])
1077X*--fallback-echo)1149# Test print first, because it will be a builtin if present.
1078 # Remove one level of quotation (which was required for Make).1150if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
1079 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`1151 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
1080 ;;1152 ECHO='print -r --'
1153elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
1154 ECHO='printf %s\n'
1155else
1156 # Use this function as a fallback that always works.
1157 func_fallback_echo ()
1158 {
1159 eval 'cat <<_LTECHO_EOF
1160$[]1
1161_LTECHO_EOF'
1162 }
1163 ECHO='func_fallback_echo'
1164fi
1165
1166# func_echo_all arg...
1167# Invoke $ECHO with all args, space-separated.
1168func_echo_all ()
1169{
1170 $ECHO "$*"
1171}
1172
1173case "$ECHO" in
1174 printf*) AC_MSG_RESULT([printf]) ;;
1175 print*) AC_MSG_RESULT([print -r]) ;;
1176 *) AC_MSG_RESULT([cat]) ;;
1081esac1177esac
10821178
1083ECHO=${lt_ECHO-echo}1179m4_ifdef([_AS_DETECT_SUGGESTED],
1084if test "X[$]1" = X--no-reexec; then1180[_AS_DETECT_SUGGESTED([
1085 # Discard the --no-reexec flag, and continue.1181 test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || (
1086 shift1182 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
1087elif test "X[$]1" = X--fallback-echo; then1183 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
1088 # Avoid inline document here, it may be left over1184 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
1089 :1185 PATH=/empty FPATH=/empty; export PATH FPATH
1090elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then1186 test "X`printf %s $ECHO`" = "X$ECHO" \
1091 # Yippee, $ECHO works!1187 || test "X`print -r -- $ECHO`" = "X$ECHO" )])])
1092 :1188
1093else
1094 # Restart under the correct shell.
1095 exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
1096fi
1097
1098if test "X[$]1" = X--fallback-echo; then
1099 # used as fallback echo
1100 shift
1101 cat <<_LT_EOF
1102[$]*
1103_LT_EOF
1104 exit 0
1105fi
1106
1107# The HP-UX ksh and POSIX shell print the target directory to stdout
1108# if CDPATH is set.
1109(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1110
1111if test -z "$lt_ECHO"; then
1112 if test "X${echo_test_string+set}" != Xset; then
1113 # find a string as large as possible, as long as the shell can cope with it
1114 for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
1115 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
1116 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
1117 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
1118 then
1119 break
1120 fi
1121 done
1122 fi
1123
1124 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
1125 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
1126 test "X$echo_testing_string" = "X$echo_test_string"; then
1127 :
1128 else
1129 # The Solaris, AIX, and Digital Unix default echo programs unquote
1130 # backslashes. This makes it impossible to quote backslashes using
1131 # echo "$something" | sed 's/\\/\\\\/g'
1132 #
1133 # So, first we look for a working echo in the user's PATH.
1134
1135 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1136 for dir in $PATH /usr/ucb; do
1137 IFS="$lt_save_ifs"
1138 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
1139 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
1140 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
1141 test "X$echo_testing_string" = "X$echo_test_string"; then
1142 ECHO="$dir/echo"
1143 break
1144 fi
1145 done
1146 IFS="$lt_save_ifs"
1147
1148 if test "X$ECHO" = Xecho; then
1149 # We didn't find a better echo, so look for alternatives.
1150 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
1151 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
1152 test "X$echo_testing_string" = "X$echo_test_string"; then
1153 # This shell has a builtin print -r that does the trick.
1154 ECHO='print -r'
1155 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
1156 test "X$CONFIG_SHELL" != X/bin/ksh; then
1157 # If we have ksh, try running configure again with it.
1158 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
1159 export ORIGINAL_CONFIG_SHELL
1160 CONFIG_SHELL=/bin/ksh
1161 export CONFIG_SHELL
1162 exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
1163 else
1164 # Try using printf.
1165 ECHO='printf %s\n'
1166 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
1167 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
1168 test "X$echo_testing_string" = "X$echo_test_string"; then
1169 # Cool, printf works
1170 :
1171 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
1172 test "X$echo_testing_string" = 'X\t' &&
1173 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
1174 test "X$echo_testing_string" = "X$echo_test_string"; then
1175 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
1176 export CONFIG_SHELL
1177 SHELL="$CONFIG_SHELL"
1178 export SHELL
1179 ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
1180 elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
1181 test "X$echo_testing_string" = 'X\t' &&
1182 echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
1183 test "X$echo_testing_string" = "X$echo_test_string"; then
1184 ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
1185 else
1186 # maybe with a smaller string...
1187 prev=:
1188
1189 for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
1190 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
1191 then
1192 break
1193 fi
1194 prev="$cmd"
1195 done
1196
1197 if test "$prev" != 'sed 50q "[$]0"'; then
1198 echo_test_string=`eval $prev`
1199 export echo_test_string
1200 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
1201 else
1202 # Oops. We lost completely, so just stick with echo.
1203 ECHO=echo
1204 fi
1205 fi
1206 fi
1207 fi
1208 fi
1209fi
1210
1211# Copy echo and quote the copy suitably for passing to libtool from
1212# the Makefile, instead of quoting the original, which is used later.
1213lt_ECHO=$ECHO
1214if test "X$lt_ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
1215 lt_ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
1216fi
1217
1218AC_SUBST(lt_ECHO)
1219])
1220_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])1189_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
1221_LT_DECL([], [ECHO], [1],1190_LT_DECL([], [ECHO], [1], [An echo program that protects backslashes])
1222 [An echo program that does not interpret backslashes])
1223])# _LT_PROG_ECHO_BACKSLASH1191])# _LT_PROG_ECHO_BACKSLASH
12241192
12251193
1194# _LT_WITH_SYSROOT
1195# ----------------
1196AC_DEFUN([_LT_WITH_SYSROOT],
1197[AC_MSG_CHECKING([for sysroot])
1198AC_ARG_WITH([sysroot],
1199[ --with-sysroot[=DIR] Search for dependent libraries within DIR
1200 (or the compiler's sysroot if not specified).],
1201[], [with_sysroot=no])
1202
1203dnl lt_sysroot will always be passed unquoted. We quote it here
1204dnl in case the user passed a directory name.
1205lt_sysroot=
1206case ${with_sysroot} in #(
1207 yes)
1208 if test "$GCC" = yes; then
1209 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
1210 fi
1211 ;; #(
1212 /*)
1213 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
1214 ;; #(
1215 no|'')
1216 ;; #(
1217 *)
1218 AC_MSG_RESULT([${with_sysroot}])
1219 AC_MSG_ERROR([The sysroot must be an absolute path.])
1220 ;;
1221esac
1222
1223 AC_MSG_RESULT([${lt_sysroot:-no}])
1224_LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl
1225[dependent libraries, and in which our libraries should be installed.])])
1226
1226# _LT_ENABLE_LOCK1227# _LT_ENABLE_LOCK
1227# ---------------1228# ---------------
1228m4_defun([_LT_ENABLE_LOCK],1229m4_defun([_LT_ENABLE_LOCK],
@@ -1251,7 +1252,7 @@
1251 ;;1252 ;;
1252*-*-irix6*)1253*-*-irix6*)
1253 # Find out which ABI we are using.1254 # Find out which ABI we are using.
1254 echo '[#]line __oline__ "configure"' > conftest.$ac_ext1255 echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext
1255 if AC_TRY_EVAL(ac_compile); then1256 if AC_TRY_EVAL(ac_compile); then
1256 if test "$lt_cv_prog_gnu_ld" = yes; then1257 if test "$lt_cv_prog_gnu_ld" = yes; then
1257 case `/usr/bin/file conftest.$ac_objext` in1258 case `/usr/bin/file conftest.$ac_objext` in
@@ -1369,14 +1370,47 @@
1369])# _LT_ENABLE_LOCK1370])# _LT_ENABLE_LOCK
13701371
13711372
1373# _LT_PROG_AR
1374# -----------
1375m4_defun([_LT_PROG_AR],
1376[AC_CHECK_TOOLS(AR, [ar], false)
1377: ${AR=ar}
1378: ${AR_FLAGS=cru}
1379_LT_DECL([], [AR], [1], [The archiver])
1380_LT_DECL([], [AR_FLAGS], [1], [Flags to create an archive])
1381
1382AC_CACHE_CHECK([for archiver @FILE support], [lt_cv_ar_at_file],
1383 [lt_cv_ar_at_file=no
1384 AC_COMPILE_IFELSE([AC_LANG_PROGRAM],
1385 [echo conftest.$ac_objext > conftest.lst
1386 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&AS_MESSAGE_LOG_FD'
1387 AC_TRY_EVAL([lt_ar_try])
1388 if test "$ac_status" -eq 0; then
1389 # Ensure the archiver fails upon bogus file names.
1390 rm -f conftest.$ac_objext libconftest.a
1391 AC_TRY_EVAL([lt_ar_try])
1392 if test "$ac_status" -ne 0; then
1393 lt_cv_ar_at_file=@
1394 fi
1395 fi
1396 rm -f conftest.* libconftest.a
1397 ])
1398 ])
1399
1400if test "x$lt_cv_ar_at_file" = xno; then
1401 archiver_list_spec=
1402else
1403 archiver_list_spec=$lt_cv_ar_at_file
1404fi
1405_LT_DECL([], [archiver_list_spec], [1],
1406 [How to feed a file listing to the archiver])
1407])# _LT_PROG_AR
1408
1409
1372# _LT_CMD_OLD_ARCHIVE1410# _LT_CMD_OLD_ARCHIVE
1373# -------------------1411# -------------------
1374m4_defun([_LT_CMD_OLD_ARCHIVE],1412m4_defun([_LT_CMD_OLD_ARCHIVE],
1375[AC_CHECK_TOOL(AR, ar, false)1413[_LT_PROG_AR
1376test -z "$AR" && AR=ar
1377test -z "$AR_FLAGS" && AR_FLAGS=cru
1378_LT_DECL([], [AR], [1], [The archiver])
1379_LT_DECL([], [AR_FLAGS], [1])
13801414
1381AC_CHECK_TOOL(STRIP, strip, :)1415AC_CHECK_TOOL(STRIP, strip, :)
1382test -z "$STRIP" && STRIP=:1416test -z "$STRIP" && STRIP=:
@@ -1403,10 +1437,19 @@
1403 esac1437 esac
1404 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"1438 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
1405fi1439fi
1440
1441case $host_os in
1442 darwin*)
1443 lock_old_archive_extraction=yes ;;
1444 *)
1445 lock_old_archive_extraction=no ;;
1446esac
1406_LT_DECL([], [old_postinstall_cmds], [2])1447_LT_DECL([], [old_postinstall_cmds], [2])
1407_LT_DECL([], [old_postuninstall_cmds], [2])1448_LT_DECL([], [old_postuninstall_cmds], [2])
1408_LT_TAGDECL([], [old_archive_cmds], [2],1449_LT_TAGDECL([], [old_archive_cmds], [2],
1409 [Commands used to build an old-style archive])1450 [Commands used to build an old-style archive])
1451_LT_DECL([], [lock_old_archive_extraction], [0],
1452 [Whether to use a lock for old archive extraction])
1410])# _LT_CMD_OLD_ARCHIVE1453])# _LT_CMD_OLD_ARCHIVE
14111454
14121455
@@ -1431,15 +1474,15 @@
1431 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \1474 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1432 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \1475 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
1433 -e 's:$: $lt_compiler_flag:'`1476 -e 's:$: $lt_compiler_flag:'`
1434 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)1477 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
1435 (eval "$lt_compile" 2>conftest.err)1478 (eval "$lt_compile" 2>conftest.err)
1436 ac_status=$?1479 ac_status=$?
1437 cat conftest.err >&AS_MESSAGE_LOG_FD1480 cat conftest.err >&AS_MESSAGE_LOG_FD
1438 echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD1481 echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1439 if (exit $ac_status) && test -s "$ac_outfile"; then1482 if (exit $ac_status) && test -s "$ac_outfile"; then
1440 # The compiler can only warn and ignore the option if not recognized1483 # The compiler can only warn and ignore the option if not recognized
1441 # So say no if there are warnings other than the usual output.1484 # So say no if there are warnings other than the usual output.
1442 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp1485 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
1443 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er21486 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
1444 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then1487 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
1445 $2=yes1488 $2=yes
@@ -1479,7 +1522,7 @@
1479 if test -s conftest.err; then1522 if test -s conftest.err; then
1480 # Append any errors to the config.log.1523 # Append any errors to the config.log.
1481 cat conftest.err 1>&AS_MESSAGE_LOG_FD1524 cat conftest.err 1>&AS_MESSAGE_LOG_FD
1482 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp1525 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
1483 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er21526 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
1484 if diff conftest.exp conftest.er2 >/dev/null; then1527 if diff conftest.exp conftest.er2 >/dev/null; then
1485 $2=yes1528 $2=yes
@@ -1542,6 +1585,11 @@
1542 lt_cv_sys_max_cmd_len=8192;1585 lt_cv_sys_max_cmd_len=8192;
1543 ;;1586 ;;
15441587
1588 mint*)
1589 # On MiNT this can take a long time and run out of memory.
1590 lt_cv_sys_max_cmd_len=8192;
1591 ;;
1592
1545 amigaos*)1593 amigaos*)
1546 # On AmigaOS with pdksh, this test takes hours, literally.1594 # On AmigaOS with pdksh, this test takes hours, literally.
1547 # So we just punt and use a minimum line length of 8192.1595 # So we just punt and use a minimum line length of 8192.
@@ -1606,8 +1654,8 @@
1606 # If test is not a shell built-in, we'll probably end up computing a1654 # If test is not a shell built-in, we'll probably end up computing a
1607 # maximum length that is only half of the actual maximum length, but1655 # maximum length that is only half of the actual maximum length, but
1608 # we can't tell.1656 # we can't tell.
1609 while { test "X"`$SHELL [$]0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \1657 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
1610 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&1658 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
1611 test $i != 17 # 1/2 MB should be enough1659 test $i != 17 # 1/2 MB should be enough
1612 do1660 do
1613 i=`expr $i + 1`1661 i=`expr $i + 1`
@@ -1658,7 +1706,7 @@
1658 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=21706 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1659 lt_status=$lt_dlunknown1707 lt_status=$lt_dlunknown
1660 cat > conftest.$ac_ext <<_LT_EOF1708 cat > conftest.$ac_ext <<_LT_EOF
1661[#line __oline__ "configure"1709[#line $LINENO "configure"
1662#include "confdefs.h"1710#include "confdefs.h"
16631711
1664#if HAVE_DLFCN_H1712#if HAVE_DLFCN_H
@@ -1699,7 +1747,13 @@
1699# endif1747# endif
1700#endif1748#endif
17011749
1702void fnord() { int i=42;}1750/* When -fvisbility=hidden is used, assume the code has been annotated
1751 correspondingly for the symbols needed. */
1752#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
1753int fnord () __attribute__((visibility("default")));
1754#endif
1755
1756int fnord () { return 42; }
1703int main ()1757int main ()
1704{1758{
1705 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);1759 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
@@ -1708,7 +1762,11 @@
1708 if (self)1762 if (self)
1709 {1763 {
1710 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;1764 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
1711 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;1765 else
1766 {
1767 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
1768 else puts (dlerror ());
1769 }
1712 /* dlclose (self); */1770 /* dlclose (self); */
1713 }1771 }
1714 else1772 else
@@ -1884,16 +1942,16 @@
1884 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \1942 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1885 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \1943 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
1886 -e 's:$: $lt_compiler_flag:'`1944 -e 's:$: $lt_compiler_flag:'`
1887 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)1945 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
1888 (eval "$lt_compile" 2>out/conftest.err)1946 (eval "$lt_compile" 2>out/conftest.err)
1889 ac_status=$?1947 ac_status=$?
1890 cat out/conftest.err >&AS_MESSAGE_LOG_FD1948 cat out/conftest.err >&AS_MESSAGE_LOG_FD
1891 echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD1949 echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1892 if (exit $ac_status) && test -s out/conftest2.$ac_objext1950 if (exit $ac_status) && test -s out/conftest2.$ac_objext
1893 then1951 then
1894 # The compiler can only warn and ignore the option if not recognized1952 # The compiler can only warn and ignore the option if not recognized
1895 # So say no if there are warnings1953 # So say no if there are warnings
1896 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp1954 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
1897 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er21955 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
1898 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then1956 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
1899 _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes1957 _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
@@ -2052,6 +2110,7 @@
2052m4_require([_LT_FILEUTILS_DEFAULTS])dnl2110m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2053m4_require([_LT_DECL_OBJDUMP])dnl2111m4_require([_LT_DECL_OBJDUMP])dnl
2054m4_require([_LT_DECL_SED])dnl2112m4_require([_LT_DECL_SED])dnl
2113m4_require([_LT_CHECK_SHELL_FEATURES])dnl
2055AC_MSG_CHECKING([dynamic linker characteristics])2114AC_MSG_CHECKING([dynamic linker characteristics])
2056m4_if([$1],2115m4_if([$1],
2057 [], [2116 [], [
@@ -2060,16 +2119,23 @@
2060 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;2119 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
2061 *) lt_awk_arg="/^libraries:/" ;;2120 *) lt_awk_arg="/^libraries:/" ;;
2062 esac2121 esac
2063 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`2122 case $host_os in
2064 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then2123 mingw* | cegcc*) lt_sed_strip_eq="s,=\([[A-Za-z]]:\),\1,g" ;;
2124 *) lt_sed_strip_eq="s,=/,/,g" ;;
2125 esac
2126 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
2127 case $lt_search_path_spec in
2128 *\;*)
2065 # if the path contains ";" then we assume it to be the separator2129 # if the path contains ";" then we assume it to be the separator
2066 # otherwise default to the standard path separator (i.e. ":") - it is2130 # otherwise default to the standard path separator (i.e. ":") - it is
2067 # assumed that no part of a normal pathname contains ";" but that should2131 # assumed that no part of a normal pathname contains ";" but that should
2068 # okay in the real world where ";" in dirpaths is itself problematic.2132 # okay in the real world where ";" in dirpaths is itself problematic.
2069 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`2133 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
2070 else2134 ;;
2071 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`2135 *)
2072 fi2136 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
2137 ;;
2138 esac
2073 # Ok, now we have the path, separated by spaces, we can step through it2139 # Ok, now we have the path, separated by spaces, we can step through it
2074 # and add multilib dir if necessary.2140 # and add multilib dir if necessary.
2075 lt_tmp_lt_search_path_spec=2141 lt_tmp_lt_search_path_spec=
@@ -2082,7 +2148,7 @@
2082 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"2148 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
2083 fi2149 fi
2084 done2150 done
2085 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '2151 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
2086BEGIN {RS=" "; FS="/|\n";} {2152BEGIN {RS=" "; FS="/|\n";} {
2087 lt_foo="";2153 lt_foo="";
2088 lt_count=0;2154 lt_count=0;
@@ -2102,7 +2168,13 @@
2102 if (lt_foo != "") { lt_freq[[lt_foo]]++; }2168 if (lt_foo != "") { lt_freq[[lt_foo]]++; }
2103 if (lt_freq[[lt_foo]] == 1) { print lt_foo; }2169 if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
2104}'`2170}'`
2105 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`2171 # AWK program above erroneously prepends '/' to C:/dos/paths
2172 # for these hosts.
2173 case $host_os in
2174 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
2175 $SED 's,/\([[A-Za-z]]:\),\1,g'` ;;
2176 esac
2177 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
2106else2178else
2107 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"2179 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
2108fi])2180fi])
@@ -2190,7 +2262,7 @@
2190 m68k)2262 m68k)
2191 library_names_spec='$libname.ixlibrary $libname.a'2263 library_names_spec='$libname.ixlibrary $libname.a'
2192 # Create ${libname}_ixlibrary.a entries in /sys/libs.2264 # Create ${libname}_ixlibrary.a entries in /sys/libs.
2193 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'2265 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
2194 ;;2266 ;;
2195 esac2267 esac
2196 ;;2268 ;;
@@ -2221,8 +2293,9 @@
2221 need_version=no2293 need_version=no
2222 need_lib_prefix=no2294 need_lib_prefix=no
22232295
2224 case $GCC,$host_os in2296 case $GCC,$cc_basename in
2225 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)2297 yes,*)
2298 # gcc
2226 library_names_spec='$libname.dll.a'2299 library_names_spec='$libname.dll.a'
2227 # DLL is installed to $(libdir)/../bin by postinstall_cmds2300 # DLL is installed to $(libdir)/../bin by postinstall_cmds
2228 postinstall_cmds='base_file=`basename \${file}`~2301 postinstall_cmds='base_file=`basename \${file}`~
@@ -2243,36 +2316,83 @@
2243 cygwin*)2316 cygwin*)
2244 # Cygwin DLLs use 'cyg' prefix rather than 'lib'2317 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
2245 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'2318 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2246 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"2319m4_if([$1], [],[
2320 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"])
2247 ;;2321 ;;
2248 mingw* | cegcc*)2322 mingw* | cegcc*)
2249 # MinGW DLLs use traditional 'lib' prefix2323 # MinGW DLLs use traditional 'lib' prefix
2250 soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'2324 soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2251 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
2252 if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
2253 # It is most probably a Windows format PATH printed by
2254 # mingw gcc, but we are running on Cygwin. Gcc prints its search
2255 # path with ; separators, and with drive letters. We can handle the
2256 # drive letters (cygwin fileutils understands them), so leave them,
2257 # especially as we might pass files found there to a mingw objdump,
2258 # which wouldn't understand a cygwinified path. Ahh.
2259 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
2260 else
2261 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2262 fi
2263 ;;2325 ;;
2264 pw32*)2326 pw32*)
2265 # pw32 DLLs use 'pw' prefix rather than 'lib'2327 # pw32 DLLs use 'pw' prefix rather than 'lib'
2266 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'2328 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2267 ;;2329 ;;
2268 esac2330 esac
2331 dynamic_linker='Win32 ld.exe'
2332 ;;
2333
2334 *,cl*)
2335 # Native MSVC
2336 libname_spec='$name'
2337 soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2338 library_names_spec='${libname}.dll.lib'
2339
2340 case $build_os in
2341 mingw*)
2342 sys_lib_search_path_spec=
2343 lt_save_ifs=$IFS
2344 IFS=';'
2345 for lt_path in $LIB
2346 do
2347 IFS=$lt_save_ifs
2348 # Let DOS variable expansion print the short 8.3 style file name.
2349 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
2350 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
2351 done
2352 IFS=$lt_save_ifs
2353 # Convert to MSYS style.
2354 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|g' -e 's|^ ||'`
2355 ;;
2356 cygwin*)
2357 # Convert to unix form, then to dos form, then back to unix form
2358 # but this time dos style (no spaces!) so that the unix form looks
2359 # like /cygdrive/c/PROGRA~1:/cygdr...
2360 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
2361 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
2362 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2363 ;;
2364 *)
2365 sys_lib_search_path_spec="$LIB"
2366 if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
2367 # It is most probably a Windows format PATH.
2368 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
2369 else
2370 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2371 fi
2372 # FIXME: find the short name or the path components, as spaces are
2373 # common. (e.g. "Program Files" -> "PROGRA~1")
2374 ;;
2375 esac
2376
2377 # DLL is installed to $(libdir)/../bin by postinstall_cmds
2378 postinstall_cmds='base_file=`basename \${file}`~
2379 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
2380 dldir=$destdir/`dirname \$dlpath`~
2381 test -d \$dldir || mkdir -p \$dldir~
2382 $install_prog $dir/$dlname \$dldir/$dlname'
2383 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
2384 dlpath=$dir/\$dldll~
2385 $RM \$dlpath'
2386 shlibpath_overrides_runpath=yes
2387 dynamic_linker='Win32 link.exe'
2269 ;;2388 ;;
22702389
2271 *)2390 *)
2391 # Assume MSVC wrapper
2272 library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'2392 library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
2393 dynamic_linker='Win32 ld.exe'
2273 ;;2394 ;;
2274 esac2395 esac
2275 dynamic_linker='Win32 ld.exe'
2276 # FIXME: first we should search . and the directory the executable is in2396 # FIXME: first we should search . and the directory the executable is in
2277 shlibpath_var=PATH2397 shlibpath_var=PATH
2278 ;;2398 ;;
@@ -2356,6 +2476,20 @@
2356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'2476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
2357 soname_spec='${libname}${release}${shared_ext}$major'2477 soname_spec='${libname}${release}${shared_ext}$major'
2358 shlibpath_var=LD_LIBRARY_PATH2478 shlibpath_var=LD_LIBRARY_PATH
2479 shlibpath_overrides_runpath=no
2480 hardcode_into_libs=yes
2481 ;;
2482
2483haiku*)
2484 version_type=linux
2485 need_lib_prefix=no
2486 need_version=no
2487 dynamic_linker="$host_os runtime_loader"
2488 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
2489 soname_spec='${libname}${release}${shared_ext}$major'
2490 shlibpath_var=LIBRARY_PATH
2491 shlibpath_overrides_runpath=yes
2492 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
2359 hardcode_into_libs=yes2493 hardcode_into_libs=yes
2360 ;;2494 ;;
23612495
@@ -2401,8 +2535,10 @@
2401 soname_spec='${libname}${release}${shared_ext}$major'2535 soname_spec='${libname}${release}${shared_ext}$major'
2402 ;;2536 ;;
2403 esac2537 esac
2404 # HP-UX runs *really* slowly unless shared libraries are mode 555.2538 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
2405 postinstall_cmds='chmod 555 $lib'2539 postinstall_cmds='chmod 555 $lib'
2540 # or fails outright, so override atomically:
2541 install_override_mode=555
2406 ;;2542 ;;
24072543
2408interix[[3-9]]*)2544interix[[3-9]]*)
@@ -2469,16 +2605,21 @@
2469 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'2605 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
2470 shlibpath_var=LD_LIBRARY_PATH2606 shlibpath_var=LD_LIBRARY_PATH
2471 shlibpath_overrides_runpath=no2607 shlibpath_overrides_runpath=no
2608
2472 # Some binutils ld are patched to set DT_RUNPATH2609 # Some binutils ld are patched to set DT_RUNPATH
2473 save_LDFLAGS=$LDFLAGS2610 AC_CACHE_VAL([lt_cv_shlibpath_overrides_runpath],
2474 save_libdir=$libdir2611 [lt_cv_shlibpath_overrides_runpath=no
2475 eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \2612 save_LDFLAGS=$LDFLAGS
2476 LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""2613 save_libdir=$libdir
2477 AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],2614 eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
2478 [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],2615 LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
2479 [shlibpath_overrides_runpath=yes])])2616 AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
2480 LDFLAGS=$save_LDFLAGS2617 [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
2481 libdir=$save_libdir2618 [lt_cv_shlibpath_overrides_runpath=yes])])
2619 LDFLAGS=$save_LDFLAGS
2620 libdir=$save_libdir
2621 ])
2622 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
24822623
2483 # This implies no fast_install, which is unacceptable.2624 # This implies no fast_install, which is unacceptable.
2484 # Some rework will be needed to allow for fast_install2625 # Some rework will be needed to allow for fast_install
@@ -2487,7 +2628,7 @@
24872628
2488 # Append ld.so.conf contents to the search path2629 # Append ld.so.conf contents to the search path
2489 if test -f /etc/ld.so.conf; then2630 if test -f /etc/ld.so.conf; then
2490 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`2631 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
2491 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"2632 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
2492 fi2633 fi
24932634
@@ -2732,6 +2873,8 @@
2732 The last name is the one that the linker finds with -lNAME]])2873 The last name is the one that the linker finds with -lNAME]])
2733_LT_DECL([], [soname_spec], [1],2874_LT_DECL([], [soname_spec], [1],
2734 [[The coded name of the library, if different from the real name]])2875 [[The coded name of the library, if different from the real name]])
2876_LT_DECL([], [install_override_mode], [1],
2877 [Permission mode override for installation of shared libraries])
2735_LT_DECL([], [postinstall_cmds], [2],2878_LT_DECL([], [postinstall_cmds], [2],
2736 [Command to use after installation of a shared archive])2879 [Command to use after installation of a shared archive])
2737_LT_DECL([], [postuninstall_cmds], [2],2880_LT_DECL([], [postuninstall_cmds], [2],
@@ -2844,6 +2987,7 @@
2844AC_REQUIRE([AC_CANONICAL_BUILD])dnl2987AC_REQUIRE([AC_CANONICAL_BUILD])dnl
2845m4_require([_LT_DECL_SED])dnl2988m4_require([_LT_DECL_SED])dnl
2846m4_require([_LT_DECL_EGREP])dnl2989m4_require([_LT_DECL_EGREP])dnl
2990m4_require([_LT_PROG_ECHO_BACKSLASH])dnl
28472991
2848AC_ARG_WITH([gnu-ld],2992AC_ARG_WITH([gnu-ld],
2849 [AS_HELP_STRING([--with-gnu-ld],2993 [AS_HELP_STRING([--with-gnu-ld],
@@ -2965,6 +3109,11 @@
2965esac3109esac
2966reload_cmds='$LD$reload_flag -o $output$reload_objs'3110reload_cmds='$LD$reload_flag -o $output$reload_objs'
2967case $host_os in3111case $host_os in
3112 cygwin* | mingw* | pw32* | cegcc*)
3113 if test "$GCC" != yes; then
3114 reload_cmds=false
3115 fi
3116 ;;
2968 darwin*)3117 darwin*)
2969 if test "$GCC" = yes; then3118 if test "$GCC" = yes; then
2970 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'3119 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
@@ -2973,8 +3122,8 @@
2973 fi3122 fi
2974 ;;3123 ;;
2975esac3124esac
2976_LT_DECL([], [reload_flag], [1], [How to create reloadable object files])dnl3125_LT_TAGDECL([], [reload_flag], [1], [How to create reloadable object files])dnl
2977_LT_DECL([], [reload_cmds], [2])dnl3126_LT_TAGDECL([], [reload_cmds], [2])dnl
2978])# _LT_CMD_RELOAD3127])# _LT_CMD_RELOAD
29793128
29803129
@@ -3026,16 +3175,18 @@
3026 # Base MSYS/MinGW do not provide the 'file' command needed by3175 # Base MSYS/MinGW do not provide the 'file' command needed by
3027 # func_win32_libid shell function, so use a weaker test based on 'objdump',3176 # func_win32_libid shell function, so use a weaker test based on 'objdump',
3028 # unless we find 'file', for example because we are cross-compiling.3177 # unless we find 'file', for example because we are cross-compiling.
3029 if ( file / ) >/dev/null 2>&1; then3178 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
3179 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
3030 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'3180 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3031 lt_cv_file_magic_cmd='func_win32_libid'3181 lt_cv_file_magic_cmd='func_win32_libid'
3032 else3182 else
3033 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'3183 # Keep this pattern in sync with the one in func_win32_libid.
3184 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
3034 lt_cv_file_magic_cmd='$OBJDUMP -f'3185 lt_cv_file_magic_cmd='$OBJDUMP -f'
3035 fi3186 fi
3036 ;;3187 ;;
30373188
3038cegcc)3189cegcc*)
3039 # use the weaker test based on 'objdump'. See mingw*.3190 # use the weaker test based on 'objdump'. See mingw*.
3040 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'3191 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
3041 lt_cv_file_magic_cmd='$OBJDUMP -f'3192 lt_cv_file_magic_cmd='$OBJDUMP -f'
@@ -3065,6 +3216,10 @@
3065 lt_cv_deplibs_check_method=pass_all3216 lt_cv_deplibs_check_method=pass_all
3066 ;;3217 ;;
30673218
3219haiku*)
3220 lt_cv_deplibs_check_method=pass_all
3221 ;;
3222
3068hpux10.20* | hpux11*)3223hpux10.20* | hpux11*)
3069 lt_cv_file_magic_cmd=/usr/bin/file3224 lt_cv_file_magic_cmd=/usr/bin/file
3070 case $host_cpu in3225 case $host_cpu in
@@ -3073,11 +3228,11 @@
3073 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so3228 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3074 ;;3229 ;;
3075 hppa*64*)3230 hppa*64*)
3076 [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]']3231 [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]']
3077 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl3232 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3078 ;;3233 ;;
3079 *)3234 *)
3080 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'3235 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]]\.[[0-9]]) shared library'
3081 lt_cv_file_magic_test_file=/usr/lib/libc.sl3236 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3082 ;;3237 ;;
3083 esac3238 esac
@@ -3177,6 +3332,21 @@
3177 ;;3332 ;;
3178esac3333esac
3179])3334])
3335
3336file_magic_glob=
3337want_nocaseglob=no
3338if test "$build" = "$host"; then
3339 case $host_os in
3340 mingw* | pw32*)
3341 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
3342 want_nocaseglob=yes
3343 else
3344 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[[\1]]\/[[\1]]\/g;/g"`
3345 fi
3346 ;;
3347 esac
3348fi
3349
3180file_magic_cmd=$lt_cv_file_magic_cmd3350file_magic_cmd=$lt_cv_file_magic_cmd
3181deplibs_check_method=$lt_cv_deplibs_check_method3351deplibs_check_method=$lt_cv_deplibs_check_method
3182test -z "$deplibs_check_method" && deplibs_check_method=unknown3352test -z "$deplibs_check_method" && deplibs_check_method=unknown
@@ -3184,7 +3354,11 @@
3184_LT_DECL([], [deplibs_check_method], [1],3354_LT_DECL([], [deplibs_check_method], [1],
3185 [Method to check whether dependent libraries are shared objects])3355 [Method to check whether dependent libraries are shared objects])
3186_LT_DECL([], [file_magic_cmd], [1],3356_LT_DECL([], [file_magic_cmd], [1],
3187 [Command to use when deplibs_check_method == "file_magic"])3357 [Command to use when deplibs_check_method = "file_magic"])
3358_LT_DECL([], [file_magic_glob], [1],
3359 [How to find potential files when deplibs_check_method = "file_magic"])
3360_LT_DECL([], [want_nocaseglob], [1],
3361 [Find potential files using nocaseglob when deplibs_check_method = "file_magic"])
3188])# _LT_CHECK_MAGIC_METHOD3362])# _LT_CHECK_MAGIC_METHOD
31893363
31903364
@@ -3241,7 +3415,19 @@
3241 NM="$lt_cv_path_NM"3415 NM="$lt_cv_path_NM"
3242else3416else
3243 # Didn't find any BSD compatible name lister, look for dumpbin.3417 # Didn't find any BSD compatible name lister, look for dumpbin.
3244 AC_CHECK_TOOLS(DUMPBIN, ["dumpbin -symbols" "link -dump -symbols"], :)3418 if test -n "$DUMPBIN"; then :
3419 # Let the user override the test.
3420 else
3421 AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :)
3422 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
3423 *COFF*)
3424 DUMPBIN="$DUMPBIN -symbols"
3425 ;;
3426 *)
3427 DUMPBIN=:
3428 ;;
3429 esac
3430 fi
3245 AC_SUBST([DUMPBIN])3431 AC_SUBST([DUMPBIN])
3246 if test "$DUMPBIN" != ":"; then3432 if test "$DUMPBIN" != ":"; then
3247 NM="$DUMPBIN"3433 NM="$DUMPBIN"
@@ -3254,13 +3440,13 @@
3254AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],3440AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
3255 [lt_cv_nm_interface="BSD nm"3441 [lt_cv_nm_interface="BSD nm"
3256 echo "int some_variable = 0;" > conftest.$ac_ext3442 echo "int some_variable = 0;" > conftest.$ac_ext
3257 (eval echo "\"\$as_me:__oline__: $ac_compile\"" >&AS_MESSAGE_LOG_FD)3443 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
3258 (eval "$ac_compile" 2>conftest.err)3444 (eval "$ac_compile" 2>conftest.err)
3259 cat conftest.err >&AS_MESSAGE_LOG_FD3445 cat conftest.err >&AS_MESSAGE_LOG_FD
3260 (eval echo "\"\$as_me:__oline__: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)3446 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
3261 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)3447 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
3262 cat conftest.err >&AS_MESSAGE_LOG_FD3448 cat conftest.err >&AS_MESSAGE_LOG_FD
3263 (eval echo "\"\$as_me:__oline__: output\"" >&AS_MESSAGE_LOG_FD)3449 (eval echo "\"\$as_me:$LINENO: output\"" >&AS_MESSAGE_LOG_FD)
3264 cat conftest.out >&AS_MESSAGE_LOG_FD3450 cat conftest.out >&AS_MESSAGE_LOG_FD
3265 if $GREP 'External.*some_variable' conftest.out > /dev/null; then3451 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
3266 lt_cv_nm_interface="MS dumpbin"3452 lt_cv_nm_interface="MS dumpbin"
@@ -3275,6 +3461,67 @@
3275dnl AC_DEFUN([AM_PROG_NM], [])3461dnl AC_DEFUN([AM_PROG_NM], [])
3276dnl AC_DEFUN([AC_PROG_NM], [])3462dnl AC_DEFUN([AC_PROG_NM], [])
32773463
3464# _LT_CHECK_SHAREDLIB_FROM_LINKLIB
3465# --------------------------------
3466# how to determine the name of the shared library
3467# associated with a specific link library.
3468# -- PORTME fill in with the dynamic library characteristics
3469m4_defun([_LT_CHECK_SHAREDLIB_FROM_LINKLIB],
3470[m4_require([_LT_DECL_EGREP])
3471m4_require([_LT_DECL_OBJDUMP])
3472m4_require([_LT_DECL_DLLTOOL])
3473AC_CACHE_CHECK([how to associate runtime and link libraries],
3474lt_cv_sharedlib_from_linklib_cmd,
3475[lt_cv_sharedlib_from_linklib_cmd='unknown'
3476
3477case $host_os in
3478cygwin* | mingw* | pw32* | cegcc*)
3479 # two different shell functions defined in ltmain.sh
3480 # decide which to use based on capabilities of $DLLTOOL
3481 case `$DLLTOOL --help 2>&1` in
3482 *--identify-strict*)
3483 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
3484 ;;
3485 *)
3486 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
3487 ;;
3488 esac
3489 ;;
3490*)
3491 # fallback: assume linklib IS sharedlib
3492 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
3493 ;;
3494esac
3495])
3496sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
3497test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
3498
3499_LT_DECL([], [sharedlib_from_linklib_cmd], [1],
3500 [Command to associate shared and link libraries])
3501])# _LT_CHECK_SHAREDLIB_FROM_LINKLIB
3502
3503
3504# _LT_PATH_MANIFEST_TOOL
3505# ----------------------
3506# locate the manifest tool
3507m4_defun([_LT_PATH_MANIFEST_TOOL],
3508[AC_CHECK_TOOL(MANIFEST_TOOL, mt, :)
3509test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
3510AC_CACHE_CHECK([if $MANIFEST_TOOL is a manifest tool], [lt_cv_path_mainfest_tool],
3511 [lt_cv_path_mainfest_tool=no
3512 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&AS_MESSAGE_LOG_FD
3513 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
3514 cat conftest.err >&AS_MESSAGE_LOG_FD
3515 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
3516 lt_cv_path_mainfest_tool=yes
3517 fi
3518 rm -f conftest*])
3519if test "x$lt_cv_path_mainfest_tool" != xyes; then
3520 MANIFEST_TOOL=:
3521fi
3522_LT_DECL([], [MANIFEST_TOOL], [1], [Manifest tool])dnl
3523])# _LT_PATH_MANIFEST_TOOL
3524
32783525
3279# LT_LIB_M3526# LT_LIB_M
3280# --------3527# --------
@@ -3283,7 +3530,7 @@
3283[AC_REQUIRE([AC_CANONICAL_HOST])dnl3530[AC_REQUIRE([AC_CANONICAL_HOST])dnl
3284LIBM=3531LIBM=
3285case $host in3532case $host in
3286*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)3533*-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
3287 # These system don't have libm, or don't need it3534 # These system don't have libm, or don't need it
3288 ;;3535 ;;
3289*-ncr-sysv4.3*)3536*-ncr-sysv4.3*)
@@ -3311,7 +3558,12 @@
3311_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=3558_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
33123559
3313if test "$GCC" = yes; then3560if test "$GCC" = yes; then
3314 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'3561 case $cc_basename in
3562 nvcc*)
3563 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -Xcompiler -fno-builtin' ;;
3564 *)
3565 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' ;;
3566 esac
33153567
3316 _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],3568 _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
3317 lt_cv_prog_compiler_rtti_exceptions,3569 lt_cv_prog_compiler_rtti_exceptions,
@@ -3328,6 +3580,7 @@
3328m4_defun([_LT_CMD_GLOBAL_SYMBOLS],3580m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
3329[AC_REQUIRE([AC_CANONICAL_HOST])dnl3581[AC_REQUIRE([AC_CANONICAL_HOST])dnl
3330AC_REQUIRE([AC_PROG_CC])dnl3582AC_REQUIRE([AC_PROG_CC])dnl
3583AC_REQUIRE([AC_PROG_AWK])dnl
3331AC_REQUIRE([LT_PATH_NM])dnl3584AC_REQUIRE([LT_PATH_NM])dnl
3332AC_REQUIRE([LT_PATH_LD])dnl3585AC_REQUIRE([LT_PATH_LD])dnl
3333m4_require([_LT_DECL_SED])dnl3586m4_require([_LT_DECL_SED])dnl
@@ -3395,8 +3648,8 @@
3395lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"3648lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
33963649
3397# Transform an extracted symbol line into symbol name and symbol address3650# Transform an extracted symbol line into symbol name and symbol address
3398lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'"3651lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'"
3399lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \(lib[[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"lib\2\", (void *) \&\2},/p'"3652lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \(lib[[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
34003653
3401# Handle CRLF in mingw tool chain3654# Handle CRLF in mingw tool chain
3402opt_cr=3655opt_cr=
@@ -3432,6 +3685,7 @@
3432 else3685 else
3433 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"3686 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
3434 fi3687 fi
3688 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
34353689
3436 # Check to see that the pipe works correctly.3690 # Check to see that the pipe works correctly.
3437 pipe_works=no3691 pipe_works=no
@@ -3453,7 +3707,7 @@
3453 if AC_TRY_EVAL(ac_compile); then3707 if AC_TRY_EVAL(ac_compile); then
3454 # Now try to grab the symbols.3708 # Now try to grab the symbols.
3455 nlist=conftest.nm3709 nlist=conftest.nm
3456 if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then3710 if AC_TRY_EVAL(NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) && test -s "$nlist"; then
3457 # Try sorting and uniquifying the output.3711 # Try sorting and uniquifying the output.
3458 if sort "$nlist" | uniq > "$nlist"T; then3712 if sort "$nlist" | uniq > "$nlist"T; then
3459 mv -f "$nlist"T "$nlist"3713 mv -f "$nlist"T "$nlist"
@@ -3465,6 +3719,18 @@
3465 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then3719 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
3466 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then3720 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
3467 cat <<_LT_EOF > conftest.$ac_ext3721 cat <<_LT_EOF > conftest.$ac_ext
3722/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
3723#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
3724/* DATA imports from DLLs on WIN32 con't be const, because runtime
3725 relocations are performed -- see ld's documentation on pseudo-relocs. */
3726# define LT@&t@_DLSYM_CONST
3727#elif defined(__osf__)
3728/* This system does not cope well with relocations in const data. */
3729# define LT@&t@_DLSYM_CONST
3730#else
3731# define LT@&t@_DLSYM_CONST const
3732#endif
3733
3468#ifdef __cplusplus3734#ifdef __cplusplus
3469extern "C" {3735extern "C" {
3470#endif3736#endif
@@ -3476,7 +3742,7 @@
3476 cat <<_LT_EOF >> conftest.$ac_ext3742 cat <<_LT_EOF >> conftest.$ac_ext
34773743
3478/* The mapping between symbol names and symbols. */3744/* The mapping between symbol names and symbols. */
3479const struct {3745LT@&t@_DLSYM_CONST struct {
3480 const char *name;3746 const char *name;
3481 void *address;3747 void *address;
3482}3748}
@@ -3502,15 +3768,15 @@
3502_LT_EOF3768_LT_EOF
3503 # Now try linking the two files.3769 # Now try linking the two files.
3504 mv conftest.$ac_objext conftstm.$ac_objext3770 mv conftest.$ac_objext conftstm.$ac_objext
3505 lt_save_LIBS="$LIBS"3771 lt_globsym_save_LIBS=$LIBS
3506 lt_save_CFLAGS="$CFLAGS"3772 lt_globsym_save_CFLAGS=$CFLAGS
3507 LIBS="conftstm.$ac_objext"3773 LIBS="conftstm.$ac_objext"
3508 CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"3774 CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
3509 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then3775 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
3510 pipe_works=yes3776 pipe_works=yes
3511 fi3777 fi
3512 LIBS="$lt_save_LIBS"3778 LIBS=$lt_globsym_save_LIBS
3513 CFLAGS="$lt_save_CFLAGS"3779 CFLAGS=$lt_globsym_save_CFLAGS
3514 else3780 else
3515 echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD3781 echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
3516 fi3782 fi
@@ -3543,6 +3809,13 @@
3543 AC_MSG_RESULT(ok)3809 AC_MSG_RESULT(ok)
3544fi3810fi
35453811
3812# Response file support.
3813if test "$lt_cv_nm_interface" = "MS dumpbin"; then
3814 nm_file_list_spec='@'
3815elif $NM --help 2>/dev/null | grep '[[@]]FILE' >/dev/null; then
3816 nm_file_list_spec='@'
3817fi
3818
3546_LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],3819_LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
3547 [Take the output of nm and produce a listing of raw symbols and C names])3820 [Take the output of nm and produce a listing of raw symbols and C names])
3548_LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],3821_LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
@@ -3553,6 +3826,8 @@
3553_LT_DECL([global_symbol_to_c_name_address_lib_prefix],3826_LT_DECL([global_symbol_to_c_name_address_lib_prefix],
3554 [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],3827 [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
3555 [Transform the output of nm in a C name address pair when lib prefix is needed])3828 [Transform the output of nm in a C name address pair when lib prefix is needed])
3829_LT_DECL([], [nm_file_list_spec], [1],
3830 [Specify filename containing input files for $NM])
3556]) # _LT_CMD_GLOBAL_SYMBOLS3831]) # _LT_CMD_GLOBAL_SYMBOLS
35573832
35583833
@@ -3564,7 +3839,6 @@
3564_LT_TAGVAR(lt_prog_compiler_pic, $1)=3839_LT_TAGVAR(lt_prog_compiler_pic, $1)=
3565_LT_TAGVAR(lt_prog_compiler_static, $1)=3840_LT_TAGVAR(lt_prog_compiler_static, $1)=
35663841
3567AC_MSG_CHECKING([for $compiler option to produce PIC])
3568m4_if([$1], [CXX], [3842m4_if([$1], [CXX], [
3569 # C++ specific cases for pic, static, wl, etc.3843 # C++ specific cases for pic, static, wl, etc.
3570 if test "$GXX" = yes; then3844 if test "$GXX" = yes; then
@@ -3615,6 +3889,11 @@
3615 # DJGPP does not support shared libraries at all3889 # DJGPP does not support shared libraries at all
3616 _LT_TAGVAR(lt_prog_compiler_pic, $1)=3890 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
3617 ;;3891 ;;
3892 haiku*)
3893 # PIC is the default for Haiku.
3894 # The "-static" flag exists, but is broken.
3895 _LT_TAGVAR(lt_prog_compiler_static, $1)=
3896 ;;
3618 interix[[3-9]]*)3897 interix[[3-9]]*)
3619 # Interix 3.x gcc -fpic/-fPIC options generate broken code.3898 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
3620 # Instead, we relocate shared libraries at runtime.3899 # Instead, we relocate shared libraries at runtime.
@@ -3664,6 +3943,12 @@
3664 ;;3943 ;;
3665 esac3944 esac
3666 ;;3945 ;;
3946 mingw* | cygwin* | os2* | pw32* | cegcc*)
3947 # This hack is so that the source file can tell whether it is being
3948 # built for inclusion in a dll (and should export symbols for example).
3949 m4_if([$1], [GCJ], [],
3950 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
3951 ;;
3667 dgux*)3952 dgux*)
3668 case $cc_basename in3953 case $cc_basename in
3669 ec++*)3954 ec++*)
@@ -3753,8 +4038,8 @@
3753 _LT_TAGVAR(lt_prog_compiler_pic, $1)=4038 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
3754 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'4039 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
3755 ;;4040 ;;
3756 xlc* | xlC*)4041 xlc* | xlC* | bgxl[[cC]]* | mpixl[[cC]]*)
3757 # IBM XL 8.0 on PPC4042 # IBM XL 8.0, 9.0 on PPC and BlueGene
3758 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'4043 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3759 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'4044 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
3760 _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'4045 _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
@@ -3816,7 +4101,7 @@
3816 ;;4101 ;;
3817 solaris*)4102 solaris*)
3818 case $cc_basename in4103 case $cc_basename in
3819 CC*)4104 CC* | sunCC*)
3820 # Sun C++ 4.2, 5.x and Centerline C++4105 # Sun C++ 4.2, 5.x and Centerline C++
3821 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'4106 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
3822 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'4107 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
@@ -3920,6 +4205,12 @@
3920 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'4205 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
3921 ;;4206 ;;
39224207
4208 haiku*)
4209 # PIC is the default for Haiku.
4210 # The "-static" flag exists, but is broken.
4211 _LT_TAGVAR(lt_prog_compiler_static, $1)=
4212 ;;
4213
3923 hpux*)4214 hpux*)
3924 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit4215 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
3925 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag4216 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
@@ -3962,6 +4253,13 @@
3962 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'4253 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
3963 ;;4254 ;;
3964 esac4255 esac
4256
4257 case $cc_basename in
4258 nvcc*) # Cuda Compiler Driver 2.2
4259 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker '
4260 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Xcompiler -fPIC'
4261 ;;
4262 esac
3965 else4263 else
3966 # PORTME Check for flag to pass linker flags through the system compiler.4264 # PORTME Check for flag to pass linker flags through the system compiler.
3967 case $host_os in4265 case $host_os in
@@ -4025,7 +4323,13 @@
4025 _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'4323 _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
4026 _LT_TAGVAR(lt_prog_compiler_static, $1)='--static'4324 _LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
4027 ;;4325 ;;
4028 pgcc* | pgf77* | pgf90* | pgf95*)4326 nagfor*)
4327 # NAG Fortran compiler
4328 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,'
4329 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
4330 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4331 ;;
4332 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
4029 # Portland Group compilers (*not* the Pentium gcc compiler,4333 # Portland Group compilers (*not* the Pentium gcc compiler,
4030 # which looks to be a dead project)4334 # which looks to be a dead project)
4031 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'4335 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
@@ -4037,26 +4341,26 @@
4037 # All Alpha code is PIC.4341 # All Alpha code is PIC.
4038 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'4342 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4039 ;;4343 ;;
4040 xl*)4344 xl* | bgxl* | bgf* | mpixl*)
4041 # IBM XL C 8.0/Fortran 10.1 on PPC4345 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
4042 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'4346 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4043 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'4347 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
4044 _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'4348 _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
4045 ;;4349 ;;
4046 *)4350 *)
4047 case `$CC -V 2>&1 | sed 5q` in4351 case `$CC -V 2>&1 | sed 5q` in
4352 *Sun\ F* | *Sun*Fortran*)
4353 # Sun Fortran 8.3 passes all unrecognized flags to the linker
4354 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4355 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4356 _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
4357 ;;
4048 *Sun\ C*)4358 *Sun\ C*)
4049 # Sun C 5.94359 # Sun C 5.9
4050 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'4360 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4051 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'4361 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4052 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'4362 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4053 ;;4363 ;;
4054 *Sun\ F*)
4055 # Sun Fortran 8.3 passes all unrecognized flags to the linker
4056 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4057 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4058 _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
4059 ;;
4060 esac4364 esac
4061 ;;4365 ;;
4062 esac4366 esac
@@ -4087,7 +4391,7 @@
4087 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'4391 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4088 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'4392 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4089 case $cc_basename in4393 case $cc_basename in
4090 f77* | f90* | f95*)4394 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
4091 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;4395 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
4092 *)4396 *)
4093 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;4397 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
@@ -4144,9 +4448,11 @@
4144 _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"4448 _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
4145 ;;4449 ;;
4146esac4450esac
4147AC_MSG_RESULT([$_LT_TAGVAR(lt_prog_compiler_pic, $1)])4451
4148_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],4452AC_CACHE_CHECK([for $compiler option to produce PIC],
4149 [How to pass a linker flag through the compiler])4453 [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)],
4454 [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
4455_LT_TAGVAR(lt_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)
41504456
4151#4457#
4152# Check to make sure the PIC flag actually works.4458# Check to make sure the PIC flag actually works.
@@ -4165,6 +4471,8 @@
4165_LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],4471_LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
4166 [Additional compiler flags for building library objects])4472 [Additional compiler flags for building library objects])
41674473
4474_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
4475 [How to pass a linker flag through the compiler])
4168#4476#
4169# Check to make sure the static flag actually works.4477# Check to make sure the static flag actually works.
4170#4478#
@@ -4185,6 +4493,7 @@
4185m4_defun([_LT_LINKER_SHLIBS],4493m4_defun([_LT_LINKER_SHLIBS],
4186[AC_REQUIRE([LT_PATH_LD])dnl4494[AC_REQUIRE([LT_PATH_LD])dnl
4187AC_REQUIRE([LT_PATH_NM])dnl4495AC_REQUIRE([LT_PATH_NM])dnl
4496m4_require([_LT_PATH_MANIFEST_TOOL])dnl
4188m4_require([_LT_FILEUTILS_DEFAULTS])dnl4497m4_require([_LT_FILEUTILS_DEFAULTS])dnl
4189m4_require([_LT_DECL_EGREP])dnl4498m4_require([_LT_DECL_EGREP])dnl
4190m4_require([_LT_DECL_SED])dnl4499m4_require([_LT_DECL_SED])dnl
@@ -4193,30 +4502,38 @@
4193AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])4502AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
4194m4_if([$1], [CXX], [4503m4_if([$1], [CXX], [
4195 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'4504 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4505 _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
4196 case $host_os in4506 case $host_os in
4197 aix[[4-9]]*)4507 aix[[4-9]]*)
4198 # If we're using GNU nm, then we don't want the "-C" option.4508 # If we're using GNU nm, then we don't want the "-C" option.
4199 # -C means demangle to AIX nm, but means don't demangle with GNU nm4509 # -C means demangle to AIX nm, but means don't demangle with GNU nm
4510 # Also, AIX nm treats weak defined symbols like other global defined
4511 # symbols, whereas GNU nm marks them as "W".
4200 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then4512 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
4201 _LT_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'4513 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
4202 else4514 else
4203 _LT_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'4515 _LT_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'
4204 fi4516 fi
4205 ;;4517 ;;
4206 pw32*)4518 pw32*)
4207 _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"4519 _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
4208 ;;4520 ;;
4209 cygwin* | mingw* | cegcc*)4521 cygwin* | mingw* | cegcc*)
4210 _LT_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'4522 case $cc_basename in
4211 ;;4523 cl*) ;;
4212 linux* | k*bsd*-gnu)4524 *)
4525 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
4526 _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
4527 ;;
4528 esac
4529 ;;
4530 linux* | k*bsd*-gnu | gnu*)
4213 _LT_TAGVAR(link_all_deplibs, $1)=no4531 _LT_TAGVAR(link_all_deplibs, $1)=no
4214 ;;4532 ;;
4215 *)4533 *)
4216 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'4534 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4217 ;;4535 ;;
4218 esac4536 esac
4219 _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
4220], [4537], [
4221 runpath_var=4538 runpath_var=
4222 _LT_TAGVAR(allow_undefined_flag, $1)=4539 _LT_TAGVAR(allow_undefined_flag, $1)=
@@ -4276,13 +4593,39 @@
4276 openbsd*)4593 openbsd*)
4277 with_gnu_ld=no4594 with_gnu_ld=no
4278 ;;4595 ;;
4279 linux* | k*bsd*-gnu)4596 linux* | k*bsd*-gnu | gnu*)
4280 _LT_TAGVAR(link_all_deplibs, $1)=no4597 _LT_TAGVAR(link_all_deplibs, $1)=no
4281 ;;4598 ;;
4282 esac4599 esac
42834600
4284 _LT_TAGVAR(ld_shlibs, $1)=yes4601 _LT_TAGVAR(ld_shlibs, $1)=yes
4602
4603 # On some targets, GNU ld is compatible enough with the native linker
4604 # that we're better off using the native interface for both.
4605 lt_use_gnu_ld_interface=no
4285 if test "$with_gnu_ld" = yes; then4606 if test "$with_gnu_ld" = yes; then
4607 case $host_os in
4608 aix*)
4609 # The AIX port of GNU ld has always aspired to compatibility
4610 # with the native linker. However, as the warning in the GNU ld
4611 # block says, versions before 2.19.5* couldn't really create working
4612 # shared libraries, regardless of the interface used.
4613 case `$LD -v 2>&1` in
4614 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
4615 *\ \(GNU\ Binutils\)\ 2.[[2-9]]*) ;;
4616 *\ \(GNU\ Binutils\)\ [[3-9]]*) ;;
4617 *)
4618 lt_use_gnu_ld_interface=yes
4619 ;;
4620 esac
4621 ;;
4622 *)
4623 lt_use_gnu_ld_interface=yes
4624 ;;
4625 esac
4626 fi
4627
4628 if test "$lt_use_gnu_ld_interface" = yes; then
4286 # If archive_cmds runs LD, not CC, wlarc should be empty4629 # If archive_cmds runs LD, not CC, wlarc should be empty
4287 wlarc='${wl}'4630 wlarc='${wl}'
42884631
@@ -4316,11 +4659,12 @@
4316 _LT_TAGVAR(ld_shlibs, $1)=no4659 _LT_TAGVAR(ld_shlibs, $1)=no
4317 cat <<_LT_EOF 1>&24660 cat <<_LT_EOF 1>&2
43184661
4319*** Warning: the GNU linker, at least up to release 2.9.1, is reported4662*** Warning: the GNU linker, at least up to release 2.19, is reported
4320*** to be unable to reliably create shared libraries on AIX.4663*** to be unable to reliably create shared libraries on AIX.
4321*** Therefore, libtool is disabling shared libraries support. If you4664*** Therefore, libtool is disabling shared libraries support. If you
4322*** really care for shared libraries, you may want to modify your PATH4665*** really care for shared libraries, you may want to install binutils
4323*** so that a non-GNU linker is found, and then restart.4666*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
4667*** You will then need to restart the configuration process.
43244668
4325_LT_EOF4669_LT_EOF
4326 fi4670 fi
@@ -4356,10 +4700,12 @@
4356 # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,4700 # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
4357 # as there is no search path for DLLs.4701 # as there is no search path for DLLs.
4358 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'4702 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4703 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
4359 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported4704 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
4360 _LT_TAGVAR(always_export_symbols, $1)=no4705 _LT_TAGVAR(always_export_symbols, $1)=no
4361 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes4706 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
4362 _LT_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'4707 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
4708 _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
43634709
4364 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then4710 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
4365 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'4711 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
@@ -4377,6 +4723,11 @@
4377 fi4723 fi
4378 ;;4724 ;;
43794725
4726 haiku*)
4727 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4728 _LT_TAGVAR(link_all_deplibs, $1)=yes
4729 ;;
4730
4380 interix[[3-9]]*)4731 interix[[3-9]]*)
4381 _LT_TAGVAR(hardcode_direct, $1)=no4732 _LT_TAGVAR(hardcode_direct, $1)=no
4382 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no4733 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
@@ -4402,15 +4753,16 @@
4402 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \4753 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
4403 && test "$tmp_diet" = no4754 && test "$tmp_diet" = no
4404 then4755 then
4405 tmp_addflag=4756 tmp_addflag=' $pic_flag'
4406 tmp_sharedflag='-shared'4757 tmp_sharedflag='-shared'
4407 case $cc_basename,$host_cpu in4758 case $cc_basename,$host_cpu in
4408 pgcc*) # Portland Group C compiler4759 pgcc*) # Portland Group C compiler
4409 _LT_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'4760 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
4410 tmp_addflag=' $pic_flag'4761 tmp_addflag=' $pic_flag'
4411 ;;4762 ;;
4412 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers4763 pgf77* | pgf90* | pgf95* | pgfortran*)
4413 _LT_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'4764 # Portland Group f77 and f90 compilers
4765 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
4414 tmp_addflag=' $pic_flag -Mnomain' ;;4766 tmp_addflag=' $pic_flag -Mnomain' ;;
4415 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia644767 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
4416 tmp_addflag=' -i_dynamic' ;;4768 tmp_addflag=' -i_dynamic' ;;
@@ -4421,13 +4773,17 @@
4421 lf95*) # Lahey Fortran 8.14773 lf95*) # Lahey Fortran 8.1
4422 _LT_TAGVAR(whole_archive_flag_spec, $1)=4774 _LT_TAGVAR(whole_archive_flag_spec, $1)=
4423 tmp_sharedflag='--shared' ;;4775 tmp_sharedflag='--shared' ;;
4424 xl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)4776 xl[[cC]]* | bgxl[[cC]]* | mpixl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
4425 tmp_sharedflag='-qmkshrobj'4777 tmp_sharedflag='-qmkshrobj'
4426 tmp_addflag= ;;4778 tmp_addflag= ;;
4779 nvcc*) # Cuda Compiler Driver 2.2
4780 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
4781 _LT_TAGVAR(compiler_needs_object, $1)=yes
4782 ;;
4427 esac4783 esac
4428 case `$CC -V 2>&1 | sed 5q` in4784 case `$CC -V 2>&1 | sed 5q` in
4429 *Sun\ C*) # Sun C 5.94785 *Sun\ C*) # Sun C 5.9
4430 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'4786 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
4431 _LT_TAGVAR(compiler_needs_object, $1)=yes4787 _LT_TAGVAR(compiler_needs_object, $1)=yes
4432 tmp_sharedflag='-G' ;;4788 tmp_sharedflag='-G' ;;
4433 *Sun\ F*) # Sun Fortran 8.34789 *Sun\ F*) # Sun Fortran 8.3
@@ -4443,17 +4799,17 @@
4443 fi4799 fi
44444800
4445 case $cc_basename in4801 case $cc_basename in
4446 xlf*)4802 xlf* | bgf* | bgxlf* | mpixlf*)
4447 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself4803 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
4448 _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'4804 _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
4449 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=4805 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
4450 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'4806 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
4451 _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'4807 _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
4452 if test "x$supports_anon_versioning" = xyes; then4808 if test "x$supports_anon_versioning" = xyes; then
4453 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~4809 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
4454 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~4810 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
4455 echo "local: *; };" >> $output_objdir/$libname.ver~4811 echo "local: *; };" >> $output_objdir/$libname.ver~
4456 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'4812 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
4457 fi4813 fi
4458 ;;4814 ;;
4459 esac4815 esac
@@ -4467,8 +4823,8 @@
4467 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'4823 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
4468 wlarc=4824 wlarc=
4469 else4825 else
4470 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'4826 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4471 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'4827 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4472 fi4828 fi
4473 ;;4829 ;;
44744830
@@ -4486,8 +4842,8 @@
44864842
4487_LT_EOF4843_LT_EOF
4488 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then4844 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
4489 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'4845 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4490 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'4846 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4491 else4847 else
4492 _LT_TAGVAR(ld_shlibs, $1)=no4848 _LT_TAGVAR(ld_shlibs, $1)=no
4493 fi4849 fi
@@ -4533,8 +4889,8 @@
45334889
4534 *)4890 *)
4535 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then4891 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
4536 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'4892 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4537 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'4893 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4538 else4894 else
4539 _LT_TAGVAR(ld_shlibs, $1)=no4895 _LT_TAGVAR(ld_shlibs, $1)=no
4540 fi4896 fi
@@ -4574,8 +4930,10 @@
4574 else4930 else
4575 # If we're using GNU nm, then we don't want the "-C" option.4931 # If we're using GNU nm, then we don't want the "-C" option.
4576 # -C means demangle to AIX nm, but means don't demangle with GNU nm4932 # -C means demangle to AIX nm, but means don't demangle with GNU nm
4933 # Also, AIX nm treats weak defined symbols like other global
4934 # defined symbols, whereas GNU nm marks them as "W".
4577 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then4935 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
4578 _LT_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'4936 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
4579 else4937 else
4580 _LT_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'4938 _LT_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'
4581 fi4939 fi
@@ -4663,9 +5021,9 @@
4663 _LT_TAGVAR(allow_undefined_flag, $1)='-berok'5021 _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
4664 # Determine the default libpath from the value encoded in an5022 # Determine the default libpath from the value encoded in an
4665 # empty executable.5023 # empty executable.
4666 _LT_SYS_MODULE_PATH_AIX5024 _LT_SYS_MODULE_PATH_AIX([$1])
4667 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"5025 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
4668 _LT_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 "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"5026 _LT_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 func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
4669 else5027 else
4670 if test "$host_cpu" = ia64; then5028 if test "$host_cpu" = ia64; then
4671 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'5029 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
@@ -4674,14 +5032,19 @@
4674 else5032 else
4675 # Determine the default libpath from the value encoded in an5033 # Determine the default libpath from the value encoded in an
4676 # empty executable.5034 # empty executable.
4677 _LT_SYS_MODULE_PATH_AIX5035 _LT_SYS_MODULE_PATH_AIX([$1])
4678 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"5036 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
4679 # Warning - without using the other run time loading flags,5037 # Warning - without using the other run time loading flags,
4680 # -berok will link without error, but may produce a broken library.5038 # -berok will link without error, but may produce a broken library.
4681 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'5039 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
4682 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'5040 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
4683 # Exported symbols can be pulled into shared objects from archives5041 if test "$with_gnu_ld" = yes; then
4684 _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'5042 # We only use this code for GNU lds that support --whole-archive.
5043 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
5044 else
5045 # Exported symbols can be pulled into shared objects from archives
5046 _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
5047 fi
4685 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes5048 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
4686 # This is similar to how AIX traditionally builds its shared libraries.5049 # This is similar to how AIX traditionally builds its shared libraries.
4687 _LT_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'5050 _LT_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'
@@ -4713,20 +5076,63 @@
4713 # Microsoft Visual C++.5076 # Microsoft Visual C++.
4714 # hardcode_libdir_flag_spec is actually meaningless, as there is5077 # hardcode_libdir_flag_spec is actually meaningless, as there is
4715 # no search path for DLLs.5078 # no search path for DLLs.
4716 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '5079 case $cc_basename in
4717 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported5080 cl*)
4718 # Tell ltmain to make .lib files, not .a files.5081 # Native MSVC
4719 libext=lib5082 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
4720 # Tell ltmain to make .dll files, not .so files.5083 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
4721 shrext_cmds=".dll"5084 _LT_TAGVAR(always_export_symbols, $1)=yes
4722 # FIXME: Setting linknames here is a bad hack.5085 _LT_TAGVAR(file_list_spec, $1)='@'
4723 _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='5086 # Tell ltmain to make .lib files, not .a files.
4724 # The linker will automatically build a .lib file if we build a DLL.5087 libext=lib
4725 _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'5088 # Tell ltmain to make .dll files, not .so files.
4726 # FIXME: Should let the user specify the lib program.5089 shrext_cmds=".dll"
4727 _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'5090 # FIXME: Setting linknames here is a bad hack.
4728 _LT_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'5091 _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
4729 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes5092 _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
5093 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
5094 else
5095 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
5096 fi~
5097 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
5098 linknames='
5099 # The linker will not automatically build a static lib if we build a DLL.
5100 # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
5101 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5102 _LT_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'
5103 # Don't use ranlib
5104 _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
5105 _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
5106 lt_tool_outputfile="@TOOL_OUTPUT@"~
5107 case $lt_outputfile in
5108 *.exe|*.EXE) ;;
5109 *)
5110 lt_outputfile="$lt_outputfile.exe"
5111 lt_tool_outputfile="$lt_tool_outputfile.exe"
5112 ;;
5113 esac~
5114 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
5115 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
5116 $RM "$lt_outputfile.manifest";
5117 fi'
5118 ;;
5119 *)
5120 # Assume MSVC wrapper
5121 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
5122 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5123 # Tell ltmain to make .lib files, not .a files.
5124 libext=lib
5125 # Tell ltmain to make .dll files, not .so files.
5126 shrext_cmds=".dll"
5127 # FIXME: Setting linknames here is a bad hack.
5128 _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
5129 # The linker will automatically build a .lib file if we build a DLL.
5130 _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
5131 # FIXME: Should let the user specify the lib program.
5132 _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
5133 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5134 ;;
5135 esac
4730 ;;5136 ;;
47315137
4732 darwin* | rhapsody*)5138 darwin* | rhapsody*)
@@ -4764,7 +5170,7 @@
47645170
4765 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.5171 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
4766 freebsd* | dragonfly*)5172 freebsd* | dragonfly*)
4767 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'5173 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
4768 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'5174 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4769 _LT_TAGVAR(hardcode_direct, $1)=yes5175 _LT_TAGVAR(hardcode_direct, $1)=yes
4770 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no5176 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
@@ -4772,7 +5178,7 @@
47725178
4773 hpux9*)5179 hpux9*)
4774 if test "$GCC" = yes; then5180 if test "$GCC" = yes; then
4775 _LT_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'5181 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
4776 else5182 else
4777 _LT_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'5183 _LT_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'
4778 fi5184 fi
@@ -4787,8 +5193,8 @@
4787 ;;5193 ;;
47885194
4789 hpux10*)5195 hpux10*)
4790 if test "$GCC" = yes -a "$with_gnu_ld" = no; then5196 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
4791 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'5197 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
4792 else5198 else
4793 _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'5199 _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
4794 fi5200 fi
@@ -4806,16 +5212,16 @@
4806 ;;5212 ;;
48075213
4808 hpux11*)5214 hpux11*)
4809 if test "$GCC" = yes -a "$with_gnu_ld" = no; then5215 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
4810 case $host_cpu in5216 case $host_cpu in
4811 hppa*64*)5217 hppa*64*)
4812 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'5218 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
4813 ;;5219 ;;
4814 ia64*)5220 ia64*)
4815 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'5221 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
4816 ;;5222 ;;
4817 *)5223 *)
4818 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'5224 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
4819 ;;5225 ;;
4820 esac5226 esac
4821 else5227 else
@@ -4827,7 +5233,14 @@
4827 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'5233 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
4828 ;;5234 ;;
4829 *)5235 *)
4830 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'5236 m4_if($1, [], [
5237 # Older versions of the 11.00 compiler do not understand -b yet
5238 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
5239 _LT_LINKER_OPTION([if $CC understands -b],
5240 _LT_TAGVAR(lt_cv_prog_compiler__b, $1), [-b],
5241 [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'],
5242 [_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'])],
5243 [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'])
4831 ;;5244 ;;
4832 esac5245 esac
4833 fi5246 fi
@@ -4855,19 +5268,34 @@
48555268
4856 irix5* | irix6* | nonstopux*)5269 irix5* | irix6* | nonstopux*)
4857 if test "$GCC" = yes; then5270 if test "$GCC" = yes; then
4858 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'5271 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
4859 # Try to use the -exported_symbol ld option, if it does not5272 # Try to use the -exported_symbol ld option, if it does not
4860 # work, assume that -exports_file does not work either and5273 # work, assume that -exports_file does not work either and
4861 # implicitly export all symbols.5274 # implicitly export all symbols.
4862 save_LDFLAGS="$LDFLAGS"5275 # This should be the same for all languages, so no per-tag cache variable.
4863 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"5276 AC_CACHE_CHECK([whether the $host_os linker accepts -exported_symbol],
4864 AC_LINK_IFELSE(int foo(void) {},5277 [lt_cv_irix_exported_symbol],
4865 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'5278 [save_LDFLAGS="$LDFLAGS"
4866 )5279 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
4867 LDFLAGS="$save_LDFLAGS"5280 AC_LINK_IFELSE(
5281 [AC_LANG_SOURCE(
5282 [AC_LANG_CASE([C], [[int foo (void) { return 0; }]],
5283 [C++], [[int foo (void) { return 0; }]],
5284 [Fortran 77], [[
5285 subroutine foo
5286 end]],
5287 [Fortran], [[
5288 subroutine foo
5289 end]])])],
5290 [lt_cv_irix_exported_symbol=yes],
5291 [lt_cv_irix_exported_symbol=no])
5292 LDFLAGS="$save_LDFLAGS"])
5293 if test "$lt_cv_irix_exported_symbol" = yes; then
5294 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
5295 fi
4868 else5296 else
4869 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'5297 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
4870 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'5298 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
4871 fi5299 fi
4872 _LT_TAGVAR(archive_cmds_need_lc, $1)='no'5300 _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
4873 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'5301 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
@@ -4929,17 +5357,17 @@
4929 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'5357 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4930 _LT_TAGVAR(hardcode_minus_L, $1)=yes5358 _LT_TAGVAR(hardcode_minus_L, $1)=yes
4931 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported5359 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
4932 _LT_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'5360 _LT_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'
4933 _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'5361 _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
4934 ;;5362 ;;
49355363
4936 osf3*)5364 osf3*)
4937 if test "$GCC" = yes; then5365 if test "$GCC" = yes; then
4938 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'5366 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4939 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'5367 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
4940 else5368 else
4941 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'5369 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
4942 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'5370 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
4943 fi5371 fi
4944 _LT_TAGVAR(archive_cmds_need_lc, $1)='no'5372 _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
4945 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'5373 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
@@ -4949,13 +5377,13 @@
4949 osf4* | osf5*) # as osf3* with the addition of -msym flag5377 osf4* | osf5*) # as osf3* with the addition of -msym flag
4950 if test "$GCC" = yes; then5378 if test "$GCC" = yes; then
4951 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'5379 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4952 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'5380 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
4953 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'5381 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4954 else5382 else
4955 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'5383 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
4956 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'5384 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
4957 _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~5385 _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
4958 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'5386 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
49595387
4960 # Both c and cxx compiler support -rpath directly5388 # Both c and cxx compiler support -rpath directly
4961 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'5389 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
@@ -4968,9 +5396,9 @@
4968 _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'5396 _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
4969 if test "$GCC" = yes; then5397 if test "$GCC" = yes; then
4970 wlarc='${wl}'5398 wlarc='${wl}'
4971 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'5399 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
4972 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~5400 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
4973 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'5401 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
4974 else5402 else
4975 case `$CC -V 2>&1` in5403 case `$CC -V 2>&1` in
4976 *"Compilers 5.0"*)5404 *"Compilers 5.0"*)
@@ -5146,36 +5574,38 @@
5146 # Test whether the compiler implicitly links with -lc since on some5574 # Test whether the compiler implicitly links with -lc since on some
5147 # systems, -lgcc has to come before -lc. If gcc already passes -lc5575 # systems, -lgcc has to come before -lc. If gcc already passes -lc
5148 # to ld, don't add -lc before -lgcc.5576 # to ld, don't add -lc before -lgcc.
5149 AC_MSG_CHECKING([whether -lc should be explicitly linked in])5577 AC_CACHE_CHECK([whether -lc should be explicitly linked in],
5150 $RM conftest*5578 [lt_cv_]_LT_TAGVAR(archive_cmds_need_lc, $1),
5151 echo "$lt_simple_compile_test_code" > conftest.$ac_ext5579 [$RM conftest*
5580 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
51525581
5153 if AC_TRY_EVAL(ac_compile) 2>conftest.err; then5582 if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
5154 soname=conftest5583 soname=conftest
5155 lib=conftest5584 lib=conftest
5156 libobjs=conftest.$ac_objext5585 libobjs=conftest.$ac_objext
5157 deplibs=5586 deplibs=
5158 wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)5587 wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
5159 pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)5588 pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
5160 compiler_flags=-v5589 compiler_flags=-v
5161 linker_flags=-v5590 linker_flags=-v
5162 verstring=5591 verstring=
5163 output_objdir=.5592 output_objdir=.
5164 libname=conftest5593 libname=conftest
5165 lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)5594 lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
5166 _LT_TAGVAR(allow_undefined_flag, $1)=5595 _LT_TAGVAR(allow_undefined_flag, $1)=
5167 if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)5596 if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
5168 then5597 then
5169 _LT_TAGVAR(archive_cmds_need_lc, $1)=no5598 lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=no
5170 else5599 else
5171 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes5600 lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
5172 fi5601 fi
5173 _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag5602 _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
5174 else5603 else
5175 cat conftest.err 1>&55604 cat conftest.err 1>&5
5176 fi5605 fi
5177 $RM conftest*5606 $RM conftest*
5178 AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)])5607 ])
5608 _LT_TAGVAR(archive_cmds_need_lc, $1)=$lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)
5179 ;;5609 ;;
5180 esac5610 esac
5181 fi5611 fi
@@ -5240,8 +5670,6 @@
5240 to runtime path list])5670 to runtime path list])
5241_LT_TAGDECL([], [link_all_deplibs], [0],5671_LT_TAGDECL([], [link_all_deplibs], [0],
5242 [Whether libtool must link a program against all its dependency libraries])5672 [Whether libtool must link a program against all its dependency libraries])
5243_LT_TAGDECL([], [fix_srcfile_path], [1],
5244 [Fix the shell variable $srcfile for the compiler])
5245_LT_TAGDECL([], [always_export_symbols], [0],5673_LT_TAGDECL([], [always_export_symbols], [0],
5246 [Set to "yes" if exported symbols are required])5674 [Set to "yes" if exported symbols are required])
5247_LT_TAGDECL([], [export_symbols_cmds], [2],5675_LT_TAGDECL([], [export_symbols_cmds], [2],
@@ -5252,6 +5680,8 @@
5252 [Symbols that must always be exported])5680 [Symbols that must always be exported])
5253_LT_TAGDECL([], [prelink_cmds], [2],5681_LT_TAGDECL([], [prelink_cmds], [2],
5254 [Commands necessary for linking programs (against libraries) with templates])5682 [Commands necessary for linking programs (against libraries) with templates])
5683_LT_TAGDECL([], [postlink_cmds], [2],
5684 [Commands necessary for finishing linking programs])
5255_LT_TAGDECL([], [file_list_spec], [1],5685_LT_TAGDECL([], [file_list_spec], [1],
5256 [Specify filename containing input files])5686 [Specify filename containing input files])
5257dnl FIXME: Not yet implemented5687dnl FIXME: Not yet implemented
@@ -5341,14 +5771,15 @@
5341])# _LT_LANG_C_CONFIG5771])# _LT_LANG_C_CONFIG
53425772
53435773
5344# _LT_PROG_CXX5774# _LT_LANG_CXX_CONFIG([TAG])
5345# ------------5775# --------------------------
5346# Since AC_PROG_CXX is broken, in that it returns g++ if there is no c++5776# Ensure that the configuration variables for a C++ compiler are suitably
5347# compiler, we have our own version here.5777# defined. These variables are subsequently used by _LT_CONFIG to write
5348m4_defun([_LT_PROG_CXX],5778# the compiler configuration to `libtool'.
5349[5779m4_defun([_LT_LANG_CXX_CONFIG],
5350pushdef([AC_MSG_ERROR], [_lt_caught_CXX_error=yes])5780[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
5351AC_PROG_CXX5781m4_require([_LT_DECL_EGREP])dnl
5782m4_require([_LT_PATH_MANIFEST_TOOL])dnl
5352if test -n "$CXX" && ( test "X$CXX" != "Xno" &&5783if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5353 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||5784 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5354 (test "X$CXX" != "Xg++"))) ; then5785 (test "X$CXX" != "Xg++"))) ; then
@@ -5356,22 +5787,6 @@
5356else5787else
5357 _lt_caught_CXX_error=yes5788 _lt_caught_CXX_error=yes
5358fi5789fi
5359popdef([AC_MSG_ERROR])
5360])# _LT_PROG_CXX
5361
5362dnl aclocal-1.4 backwards compatibility:
5363dnl AC_DEFUN([_LT_PROG_CXX], [])
5364
5365
5366# _LT_LANG_CXX_CONFIG([TAG])
5367# --------------------------
5368# Ensure that the configuration variables for a C++ compiler are suitably
5369# defined. These variables are subsequently used by _LT_CONFIG to write
5370# the compiler configuration to `libtool'.
5371m4_defun([_LT_LANG_CXX_CONFIG],
5372[AC_REQUIRE([_LT_PROG_CXX])dnl
5373m4_require([_LT_FILEUTILS_DEFAULTS])dnl
5374m4_require([_LT_DECL_EGREP])dnl
53755790
5376AC_LANG_PUSH(C++)5791AC_LANG_PUSH(C++)
5377_LT_TAGVAR(archive_cmds_need_lc, $1)=no5792_LT_TAGVAR(archive_cmds_need_lc, $1)=no
@@ -5393,6 +5808,8 @@
5393_LT_TAGVAR(module_expsym_cmds, $1)=5808_LT_TAGVAR(module_expsym_cmds, $1)=
5394_LT_TAGVAR(link_all_deplibs, $1)=unknown5809_LT_TAGVAR(link_all_deplibs, $1)=unknown
5395_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds5810_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
5811_LT_TAGVAR(reload_flag, $1)=$reload_flag
5812_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
5396_LT_TAGVAR(no_undefined_flag, $1)=5813_LT_TAGVAR(no_undefined_flag, $1)=
5397_LT_TAGVAR(whole_archive_flag_spec, $1)=5814_LT_TAGVAR(whole_archive_flag_spec, $1)=
5398_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no5815_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
@@ -5424,6 +5841,7 @@
54245841
5425 # Allow CC to be a program name with arguments.5842 # Allow CC to be a program name with arguments.
5426 lt_save_CC=$CC5843 lt_save_CC=$CC
5844 lt_save_CFLAGS=$CFLAGS
5427 lt_save_LD=$LD5845 lt_save_LD=$LD
5428 lt_save_GCC=$GCC5846 lt_save_GCC=$GCC
5429 GCC=$GXX5847 GCC=$GXX
@@ -5441,6 +5859,7 @@
5441 fi5859 fi
5442 test -z "${LDCXX+set}" || LD=$LDCXX5860 test -z "${LDCXX+set}" || LD=$LDCXX
5443 CC=${CXX-"c++"}5861 CC=${CXX-"c++"}
5862 CFLAGS=$CXXFLAGS
5444 compiler=$CC5863 compiler=$CC
5445 _LT_TAGVAR(compiler, $1)=$CC5864 _LT_TAGVAR(compiler, $1)=$CC
5446 _LT_CC_BASENAME([$compiler])5865 _LT_CC_BASENAME([$compiler])
@@ -5462,8 +5881,8 @@
5462 # Check if GNU C++ uses GNU ld as the underlying linker, since the5881 # Check if GNU C++ uses GNU ld as the underlying linker, since the
5463 # archiving commands below assume that GNU ld is being used.5882 # archiving commands below assume that GNU ld is being used.
5464 if test "$with_gnu_ld" = yes; then5883 if test "$with_gnu_ld" = yes; then
5465 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'5884 _LT_TAGVAR(archive_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
5466 _LT_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'5885 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
54675886
5468 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'5887 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5469 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'5888 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
@@ -5495,7 +5914,7 @@
5495 # Commands to make compiler produce verbose output that lists5914 # Commands to make compiler produce verbose output that lists
5496 # what "hidden" libraries, object files and flags are used when5915 # what "hidden" libraries, object files and flags are used when
5497 # linking a shared library.5916 # linking a shared library.
5498 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'5917 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
54995918
5500 else5919 else
5501 GXX=no5920 GXX=no
@@ -5604,10 +6023,10 @@
5604 _LT_TAGVAR(allow_undefined_flag, $1)='-berok'6023 _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
5605 # Determine the default libpath from the value encoded in an empty6024 # Determine the default libpath from the value encoded in an empty
5606 # executable.6025 # executable.
5607 _LT_SYS_MODULE_PATH_AIX6026 _LT_SYS_MODULE_PATH_AIX([$1])
5608 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"6027 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
56096028
5610 _LT_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 "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"6029 _LT_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 func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
5611 else6030 else
5612 if test "$host_cpu" = ia64; then6031 if test "$host_cpu" = ia64; then
5613 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'6032 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
@@ -5616,14 +6035,19 @@
5616 else6035 else
5617 # Determine the default libpath from the value encoded in an6036 # Determine the default libpath from the value encoded in an
5618 # empty executable.6037 # empty executable.
5619 _LT_SYS_MODULE_PATH_AIX6038 _LT_SYS_MODULE_PATH_AIX([$1])
5620 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"6039 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5621 # Warning - without using the other run time loading flags,6040 # Warning - without using the other run time loading flags,
5622 # -berok will link without error, but may produce a broken library.6041 # -berok will link without error, but may produce a broken library.
5623 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'6042 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
5624 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'6043 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
5625 # Exported symbols can be pulled into shared objects from archives6044 if test "$with_gnu_ld" = yes; then
5626 _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'6045 # We only use this code for GNU lds that support --whole-archive.
6046 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
6047 else
6048 # Exported symbols can be pulled into shared objects from archives
6049 _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
6050 fi
5627 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes6051 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
5628 # This is similar to how AIX traditionally builds its shared6052 # This is similar to how AIX traditionally builds its shared
5629 # libraries.6053 # libraries.
@@ -5653,28 +6077,75 @@
5653 ;;6077 ;;
56546078
5655 cygwin* | mingw* | pw32* | cegcc*)6079 cygwin* | mingw* | pw32* | cegcc*)
5656 # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,6080 case $GXX,$cc_basename in
5657 # as there is no search path for DLLs.6081 ,cl* | no,cl*)
5658 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'6082 # Native MSVC
5659 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported6083 # hardcode_libdir_flag_spec is actually meaningless, as there is
5660 _LT_TAGVAR(always_export_symbols, $1)=no6084 # no search path for DLLs.
5661 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes6085 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
6086 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6087 _LT_TAGVAR(always_export_symbols, $1)=yes
6088 _LT_TAGVAR(file_list_spec, $1)='@'
6089 # Tell ltmain to make .lib files, not .a files.
6090 libext=lib
6091 # Tell ltmain to make .dll files, not .so files.
6092 shrext_cmds=".dll"
6093 # FIXME: Setting linknames here is a bad hack.
6094 _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
6095 _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6096 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
6097 else
6098 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
6099 fi~
6100 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
6101 linknames='
6102 # The linker will not automatically build a static lib if we build a DLL.
6103 # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
6104 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6105 # Don't use ranlib
6106 _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
6107 _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
6108 lt_tool_outputfile="@TOOL_OUTPUT@"~
6109 case $lt_outputfile in
6110 *.exe|*.EXE) ;;
6111 *)
6112 lt_outputfile="$lt_outputfile.exe"
6113 lt_tool_outputfile="$lt_tool_outputfile.exe"
6114 ;;
6115 esac~
6116 func_to_tool_file "$lt_outputfile"~
6117 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
6118 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
6119 $RM "$lt_outputfile.manifest";
6120 fi'
6121 ;;
6122 *)
6123 # g++
6124 # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
6125 # as there is no search path for DLLs.
6126 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6127 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
6128 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6129 _LT_TAGVAR(always_export_symbols, $1)=no
6130 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
56626131
5663 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then6132 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
5664 _LT_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'6133 _LT_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'
5665 # If the export-symbols file already is a .def file (1st line6134 # If the export-symbols file already is a .def file (1st line
5666 # is EXPORTS), use it as is; otherwise, prepend...6135 # is EXPORTS), use it as is; otherwise, prepend...
5667 _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then6136 _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
5668 cp $export_symbols $output_objdir/$soname.def;6137 cp $export_symbols $output_objdir/$soname.def;
5669 else6138 else
5670 echo EXPORTS > $output_objdir/$soname.def;6139 echo EXPORTS > $output_objdir/$soname.def;
5671 cat $export_symbols >> $output_objdir/$soname.def;6140 cat $export_symbols >> $output_objdir/$soname.def;
5672 fi~6141 fi~
5673 $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'6142 $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'
5674 else6143 else
5675 _LT_TAGVAR(ld_shlibs, $1)=no6144 _LT_TAGVAR(ld_shlibs, $1)=no
5676 fi6145 fi
5677 ;;6146 ;;
6147 esac
6148 ;;
5678 darwin* | rhapsody*)6149 darwin* | rhapsody*)
5679 _LT_DARWIN_LINKER_FEATURES($1)6150 _LT_DARWIN_LINKER_FEATURES($1)
5680 ;;6151 ;;
@@ -5716,6 +6187,11 @@
5716 gnu*)6187 gnu*)
5717 ;;6188 ;;
57186189
6190 haiku*)
6191 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6192 _LT_TAGVAR(link_all_deplibs, $1)=yes
6193 ;;
6194
5719 hpux9*)6195 hpux9*)
5720 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'6196 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5721 _LT_TAGVAR(hardcode_libdir_separator, $1)=:6197 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
@@ -5740,11 +6216,11 @@
5740 # explicitly linking system object files so we need to strip them6216 # explicitly linking system object files so we need to strip them
5741 # from the output so that they don't get included in the library6217 # from the output so that they don't get included in the library
5742 # dependencies.6218 # dependencies.
5743 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'6219 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
5744 ;;6220 ;;
5745 *)6221 *)
5746 if test "$GXX" = yes; then6222 if test "$GXX" = yes; then
5747 _LT_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'6223 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${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'
5748 else6224 else
5749 # FIXME: insert proper C++ library support6225 # FIXME: insert proper C++ library support
5750 _LT_TAGVAR(ld_shlibs, $1)=no6226 _LT_TAGVAR(ld_shlibs, $1)=no
@@ -5805,7 +6281,7 @@
5805 # explicitly linking system object files so we need to strip them6281 # explicitly linking system object files so we need to strip them
5806 # from the output so that they don't get included in the library6282 # from the output so that they don't get included in the library
5807 # dependencies.6283 # dependencies.
5808 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 "X$list" | $Xsed'6284 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; func_echo_all "$list"'
5809 ;;6285 ;;
5810 *)6286 *)
5811 if test "$GXX" = yes; then6287 if test "$GXX" = yes; then
@@ -5815,10 +6291,10 @@
5815 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'6291 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5816 ;;6292 ;;
5817 ia64*)6293 ia64*)
5818 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'6294 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5819 ;;6295 ;;
5820 *)6296 *)
5821 _LT_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'6297 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5822 ;;6298 ;;
5823 esac6299 esac
5824 fi6300 fi
@@ -5848,7 +6324,7 @@
5848 case $cc_basename in6324 case $cc_basename in
5849 CC*)6325 CC*)
5850 # SGI C++6326 # SGI C++
5851 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'6327 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
58526328
5853 # Archives containing C++ object files must be created using6329 # Archives containing C++ object files must be created using
5854 # "CC -ar", where "CC" is the IRIX C++ compiler. This is6330 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
@@ -5859,9 +6335,9 @@
5859 *)6335 *)
5860 if test "$GXX" = yes; then6336 if test "$GXX" = yes; then
5861 if test "$with_gnu_ld" = no; then6337 if test "$with_gnu_ld" = no; then
5862 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'6338 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5863 else6339 else
5864 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'6340 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
5865 fi6341 fi
5866 fi6342 fi
5867 _LT_TAGVAR(link_all_deplibs, $1)=yes6343 _LT_TAGVAR(link_all_deplibs, $1)=yes
@@ -5890,7 +6366,7 @@
5890 # explicitly linking system object files so we need to strip them6366 # explicitly linking system object files so we need to strip them
5891 # from the output so that they don't get included in the library6367 # from the output so that they don't get included in the library
5892 # dependencies.6368 # dependencies.
5893 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 "X$list" | $Xsed'6369 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; func_echo_all "$list"'
58946370
5895 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'6371 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5896 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'6372 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
@@ -5927,26 +6403,26 @@
5927 pgCC* | pgcpp*)6403 pgCC* | pgcpp*)
5928 # Portland Group C++ compiler6404 # Portland Group C++ compiler
5929 case `$CC -V` in6405 case `$CC -V` in
5930 *pgCC\ [[1-5]]* | *pgcpp\ [[1-5]]*)6406 *pgCC\ [[1-5]].* | *pgcpp\ [[1-5]].*)
5931 _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~6407 _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
5932 rm -rf $tpldir~6408 rm -rf $tpldir~
5933 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~6409 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
5934 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'6410 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
5935 _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~6411 _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
5936 rm -rf $tpldir~6412 rm -rf $tpldir~
5937 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~6413 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
5938 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~6414 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
5939 $RANLIB $oldlib'6415 $RANLIB $oldlib'
5940 _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~6416 _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
5941 rm -rf $tpldir~6417 rm -rf $tpldir~
5942 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~6418 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
5943 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'6419 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
5944 _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~6420 _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
5945 rm -rf $tpldir~6421 rm -rf $tpldir~
5946 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~6422 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
5947 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'6423 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
5948 ;;6424 ;;
5949 *) # Version 6 will use weak symbols6425 *) # Version 6 and above use weak symbols
5950 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'6426 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
5951 _LT_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'6427 _LT_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'
5952 ;;6428 ;;
@@ -5954,7 +6430,7 @@
59546430
5955 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'6431 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
5956 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'6432 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5957 _LT_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'6433 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
5958 ;;6434 ;;
5959 cxx*)6435 cxx*)
5960 # Compaq C++6436 # Compaq C++
@@ -5973,9 +6449,9 @@
5973 # explicitly linking system object files so we need to strip them6449 # explicitly linking system object files so we need to strip them
5974 # from the output so that they don't get included in the library6450 # from the output so that they don't get included in the library
5975 # dependencies.6451 # dependencies.
5976 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "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 "X$list" | $Xsed'6452 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$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; func_echo_all "X$list" | $Xsed'
5977 ;;6453 ;;
5978 xl*)6454 xl* | mpixl* | bgxl*)
5979 # IBM XL 8.0 on PPC, with GNU ld6455 # IBM XL 8.0 on PPC, with GNU ld
5980 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'6456 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5981 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'6457 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
@@ -5995,13 +6471,13 @@
5995 _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'6471 _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5996 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'6472 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
5997 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'6473 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5998 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'6474 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
5999 _LT_TAGVAR(compiler_needs_object, $1)=yes6475 _LT_TAGVAR(compiler_needs_object, $1)=yes
60006476
6001 # Not sure whether something based on6477 # Not sure whether something based on
6002 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&16478 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
6003 # would be better.6479 # would be better.
6004 output_verbose_link_cmd='echo'6480 output_verbose_link_cmd='func_echo_all'
60056481
6006 # Archives containing C++ object files must be created using6482 # Archives containing C++ object files must be created using
6007 # "CC -xar", where "CC" is the Sun C++ compiler. This is6483 # "CC -xar", where "CC" is the Sun C++ compiler. This is
@@ -6070,7 +6546,7 @@
6070 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'6546 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6071 _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'6547 _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6072 fi6548 fi
6073 output_verbose_link_cmd=echo6549 output_verbose_link_cmd=func_echo_all
6074 else6550 else
6075 _LT_TAGVAR(ld_shlibs, $1)=no6551 _LT_TAGVAR(ld_shlibs, $1)=no
6076 fi6552 fi
@@ -6105,15 +6581,15 @@
6105 case $host in6581 case $host in
6106 osf3*)6582 osf3*)
6107 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'6583 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6108 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'6584 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
6109 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'6585 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6110 ;;6586 ;;
6111 *)6587 *)
6112 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'6588 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6113 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'6589 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
6114 _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~6590 _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
6115 echo "-hidden">> $lib.exp~6591 echo "-hidden">> $lib.exp~
6116 $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 "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~6592 $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~
6117 $RM $lib.exp'6593 $RM $lib.exp'
6118 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'6594 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6119 ;;6595 ;;
@@ -6129,17 +6605,17 @@
6129 # explicitly linking system object files so we need to strip them6605 # explicitly linking system object files so we need to strip them
6130 # from the output so that they don't get included in the library6606 # from the output so that they don't get included in the library
6131 # dependencies.6607 # dependencies.
6132 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "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 "X$list" | $Xsed'6608 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$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; func_echo_all "$list"'
6133 ;;6609 ;;
6134 *)6610 *)
6135 if test "$GXX" = yes && test "$with_gnu_ld" = no; then6611 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
6136 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'6612 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6137 case $host in6613 case $host in
6138 osf3*)6614 osf3*)
6139 _LT_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 "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'6615 _LT_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" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6140 ;;6616 ;;
6141 *)6617 *)
6142 _LT_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" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'6618 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6143 ;;6619 ;;
6144 esac6620 esac
61456621
@@ -6149,7 +6625,7 @@
6149 # Commands to make compiler produce verbose output that lists6625 # Commands to make compiler produce verbose output that lists
6150 # what "hidden" libraries, object files and flags are used when6626 # what "hidden" libraries, object files and flags are used when
6151 # linking a shared library.6627 # linking a shared library.
6152 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'6628 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
61536629
6154 else6630 else
6155 # FIXME: insert proper C++ library support6631 # FIXME: insert proper C++ library support
@@ -6185,7 +6661,7 @@
61856661
6186 solaris*)6662 solaris*)
6187 case $cc_basename in6663 case $cc_basename in
6188 CC*)6664 CC* | sunCC*)
6189 # Sun C++ 4.2, 5.x and Centerline C++6665 # Sun C++ 4.2, 5.x and Centerline C++
6190 _LT_TAGVAR(archive_cmds_need_lc,$1)=yes6666 _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
6191 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'6667 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
@@ -6206,7 +6682,7 @@
6206 esac6682 esac
6207 _LT_TAGVAR(link_all_deplibs, $1)=yes6683 _LT_TAGVAR(link_all_deplibs, $1)=yes
62086684
6209 output_verbose_link_cmd='echo'6685 output_verbose_link_cmd='func_echo_all'
62106686
6211 # Archives containing C++ object files must be created using6687 # Archives containing C++ object files must be created using
6212 # "CC -xar", where "CC" is the Sun C++ compiler. This is6688 # "CC -xar", where "CC" is the Sun C++ compiler. This is
@@ -6226,14 +6702,14 @@
6226 if test "$GXX" = yes && test "$with_gnu_ld" = no; then6702 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
6227 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'6703 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
6228 if $CC --version | $GREP -v '^2\.7' > /dev/null; then6704 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
6229 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'6705 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
6230 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~6706 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6231 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'6707 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
62326708
6233 # Commands to make compiler produce verbose output that lists6709 # Commands to make compiler produce verbose output that lists
6234 # what "hidden" libraries, object files and flags are used when6710 # what "hidden" libraries, object files and flags are used when
6235 # linking a shared library.6711 # linking a shared library.
6236 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'6712 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
6237 else6713 else
6238 # g++ 2.7 appears to require `-G' NOT `-shared' on this6714 # g++ 2.7 appears to require `-G' NOT `-shared' on this
6239 # platform.6715 # platform.
@@ -6244,7 +6720,7 @@
6244 # Commands to make compiler produce verbose output that lists6720 # Commands to make compiler produce verbose output that lists
6245 # what "hidden" libraries, object files and flags are used when6721 # what "hidden" libraries, object files and flags are used when
6246 # linking a shared library.6722 # linking a shared library.
6247 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'6723 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
6248 fi6724 fi
62496725
6250 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'6726 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
@@ -6298,6 +6774,10 @@
6298 CC*)6774 CC*)
6299 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'6775 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6300 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'6776 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6777 _LT_TAGVAR(old_archive_cmds, $1)='$CC -Tprelink_objects $oldobjs~
6778 '"$_LT_TAGVAR(old_archive_cmds, $1)"
6779 _LT_TAGVAR(reload_cmds, $1)='$CC -Tprelink_objects $reload_objs~
6780 '"$_LT_TAGVAR(reload_cmds, $1)"
6301 ;;6781 ;;
6302 *)6782 *)
6303 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'6783 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
@@ -6353,6 +6833,7 @@
6353 fi # test -n "$compiler"6833 fi # test -n "$compiler"
63546834
6355 CC=$lt_save_CC6835 CC=$lt_save_CC
6836 CFLAGS=$lt_save_CFLAGS
6356 LDCXX=$LD6837 LDCXX=$LD
6357 LD=$lt_save_LD6838 LD=$lt_save_LD
6358 GCC=$lt_save_GCC6839 GCC=$lt_save_GCC
@@ -6367,6 +6848,29 @@
6367])# _LT_LANG_CXX_CONFIG6848])# _LT_LANG_CXX_CONFIG
63686849
63696850
6851# _LT_FUNC_STRIPNAME_CNF
6852# ----------------------
6853# func_stripname_cnf prefix suffix name
6854# strip PREFIX and SUFFIX off of NAME.
6855# PREFIX and SUFFIX must not contain globbing or regex special
6856# characters, hashes, percent signs, but SUFFIX may contain a leading
6857# dot (in which case that matches only a dot).
6858#
6859# This function is identical to the (non-XSI) version of func_stripname,
6860# except this one can be used by m4 code that may be executed by configure,
6861# rather than the libtool script.
6862m4_defun([_LT_FUNC_STRIPNAME_CNF],[dnl
6863AC_REQUIRE([_LT_DECL_SED])
6864AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])
6865func_stripname_cnf ()
6866{
6867 case ${2} in
6868 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
6869 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
6870 esac
6871} # func_stripname_cnf
6872])# _LT_FUNC_STRIPNAME_CNF
6873
6370# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])6874# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
6371# ---------------------------------6875# ---------------------------------
6372# Figure out "hidden" library dependencies from verbose6876# Figure out "hidden" library dependencies from verbose
@@ -6375,6 +6879,7 @@
6375# objects, libraries and library flags.6879# objects, libraries and library flags.
6376m4_defun([_LT_SYS_HIDDEN_LIBDEPS],6880m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
6377[m4_require([_LT_FILEUTILS_DEFAULTS])dnl6881[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
6882AC_REQUIRE([_LT_FUNC_STRIPNAME_CNF])dnl
6378# Dependencies to place before and after the object being linked:6883# Dependencies to place before and after the object being linked:
6379_LT_TAGVAR(predep_objects, $1)=6884_LT_TAGVAR(predep_objects, $1)=
6380_LT_TAGVAR(postdep_objects, $1)=6885_LT_TAGVAR(postdep_objects, $1)=
@@ -6425,6 +6930,13 @@
6425};6930};
6426_LT_EOF6931_LT_EOF
6427])6932])
6933
6934_lt_libdeps_save_CFLAGS=$CFLAGS
6935case "$CC $CFLAGS " in #(
6936*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
6937*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
6938esac
6939
6428dnl Parse the compiler output and extract the necessary6940dnl Parse the compiler output and extract the necessary
6429dnl objects, libraries and library flags.6941dnl objects, libraries and library flags.
6430if AC_TRY_EVAL(ac_compile); then6942if AC_TRY_EVAL(ac_compile); then
@@ -6436,7 +6948,7 @@
6436 pre_test_object_deps_done=no6948 pre_test_object_deps_done=no
64376949
6438 for p in `eval "$output_verbose_link_cmd"`; do6950 for p in `eval "$output_verbose_link_cmd"`; do
6439 case $p in6951 case ${prev}${p} in
64406952
6441 -L* | -R* | -l*)6953 -L* | -R* | -l*)
6442 # Some compilers place space between "-{L,R}" and the path.6954 # Some compilers place space between "-{L,R}" and the path.
@@ -6445,13 +6957,22 @@
6445 test $p = "-R"; then6957 test $p = "-R"; then
6446 prev=$p6958 prev=$p
6447 continue6959 continue
6448 else
6449 prev=
6450 fi6960 fi
64516961
6962 # Expand the sysroot to ease extracting the directories later.
6963 if test -z "$prev"; then
6964 case $p in
6965 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
6966 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
6967 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
6968 esac
6969 fi
6970 case $p in
6971 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
6972 esac
6452 if test "$pre_test_object_deps_done" = no; then6973 if test "$pre_test_object_deps_done" = no; then
6453 case $p in6974 case ${prev} in
6454 -L* | -R*)6975 -L | -R)
6455 # Internal compiler library paths should come after those6976 # Internal compiler library paths should come after those
6456 # provided the user. The postdeps already come after the6977 # provided the user. The postdeps already come after the
6457 # user supplied libs so there is no need to process them.6978 # user supplied libs so there is no need to process them.
@@ -6471,8 +6992,10 @@
6471 _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"6992 _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
6472 fi6993 fi
6473 fi6994 fi
6995 prev=
6474 ;;6996 ;;
64756997
6998 *.lto.$objext) ;; # Ignore GCC LTO objects
6476 *.$objext)6999 *.$objext)
6477 # This assumes that the test object file only shows up7000 # This assumes that the test object file only shows up
6478 # once in the compiler output.7001 # once in the compiler output.
@@ -6508,6 +7031,7 @@
6508fi7031fi
65097032
6510$RM -f confest.$objext7033$RM -f confest.$objext
7034CFLAGS=$_lt_libdeps_save_CFLAGS
65117035
6512# PORTME: override above test on systems where it is broken7036# PORTME: override above test on systems where it is broken
6513m4_if([$1], [CXX],7037m4_if([$1], [CXX],
@@ -6544,7 +7068,7 @@
65447068
6545solaris*)7069solaris*)
6546 case $cc_basename in7070 case $cc_basename in
6547 CC*)7071 CC* | sunCC*)
6548 # The more standards-conforming stlport4 library is7072 # The more standards-conforming stlport4 library is
6549 # incompatible with the Cstd library. Avoid specifying7073 # incompatible with the Cstd library. Avoid specifying
6550 # it if it's in CXXFLAGS. Ignore libCrun as7074 # it if it's in CXXFLAGS. Ignore libCrun as
@@ -6588,32 +7112,16 @@
6588])# _LT_SYS_HIDDEN_LIBDEPS7112])# _LT_SYS_HIDDEN_LIBDEPS
65897113
65907114
6591# _LT_PROG_F77
6592# ------------
6593# Since AC_PROG_F77 is broken, in that it returns the empty string
6594# if there is no fortran compiler, we have our own version here.
6595m4_defun([_LT_PROG_F77],
6596[
6597pushdef([AC_MSG_ERROR], [_lt_disable_F77=yes])
6598AC_PROG_F77
6599if test -z "$F77" || test "X$F77" = "Xno"; then
6600 _lt_disable_F77=yes
6601fi
6602popdef([AC_MSG_ERROR])
6603])# _LT_PROG_F77
6604
6605dnl aclocal-1.4 backwards compatibility:
6606dnl AC_DEFUN([_LT_PROG_F77], [])
6607
6608
6609# _LT_LANG_F77_CONFIG([TAG])7115# _LT_LANG_F77_CONFIG([TAG])
6610# --------------------------7116# --------------------------
6611# Ensure that the configuration variables for a Fortran 77 compiler are7117# Ensure that the configuration variables for a Fortran 77 compiler are
6612# suitably defined. These variables are subsequently used by _LT_CONFIG7118# suitably defined. These variables are subsequently used by _LT_CONFIG
6613# to write the compiler configuration to `libtool'.7119# to write the compiler configuration to `libtool'.
6614m4_defun([_LT_LANG_F77_CONFIG],7120m4_defun([_LT_LANG_F77_CONFIG],
6615[AC_REQUIRE([_LT_PROG_F77])dnl7121[AC_LANG_PUSH(Fortran 77)
6616AC_LANG_PUSH(Fortran 77)7122if test -z "$F77" || test "X$F77" = "Xno"; then
7123 _lt_disable_F77=yes
7124fi
66177125
6618_LT_TAGVAR(archive_cmds_need_lc, $1)=no7126_LT_TAGVAR(archive_cmds_need_lc, $1)=no
6619_LT_TAGVAR(allow_undefined_flag, $1)=7127_LT_TAGVAR(allow_undefined_flag, $1)=
@@ -6632,6 +7140,8 @@
6632_LT_TAGVAR(module_expsym_cmds, $1)=7140_LT_TAGVAR(module_expsym_cmds, $1)=
6633_LT_TAGVAR(link_all_deplibs, $1)=unknown7141_LT_TAGVAR(link_all_deplibs, $1)=unknown
6634_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds7142_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7143_LT_TAGVAR(reload_flag, $1)=$reload_flag
7144_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
6635_LT_TAGVAR(no_undefined_flag, $1)=7145_LT_TAGVAR(no_undefined_flag, $1)=
6636_LT_TAGVAR(whole_archive_flag_spec, $1)=7146_LT_TAGVAR(whole_archive_flag_spec, $1)=
6637_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no7147_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
@@ -6671,7 +7181,9 @@
6671 # Allow CC to be a program name with arguments.7181 # Allow CC to be a program name with arguments.
6672 lt_save_CC="$CC"7182 lt_save_CC="$CC"
6673 lt_save_GCC=$GCC7183 lt_save_GCC=$GCC
7184 lt_save_CFLAGS=$CFLAGS
6674 CC=${F77-"f77"}7185 CC=${F77-"f77"}
7186 CFLAGS=$FFLAGS
6675 compiler=$CC7187 compiler=$CC
6676 _LT_TAGVAR(compiler, $1)=$CC7188 _LT_TAGVAR(compiler, $1)=$CC
6677 _LT_CC_BASENAME([$compiler])7189 _LT_CC_BASENAME([$compiler])
@@ -6725,38 +7237,24 @@
67257237
6726 GCC=$lt_save_GCC7238 GCC=$lt_save_GCC
6727 CC="$lt_save_CC"7239 CC="$lt_save_CC"
7240 CFLAGS="$lt_save_CFLAGS"
6728fi # test "$_lt_disable_F77" != yes7241fi # test "$_lt_disable_F77" != yes
67297242
6730AC_LANG_POP7243AC_LANG_POP
6731])# _LT_LANG_F77_CONFIG7244])# _LT_LANG_F77_CONFIG
67327245
67337246
6734# _LT_PROG_FC
6735# -----------
6736# Since AC_PROG_FC is broken, in that it returns the empty string
6737# if there is no fortran compiler, we have our own version here.
6738m4_defun([_LT_PROG_FC],
6739[
6740pushdef([AC_MSG_ERROR], [_lt_disable_FC=yes])
6741AC_PROG_FC
6742if test -z "$FC" || test "X$FC" = "Xno"; then
6743 _lt_disable_FC=yes
6744fi
6745popdef([AC_MSG_ERROR])
6746])# _LT_PROG_FC
6747
6748dnl aclocal-1.4 backwards compatibility:
6749dnl AC_DEFUN([_LT_PROG_FC], [])
6750
6751
6752# _LT_LANG_FC_CONFIG([TAG])7247# _LT_LANG_FC_CONFIG([TAG])
6753# -------------------------7248# -------------------------
6754# Ensure that the configuration variables for a Fortran compiler are7249# Ensure that the configuration variables for a Fortran compiler are
6755# suitably defined. These variables are subsequently used by _LT_CONFIG7250# suitably defined. These variables are subsequently used by _LT_CONFIG
6756# to write the compiler configuration to `libtool'.7251# to write the compiler configuration to `libtool'.
6757m4_defun([_LT_LANG_FC_CONFIG],7252m4_defun([_LT_LANG_FC_CONFIG],
6758[AC_REQUIRE([_LT_PROG_FC])dnl7253[AC_LANG_PUSH(Fortran)
6759AC_LANG_PUSH(Fortran)7254
7255if test -z "$FC" || test "X$FC" = "Xno"; then
7256 _lt_disable_FC=yes
7257fi
67607258
6761_LT_TAGVAR(archive_cmds_need_lc, $1)=no7259_LT_TAGVAR(archive_cmds_need_lc, $1)=no
6762_LT_TAGVAR(allow_undefined_flag, $1)=7260_LT_TAGVAR(allow_undefined_flag, $1)=
@@ -6775,6 +7273,8 @@
6775_LT_TAGVAR(module_expsym_cmds, $1)=7273_LT_TAGVAR(module_expsym_cmds, $1)=
6776_LT_TAGVAR(link_all_deplibs, $1)=unknown7274_LT_TAGVAR(link_all_deplibs, $1)=unknown
6777_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds7275_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7276_LT_TAGVAR(reload_flag, $1)=$reload_flag
7277_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
6778_LT_TAGVAR(no_undefined_flag, $1)=7278_LT_TAGVAR(no_undefined_flag, $1)=
6779_LT_TAGVAR(whole_archive_flag_spec, $1)=7279_LT_TAGVAR(whole_archive_flag_spec, $1)=
6780_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no7280_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
@@ -6814,7 +7314,9 @@
6814 # Allow CC to be a program name with arguments.7314 # Allow CC to be a program name with arguments.
6815 lt_save_CC="$CC"7315 lt_save_CC="$CC"
6816 lt_save_GCC=$GCC7316 lt_save_GCC=$GCC
7317 lt_save_CFLAGS=$CFLAGS
6817 CC=${FC-"f95"}7318 CC=${FC-"f95"}
7319 CFLAGS=$FCFLAGS
6818 compiler=$CC7320 compiler=$CC
6819 GCC=$ac_cv_fc_compiler_gnu7321 GCC=$ac_cv_fc_compiler_gnu
68207322
@@ -6870,7 +7372,8 @@
6870 fi # test -n "$compiler"7372 fi # test -n "$compiler"
68717373
6872 GCC=$lt_save_GCC7374 GCC=$lt_save_GCC
6873 CC="$lt_save_CC"7375 CC=$lt_save_CC
7376 CFLAGS=$lt_save_CFLAGS
6874fi # test "$_lt_disable_FC" != yes7377fi # test "$_lt_disable_FC" != yes
68757378
6876AC_LANG_POP7379AC_LANG_POP
@@ -6907,10 +7410,12 @@
6907_LT_LINKER_BOILERPLATE7410_LT_LINKER_BOILERPLATE
69087411
6909# Allow CC to be a program name with arguments.7412# Allow CC to be a program name with arguments.
6910lt_save_CC="$CC"7413lt_save_CC=$CC
7414lt_save_CFLAGS=$CFLAGS
6911lt_save_GCC=$GCC7415lt_save_GCC=$GCC
6912GCC=yes7416GCC=yes
6913CC=${GCJ-"gcj"}7417CC=${GCJ-"gcj"}
7418CFLAGS=$GCJFLAGS
6914compiler=$CC7419compiler=$CC
6915_LT_TAGVAR(compiler, $1)=$CC7420_LT_TAGVAR(compiler, $1)=$CC
6916_LT_TAGVAR(LD, $1)="$LD"7421_LT_TAGVAR(LD, $1)="$LD"
@@ -6920,6 +7425,8 @@
6920_LT_TAGVAR(archive_cmds_need_lc, $1)=no7425_LT_TAGVAR(archive_cmds_need_lc, $1)=no
69217426
6922_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds7427_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7428_LT_TAGVAR(reload_flag, $1)=$reload_flag
7429_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
69237430
6924if test -n "$compiler"; then7431if test -n "$compiler"; then
6925 _LT_COMPILER_NO_RTTI($1)7432 _LT_COMPILER_NO_RTTI($1)
@@ -6935,7 +7442,8 @@
6935AC_LANG_RESTORE7442AC_LANG_RESTORE
69367443
6937GCC=$lt_save_GCC7444GCC=$lt_save_GCC
6938CC="$lt_save_CC"7445CC=$lt_save_CC
7446CFLAGS=$lt_save_CFLAGS
6939])# _LT_LANG_GCJ_CONFIG7447])# _LT_LANG_GCJ_CONFIG
69407448
69417449
@@ -6970,9 +7478,11 @@
69707478
6971# Allow CC to be a program name with arguments.7479# Allow CC to be a program name with arguments.
6972lt_save_CC="$CC"7480lt_save_CC="$CC"
7481lt_save_CFLAGS=$CFLAGS
6973lt_save_GCC=$GCC7482lt_save_GCC=$GCC
6974GCC=7483GCC=
6975CC=${RC-"windres"}7484CC=${RC-"windres"}
7485CFLAGS=
6976compiler=$CC7486compiler=$CC
6977_LT_TAGVAR(compiler, $1)=$CC7487_LT_TAGVAR(compiler, $1)=$CC
6978_LT_CC_BASENAME([$compiler])7488_LT_CC_BASENAME([$compiler])
@@ -6985,7 +7495,8 @@
69857495
6986GCC=$lt_save_GCC7496GCC=$lt_save_GCC
6987AC_LANG_RESTORE7497AC_LANG_RESTORE
6988CC="$lt_save_CC"7498CC=$lt_save_CC
7499CFLAGS=$lt_save_CFLAGS
6989])# _LT_LANG_RC_CONFIG7500])# _LT_LANG_RC_CONFIG
69907501
69917502
@@ -7044,6 +7555,15 @@
7044AC_SUBST([OBJDUMP])7555AC_SUBST([OBJDUMP])
7045])7556])
70467557
7558# _LT_DECL_DLLTOOL
7559# ----------------
7560# Ensure DLLTOOL variable is set.
7561m4_defun([_LT_DECL_DLLTOOL],
7562[AC_CHECK_TOOL(DLLTOOL, dlltool, false)
7563test -z "$DLLTOOL" && DLLTOOL=dlltool
7564_LT_DECL([], [DLLTOOL], [1], [DLL creation program])
7565AC_SUBST([DLLTOOL])
7566])
70477567
7048# _LT_DECL_SED7568# _LT_DECL_SED
7049# ------------7569# ------------
@@ -7135,8 +7655,8 @@
7135# Try some XSI features7655# Try some XSI features
7136xsi_shell=no7656xsi_shell=no
7137( _lt_dummy="a/b/c"7657( _lt_dummy="a/b/c"
7138 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \7658 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
7139 = c,a/b,, \7659 = c,a/b,b/c, \
7140 && eval 'test $(( 1 + 1 )) -eq 2 \7660 && eval 'test $(( 1 + 1 )) -eq 2 \
7141 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \7661 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7142 && xsi_shell=yes7662 && xsi_shell=yes
@@ -7175,222 +7695,177 @@
7175])# _LT_CHECK_SHELL_FEATURES7695])# _LT_CHECK_SHELL_FEATURES
71767696
71777697
7178# _LT_PROG_XSI_SHELLFNS7698# _LT_PROG_FUNCTION_REPLACE (FUNCNAME, REPLACEMENT-BODY)
7179# ---------------------7699# ------------------------------------------------------
7180# Bourne and XSI compatible variants of some useful shell functions.7700# In `$cfgfile', look for function FUNCNAME delimited by `^FUNCNAME ()$' and
7181m4_defun([_LT_PROG_XSI_SHELLFNS],7701# '^} FUNCNAME ', and replace its body with REPLACEMENT-BODY.
7182[case $xsi_shell in7702m4_defun([_LT_PROG_FUNCTION_REPLACE],
7183 yes)7703[dnl {
7184 cat << \_LT_EOF >> "$cfgfile"7704sed -e '/^$1 ()$/,/^} # $1 /c\
71857705$1 ()\
7186# func_dirname file append nondir_replacement7706{\
7187# Compute the dirname of FILE. If nonempty, add APPEND to the result,7707m4_bpatsubsts([$2], [$], [\\], [^\([ ]\)], [\\\1])
7188# otherwise set result to NONDIR_REPLACEMENT.7708} # Extended-shell $1 implementation' "$cfgfile" > $cfgfile.tmp \
7189func_dirname ()7709 && mv -f "$cfgfile.tmp" "$cfgfile" \
7190{7710 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
7191 case ${1} in7711test 0 -eq $? || _lt_function_replace_fail=:
7192 */*) func_dirname_result="${1%/*}${2}" ;;7712])
7193 * ) func_dirname_result="${3}" ;;7713
7194 esac7714
7195}7715# _LT_PROG_REPLACE_SHELLFNS
71967716# -------------------------
7197# func_basename file7717# Replace existing portable implementations of several shell functions with
7198func_basename ()7718# equivalent extended shell implementations where those features are available..
7199{7719m4_defun([_LT_PROG_REPLACE_SHELLFNS],
7200 func_basename_result="${1##*/}"7720[if test x"$xsi_shell" = xyes; then
7201}7721 _LT_PROG_FUNCTION_REPLACE([func_dirname], [dnl
72027722 case ${1} in
7203# func_dirname_and_basename file append nondir_replacement7723 */*) func_dirname_result="${1%/*}${2}" ;;
7204# perform func_basename and func_dirname in a single function7724 * ) func_dirname_result="${3}" ;;
7205# call:7725 esac])
7206# dirname: Compute the dirname of FILE. If nonempty,7726
7207# add APPEND to the result, otherwise set result7727 _LT_PROG_FUNCTION_REPLACE([func_basename], [dnl
7208# to NONDIR_REPLACEMENT.7728 func_basename_result="${1##*/}"])
7209# value returned in "$func_dirname_result"7729
7210# basename: Compute filename of FILE.7730 _LT_PROG_FUNCTION_REPLACE([func_dirname_and_basename], [dnl
7211# value retuned in "$func_basename_result"7731 case ${1} in
7212# Implementation must be kept synchronized with func_dirname7732 */*) func_dirname_result="${1%/*}${2}" ;;
7213# and func_basename. For efficiency, we do not delegate to7733 * ) func_dirname_result="${3}" ;;
7214# those functions but instead duplicate the functionality here.7734 esac
7215func_dirname_and_basename ()7735 func_basename_result="${1##*/}"])
7216{7736
7217 case ${1} in7737 _LT_PROG_FUNCTION_REPLACE([func_stripname], [dnl
7218 */*) func_dirname_result="${1%/*}${2}" ;;7738 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
7219 * ) func_dirname_result="${3}" ;;7739 # positional parameters, so assign one to ordinary parameter first.
7220 esac7740 func_stripname_result=${3}
7221 func_basename_result="${1##*/}"7741 func_stripname_result=${func_stripname_result#"${1}"}
7222}7742 func_stripname_result=${func_stripname_result%"${2}"}])
72237743
7224# func_stripname prefix suffix name7744 _LT_PROG_FUNCTION_REPLACE([func_split_long_opt], [dnl
7225# strip PREFIX and SUFFIX off of NAME.7745 func_split_long_opt_name=${1%%=*}
7226# PREFIX and SUFFIX must not contain globbing or regex special7746 func_split_long_opt_arg=${1#*=}])
7227# characters, hashes, percent signs, but SUFFIX may contain a leading7747
7228# dot (in which case that matches only a dot).7748 _LT_PROG_FUNCTION_REPLACE([func_split_short_opt], [dnl
7229func_stripname ()7749 func_split_short_opt_arg=${1#??}
7230{7750 func_split_short_opt_name=${1%"$func_split_short_opt_arg"}])
7231 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are7751
7232 # positional parameters, so assign one to ordinary parameter first.7752 _LT_PROG_FUNCTION_REPLACE([func_lo2o], [dnl
7233 func_stripname_result=${3}7753 case ${1} in
7234 func_stripname_result=${func_stripname_result#"${1}"}7754 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
7235 func_stripname_result=${func_stripname_result%"${2}"}7755 *) func_lo2o_result=${1} ;;
7236}7756 esac])
72377757
7238# func_opt_split7758 _LT_PROG_FUNCTION_REPLACE([func_xform], [ func_xform_result=${1%.*}.lo])
7239func_opt_split ()7759
7240{7760 _LT_PROG_FUNCTION_REPLACE([func_arith], [ func_arith_result=$(( $[*] ))])
7241 func_opt_split_opt=${1%%=*}7761
7242 func_opt_split_arg=${1#*=}7762 _LT_PROG_FUNCTION_REPLACE([func_len], [ func_len_result=${#1}])
7243}7763fi
72447764
7245# func_lo2o object7765if test x"$lt_shell_append" = xyes; then
7246func_lo2o ()7766 _LT_PROG_FUNCTION_REPLACE([func_append], [ eval "${1}+=\\${2}"])
7247{7767
7248 case ${1} in7768 _LT_PROG_FUNCTION_REPLACE([func_append_quoted], [dnl
7249 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;7769 func_quote_for_eval "${2}"
7250 *) func_lo2o_result=${1} ;;7770dnl m4 expansion turns \\\\ into \\, and then the shell eval turns that into \
7251 esac7771 eval "${1}+=\\\\ \\$func_quote_for_eval_result"])
7252}7772
72537773 # Save a `func_append' function call where possible by direct use of '+='
7254# func_xform libobj-or-source7774 sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
7255func_xform ()7775 && mv -f "$cfgfile.tmp" "$cfgfile" \
7256{7776 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
7257 func_xform_result=${1%.*}.lo7777 test 0 -eq $? || _lt_function_replace_fail=:
7258}7778else
72597779 # Save a `func_append' function call even when '+=' is not available
7260# func_arith arithmetic-term...7780 sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
7261func_arith ()7781 && mv -f "$cfgfile.tmp" "$cfgfile" \
7262{7782 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
7263 func_arith_result=$(( $[*] ))7783 test 0 -eq $? || _lt_function_replace_fail=:
7264}7784fi
72657785
7266# func_len string7786if test x"$_lt_function_replace_fail" = x":"; then
7267# STRING may not start with a hyphen.7787 AC_MSG_WARN([Unable to substitute extended shell functions in $ofile])
7268func_len ()7788fi
7269{7789])
7270 func_len_result=${#1}7790
7271}7791# _LT_PATH_CONVERSION_FUNCTIONS
72727792# -----------------------------
7273_LT_EOF7793# Determine which file name conversion functions should be used by
7274 ;;7794# func_to_host_file (and, implicitly, by func_to_host_path). These are needed
7275 *) # Bourne compatible functions.7795# for certain cross-compile configurations and native mingw.
7276 cat << \_LT_EOF >> "$cfgfile"7796m4_defun([_LT_PATH_CONVERSION_FUNCTIONS],
72777797[AC_REQUIRE([AC_CANONICAL_HOST])dnl
7278# func_dirname file append nondir_replacement7798AC_REQUIRE([AC_CANONICAL_BUILD])dnl
7279# Compute the dirname of FILE. If nonempty, add APPEND to the result,7799AC_MSG_CHECKING([how to convert $build file names to $host format])
7280# otherwise set result to NONDIR_REPLACEMENT.7800AC_CACHE_VAL(lt_cv_to_host_file_cmd,
7281func_dirname ()7801[case $host in
7282{7802 *-*-mingw* )
7283 # Extract subdirectory from the argument.7803 case $build in
7284 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`7804 *-*-mingw* ) # actually msys
7285 if test "X$func_dirname_result" = "X${1}"; then7805 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7286 func_dirname_result="${3}"7806 ;;
7287 else7807 *-*-cygwin* )
7288 func_dirname_result="$func_dirname_result${2}"7808 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7289 fi7809 ;;
7290}7810 * ) # otherwise, assume *nix
72917811 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7292# func_basename file7812 ;;
7293func_basename ()7813 esac
7294{7814 ;;
7295 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`7815 *-*-cygwin* )
7296}7816 case $build in
72977817 *-*-mingw* ) # actually msys
7298dnl func_dirname_and_basename7818 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
7299dnl A portable version of this function is already defined in general.m4sh7819 ;;
7300dnl so there is no need for it here.7820 *-*-cygwin* )
73017821 lt_cv_to_host_file_cmd=func_convert_file_noop
7302# func_stripname prefix suffix name7822 ;;
7303# strip PREFIX and SUFFIX off of NAME.7823 * ) # otherwise, assume *nix
7304# PREFIX and SUFFIX must not contain globbing or regex special7824 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
7305# characters, hashes, percent signs, but SUFFIX may contain a leading7825 ;;
7306# dot (in which case that matches only a dot).7826 esac
7307# func_strip_suffix prefix name7827 ;;
7308func_stripname ()7828 * ) # unhandled hosts (and "normal" native builds)
7309{7829 lt_cv_to_host_file_cmd=func_convert_file_noop
7310 case ${2} in7830 ;;
7311 .*) func_stripname_result=`$ECHO "X${3}" \7831esac
7312 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;7832])
7313 *) func_stripname_result=`$ECHO "X${3}" \7833to_host_file_cmd=$lt_cv_to_host_file_cmd
7314 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;7834AC_MSG_RESULT([$lt_cv_to_host_file_cmd])
7315 esac7835_LT_DECL([to_host_file_cmd], [lt_cv_to_host_file_cmd],
7316}7836 [0], [convert $build file names to $host format])dnl
73177837
7318# sed scripts:7838AC_MSG_CHECKING([how to convert $build file names to toolchain format])
7319my_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q'7839AC_CACHE_VAL(lt_cv_to_tool_file_cmd,
7320my_sed_long_arg='1s/^-[[^=]]*=//'7840[#assume ordinary cross tools, or native build.
73217841lt_cv_to_tool_file_cmd=func_convert_file_noop
7322# func_opt_split7842case $host in
7323func_opt_split ()7843 *-*-mingw* )
7324{7844 case $build in
7325 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`7845 *-*-mingw* ) # actually msys
7326 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`7846 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7327}7847 ;;
73287848 esac
7329# func_lo2o object7849 ;;
7330func_lo2o ()7850esac
7331{7851])
7332 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`7852to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7333}7853AC_MSG_RESULT([$lt_cv_to_tool_file_cmd])
73347854_LT_DECL([to_tool_file_cmd], [lt_cv_to_tool_file_cmd],
7335# func_xform libobj-or-source7855 [0], [convert $build files to toolchain format])dnl
7336func_xform ()7856])# _LT_PATH_CONVERSION_FUNCTIONS
7337{
7338 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[[^.]]*$/.lo/'`
7339}
7340
7341# func_arith arithmetic-term...
7342func_arith ()
7343{
7344 func_arith_result=`expr "$[@]"`
7345}
7346
7347# func_len string
7348# STRING may not start with a hyphen.
7349func_len ()
7350{
7351 func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len`
7352}
7353
7354_LT_EOF
7355esac
7356
7357case $lt_shell_append in
7358 yes)
7359 cat << \_LT_EOF >> "$cfgfile"
7360
7361# func_append var value
7362# Append VALUE to the end of shell variable VAR.
7363func_append ()
7364{
7365 eval "$[1]+=\$[2]"
7366}
7367_LT_EOF
7368 ;;
7369 *)
7370 cat << \_LT_EOF >> "$cfgfile"
7371
7372# func_append var value
7373# Append VALUE to the end of shell variable VAR.
7374func_append ()
7375{
7376 eval "$[1]=\$$[1]\$[2]"
7377}
7378
7379_LT_EOF
7380 ;;
7381 esac
7382])
73837857
7384# Helper functions for option handling. -*- Autoconf -*-7858# Helper functions for option handling. -*- Autoconf -*-
7385#7859#
7386# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.7860# Copyright (C) 2004, 2005, 2007, 2008, 2009 Free Software Foundation,
7861# Inc.
7387# Written by Gary V. Vaughan, 20047862# Written by Gary V. Vaughan, 2004
7388#7863#
7389# This file is free software; the Free Software Foundation gives7864# This file is free software; the Free Software Foundation gives
7390# unlimited permission to copy and/or distribute it, with or without7865# unlimited permission to copy and/or distribute it, with or without
7391# modifications, as long as this notice is preserved.7866# modifications, as long as this notice is preserved.
73927867
7393# serial 6 ltoptions.m47868# serial 7 ltoptions.m4
73947869
7395# This is to help aclocal find these macros, as it can't see m4_define.7870# This is to help aclocal find these macros, as it can't see m4_define.
7396AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])7871AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
@@ -7505,7 +7980,7 @@
7505[enable_win32_dll=yes7980[enable_win32_dll=yes
75067981
7507case $host in7982case $host in
7508*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)7983*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
7509 AC_CHECK_TOOL(AS, as, false)7984 AC_CHECK_TOOL(AS, as, false)
7510 AC_CHECK_TOOL(DLLTOOL, dlltool, false)7985 AC_CHECK_TOOL(DLLTOOL, dlltool, false)
7511 AC_CHECK_TOOL(OBJDUMP, objdump, false)7986 AC_CHECK_TOOL(OBJDUMP, objdump, false)
@@ -7513,13 +7988,13 @@
7513esac7988esac
75147989
7515test -z "$AS" && AS=as7990test -z "$AS" && AS=as
7516_LT_DECL([], [AS], [0], [Assembler program])dnl7991_LT_DECL([], [AS], [1], [Assembler program])dnl
75177992
7518test -z "$DLLTOOL" && DLLTOOL=dlltool7993test -z "$DLLTOOL" && DLLTOOL=dlltool
7519_LT_DECL([], [DLLTOOL], [0], [DLL creation program])dnl7994_LT_DECL([], [DLLTOOL], [1], [DLL creation program])dnl
75207995
7521test -z "$OBJDUMP" && OBJDUMP=objdump7996test -z "$OBJDUMP" && OBJDUMP=objdump
7522_LT_DECL([], [OBJDUMP], [0], [Object dumper program])dnl7997_LT_DECL([], [OBJDUMP], [1], [Object dumper program])dnl
7523])# win32-dll7998])# win32-dll
75247999
7525AU_DEFUN([AC_LIBTOOL_WIN32_DLL],8000AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
@@ -7877,31 +8352,31 @@
7877# unlimited permission to copy and/or distribute it, with or without8352# unlimited permission to copy and/or distribute it, with or without
7878# modifications, as long as this notice is preserved.8353# modifications, as long as this notice is preserved.
78798354
7880# Generated from ltversion.in.8355# @configure_input@
78818356
7882# serial 3017 ltversion.m48357# serial 3293 ltversion.m4
7883# This file is part of GNU Libtool8358# This file is part of GNU Libtool
78848359
7885m4_define([LT_PACKAGE_VERSION], [2.2.6b])8360m4_define([LT_PACKAGE_VERSION], [2.4])
7886m4_define([LT_PACKAGE_REVISION], [1.3017])8361m4_define([LT_PACKAGE_REVISION], [1.3293])
78878362
7888AC_DEFUN([LTVERSION_VERSION],8363AC_DEFUN([LTVERSION_VERSION],
7889[macro_version='2.2.6b'8364[macro_version='2.4'
7890macro_revision='1.3017'8365macro_revision='1.3293'
7891_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])8366_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
7892_LT_DECL(, macro_revision, 0)8367_LT_DECL(, macro_revision, 0)
7893])8368])
78948369
7895# lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-8370# lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
7896#8371#
7897# Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc.8372# Copyright (C) 2004, 2005, 2007, 2009 Free Software Foundation, Inc.
7898# Written by Scott James Remnant, 2004.8373# Written by Scott James Remnant, 2004.
7899#8374#
7900# This file is free software; the Free Software Foundation gives8375# This file is free software; the Free Software Foundation gives
7901# unlimited permission to copy and/or distribute it, with or without8376# unlimited permission to copy and/or distribute it, with or without
7902# modifications, as long as this notice is preserved.8377# modifications, as long as this notice is preserved.
79038378
7904# serial 4 lt~obsolete.m48379# serial 5 lt~obsolete.m4
79058380
7906# These exist entirely to fool aclocal when bootstrapping libtool.8381# These exist entirely to fool aclocal when bootstrapping libtool.
7907#8382#
@@ -7971,7 +8446,6 @@
7971m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])])8446m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])])
7972m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])])8447m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])])
7973m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])])8448m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])])
7974m4_ifndef([AC_LIBTOOL_RC], [AC_DEFUN([AC_LIBTOOL_RC])])
7975m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])8449m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
7976m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])])8450m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
7977m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])8451m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
@@ -7984,6 +8458,13 @@
7984m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])8458m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
7985m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])])8459m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])])
7986m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])8460m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
8461m4_ifndef([_LT_REQUIRED_DARWIN_CHECKS], [AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS])])
8462m4_ifndef([_LT_AC_PROG_CXXCPP], [AC_DEFUN([_LT_AC_PROG_CXXCPP])])
8463m4_ifndef([_LT_PREPARE_SED_QUOTE_VARS], [AC_DEFUN([_LT_PREPARE_SED_QUOTE_VARS])])
8464m4_ifndef([_LT_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_PROG_ECHO_BACKSLASH])])
8465m4_ifndef([_LT_PROG_F77], [AC_DEFUN([_LT_PROG_F77])])
8466m4_ifndef([_LT_PROG_FC], [AC_DEFUN([_LT_PROG_FC])])
8467m4_ifndef([_LT_PROG_CXX], [AC_DEFUN([_LT_PROG_CXX])])
79878468
7988# pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-8469# pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-
7989# serial 1 (pkg-config-0.24)8470# serial 1 (pkg-config-0.24)
@@ -8013,7 +8494,8 @@
8013# ----------------------------------8494# ----------------------------------
8014AC_DEFUN([PKG_PROG_PKG_CONFIG],8495AC_DEFUN([PKG_PROG_PKG_CONFIG],
8015[m4_pattern_forbid([^_?PKG_[A-Z_]+$])8496[m4_pattern_forbid([^_?PKG_[A-Z_]+$])
8016m4_pattern_allow([^PKG_CONFIG(_PATH)?$])8497m4_pattern_allow([^PKG_CONFIG(_(PATH|LIBDIR|SYSROOT_DIR|ALLOW_SYSTEM_(CFLAGS|LIBS)))?$])
8498m4_pattern_allow([^PKG_CONFIG_(DISABLE_UNINSTALLED|TOP_BUILD_DIR|DEBUG_SPEW)$])
8017AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])8499AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])
8018AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path])8500AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path])
8019AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path])8501AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path])
@@ -8059,7 +8541,8 @@
8059 pkg_cv_[]$1="$$1"8541 pkg_cv_[]$1="$$1"
8060 elif test -n "$PKG_CONFIG"; then8542 elif test -n "$PKG_CONFIG"; then
8061 PKG_CHECK_EXISTS([$3],8543 PKG_CHECK_EXISTS([$3],
8062 [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`],8544 [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`
8545 test "x$?" != "x0" && pkg_failed=yes ],
8063 [pkg_failed=yes])8546 [pkg_failed=yes])
8064 else8547 else
8065 pkg_failed=untried8548 pkg_failed=untried
@@ -8107,9 +8590,9 @@
8107 AC_MSG_RESULT([no])8590 AC_MSG_RESULT([no])
8108 _PKG_SHORT_ERRORS_SUPPORTED8591 _PKG_SHORT_ERRORS_SUPPORTED
8109 if test $_pkg_short_errors_supported = yes; then8592 if test $_pkg_short_errors_supported = yes; then
8110 $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$2" 2>&1`8593 $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$2" 2>&1`
8111 else 8594 else
8112 $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors "$2" 2>&1`8595 $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$2" 2>&1`
8113 fi8596 fi
8114 # Put the nasty error message in config.log where it belongs8597 # Put the nasty error message in config.log where it belongs
8115 echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD8598 echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
81168599
=== modified file 'config-aux/config.guess'
--- config-aux/config.guess 2010-12-10 16:59:27 +0000
+++ config-aux/config.guess 2012-08-23 20:59:19 +0000
@@ -1,10 +1,10 @@
1#! /bin/sh1#! /bin/sh
2# Attempt to guess a canonical system name.2# Attempt to guess a canonical system name.
3# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,3# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
4# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 20104# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
5# Free Software Foundation, Inc.5# 2011 Free Software Foundation, Inc.
66
7timestamp='2009-12-30'7timestamp='2011-05-11'
88
9# This file is free software; you can redistribute it and/or modify it9# This file is free software; you can redistribute it and/or modify it
10# under the terms of the GNU General Public License as published by10# under the terms of the GNU General Public License as published by
@@ -57,7 +57,7 @@
5757
58Originally written by Per Bothner.58Originally written by Per Bothner.
59Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,59Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
602001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free602001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free
61Software Foundation, Inc.61Software Foundation, Inc.
6262
63This is free software; see the source for copying conditions. There is NO63This is free software; see the source for copying conditions. There is NO
@@ -181,7 +181,7 @@
181 fi181 fi
182 ;;182 ;;
183 *)183 *)
184 os=netbsd184 os=netbsd
185 ;;185 ;;
186 esac186 esac
187 # The OS release187 # The OS release
@@ -224,7 +224,7 @@
224 UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`224 UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
225 ;;225 ;;
226 *5.*)226 *5.*)
227 UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`227 UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
228 ;;228 ;;
229 esac229 esac
230 # According to Compaq, /usr/sbin/psrinfo has been available on230 # According to Compaq, /usr/sbin/psrinfo has been available on
@@ -270,7 +270,10 @@
270 # A Xn.n version is an unreleased experimental baselevel.270 # A Xn.n version is an unreleased experimental baselevel.
271 # 1.2 uses "1.2" for uname -r.271 # 1.2 uses "1.2" for uname -r.
272 echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`272 echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
273 exit ;;273 # Reset EXIT trap before exiting to avoid spurious non-zero exit code.
274 exitcode=$?
275 trap '' 0
276 exit $exitcode ;;
274 Alpha\ *:Windows_NT*:*)277 Alpha\ *:Windows_NT*:*)
275 # How do we know it's Interix rather than the generic POSIX subsystem?278 # How do we know it's Interix rather than the generic POSIX subsystem?
276 # Should we change UNAME_MACHINE based on the output of uname instead279 # Should we change UNAME_MACHINE based on the output of uname instead
@@ -296,7 +299,7 @@
296 echo s390-ibm-zvmoe299 echo s390-ibm-zvmoe
297 exit ;;300 exit ;;
298 *:OS400:*:*)301 *:OS400:*:*)
299 echo powerpc-ibm-os400302 echo powerpc-ibm-os400
300 exit ;;303 exit ;;
301 arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)304 arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
302 echo arm-acorn-riscix${UNAME_RELEASE}305 echo arm-acorn-riscix${UNAME_RELEASE}
@@ -395,23 +398,23 @@
395 # MiNT. But MiNT is downward compatible to TOS, so this should398 # MiNT. But MiNT is downward compatible to TOS, so this should
396 # be no problem.399 # be no problem.
397 atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)400 atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
398 echo m68k-atari-mint${UNAME_RELEASE}401 echo m68k-atari-mint${UNAME_RELEASE}
399 exit ;;402 exit ;;
400 atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)403 atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
401 echo m68k-atari-mint${UNAME_RELEASE}404 echo m68k-atari-mint${UNAME_RELEASE}
402 exit ;;405 exit ;;
403 *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)406 *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
404 echo m68k-atari-mint${UNAME_RELEASE}407 echo m68k-atari-mint${UNAME_RELEASE}
405 exit ;;408 exit ;;
406 milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)409 milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
407 echo m68k-milan-mint${UNAME_RELEASE}410 echo m68k-milan-mint${UNAME_RELEASE}
408 exit ;;411 exit ;;
409 hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)412 hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
410 echo m68k-hades-mint${UNAME_RELEASE}413 echo m68k-hades-mint${UNAME_RELEASE}
411 exit ;;414 exit ;;
412 *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)415 *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
413 echo m68k-unknown-mint${UNAME_RELEASE}416 echo m68k-unknown-mint${UNAME_RELEASE}
414 exit ;;417 exit ;;
415 m68k:machten:*:*)418 m68k:machten:*:*)
416 echo m68k-apple-machten${UNAME_RELEASE}419 echo m68k-apple-machten${UNAME_RELEASE}
417 exit ;;420 exit ;;
@@ -481,8 +484,8 @@
481 echo m88k-motorola-sysv3484 echo m88k-motorola-sysv3
482 exit ;;485 exit ;;
483 AViiON:dgux:*:*)486 AViiON:dgux:*:*)
484 # DG/UX returns AViiON for all architectures487 # DG/UX returns AViiON for all architectures
485 UNAME_PROCESSOR=`/usr/bin/uname -p`488 UNAME_PROCESSOR=`/usr/bin/uname -p`
486 if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ]489 if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ]
487 then490 then
488 if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \491 if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \
@@ -495,7 +498,7 @@
495 else498 else
496 echo i586-dg-dgux${UNAME_RELEASE}499 echo i586-dg-dgux${UNAME_RELEASE}
497 fi500 fi
498 exit ;;501 exit ;;
499 M88*:DolphinOS:*:*) # DolphinOS (SVR3)502 M88*:DolphinOS:*:*) # DolphinOS (SVR3)
500 echo m88k-dolphin-sysv3503 echo m88k-dolphin-sysv3
501 exit ;;504 exit ;;
@@ -552,7 +555,7 @@
552 echo rs6000-ibm-aix3.2555 echo rs6000-ibm-aix3.2
553 fi556 fi
554 exit ;;557 exit ;;
555 *:AIX:*:[456])558 *:AIX:*:[4567])
556 IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`559 IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
557 if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then560 if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
558 IBM_ARCH=rs6000561 IBM_ARCH=rs6000
@@ -595,52 +598,52 @@
595 9000/[678][0-9][0-9])598 9000/[678][0-9][0-9])
596 if [ -x /usr/bin/getconf ]; then599 if [ -x /usr/bin/getconf ]; then
597 sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`600 sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
598 sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`601 sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
599 case "${sc_cpu_version}" in602 case "${sc_cpu_version}" in
600 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0603 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
601 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1604 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
602 532) # CPU_PA_RISC2_0605 532) # CPU_PA_RISC2_0
603 case "${sc_kernel_bits}" in606 case "${sc_kernel_bits}" in
604 32) HP_ARCH="hppa2.0n" ;;607 32) HP_ARCH="hppa2.0n" ;;
605 64) HP_ARCH="hppa2.0w" ;;608 64) HP_ARCH="hppa2.0w" ;;
606 '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20609 '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20
607 esac ;;610 esac ;;
608 esac611 esac
609 fi612 fi
610 if [ "${HP_ARCH}" = "" ]; then613 if [ "${HP_ARCH}" = "" ]; then
611 eval $set_cc_for_build614 eval $set_cc_for_build
612 sed 's/^ //' << EOF >$dummy.c615 sed 's/^ //' << EOF >$dummy.c
613616
614 #define _HPUX_SOURCE617 #define _HPUX_SOURCE
615 #include <stdlib.h>618 #include <stdlib.h>
616 #include <unistd.h>619 #include <unistd.h>
617620
618 int main ()621 int main ()
619 {622 {
620 #if defined(_SC_KERNEL_BITS)623 #if defined(_SC_KERNEL_BITS)
621 long bits = sysconf(_SC_KERNEL_BITS);624 long bits = sysconf(_SC_KERNEL_BITS);
622 #endif625 #endif
623 long cpu = sysconf (_SC_CPU_VERSION);626 long cpu = sysconf (_SC_CPU_VERSION);
624627
625 switch (cpu)628 switch (cpu)
626 {629 {
627 case CPU_PA_RISC1_0: puts ("hppa1.0"); break;630 case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
628 case CPU_PA_RISC1_1: puts ("hppa1.1"); break;631 case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
629 case CPU_PA_RISC2_0:632 case CPU_PA_RISC2_0:
630 #if defined(_SC_KERNEL_BITS)633 #if defined(_SC_KERNEL_BITS)
631 switch (bits)634 switch (bits)
632 {635 {
633 case 64: puts ("hppa2.0w"); break;636 case 64: puts ("hppa2.0w"); break;
634 case 32: puts ("hppa2.0n"); break;637 case 32: puts ("hppa2.0n"); break;
635 default: puts ("hppa2.0"); break;638 default: puts ("hppa2.0"); break;
636 } break;639 } break;
637 #else /* !defined(_SC_KERNEL_BITS) */640 #else /* !defined(_SC_KERNEL_BITS) */
638 puts ("hppa2.0"); break;641 puts ("hppa2.0"); break;
639 #endif642 #endif
640 default: puts ("hppa1.0"); break;643 default: puts ("hppa1.0"); break;
641 }644 }
642 exit (0);645 exit (0);
643 }646 }
644EOF647EOF
645 (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`648 (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
646 test -z "$HP_ARCH" && HP_ARCH=hppa649 test -z "$HP_ARCH" && HP_ARCH=hppa
@@ -731,22 +734,22 @@
731 exit ;;734 exit ;;
732 C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)735 C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
733 echo c1-convex-bsd736 echo c1-convex-bsd
734 exit ;;737 exit ;;
735 C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)738 C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
736 if getsysinfo -f scalar_acc739 if getsysinfo -f scalar_acc
737 then echo c32-convex-bsd740 then echo c32-convex-bsd
738 else echo c2-convex-bsd741 else echo c2-convex-bsd
739 fi742 fi
740 exit ;;743 exit ;;
741 C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)744 C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
742 echo c34-convex-bsd745 echo c34-convex-bsd
743 exit ;;746 exit ;;
744 C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)747 C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
745 echo c38-convex-bsd748 echo c38-convex-bsd
746 exit ;;749 exit ;;
747 C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)750 C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
748 echo c4-convex-bsd751 echo c4-convex-bsd
749 exit ;;752 exit ;;
750 CRAY*Y-MP:*:*:*)753 CRAY*Y-MP:*:*:*)
751 echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'754 echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
752 exit ;;755 exit ;;
@@ -770,14 +773,14 @@
770 exit ;;773 exit ;;
771 F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)774 F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
772 FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`775 FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
773 FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`776 FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
774 FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`777 FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
775 echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"778 echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
776 exit ;;779 exit ;;
777 5000:UNIX_System_V:4.*:*)780 5000:UNIX_System_V:4.*:*)
778 FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`781 FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
779 FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`782 FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
780 echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"783 echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
781 exit ;;784 exit ;;
782 i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)785 i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
783 echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}786 echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
@@ -805,14 +808,14 @@
805 echo ${UNAME_MACHINE}-pc-mingw32808 echo ${UNAME_MACHINE}-pc-mingw32
806 exit ;;809 exit ;;
807 i*:windows32*:*)810 i*:windows32*:*)
808 # uname -m includes "-pc" on this system.811 # uname -m includes "-pc" on this system.
809 echo ${UNAME_MACHINE}-mingw32812 echo ${UNAME_MACHINE}-mingw32
810 exit ;;813 exit ;;
811 i*:PW*:*)814 i*:PW*:*)
812 echo ${UNAME_MACHINE}-pc-pw32815 echo ${UNAME_MACHINE}-pc-pw32
813 exit ;;816 exit ;;
814 *:Interix*:*)817 *:Interix*:*)
815 case ${UNAME_MACHINE} in818 case ${UNAME_MACHINE} in
816 x86)819 x86)
817 echo i586-pc-interix${UNAME_RELEASE}820 echo i586-pc-interix${UNAME_RELEASE}
818 exit ;;821 exit ;;
@@ -867,7 +870,7 @@
867 EV6) UNAME_MACHINE=alphaev6 ;;870 EV6) UNAME_MACHINE=alphaev6 ;;
868 EV67) UNAME_MACHINE=alphaev67 ;;871 EV67) UNAME_MACHINE=alphaev67 ;;
869 EV68*) UNAME_MACHINE=alphaev68 ;;872 EV68*) UNAME_MACHINE=alphaev68 ;;
870 esac873 esac
871 objdump --private-headers /bin/sh | grep -q ld.so.1874 objdump --private-headers /bin/sh | grep -q ld.so.1
872 if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi875 if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
873 echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}876 echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
@@ -879,7 +882,13 @@
879 then882 then
880 echo ${UNAME_MACHINE}-unknown-linux-gnu883 echo ${UNAME_MACHINE}-unknown-linux-gnu
881 else884 else
882 echo ${UNAME_MACHINE}-unknown-linux-gnueabi885 if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \
886 | grep -q __ARM_PCS_VFP
887 then
888 echo ${UNAME_MACHINE}-unknown-linux-gnueabi
889 else
890 echo ${UNAME_MACHINE}-unknown-linux-gnueabihf
891 fi
883 fi892 fi
884 exit ;;893 exit ;;
885 avr32*:Linux:*:*)894 avr32*:Linux:*:*)
@@ -892,7 +901,7 @@
892 echo crisv32-axis-linux-gnu901 echo crisv32-axis-linux-gnu
893 exit ;;902 exit ;;
894 frv:Linux:*:*)903 frv:Linux:*:*)
895 echo frv-unknown-linux-gnu904 echo frv-unknown-linux-gnu
896 exit ;;905 exit ;;
897 i*86:Linux:*:*)906 i*86:Linux:*:*)
898 LIBC=gnu907 LIBC=gnu
@@ -960,7 +969,7 @@
960 echo ${UNAME_MACHINE}-ibm-linux969 echo ${UNAME_MACHINE}-ibm-linux
961 exit ;;970 exit ;;
962 sh64*:Linux:*:*)971 sh64*:Linux:*:*)
963 echo ${UNAME_MACHINE}-unknown-linux-gnu972 echo ${UNAME_MACHINE}-unknown-linux-gnu
964 exit ;;973 exit ;;
965 sh*:Linux:*:*)974 sh*:Linux:*:*)
966 echo ${UNAME_MACHINE}-unknown-linux-gnu975 echo ${UNAME_MACHINE}-unknown-linux-gnu
@@ -968,6 +977,9 @@
968 sparc:Linux:*:* | sparc64:Linux:*:*)977 sparc:Linux:*:* | sparc64:Linux:*:*)
969 echo ${UNAME_MACHINE}-unknown-linux-gnu978 echo ${UNAME_MACHINE}-unknown-linux-gnu